@halibegic/react-video-player 0.0.5 → 0.0.7
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/dist/components/player/ui/player-button.d.ts +3 -1
- package/dist/components/player/ui/player-controls.styles.d.ts +6 -2
- package/dist/components/player/ui/player-dropdown.d.ts +6 -9
- package/dist/components/player/ui/player-remaining-time.styles.d.ts +6 -2
- package/dist/components/player/ui/player-slider.d.ts +1 -2
- package/dist/react-video-player.es.js +2810 -2467
- package/dist/react-video-player.es.js.map +1 -1
- package/dist/react-video-player.umd.js +70 -62
- package/dist/react-video-player.umd.js.map +1 -1
- package/package.json +7 -6
|
@@ -1,30 +1,38 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(Ae,R){typeof exports=="object"&&typeof module<"u"?R(exports,require("react"),require("react-dom"),require("hls.js")):typeof define=="function"&&define.amd?define(["exports","react","react-dom","hls.js"],R):(Ae=typeof globalThis<"u"?globalThis:Ae||self,R(Ae.ReactVideoPlayer={},Ae.React,Ae.ReactDOM,Ae.Hls))})(this,(function(Ae,R,Qr,Ye){"use strict";function eo(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 f=eo(R),to=eo(Qr);var Bt={exports:{}},Tt={};/**
|
|
2
2
|
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
3
|
+
* react-jsx-runtime.production.min.js
|
|
4
4
|
*
|
|
5
|
-
* Copyright (c)
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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 no;function tc(){if(no)return Tt;no=1;var e=R,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,i={key:!0,ref:!0,__self:!0,__source:!0};function s(a,c,l){var d,u={},g=null,m=null;l!==void 0&&(g=""+l),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(m=c.ref);for(d in c)r.call(c,d)&&!i.hasOwnProperty(d)&&(u[d]=c[d]);if(a&&a.defaultProps)for(d in c=a.defaultProps,c)u[d]===void 0&&(u[d]=c[d]);return{$$typeof:t,type:a,key:g,ref:m,props:u,_owner:o.current}}return Tt.Fragment=n,Tt.jsx=s,Tt.jsxs=s,Tt}var Mt={};/**
|
|
10
10
|
* @license React
|
|
11
11
|
* react-jsx-runtime.development.js
|
|
12
12
|
*
|
|
13
|
-
* Copyright (c)
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
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
|
|
17
|
+
*/var ro;function nc(){return ro||(ro=1,process.env.NODE_ENV!=="production"&&(function(){var e=R,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),a=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen"),w=Symbol.iterator,v="@@iterator";function b(h){if(h===null||typeof h!="object")return null;var T=w&&h[w]||h[v];return typeof T=="function"?T:null}var x=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function E(h){{for(var T=arguments.length,O=new Array(T>1?T-1:0),L=1;L<T;L++)O[L-1]=arguments[L];y("error",h,O)}}function y(h,T,O){{var L=x.ReactDebugCurrentFrame,q=L.getStackAddendum();q!==""&&(T+="%s",O=O.concat([q]));var J=O.map(function(K){return String(K)});J.unshift("Warning: "+T),Function.prototype.apply.call(console[h],console,J)}}var S=!1,P=!1,M=!1,C=!1,I=!1,j;j=Symbol.for("react.module.reference");function _(h){return!!(typeof h=="string"||typeof h=="function"||h===r||h===i||I||h===o||h===l||h===d||C||h===m||S||P||M||typeof h=="object"&&h!==null&&(h.$$typeof===g||h.$$typeof===u||h.$$typeof===s||h.$$typeof===a||h.$$typeof===c||h.$$typeof===j||h.getModuleId!==void 0))}function F(h,T,O){var L=h.displayName;if(L)return L;var q=T.displayName||T.name||"";return q!==""?O+"("+q+")":O}function U(h){return h.displayName||"Context"}function N(h){if(h==null)return null;if(typeof h.tag=="number"&&E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case l:return"Suspense";case d:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case a:var T=h;return U(T)+".Consumer";case s:var O=h;return U(O._context)+".Provider";case c:return F(h,h.render,"ForwardRef");case u:var L=h.displayName||null;return L!==null?L:N(h.type)||"Memo";case g:{var q=h,J=q._payload,K=q._init;try{return N(K(J))}catch{return null}}}return null}var H=Object.assign,G=0,$,V,D,A,Q,ae,te;function Se(){}Se.__reactDisabledLog=!0;function Te(){{if(G===0){$=console.log,V=console.info,D=console.warn,A=console.error,Q=console.group,ae=console.groupCollapsed,te=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Se,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}G++}}function Me(){{if(G--,G===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:H({},h,{value:$}),info:H({},h,{value:V}),warn:H({},h,{value:D}),error:H({},h,{value:A}),group:H({},h,{value:Q}),groupCollapsed:H({},h,{value:ae}),groupEnd:H({},h,{value:te})})}G<0&&E("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var le=x.ReactCurrentDispatcher,Z;function ue(h,T,O){{if(Z===void 0)try{throw Error()}catch(q){var L=q.stack.trim().match(/\n( *(at )?)/);Z=L&&L[1]||""}return`
|
|
18
|
+
`+Z+h}}var ye=!1,je;{var Ke=typeof WeakMap=="function"?WeakMap:Map;je=new Ke}function we(h,T){if(!h||ye)return"";{var O=je.get(h);if(O!==void 0)return O}var L;ye=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var J;J=le.current,le.current=null,Te();try{if(T){var K=function(){throw Error()};if(Object.defineProperty(K.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(K,[])}catch(me){L=me}Reflect.construct(h,[],K)}else{try{K.call()}catch(me){L=me}h.call(K.prototype)}}else{try{throw Error()}catch(me){L=me}h()}}catch(me){if(me&&L&&typeof me.stack=="string"){for(var z=me.stack.split(`
|
|
19
|
+
`),fe=L.stack.split(`
|
|
20
|
+
`),ne=z.length-1,se=fe.length-1;ne>=1&&se>=0&&z[ne]!==fe[se];)se--;for(;ne>=1&&se>=0;ne--,se--)if(z[ne]!==fe[se]){if(ne!==1||se!==1)do if(ne--,se--,se<0||z[ne]!==fe[se]){var Ee=`
|
|
21
|
+
`+z[ne].replace(" at new "," at ");return h.displayName&&Ee.includes("<anonymous>")&&(Ee=Ee.replace("<anonymous>",h.displayName)),typeof h=="function"&&je.set(h,Ee),Ee}while(ne>=1&&se>=0);break}}}finally{ye=!1,le.current=J,Me(),Error.prepareStackTrace=q}var Rt=h?h.displayName||h.name:"",ot=Rt?ue(Rt):"";return typeof h=="function"&&je.set(h,ot),ot}function Ct(h,T,O){return we(h,!1)}function mm(h){var T=h.prototype;return!!(T&&T.isReactComponent)}function Fn(h,T,O){if(h==null)return"";if(typeof h=="function")return we(h,mm(h));if(typeof h=="string")return ue(h);switch(h){case l:return ue("Suspense");case d:return ue("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return Ct(h.render);case u:return Fn(h.type,T,O);case g:{var L=h,q=L._payload,J=L._init;try{return Fn(J(q),T,O)}catch{}}}return""}var Ht=Object.prototype.hasOwnProperty,Ha={},Ba=x.ReactDebugCurrentFrame;function $n(h){if(h){var T=h._owner,O=Fn(h.type,h._source,T?T.type:null);Ba.setExtraStackFrame(O)}else Ba.setExtraStackFrame(null)}function gm(h,T,O,L,q){{var J=Function.call.bind(Ht);for(var K in h)if(J(h,K)){var z=void 0;try{if(typeof h[K]!="function"){var fe=Error((L||"React class")+": "+O+" type `"+K+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[K]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw fe.name="Invariant Violation",fe}z=h[K](T,K,L,O,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(ne){z=ne}z&&!(z instanceof Error)&&($n(q),E("%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).",L||"React class",O,K,typeof z),$n(null)),z instanceof Error&&!(z.message in Ha)&&(Ha[z.message]=!0,$n(q),E("Failed %s type: %s",O,z.message),$n(null))}}}var vm=Array.isArray;function Gr(h){return vm(h)}function ym(h){{var T=typeof Symbol=="function"&&Symbol.toStringTag,O=T&&h[Symbol.toStringTag]||h.constructor.name||"Object";return O}}function wm(h){try{return Wa(h),!1}catch{return!0}}function Wa(h){return""+h}function Ua(h){if(wm(h))return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ym(h)),Wa(h)}var za=x.ReactCurrentOwner,bm={key:!0,ref:!0,__self:!0,__source:!0},Ka,Ya;function xm(h){if(Ht.call(h,"ref")){var T=Object.getOwnPropertyDescriptor(h,"ref").get;if(T&&T.isReactWarning)return!1}return h.ref!==void 0}function Sm(h){if(Ht.call(h,"key")){var T=Object.getOwnPropertyDescriptor(h,"key").get;if(T&&T.isReactWarning)return!1}return h.key!==void 0}function Em(h,T){typeof h.ref=="string"&&za.current}function Cm(h,T){{var O=function(){Ka||(Ka=!0,E("%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)",T))};O.isReactWarning=!0,Object.defineProperty(h,"key",{get:O,configurable:!0})}}function Pm(h,T){{var O=function(){Ya||(Ya=!0,E("%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)",T))};O.isReactWarning=!0,Object.defineProperty(h,"ref",{get:O,configurable:!0})}}var Rm=function(h,T,O,L,q,J,K){var z={$$typeof:t,type:h,key:T,ref:O,props:K,_owner:J};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:L}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:q}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Tm(h,T,O,L,q){{var J,K={},z=null,fe=null;O!==void 0&&(Ua(O),z=""+O),Sm(T)&&(Ua(T.key),z=""+T.key),xm(T)&&(fe=T.ref,Em(T,q));for(J in T)Ht.call(T,J)&&!bm.hasOwnProperty(J)&&(K[J]=T[J]);if(h&&h.defaultProps){var ne=h.defaultProps;for(J in ne)K[J]===void 0&&(K[J]=ne[J])}if(z||fe){var se=typeof h=="function"?h.displayName||h.name||"Unknown":h;z&&Cm(K,se),fe&&Pm(K,se)}return Rm(h,z,fe,q,L,za.current,K)}}var Xr=x.ReactCurrentOwner,Ga=x.ReactDebugCurrentFrame;function Pt(h){if(h){var T=h._owner,O=Fn(h.type,h._source,T?T.type:null);Ga.setExtraStackFrame(O)}else Ga.setExtraStackFrame(null)}var qr;qr=!1;function Zr(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function Xa(){{if(Xr.current){var h=N(Xr.current.type);if(h)return`
|
|
22
|
+
|
|
23
|
+
Check the render method of \``+h+"`."}return""}}function Mm(h){return""}var qa={};function Am(h){{var T=Xa();if(!T){var O=typeof h=="string"?h:h.displayName||h.name;O&&(T=`
|
|
24
|
+
|
|
25
|
+
Check the top-level render call using <`+O+">.")}return T}}function Za(h,T){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var O=Am(T);if(qa[O])return;qa[O]=!0;var L="";h&&h._owner&&h._owner!==Xr.current&&(L=" It was passed a child from "+N(h._owner.type)+"."),Pt(h),E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',O,L),Pt(null)}}function Ja(h,T){{if(typeof h!="object")return;if(Gr(h))for(var O=0;O<h.length;O++){var L=h[O];Zr(L)&&Za(L,T)}else if(Zr(h))h._store&&(h._store.validated=!0);else if(h){var q=b(h);if(typeof q=="function"&&q!==h.entries)for(var J=q.call(h),K;!(K=J.next()).done;)Zr(K.value)&&Za(K.value,T)}}}function km(h){{var T=h.type;if(T==null||typeof T=="string")return;var O;if(typeof T=="function")O=T.propTypes;else if(typeof T=="object"&&(T.$$typeof===c||T.$$typeof===u))O=T.propTypes;else return;if(O){var L=N(T);gm(O,h.props,"prop",L,h)}else if(T.PropTypes!==void 0&&!qr){qr=!0;var q=N(T);E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof T.getDefaultProps=="function"&&!T.getDefaultProps.isReactClassApproved&&E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function _m(h){{for(var T=Object.keys(h.props),O=0;O<T.length;O++){var L=T[O];if(L!=="children"&&L!=="key"){Pt(h),E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",L),Pt(null);break}}h.ref!==null&&(Pt(h),E("Invalid attribute `ref` supplied to `React.Fragment`."),Pt(null))}}var Qa={};function ec(h,T,O,L,q,J){{var K=_(h);if(!K){var z="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(z+=" 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 fe=Mm();fe?z+=fe:z+=Xa();var ne;h===null?ne="null":Gr(h)?ne="array":h!==void 0&&h.$$typeof===t?(ne="<"+(N(h.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):ne=typeof h,E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ne,z)}var se=Tm(h,T,O,q,J);if(se==null)return se;if(K){var Ee=T.children;if(Ee!==void 0)if(L)if(Gr(Ee)){for(var Rt=0;Rt<Ee.length;Rt++)Ja(Ee[Rt],h);Object.freeze&&Object.freeze(Ee)}else E("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 Ja(Ee,h)}if(Ht.call(T,"key")){var ot=N(h),me=Object.keys(T).filter(function(Nm){return Nm!=="key"}),Jr=me.length>0?"{key: someKey, "+me.join(": ..., ")+": ...}":"{key: someKey}";if(!Qa[ot+Jr]){var jm=me.length>0?"{"+me.join(": ..., ")+": ...}":"{}";E(`A props object containing a "key" prop is being spread into JSX:
|
|
18
26
|
let props = %s;
|
|
19
27
|
<%s {...props} />
|
|
20
28
|
React keys must be passed directly to JSX without using spread:
|
|
21
29
|
let props = %s;
|
|
22
|
-
<%s key={someKey} {...props} />`,X,G,se,G),A[G+X]=!0)}if(G=null,L!==void 0&&(n(L),G=""+L),i(O)&&(n(O.key),G=""+O.key),"key"in O){L={};for(var Re in O)Re!=="key"&&(L[Re]=O[Re])}else L=O;return G&&a(L,typeof C=="function"?C.displayName||C.name||"Unknown":C),l(C,G,te,re,o(),L,oe,Y)}function u(C){typeof C=="object"&&C!==null&&C.$$typeof===m&&C._store&&(C._store.validated=1)}var h=R,m=Symbol.for("react.transitional.element"),y=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),S=Symbol.for("react.consumer"),v=Symbol.for("react.context"),x=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),I=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),D=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=Object.prototype.hasOwnProperty,W=Array.isArray,B=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(C){return C()}};var K,j={},F=h.react_stack_bottom_frame.bind(h,s)(),_=B(r(s)),A={};ut.Fragment=g,ut.jsx=function(C,O,L,X,re){var te=1e4>D.recentlyCreatedOwnerStacks++;return d(C,O,L,!1,X,re,te?Error("react-stack-top-frame"):F,te?B(r(C)):_)},ut.jsxs=function(C,O,L,X,re){var te=1e4>D.recentlyCreatedOwnerStacks++;return d(C,O,L,!0,X,re,te?Error("react-stack-top-frame"):F,te?B(r(C)):_)}})()),ut}var Or;function ga(){return Or||(Or=1,process.env.NODE_ENV==="production"?Et.exports=ma():Et.exports=ha()),Et.exports}var p=ga();const va=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Ct(e,t){const n=R.useRef(e);va(()=>{n.current=e},[e]),R.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function ya(e){const[,t]=R.useState(0);Ct(()=>t(n=>n+1),e)}const Dr=e=>{let t;const n=new Set,r=(l,d)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const h=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(m=>m(t,h))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,o,a);return a},wa=(e=>e?Dr(e):Dr),ba=e=>e;function wn(e,t=ba){const n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}const Lr=e=>{const t=wa(e),n=r=>wn(t,r);return Object.assign(n,t),n},Nr=(e=>e?Lr(e):Lr),xa=(e,t)=>Nr(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})})),jr=R.createContext(null),Sa=({children:e,startDate:t,endDate:n})=>{const r=R.useRef(null);return r.current||(r.current=xa(t,n)),p.jsx(jr.Provider,{value:r.current,children:e})},ae=e=>{const t=R.useContext(jr);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return wn(t,e)};var Z=function(){return Z=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},Z.apply(this,arguments)};function Fr(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Te(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,s;r<o;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function Ea(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ca=/^((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)-.*))$/,Pa=Ea(function(e){return Ca.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),q="-ms-",dt="-moz-",U="-webkit-",$r="comm",Pt="rule",bn="decl",Ra="@import",Vr="@keyframes",Ta="@layer",Hr=Math.abs,xn=String.fromCharCode,Sn=Object.assign;function Aa(e,t){return ne(e,0)^45?(((t<<2^ne(e,0))<<2^ne(e,1))<<2^ne(e,2))<<2^ne(e,3):0}function Br(e){return e.trim()}function Se(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,n){return e.replace(t,n)}function Rt(e,t,n){return e.indexOf(t,n)}function ne(e,t){return e.charCodeAt(t)|0}function We(e,t,n){return e.slice(t,n)}function ge(e){return e.length}function Wr(e){return e.length}function ft(e,t){return t.push(e),e}function Ma(e,t){return e.map(t).join("")}function zr(e,t){return e.filter(function(n){return!Se(n,t)})}var Tt=1,ze=1,Ur=0,ue=0,J=0,Ue="";function At(e,t,n,r,o,s,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Tt,column:ze,length:i,return:"",siblings:a}}function Ae(e,t){return Sn(At("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function Ke(e){for(;e.root;)e=Ae(e.root,{children:[e]});ft(e,e.siblings)}function ka(){return J}function Ia(){return J=ue>0?ne(Ue,--ue):0,ze--,J===10&&(ze=1,Tt--),J}function fe(){return J=ue<Ur?ne(Ue,ue++):0,ze++,J===10&&(ze=1,Tt++),J}function Le(){return ne(Ue,ue)}function Mt(){return ue}function kt(e,t){return We(Ue,e,t)}function En(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 _a(e){return Tt=ze=1,Ur=ge(Ue=e),ue=0,[]}function Oa(e){return Ue="",e}function Cn(e){return Br(kt(ue-1,Pn(e===91?e+2:e===40?e+1:e)))}function Da(e){for(;(J=Le())&&J<33;)fe();return En(e)>2||En(J)>3?"":" "}function La(e,t){for(;--t&&fe()&&!(J<48||J>102||J>57&&J<65||J>70&&J<97););return kt(e,Mt()+(t<6&&Le()==32&&fe()==32))}function Pn(e){for(;fe();)switch(J){case e:return ue;case 34:case 39:e!==34&&e!==39&&Pn(J);break;case 40:e===41&&Pn(e);break;case 92:fe();break}return ue}function Na(e,t){for(;fe()&&e+J!==57;)if(e+J===84&&Le()===47)break;return"/*"+kt(t,ue-1)+"*"+xn(e===47?e:fe())}function ja(e){for(;!En(Le());)fe();return kt(e,ue)}function Fa(e){return Oa(It("",null,null,null,[""],e=_a(e),0,[0],e))}function It(e,t,n,r,o,s,i,a,c){for(var l=0,d=0,u=i,h=0,m=0,y=0,g=1,w=1,b=1,S=0,v="",x=o,P=s,T=r,E=v;w;)switch(y=S,S=fe()){case 40:if(y!=108&&ne(E,u-1)==58){Rt(E+=$(Cn(S),"&","&\f"),"&\f",Hr(l?a[l-1]:0))!=-1&&(b=-1);break}case 34:case 39:case 91:E+=Cn(S);break;case 9:case 10:case 13:case 32:E+=Da(y);break;case 92:E+=La(Mt()-1,7);continue;case 47:switch(Le()){case 42:case 47:ft($a(Na(fe(),Mt()),t,n,c),c);break;default:E+="/"}break;case 123*g:a[l++]=ge(E)*b;case 125*g:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+d:b==-1&&(E=$(E,/\f/g,"")),m>0&&ge(E)-u&&ft(m>32?Gr(E+";",r,n,u-1,c):Gr($(E," ","")+";",r,n,u-2,c),c);break;case 59:E+=";";default:if(ft(T=Kr(E,t,n,l,d,o,a,v,x=[],P=[],u,s),s),S===123)if(d===0)It(E,t,T,T,x,s,u,a,P);else switch(h===99&&ne(E,3)===110?100:h){case 100:case 108:case 109:case 115:It(e,T,T,r&&ft(Kr(e,T,T,0,0,o,a,v,o,x=[],u,P),P),o,P,u,a,r?x:P);break;default:It(E,T,T,T,[""],P,0,a,P)}}l=d=m=0,g=b=1,v=E="",u=i;break;case 58:u=1+ge(E),m=y;default:if(g<1){if(S==123)--g;else if(S==125&&g++==0&&Ia()==125)continue}switch(E+=xn(S),S*g){case 38:b=d>0?1:(E+="\f",-1);break;case 44:a[l++]=(ge(E)-1)*b,b=1;break;case 64:Le()===45&&(E+=Cn(fe())),h=Le(),d=u=ge(v=E+=ja(Mt())),S++;break;case 45:y===45&&ge(E)==2&&(g=0)}}return s}function Kr(e,t,n,r,o,s,i,a,c,l,d,u){for(var h=o-1,m=o===0?s:[""],y=Wr(m),g=0,w=0,b=0;g<r;++g)for(var S=0,v=We(e,h+1,h=Hr(w=i[g])),x=e;S<y;++S)(x=Br(w>0?m[S]+" "+v:$(v,/&\f/g,m[S])))&&(c[b++]=x);return At(e,t,n,o===0?Pt:a,c,l,d,u)}function $a(e,t,n,r){return At(e,t,n,$r,xn(ka()),We(e,2,-2),0,r)}function Gr(e,t,n,r,o){return At(e,t,n,bn,We(e,0,r),We(e,r+1,-1),r,o)}function Yr(e,t,n){switch(Aa(e,t)){case 5103:return U+"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 U+e+e;case 4789:return dt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+dt+e+q+e+e;case 5936:switch(ne(e,t+11)){case 114:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+q+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return U+e+q+e+e;case 6165:return U+e+q+"flex-"+e+e;case 5187:return U+e+$(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+q+"flex-$1$2")+e;case 5443:return U+e+q+"flex-item-"+$(e,/flex-|-self/g,"")+(Se(e,/flex-|baseline/)?"":q+"grid-row-"+$(e,/flex-|-self/g,""))+e;case 4675:return U+e+q+"flex-line-pack"+$(e,/align-content|flex-|-self/g,"")+e;case 5548:return U+e+q+$(e,"shrink","negative")+e;case 5292:return U+e+q+$(e,"basis","preferred-size")+e;case 6060:return U+"box-"+$(e,"-grow","")+U+e+q+$(e,"grow","positive")+e;case 4554:return U+$(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+q+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4200:if(!Se(e,/flex-|baseline/))return q+"grid-column-align"+We(e,t)+e;break;case 2592:case 3360:return q+$(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Se(r.props,/grid-\w+-end/)})?~Rt(e+(n=n[t].value),"span",0)?e:q+$(e,"-start","")+e+q+"grid-row-span:"+(~Rt(n,"span",0)?Se(n,/\d+/):+Se(n,/\d+/)-+Se(e,/\d+/))+";":q+$(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Se(r.props,/grid-\w+-start/)})?e:q+$($(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,U+"$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(ge(e)-1-t>6)switch(ne(e,t+1)){case 109:if(ne(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+dt+(ne(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Rt(e,"stretch",0)?Yr($(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return $(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,i,a,c,l){return q+o+":"+s+l+(i?q+o+"-span:"+(a?c:+c-+s)+l:"")+e});case 4949:if(ne(e,t+6)===121)return $(e,":",":"+U)+e;break;case 6444:switch(ne(e,ne(e,14)===45?18:11)){case 120:return $(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+U+(ne(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+q+"$2box$3")+e;case 100:return $(e,":",":"+q)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return $(e,"scroll-","scroll-snap-")+e}return e}function _t(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Va(e,t,n,r){switch(e.type){case Ta:if(e.children.length)break;case Ra:case bn:return e.return=e.return||e.value;case $r:return"";case Vr:return e.return=e.value+"{"+_t(e.children,r)+"}";case Pt:if(!ge(e.value=e.props.join(",")))return""}return ge(n=_t(e.children,r))?e.return=e.value+"{"+n+"}":""}function Ha(e){var t=Wr(e);return function(n,r,o,s){for(var i="",a=0;a<t;a++)i+=e[a](n,r,o,s)||"";return i}}function Ba(e){return function(t){t.root||(t=t.return)&&e(t)}}function Wa(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case bn:e.return=Yr(e.value,e.length,n);return;case Vr:return _t([Ae(e,{value:$(e.value,"@","@"+U)})],r);case Pt:if(e.length)return Ma(n=e.props,function(o){switch(Se(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Ke(Ae(e,{props:[$(o,/:(read-\w+)/,":"+dt+"$1")]})),Ke(Ae(e,{props:[o]})),Sn(e,{props:zr(n,r)});break;case"::placeholder":Ke(Ae(e,{props:[$(o,/:(plac\w+)/,":"+U+"input-$1")]})),Ke(Ae(e,{props:[$(o,/:(plac\w+)/,":"+dt+"$1")]})),Ke(Ae(e,{props:[$(o,/:(plac\w+)/,q+"input-$1")]})),Ke(Ae(e,{props:[o]})),Sn(e,{props:zr(n,r)});break}return""})}}var za={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},Ne=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Xr="active",qr="data-styled-version",Ot="6.1.19",Rn=`/*!sc*/
|
|
23
|
-
`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Jr,ot,jm,ot),Qa[ot+Jr]=!0}}return h===r?_m(se):km(se),se}}function Om(h,T,O){return ec(h,T,O,!0)}function Im(h,T,O){return ec(h,T,O,!1)}var Dm=Im,Lm=Om;Mt.Fragment=r,Mt.jsx=Dm,Mt.jsxs=Lm})()),Mt}var oo;function rc(){return oo||(oo=1,process.env.NODE_ENV==="production"?Bt.exports=tc():Bt.exports=nc()),Bt.exports}var p=rc();const oc=typeof window<"u"?R.useLayoutEffect:R.useEffect;function Wt(e,t){const n=R.useRef(e);oc(()=>{n.current=e},[e]),R.useEffect(()=>{if(t===null)return;const r=setInterval(()=>{n.current()},t);return()=>{clearInterval(r)}},[t])}function ic(e){const[,t]=R.useState(0);Wt(()=>t(n=>n+1),e)}const io=e=>{let t;const n=new Set,r=(l,d)=>{const u=typeof l=="function"?l(t):l;if(!Object.is(u,t)){const g=t;t=d??(typeof u!="object"||u===null)?u:Object.assign({},t,u),n.forEach(m=>m(t,g))}},o=()=>t,a={setState:r,getState:o,getInitialState:()=>c,subscribe:l=>(n.add(l),()=>n.delete(l))},c=t=e(r,o,a);return a},sc=(e=>e?io(e):io),ac=e=>e;function Vn(e,t=ac){const n=R.useSyncExternalStore(e.subscribe,R.useCallback(()=>t(e.getState()),[e,t]),R.useCallback(()=>t(e.getInitialState()),[e,t]));return R.useDebugValue(n),n}const so=e=>{const t=sc(e),n=r=>Vn(t,r);return Object.assign(n,t),n},ao=(e=>e?so(e):so),cc=(e,t)=>ao(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})})),co=R.createContext(null),lc=({children:e,startDate:t,endDate:n})=>{const r=R.useRef(null);return r.current||(r.current=cc(t,n)),p.jsx(co.Provider,{value:r.current,children:e})},pe=e=>{const t=R.useContext(co);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Vn(t,e)};var he=function(){return he=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},he.apply(this,arguments)};function Ge(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;function uc(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var dc=/^((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)-.*))$/,fc=uc(function(e){return dc.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),ee="-ms-",At="-moz-",X="-webkit-",lo="comm",Ut="rule",Hn="decl",pc="@import",uo="@keyframes",hc="@layer",fo=Math.abs,Bn=String.fromCharCode,Wn=Object.assign;function mc(e,t){return ce(e,0)^45?(((t<<2^ce(e,0))<<2^ce(e,1))<<2^ce(e,2))<<2^ce(e,3):0}function po(e){return e.trim()}function Ne(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function zt(e,t,n){return e.indexOf(t,n)}function ce(e,t){return e.charCodeAt(t)|0}function it(e,t,n){return e.slice(t,n)}function ke(e){return e.length}function ho(e){return e.length}function kt(e,t){return t.push(e),e}function gc(e,t){return e.map(t).join("")}function mo(e,t){return e.filter(function(n){return!Ne(n,t)})}var Kt=1,st=1,go=0,be=0,re=0,at="";function Yt(e,t,n,r,o,i,s,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Kt,column:st,length:s,return:"",siblings:a}}function He(e,t){return Wn(Yt("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ct(e){for(;e.root;)e=He(e.root,{children:[e]});kt(e,e.siblings)}function vc(){return re}function yc(){return re=be>0?ce(at,--be):0,st--,re===10&&(st=1,Kt--),re}function Ce(){return re=be<go?ce(at,be++):0,st++,re===10&&(st=1,Kt++),re}function Xe(){return ce(at,be)}function Gt(){return be}function Xt(e,t){return it(at,e,t)}function Un(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 wc(e){return Kt=st=1,go=ke(at=e),be=0,[]}function bc(e){return at="",e}function zn(e){return po(Xt(be-1,Kn(e===91?e+2:e===40?e+1:e)))}function xc(e){for(;(re=Xe())&&re<33;)Ce();return Un(e)>2||Un(re)>3?"":" "}function Sc(e,t){for(;--t&&Ce()&&!(re<48||re>102||re>57&&re<65||re>70&&re<97););return Xt(e,Gt()+(t<6&&Xe()==32&&Ce()==32))}function Kn(e){for(;Ce();)switch(re){case e:return be;case 34:case 39:e!==34&&e!==39&&Kn(re);break;case 40:e===41&&Kn(e);break;case 92:Ce();break}return be}function Ec(e,t){for(;Ce()&&e+re!==57;)if(e+re===84&&Xe()===47)break;return"/*"+Xt(t,be-1)+"*"+Bn(e===47?e:Ce())}function Cc(e){for(;!Un(Xe());)Ce();return Xt(e,be)}function Pc(e){return bc(qt("",null,null,null,[""],e=wc(e),0,[0],e))}function qt(e,t,n,r,o,i,s,a,c){for(var l=0,d=0,u=s,g=0,m=0,w=0,v=1,b=1,x=1,E=0,y="",S=o,P=i,M=r,C=y;b;)switch(w=E,E=Ce()){case 40:if(w!=108&&ce(C,u-1)==58){zt(C+=B(zn(E),"&","&\f"),"&\f",fo(l?a[l-1]:0))!=-1&&(x=-1);break}case 34:case 39:case 91:C+=zn(E);break;case 9:case 10:case 13:case 32:C+=xc(w);break;case 92:C+=Sc(Gt()-1,7);continue;case 47:switch(Xe()){case 42:case 47:kt(Rc(Ec(Ce(),Gt()),t,n,c),c);break;default:C+="/"}break;case 123*v:a[l++]=ke(C)*x;case 125*v:case 59:case 0:switch(E){case 0:case 125:b=0;case 59+d:x==-1&&(C=B(C,/\f/g,"")),m>0&&ke(C)-u&&kt(m>32?yo(C+";",r,n,u-1,c):yo(B(C," ","")+";",r,n,u-2,c),c);break;case 59:C+=";";default:if(kt(M=vo(C,t,n,l,d,o,a,y,S=[],P=[],u,i),i),E===123)if(d===0)qt(C,t,M,M,S,i,u,a,P);else switch(g===99&&ce(C,3)===110?100:g){case 100:case 108:case 109:case 115:qt(e,M,M,r&&kt(vo(e,M,M,0,0,o,a,y,o,S=[],u,P),P),o,P,u,a,r?S:P);break;default:qt(C,M,M,M,[""],P,0,a,P)}}l=d=m=0,v=x=1,y=C="",u=s;break;case 58:u=1+ke(C),m=w;default:if(v<1){if(E==123)--v;else if(E==125&&v++==0&&yc()==125)continue}switch(C+=Bn(E),E*v){case 38:x=d>0?1:(C+="\f",-1);break;case 44:a[l++]=(ke(C)-1)*x,x=1;break;case 64:Xe()===45&&(C+=zn(Ce())),g=Xe(),d=u=ke(y=C+=Cc(Gt())),E++;break;case 45:w===45&&ke(C)==2&&(v=0)}}return i}function vo(e,t,n,r,o,i,s,a,c,l,d,u){for(var g=o-1,m=o===0?i:[""],w=ho(m),v=0,b=0,x=0;v<r;++v)for(var E=0,y=it(e,g+1,g=fo(b=s[v])),S=e;E<w;++E)(S=po(b>0?m[E]+" "+y:B(y,/&\f/g,m[E])))&&(c[x++]=S);return Yt(e,t,n,o===0?Ut:a,c,l,d,u)}function Rc(e,t,n,r){return Yt(e,t,n,lo,Bn(vc()),it(e,2,-2),0,r)}function yo(e,t,n,r,o){return Yt(e,t,n,Hn,it(e,0,r),it(e,r+1,-1),r,o)}function wo(e,t,n){switch(mc(e,t)){case 5103:return X+"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 X+e+e;case 4789:return At+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+At+e+ee+e+e;case 5936:switch(ce(e,t+11)){case 114:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+ee+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return X+e+ee+e+e;case 6165:return X+e+ee+"flex-"+e+e;case 5187:return X+e+B(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+ee+"flex-$1$2")+e;case 5443:return X+e+ee+"flex-item-"+B(e,/flex-|-self/g,"")+(Ne(e,/flex-|baseline/)?"":ee+"grid-row-"+B(e,/flex-|-self/g,""))+e;case 4675:return X+e+ee+"flex-line-pack"+B(e,/align-content|flex-|-self/g,"")+e;case 5548:return X+e+ee+B(e,"shrink","negative")+e;case 5292:return X+e+ee+B(e,"basis","preferred-size")+e;case 6060:return X+"box-"+B(e,"-grow","")+X+e+ee+B(e,"grow","positive")+e;case 4554:return X+B(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+ee+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4200:if(!Ne(e,/flex-|baseline/))return ee+"grid-column-align"+it(e,t)+e;break;case 2592:case 3360:return ee+B(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,o){return t=o,Ne(r.props,/grid-\w+-end/)})?~zt(e+(n=n[t].value),"span",0)?e:ee+B(e,"-start","")+e+ee+"grid-row-span:"+(~zt(n,"span",0)?Ne(n,/\d+/):+Ne(n,/\d+/)-+Ne(e,/\d+/))+";":ee+B(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ne(r.props,/grid-\w+-start/)})?e:ee+B(B(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,X+"$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(ke(e)-1-t>6)switch(ce(e,t+1)){case 109:if(ce(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+At+(ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zt(e,"stretch",0)?wo(B(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return B(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,i,s,a,c,l){return ee+o+":"+i+l+(s?ee+o+"-span:"+(a?c:+c-+i)+l:"")+e});case 4949:if(ce(e,t+6)===121)return B(e,":",":"+X)+e;break;case 6444:switch(ce(e,ce(e,14)===45?18:11)){case 120:return B(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+X+(ce(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+ee+"$2box$3")+e;case 100:return B(e,":",":"+ee)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return B(e,"scroll-","scroll-snap-")+e}return e}function Zt(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function Tc(e,t,n,r){switch(e.type){case hc:if(e.children.length)break;case pc:case Hn:return e.return=e.return||e.value;case lo:return"";case uo:return e.return=e.value+"{"+Zt(e.children,r)+"}";case Ut:if(!ke(e.value=e.props.join(",")))return""}return ke(n=Zt(e.children,r))?e.return=e.value+"{"+n+"}":""}function Mc(e){var t=ho(e);return function(n,r,o,i){for(var s="",a=0;a<t;a++)s+=e[a](n,r,o,i)||"";return s}}function Ac(e){return function(t){t.root||(t=t.return)&&e(t)}}function kc(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Hn:e.return=wo(e.value,e.length,n);return;case uo:return Zt([He(e,{value:B(e.value,"@","@"+X)})],r);case Ut:if(e.length)return gc(n=e.props,function(o){switch(Ne(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ct(He(e,{props:[B(o,/:(read-\w+)/,":"+At+"$1")]})),ct(He(e,{props:[o]})),Wn(e,{props:mo(n,r)});break;case"::placeholder":ct(He(e,{props:[B(o,/:(plac\w+)/,":"+X+"input-$1")]})),ct(He(e,{props:[B(o,/:(plac\w+)/,":"+At+"$1")]})),ct(He(e,{props:[B(o,/:(plac\w+)/,ee+"input-$1")]})),ct(He(e,{props:[o]})),Wn(e,{props:mo(n,r)});break}return""})}}var _c={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},qe=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",bo="active",xo="data-styled-version",Jt="6.1.19",Yn=`/*!sc*/
|
|
31
|
+
`,Qt=typeof window<"u"&&typeof document<"u",Oc=!!(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"),So=/invalid hook call/i,en=new Set,Ic=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.
|
|
24
32
|
`)+`You may see this warning because you've called styled inside another component.
|
|
25
33
|
To resolve this only create new StyledComponents outside of any render method and function component.
|
|
26
34
|
See https://styled-components.com/docs/basics#define-styled-components-outside-of-the-render-method for more info.
|
|
27
|
-
`,o=console.error;try{var
|
|
35
|
+
`,o=console.error;try{var i=!0;console.error=function(s){for(var a=[],c=1;c<arguments.length;c++)a[c-1]=arguments[c];So.test(s)?(i=!1,en.delete(r)):o.apply(void 0,Ge([s],a,!1))},R.useRef(),i&&!en.has(r)&&(console.warn(r),en.add(r))}catch(s){So.test(s.message)&&en.delete(r)}finally{console.error=o}}},tn=Object.freeze([]),lt=Object.freeze({});function Dc(e,t,n){return n===void 0&&(n=lt),e.theme!==n.theme&&e.theme||t||n.theme}var Gn=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"]),Lc=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,jc=/(^-|-$)/g;function Eo(e){return e.replace(Lc,"-").replace(jc,"")}var Nc=/(a)(d)/gi,nn=52,Co=function(e){return String.fromCharCode(e+(e>25?39:97))};function Xn(e){var t,n="";for(t=Math.abs(e);t>nn;t=t/nn|0)n=Co(t%nn)+n;return(Co(t%nn)+n).replace(Nc,"$1-$2")}var qn,Po=5381,Ze=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Ro=function(e){return Ze(Po,e)};function To(e){return Xn(Ro(e)>>>0)}function Mo(e){return process.env.NODE_ENV!=="production"&&typeof e=="string"&&e||e.displayName||e.name||"Component"}function Zn(e){return typeof e=="string"&&(process.env.NODE_ENV==="production"||e.charAt(0)===e.charAt(0).toLowerCase())}var Ao=typeof Symbol=="function"&&Symbol.for,ko=Ao?Symbol.for("react.memo"):60115,Fc=Ao?Symbol.for("react.forward_ref"):60112,$c={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Vc={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Hc=((qn={})[Fc]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},qn[ko]=_o,qn);function Oo(e){return("type"in(t=e)&&t.type.$$typeof)===ko?_o:"$$typeof"in e?Hc[e.$$typeof]:$c;var t}var Bc=Object.defineProperty,Wc=Object.getOwnPropertyNames,Io=Object.getOwnPropertySymbols,Uc=Object.getOwnPropertyDescriptor,zc=Object.getPrototypeOf,Do=Object.prototype;function Lo(e,t,n){if(typeof t!="string"){if(Do){var r=zc(t);r&&r!==Do&&Lo(e,r,n)}var o=Wc(t);Io&&(o=o.concat(Io(t)));for(var i=Oo(e),s=Oo(t),a=0;a<o.length;++a){var c=o[a];if(!(c in Vc||n&&n[c]||s&&c in s||i&&c in i)){var l=Uc(t,c);try{Bc(e,c,l)}catch{}}}}return e}function ut(e){return typeof e=="function"}function Jn(e){return typeof e=="object"&&"styledComponentId"in e}function Je(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Qn(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function dt(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function er(e,t,n){if(n===void 0&&(n=!1),!n&&!dt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=er(e[r],t[r]);else if(dt(t))for(var r in t)e[r]=er(e[r],t[r]);return e}function tr(e,t){Object.defineProperty(e,"toString",{value:t})}var Kc=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
|
|
28
36
|
|
|
29
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.
|
|
30
38
|
|
|
@@ -65,7 +73,7 @@ as for instance in your render method then you may be running into this limitati
|
|
|
65
73
|
|
|
66
74
|
`,17:`CSSStyleSheet could not be found on HTMLStyleElement.
|
|
67
75
|
Has styled-components' style tag been unmounted or altered by another script?
|
|
68
|
-
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ic(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,s=e.length;o<s;o+=1)r.push(e[o]);return r.forEach(function(i){n=n.replace(/%[a-z]/,i)}),n}function qe(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(ic.apply(void 0,Te([sc[e]],t,!1)).trim())}var ac=(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,s=o;t>=s;)if((s<<=1)<0)throw qe(16,"".concat(t));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var i=o;i<s;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(t+1),c=(i=0,n.length);i<c;i++)this.tag.insertRule(a,n[i])&&(this.groupSizes[t]++,a++)},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 s=r;s<o;s++)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),s=o+r,i=o;i<s;i++)n+="".concat(this.tag.getRule(i)).concat(Rn);return n},e})(),cc=1<<30,Ft=new Map,$t=new Map,Vt=1,Ht=function(e){if(Ft.has(e))return Ft.get(e);for(;$t.has(Vt);)Vt++;var t=Vt++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>cc))throw qe(16,"".concat(t));return Ft.set(e,t),$t.set(t,e),t},lc=function(e,t){Vt=t+1,Ft.set(e,t),$t.set(t,e)},uc="style[".concat(Ne,"][").concat(qr,'="').concat(Ot,'"]'),dc=new RegExp("^".concat(Ne,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),fc=function(e,t,n){for(var r,o=n.split(","),s=0,i=o.length;s<i;s++)(r=o[s])&&e.registerName(t,r)},pc=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Rn),o=[],s=0,i=r.length;s<i;s++){var a=r[s].trim();if(a){var c=a.match(dc);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(lc(d,l),fc(e,d,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},fo=function(e){for(var t=document.querySelectorAll(uc),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(Ne)!==Xr&&(pc(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function mc(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var po=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(Ne,"]")));return c[c.length-1]})(n),s=o!==void 0?o.nextSibling:null;r.setAttribute(Ne,Xr),r.setAttribute(qr,Ot);var i=mc();return i&&r.setAttribute("nonce",i),n.insertBefore(r,s),r},hc=(function(){function e(t){this.element=po(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var i=r[o];if(i.ownerNode===n)return i}throw qe(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})(),gc=(function(){function e(t){this.element=po(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})(),vc=(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})(),mo=Dt,yc={isServer:!Dt,useCSSOMInjection:!Ua},ho=(function(){function e(t,n,r){t===void 0&&(t=Ge),n===void 0&&(n={});var o=this;this.options=Z(Z({},yc),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Dt&&mo&&(mo=!1,fo(this)),Dn(this,function(){return(function(s){for(var i=s.getTag(),a=i.length,c="",l=function(u){var h=(function(b){return $t.get(b)})(u);if(h===void 0)return"continue";var m=s.names.get(h),y=i.getGroup(u);if(m===void 0||!m.size||y.length===0)return"continue";var g="".concat(Ne,".g").concat(u,'[id="').concat(h,'"]'),w="";m!==void 0&&m.forEach(function(b){b.length>0&&(w+="".concat(b,","))}),c+="".concat(y).concat(g,'{content:"').concat(w,'"}').concat(Rn)},d=0;d<a;d++)l(d);return c})(o)})}return e.registerId=function(t){return Ht(t)},e.prototype.rehydrate=function(){!this.server&&Dt&&fo(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(Z(Z({},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 vc(o):r?new hc(o):new gc(o)})(this.options),new ac(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(Ht(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(Ht(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Ht(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),wc=/&/g,bc=/^\s*\/\/.*$/gm;function go(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=go(n.children,t)),n})}function xc(e){var t,n,r,o=Ge,s=o.options,i=s===void 0?Ge:s,a=o.plugins,c=a===void 0?Nt:a,l=function(h,m,y){return y.startsWith(n)&&y.endsWith(n)&&y.replaceAll(n,"").length>0?".".concat(t):h},d=c.slice();d.push(function(h){h.type===Pt&&h.value.includes("&")&&(h.props[0]=h.props[0].replace(wc,n).replace(r,l))}),i.prefix&&d.push(Wa),d.push(Va);var u=function(h,m,y,g){m===void 0&&(m=""),y===void 0&&(y=""),g===void 0&&(g="&"),t=g,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var w=h.replace(bc,""),b=Fa(y||m?"".concat(y," ").concat(m," { ").concat(w," }"):w);i.namespace&&(b=go(b,i.namespace));var S=[];return _t(b,Ha(d.concat(Ba(function(v){return S.push(v)})))),S};return u.hash=c.length?c.reduce(function(h,m){return m.name||qe(15),je(h,m.name)},eo).toString():"",u}var Sc=new ho,Ln=xc(),vo=R.createContext({shouldForwardProp:void 0,styleSheet:Sc,stylis:Ln});vo.Consumer,R.createContext(void 0);function yo(){return R.useContext(vo)}var Nn=(function(){function e(t,n){var r=this;this.inject=function(o,s){s===void 0&&(s=Ln);var i=r.name+s.hash;o.hasNameForId(r.id,i)||o.insertRules(r.id,i,s(r.rules,i,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Dn(this,function(){throw qe(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Ln),this.name+t.hash},e})(),Ec=function(e){return e>="A"&&e<="Z"};function wo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;Ec(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var bo=function(e){return e==null||e===!1||e===""},xo=function(e){var t,n,r=[];for(var o in e){var s=e[o];e.hasOwnProperty(o)&&!bo(s)&&(Array.isArray(s)&&s.isCss||Ye(s)?r.push("".concat(wo(o),":"),s,";"):Xe(s)?r.push.apply(r,Te(Te(["".concat(o," {")],xo(s),!1),["}"],!1)):r.push("".concat(wo(o),": ").concat((t=o,(n=s)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in za||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function $e(e,t,n,r){if(bo(e))return[];if(In(e))return[".".concat(e.styledComponentId)];if(Ye(e)){if(!Ye(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof Nn||Xe(o)||o===null||console.error("".concat(ro(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.")),$e(o,t,n,r)}var s;return e instanceof Nn?n?(e.inject(n,r),[e.getName(r)]):[e]:Xe(e)?xo(e):Array.isArray(e)?Array.prototype.concat.apply(Nt,e.map(function(i){return $e(i,t,n,r)})):[e.toString()]}function Cc(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ye(n)&&!In(n))return!1}return!0}var Pc=to(Ot),Rc=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&Cc(t),this.componentId=n,this.baseHash=je(Pc,n),this.baseStyle=r,ho.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=Fe(o,this.staticRulesId);else{var s=_n($e(this.rules,t,n,r)),i=An(je(this.baseHash,s)>>>0);if(!n.hasNameForId(this.componentId,i)){var a=r(s,".".concat(i),void 0,this.componentId);n.insertRules(this.componentId,i,a)}o=Fe(o,i),this.staticRulesId=i}else{for(var c=je(this.baseHash,r.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u,process.env.NODE_ENV!=="production"&&(c=je(c,u));else if(u){var h=_n($e(u,t,n,r));c=je(c,h+d),l+=h}}if(l){var m=An(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(l,".".concat(m),void 0,this.componentId)),o=Fe(o,m)}}return o},e})(),So=R.createContext(void 0);So.Consumer;var jn={},Eo=new Set;function Tc(e,t,n){var r=In(e),o=e,s=!kn(e),i=t.attrs,a=i===void 0?Nt:i,c=t.componentId,l=c===void 0?(function(x,P){var T=typeof x!="string"?"sc":Jr(x);jn[T]=(jn[T]||0)+1;var E="".concat(T,"-").concat(no(Ot+T+jn[T]));return P?"".concat(P,"-").concat(E):E})(t.displayName,t.parentComponentId):c,d=t.displayName,u=d===void 0?(function(x){return kn(x)?"styled.".concat(x):"Styled(".concat(ro(x),")")})(e):d,h=t.displayName&&t.componentId?"".concat(Jr(t.displayName),"-").concat(t.componentId):t.componentId||l,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,y=t.shouldForwardProp;if(r&&o.shouldForwardProp){var g=o.shouldForwardProp;if(t.shouldForwardProp){var w=t.shouldForwardProp;y=function(x,P){return g(x,P)&&w(x,P)}}else y=g}var b=new Rc(n,h,r?o.componentStyle:void 0);function S(x,P){return(function(T,E,I){var N=T.attrs,k=T.componentStyle,D=T.defaultProps,H=T.foldedComponentIds,W=T.styledComponentId,B=T.target,K=R.useContext(So),j=yo(),F=T.shouldForwardProp||j.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(W);var _=Ga(E,K,D)||Ge,A=(function(te,oe,Y){for(var G,se=Z(Z({},oe),{className:void 0,theme:Y}),Re=0;Re<te.length;Re+=1){var Oe=Ye(G=te[Re])?G(se):G;for(var xe in Oe)se[xe]=xe==="className"?Fe(se[xe],Oe[xe]):xe==="style"?Z(Z({},se[xe]),Oe[xe]):Oe[xe]}return oe.className&&(se.className=Fe(se.className,oe.className)),se})(N,E,_),C=A.as||B,O={};for(var L in A)A[L]===void 0||L[0]==="$"||L==="as"||L==="theme"&&A.theme===_||(L==="forwardedAs"?O.as=A.forwardedAs:F&&!F(L,C)||(O[L]=A[L],F||process.env.NODE_ENV!=="development"||Pa(L)||Eo.has(L)||!Tn.has(C)||(Eo.add(L),console.warn('styled-components: it looks like an unknown prop "'.concat(L,'" 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 X=(function(te,oe){var Y=yo(),G=te.generateAndInjectStyles(oe,Y.styleSheet,Y.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(G),G})(k,A);process.env.NODE_ENV!=="production"&&T.warnTooManyClasses&&T.warnTooManyClasses(X);var re=Fe(H,W);return X&&(re+=" "+X),A.className&&(re+=" "+A.className),O[kn(C)&&!Tn.has(C)?"class":"className"]=re,I&&(O.ref=I),R.createElement(C,O)})(v,x,P)}S.displayName=u;var v=R.forwardRef(S);return v.attrs=m,v.componentStyle=b,v.displayName=u,v.shouldForwardProp=y,v.foldedComponentIds=r?Fe(o.foldedComponentIds,o.styledComponentId):"",v.styledComponentId=h,v.target=r?o.target:e,Object.defineProperty(v,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(x){this._foldedDefaultProps=r?(function(P){for(var T=[],E=1;E<arguments.length;E++)T[E-1]=arguments[E];for(var I=0,N=T;I<N.length;I++)On(P,N[I],!0);return P})({},o.defaultProps,x):x}}),process.env.NODE_ENV!=="production"&&(Ka(u,h),v.warnTooManyClasses=(function(x,P){var T={},E=!1;return function(I){if(!E&&(T[I]=!0,Object.keys(T).length>=200)){var N=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(x).concat(N,`.
|
|
76
|
+
`,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function Yc(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],r=[],o=1,i=e.length;o<i;o+=1)r.push(e[o]);return r.forEach(function(s){n=n.replace(/%[a-z]/,s)}),n}function ft(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(Yc.apply(void 0,Ge([Kc[e]],t,!1)).trim())}var Gc=(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,i=o;t>=i;)if((i<<=1)<0)throw ft(16,"".concat(t));this.groupSizes=new Uint32Array(i),this.groupSizes.set(r),this.length=i;for(var s=o;s<i;s++)this.groupSizes[s]=0}for(var a=this.indexOfGroup(t+1),c=(s=0,n.length);s<c;s++)this.tag.insertRule(a,n[s])&&(this.groupSizes[t]++,a++)},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 i=r;i<o;i++)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),i=o+r,s=o;s<i;s++)n+="".concat(this.tag.getRule(s)).concat(Yn);return n},e})(),Xc=1<<30,rn=new Map,on=new Map,sn=1,an=function(e){if(rn.has(e))return rn.get(e);for(;on.has(sn);)sn++;var t=sn++;if(process.env.NODE_ENV!=="production"&&((0|t)<0||t>Xc))throw ft(16,"".concat(t));return rn.set(e,t),on.set(t,e),t},qc=function(e,t){sn=t+1,rn.set(e,t),on.set(t,e)},Zc="style[".concat(qe,"][").concat(xo,'="').concat(Jt,'"]'),Jc=new RegExp("^".concat(qe,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Qc=function(e,t,n){for(var r,o=n.split(","),i=0,s=o.length;i<s;i++)(r=o[i])&&e.registerName(t,r)},el=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Yn),o=[],i=0,s=r.length;i<s;i++){var a=r[i].trim();if(a){var c=a.match(Jc);if(c){var l=0|parseInt(c[1],10),d=c[2];l!==0&&(qc(d,l),Qc(e,d,c[3]),e.getTag().insertRules(l,o)),o.length=0}else o.push(a)}}},jo=function(e){for(var t=document.querySelectorAll(Zc),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(qe)!==bo&&(el(e,o),o.parentNode&&o.parentNode.removeChild(o))}};function tl(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var No=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=(function(a){var c=Array.from(a.querySelectorAll("style[".concat(qe,"]")));return c[c.length-1]})(n),i=o!==void 0?o.nextSibling:null;r.setAttribute(qe,bo),r.setAttribute(xo,Jt);var s=tl();return s&&r.setAttribute("nonce",s),n.insertBefore(r,i),r},nl=(function(){function e(t){this.element=No(t),this.element.appendChild(document.createTextNode("")),this.sheet=(function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,o=0,i=r.length;o<i;o++){var s=r[o];if(s.ownerNode===n)return s}throw ft(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})(),rl=(function(){function e(t){this.element=No(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})(),ol=(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})(),Fo=Qt,il={isServer:!Qt,useCSSOMInjection:!Oc},$o=(function(){function e(t,n,r){t===void 0&&(t=lt),n===void 0&&(n={});var o=this;this.options=he(he({},il),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&Qt&&Fo&&(Fo=!1,jo(this)),tr(this,function(){return(function(i){for(var s=i.getTag(),a=s.length,c="",l=function(u){var g=(function(x){return on.get(x)})(u);if(g===void 0)return"continue";var m=i.names.get(g),w=s.getGroup(u);if(m===void 0||!m.size||w.length===0)return"continue";var v="".concat(qe,".g").concat(u,'[id="').concat(g,'"]'),b="";m!==void 0&&m.forEach(function(x){x.length>0&&(b+="".concat(x,","))}),c+="".concat(w).concat(v,'{content:"').concat(b,'"}').concat(Yn)},d=0;d<a;d++)l(d);return c})(o)})}return e.registerId=function(t){return an(t)},e.prototype.rehydrate=function(){!this.server&&Qt&&jo(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(he(he({},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 ol(o):r?new nl(o):new rl(o)})(this.options),new Gc(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(an(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(an(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(an(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e})(),sl=/&/g,al=/^\s*\/\/.*$/gm;function Vo(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=Vo(n.children,t)),n})}function cl(e){var t,n,r,o=lt,i=o.options,s=i===void 0?lt:i,a=o.plugins,c=a===void 0?tn:a,l=function(g,m,w){return w.startsWith(n)&&w.endsWith(n)&&w.replaceAll(n,"").length>0?".".concat(t):g},d=c.slice();d.push(function(g){g.type===Ut&&g.value.includes("&")&&(g.props[0]=g.props[0].replace(sl,n).replace(r,l))}),s.prefix&&d.push(kc),d.push(Tc);var u=function(g,m,w,v){m===void 0&&(m=""),w===void 0&&(w=""),v===void 0&&(v="&"),t=v,n=m,r=new RegExp("\\".concat(n,"\\b"),"g");var b=g.replace(al,""),x=Pc(w||m?"".concat(w," ").concat(m," { ").concat(b," }"):b);s.namespace&&(x=Vo(x,s.namespace));var E=[];return Zt(x,Mc(d.concat(Ac(function(y){return E.push(y)})))),E};return u.hash=c.length?c.reduce(function(g,m){return m.name||ft(15),Ze(g,m.name)},Po).toString():"",u}var ll=new $o,nr=cl(),Ho=R.createContext({shouldForwardProp:void 0,styleSheet:ll,stylis:nr});Ho.Consumer,R.createContext(void 0);function Bo(){return R.useContext(Ho)}var rr=(function(){function e(t,n){var r=this;this.inject=function(o,i){i===void 0&&(i=nr);var s=r.name+i.hash;o.hasNameForId(r.id,s)||o.insertRules(r.id,s,i(r.rules,s,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,tr(this,function(){throw ft(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=nr),this.name+t.hash},e})(),ul=function(e){return e>="A"&&e<="Z"};function Wo(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;ul(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Uo=function(e){return e==null||e===!1||e===""},zo=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Uo(i)&&(Array.isArray(i)&&i.isCss||ut(i)?r.push("".concat(Wo(o),":"),i,";"):dt(i)?r.push.apply(r,Ge(Ge(["".concat(o," {")],zo(i),!1),["}"],!1)):r.push("".concat(Wo(o),": ").concat((t=o,(n=i)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in _c||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Qe(e,t,n,r){if(Uo(e))return[];if(Jn(e))return[".".concat(e.styledComponentId)];if(ut(e)){if(!ut(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var o=e(t);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof rr||dt(o)||o===null||console.error("".concat(Mo(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.")),Qe(o,t,n,r)}var i;return e instanceof rr?n?(e.inject(n,r),[e.getName(r)]):[e]:dt(e)?zo(e):Array.isArray(e)?Array.prototype.concat.apply(tn,e.map(function(s){return Qe(s,t,n,r)})):[e.toString()]}function dl(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(ut(n)&&!Jn(n))return!1}return!0}var fl=Ro(Jt),pl=(function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&dl(t),this.componentId=n,this.baseHash=Ze(fl,n),this.baseStyle=r,$o.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=Je(o,this.staticRulesId);else{var i=Qn(Qe(this.rules,t,n,r)),s=Xn(Ze(this.baseHash,i)>>>0);if(!n.hasNameForId(this.componentId,s)){var a=r(i,".".concat(s),void 0,this.componentId);n.insertRules(this.componentId,s,a)}o=Je(o,s),this.staticRulesId=s}else{for(var c=Ze(this.baseHash,r.hash),l="",d=0;d<this.rules.length;d++){var u=this.rules[d];if(typeof u=="string")l+=u,process.env.NODE_ENV!=="production"&&(c=Ze(c,u));else if(u){var g=Qn(Qe(u,t,n,r));c=Ze(c,g+d),l+=g}}if(l){var m=Xn(c>>>0);n.hasNameForId(this.componentId,m)||n.insertRules(this.componentId,m,r(l,".".concat(m),void 0,this.componentId)),o=Je(o,m)}}return o},e})(),Ko=R.createContext(void 0);Ko.Consumer;var or={},Yo=new Set;function hl(e,t,n){var r=Jn(e),o=e,i=!Zn(e),s=t.attrs,a=s===void 0?tn:s,c=t.componentId,l=c===void 0?(function(S,P){var M=typeof S!="string"?"sc":Eo(S);or[M]=(or[M]||0)+1;var C="".concat(M,"-").concat(To(Jt+M+or[M]));return P?"".concat(P,"-").concat(C):C})(t.displayName,t.parentComponentId):c,d=t.displayName,u=d===void 0?(function(S){return Zn(S)?"styled.".concat(S):"Styled(".concat(Mo(S),")")})(e):d,g=t.displayName&&t.componentId?"".concat(Eo(t.displayName),"-").concat(t.componentId):t.componentId||l,m=r&&o.attrs?o.attrs.concat(a).filter(Boolean):a,w=t.shouldForwardProp;if(r&&o.shouldForwardProp){var v=o.shouldForwardProp;if(t.shouldForwardProp){var b=t.shouldForwardProp;w=function(S,P){return v(S,P)&&b(S,P)}}else w=v}var x=new pl(n,g,r?o.componentStyle:void 0);function E(S,P){return(function(M,C,I){var j=M.attrs,_=M.componentStyle,F=M.defaultProps,U=M.foldedComponentIds,N=M.styledComponentId,H=M.target,G=R.useContext(Ko),$=Bo(),V=M.shouldForwardProp||$.shouldForwardProp;process.env.NODE_ENV!=="production"&&R.useDebugValue(N);var D=Dc(C,G,F)||lt,A=(function(Me,le,Z){for(var ue,ye=he(he({},le),{className:void 0,theme:Z}),je=0;je<Me.length;je+=1){var Ke=ut(ue=Me[je])?ue(ye):ue;for(var we in Ke)ye[we]=we==="className"?Je(ye[we],Ke[we]):we==="style"?he(he({},ye[we]),Ke[we]):Ke[we]}return le.className&&(ye.className=Je(ye.className,le.className)),ye})(j,C,D),Q=A.as||H,ae={};for(var te in A)A[te]===void 0||te[0]==="$"||te==="as"||te==="theme"&&A.theme===D||(te==="forwardedAs"?ae.as=A.forwardedAs:V&&!V(te,Q)||(ae[te]=A[te],V||process.env.NODE_ENV!=="development"||fc(te)||Yo.has(te)||!Gn.has(Q)||(Yo.add(te),console.warn('styled-components: it looks like an unknown prop "'.concat(te,'" 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 Se=(function(Me,le){var Z=Bo(),ue=Me.generateAndInjectStyles(le,Z.styleSheet,Z.stylis);return process.env.NODE_ENV!=="production"&&R.useDebugValue(ue),ue})(_,A);process.env.NODE_ENV!=="production"&&M.warnTooManyClasses&&M.warnTooManyClasses(Se);var Te=Je(U,N);return Se&&(Te+=" "+Se),A.className&&(Te+=" "+A.className),ae[Zn(Q)&&!Gn.has(Q)?"class":"className"]=Te,I&&(ae.ref=I),R.createElement(Q,ae)})(y,S,P)}E.displayName=u;var y=R.forwardRef(E);return y.attrs=m,y.componentStyle=x,y.displayName=u,y.shouldForwardProp=w,y.foldedComponentIds=r?Je(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=g,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(S){this._foldedDefaultProps=r?(function(P){for(var M=[],C=1;C<arguments.length;C++)M[C-1]=arguments[C];for(var I=0,j=M;I<j.length;I++)er(P,j[I],!0);return P})({},o.defaultProps,S):S}}),process.env.NODE_ENV!=="production"&&(Ic(u,g),y.warnTooManyClasses=(function(S,P){var M={},C=!1;return function(I){if(!C&&(M[I]=!0,Object.keys(M).length>=200)){var j=P?' with the id of "'.concat(P,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(S).concat(j,`.
|
|
69
77
|
`)+`Consider using the attrs method, together with a style object for frequently changed styles.
|
|
70
78
|
Example:
|
|
71
79
|
const Component = styled.div.attrs(props => ({
|
|
@@ -74,11 +82,11 @@ Example:
|
|
|
74
82
|
},
|
|
75
83
|
}))\`width: 100%;\`
|
|
76
84
|
|
|
77
|
-
<Component />`),
|
|
85
|
+
<Component />`),C=!0,M={}}}})(u,g)),tr(y,function(){return".".concat(y.styledComponentId)}),i&&Lo(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Go(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 Xo=function(e){return Object.assign(e,{isCss:!0})};function cn(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(ut(e)||dt(e))return Xo(Qe(Go(tn,Ge([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?Qe(r):Xo(Qe(Go(r,t)))}function ir(e,t,n){if(n===void 0&&(n=lt),!t)throw ft(1,t);var r=function(o){for(var i=[],s=1;s<arguments.length;s++)i[s-1]=arguments[s];return e(t,n,cn.apply(void 0,Ge([o],i,!1)))};return r.attrs=function(o){return ir(e,t,he(he({},n),{attrs:Array.prototype.concat(n.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return ir(e,t,he(he({},n),o))},r}var qo=function(e){return ir(hl,e)},Y=qo;Gn.forEach(function(e){Y[e]=qo(e)});function ml(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=Qn(cn.apply(void 0,Ge([e],t,!1))),o=To(r);return new rr(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.
|
|
78
86
|
Perhaps you're looking to import 'styled-components/native'?
|
|
79
|
-
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var
|
|
87
|
+
Read more about this at https://www.styled-components.com/docs/basics#react-native`);var ln="__sc-".concat(qe,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[ln]||(window[ln]=0),window[ln]===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.
|
|
80
88
|
|
|
81
|
-
See https://s-c.sh/2BAXzed for more info.`),window[
|
|
89
|
+
See https://s-c.sh/2BAXzed for more info.`),window[ln]+=1);function gl({children:e,eventFinishedMessage:t,eventNotStartedMessage:n,eventStartingSoonMessage:r}){const o=pe(l=>l.startDate),i=pe(l=>l.endDate),s=Date.now(),a=s<o.getTime(),c=s>i.getTime();return ic(5e3),a?p.jsx(vl,{startDate:o,title:n||"Event has not started yet.",message:r||"Starting in few seconds..."}):c?p.jsx(yl,{title:t||"Event has finished."}):p.jsx(p.Fragment,{children:e})}function vl({startDate:e,title:t,message:n}){const r=e.getTime()-Date.now(),o=Math.floor(r/(1e3*60*60)),i=Math.floor(r%(1e3*60*60)/(1e3*60));return o||i?p.jsxs(sr,{children:[p.jsx(ar,{children:t}),p.jsxs(wl,{children:["(",o>0?`${o}h ${i}m`:`${i}m`,")"]})]}):p.jsx(sr,{children:p.jsx(ar,{children:n})})}function yl({title:e}){return p.jsx(sr,{children:p.jsx(ar,{children:e})})}const sr=Y.div`
|
|
82
90
|
position: absolute;
|
|
83
91
|
top: 0;
|
|
84
92
|
left: 0;
|
|
@@ -91,21 +99,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
91
99
|
justify-content: center;
|
|
92
100
|
color: black;
|
|
93
101
|
background: #f7e406;
|
|
94
|
-
`,
|
|
102
|
+
`,ar=Y.h3`
|
|
95
103
|
margin: 0;
|
|
96
104
|
padding: 0.5rem 0;
|
|
97
105
|
font-size: 1.5rem;
|
|
98
106
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
99
107
|
"Helvetica Neue", Arial, sans-serif;
|
|
100
108
|
font-weight: 500;
|
|
101
|
-
`,
|
|
109
|
+
`,wl=Y.p`
|
|
102
110
|
margin: 0;
|
|
103
111
|
height: 1.25rem;
|
|
104
112
|
font-size: 1rem;
|
|
105
113
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
106
114
|
"Helvetica Neue", Arial, sans-serif;
|
|
107
115
|
font-weight: 500;
|
|
108
|
-
`;function
|
|
116
|
+
`;function bl(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 et=R.forwardRef(({shape:e="circle",...t},n)=>p.jsx(xl,{ref:n,$shape:e,...t}));et.displayName="PlayerButton";const xl=Y.button`
|
|
109
117
|
margin: 0;
|
|
110
118
|
display: flex;
|
|
111
119
|
align-items: center;
|
|
@@ -143,16 +151,16 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
143
151
|
cursor: not-allowed;
|
|
144
152
|
}
|
|
145
153
|
|
|
146
|
-
${({$shape:e})=>e==="circle"&&
|
|
154
|
+
${({$shape:e})=>e==="circle"&&cn`
|
|
147
155
|
padding: 0;
|
|
148
156
|
width: 2rem;
|
|
149
157
|
height: 2rem;
|
|
150
158
|
`}
|
|
151
159
|
|
|
152
|
-
${({$shape:e})=>e==="square"&&
|
|
160
|
+
${({$shape:e})=>e==="square"&&cn`
|
|
153
161
|
padding: 0.25rem 0.5rem;
|
|
154
162
|
`}
|
|
155
|
-
`;function
|
|
163
|
+
`;function Sl({message:e,...t}){const n=pe(i=>i.delay),r=pe(i=>i.setDelay),o=()=>r(0);return n?p.jsxs(et,{onClick:o,shape:"square",...t,children:[p.jsx("span",{children:e||"Live"}),p.jsx(bl,{})]}):null}function Zo(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M6 5H8V19H6V5ZM16 5H18V19H16V5Z"})})}function Jo(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 El(e,t,n){const r={days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001};return e*(r[t]/r[n])}function Cl(e){return El(e,"milliseconds","seconds")}const pt=e=>{const t=Math.floor(e/60),n=Math.floor(e%60);return`${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`};function Pl(e){const t=typeof window<"u"&&window.navigator?.userAgent||"";return e.test(t)}const Qo=Pl(/iPhone|iPad|iPod/i);function Rl(){const e=document;return!!(e.fullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||e.msFullscreenElement)}function Tl(e){e.requestFullscreen?e.requestFullscreen():e.msRequestFullscreen?e.msRequestFullscreen():e.webkitRequestFullScreen?e.webkitRequestFullScreen():e.webkitEnterFullScreen?e.webkitEnterFullScreen():e.mozRequestFullScreen&&e.mozRequestFullScreen()}function Ml(e){e.exitFullscreen?e.exitFullscreen():e.msExitFullscreen?e.msExitFullscreen():e.webkitExitFullscreen?e.webkitExitFullscreen():e.mozCancelFullScreen&&e.mozCancelFullScreen()}function Al(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 kl=(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()}))},pauseTimeDiff:()=>Cl(Date.now()-t().pauseTime),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})}}),_l=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}})}),Ol=e=>({level:null,levels:null,setLevels:t=>e({levels:t}),setLevel:t=>e({level:t})}),Il=(e,t)=>({isFullscreen:!1,isFullscreenReady:!1,exitFullscreen:()=>{Ml(document),e({isFullscreen:!1})},requestFullscreen:()=>{const n=t().techRef.current,r=t().containerRef.current;if(!n||!r)return;const o=Qo?n:r;o&&Tl(o),e({isFullscreen:!0})},setIsFullscreen:n=>e({isFullscreen:n}),setIsFullscreenReady:n=>e({isFullscreenReady:n})}),Dl=e=>({url:"",setURL:t=>e({url:t})}),Ll=e=>()=>({...e}),jl=(e,t)=>ao()((...n)=>({...kl(...n),..._l(...n),...Il(...n),...Ol(...n),...Dl(...n),...Ll({techRef:e,containerRef:t})(...n)})),ei=R.createContext(null);function Nl({children:e}){const t=R.useRef(null),n=R.useRef(null),r=R.useRef(null);return t.current||(t.current=jl(n,r)),p.jsx(ei.Provider,{value:t.current,children:e})}const k=e=>{const t=R.useContext(ei);if(!t)throw new Error("usePlayerStore must be used within PlayerStoreProvider");return Vn(t,e)};function Fl(){const e=k(c=>c.isPlaying),t=k(c=>c.pause),n=k(c=>c.pauseTime),r=k(c=>c.pauseTimeDiff),o=k(c=>c.play),i=pe(c=>c.delay),s=pe(c=>c.setDelay),a=()=>{e?t():(n&&s(i+r()),o())};return p.jsx(et,{onClick:a,children:e?p.jsx(Zo,{}):p.jsx(Jo,{})})}function ti({className:e,onClick:t,...n}){const r=R.useRef(null),o=k(u=>u.exitFullscreen),i=k(u=>u.isFullscreen),s=k(u=>u.requestFullscreen),a=u=>{d()?(l(),i?o():s()):c(u)},c=u=>{r.current=window.setTimeout(()=>{t?.(u),l()},200)},l=()=>{r.current!==null&&(window.clearTimeout(r.current),r.current=null)},d=()=>r.current!==null;return R.useEffect(()=>()=>{l()},[]),p.jsx($l,{onClick:a,className:e,"aria-label":"Player playback indicator",...n})}const $l=Y.button`
|
|
156
164
|
position: absolute;
|
|
157
165
|
top: 0;
|
|
158
166
|
left: 0;
|
|
@@ -170,11 +178,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
170
178
|
&:focus {
|
|
171
179
|
outline: none;
|
|
172
180
|
}
|
|
173
|
-
`;function
|
|
181
|
+
`;function Vl(){const e=k(r=>r.isPlaying),t=k(r=>r.play),n=()=>{e||t()};return p.jsx(ti,{onClick:n})}const ni=Y.div`
|
|
174
182
|
position: relative;
|
|
175
183
|
width: 100%;
|
|
176
184
|
margin-bottom: -0.25rem;
|
|
177
|
-
`,
|
|
185
|
+
`,ri=Y.div`
|
|
178
186
|
position: absolute;
|
|
179
187
|
bottom: 1.75rem;
|
|
180
188
|
left: 0;
|
|
@@ -185,7 +193,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
185
193
|
opacity: ${({$isVisible:e})=>e?1:0};
|
|
186
194
|
transform: ${({$isVisible:e})=>e?"translateY(0)":"translateY(-0.5rem)"};
|
|
187
195
|
transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
|
|
188
|
-
`,
|
|
196
|
+
`,oi=Y.p`
|
|
189
197
|
margin: 0;
|
|
190
198
|
padding: 0.25rem;
|
|
191
199
|
font-variant-numeric: tabular-nums;
|
|
@@ -197,7 +205,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
197
205
|
color: white;
|
|
198
206
|
background: rgba(0, 0, 0, 0.8);
|
|
199
207
|
border-radius: 1rem;
|
|
200
|
-
`;function Lo(e,[t,n]){return Math.min(n,Math.max(t,e))}function V(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function No(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function zt(...e){return t=>{let n=!1;const r=e.map(o=>{const s=No(o,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let o=0;o<r.length;o++){const s=r[o];typeof s=="function"?s():No(e[o],null)}}}}function Q(...e){return f.useCallback(zt(...e),e)}function Qe(e,t=[]){let n=[];function r(s,i){const a=f.createContext(i),c=n.length;n=[...n,i];const l=u=>{const{scope:h,children:m,...y}=u,g=h?.[e]?.[c]||a,w=f.useMemo(()=>y,Object.values(y));return p.jsx(g.Provider,{value:w,children:m})};l.displayName=s+"Provider";function d(u,h){const m=h?.[e]?.[c]||a,y=f.useContext(m);if(y)return y;if(i!==void 0)return i;throw new Error(`\`${u}\` must be used within \`${s}\``)}return[l,d]}const o=()=>{const s=n.map(i=>f.createContext(i));return function(a){const c=a?.[e]||s;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,el(o,...t)]}function el(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(s){const i=r.reduce((a,{useScope:c,scopeName:l})=>{const u=c(s)[`__scope${l}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}var Me=globalThis?.document?f.useLayoutEffect:()=>{},tl=f[" useInsertionEffect ".trim().toString()]||Me;function Hn({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,s,i]=nl({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=f.useCallback(d=>{if(a){const u=rl(d)?d(e):d;u!==e&&i.current?.(u)}else s(d)},[a,e,s,i]);return[c,l]}function nl({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),s=f.useRef(t);return tl(()=>{s.current=t},[t]),f.useEffect(()=>{o.current!==n&&(s.current?.(n),o.current=n)},[n,o]),[n,r,s]}function rl(e){return typeof e=="function"}var ol=f.createContext(void 0);function Bn(e){const t=f.useContext(ol);return e||t||"ltr"}function sl(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function jo(e){const[t,n]=f.useState(void 0);return Me(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const s=o[0];let i,a;if("borderBoxSize"in s){const c=s.borderBoxSize,l=Array.isArray(c)?c[0]:c;i=l.inlineSize,a=l.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function Ut(e){const t=il(e),n=f.forwardRef((r,o)=>{const{children:s,...i}=r,a=f.Children.toArray(s),c=a.find(cl);if(c){const l=c.props.children,d=a.map(u=>u===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return p.jsx(t,{...i,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return p.jsx(t,{...i,ref:o,children:s})});return n.displayName=`${e}.Slot`,n}function il(e){const t=f.forwardRef((n,r)=>{const{children:o,...s}=n;if(f.isValidElement(o)){const i=ul(o),a=ll(s,o.props);return o.type!==f.Fragment&&(a.ref=r?zt(r,i):i),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var al=Symbol("radix.slottable");function cl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===al}function ll(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...a)=>{const c=s(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function ul(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var dl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ee=dl.reduce((e,t)=>{const n=Ut(`Primitive.${t}`),r=f.forwardRef((o,s)=>{const{asChild:i,...a}=o,c=i?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Fo(e,t){e&&kr.flushSync(()=>e.dispatchEvent(t))}function Wn(e){const t=e+"CollectionProvider",[n,r]=Qe(t),[o,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:w,children:b}=g,S=R.useRef(null),v=R.useRef(new Map).current;return p.jsx(o,{scope:w,itemMap:v,collectionRef:S,children:b})};i.displayName=t;const a=e+"CollectionSlot",c=Ut(a),l=R.forwardRef((g,w)=>{const{scope:b,children:S}=g,v=s(a,b),x=Q(w,v.collectionRef);return p.jsx(c,{ref:x,children:S})});l.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",h=Ut(d),m=R.forwardRef((g,w)=>{const{scope:b,children:S,...v}=g,x=R.useRef(null),P=Q(w,x),T=s(d,b);return R.useEffect(()=>(T.itemMap.set(x,{ref:x,...v}),()=>void T.itemMap.delete(x))),p.jsx(h,{[u]:"",ref:P,children:S})});m.displayName=d;function y(g){const w=s(e+"CollectionConsumer",g);return R.useCallback(()=>{const S=w.collectionRef.current;if(!S)return[];const v=Array.from(S.querySelectorAll(`[${u}]`));return Array.from(w.itemMap.values()).sort((T,E)=>v.indexOf(T.ref.current)-v.indexOf(E.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:i,Slot:l,ItemSlot:m},y,r]}var $o=["PageUp","PageDown"],Vo=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],Ho={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},et="Slider",[zn,fl,pl]=Wn(et),[Bo,Mm]=Qe(et,[pl]),[ml,Kt]=Bo(et),Wo=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:s=1,orientation:i="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:d,onValueChange:u=()=>{},onValueCommit:h=()=>{},inverted:m=!1,form:y,...g}=e,w=f.useRef(new Set),b=f.useRef(0),v=i==="horizontal"?hl:gl,[x=[],P]=Hn({prop:d,defaultProp:l,onChange:D=>{[...w.current][b.current]?.focus(),u(D)}}),T=f.useRef(x);function E(D){const H=xl(x,D);k(D,H)}function I(D){k(D,b.current)}function N(){const D=T.current[b.current];x[b.current]!==D&&h(x)}function k(D,H,{commit:W}={commit:!1}){const B=Pl(s),K=Rl(Math.round((D-r)/s)*s+r,B),j=Lo(K,[r,o]);P((F=[])=>{const _=wl(F,j,H);if(Cl(_,c*s)){b.current=_.indexOf(j);const A=String(_)!==String(F);return A&&W&&h(_),A?_:F}else return F})}return p.jsx(ml,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:b,thumbs:w.current,values:x,orientation:i,form:y,children:p.jsx(zn.Provider,{scope:e.__scopeSlider,children:p.jsx(zn.Slot,{scope:e.__scopeSlider,children:p.jsx(v,{"aria-disabled":a,"data-disabled":a?"":void 0,...g,ref:t,onPointerDown:V(g.onPointerDown,()=>{a||(T.current=x)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:E,onSlideMove:a?void 0:I,onSlideEnd:a?void 0:N,onHomeKeyDown:()=>!a&&k(r,0,{commit:!0}),onEndKeyDown:()=>!a&&k(o,x.length-1,{commit:!0}),onStepKeyDown:({event:D,direction:H})=>{if(!a){const K=$o.includes(D.key)||D.shiftKey&&Vo.includes(D.key)?10:1,j=b.current,F=x[j],_=s*K*H;k(F+_,j,{commit:!0})}}})})})})});Wo.displayName=et;var[zo,Uo]=Bo(et,{startEdge:"left",endEdge:"right",size:"width",direction:1}),hl=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:s,onSlideStart:i,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...d}=e,[u,h]=f.useState(null),m=Q(t,v=>h(v)),y=f.useRef(void 0),g=Bn(o),w=g==="ltr",b=w&&!s||!w&&s;function S(v){const x=y.current||u.getBoundingClientRect(),P=[0,x.width],E=Gn(P,b?[n,r]:[r,n]);return y.current=x,E(v-x.left)}return p.jsx(zo,{scope:e.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:p.jsx(Ko,{dir:g,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:v=>{const x=S(v.clientX);i?.(x)},onSlideMove:v=>{const x=S(v.clientX);a?.(x)},onSlideEnd:()=>{y.current=void 0,c?.()},onStepKeyDown:v=>{const P=Ho[b?"from-left":"from-right"].includes(v.key);l?.({event:v,direction:P?-1:1})}})})}),gl=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:s,onSlideMove:i,onSlideEnd:a,onStepKeyDown:c,...l}=e,d=f.useRef(null),u=Q(t,d),h=f.useRef(void 0),m=!o;function y(g){const w=h.current||d.current.getBoundingClientRect(),b=[0,w.height],v=Gn(b,m?[r,n]:[n,r]);return h.current=w,v(g-w.top)}return p.jsx(zo,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(Ko,{"data-orientation":"vertical",...l,ref:u,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:g=>{const w=y(g.clientY);s?.(w)},onSlideMove:g=>{const w=y(g.clientY);i?.(w)},onSlideEnd:()=>{h.current=void 0,a?.()},onStepKeyDown:g=>{const b=Ho[m?"from-bottom":"from-top"].includes(g.key);c?.({event:g,direction:b?-1:1})}})})}),Ko=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:s,onHomeKeyDown:i,onEndKeyDown:a,onStepKeyDown:c,...l}=e,d=Kt(et,n);return p.jsx(ee.span,{...l,ref:t,onKeyDown:V(e.onKeyDown,u=>{u.key==="Home"?(i(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):$o.concat(Vo).includes(u.key)&&(c(u),u.preventDefault())}),onPointerDown:V(e.onPointerDown,u=>{const h=u.target;h.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(h)?h.focus():r(u)}),onPointerMove:V(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:V(e.onPointerUp,u=>{const h=u.target;h.hasPointerCapture(u.pointerId)&&(h.releasePointerCapture(u.pointerId),s(u))})})}),Go="SliderTrack",Yo=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Kt(Go,n);return p.jsx(ee.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});Yo.displayName=Go;var Un="SliderRange",Xo=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=Kt(Un,n),s=Uo(Un,n),i=f.useRef(null),a=Q(t,i),c=o.values.length,l=o.values.map(h=>Jo(h,o.min,o.max)),d=c>1?Math.min(...l):0,u=100-Math.max(...l);return p.jsx(ee.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[s.startEdge]:d+"%",[s.endEdge]:u+"%"}})});Xo.displayName=Un;var Kn="SliderThumb",qo=f.forwardRef((e,t)=>{const n=fl(e.__scopeSlider),[r,o]=f.useState(null),s=Q(t,a=>o(a)),i=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(vl,{...e,ref:s,index:i})}),vl=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...s}=e,i=Kt(Kn,n),a=Uo(Kn,n),[c,l]=f.useState(null),d=Q(t,S=>l(S)),u=c?i.form||!!c.closest("form"):!0,h=jo(c),m=i.values[r],y=m===void 0?0:Jo(m,i.min,i.max),g=bl(r,i.values.length),w=h?.[a.size],b=w?Sl(w,y,a.direction):0;return f.useEffect(()=>{if(c)return i.thumbs.add(c),()=>{i.thumbs.delete(c)}},[c,i.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${y}% + ${b}px)`},children:[p.jsx(zn.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ee.span,{role:"slider","aria-label":e["aria-label"]||g,"aria-valuemin":i.min,"aria-valuenow":m,"aria-valuemax":i.max,"aria-orientation":i.orientation,"data-orientation":i.orientation,"data-disabled":i.disabled?"":void 0,tabIndex:i.disabled?void 0:0,...s,ref:d,style:m===void 0?{display:"none"}:e.style,onFocus:V(e.onFocus,()=>{i.valueIndexToChangeRef.current=r})})}),u&&p.jsx(Zo,{name:o??(i.name?i.name+(i.values.length>1?"[]":""):void 0),form:i.form,value:m},r)]})});qo.displayName=Kn;var yl="RadioBubbleInput",Zo=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),s=Q(o,r),i=sl(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(i!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[i,t]),p.jsx(ee.input,{style:{display:"none"},...n,ref:s,defaultValue:t})});Zo.displayName=yl;function wl(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,s)=>o-s)}function Jo(e,t,n){const s=100/(n-t)*(e-t);return Lo(s,[0,100])}function bl(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function xl(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function Sl(e,t,n){const r=e/2,s=Gn([0,50],[0,r]);return(r-s(t)*n)*n}function El(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function Cl(e,t){if(t>0){const n=El(e);return Math.min(...n)>=t}return!0}function Gn(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function Pl(e){return(String(e).split(".")[1]||"").length}function Rl(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var Tl=Wo,Al=Yo,Ml=Xo,kl=qo;function Yn({max:e=100,min:t=0,...n}){return p.jsxs(Il,{min:t,max:e,"aria-label":"Player progress",onKeyDown:r=>r.preventDefault(),...n,children:[p.jsx(_l,{children:p.jsx(Ol,{})}),p.jsx(Dl,{})]})}const Il=z(Tl)`
|
|
208
|
+
`;function ii(e,[t,n]){return Math.min(n,Math.max(t,e))}function W(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e?.(o),n===!1||!o.defaultPrevented)return t?.(o)}}function si(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function un(...e){return t=>{let n=!1;const r=e.map(o=>{const i=si(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():si(e[o],null)}}}}function oe(...e){return f.useCallback(un(...e),e)}function ht(e,t=[]){let n=[];function r(i,s){const a=f.createContext(s),c=n.length;n=[...n,s];const l=u=>{const{scope:g,children:m,...w}=u,v=g?.[e]?.[c]||a,b=f.useMemo(()=>w,Object.values(w));return p.jsx(v.Provider,{value:b,children:m})};l.displayName=i+"Provider";function d(u,g){const m=g?.[e]?.[c]||a,w=f.useContext(m);if(w)return w;if(s!==void 0)return s;throw new Error(`\`${u}\` must be used within \`${i}\``)}return[l,d]}const o=()=>{const i=n.map(s=>f.createContext(s));return function(a){const c=a?.[e]||i;return f.useMemo(()=>({[`__scope${e}`]:{...a,[e]:c}}),[a,c])}};return o.scopeName=e,[r,Hl(o,...t)]}function Hl(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((a,{useScope:c,scopeName:l})=>{const u=c(i)[`__scope${l}`];return{...a,...u}},{});return f.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var Be=globalThis?.document?f.useLayoutEffect:()=>{},Bl=f[" useInsertionEffect ".trim().toString()]||Be;function cr({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=Wl({defaultProp:t,onChange:n}),a=e!==void 0,c=a?e:o;{const d=f.useRef(e!==void 0);f.useEffect(()=>{const u=d.current;u!==a&&console.warn(`${r} is changing from ${u?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,r])}const l=f.useCallback(d=>{if(a){const u=Ul(d)?d(e):d;u!==e&&s.current?.(u)}else i(d)},[a,e,i,s]);return[c,l]}function Wl({defaultProp:e,onChange:t}){const[n,r]=f.useState(e),o=f.useRef(n),i=f.useRef(t);return Bl(()=>{i.current=t},[t]),f.useEffect(()=>{o.current!==n&&(i.current?.(n),o.current=n)},[n,o]),[n,r,i]}function Ul(e){return typeof e=="function"}var zl=f.createContext(void 0);function lr(e){const t=f.useContext(zl);return e||t||"ltr"}function Kl(e){const t=f.useRef({value:e,previous:e});return f.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}function ai(e){const[t,n]=f.useState(void 0);return Be(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,a;if("borderBoxSize"in i){const c=i.borderBoxSize,l=Array.isArray(c)?c[0]:c;s=l.inlineSize,a=l.blockSize}else s=e.offsetWidth,a=e.offsetHeight;n({width:s,height:a})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}function dn(e){const t=Yl(e),n=f.forwardRef((r,o)=>{const{children:i,...s}=r,a=f.Children.toArray(i),c=a.find(Xl);if(c){const l=c.props.children,d=a.map(u=>u===c?f.Children.count(l)>1?f.Children.only(null):f.isValidElement(l)?l.props.children:null:u);return p.jsx(t,{...s,ref:o,children:f.isValidElement(l)?f.cloneElement(l,void 0,d):null})}return p.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function Yl(e){const t=f.forwardRef((n,r)=>{const{children:o,...i}=n;if(f.isValidElement(o)){const s=Zl(o),a=ql(i,o.props);return o.type!==f.Fragment&&(a.ref=r?un(r,s):s),f.cloneElement(o,a)}return f.Children.count(o)>1?f.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gl=Symbol("radix.slottable");function Xl(e){return f.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gl}function ql(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...a)=>{const c=i(...a);return o(...a),c}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function Zl(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Jl=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ie=Jl.reduce((e,t)=>{const n=dn(`Primitive.${t}`),r=f.forwardRef((o,i)=>{const{asChild:s,...a}=o,c=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(c,{...a,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function ci(e,t){e&&to.flushSync(()=>e.dispatchEvent(t))}function ur(e){const t=e+"CollectionProvider",[n,r]=ht(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=v=>{const{scope:b,children:x}=v,E=R.useRef(null),y=R.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:y,collectionRef:E,children:x})};s.displayName=t;const a=e+"CollectionSlot",c=dn(a),l=R.forwardRef((v,b)=>{const{scope:x,children:E}=v,y=i(a,x),S=oe(b,y.collectionRef);return p.jsx(c,{ref:S,children:E})});l.displayName=a;const d=e+"CollectionItemSlot",u="data-radix-collection-item",g=dn(d),m=R.forwardRef((v,b)=>{const{scope:x,children:E,...y}=v,S=R.useRef(null),P=oe(b,S),M=i(d,x);return R.useEffect(()=>(M.itemMap.set(S,{ref:S,...y}),()=>void M.itemMap.delete(S))),p.jsx(g,{[u]:"",ref:P,children:E})});m.displayName=d;function w(v){const b=i(e+"CollectionConsumer",v);return R.useCallback(()=>{const E=b.collectionRef.current;if(!E)return[];const y=Array.from(E.querySelectorAll(`[${u}]`));return Array.from(b.itemMap.values()).sort((M,C)=>y.indexOf(M.ref.current)-y.indexOf(C.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:s,Slot:l,ItemSlot:m},w,r]}var li=["PageUp","PageDown"],ui=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],di={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},mt="Slider",[dr,Ql,eu]=ur(mt),[fi,Fm]=ht(mt,[eu]),[tu,fn]=fi(mt),pi=f.forwardRef((e,t)=>{const{name:n,min:r=0,max:o=100,step:i=1,orientation:s="horizontal",disabled:a=!1,minStepsBetweenThumbs:c=0,defaultValue:l=[r],value:d,onValueChange:u=()=>{},onValueCommit:g=()=>{},inverted:m=!1,form:w,...v}=e,b=f.useRef(new Set),x=f.useRef(0),y=s==="horizontal"?nu:ru,[S=[],P]=cr({prop:d,defaultProp:l,onChange:F=>{[...b.current][x.current]?.focus(),u(F)}}),M=f.useRef(S);function C(F){const U=cu(S,F);_(F,U)}function I(F){_(F,x.current)}function j(){const F=M.current[x.current];S[x.current]!==F&&g(S)}function _(F,U,{commit:N}={commit:!1}){const H=fu(i),G=pu(Math.round((F-r)/i)*i+r,H),$=ii(G,[r,o]);P((V=[])=>{const D=su(V,$,U);if(du(D,c*i)){x.current=D.indexOf($);const A=String(D)!==String(V);return A&&N&&g(D),A?D:V}else return V})}return p.jsx(tu,{scope:e.__scopeSlider,name:n,disabled:a,min:r,max:o,valueIndexToChangeRef:x,thumbs:b.current,values:S,orientation:s,form:w,children:p.jsx(dr.Provider,{scope:e.__scopeSlider,children:p.jsx(dr.Slot,{scope:e.__scopeSlider,children:p.jsx(y,{"aria-disabled":a,"data-disabled":a?"":void 0,...v,ref:t,onPointerDown:W(v.onPointerDown,()=>{a||(M.current=S)}),min:r,max:o,inverted:m,onSlideStart:a?void 0:C,onSlideMove:a?void 0:I,onSlideEnd:a?void 0:j,onHomeKeyDown:()=>!a&&_(r,0,{commit:!0}),onEndKeyDown:()=>!a&&_(o,S.length-1,{commit:!0}),onStepKeyDown:({event:F,direction:U})=>{if(!a){const G=li.includes(F.key)||F.shiftKey&&ui.includes(F.key)?10:1,$=x.current,V=S[$],D=i*G*U;_(V+D,$,{commit:!0})}}})})})})});pi.displayName=mt;var[hi,mi]=fi(mt,{startEdge:"left",endEdge:"right",size:"width",direction:1}),nu=f.forwardRef((e,t)=>{const{min:n,max:r,dir:o,inverted:i,onSlideStart:s,onSlideMove:a,onSlideEnd:c,onStepKeyDown:l,...d}=e,[u,g]=f.useState(null),m=oe(t,y=>g(y)),w=f.useRef(void 0),v=lr(o),b=v==="ltr",x=b&&!i||!b&&i;function E(y){const S=w.current||u.getBoundingClientRect(),P=[0,S.width],C=hr(P,x?[n,r]:[r,n]);return w.current=S,C(y-S.left)}return p.jsx(hi,{scope:e.__scopeSlider,startEdge:x?"left":"right",endEdge:x?"right":"left",direction:x?1:-1,size:"width",children:p.jsx(gi,{dir:v,"data-orientation":"horizontal",...d,ref:m,style:{...d.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{const S=E(y.clientX);s?.(S)},onSlideMove:y=>{const S=E(y.clientX);a?.(S)},onSlideEnd:()=>{w.current=void 0,c?.()},onStepKeyDown:y=>{const P=di[x?"from-left":"from-right"].includes(y.key);l?.({event:y,direction:P?-1:1})}})})}),ru=f.forwardRef((e,t)=>{const{min:n,max:r,inverted:o,onSlideStart:i,onSlideMove:s,onSlideEnd:a,onStepKeyDown:c,...l}=e,d=f.useRef(null),u=oe(t,d),g=f.useRef(void 0),m=!o;function w(v){const b=g.current||d.current.getBoundingClientRect(),x=[0,b.height],y=hr(x,m?[r,n]:[n,r]);return g.current=b,y(v-b.top)}return p.jsx(hi,{scope:e.__scopeSlider,startEdge:m?"bottom":"top",endEdge:m?"top":"bottom",size:"height",direction:m?1:-1,children:p.jsx(gi,{"data-orientation":"vertical",...l,ref:u,style:{...l.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:v=>{const b=w(v.clientY);i?.(b)},onSlideMove:v=>{const b=w(v.clientY);s?.(b)},onSlideEnd:()=>{g.current=void 0,a?.()},onStepKeyDown:v=>{const x=di[m?"from-bottom":"from-top"].includes(v.key);c?.({event:v,direction:x?-1:1})}})})}),gi=f.forwardRef((e,t)=>{const{__scopeSlider:n,onSlideStart:r,onSlideMove:o,onSlideEnd:i,onHomeKeyDown:s,onEndKeyDown:a,onStepKeyDown:c,...l}=e,d=fn(mt,n);return p.jsx(ie.span,{...l,ref:t,onKeyDown:W(e.onKeyDown,u=>{u.key==="Home"?(s(u),u.preventDefault()):u.key==="End"?(a(u),u.preventDefault()):li.concat(ui).includes(u.key)&&(c(u),u.preventDefault())}),onPointerDown:W(e.onPointerDown,u=>{const g=u.target;g.setPointerCapture(u.pointerId),u.preventDefault(),d.thumbs.has(g)?g.focus():r(u)}),onPointerMove:W(e.onPointerMove,u=>{u.target.hasPointerCapture(u.pointerId)&&o(u)}),onPointerUp:W(e.onPointerUp,u=>{const g=u.target;g.hasPointerCapture(u.pointerId)&&(g.releasePointerCapture(u.pointerId),i(u))})})}),vi="SliderTrack",yi=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fn(vi,n);return p.jsx(ie.span,{"data-disabled":o.disabled?"":void 0,"data-orientation":o.orientation,...r,ref:t})});yi.displayName=vi;var fr="SliderRange",wi=f.forwardRef((e,t)=>{const{__scopeSlider:n,...r}=e,o=fn(fr,n),i=mi(fr,n),s=f.useRef(null),a=oe(t,s),c=o.values.length,l=o.values.map(g=>Si(g,o.min,o.max)),d=c>1?Math.min(...l):0,u=100-Math.max(...l);return p.jsx(ie.span,{"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,...r,ref:a,style:{...e.style,[i.startEdge]:d+"%",[i.endEdge]:u+"%"}})});wi.displayName=fr;var pr="SliderThumb",bi=f.forwardRef((e,t)=>{const n=Ql(e.__scopeSlider),[r,o]=f.useState(null),i=oe(t,a=>o(a)),s=f.useMemo(()=>r?n().findIndex(a=>a.ref.current===r):-1,[n,r]);return p.jsx(ou,{...e,ref:i,index:s})}),ou=f.forwardRef((e,t)=>{const{__scopeSlider:n,index:r,name:o,...i}=e,s=fn(pr,n),a=mi(pr,n),[c,l]=f.useState(null),d=oe(t,E=>l(E)),u=c?s.form||!!c.closest("form"):!0,g=ai(c),m=s.values[r],w=m===void 0?0:Si(m,s.min,s.max),v=au(r,s.values.length),b=g?.[a.size],x=b?lu(b,w,a.direction):0;return f.useEffect(()=>{if(c)return s.thumbs.add(c),()=>{s.thumbs.delete(c)}},[c,s.thumbs]),p.jsxs("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[a.startEdge]:`calc(${w}% + ${x}px)`},children:[p.jsx(dr.ItemSlot,{scope:e.__scopeSlider,children:p.jsx(ie.span,{role:"slider","aria-label":e["aria-label"]||v,"aria-valuemin":s.min,"aria-valuenow":m,"aria-valuemax":s.max,"aria-orientation":s.orientation,"data-orientation":s.orientation,"data-disabled":s.disabled?"":void 0,tabIndex:s.disabled?void 0:0,...i,ref:d,style:m===void 0?{display:"none"}:e.style,onFocus:W(e.onFocus,()=>{s.valueIndexToChangeRef.current=r})})}),u&&p.jsx(xi,{name:o??(s.name?s.name+(s.values.length>1?"[]":""):void 0),form:s.form,value:m},r)]})});bi.displayName=pr;var iu="RadioBubbleInput",xi=f.forwardRef(({__scopeSlider:e,value:t,...n},r)=>{const o=f.useRef(null),i=oe(o,r),s=Kl(t);return f.useEffect(()=>{const a=o.current;if(!a)return;const c=window.HTMLInputElement.prototype,d=Object.getOwnPropertyDescriptor(c,"value").set;if(s!==t&&d){const u=new Event("input",{bubbles:!0});d.call(a,t),a.dispatchEvent(u)}},[s,t]),p.jsx(ie.input,{style:{display:"none"},...n,ref:i,defaultValue:t})});xi.displayName=iu;function su(e=[],t,n){const r=[...e];return r[n]=t,r.sort((o,i)=>o-i)}function Si(e,t,n){const i=100/(n-t)*(e-t);return ii(i,[0,100])}function au(e,t){return t>2?`Value ${e+1} of ${t}`:t===2?["Minimum","Maximum"][e]:void 0}function cu(e,t){if(e.length===1)return 0;const n=e.map(o=>Math.abs(o-t)),r=Math.min(...n);return n.indexOf(r)}function lu(e,t,n){const r=e/2,i=hr([0,50],[0,r]);return(r-i(t)*n)*n}function uu(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function du(e,t){if(t>0){const n=uu(e);return Math.min(...n)>=t}return!0}function hr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function fu(e){return(String(e).split(".")[1]||"").length}function pu(e,t){const n=Math.pow(10,t);return Math.round(e*n)/n}var hu=pi,mu=yi,gu=wi,vu=bi;const pn=R.forwardRef(({max:e=100,min:t=0,...n},r)=>p.jsxs(yu,{ref:r,min:t,max:e,"aria-label":"Player progress",onKeyDown:o=>o.preventDefault(),...n,children:[p.jsx(wu,{children:p.jsx(bu,{})}),p.jsx(xu,{})]}));pn.displayName="PlayerSlider";const yu=Y(hu)`
|
|
201
209
|
position: relative;
|
|
202
210
|
display: flex;
|
|
203
211
|
align-items: center;
|
|
@@ -211,20 +219,20 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
211
219
|
cursor: not-allowed;
|
|
212
220
|
opacity: 0.5;
|
|
213
221
|
}
|
|
214
|
-
`,
|
|
222
|
+
`,wu=Y(mu)`
|
|
215
223
|
position: relative;
|
|
216
224
|
height: 0.25rem;
|
|
217
225
|
flex-grow: 1;
|
|
218
226
|
background: rgba(255, 255, 255, 0.2);
|
|
219
227
|
border-radius: 1rem;
|
|
220
228
|
overflow: hidden;
|
|
221
|
-
`,
|
|
229
|
+
`,bu=Y(gu)`
|
|
222
230
|
position: absolute;
|
|
223
231
|
height: 100%;
|
|
224
232
|
background: #f7e406;
|
|
225
233
|
transition: width 0.2s ease-in-out;
|
|
226
234
|
border-radius: 1rem;
|
|
227
|
-
`,
|
|
235
|
+
`,xu=Y(vu)`
|
|
228
236
|
display: block;
|
|
229
237
|
width: 0.875rem;
|
|
230
238
|
height: 0.875rem;
|
|
@@ -247,10 +255,10 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
247
255
|
cursor: not-allowed;
|
|
248
256
|
opacity: 0.5;
|
|
249
257
|
}
|
|
250
|
-
`;function
|
|
258
|
+
`;function hn(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 Su=(e,t)=>parseInt(Math.max(0,(Date.now()-(e+t*1e3))/1e3).toFixed(0)),Ei=(e,t)=>Math.max(0,(Date.now()-e-t*1e3)/1e3),Ci=(e,t)=>Math.max(0,(t-e)/1e3),Eu=(e,t=0)=>{const r=t<0?0:t,o=["bytes","kb","mb","gb","tb","pb","eb","zb","yb"],i=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,i)).toFixed(r))}${o[i]}`};function Cu({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(i,s){const a=i.height||i.bitrate||0,c=s.height||s.bitrate||0;return a===c?0:a>c?1:-1}),n.map(i=>{const{bitrate:s,height:a,index:c}=i;o.push({sid:`quality-level-${c}`,label:a?`${a}p`:Eu(s),value:c,selected:r===1||!e&&c===t})}),o}const Pi="vod-player-progress-bar";function Pu(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(0),[o,i]=R.useState(0),[s,a]=R.useState(!1),[c,l]=R.useState(-1),[d,u]=R.useState(-1),g=pe(_=>_.delay),m=pe(_=>_.startTime),w=pe(_=>_.endTime),v=pe(_=>_.setDelay),b=k(_=>_.isPlaying),x=k(_=>_.addIdleLock),E=k(_=>_.removeIdleLock),y=R.useCallback(()=>{r(Ei(m,g)),i(Ci(m,w))},[g,w,m]),S=parseFloat((o?(d!==-1?d:n)/o*100:0).toFixed(1)),P=_=>{u(o*(_[0]/100)),x(Pi)},M=()=>{if(d!==-1){const _=Su(m,d);v(_),u(-1),E(Pi)}},C=()=>a(!0),I=()=>a(!1),j=R.useCallback(_=>{const F=e.current,U=t.current;if(F&&U){const N=hn(F),H=hn(U),G=(_.pageX||_.clientX)-N.left,$=G/N.width;if($<0)return;let V=G-H.width/2;V<0&&(V=0),V>N.width-H.width&&(V=-1),U.style.left=V>-1?`${V}px`:"auto",U.style.right=V>-1?"auto":"0px",l($*o)}C()},[o]);return Wt(()=>y(),b?1e3:null),R.useEffect(()=>{y()},[y]),p.jsxs(ni,{children:[p.jsx(pn,{ref:e,value:[S],onPointerLeave:I,onPointerDown:I,onPointerMove:j,onValueChange:P,onValueCommit:M,step:.1}),p.jsx(ri,{ref:t,$isVisible:s,children:p.jsx(oi,{children:pt(c)})})]})}function Ri({children:e}){return p.jsx(Nl,{children:e})}function Ru({children:e,startDate:t,endDate:n}){return p.jsx(lc,{startDate:t,endDate:n,children:p.jsx(Ri,{children:e})})}const Ti=Y.div`
|
|
251
259
|
display: flex;
|
|
252
260
|
align-items: center;
|
|
253
|
-
`,
|
|
261
|
+
`,Mi=Y.p`
|
|
254
262
|
margin: 0;
|
|
255
263
|
padding: 0;
|
|
256
264
|
font-variant-numeric: tabular-nums;
|
|
@@ -258,11 +266,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
258
266
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
259
267
|
"Helvetica Neue", Arial, sans-serif;
|
|
260
268
|
font-weight: 500;
|
|
261
|
-
`,
|
|
269
|
+
`,Ai=Y(Mi)`
|
|
262
270
|
margin-right: 0.5rem;
|
|
263
|
-
`,
|
|
271
|
+
`,ki=Y(Mi)`
|
|
264
272
|
margin-left: 0.5rem;
|
|
265
|
-
`,
|
|
273
|
+
`,_i=Y.p`
|
|
266
274
|
margin: 0;
|
|
267
275
|
padding: 0;
|
|
268
276
|
font-size: 0.8125rem;
|
|
@@ -273,7 +281,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
273
281
|
&::before {
|
|
274
282
|
content: "/";
|
|
275
283
|
}
|
|
276
|
-
`;function
|
|
284
|
+
`;function Tu(){const[e,t]=R.useState(0),[n,r]=R.useState(0),o=k(l=>l.isPlaying),i=pe(l=>l.delay),s=pe(l=>l.startTime),a=pe(l=>l.endTime),c=R.useCallback(()=>{t(Ei(s,i)),r(Ci(s,a))},[i,a,s]);return Wt(()=>c(),o?1e3:null),R.useEffect(()=>{c()},[c]),i?p.jsxs(Ti,{children:[p.jsx(Ai,{children:pt(e)}),p.jsx(_i,{}),p.jsx(ki,{children:pt(n)})]}):null}function Mu({url:e,isLive:t}){const n=R.useRef(null),r=k(m=>m.level),o=k(m=>m.levels),i=k(m=>m.setLevel),s=k(m=>m.setLevels),a=k(m=>m.techRef),c=R.useCallback(m=>{if(n.current&&(n.current.nextLevel=m,i(null),o)){const w=o.map(v=>({...v,selected:v.value===m}));s(w)}},[o,i,s,n]),l=R.useCallback(()=>{n.current&&(console.log("[Player][Event]","MEDIA_ATTACHED"),n.current.loadSource(e))},[e]),d=R.useCallback(()=>{if(!n.current)return;console.log("[Player][Event]","MANIFEST_LOADED");const m=n.current.levels,w=n.current.currentLevel,v=n.current.autoLevelEnabled;s(Cu({levels:m.map((b,x)=>{const{bitrate:E,height:y,width:S}=b;return{bitrate:E,height:y,index:x,width:S}}),level:w,isAuto:v}))},[s]),u=R.useCallback(()=>{if(!a.current)return;const v=t?{backBufferLength:10,startLevel:-1}:{backBufferLength:60,startLevel:-1};try{console.log("[Player] URL",e),console.log("[Player] Config",JSON.stringify(v)),console.log("[Player] Version",Ye.version),n.current=new Ye(v),n.current.attachMedia(a.current),n.current.on(Ye.Events.MEDIA_ATTACHED,l),n.current.on(Ye.Events.MANIFEST_LOADED,d)}catch(b){throw new Error(`Error initializing Hls: ${b}`)}},[d,l,t,a,e]),g=R.useCallback(()=>{n.current&&(n.current.off(Ye.Events.MEDIA_ATTACHED,l),n.current.off(Ye.Events.MANIFEST_LOADED,d),n.current.destroy(),n.current=null)},[d,l]);return R.useEffect(()=>{r!==null&&c(r)},[r,c]),R.useEffect(()=>(Ye.isSupported()&&u(),g),[g,u]),null}function Oi({url:e,isLive:t,isMuted:n=!1}){const r=k(y=>y.handleDurationChange),o=k(y=>y.handleEnd),i=k(y=>y.handleLoadedMetadata),s=k(y=>y.handleLoadStart),a=k(y=>y.handlePause),c=k(y=>y.handlePlay),l=k(y=>y.handlePlaying),d=k(y=>y.handleSeeked),u=k(y=>y.handleSeeking),g=k(y=>y.handleTimeUpdate),m=k(y=>y.handleWaiting),w=k(y=>y.techRef),v=R.useRef(null),b=()=>t?{}:{onDurationChange:r,onSeeked:d,onSeeking:u,onTimeUpdate:x},x=()=>{(!v.current||Date.now()-v.current>=1e3)&&(g(),v.current=Date.now())},E=b();return p.jsxs(p.Fragment,{children:[p.jsx(Mu,{isLive:t,url:e}),p.jsx(Au,{ref:w,playsInline:!0,autoPlay:!0,controls:!1,muted:n,preload:"auto",crossOrigin:"anonymous",onEnded:o,onLoadedMetadata:i,onLoadStart:s,onPause:a,onPlay:c,onPlaying:l,onWaiting:m,tabIndex:-1,...E})]})}const Au=Y.video`
|
|
277
285
|
position: relative;
|
|
278
286
|
width: 100%;
|
|
279
287
|
height: 100%;
|
|
@@ -281,7 +289,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
281
289
|
@media (min-width: 768px) {
|
|
282
290
|
pointer-events: none;
|
|
283
291
|
}
|
|
284
|
-
`;function
|
|
292
|
+
`;function ku({url:e}){const[t,n]=R.useState(null),r=pe(i=>i.delay),o=R.useCallback(async()=>{n(r?e.replace("playlist.m3u8",`playlist_fmp4_dvr_timeshift-${r}.m3u8`):e)},[r,e]);return R.useEffect(()=>{o()},[o]),t?p.jsx(Oi,{url:t,isLive:!0}):null}const Ii=Y.div`
|
|
285
293
|
position: absolute;
|
|
286
294
|
top: 0;
|
|
287
295
|
left: 0;
|
|
@@ -290,7 +298,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
290
298
|
color: white;
|
|
291
299
|
background: black;
|
|
292
300
|
overflow: hidden;
|
|
293
|
-
`,
|
|
301
|
+
`,Di=Y.div`
|
|
294
302
|
position: absolute;
|
|
295
303
|
left: 0;
|
|
296
304
|
width: 100%;
|
|
@@ -302,7 +310,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
302
310
|
@media (min-width: 768px) {
|
|
303
311
|
padding-top: 2rem;
|
|
304
312
|
}
|
|
305
|
-
`,
|
|
313
|
+
`,Li=Y.div`
|
|
306
314
|
display: flex;
|
|
307
315
|
flex-direction: column;
|
|
308
316
|
padding-left: 0.5rem;
|
|
@@ -314,21 +322,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
314
322
|
padding-left: 1rem;
|
|
315
323
|
padding-right: 1rem;
|
|
316
324
|
}
|
|
317
|
-
`,
|
|
325
|
+
`,ji=Y.div`
|
|
318
326
|
display: flex;
|
|
319
327
|
padding: 0.5rem 0;
|
|
320
328
|
width: 100%;
|
|
321
329
|
align-items: center;
|
|
322
|
-
`,
|
|
330
|
+
`,Ni=Y.div`
|
|
323
331
|
display: flex;
|
|
324
332
|
flex: 1;
|
|
325
333
|
align-items: center;
|
|
326
334
|
gap: 0.5rem;
|
|
327
|
-
`,
|
|
335
|
+
`,Fi=Y(Ni)`
|
|
328
336
|
justify-content: flex-start;
|
|
329
|
-
|
|
337
|
+
`,$i=Y(Ni)`
|
|
330
338
|
justify-content: flex-end;
|
|
331
|
-
`;function
|
|
339
|
+
`;function _u(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M16 3H22V9H20V5H16V3ZM2 3H8V5H4V9H2V3ZM20 19V15H22V21H16V19H20ZM4 19H8V21H2V15H4V19Z"})})}function Ou(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.jsx("path",{d:"M18 7H22V9H16V3H18V7ZM8 9H2V7H6V3H8V9ZM18 17V21H16V15H22V17H18ZM8 15V21H6V17H2V15H8Z"})})}function Vi(){const e=k(l=>l.containerRef),t=k(l=>l.exitFullscreen),n=k(l=>l.isFullscreen),r=k(l=>l.requestFullscreen),o=k(l=>l.setIsFullscreen),i=k(l=>l.setIsFullscreenReady),s=k(l=>l.techRef),a=R.useCallback(l=>{l.stopPropagation(),o(Rl())},[o]),c=()=>{n?t():r()};return R.useEffect(()=>{const l=Qo?s.current:e.current;if(l)return Al(l,a)},[e,a,s]),R.useEffect(()=>{i(!0)},[i]),p.jsx(et,{onClick:c,children:n?p.jsx(Ou,{}):p.jsx(_u,{})})}const Iu=5*1e3;function Hi({children:e}){const t=R.useRef(null),[n,r]=R.useState(!1),o=R.useRef(null),s=k(l=>l.idleLocks).size,a=R.useCallback(()=>{o.current!==null&&(window.clearTimeout(o.current),o.current=null)},[]),c=R.useCallback(()=>{a(),o.current=window.setTimeout(()=>r(!0),Iu)},[a]);return R.useEffect(()=>(r(!1),c(),()=>{a()}),[a,c]),R.useEffect(()=>{const l=t.current;if(!l)return;const d=g=>{n&&(g.stopPropagation(),r(!1),c())},u=()=>{n&&r(!1),c()};return l.addEventListener("click",d),l.addEventListener("mousemove",u),()=>{l.removeEventListener("click",d),l.removeEventListener("mousemove",u)}},[t,n,r,c]),p.jsx(Du,{ref:t,$isIdle:n&&!s,children:e})}const Du=Y.div`
|
|
332
340
|
position: absolute;
|
|
333
341
|
top: 0;
|
|
334
342
|
left: 0;
|
|
@@ -337,21 +345,21 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
337
345
|
transition: opacity 0.2s ease-in-out;
|
|
338
346
|
cursor: ${({$isIdle:e})=>e?"none":"auto"};
|
|
339
347
|
opacity: ${({$isIdle:e})=>e?0:1};
|
|
340
|
-
`;function
|
|
348
|
+
`;function Lu(e){return p.jsx(Nu,{...e})}const ju=ml`
|
|
341
349
|
from {
|
|
342
350
|
transform: rotate(0deg);
|
|
343
351
|
}
|
|
344
352
|
to {
|
|
345
353
|
transform: rotate(360deg);
|
|
346
354
|
}
|
|
347
|
-
`,
|
|
355
|
+
`,Nu=Y.div`
|
|
348
356
|
width: 1.5rem;
|
|
349
357
|
height: 1.5rem;
|
|
350
358
|
border: 2px solid white;
|
|
351
359
|
border-bottom-color: transparent;
|
|
352
360
|
border-radius: 50%;
|
|
353
|
-
animation: ${
|
|
354
|
-
`;function
|
|
361
|
+
animation: ${ju} 1s linear infinite;
|
|
362
|
+
`;function Fu(e,t=500){const[n,r]=R.useState(e);return R.useEffect(()=>{const o=window.setTimeout(()=>r(e),t);return()=>{window.clearTimeout(o)}},[e,t]),n}function Bi({style:e,...t}){const n=k(o=>o.isLoading);return Fu(n,100)?p.jsx($u,{style:e,...t,children:p.jsx(Lu,{})}):null}const $u=Y.div`
|
|
355
363
|
pointer-events: none;
|
|
356
364
|
position: absolute;
|
|
357
365
|
top: 0;
|
|
@@ -363,47 +371,47 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
363
371
|
height: 100%;
|
|
364
372
|
align-items: center;
|
|
365
373
|
justify-content: center;
|
|
366
|
-
`;function Ql(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 eu(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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"})})}function Ee(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function tu(e,t=globalThis?.document){const n=Ee(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var nu="DismissableLayer",Xn="dismissableLayer.update",ru="dismissableLayer.pointerDownOutside",ou="dismissableLayer.focusOutside",ws,bs=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),xs=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:s,onInteractOutside:i,onDismiss:a,...c}=e,l=f.useContext(bs),[d,u]=f.useState(null),h=d?.ownerDocument??globalThis?.document,[,m]=f.useState({}),y=Q(t,E=>u(E)),g=Array.from(l.layers),[w]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),b=g.indexOf(w),S=d?g.indexOf(d):-1,v=l.layersWithOutsidePointerEventsDisabled.size>0,x=S>=b,P=au(E=>{const I=E.target,N=[...l.branches].some(k=>k.contains(I));!x||N||(o?.(E),i?.(E),E.defaultPrevented||a?.())},h),T=cu(E=>{const I=E.target;[...l.branches].some(k=>k.contains(I))||(s?.(E),i?.(E),E.defaultPrevented||a?.())},h);return tu(E=>{S===l.layers.size-1&&(r?.(E),!E.defaultPrevented&&a&&(E.preventDefault(),a()))},h),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ws=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Ss(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(h.body.style.pointerEvents=ws)}},[d,h,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Ss())},[d,l]),f.useEffect(()=>{const E=()=>m({});return document.addEventListener(Xn,E),()=>document.removeEventListener(Xn,E)},[]),p.jsx(ee.div,{...c,ref:y,style:{pointerEvents:v?x?"auto":"none":void 0,...e.style},onFocusCapture:V(e.onFocusCapture,T.onFocusCapture),onBlurCapture:V(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:V(e.onPointerDownCapture,P.onPointerDownCapture)})});xs.displayName=nu;var su="DismissableLayerBranch",iu=f.forwardRef((e,t)=>{const n=f.useContext(bs),r=f.useRef(null),o=Q(t,r);return f.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),p.jsx(ee.div,{...e,ref:o})});iu.displayName=su;function au(e,t=globalThis?.document){const n=Ee(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const s=a=>{if(a.target&&!r.current){let c=function(){Es(ru,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},i=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(i),t.removeEventListener("pointerdown",s),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function cu(e,t=globalThis?.document){const n=Ee(e),r=f.useRef(!1);return f.useEffect(()=>{const o=s=>{s.target&&!r.current&&Es(ou,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ss(){const e=new CustomEvent(Xn);document.dispatchEvent(e)}function Es(e,t,n,{discrete:r}){const o=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Fo(o,s):o.dispatchEvent(s)}var qn=0;function lu(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Cs()),document.body.insertAdjacentElement("beforeend",e[1]??Cs()),qn++,()=>{qn===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),qn--}},[])}function Cs(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var Zn="focusScope.autoFocusOnMount",Jn="focusScope.autoFocusOnUnmount",Ps={bubbles:!1,cancelable:!0},uu="FocusScope",Rs=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:s,...i}=e,[a,c]=f.useState(null),l=Ee(o),d=Ee(s),u=f.useRef(null),h=Q(t,g=>c(g)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let g=function(v){if(m.paused||!a)return;const x=v.target;a.contains(x)?u.current=x:ke(u.current,{select:!0})},w=function(v){if(m.paused||!a)return;const x=v.relatedTarget;x!==null&&(a.contains(x)||ke(u.current,{select:!0}))},b=function(v){if(document.activeElement===document.body)for(const P of v)P.removedNodes.length>0&&ke(a)};document.addEventListener("focusin",g),document.addEventListener("focusout",w);const S=new MutationObserver(b);return a&&S.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",g),document.removeEventListener("focusout",w),S.disconnect()}}},[r,a,m.paused]),f.useEffect(()=>{if(a){Ms.add(m);const g=document.activeElement;if(!a.contains(g)){const b=new CustomEvent(Zn,Ps);a.addEventListener(Zn,l),a.dispatchEvent(b),b.defaultPrevented||(du(gu(Ts(a)),{select:!0}),document.activeElement===g&&ke(a))}return()=>{a.removeEventListener(Zn,l),setTimeout(()=>{const b=new CustomEvent(Jn,Ps);a.addEventListener(Jn,d),a.dispatchEvent(b),b.defaultPrevented||ke(g??document.body,{select:!0}),a.removeEventListener(Jn,d),Ms.remove(m)},0)}}},[a,l,d,m]);const y=f.useCallback(g=>{if(!n&&!r||m.paused)return;const w=g.key==="Tab"&&!g.altKey&&!g.ctrlKey&&!g.metaKey,b=document.activeElement;if(w&&b){const S=g.currentTarget,[v,x]=fu(S);v&&x?!g.shiftKey&&b===x?(g.preventDefault(),n&&ke(v,{select:!0})):g.shiftKey&&b===v&&(g.preventDefault(),n&&ke(x,{select:!0})):b===S&&g.preventDefault()}},[n,r,m.paused]);return p.jsx(ee.div,{tabIndex:-1,...i,ref:h,onKeyDown:y})});Rs.displayName=uu;function du(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(ke(r,{select:t}),document.activeElement!==n)return}function fu(e){const t=Ts(e),n=As(t,e),r=As(t.reverse(),e);return[n,r]}function Ts(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function As(e,t){for(const n of e)if(!pu(n,{upTo:t}))return n}function pu(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function mu(e){return e instanceof HTMLInputElement&&"select"in e}function ke(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&mu(e)&&t&&e.select()}}var Ms=hu();function hu(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=ks(e,t),e.unshift(t)},remove(t){e=ks(e,t),e[0]?.resume()}}}function ks(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function gu(e){return e.filter(t=>t.tagName!=="A")}var vu=f[" useId ".trim().toString()]||(()=>{}),yu=0;function Qn(e){const[t,n]=f.useState(vu());return Me(()=>{n(r=>r??String(yu++))},[e]),e||(t?`radix-${t}`:"")}const wu=["top","right","bottom","left"],Ie=Math.min,ce=Math.max,Yt=Math.round,Xt=Math.floor,ve=e=>({x:e,y:e}),bu={left:"right",right:"left",bottom:"top",top:"bottom"},xu={start:"end",end:"start"};function er(e,t,n){return ce(e,Ie(t,n))}function Ce(e,t){return typeof e=="function"?e(t):e}function Pe(e){return e.split("-")[0]}function tt(e){return e.split("-")[1]}function tr(e){return e==="x"?"y":"x"}function nr(e){return e==="y"?"height":"width"}const Su=new Set(["top","bottom"]);function ye(e){return Su.has(Pe(e))?"y":"x"}function rr(e){return tr(ye(e))}function Eu(e,t,n){n===void 0&&(n=!1);const r=tt(e),o=rr(e),s=nr(o);let i=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(i=qt(i)),[i,qt(i)]}function Cu(e){const t=qt(e);return[or(e),t,or(t)]}function or(e){return e.replace(/start|end/g,t=>xu[t])}const Is=["left","right"],_s=["right","left"],Pu=["top","bottom"],Ru=["bottom","top"];function Tu(e,t,n){switch(e){case"top":case"bottom":return n?t?_s:Is:t?Is:_s;case"left":case"right":return t?Pu:Ru;default:return[]}}function Au(e,t,n,r){const o=tt(e);let s=Tu(Pe(e),n==="start",r);return o&&(s=s.map(i=>i+"-"+o),t&&(s=s.concat(s.map(or)))),s}function qt(e){return e.replace(/left|right|bottom|top/g,t=>bu[t])}function Mu(e){return{top:0,right:0,bottom:0,left:0,...e}}function Os(e){return typeof e!="number"?Mu(e):{top:e,right:e,bottom:e,left:e}}function Zt(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ds(e,t,n){let{reference:r,floating:o}=e;const s=ye(t),i=rr(t),a=nr(i),c=Pe(t),l=s==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,h=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(tt(t)){case"start":m[i]-=h*(n&&l?-1:1);break;case"end":m[i]+=h*(n&&l?-1:1);break}return m}const ku=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:i}=n,a=s.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let l=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=Ds(l,r,c),h=r,m={},y=0;for(let g=0;g<a.length;g++){const{name:w,fn:b}=a[g],{x:S,y:v,data:x,reset:P}=await b({x:d,y:u,initialPlacement:r,placement:h,strategy:o,middlewareData:m,rects:l,platform:i,elements:{reference:e,floating:t}});d=S??d,u=v??u,m={...m,[w]:{...m[w],...x}},P&&y<=50&&(y++,typeof P=="object"&&(P.placement&&(h=P.placement),P.rects&&(l=P.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:u}=Ds(l,h,c)),g=-1)}return{x:d,y:u,placement:h,strategy:o,middlewareData:m}};async function pt(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:s,rects:i,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:m=0}=Ce(t,e),y=Os(m),w=a[h?u==="floating"?"reference":"floating":u],b=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),S=u==="floating"?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(v))?await(s.getScale==null?void 0:s.getScale(v))||{x:1,y:1}:{x:1,y:1},P=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:S,offsetParent:v,strategy:c}):S);return{top:(b.top-P.top+y.top)/x.y,bottom:(P.bottom-b.bottom+y.bottom)/x.y,left:(b.left-P.left+y.left)/x.x,right:(P.right-b.right+y.right)/x.x}}const Iu=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:s,platform:i,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=Ce(e,t)||{};if(l==null)return{};const u=Os(d),h={x:n,y:r},m=rr(o),y=nr(m),g=await i.getDimensions(l),w=m==="y",b=w?"top":"left",S=w?"bottom":"right",v=w?"clientHeight":"clientWidth",x=s.reference[y]+s.reference[m]-h[m]-s.floating[y],P=h[m]-s.reference[m],T=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let E=T?T[v]:0;(!E||!await(i.isElement==null?void 0:i.isElement(T)))&&(E=a.floating[v]||s.floating[y]);const I=x/2-P/2,N=E/2-g[y]/2-1,k=Ie(u[b],N),D=Ie(u[S],N),H=k,W=E-g[y]-D,B=E/2-g[y]/2+I,K=er(H,B,W),j=!c.arrow&&tt(o)!=null&&B!==K&&s.reference[y]/2-(B<H?k:D)-g[y]/2<0,F=j?B<H?B-H:B-W:0;return{[m]:h[m]+F,data:{[m]:K,centerOffset:B-K-F,...j&&{alignmentOffset:F}},reset:j}}}),_u=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:s,rects:i,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:y="none",flipAlignment:g=!0,...w}=Ce(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=Pe(o),S=ye(a),v=Pe(a)===a,x=await(c.isRTL==null?void 0:c.isRTL(l.floating)),P=h||(v||!g?[qt(a)]:Cu(a)),T=y!=="none";!h&&T&&P.push(...Au(a,g,y,x));const E=[a,...P],I=await pt(t,w),N=[];let k=((r=s.flip)==null?void 0:r.overflows)||[];if(d&&N.push(I[b]),u){const B=Eu(o,i,x);N.push(I[B[0]],I[B[1]])}if(k=[...k,{placement:o,overflows:N}],!N.every(B=>B<=0)){var D,H;const B=(((D=s.flip)==null?void 0:D.index)||0)+1,K=E[B];if(K&&(!(u==="alignment"?S!==ye(K):!1)||k.every(_=>ye(_.placement)===S?_.overflows[0]>0:!0)))return{data:{index:B,overflows:k},reset:{placement:K}};let j=(H=k.filter(F=>F.overflows[0]<=0).sort((F,_)=>F.overflows[1]-_.overflows[1])[0])==null?void 0:H.placement;if(!j)switch(m){case"bestFit":{var W;const F=(W=k.filter(_=>{if(T){const A=ye(_.placement);return A===S||A==="y"}return!0}).map(_=>[_.placement,_.overflows.filter(A=>A>0).reduce((A,C)=>A+C,0)]).sort((_,A)=>_[1]-A[1])[0])==null?void 0:W[0];F&&(j=F);break}case"initialPlacement":j=a;break}if(o!==j)return{reset:{placement:j}}}return{}}}};function Ls(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ns(e){return wu.some(t=>e[t]>=0)}const Ou=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Ce(e,t);switch(r){case"referenceHidden":{const s=await pt(t,{...o,elementContext:"reference"}),i=Ls(s,n.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:Ns(i)}}}case"escaped":{const s=await pt(t,{...o,altBoundary:!0}),i=Ls(s,n.floating);return{data:{escapedOffsets:i,escaped:Ns(i)}}}default:return{}}}}},js=new Set(["left","top"]);async function Du(e,t){const{placement:n,platform:r,elements:o}=e,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),i=Pe(n),a=tt(n),c=ye(n)==="y",l=js.has(i)?-1:1,d=s&&c?-1:1,u=Ce(t,e);let{mainAxis:h,crossAxis:m,alignmentAxis:y}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof y=="number"&&(m=a==="end"?y*-1:y),c?{x:m*d,y:h*l}:{x:h*l,y:m*d}}const Lu=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:s,placement:i,middlewareData:a}=t,c=await Du(t,e);return i===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:s+c.y,data:{...c,placement:i}}}}},Nu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:s=!0,crossAxis:i=!1,limiter:a={fn:w=>{let{x:b,y:S}=w;return{x:b,y:S}}},...c}=Ce(e,t),l={x:n,y:r},d=await pt(t,c),u=ye(Pe(o)),h=tr(u);let m=l[h],y=l[u];if(s){const w=h==="y"?"top":"left",b=h==="y"?"bottom":"right",S=m+d[w],v=m-d[b];m=er(S,m,v)}if(i){const w=u==="y"?"top":"left",b=u==="y"?"bottom":"right",S=y+d[w],v=y-d[b];y=er(S,y,v)}const g=a.fn({...t,[h]:m,[u]:y});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[h]:s,[u]:i}}}}}},ju=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:s,middlewareData:i}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=Ce(e,t),d={x:n,y:r},u=ye(o),h=tr(u);let m=d[h],y=d[u];const g=Ce(a,t),w=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(c){const v=h==="y"?"height":"width",x=s.reference[h]-s.floating[v]+w.mainAxis,P=s.reference[h]+s.reference[v]-w.mainAxis;m<x?m=x:m>P&&(m=P)}if(l){var b,S;const v=h==="y"?"width":"height",x=js.has(Pe(o)),P=s.reference[u]-s.floating[v]+(x&&((b=i.offset)==null?void 0:b[u])||0)+(x?0:w.crossAxis),T=s.reference[u]+s.reference[v]+(x?0:((S=i.offset)==null?void 0:S[u])||0)-(x?w.crossAxis:0);y<P?y=P:y>T&&(y=T)}return{[h]:m,[u]:y}}}},Fu=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:s,platform:i,elements:a}=t,{apply:c=()=>{},...l}=Ce(e,t),d=await pt(t,l),u=Pe(o),h=tt(o),m=ye(o)==="y",{width:y,height:g}=s.floating;let w,b;u==="top"||u==="bottom"?(w=u,b=h===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?"start":"end")?"left":"right"):(b=u,w=h==="end"?"top":"bottom");const S=g-d.top-d.bottom,v=y-d.left-d.right,x=Ie(g-d[w],S),P=Ie(y-d[b],v),T=!t.middlewareData.shift;let E=x,I=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(E=S),T&&!h){const k=ce(d.left,0),D=ce(d.right,0),H=ce(d.top,0),W=ce(d.bottom,0);m?I=y-2*(k!==0||D!==0?k+D:ce(d.left,d.right)):E=g-2*(H!==0||W!==0?H+W:ce(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:E});const N=await i.getDimensions(a.floating);return y!==N.width||g!==N.height?{reset:{rects:!0}}:{}}}};function Jt(){return typeof window<"u"}function nt(e){return Fs(e)?(e.nodeName||"").toLowerCase():"#document"}function le(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function we(e){var t;return(t=(Fs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Fs(e){return Jt()?e instanceof Node||e instanceof le(e).Node:!1}function pe(e){return Jt()?e instanceof Element||e instanceof le(e).Element:!1}function be(e){return Jt()?e instanceof HTMLElement||e instanceof le(e).HTMLElement:!1}function $s(e){return!Jt()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof le(e).ShadowRoot}const $u=new Set(["inline","contents"]);function mt(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=me(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!$u.has(o)}const Vu=new Set(["table","td","th"]);function Hu(e){return Vu.has(nt(e))}const Bu=[":popover-open",":modal"];function Qt(e){return Bu.some(t=>{try{return e.matches(t)}catch{return!1}})}const Wu=["transform","translate","scale","rotate","perspective"],zu=["transform","translate","scale","rotate","perspective","filter"],Uu=["paint","layout","strict","content"];function sr(e){const t=ir(),n=pe(e)?me(e):e;return Wu.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||zu.some(r=>(n.willChange||"").includes(r))||Uu.some(r=>(n.contain||"").includes(r))}function Ku(e){let t=_e(e);for(;be(t)&&!rt(t);){if(sr(t))return t;if(Qt(t))return null;t=_e(t)}return null}function ir(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Gu=new Set(["html","body","#document"]);function rt(e){return Gu.has(nt(e))}function me(e){return le(e).getComputedStyle(e)}function en(e){return pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function _e(e){if(nt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||$s(e)&&e.host||we(e);return $s(t)?t.host:t}function Vs(e){const t=_e(e);return rt(t)?e.ownerDocument?e.ownerDocument.body:e.body:be(t)&&mt(t)?t:Vs(t)}function ht(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Vs(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),i=le(o);if(s){const a=ar(i);return t.concat(i,i.visualViewport||[],mt(o)?o:[],a&&n?ht(a):[])}return t.concat(o,ht(o,[],n))}function ar(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Hs(e){const t=me(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=be(e),s=o?e.offsetWidth:n,i=o?e.offsetHeight:r,a=Yt(n)!==s||Yt(r)!==i;return a&&(n=s,r=i),{width:n,height:r,$:a}}function cr(e){return pe(e)?e:e.contextElement}function ot(e){const t=cr(e);if(!be(t))return ve(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:s}=Hs(t);let i=(s?Yt(n.width):n.width)/r,a=(s?Yt(n.height):n.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!a||!Number.isFinite(a))&&(a=1),{x:i,y:a}}const Yu=ve(0);function Bs(e){const t=le(e);return!ir()||!t.visualViewport?Yu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Xu(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==le(e)?!1:t}function Ve(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),s=cr(e);let i=ve(1);t&&(r?pe(r)&&(i=ot(r)):i=ot(e));const a=Xu(s,n,r)?Bs(s):ve(0);let c=(o.left+a.x)/i.x,l=(o.top+a.y)/i.y,d=o.width/i.x,u=o.height/i.y;if(s){const h=le(s),m=r&&pe(r)?le(r):r;let y=h,g=ar(y);for(;g&&r&&m!==y;){const w=ot(g),b=g.getBoundingClientRect(),S=me(g),v=b.left+(g.clientLeft+parseFloat(S.paddingLeft))*w.x,x=b.top+(g.clientTop+parseFloat(S.paddingTop))*w.y;c*=w.x,l*=w.y,d*=w.x,u*=w.y,c+=v,l+=x,y=le(g),g=ar(y)}}return Zt({width:d,height:u,x:c,y:l})}function tn(e,t){const n=en(e).scrollLeft;return t?t.left+n:Ve(we(e)).left+n}function Ws(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-tn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function qu(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const s=o==="fixed",i=we(r),a=t?Qt(t.floating):!1;if(r===i||a&&s)return n;let c={scrollLeft:0,scrollTop:0},l=ve(1);const d=ve(0),u=be(r);if((u||!u&&!s)&&((nt(r)!=="body"||mt(i))&&(c=en(r)),be(r))){const m=Ve(r);l=ot(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const h=i&&!u&&!s?Ws(i,c):ve(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+h.x,y:n.y*l.y-c.scrollTop*l.y+d.y+h.y}}function Zu(e){return Array.from(e.getClientRects())}function Ju(e){const t=we(e),n=en(e),r=e.ownerDocument.body,o=ce(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=ce(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+tn(e);const a=-n.scrollTop;return me(r).direction==="rtl"&&(i+=ce(t.clientWidth,r.clientWidth)-o),{width:o,height:s,x:i,y:a}}const zs=25;function Qu(e,t){const n=le(e),r=we(e),o=n.visualViewport;let s=r.clientWidth,i=r.clientHeight,a=0,c=0;if(o){s=o.width,i=o.height;const d=ir();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=tn(r);if(l<=0){const d=r.ownerDocument,u=d.body,h=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,y=Math.abs(r.clientWidth-u.clientWidth-m);y<=zs&&(s-=y)}else l<=zs&&(s+=l);return{width:s,height:i,x:a,y:c}}const ed=new Set(["absolute","fixed"]);function td(e,t){const n=Ve(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,s=be(e)?ot(e):ve(1),i=e.clientWidth*s.x,a=e.clientHeight*s.y,c=o*s.x,l=r*s.y;return{width:i,height:a,x:c,y:l}}function Us(e,t,n){let r;if(t==="viewport")r=Qu(e,n);else if(t==="document")r=Ju(we(e));else if(pe(t))r=td(t,n);else{const o=Bs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Zt(r)}function Ks(e,t){const n=_e(e);return n===t||!pe(n)||rt(n)?!1:me(n).position==="fixed"||Ks(n,t)}function nd(e,t){const n=t.get(e);if(n)return n;let r=ht(e,[],!1).filter(a=>pe(a)&&nt(a)!=="body"),o=null;const s=me(e).position==="fixed";let i=s?_e(e):e;for(;pe(i)&&!rt(i);){const a=me(i),c=sr(i);!c&&a.position==="fixed"&&(o=null),(s?!c&&!o:!c&&a.position==="static"&&!!o&&ed.has(o.position)||mt(i)&&!c&&Ks(e,i))?r=r.filter(d=>d!==i):o=a,i=_e(i)}return t.set(e,r),r}function rd(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const i=[...n==="clippingAncestors"?Qt(t)?[]:nd(t,this._c):[].concat(n),r],a=i[0],c=i.reduce((l,d)=>{const u=Us(t,d,o);return l.top=ce(u.top,l.top),l.right=Ie(u.right,l.right),l.bottom=Ie(u.bottom,l.bottom),l.left=ce(u.left,l.left),l},Us(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function od(e){const{width:t,height:n}=Hs(e);return{width:t,height:n}}function sd(e,t,n){const r=be(t),o=we(t),s=n==="fixed",i=Ve(e,!0,s,t);let a={scrollLeft:0,scrollTop:0};const c=ve(0);function l(){c.x=tn(o)}if(r||!r&&!s)if((nt(t)!=="body"||mt(o))&&(a=en(t)),r){const m=Ve(t,!0,s,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();s&&!r&&o&&l();const d=o&&!r&&!s?Ws(o,a):ve(0),u=i.left+a.scrollLeft-c.x-d.x,h=i.top+a.scrollTop-c.y-d.y;return{x:u,y:h,width:i.width,height:i.height}}function lr(e){return me(e).position==="static"}function Gs(e,t){if(!be(e)||me(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return we(e)===n&&(n=n.ownerDocument.body),n}function Ys(e,t){const n=le(e);if(Qt(e))return n;if(!be(e)){let o=_e(e);for(;o&&!rt(o);){if(pe(o)&&!lr(o))return o;o=_e(o)}return n}let r=Gs(e,t);for(;r&&Hu(r)&&lr(r);)r=Gs(r,t);return r&&rt(r)&&lr(r)&&!sr(r)?n:r||Ku(e)||n}const id=async function(e){const t=this.getOffsetParent||Ys,n=this.getDimensions,r=await n(e.floating);return{reference:sd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ad(e){return me(e).direction==="rtl"}const cd={convertOffsetParentRelativeRectToViewportRelativeRect:qu,getDocumentElement:we,getClippingRect:rd,getOffsetParent:Ys,getElementRects:id,getClientRects:Zu,getDimensions:od,getScale:ot,isElement:pe,isRTL:ad};function Xs(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ld(e,t){let n=null,r;const o=we(e);function s(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function i(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),s();const l=e.getBoundingClientRect(),{left:d,top:u,width:h,height:m}=l;if(a||t(),!h||!m)return;const y=Xt(u),g=Xt(o.clientWidth-(d+h)),w=Xt(o.clientHeight-(u+m)),b=Xt(d),v={rootMargin:-y+"px "+-g+"px "+-w+"px "+-b+"px",threshold:ce(0,Ie(1,c))||1};let x=!0;function P(T){const E=T[0].intersectionRatio;if(E!==c){if(!x)return i();E?i(!1,E):r=setTimeout(()=>{i(!1,1e-7)},1e3)}E===1&&!Xs(l,e.getBoundingClientRect())&&i(),x=!1}try{n=new IntersectionObserver(P,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,v)}n.observe(e)}return i(!0),s}function ud(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=cr(e),d=o||s?[...l?ht(l):[],...ht(t)]:[];d.forEach(b=>{o&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=l&&a?ld(l,n):null;let h=-1,m=null;i&&(m=new ResizeObserver(b=>{let[S]=b;S&&S.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var v;(v=m)==null||v.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let y,g=c?Ve(e):null;c&&w();function w(){const b=Ve(e);g&&!Xs(g,b)&&n(),g=b,y=requestAnimationFrame(w)}return n(),()=>{var b;d.forEach(S=>{o&&S.removeEventListener("scroll",n),s&&S.removeEventListener("resize",n)}),u?.(),(b=m)==null||b.disconnect(),m=null,c&&cancelAnimationFrame(y)}}const dd=Lu,fd=Nu,pd=_u,md=Fu,hd=Ou,qs=Iu,gd=ju,vd=(e,t,n)=>{const r=new Map,o={platform:cd,...n},s={...o.platform,_c:r};return ku(e,t,{...o,platform:s})};var yd=typeof document<"u",wd=function(){},nn=yd?R.useLayoutEffect:wd;function rn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!rn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const s=o[r];if(!(s==="_owner"&&e.$$typeof)&&!rn(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function Zs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Js(e,t){const n=Zs(e);return Math.round(t*n)/n}function ur(e){const t=f.useRef(e);return nn(()=>{t.current=e}),t}function bd(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:i}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=f.useState(r);rn(h,r)||m(r);const[y,g]=f.useState(null),[w,b]=f.useState(null),S=f.useCallback(_=>{_!==T.current&&(T.current=_,g(_))},[]),v=f.useCallback(_=>{_!==E.current&&(E.current=_,b(_))},[]),x=s||y,P=i||w,T=f.useRef(null),E=f.useRef(null),I=f.useRef(d),N=c!=null,k=ur(c),D=ur(o),H=ur(l),W=f.useCallback(()=>{if(!T.current||!E.current)return;const _={placement:t,strategy:n,middleware:h};D.current&&(_.platform=D.current),vd(T.current,E.current,_).then(A=>{const C={...A,isPositioned:H.current!==!1};B.current&&!rn(I.current,C)&&(I.current=C,kr.flushSync(()=>{u(C)}))})},[h,t,n,D,H]);nn(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,u(_=>({..._,isPositioned:!1})))},[l]);const B=f.useRef(!1);nn(()=>(B.current=!0,()=>{B.current=!1}),[]),nn(()=>{if(x&&(T.current=x),P&&(E.current=P),x&&P){if(k.current)return k.current(x,P,W);W()}},[x,P,W,k,N]);const K=f.useMemo(()=>({reference:T,floating:E,setReference:S,setFloating:v}),[S,v]),j=f.useMemo(()=>({reference:x,floating:P}),[x,P]),F=f.useMemo(()=>{const _={position:n,left:0,top:0};if(!j.floating)return _;const A=Js(j.floating,d.x),C=Js(j.floating,d.y);return a?{..._,transform:"translate("+A+"px, "+C+"px)",...Zs(j.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:C}},[n,a,j.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:W,refs:K,elements:j,floatingStyles:F}),[d,W,K,j,F])}const xd=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?qs({element:r.current,padding:o}).fn(n):{}:r?qs({element:r,padding:o}).fn(n):{}}}},Sd=(e,t)=>({...dd(e),options:[e,t]}),Ed=(e,t)=>({...fd(e),options:[e,t]}),Cd=(e,t)=>({...gd(e),options:[e,t]}),Pd=(e,t)=>({...pd(e),options:[e,t]}),Rd=(e,t)=>({...md(e),options:[e,t]}),Td=(e,t)=>({...hd(e),options:[e,t]}),Ad=(e,t)=>({...xd(e),options:[e,t]});var Md="Arrow",Qs=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...s}=e;return p.jsx(ee.svg,{...s,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Qs.displayName=Md;var kd=Qs,dr="Popper",[ei,ti]=Qe(dr),[Id,ni]=ei(dr),ri=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return p.jsx(Id,{scope:t,anchor:r,onAnchorChange:o,children:n})};ri.displayName=dr;var oi="PopperAnchor",si=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,s=ni(oi,n),i=f.useRef(null),a=Q(t,i),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=r?.current||i.current,l!==c.current&&s.onAnchorChange(c.current)}),r?null:p.jsx(ee.div,{...o,ref:a})});si.displayName=oi;var fr="PopperContent",[_d,Od]=ei(fr),ii=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:s="center",alignOffset:i=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:h=!1,updatePositionStrategy:m="optimized",onPlaced:y,...g}=e,w=ni(fr,n),[b,S]=f.useState(null),v=Q(t,Y=>S(Y)),[x,P]=f.useState(null),T=jo(x),E=T?.width??0,I=T?.height??0,N=r+(s!=="center"?"-"+s:""),k=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},D=Array.isArray(l)?l:[l],H=D.length>0,W={padding:k,boundary:D.filter(Ld),altBoundary:H},{refs:B,floatingStyles:K,placement:j,isPositioned:F,middlewareData:_}=bd({strategy:"fixed",placement:N,whileElementsMounted:(...Y)=>ud(...Y,{animationFrame:m==="always"}),elements:{reference:w.anchor},middleware:[Sd({mainAxis:o+I,alignmentAxis:i}),c&&Ed({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?Cd():void 0,...W}),c&&Pd({...W}),Rd({...W,apply:({elements:Y,rects:G,availableWidth:se,availableHeight:Re})=>{const{width:Oe,height:xe}=G.reference,yn=Y.floating.style;yn.setProperty("--radix-popper-available-width",`${se}px`),yn.setProperty("--radix-popper-available-height",`${Re}px`),yn.setProperty("--radix-popper-anchor-width",`${Oe}px`),yn.setProperty("--radix-popper-anchor-height",`${xe}px`)}}),x&&Ad({element:x,padding:a}),Nd({arrowWidth:E,arrowHeight:I}),h&&Td({strategy:"referenceHidden",...W})]}),[A,C]=li(j),O=Ee(y);Me(()=>{F&&O?.()},[F,O]);const L=_.arrow?.x,X=_.arrow?.y,re=_.arrow?.centerOffset!==0,[te,oe]=f.useState();return Me(()=>{b&&oe(window.getComputedStyle(b).zIndex)},[b]),p.jsx("div",{ref:B.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:F?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:te,"--radix-popper-transform-origin":[_.transformOrigin?.x,_.transformOrigin?.y].join(" "),..._.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(_d,{scope:n,placedSide:A,onArrowChange:P,arrowX:L,arrowY:X,shouldHideArrow:re,children:p.jsx(ee.div,{"data-side":A,"data-align":C,...g,ref:v,style:{...g.style,animation:F?void 0:"none"}})})})});ii.displayName=fr;var ai="PopperArrow",Dd={top:"bottom",right:"left",bottom:"top",left:"right"},ci=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,s=Od(ai,r),i=Dd[s.placedSide];return p.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:p.jsx(kd,{...o,ref:n,style:{...o.style,display:"block"}})})});ci.displayName=ai;function Ld(e){return e!==null}var Nd=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,i=o.arrow?.centerOffset!==0,a=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[l,d]=li(n),u={start:"0%",center:"50%",end:"100%"}[d],h=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let y="",g="";return l==="bottom"?(y=i?u:`${h}px`,g=`${-c}px`):l==="top"?(y=i?u:`${h}px`,g=`${r.floating.height+c}px`):l==="right"?(y=`${-c}px`,g=i?u:`${m}px`):l==="left"&&(y=`${r.floating.width+c}px`,g=i?u:`${m}px`),{data:{x:y,y:g}}}});function li(e){const[t,n="center"]=e.split("-");return[t,n]}var jd=ri,Fd=si,$d=ii,Vd=ci,Hd="Portal",ui=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,s]=f.useState(!1);Me(()=>s(!0),[]);const i=n||o&&globalThis?.document?.body;return i?Ar.createPortal(p.jsx(ee.div,{...r,ref:t}),i):null});ui.displayName=Hd;function Bd(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var gt=e=>{const{present:t,children:n}=e,r=Wd(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),s=Q(r.ref,zd(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:s}):null};gt.displayName="Presence";function Wd(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),s=f.useRef("none"),i=e?"mounted":"unmounted",[a,c]=Bd(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=on(r.current);s.current=a==="mounted"?l:"none"},[a]),Me(()=>{const l=r.current,d=o.current;if(d!==e){const h=s.current,m=on(l);e?c("MOUNT"):m==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&h!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Me(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,u=m=>{const g=on(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&g&&(c("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},h=m=>{m.target===t&&(s.current=on(r.current))};return t.addEventListener("animationstart",h),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",h),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function on(e){return e?.animationName||"none"}function zd(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var pr="rovingFocusGroup.onEntryFocus",Ud={bubbles:!1,cancelable:!0},vt="RovingFocusGroup",[mr,di,Kd]=Wn(vt),[Gd,fi]=Qe(vt,[Kd]),[Yd,Xd]=Gd(vt),pi=f.forwardRef((e,t)=>p.jsx(mr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(mr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(qd,{...e,ref:t})})}));pi.displayName=vt;var qd=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:s,currentTabStopId:i,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...u}=e,h=f.useRef(null),m=Q(t,h),y=Bn(s),[g,w]=Hn({prop:i,defaultProp:a??null,onChange:c,caller:vt}),[b,S]=f.useState(!1),v=Ee(l),x=di(n),P=f.useRef(!1),[T,E]=f.useState(0);return f.useEffect(()=>{const I=h.current;if(I)return I.addEventListener(pr,v),()=>I.removeEventListener(pr,v)},[v]),p.jsx(Yd,{scope:n,orientation:r,dir:y,loop:o,currentTabStopId:g,onItemFocus:f.useCallback(I=>w(I),[w]),onItemShiftTab:f.useCallback(()=>S(!0),[]),onFocusableItemAdd:f.useCallback(()=>E(I=>I+1),[]),onFocusableItemRemove:f.useCallback(()=>E(I=>I-1),[]),children:p.jsx(ee.div,{tabIndex:b||T===0?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:V(e.onMouseDown,()=>{P.current=!0}),onFocus:V(e.onFocus,I=>{const N=!P.current;if(I.target===I.currentTarget&&N&&!b){const k=new CustomEvent(pr,Ud);if(I.currentTarget.dispatchEvent(k),!k.defaultPrevented){const D=x().filter(j=>j.focusable),H=D.find(j=>j.active),W=D.find(j=>j.id===g),K=[H,W,...D].filter(Boolean).map(j=>j.ref.current);gi(K,d)}}P.current=!1}),onBlur:V(e.onBlur,()=>S(!1))})})}),mi="RovingFocusGroupItem",hi=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:s,children:i,...a}=e,c=Qn(),l=s||c,d=Xd(mi,n),u=d.currentTabStopId===l,h=di(n),{onFocusableItemAdd:m,onFocusableItemRemove:y,currentTabStopId:g}=d;return f.useEffect(()=>{if(r)return m(),()=>y()},[r,m,y]),p.jsx(mr.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(ee.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:V(e.onMouseDown,w=>{r?d.onItemFocus(l):w.preventDefault()}),onFocus:V(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:V(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){d.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const b=Qd(w,d.orientation,d.dir);if(b!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let v=h().filter(x=>x.focusable).map(x=>x.ref.current);if(b==="last")v.reverse();else if(b==="prev"||b==="next"){b==="prev"&&v.reverse();const x=v.indexOf(w.currentTarget);v=d.loop?ef(v,x+1):v.slice(x+1)}setTimeout(()=>gi(v))}}),children:typeof i=="function"?i({isCurrentTabStop:u,hasTabStop:g!=null}):i})})});hi.displayName=mi;var Zd={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Jd(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Qd(e,t,n){const r=Jd(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return Zd[r]}function gi(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function ef(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var tf=pi,nf=hi,rf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},st=new WeakMap,sn=new WeakMap,an={},hr=0,vi=function(e){return e&&(e.host||vi(e.parentNode))},of=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=vi(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},sf=function(e,t,n,r){var o=of(t,Array.isArray(e)?e:[e]);an[n]||(an[n]=new WeakMap);var s=an[n],i=[],a=new Set,c=new Set(o),l=function(u){!u||a.has(u)||(a.add(u),l(u.parentNode))};o.forEach(l);var d=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(h){if(a.has(h))d(h);else try{var m=h.getAttribute(r),y=m!==null&&m!=="false",g=(st.get(h)||0)+1,w=(s.get(h)||0)+1;st.set(h,g),s.set(h,w),i.push(h),g===1&&y&&sn.set(h,!0),w===1&&h.setAttribute(n,"true"),y||h.setAttribute(r,"true")}catch(b){console.error("aria-hidden: cannot operate on ",h,b)}})};return d(t),a.clear(),hr++,function(){i.forEach(function(u){var h=st.get(u)-1,m=s.get(u)-1;st.set(u,h),s.set(u,m),h||(sn.has(u)||u.removeAttribute(r),sn.delete(u)),m||u.removeAttribute(n)}),hr--,hr||(st=new WeakMap,st=new WeakMap,sn=new WeakMap,an={})}},af=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=rf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),sf(r,o,n,"aria-hidden")):function(){return null}},cn="right-scroll-bar-position",ln="width-before-scroll-bar",cf="with-scroll-bars-hidden",lf="--removed-body-scroll-bar-size";function gr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function uf(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var df=typeof window<"u"?f.useLayoutEffect:f.useEffect,yi=new WeakMap;function ff(e,t){var n=uf(null,function(r){return e.forEach(function(o){return gr(o,r)})});return df(function(){var r=yi.get(n);if(r){var o=new Set(r),s=new Set(e),i=n.current;o.forEach(function(a){s.has(a)||gr(a,null)}),s.forEach(function(a){o.has(a)||gr(a,i)})}yi.set(n,e)},[e]),n}function pf(e){return e}function mf(e,t){t===void 0&&(t=pf);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(s){var i=t(s,r);return n.push(i),function(){n=n.filter(function(a){return a!==i})}},assignSyncMedium:function(s){for(r=!0;n.length;){var i=n;n=[],i.forEach(s)}n={push:function(a){return s(a)},filter:function(){return n}}},assignMedium:function(s){r=!0;var i=[];if(n.length){var a=n;n=[],a.forEach(s),i=n}var c=function(){var d=i;i=[],d.forEach(s)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){i.push(d),l()},filter:function(d){return i=i.filter(d),n}}}};return o}function hf(e){e===void 0&&(e={});var t=mf(null);return t.options=Z({async:!0,ssr:!1},e),t}var wi=function(e){var t=e.sideCar,n=Fr(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Z({},n))};wi.isSideCarExport=!0;function gf(e,t){return e.useMedium(t),wi}var bi=hf(),vr=function(){},un=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:vr,onWheelCapture:vr,onTouchMoveCapture:vr}),o=r[0],s=r[1],i=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,u=e.shards,h=e.sideCar,m=e.noRelative,y=e.noIsolation,g=e.inert,w=e.allowPinchZoom,b=e.as,S=b===void 0?"div":b,v=e.gapMode,x=Fr(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=h,T=ff([n,t]),E=Z(Z({},x),o);return f.createElement(f.Fragment,null,d&&f.createElement(P,{sideCar:bi,removeScrollBar:l,shards:u,noRelative:m,noIsolation:y,inert:g,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:v}),i?f.cloneElement(f.Children.only(a),Z(Z({},E),{ref:T})):f.createElement(S,Z({},E,{className:c,ref:T}),a))});un.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},un.classNames={fullWidth:ln,zeroRight:cn};var vf=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function yf(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=vf();return t&&e.setAttribute("nonce",t),e}function wf(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function bf(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var xf=function(){var e=0,t=null;return{add:function(n){e==0&&(t=yf())&&(wf(t,n),bf(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Sf=function(){var e=xf();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},xi=function(){var e=Sf(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},Ef={left:0,top:0,right:0,gap:0},yr=function(e){return parseInt(e||"",10)||0},Cf=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[yr(n),yr(r),yr(o)]},Pf=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return Ef;var t=Cf(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Rf=xi(),it="data-scroll-locked",Tf=function(e,t,n,r){var o=e.left,s=e.top,i=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
367
|
-
.`.concat(
|
|
374
|
+
`;function Vu(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 Hu(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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"})})}function Fe(e){const t=f.useRef(e);return f.useEffect(()=>{t.current=e}),f.useMemo(()=>(...n)=>t.current?.(...n),[])}function Bu(e,t=globalThis?.document){const n=Fe(e);f.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var Wu="DismissableLayer",mr="dismissableLayer.update",Uu="dismissableLayer.pointerDownOutside",zu="dismissableLayer.focusOutside",Wi,Ui=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zi=f.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:a,...c}=e,l=f.useContext(Ui),[d,u]=f.useState(null),g=d?.ownerDocument??globalThis?.document,[,m]=f.useState({}),w=oe(t,C=>u(C)),v=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),x=v.indexOf(b),E=d?v.indexOf(d):-1,y=l.layersWithOutsidePointerEventsDisabled.size>0,S=E>=x,P=Gu(C=>{const I=C.target,j=[...l.branches].some(_=>_.contains(I));!S||j||(o?.(C),s?.(C),C.defaultPrevented||a?.())},g),M=Xu(C=>{const I=C.target;[...l.branches].some(_=>_.contains(I))||(i?.(C),s?.(C),C.defaultPrevented||a?.())},g);return Bu(C=>{E===l.layers.size-1&&(r?.(C),!C.defaultPrevented&&a&&(C.preventDefault(),a()))},g),f.useEffect(()=>{if(d)return n&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(Wi=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(d)),l.layers.add(d),Ki(),()=>{n&&l.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=Wi)}},[d,g,n,l]),f.useEffect(()=>()=>{d&&(l.layers.delete(d),l.layersWithOutsidePointerEventsDisabled.delete(d),Ki())},[d,l]),f.useEffect(()=>{const C=()=>m({});return document.addEventListener(mr,C),()=>document.removeEventListener(mr,C)},[]),p.jsx(ie.div,{...c,ref:w,style:{pointerEvents:y?S?"auto":"none":void 0,...e.style},onFocusCapture:W(e.onFocusCapture,M.onFocusCapture),onBlurCapture:W(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:W(e.onPointerDownCapture,P.onPointerDownCapture)})});zi.displayName=Wu;var Ku="DismissableLayerBranch",Yu=f.forwardRef((e,t)=>{const n=f.useContext(Ui),r=f.useRef(null),o=oe(t,r);return f.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),p.jsx(ie.div,{...e,ref:o})});Yu.displayName=Ku;function Gu(e,t=globalThis?.document){const n=Fe(e),r=f.useRef(!1),o=f.useRef(()=>{});return f.useEffect(()=>{const i=a=>{if(a.target&&!r.current){let c=function(){Yi(Uu,n,l,{discrete:!0})};const l={originalEvent:a};a.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=c,t.addEventListener("click",o.current,{once:!0})):c()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function Xu(e,t=globalThis?.document){const n=Fe(e),r=f.useRef(!1);return f.useEffect(()=>{const o=i=>{i.target&&!r.current&&Yi(zu,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Ki(){const e=new CustomEvent(mr);document.dispatchEvent(e)}function Yi(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?ci(o,i):o.dispatchEvent(i)}var gr=0;function qu(){f.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Gi()),document.body.insertAdjacentElement("beforeend",e[1]??Gi()),gr++,()=>{gr===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),gr--}},[])}function Gi(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var vr="focusScope.autoFocusOnMount",yr="focusScope.autoFocusOnUnmount",Xi={bubbles:!1,cancelable:!0},Zu="FocusScope",qi=f.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:i,...s}=e,[a,c]=f.useState(null),l=Fe(o),d=Fe(i),u=f.useRef(null),g=oe(t,v=>c(v)),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let v=function(y){if(m.paused||!a)return;const S=y.target;a.contains(S)?u.current=S:We(u.current,{select:!0})},b=function(y){if(m.paused||!a)return;const S=y.relatedTarget;S!==null&&(a.contains(S)||We(u.current,{select:!0}))},x=function(y){if(document.activeElement===document.body)for(const P of y)P.removedNodes.length>0&&We(a)};document.addEventListener("focusin",v),document.addEventListener("focusout",b);const E=new MutationObserver(x);return a&&E.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",b),E.disconnect()}}},[r,a,m.paused]),f.useEffect(()=>{if(a){Qi.add(m);const v=document.activeElement;if(!a.contains(v)){const x=new CustomEvent(vr,Xi);a.addEventListener(vr,l),a.dispatchEvent(x),x.defaultPrevented||(Ju(rd(Zi(a)),{select:!0}),document.activeElement===v&&We(a))}return()=>{a.removeEventListener(vr,l),setTimeout(()=>{const x=new CustomEvent(yr,Xi);a.addEventListener(yr,d),a.dispatchEvent(x),x.defaultPrevented||We(v??document.body,{select:!0}),a.removeEventListener(yr,d),Qi.remove(m)},0)}}},[a,l,d,m]);const w=f.useCallback(v=>{if(!n&&!r||m.paused)return;const b=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,x=document.activeElement;if(b&&x){const E=v.currentTarget,[y,S]=Qu(E);y&&S?!v.shiftKey&&x===S?(v.preventDefault(),n&&We(y,{select:!0})):v.shiftKey&&x===y&&(v.preventDefault(),n&&We(S,{select:!0})):x===E&&v.preventDefault()}},[n,r,m.paused]);return p.jsx(ie.div,{tabIndex:-1,...s,ref:g,onKeyDown:w})});qi.displayName=Zu;function Ju(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(We(r,{select:t}),document.activeElement!==n)return}function Qu(e){const t=Zi(e),n=Ji(t,e),r=Ji(t.reverse(),e);return[n,r]}function Zi(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Ji(e,t){for(const n of e)if(!ed(n,{upTo:t}))return n}function ed(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function td(e){return e instanceof HTMLInputElement&&"select"in e}function We(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&td(e)&&t&&e.select()}}var Qi=nd();function nd(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=es(e,t),e.unshift(t)},remove(t){e=es(e,t),e[0]?.resume()}}}function es(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function rd(e){return e.filter(t=>t.tagName!=="A")}var od=f[" useId ".trim().toString()]||(()=>{}),id=0;function wr(e){const[t,n]=f.useState(od());return Be(()=>{n(r=>r??String(id++))},[e]),e||(t?`radix-${t}`:"")}const sd=["top","right","bottom","left"],Ue=Math.min,ge=Math.max,mn=Math.round,gn=Math.floor,_e=e=>({x:e,y:e}),ad={left:"right",right:"left",bottom:"top",top:"bottom"},cd={start:"end",end:"start"};function br(e,t,n){return ge(e,Ue(t,n))}function $e(e,t){return typeof e=="function"?e(t):e}function Ve(e){return e.split("-")[0]}function gt(e){return e.split("-")[1]}function xr(e){return e==="x"?"y":"x"}function Sr(e){return e==="y"?"height":"width"}const ld=new Set(["top","bottom"]);function Oe(e){return ld.has(Ve(e))?"y":"x"}function Er(e){return xr(Oe(e))}function ud(e,t,n){n===void 0&&(n=!1);const r=gt(e),o=Er(e),i=Sr(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=vn(s)),[s,vn(s)]}function dd(e){const t=vn(e);return[Cr(e),t,Cr(t)]}function Cr(e){return e.replace(/start|end/g,t=>cd[t])}const ts=["left","right"],ns=["right","left"],fd=["top","bottom"],pd=["bottom","top"];function hd(e,t,n){switch(e){case"top":case"bottom":return n?t?ns:ts:t?ts:ns;case"left":case"right":return t?fd:pd;default:return[]}}function md(e,t,n,r){const o=gt(e);let i=hd(Ve(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Cr)))),i}function vn(e){return e.replace(/left|right|bottom|top/g,t=>ad[t])}function gd(e){return{top:0,right:0,bottom:0,left:0,...e}}function rs(e){return typeof e!="number"?gd(e):{top:e,right:e,bottom:e,left:e}}function yn(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function os(e,t,n){let{reference:r,floating:o}=e;const i=Oe(t),s=Er(t),a=Sr(s),c=Ve(t),l=i==="y",d=r.x+r.width/2-o.width/2,u=r.y+r.height/2-o.height/2,g=r[a]/2-o[a]/2;let m;switch(c){case"top":m={x:d,y:r.y-o.height};break;case"bottom":m={x:d,y:r.y+r.height};break;case"right":m={x:r.x+r.width,y:u};break;case"left":m={x:r.x-o.width,y:u};break;default:m={x:r.x,y:r.y}}switch(gt(t)){case"start":m[s]-=g*(n&&l?-1:1);break;case"end":m[s]+=g*(n&&l?-1:1);break}return m}const vd=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,a=i.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:d,y:u}=os(l,r,c),g=r,m={},w=0;for(let v=0;v<a.length;v++){const{name:b,fn:x}=a[v],{x:E,y,data:S,reset:P}=await x({x:d,y:u,initialPlacement:r,placement:g,strategy:o,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});d=E??d,u=y??u,m={...m,[b]:{...m[b],...S}},P&&w<=50&&(w++,typeof P=="object"&&(P.placement&&(g=P.placement),P.rects&&(l=P.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:o}):P.rects),{x:d,y:u}=os(l,g,c)),v=-1)}return{x:d,y:u,placement:g,strategy:o,middlewareData:m}};async function _t(e,t){var n;t===void 0&&(t={});const{x:r,y:o,platform:i,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:g=!1,padding:m=0}=$e(t,e),w=rs(m),b=a[g?u==="floating"?"reference":"floating":u],x=yn(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(b)))==null||n?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:l,rootBoundary:d,strategy:c})),E=u==="floating"?{x:r,y:o,width:s.floating.width,height:s.floating.height}:s.reference,y=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),S=await(i.isElement==null?void 0:i.isElement(y))?await(i.getScale==null?void 0:i.getScale(y))||{x:1,y:1}:{x:1,y:1},P=yn(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:E,offsetParent:y,strategy:c}):E);return{top:(x.top-P.top+w.top)/S.y,bottom:(P.bottom-x.bottom+w.bottom)/S.y,left:(x.left-P.left+w.left)/S.x,right:(P.right-x.right+w.right)/S.x}}const yd=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:d=0}=$e(e,t)||{};if(l==null)return{};const u=rs(d),g={x:n,y:r},m=Er(o),w=Sr(m),v=await s.getDimensions(l),b=m==="y",x=b?"top":"left",E=b?"bottom":"right",y=b?"clientHeight":"clientWidth",S=i.reference[w]+i.reference[m]-g[m]-i.floating[w],P=g[m]-i.reference[m],M=await(s.getOffsetParent==null?void 0:s.getOffsetParent(l));let C=M?M[y]:0;(!C||!await(s.isElement==null?void 0:s.isElement(M)))&&(C=a.floating[y]||i.floating[w]);const I=S/2-P/2,j=C/2-v[w]/2-1,_=Ue(u[x],j),F=Ue(u[E],j),U=_,N=C-v[w]-F,H=C/2-v[w]/2+I,G=br(U,H,N),$=!c.arrow&>(o)!=null&&H!==G&&i.reference[w]/2-(H<U?_:F)-v[w]/2<0,V=$?H<U?H-U:H-N:0;return{[m]:g[m]+V,data:{[m]:G,centerOffset:H-G-V,...$&&{alignmentOffset:V}},reset:$}}}),wd=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:i,rects:s,initialPlacement:a,platform:c,elements:l}=t,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:g,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:v=!0,...b}=$e(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=Ve(o),E=Oe(a),y=Ve(a)===a,S=await(c.isRTL==null?void 0:c.isRTL(l.floating)),P=g||(y||!v?[vn(a)]:dd(a)),M=w!=="none";!g&&M&&P.push(...md(a,v,w,S));const C=[a,...P],I=await _t(t,b),j=[];let _=((r=i.flip)==null?void 0:r.overflows)||[];if(d&&j.push(I[x]),u){const H=ud(o,s,S);j.push(I[H[0]],I[H[1]])}if(_=[..._,{placement:o,overflows:j}],!j.every(H=>H<=0)){var F,U;const H=(((F=i.flip)==null?void 0:F.index)||0)+1,G=C[H];if(G&&(!(u==="alignment"?E!==Oe(G):!1)||_.every(D=>Oe(D.placement)===E?D.overflows[0]>0:!0)))return{data:{index:H,overflows:_},reset:{placement:G}};let $=(U=_.filter(V=>V.overflows[0]<=0).sort((V,D)=>V.overflows[1]-D.overflows[1])[0])==null?void 0:U.placement;if(!$)switch(m){case"bestFit":{var N;const V=(N=_.filter(D=>{if(M){const A=Oe(D.placement);return A===E||A==="y"}return!0}).map(D=>[D.placement,D.overflows.filter(A=>A>0).reduce((A,Q)=>A+Q,0)]).sort((D,A)=>D[1]-A[1])[0])==null?void 0:N[0];V&&($=V);break}case"initialPlacement":$=a;break}if(o!==$)return{reset:{placement:$}}}return{}}}};function is(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function ss(e){return sd.some(t=>e[t]>=0)}const bd=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=$e(e,t);switch(r){case"referenceHidden":{const i=await _t(t,{...o,elementContext:"reference"}),s=is(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:ss(s)}}}case"escaped":{const i=await _t(t,{...o,altBoundary:!0}),s=is(i,n.floating);return{data:{escapedOffsets:s,escaped:ss(s)}}}default:return{}}}}},as=new Set(["left","top"]);async function xd(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Ve(n),a=gt(n),c=Oe(n)==="y",l=as.has(s)?-1:1,d=i&&c?-1:1,u=$e(t,e);let{mainAxis:g,crossAxis:m,alignmentAxis:w}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return a&&typeof w=="number"&&(m=a==="end"?w*-1:w),c?{x:m*d,y:g*l}:{x:g*l,y:m*d}}const Sd=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:a}=t,c=await xd(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(r=a.arrow)!=null&&r.alignmentOffset?{}:{x:o+c.x,y:i+c.y,data:{...c,placement:s}}}}},Ed=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:a={fn:b=>{let{x,y:E}=b;return{x,y:E}}},...c}=$e(e,t),l={x:n,y:r},d=await _t(t,c),u=Oe(Ve(o)),g=xr(u);let m=l[g],w=l[u];if(i){const b=g==="y"?"top":"left",x=g==="y"?"bottom":"right",E=m+d[b],y=m-d[x];m=br(E,m,y)}if(s){const b=u==="y"?"top":"left",x=u==="y"?"bottom":"right",E=w+d[b],y=w-d[x];w=br(E,w,y)}const v=a.fn({...t,[g]:m,[u]:w});return{...v,data:{x:v.x-n,y:v.y-r,enabled:{[g]:i,[u]:s}}}}}},Cd=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:c=!0,crossAxis:l=!0}=$e(e,t),d={x:n,y:r},u=Oe(o),g=xr(u);let m=d[g],w=d[u];const v=$e(a,t),b=typeof v=="number"?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(c){const y=g==="y"?"height":"width",S=i.reference[g]-i.floating[y]+b.mainAxis,P=i.reference[g]+i.reference[y]-b.mainAxis;m<S?m=S:m>P&&(m=P)}if(l){var x,E;const y=g==="y"?"width":"height",S=as.has(Ve(o)),P=i.reference[u]-i.floating[y]+(S&&((x=s.offset)==null?void 0:x[u])||0)+(S?0:b.crossAxis),M=i.reference[u]+i.reference[y]+(S?0:((E=s.offset)==null?void 0:E[u])||0)-(S?b.crossAxis:0);w<P?w=P:w>M&&(w=M)}return{[g]:m,[u]:w}}}},Pd=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:a}=t,{apply:c=()=>{},...l}=$e(e,t),d=await _t(t,l),u=Ve(o),g=gt(o),m=Oe(o)==="y",{width:w,height:v}=i.floating;let b,x;u==="top"||u==="bottom"?(b=u,x=g===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=u,b=g==="end"?"top":"bottom");const E=v-d.top-d.bottom,y=w-d.left-d.right,S=Ue(v-d[b],E),P=Ue(w-d[x],y),M=!t.middlewareData.shift;let C=S,I=P;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(I=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=E),M&&!g){const _=ge(d.left,0),F=ge(d.right,0),U=ge(d.top,0),N=ge(d.bottom,0);m?I=w-2*(_!==0||F!==0?_+F:ge(d.left,d.right)):C=v-2*(U!==0||N!==0?U+N:ge(d.top,d.bottom))}await c({...t,availableWidth:I,availableHeight:C});const j=await s.getDimensions(a.floating);return w!==j.width||v!==j.height?{reset:{rects:!0}}:{}}}};function wn(){return typeof window<"u"}function vt(e){return cs(e)?(e.nodeName||"").toLowerCase():"#document"}function ve(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ie(e){var t;return(t=(cs(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function cs(e){return wn()?e instanceof Node||e instanceof ve(e).Node:!1}function Pe(e){return wn()?e instanceof Element||e instanceof ve(e).Element:!1}function De(e){return wn()?e instanceof HTMLElement||e instanceof ve(e).HTMLElement:!1}function ls(e){return!wn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof ve(e).ShadowRoot}const Rd=new Set(["inline","contents"]);function Ot(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Re(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Rd.has(o)}const Td=new Set(["table","td","th"]);function Md(e){return Td.has(vt(e))}const Ad=[":popover-open",":modal"];function bn(e){return Ad.some(t=>{try{return e.matches(t)}catch{return!1}})}const kd=["transform","translate","scale","rotate","perspective"],_d=["transform","translate","scale","rotate","perspective","filter"],Od=["paint","layout","strict","content"];function Pr(e){const t=Rr(),n=Pe(e)?Re(e):e;return kd.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||_d.some(r=>(n.willChange||"").includes(r))||Od.some(r=>(n.contain||"").includes(r))}function Id(e){let t=ze(e);for(;De(t)&&!yt(t);){if(Pr(t))return t;if(bn(t))return null;t=ze(t)}return null}function Rr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Dd=new Set(["html","body","#document"]);function yt(e){return Dd.has(vt(e))}function Re(e){return ve(e).getComputedStyle(e)}function xn(e){return Pe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ze(e){if(vt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||ls(e)&&e.host||Ie(e);return ls(t)?t.host:t}function us(e){const t=ze(e);return yt(t)?e.ownerDocument?e.ownerDocument.body:e.body:De(t)&&Ot(t)?t:us(t)}function It(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=us(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=ve(o);if(i){const a=Tr(s);return t.concat(s,s.visualViewport||[],Ot(o)?o:[],a&&n?It(a):[])}return t.concat(o,It(o,[],n))}function Tr(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ds(e){const t=Re(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=De(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,a=mn(n)!==i||mn(r)!==s;return a&&(n=i,r=s),{width:n,height:r,$:a}}function Mr(e){return Pe(e)?e:e.contextElement}function wt(e){const t=Mr(e);if(!De(t))return _e(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=ds(t);let s=(i?mn(n.width):n.width)/r,a=(i?mn(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}const Ld=_e(0);function fs(e){const t=ve(e);return!Rr()||!t.visualViewport?Ld:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function jd(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==ve(e)?!1:t}function tt(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=Mr(e);let s=_e(1);t&&(r?Pe(r)&&(s=wt(r)):s=wt(e));const a=jd(i,n,r)?fs(i):_e(0);let c=(o.left+a.x)/s.x,l=(o.top+a.y)/s.y,d=o.width/s.x,u=o.height/s.y;if(i){const g=ve(i),m=r&&Pe(r)?ve(r):r;let w=g,v=Tr(w);for(;v&&r&&m!==w;){const b=wt(v),x=v.getBoundingClientRect(),E=Re(v),y=x.left+(v.clientLeft+parseFloat(E.paddingLeft))*b.x,S=x.top+(v.clientTop+parseFloat(E.paddingTop))*b.y;c*=b.x,l*=b.y,d*=b.x,u*=b.y,c+=y,l+=S,w=ve(v),v=Tr(w)}}return yn({width:d,height:u,x:c,y:l})}function Sn(e,t){const n=xn(e).scrollLeft;return t?t.left+n:tt(Ie(e)).left+n}function ps(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Sn(e,n),o=n.top+t.scrollTop;return{x:r,y:o}}function Nd(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=Ie(r),a=t?bn(t.floating):!1;if(r===s||a&&i)return n;let c={scrollLeft:0,scrollTop:0},l=_e(1);const d=_e(0),u=De(r);if((u||!u&&!i)&&((vt(r)!=="body"||Ot(s))&&(c=xn(r)),De(r))){const m=tt(r);l=wt(r),d.x=m.x+r.clientLeft,d.y=m.y+r.clientTop}const g=s&&!u&&!i?ps(s,c):_e(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+g.x,y:n.y*l.y-c.scrollTop*l.y+d.y+g.y}}function Fd(e){return Array.from(e.getClientRects())}function $d(e){const t=Ie(e),n=xn(e),r=e.ownerDocument.body,o=ge(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=ge(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Sn(e);const a=-n.scrollTop;return Re(r).direction==="rtl"&&(s+=ge(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:a}}const hs=25;function Vd(e,t){const n=ve(e),r=Ie(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;const d=Rr();(!d||d&&t==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}const l=Sn(r);if(l<=0){const d=r.ownerDocument,u=d.body,g=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,w=Math.abs(r.clientWidth-u.clientWidth-m);w<=hs&&(i-=w)}else l<=hs&&(i+=l);return{width:i,height:s,x:a,y:c}}const Hd=new Set(["absolute","fixed"]);function Bd(e,t){const n=tt(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=De(e)?wt(e):_e(1),s=e.clientWidth*i.x,a=e.clientHeight*i.y,c=o*i.x,l=r*i.y;return{width:s,height:a,x:c,y:l}}function ms(e,t,n){let r;if(t==="viewport")r=Vd(e,n);else if(t==="document")r=$d(Ie(e));else if(Pe(t))r=Bd(t,n);else{const o=fs(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return yn(r)}function gs(e,t){const n=ze(e);return n===t||!Pe(n)||yt(n)?!1:Re(n).position==="fixed"||gs(n,t)}function Wd(e,t){const n=t.get(e);if(n)return n;let r=It(e,[],!1).filter(a=>Pe(a)&&vt(a)!=="body"),o=null;const i=Re(e).position==="fixed";let s=i?ze(e):e;for(;Pe(s)&&!yt(s);){const a=Re(s),c=Pr(s);!c&&a.position==="fixed"&&(o=null),(i?!c&&!o:!c&&a.position==="static"&&!!o&&Hd.has(o.position)||Ot(s)&&!c&&gs(e,s))?r=r.filter(d=>d!==s):o=a,s=ze(s)}return t.set(e,r),r}function Ud(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?bn(t)?[]:Wd(t,this._c):[].concat(n),r],a=s[0],c=s.reduce((l,d)=>{const u=ms(t,d,o);return l.top=ge(u.top,l.top),l.right=Ue(u.right,l.right),l.bottom=Ue(u.bottom,l.bottom),l.left=ge(u.left,l.left),l},ms(t,a,o));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function zd(e){const{width:t,height:n}=ds(e);return{width:t,height:n}}function Kd(e,t,n){const r=De(t),o=Ie(t),i=n==="fixed",s=tt(e,!0,i,t);let a={scrollLeft:0,scrollTop:0};const c=_e(0);function l(){c.x=Sn(o)}if(r||!r&&!i)if((vt(t)!=="body"||Ot(o))&&(a=xn(t)),r){const m=tt(t,!0,i,t);c.x=m.x+t.clientLeft,c.y=m.y+t.clientTop}else o&&l();i&&!r&&o&&l();const d=o&&!r&&!i?ps(o,a):_e(0),u=s.left+a.scrollLeft-c.x-d.x,g=s.top+a.scrollTop-c.y-d.y;return{x:u,y:g,width:s.width,height:s.height}}function Ar(e){return Re(e).position==="static"}function vs(e,t){if(!De(e)||Re(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ie(e)===n&&(n=n.ownerDocument.body),n}function ys(e,t){const n=ve(e);if(bn(e))return n;if(!De(e)){let o=ze(e);for(;o&&!yt(o);){if(Pe(o)&&!Ar(o))return o;o=ze(o)}return n}let r=vs(e,t);for(;r&&Md(r)&&Ar(r);)r=vs(r,t);return r&&yt(r)&&Ar(r)&&!Pr(r)?n:r||Id(e)||n}const Yd=async function(e){const t=this.getOffsetParent||ys,n=this.getDimensions,r=await n(e.floating);return{reference:Kd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Gd(e){return Re(e).direction==="rtl"}const Xd={convertOffsetParentRelativeRectToViewportRelativeRect:Nd,getDocumentElement:Ie,getClippingRect:Ud,getOffsetParent:ys,getElementRects:Yd,getClientRects:Fd,getDimensions:zd,getScale:wt,isElement:Pe,isRTL:Gd};function ws(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function qd(e,t){let n=null,r;const o=Ie(e);function i(){var a;clearTimeout(r),(a=n)==null||a.disconnect(),n=null}function s(a,c){a===void 0&&(a=!1),c===void 0&&(c=1),i();const l=e.getBoundingClientRect(),{left:d,top:u,width:g,height:m}=l;if(a||t(),!g||!m)return;const w=gn(u),v=gn(o.clientWidth-(d+g)),b=gn(o.clientHeight-(u+m)),x=gn(d),y={rootMargin:-w+"px "+-v+"px "+-b+"px "+-x+"px",threshold:ge(0,Ue(1,c))||1};let S=!0;function P(M){const C=M[0].intersectionRatio;if(C!==c){if(!S)return s();C?s(!1,C):r=setTimeout(()=>{s(!1,1e-7)},1e3)}C===1&&!ws(l,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(P,{...y,root:o.ownerDocument})}catch{n=new IntersectionObserver(P,y)}n.observe(e)}return s(!0),i}function Zd(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:c=!1}=r,l=Mr(e),d=o||i?[...l?It(l):[],...It(t)]:[];d.forEach(x=>{o&&x.addEventListener("scroll",n,{passive:!0}),i&&x.addEventListener("resize",n)});const u=l&&a?qd(l,n):null;let g=-1,m=null;s&&(m=new ResizeObserver(x=>{let[E]=x;E&&E.target===l&&m&&(m.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(t)})),n()}),l&&!c&&m.observe(l),m.observe(t));let w,v=c?tt(e):null;c&&b();function b(){const x=tt(e);v&&!ws(v,x)&&n(),v=x,w=requestAnimationFrame(b)}return n(),()=>{var x;d.forEach(E=>{o&&E.removeEventListener("scroll",n),i&&E.removeEventListener("resize",n)}),u?.(),(x=m)==null||x.disconnect(),m=null,c&&cancelAnimationFrame(w)}}const Jd=Sd,Qd=Ed,ef=wd,tf=Pd,nf=bd,bs=yd,rf=Cd,of=(e,t,n)=>{const r=new Map,o={platform:Xd,...n},i={...o.platform,_c:r};return vd(e,t,{...o,platform:i})};var sf=typeof document<"u",af=function(){},En=sf?R.useLayoutEffect:af;function Cn(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Cn(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!Cn(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function xs(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ss(e,t){const n=xs(e);return Math.round(t*n)/n}function kr(e){const t=f.useRef(e);return En(()=>{t.current=e}),t}function cf(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:a=!0,whileElementsMounted:c,open:l}=e,[d,u]=f.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,m]=f.useState(r);Cn(g,r)||m(r);const[w,v]=f.useState(null),[b,x]=f.useState(null),E=f.useCallback(D=>{D!==M.current&&(M.current=D,v(D))},[]),y=f.useCallback(D=>{D!==C.current&&(C.current=D,x(D))},[]),S=i||w,P=s||b,M=f.useRef(null),C=f.useRef(null),I=f.useRef(d),j=c!=null,_=kr(c),F=kr(o),U=kr(l),N=f.useCallback(()=>{if(!M.current||!C.current)return;const D={placement:t,strategy:n,middleware:g};F.current&&(D.platform=F.current),of(M.current,C.current,D).then(A=>{const Q={...A,isPositioned:U.current!==!1};H.current&&!Cn(I.current,Q)&&(I.current=Q,to.flushSync(()=>{u(Q)}))})},[g,t,n,F,U]);En(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,u(D=>({...D,isPositioned:!1})))},[l]);const H=f.useRef(!1);En(()=>(H.current=!0,()=>{H.current=!1}),[]),En(()=>{if(S&&(M.current=S),P&&(C.current=P),S&&P){if(_.current)return _.current(S,P,N);N()}},[S,P,N,_,j]);const G=f.useMemo(()=>({reference:M,floating:C,setReference:E,setFloating:y}),[E,y]),$=f.useMemo(()=>({reference:S,floating:P}),[S,P]),V=f.useMemo(()=>{const D={position:n,left:0,top:0};if(!$.floating)return D;const A=Ss($.floating,d.x),Q=Ss($.floating,d.y);return a?{...D,transform:"translate("+A+"px, "+Q+"px)",...xs($.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:A,top:Q}},[n,a,$.floating,d.x,d.y]);return f.useMemo(()=>({...d,update:N,refs:G,elements:$,floatingStyles:V}),[d,N,G,$,V])}const lf=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?bs({element:r.current,padding:o}).fn(n):{}:r?bs({element:r,padding:o}).fn(n):{}}}},uf=(e,t)=>({...Jd(e),options:[e,t]}),df=(e,t)=>({...Qd(e),options:[e,t]}),ff=(e,t)=>({...rf(e),options:[e,t]}),pf=(e,t)=>({...ef(e),options:[e,t]}),hf=(e,t)=>({...tf(e),options:[e,t]}),mf=(e,t)=>({...nf(e),options:[e,t]}),gf=(e,t)=>({...lf(e),options:[e,t]});var vf="Arrow",Es=f.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return p.jsx(ie.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});Es.displayName=vf;var yf=Es,_r="Popper",[Cs,Ps]=ht(_r),[wf,Rs]=Cs(_r),Ts=e=>{const{__scopePopper:t,children:n}=e,[r,o]=f.useState(null);return p.jsx(wf,{scope:t,anchor:r,onAnchorChange:o,children:n})};Ts.displayName=_r;var Ms="PopperAnchor",As=f.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Rs(Ms,n),s=f.useRef(null),a=oe(t,s),c=f.useRef(null);return f.useEffect(()=>{const l=c.current;c.current=r?.current||s.current,l!==c.current&&i.onAnchorChange(c.current)}),r?null:p.jsx(ie.div,{...o,ref:a})});As.displayName=Ms;var Or="PopperContent",[bf,xf]=Cs(Or),ks=f.forwardRef((e,t)=>{const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:a=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:d=0,sticky:u="partial",hideWhenDetached:g=!1,updatePositionStrategy:m="optimized",onPlaced:w,...v}=e,b=Rs(Or,n),[x,E]=f.useState(null),y=oe(t,Z=>E(Z)),[S,P]=f.useState(null),M=ai(S),C=M?.width??0,I=M?.height??0,j=r+(i!=="center"?"-"+i:""),_=typeof d=="number"?d:{top:0,right:0,bottom:0,left:0,...d},F=Array.isArray(l)?l:[l],U=F.length>0,N={padding:_,boundary:F.filter(Ef),altBoundary:U},{refs:H,floatingStyles:G,placement:$,isPositioned:V,middlewareData:D}=cf({strategy:"fixed",placement:j,whileElementsMounted:(...Z)=>Zd(...Z,{animationFrame:m==="always"}),elements:{reference:b.anchor},middleware:[uf({mainAxis:o+I,alignmentAxis:s}),c&&df({mainAxis:!0,crossAxis:!1,limiter:u==="partial"?ff():void 0,...N}),c&&pf({...N}),hf({...N,apply:({elements:Z,rects:ue,availableWidth:ye,availableHeight:je})=>{const{width:Ke,height:we}=ue.reference,Ct=Z.floating.style;Ct.setProperty("--radix-popper-available-width",`${ye}px`),Ct.setProperty("--radix-popper-available-height",`${je}px`),Ct.setProperty("--radix-popper-anchor-width",`${Ke}px`),Ct.setProperty("--radix-popper-anchor-height",`${we}px`)}}),S&&gf({element:S,padding:a}),Cf({arrowWidth:C,arrowHeight:I}),g&&mf({strategy:"referenceHidden",...N})]}),[A,Q]=Is($),ae=Fe(w);Be(()=>{V&&ae?.()},[V,ae]);const te=D.arrow?.x,Se=D.arrow?.y,Te=D.arrow?.centerOffset!==0,[Me,le]=f.useState();return Be(()=>{x&&le(window.getComputedStyle(x).zIndex)},[x]),p.jsx("div",{ref:H.setFloating,"data-radix-popper-content-wrapper":"",style:{...G,transform:V?G.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:Me,"--radix-popper-transform-origin":[D.transformOrigin?.x,D.transformOrigin?.y].join(" "),...D.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:p.jsx(bf,{scope:n,placedSide:A,onArrowChange:P,arrowX:te,arrowY:Se,shouldHideArrow:Te,children:p.jsx(ie.div,{"data-side":A,"data-align":Q,...v,ref:y,style:{...v.style,animation:V?void 0:"none"}})})})});ks.displayName=Or;var _s="PopperArrow",Sf={top:"bottom",right:"left",bottom:"top",left:"right"},Os=f.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=xf(_s,r),s=Sf[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(yf,{...o,ref:n,style:{...o.style,display:"block"}})})});Os.displayName=_s;function Ef(e){return e!==null}var Cf=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,s=o.arrow?.centerOffset!==0,a=s?0:e.arrowWidth,c=s?0:e.arrowHeight,[l,d]=Is(n),u={start:"0%",center:"50%",end:"100%"}[d],g=(o.arrow?.x??0)+a/2,m=(o.arrow?.y??0)+c/2;let w="",v="";return l==="bottom"?(w=s?u:`${g}px`,v=`${-c}px`):l==="top"?(w=s?u:`${g}px`,v=`${r.floating.height+c}px`):l==="right"?(w=`${-c}px`,v=s?u:`${m}px`):l==="left"&&(w=`${r.floating.width+c}px`,v=s?u:`${m}px`),{data:{x:w,y:v}}}});function Is(e){const[t,n="center"]=e.split("-");return[t,n]}var Pf=Ts,Rf=As,Tf=ks,Mf=Os,Af="Portal",Ds=f.forwardRef((e,t)=>{const{container:n,...r}=e,[o,i]=f.useState(!1);Be(()=>i(!0),[]);const s=n||o&&globalThis?.document?.body;return s?Qr.createPortal(p.jsx(ie.div,{...r,ref:t}),s):null});Ds.displayName=Af;function kf(e,t){return f.useReducer((n,r)=>t[n][r]??n,e)}var Dt=e=>{const{present:t,children:n}=e,r=_f(t),o=typeof n=="function"?n({present:r.isPresent}):f.Children.only(n),i=oe(r.ref,Of(o));return typeof n=="function"||r.isPresent?f.cloneElement(o,{ref:i}):null};Dt.displayName="Presence";function _f(e){const[t,n]=f.useState(),r=f.useRef(null),o=f.useRef(e),i=f.useRef("none"),s=e?"mounted":"unmounted",[a,c]=kf(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return f.useEffect(()=>{const l=Pn(r.current);i.current=a==="mounted"?l:"none"},[a]),Be(()=>{const l=r.current,d=o.current;if(d!==e){const g=i.current,m=Pn(l);e?c("MOUNT"):m==="none"||l?.display==="none"?c("UNMOUNT"):c(d&&g!==m?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,c]),Be(()=>{if(t){let l;const d=t.ownerDocument.defaultView??window,u=m=>{const v=Pn(r.current).includes(CSS.escape(m.animationName));if(m.target===t&&v&&(c("ANIMATION_END"),!o.current)){const b=t.style.animationFillMode;t.style.animationFillMode="forwards",l=d.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=b)})}},g=m=>{m.target===t&&(i.current=Pn(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",u),t.addEventListener("animationend",u),()=>{d.clearTimeout(l),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",u),t.removeEventListener("animationend",u)}}else c("ANIMATION_END")},[t,c]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:f.useCallback(l=>{r.current=l?getComputedStyle(l):null,n(l)},[])}}function Pn(e){return e?.animationName||"none"}function Of(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Ir="rovingFocusGroup.onEntryFocus",If={bubbles:!1,cancelable:!0},Lt="RovingFocusGroup",[Dr,Ls,Df]=ur(Lt),[Lf,js]=ht(Lt,[Df]),[jf,Nf]=Lf(Lt),Ns=f.forwardRef((e,t)=>p.jsx(Dr.Provider,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Dr.Slot,{scope:e.__scopeRovingFocusGroup,children:p.jsx(Ff,{...e,ref:t})})}));Ns.displayName=Lt;var Ff=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:o=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:a,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:d=!1,...u}=e,g=f.useRef(null),m=oe(t,g),w=lr(i),[v,b]=cr({prop:s,defaultProp:a??null,onChange:c,caller:Lt}),[x,E]=f.useState(!1),y=Fe(l),S=Ls(n),P=f.useRef(!1),[M,C]=f.useState(0);return f.useEffect(()=>{const I=g.current;if(I)return I.addEventListener(Ir,y),()=>I.removeEventListener(Ir,y)},[y]),p.jsx(jf,{scope:n,orientation:r,dir:w,loop:o,currentTabStopId:v,onItemFocus:f.useCallback(I=>b(I),[b]),onItemShiftTab:f.useCallback(()=>E(!0),[]),onFocusableItemAdd:f.useCallback(()=>C(I=>I+1),[]),onFocusableItemRemove:f.useCallback(()=>C(I=>I-1),[]),children:p.jsx(ie.div,{tabIndex:x||M===0?-1:0,"data-orientation":r,...u,ref:m,style:{outline:"none",...e.style},onMouseDown:W(e.onMouseDown,()=>{P.current=!0}),onFocus:W(e.onFocus,I=>{const j=!P.current;if(I.target===I.currentTarget&&j&&!x){const _=new CustomEvent(Ir,If);if(I.currentTarget.dispatchEvent(_),!_.defaultPrevented){const F=S().filter($=>$.focusable),U=F.find($=>$.active),N=F.find($=>$.id===v),G=[U,N,...F].filter(Boolean).map($=>$.ref.current);Vs(G,d)}}P.current=!1}),onBlur:W(e.onBlur,()=>E(!1))})})}),Fs="RovingFocusGroupItem",$s=f.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:o=!1,tabStopId:i,children:s,...a}=e,c=wr(),l=i||c,d=Nf(Fs,n),u=d.currentTabStopId===l,g=Ls(n),{onFocusableItemAdd:m,onFocusableItemRemove:w,currentTabStopId:v}=d;return f.useEffect(()=>{if(r)return m(),()=>w()},[r,m,w]),p.jsx(Dr.ItemSlot,{scope:n,id:l,focusable:r,active:o,children:p.jsx(ie.span,{tabIndex:u?0:-1,"data-orientation":d.orientation,...a,ref:t,onMouseDown:W(e.onMouseDown,b=>{r?d.onItemFocus(l):b.preventDefault()}),onFocus:W(e.onFocus,()=>d.onItemFocus(l)),onKeyDown:W(e.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){d.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const x=Hf(b,d.orientation,d.dir);if(x!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let y=g().filter(S=>S.focusable).map(S=>S.ref.current);if(x==="last")y.reverse();else if(x==="prev"||x==="next"){x==="prev"&&y.reverse();const S=y.indexOf(b.currentTarget);y=d.loop?Bf(y,S+1):y.slice(S+1)}setTimeout(()=>Vs(y))}}),children:typeof s=="function"?s({isCurrentTabStop:u,hasTabStop:v!=null}):s})})});$s.displayName=Fs;var $f={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Vf(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Hf(e,t,n){const r=Vf(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return $f[r]}function Vs(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function Bf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Wf=Ns,Uf=$s,zf=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},bt=new WeakMap,Rn=new WeakMap,Tn={},Lr=0,Hs=function(e){return e&&(e.host||Hs(e.parentNode))},Kf=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=Hs(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},Yf=function(e,t,n,r){var o=Kf(t,Array.isArray(e)?e:[e]);Tn[n]||(Tn[n]=new WeakMap);var i=Tn[n],s=[],a=new Set,c=new Set(o),l=function(u){!u||a.has(u)||(a.add(u),l(u.parentNode))};o.forEach(l);var d=function(u){!u||c.has(u)||Array.prototype.forEach.call(u.children,function(g){if(a.has(g))d(g);else try{var m=g.getAttribute(r),w=m!==null&&m!=="false",v=(bt.get(g)||0)+1,b=(i.get(g)||0)+1;bt.set(g,v),i.set(g,b),s.push(g),v===1&&w&&Rn.set(g,!0),b===1&&g.setAttribute(n,"true"),w||g.setAttribute(r,"true")}catch(x){console.error("aria-hidden: cannot operate on ",g,x)}})};return d(t),a.clear(),Lr++,function(){s.forEach(function(u){var g=bt.get(u)-1,m=i.get(u)-1;bt.set(u,g),i.set(u,m),g||(Rn.has(u)||u.removeAttribute(r),Rn.delete(u)),m||u.removeAttribute(n)}),Lr--,Lr||(bt=new WeakMap,bt=new WeakMap,Rn=new WeakMap,Tn={})}},Gf=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=zf(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),Yf(r,o,n,"aria-hidden")):function(){return null}},Le=function(){return Le=Object.assign||function(t){for(var n,r=1,o=arguments.length;r<o;r++){n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Le.apply(this,arguments)};function Bs(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}function Xf(e,t,n){if(n||arguments.length===2)for(var r=0,o=t.length,i;r<o;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Mn="right-scroll-bar-position",An="width-before-scroll-bar",qf="with-scroll-bars-hidden",Zf="--removed-body-scroll-bar-size";function jr(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function Jf(e,t){var n=R.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var o=n.value;o!==r&&(n.value=r,n.callback(r,o))}}}})[0];return n.callback=t,n.facade}var Qf=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ws=new WeakMap;function ep(e,t){var n=Jf(null,function(r){return e.forEach(function(o){return jr(o,r)})});return Qf(function(){var r=Ws.get(n);if(r){var o=new Set(r),i=new Set(e),s=n.current;o.forEach(function(a){i.has(a)||jr(a,null)}),i.forEach(function(a){o.has(a)||jr(a,s)})}Ws.set(n,e)},[e]),n}function tp(e){return e}function np(e,t){t===void 0&&(t=tp);var n=[],r=!1,o={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var s=t(i,r);return n.push(s),function(){n=n.filter(function(a){return a!==s})}},assignSyncMedium:function(i){for(r=!0;n.length;){var s=n;n=[],s.forEach(i)}n={push:function(a){return i(a)},filter:function(){return n}}},assignMedium:function(i){r=!0;var s=[];if(n.length){var a=n;n=[],a.forEach(i),s=n}var c=function(){var d=s;s=[],d.forEach(i)},l=function(){return Promise.resolve().then(c)};l(),n={push:function(d){s.push(d),l()},filter:function(d){return s=s.filter(d),n}}}};return o}function rp(e){e===void 0&&(e={});var t=np(null);return t.options=Le({async:!0,ssr:!1},e),t}var Us=function(e){var t=e.sideCar,n=Bs(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return f.createElement(r,Le({},n))};Us.isSideCarExport=!0;function op(e,t){return e.useMedium(t),Us}var zs=rp(),Nr=function(){},kn=f.forwardRef(function(e,t){var n=f.useRef(null),r=f.useState({onScrollCapture:Nr,onWheelCapture:Nr,onTouchMoveCapture:Nr}),o=r[0],i=r[1],s=e.forwardProps,a=e.children,c=e.className,l=e.removeScrollBar,d=e.enabled,u=e.shards,g=e.sideCar,m=e.noRelative,w=e.noIsolation,v=e.inert,b=e.allowPinchZoom,x=e.as,E=x===void 0?"div":x,y=e.gapMode,S=Bs(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),P=g,M=ep([n,t]),C=Le(Le({},S),o);return f.createElement(f.Fragment,null,d&&f.createElement(P,{sideCar:zs,removeScrollBar:l,shards:u,noRelative:m,noIsolation:w,inert:v,setCallbacks:i,allowPinchZoom:!!b,lockRef:n,gapMode:y}),s?f.cloneElement(f.Children.only(a),Le(Le({},C),{ref:M})):f.createElement(E,Le({},C,{className:c,ref:M}),a))});kn.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},kn.classNames={fullWidth:An,zeroRight:Mn};var ip=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function sp(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=ip();return t&&e.setAttribute("nonce",t),e}function ap(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function cp(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var lp=function(){var e=0,t=null;return{add:function(n){e==0&&(t=sp())&&(ap(t,n),cp(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},up=function(){var e=lp();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Ks=function(){var e=up(),t=function(n){var r=n.styles,o=n.dynamic;return e(r,o),null};return t},dp={left:0,top:0,right:0,gap:0},Fr=function(e){return parseInt(e||"",10)||0},fp=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Fr(n),Fr(r),Fr(o)]},pp=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dp;var t=fp(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},hp=Ks(),xt="data-scroll-locked",mp=function(e,t,n,r){var o=e.left,i=e.top,s=e.right,a=e.gap;return n===void 0&&(n="margin"),`
|
|
375
|
+
.`.concat(qf,` {
|
|
368
376
|
overflow: hidden `).concat(r,`;
|
|
369
377
|
padding-right: `).concat(a,"px ").concat(r,`;
|
|
370
378
|
}
|
|
371
|
-
body[`).concat(
|
|
379
|
+
body[`).concat(xt,`] {
|
|
372
380
|
overflow: hidden `).concat(r,`;
|
|
373
381
|
overscroll-behavior: contain;
|
|
374
382
|
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
375
383
|
padding-left: `.concat(o,`px;
|
|
376
|
-
padding-top: `).concat(
|
|
377
|
-
padding-right: `).concat(
|
|
384
|
+
padding-top: `).concat(i,`px;
|
|
385
|
+
padding-right: `).concat(s,`px;
|
|
378
386
|
margin-left:0;
|
|
379
387
|
margin-top:0;
|
|
380
388
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
381
389
|
`),n==="padding"&&"padding-right: ".concat(a,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
382
390
|
}
|
|
383
391
|
|
|
384
|
-
.`).concat(
|
|
392
|
+
.`).concat(Mn,` {
|
|
385
393
|
right: `).concat(a,"px ").concat(r,`;
|
|
386
394
|
}
|
|
387
395
|
|
|
388
|
-
.`).concat(
|
|
396
|
+
.`).concat(An,` {
|
|
389
397
|
margin-right: `).concat(a,"px ").concat(r,`;
|
|
390
398
|
}
|
|
391
399
|
|
|
392
|
-
.`).concat(
|
|
400
|
+
.`).concat(Mn," .").concat(Mn,` {
|
|
393
401
|
right: 0 `).concat(r,`;
|
|
394
402
|
}
|
|
395
403
|
|
|
396
|
-
.`).concat(
|
|
404
|
+
.`).concat(An," .").concat(An,` {
|
|
397
405
|
margin-right: 0 `).concat(r,`;
|
|
398
406
|
}
|
|
399
407
|
|
|
400
|
-
body[`).concat(
|
|
401
|
-
`).concat(
|
|
408
|
+
body[`).concat(xt,`] {
|
|
409
|
+
`).concat(Zf,": ").concat(a,`px;
|
|
402
410
|
}
|
|
403
|
-
`)},
|
|
411
|
+
`)},Ys=function(){var e=parseInt(document.body.getAttribute(xt)||"0",10);return isFinite(e)?e:0},gp=function(){f.useEffect(function(){return document.body.setAttribute(xt,(Ys()+1).toString()),function(){var e=Ys()-1;e<=0?document.body.removeAttribute(xt):document.body.setAttribute(xt,e.toString())}},[])},vp=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=r===void 0?"margin":r;gp();var i=f.useMemo(function(){return pp(o)},[o]);return f.createElement(hp,{styles:mp(i,!t,o,n?"":"!important")})},$r=!1;if(typeof window<"u")try{var _n=Object.defineProperty({},"passive",{get:function(){return $r=!0,!0}});window.addEventListener("test",_n,_n),window.removeEventListener("test",_n,_n)}catch{$r=!1}var St=$r?{passive:!1}:!1,yp=function(e){return e.tagName==="TEXTAREA"},Gs=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!yp(e)&&n[t]==="visible")},wp=function(e){return Gs(e,"overflowY")},bp=function(e){return Gs(e,"overflowX")},Xs=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var o=qs(e,r);if(o){var i=Zs(e,r),s=i[1],a=i[2];if(s>a)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},xp=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},Sp=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},qs=function(e,t){return e==="v"?wp(t):bp(t)},Zs=function(e,t){return e==="v"?xp(t):Sp(t)},Ep=function(e,t){return e==="h"&&t==="rtl"?-1:1},Cp=function(e,t,n,r,o){var i=Ep(e,window.getComputedStyle(t).direction),s=i*r,a=n.target,c=t.contains(a),l=!1,d=s>0,u=0,g=0;do{if(!a)break;var m=Zs(e,a),w=m[0],v=m[1],b=m[2],x=v-b-i*w;(w||x)&&qs(e,a)&&(u+=x,g+=w);var E=a.parentNode;a=E&&E.nodeType===Node.DOCUMENT_FRAGMENT_NODE?E.host:E}while(!c&&a!==document.body||c&&(t.contains(a)||t===a));return(d&&Math.abs(u)<1||!d&&Math.abs(g)<1)&&(l=!0),l},On=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Js=function(e){return[e.deltaX,e.deltaY]},Qs=function(e){return e&&"current"in e?e.current:e},Pp=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Rp=function(e){return`
|
|
404
412
|
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
405
413
|
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
406
|
-
`)},$f=0,ct=[];function Vf(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState($f++)[0],s=f.useState(xi)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var g=Te([e.lockRef.current],(e.shards||[]).map(Ai),!0).filter(Boolean);return g.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),g.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(g,w){if("touches"in g&&g.touches.length===2||g.type==="wheel"&&g.ctrlKey)return!i.current.allowPinchZoom;var b=fn(g),S=n.current,v="deltaX"in g?g.deltaX:S[0]-b[0],x="deltaY"in g?g.deltaY:S[1]-b[1],P,T=g.target,E=Math.abs(v)>Math.abs(x)?"h":"v";if("touches"in g&&E==="h"&&T.type==="range")return!1;var I=Ci(E,T);if(!I)return!0;if(I?P=E:(P=E==="v"?"h":"v",I=Ci(E,T)),!I)return!1;if(!r.current&&"changedTouches"in g&&(v||x)&&(r.current=P),!P)return!0;var N=r.current||P;return Nf(N,w,g,N==="h"?v:x)},[]),c=f.useCallback(function(g){var w=g;if(!(!ct.length||ct[ct.length-1]!==s)){var b="deltaY"in w?Ti(w):fn(w),S=t.current.filter(function(P){return P.name===w.type&&(P.target===w.target||w.target===P.shadowParent)&&jf(P.delta,b)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var v=(i.current.shards||[]).map(Ai).filter(Boolean).filter(function(P){return P.contains(w.target)}),x=v.length>0?a(w,v[0]):!i.current.noIsolation;x&&w.cancelable&&w.preventDefault()}}},[]),l=f.useCallback(function(g,w,b,S){var v={name:g,delta:w,target:b,should:S,shadowParent:Hf(b)};t.current.push(v),setTimeout(function(){t.current=t.current.filter(function(x){return x!==v})},1)},[]),d=f.useCallback(function(g){n.current=fn(g),r.current=void 0},[]),u=f.useCallback(function(g){l(g.type,Ti(g),g.target,a(g,e.lockRef.current))},[]),h=f.useCallback(function(g){l(g.type,fn(g),g.target,a(g,e.lockRef.current))},[]);f.useEffect(function(){return ct.push(s),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:h}),document.addEventListener("wheel",c,at),document.addEventListener("touchmove",c,at),document.addEventListener("touchstart",d,at),function(){ct=ct.filter(function(g){return g!==s}),document.removeEventListener("wheel",c,at),document.removeEventListener("touchmove",c,at),document.removeEventListener("touchstart",d,at)}},[]);var m=e.removeScrollBar,y=e.inert;return f.createElement(f.Fragment,null,y?f.createElement(s,{styles:Ff(o)}):null,m?f.createElement(Mf,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Hf(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Bf=gf(bi,Vf);var Mi=f.forwardRef(function(e,t){return f.createElement(un,Z({},e,{ref:t,sideCar:Bf}))});Mi.classNames=un.classNames;var br=["Enter"," "],Wf=["ArrowDown","PageUp","Home"],ki=["ArrowUp","PageDown","End"],zf=[...Wf,...ki],Uf={ltr:[...br,"ArrowRight"],rtl:[...br,"ArrowLeft"]},Kf={ltr:["ArrowLeft"],rtl:["ArrowRight"]},yt="Menu",[wt,Gf,Yf]=Wn(yt),[He,Ii]=Qe(yt,[Yf,ti,fi]),pn=ti(),_i=fi(),[Xf,Be]=He(yt),[qf,bt]=He(yt),Oi=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:s,modal:i=!0}=e,a=pn(t),[c,l]=f.useState(null),d=f.useRef(!1),u=Ee(s),h=Bn(o);return f.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",y,{capture:!0,once:!0}),document.addEventListener("pointermove",y,{capture:!0,once:!0})},y=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",y,{capture:!0}),document.removeEventListener("pointermove",y,{capture:!0})}},[]),p.jsx(jd,{...a,children:p.jsx(Xf,{scope:t,open:n,onOpenChange:u,content:c,onContentChange:l,children:p.jsx(qf,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:h,modal:i,children:r})})})};Oi.displayName=yt;var Zf="MenuAnchor",xr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pn(n);return p.jsx(Fd,{...o,...r,ref:t})});xr.displayName=Zf;var Sr="MenuPortal",[Jf,Di]=He(Sr,{forceMount:void 0}),Li=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,s=Be(Sr,t);return p.jsx(Jf,{scope:t,forceMount:n,children:p.jsx(gt,{present:n||s.open,children:p.jsx(ui,{asChild:!0,container:o,children:r})})})};Li.displayName=Sr;var de="MenuContent",[Qf,Er]=He(de),Ni=f.forwardRef((e,t)=>{const n=Di(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Be(de,e.__scopeMenu),i=bt(de,e.__scopeMenu);return p.jsx(wt.Provider,{scope:e.__scopeMenu,children:p.jsx(gt,{present:r||s.open,children:p.jsx(wt.Slot,{scope:e.__scopeMenu,children:i.modal?p.jsx(ep,{...o,ref:t}):p.jsx(tp,{...o,ref:t})})})})}),ep=f.forwardRef((e,t)=>{const n=Be(de,e.__scopeMenu),r=f.useRef(null),o=Q(t,r);return f.useEffect(()=>{const s=r.current;if(s)return af(s)},[]),p.jsx(Cr,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:V(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),tp=f.forwardRef((e,t)=>{const n=Be(de,e.__scopeMenu);return p.jsx(Cr,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),np=Ut("MenuContent.ScrollLock"),Cr=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:s,onCloseAutoFocus:i,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,disableOutsideScroll:y,...g}=e,w=Be(de,n),b=bt(de,n),S=pn(n),v=_i(n),x=Gf(n),[P,T]=f.useState(null),E=f.useRef(null),I=Q(t,E,w.onContentChange),N=f.useRef(0),k=f.useRef(""),D=f.useRef(0),H=f.useRef(null),W=f.useRef("right"),B=f.useRef(0),K=y?Mi:f.Fragment,j=y?{as:np,allowPinchZoom:!0}:void 0,F=A=>{const C=k.current+A,O=x().filter(Y=>!Y.disabled),L=document.activeElement,X=O.find(Y=>Y.ref.current===L)?.textValue,re=O.map(Y=>Y.textValue),te=mp(re,C,X),oe=O.find(Y=>Y.textValue===te)?.ref.current;(function Y(G){k.current=G,window.clearTimeout(N.current),G!==""&&(N.current=window.setTimeout(()=>Y(""),1e3))})(C),oe&&setTimeout(()=>oe.focus())};f.useEffect(()=>()=>window.clearTimeout(N.current),[]),lu();const _=f.useCallback(A=>W.current===H.current?.side&&gp(A,H.current?.area),[]);return p.jsx(Qf,{scope:n,searchRef:k,onItemEnter:f.useCallback(A=>{_(A)&&A.preventDefault()},[_]),onItemLeave:f.useCallback(A=>{_(A)||(E.current?.focus(),T(null))},[_]),onTriggerLeave:f.useCallback(A=>{_(A)&&A.preventDefault()},[_]),pointerGraceTimerRef:D,onPointerGraceIntentChange:f.useCallback(A=>{H.current=A},[]),children:p.jsx(K,{...j,children:p.jsx(Rs,{asChild:!0,trapped:o,onMountAutoFocus:V(s,A=>{A.preventDefault(),E.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:i,children:p.jsx(xs,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:h,onDismiss:m,children:p.jsx(tf,{asChild:!0,...v,dir:b.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:T,onEntryFocus:V(c,A=>{b.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx($d,{role:"menu","aria-orientation":"vertical","data-state":Qi(w.open),"data-radix-menu-content":"",dir:b.dir,...S,...g,ref:I,style:{outline:"none",...g.style},onKeyDown:V(g.onKeyDown,A=>{const O=A.target.closest("[data-radix-menu-content]")===A.currentTarget,L=A.ctrlKey||A.altKey||A.metaKey,X=A.key.length===1;O&&(A.key==="Tab"&&A.preventDefault(),!L&&X&&F(A.key));const re=E.current;if(A.target!==re||!zf.includes(A.key))return;A.preventDefault();const oe=x().filter(Y=>!Y.disabled).map(Y=>Y.ref.current);ki.includes(A.key)&&oe.reverse(),fp(oe)}),onBlur:V(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(N.current),k.current="")}),onPointerMove:V(e.onPointerMove,St(A=>{const C=A.target,O=B.current!==A.clientX;if(A.currentTarget.contains(C)&&O){const L=A.clientX>B.current?"right":"left";W.current=L,B.current=A.clientX}}))})})})})})})});Ni.displayName=de;var rp="MenuGroup",Pr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"group",...r,ref:t})});Pr.displayName=rp;var op="MenuLabel",ji=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{...r,ref:t})});ji.displayName=op;var mn="MenuItem",Fi="menu.itemSelect",hn=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,s=f.useRef(null),i=bt(mn,e.__scopeMenu),a=Er(mn,e.__scopeMenu),c=Q(t,s),l=f.useRef(!1),d=()=>{const u=s.current;if(!n&&u){const h=new CustomEvent(Fi,{bubbles:!0,cancelable:!0});u.addEventListener(Fi,m=>r?.(m),{once:!0}),Fo(u,h),h.defaultPrevented?l.current=!1:i.onClose()}};return p.jsx($i,{...o,ref:c,disabled:n,onClick:V(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:V(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:V(e.onKeyDown,u=>{const h=a.searchRef.current!=="";n||h&&u.key===" "||br.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});hn.displayName=mn;var $i=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...s}=e,i=Er(mn,n),a=_i(n),c=f.useRef(null),l=Q(t,c),[d,u]=f.useState(!1),[h,m]=f.useState("");return f.useEffect(()=>{const y=c.current;y&&m((y.textContent??"").trim())},[s.children]),p.jsx(wt.ItemSlot,{scope:n,disabled:r,textValue:o??h,children:p.jsx(nf,{asChild:!0,...a,focusable:!r,children:p.jsx(ee.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:l,onPointerMove:V(e.onPointerMove,St(y=>{r?i.onItemLeave(y):(i.onItemEnter(y),y.defaultPrevented||y.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:V(e.onPointerLeave,St(y=>i.onItemLeave(y))),onFocus:V(e.onFocus,()=>u(!0)),onBlur:V(e.onBlur,()=>u(!1))})})})}),sp="MenuCheckboxItem",Vi=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(Ui,{scope:e.__scopeMenu,checked:n,children:p.jsx(hn,{role:"menuitemcheckbox","aria-checked":gn(n)?"mixed":n,...o,ref:t,"data-state":Tr(n),onSelect:V(o.onSelect,()=>r?.(gn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Vi.displayName=sp;var Hi="MenuRadioGroup",[ip,ap]=He(Hi,{value:void 0,onValueChange:()=>{}}),Bi=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,s=Ee(r);return p.jsx(ip,{scope:e.__scopeMenu,value:n,onValueChange:s,children:p.jsx(Pr,{...o,ref:t})})});Bi.displayName=Hi;var Wi="MenuRadioItem",zi=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=ap(Wi,e.__scopeMenu),s=n===o.value;return p.jsx(Ui,{scope:e.__scopeMenu,checked:s,children:p.jsx(hn,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":Tr(s),onSelect:V(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});zi.displayName=Wi;var Rr="MenuItemIndicator",[Ui,cp]=He(Rr,{checked:!1}),Ki=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,s=cp(Rr,n);return p.jsx(gt,{present:r||gn(s.checked)||s.checked===!0,children:p.jsx(ee.span,{...o,ref:t,"data-state":Tr(s.checked)})})});Ki.displayName=Rr;var lp="MenuSeparator",Gi=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ee.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});Gi.displayName=lp;var up="MenuArrow",Yi=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=pn(n);return p.jsx(Vd,{...o,...r,ref:t})});Yi.displayName=up;var dp="MenuSub",[km,Xi]=He(dp),xt="MenuSubTrigger",qi=f.forwardRef((e,t)=>{const n=Be(xt,e.__scopeMenu),r=bt(xt,e.__scopeMenu),o=Xi(xt,e.__scopeMenu),s=Er(xt,e.__scopeMenu),i=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=s,l={__scopeMenu:e.__scopeMenu},d=f.useCallback(()=>{i.current&&window.clearTimeout(i.current),i.current=null},[]);return f.useEffect(()=>d,[d]),f.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),c(null)}},[a,c]),p.jsx(xr,{asChild:!0,...l,children:p.jsx($i,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Qi(n.open),...e,ref:zt(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:V(e.onPointerMove,St(u=>{s.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!i.current&&(s.onPointerGraceIntentChange(null),i.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:V(e.onPointerLeave,St(u=>{d();const h=n.content?.getBoundingClientRect();if(h){const m=n.content?.dataset.side,y=m==="right",g=y?-5:5,w=h[y?"left":"right"],b=h[y?"right":"left"];s.onPointerGraceIntentChange({area:[{x:u.clientX+g,y:u.clientY},{x:w,y:h.top},{x:b,y:h.top},{x:b,y:h.bottom},{x:w,y:h.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(u),u.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:V(e.onKeyDown,u=>{const h=s.searchRef.current!=="";e.disabled||h&&u.key===" "||Uf[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});qi.displayName=xt;var Zi="MenuSubContent",Ji=f.forwardRef((e,t)=>{const n=Di(de,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,s=Be(de,e.__scopeMenu),i=bt(de,e.__scopeMenu),a=Xi(Zi,e.__scopeMenu),c=f.useRef(null),l=Q(t,c);return p.jsx(wt.Provider,{scope:e.__scopeMenu,children:p.jsx(gt,{present:r||s.open,children:p.jsx(wt.Slot,{scope:e.__scopeMenu,children:p.jsx(Cr,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:i.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{i.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:V(e.onFocusOutside,d=>{d.target!==a.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:V(e.onEscapeKeyDown,d=>{i.onClose(),d.preventDefault()}),onKeyDown:V(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),h=Kf[i.dir].includes(d.key);u&&h&&(s.onOpenChange(!1),a.trigger?.focus(),d.preventDefault())})})})})})});Ji.displayName=Zi;function Qi(e){return e?"open":"closed"}function gn(e){return e==="indeterminate"}function Tr(e){return gn(e)?"indeterminate":e?"checked":"unchecked"}function fp(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function pp(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function mp(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let i=pp(e,Math.max(s,0));o.length===1&&(i=i.filter(l=>l!==n));const c=i.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function hp(e,t){const{x:n,y:r}=e;let o=!1;for(let s=0,i=t.length-1;s<t.length;i=s++){const a=t[s],c=t[i],l=a.x,d=a.y,u=c.x,h=c.y;d>r!=h>r&&n<(u-l)*(r-d)/(h-d)+l&&(o=!o)}return o}function gp(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return hp(n,t)}function St(e){return t=>t.pointerType==="mouse"?e(t):void 0}var vp=Oi,yp=xr,wp=Li,bp=Ni,xp=Pr,Sp=ji,Ep=hn,Cp=Vi,Pp=Bi,Rp=zi,Tp=Ki,Ap=Gi,Mp=Yi,kp=qi,Ip=Ji,vn="DropdownMenu",[_p,Im]=Qe(vn,[Ii]),ie=Ii(),[Op,ea]=_p(vn),ta=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:s,onOpenChange:i,modal:a=!0}=e,c=ie(t),l=f.useRef(null),[d,u]=Hn({prop:o,defaultProp:s??!1,onChange:i,caller:vn});return p.jsx(Op,{scope:t,triggerId:Qn(),triggerRef:l,contentId:Qn(),open:d,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(h=>!h),[u]),modal:a,children:p.jsx(vp,{...c,open:d,onOpenChange:u,dir:r,modal:a,children:n})})};ta.displayName=vn;var na="DropdownMenuTrigger",ra=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,s=ea(na,n),i=ie(n);return p.jsx(yp,{asChild:!0,...i,children:p.jsx(ee.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:zt(t,s.triggerRef),onPointerDown:V(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(s.onOpenToggle(),s.open||a.preventDefault())}),onKeyDown:V(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&s.onOpenToggle(),a.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});ra.displayName=na;var Dp="DropdownMenuPortal",oa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=ie(t);return p.jsx(wp,{...r,...n})};oa.displayName=Dp;var sa="DropdownMenuContent",ia=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ea(sa,n),s=ie(n),i=f.useRef(!1);return p.jsx(bp,{id:o.contentId,"aria-labelledby":o.triggerId,...s,...r,ref:t,onCloseAutoFocus:V(e.onCloseAutoFocus,a=>{i.current||o.triggerRef.current?.focus(),i.current=!1,a.preventDefault()}),onInteractOutside:V(e.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!o.modal||d)&&(i.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ia.displayName=sa;var Lp="DropdownMenuGroup",Np=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(xp,{...o,...r,ref:t})});Np.displayName=Lp;var jp="DropdownMenuLabel",Fp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Sp,{...o,...r,ref:t})});Fp.displayName=jp;var $p="DropdownMenuItem",aa=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ep,{...o,...r,ref:t})});aa.displayName=$p;var Vp="DropdownMenuCheckboxItem",Hp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Cp,{...o,...r,ref:t})});Hp.displayName=Vp;var Bp="DropdownMenuRadioGroup",Wp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Pp,{...o,...r,ref:t})});Wp.displayName=Bp;var zp="DropdownMenuRadioItem",Up=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Rp,{...o,...r,ref:t})});Up.displayName=zp;var Kp="DropdownMenuItemIndicator",Gp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Tp,{...o,...r,ref:t})});Gp.displayName=Kp;var Yp="DropdownMenuSeparator",Xp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ap,{...o,...r,ref:t})});Xp.displayName=Yp;var qp="DropdownMenuArrow",Zp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Mp,{...o,...r,ref:t})});Zp.displayName=qp;var Jp="DropdownMenuSubTrigger",Qp=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(kp,{...o,...r,ref:t})});Qp.displayName=Jp;var em="DropdownMenuSubContent",tm=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=ie(n);return p.jsx(Ip,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});tm.displayName=em;var nm=ta,rm=ra,om=oa,sm=ia,im=aa;function am({...e}){return p.jsx(nm,{...e})}function cm({...e}){return p.jsx(om,{...e})}function lm({...e}){return p.jsx(rm,{...e})}function um({sideOffset:e=4,...t}){return p.jsx(fm,{sideOffset:e,onCloseAutoFocus:n=>{n.preventDefault()},...t})}function dm(e){return p.jsx(pm,{...e})}const fm=z(sm)`
|
|
414
|
+
`)},Tp=0,Et=[];function Mp(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(Tp++)[0],i=f.useState(Ks)[0],s=f.useRef(e);f.useEffect(function(){s.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=Xf([e.lockRef.current],(e.shards||[]).map(Qs),!0).filter(Boolean);return v.forEach(function(b){return b.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(b){return b.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var a=f.useCallback(function(v,b){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!s.current.allowPinchZoom;var x=On(v),E=n.current,y="deltaX"in v?v.deltaX:E[0]-x[0],S="deltaY"in v?v.deltaY:E[1]-x[1],P,M=v.target,C=Math.abs(y)>Math.abs(S)?"h":"v";if("touches"in v&&C==="h"&&M.type==="range")return!1;var I=Xs(C,M);if(!I)return!0;if(I?P=C:(P=C==="v"?"h":"v",I=Xs(C,M)),!I)return!1;if(!r.current&&"changedTouches"in v&&(y||S)&&(r.current=P),!P)return!0;var j=r.current||P;return Cp(j,b,v,j==="h"?y:S)},[]),c=f.useCallback(function(v){var b=v;if(!(!Et.length||Et[Et.length-1]!==i)){var x="deltaY"in b?Js(b):On(b),E=t.current.filter(function(P){return P.name===b.type&&(P.target===b.target||b.target===P.shadowParent)&&Pp(P.delta,x)})[0];if(E&&E.should){b.cancelable&&b.preventDefault();return}if(!E){var y=(s.current.shards||[]).map(Qs).filter(Boolean).filter(function(P){return P.contains(b.target)}),S=y.length>0?a(b,y[0]):!s.current.noIsolation;S&&b.cancelable&&b.preventDefault()}}},[]),l=f.useCallback(function(v,b,x,E){var y={name:v,delta:b,target:x,should:E,shadowParent:Ap(x)};t.current.push(y),setTimeout(function(){t.current=t.current.filter(function(S){return S!==y})},1)},[]),d=f.useCallback(function(v){n.current=On(v),r.current=void 0},[]),u=f.useCallback(function(v){l(v.type,Js(v),v.target,a(v,e.lockRef.current))},[]),g=f.useCallback(function(v){l(v.type,On(v),v.target,a(v,e.lockRef.current))},[]);f.useEffect(function(){return Et.push(i),e.setCallbacks({onScrollCapture:u,onWheelCapture:u,onTouchMoveCapture:g}),document.addEventListener("wheel",c,St),document.addEventListener("touchmove",c,St),document.addEventListener("touchstart",d,St),function(){Et=Et.filter(function(v){return v!==i}),document.removeEventListener("wheel",c,St),document.removeEventListener("touchmove",c,St),document.removeEventListener("touchstart",d,St)}},[]);var m=e.removeScrollBar,w=e.inert;return f.createElement(f.Fragment,null,w?f.createElement(i,{styles:Rp(o)}):null,m?f.createElement(vp,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Ap(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kp=op(zs,Mp);var ea=f.forwardRef(function(e,t){return f.createElement(kn,Le({},e,{ref:t,sideCar:kp}))});ea.classNames=kn.classNames;var Vr=["Enter"," "],_p=["ArrowDown","PageUp","Home"],ta=["ArrowUp","PageDown","End"],Op=[..._p,...ta],Ip={ltr:[...Vr,"ArrowRight"],rtl:[...Vr,"ArrowLeft"]},Dp={ltr:["ArrowLeft"],rtl:["ArrowRight"]},jt="Menu",[Nt,Lp,jp]=ur(jt),[nt,na]=ht(jt,[jp,Ps,js]),In=Ps(),ra=js(),[Np,rt]=nt(jt),[Fp,Ft]=nt(jt),oa=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:o,onOpenChange:i,modal:s=!0}=e,a=In(t),[c,l]=f.useState(null),d=f.useRef(!1),u=Fe(i),g=lr(o);return f.useEffect(()=>{const m=()=>{d.current=!0,document.addEventListener("pointerdown",w,{capture:!0,once:!0}),document.addEventListener("pointermove",w,{capture:!0,once:!0})},w=()=>d.current=!1;return document.addEventListener("keydown",m,{capture:!0}),()=>{document.removeEventListener("keydown",m,{capture:!0}),document.removeEventListener("pointerdown",w,{capture:!0}),document.removeEventListener("pointermove",w,{capture:!0})}},[]),p.jsx(Pf,{...a,children:p.jsx(Np,{scope:t,open:n,onOpenChange:u,content:c,onContentChange:l,children:p.jsx(Fp,{scope:t,onClose:f.useCallback(()=>u(!1),[u]),isUsingKeyboardRef:d,dir:g,modal:s,children:r})})})};oa.displayName=jt;var $p="MenuAnchor",Hr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=In(n);return p.jsx(Rf,{...o,...r,ref:t})});Hr.displayName=$p;var Br="MenuPortal",[Vp,ia]=nt(Br,{forceMount:void 0}),sa=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:o}=e,i=rt(Br,t);return p.jsx(Vp,{scope:t,forceMount:n,children:p.jsx(Dt,{present:n||i.open,children:p.jsx(Ds,{asChild:!0,container:o,children:r})})})};sa.displayName=Br;var xe="MenuContent",[Hp,Wr]=nt(xe),aa=f.forwardRef((e,t)=>{const n=ia(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=rt(xe,e.__scopeMenu),s=Ft(xe,e.__scopeMenu);return p.jsx(Nt.Provider,{scope:e.__scopeMenu,children:p.jsx(Dt,{present:r||i.open,children:p.jsx(Nt.Slot,{scope:e.__scopeMenu,children:s.modal?p.jsx(Bp,{...o,ref:t}):p.jsx(Wp,{...o,ref:t})})})})}),Bp=f.forwardRef((e,t)=>{const n=rt(xe,e.__scopeMenu),r=f.useRef(null),o=oe(t,r);return f.useEffect(()=>{const i=r.current;if(i)return Gf(i)},[]),p.jsx(Ur,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:W(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Wp=f.forwardRef((e,t)=>{const n=rt(xe,e.__scopeMenu);return p.jsx(Ur,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Up=dn("MenuContent.ScrollLock"),Ur=f.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:a,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:g,onDismiss:m,disableOutsideScroll:w,...v}=e,b=rt(xe,n),x=Ft(xe,n),E=In(n),y=ra(n),S=Lp(n),[P,M]=f.useState(null),C=f.useRef(null),I=oe(t,C,b.onContentChange),j=f.useRef(0),_=f.useRef(""),F=f.useRef(0),U=f.useRef(null),N=f.useRef("right"),H=f.useRef(0),G=w?ea:f.Fragment,$=w?{as:Up,allowPinchZoom:!0}:void 0,V=A=>{const Q=_.current+A,ae=S().filter(Z=>!Z.disabled),te=document.activeElement,Se=ae.find(Z=>Z.ref.current===te)?.textValue,Te=ae.map(Z=>Z.textValue),Me=nh(Te,Q,Se),le=ae.find(Z=>Z.textValue===Me)?.ref.current;(function Z(ue){_.current=ue,window.clearTimeout(j.current),ue!==""&&(j.current=window.setTimeout(()=>Z(""),1e3))})(Q),le&&setTimeout(()=>le.focus())};f.useEffect(()=>()=>window.clearTimeout(j.current),[]),qu();const D=f.useCallback(A=>N.current===U.current?.side&&oh(A,U.current?.area),[]);return p.jsx(Hp,{scope:n,searchRef:_,onItemEnter:f.useCallback(A=>{D(A)&&A.preventDefault()},[D]),onItemLeave:f.useCallback(A=>{D(A)||(C.current?.focus(),M(null))},[D]),onTriggerLeave:f.useCallback(A=>{D(A)&&A.preventDefault()},[D]),pointerGraceTimerRef:F,onPointerGraceIntentChange:f.useCallback(A=>{U.current=A},[]),children:p.jsx(G,{...$,children:p.jsx(qi,{asChild:!0,trapped:o,onMountAutoFocus:W(i,A=>{A.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:p.jsx(zi,{asChild:!0,disableOutsidePointerEvents:a,onEscapeKeyDown:l,onPointerDownOutside:d,onFocusOutside:u,onInteractOutside:g,onDismiss:m,children:p.jsx(Wf,{asChild:!0,...y,dir:x.dir,orientation:"vertical",loop:r,currentTabStopId:P,onCurrentTabStopIdChange:M,onEntryFocus:W(c,A=>{x.isUsingKeyboardRef.current||A.preventDefault()}),preventScrollOnEntryFocus:!0,children:p.jsx(Tf,{role:"menu","aria-orientation":"vertical","data-state":Ca(b.open),"data-radix-menu-content":"",dir:x.dir,...E,...v,ref:I,style:{outline:"none",...v.style},onKeyDown:W(v.onKeyDown,A=>{const ae=A.target.closest("[data-radix-menu-content]")===A.currentTarget,te=A.ctrlKey||A.altKey||A.metaKey,Se=A.key.length===1;ae&&(A.key==="Tab"&&A.preventDefault(),!te&&Se&&V(A.key));const Te=C.current;if(A.target!==Te||!Op.includes(A.key))return;A.preventDefault();const le=S().filter(Z=>!Z.disabled).map(Z=>Z.ref.current);ta.includes(A.key)&&le.reverse(),eh(le)}),onBlur:W(e.onBlur,A=>{A.currentTarget.contains(A.target)||(window.clearTimeout(j.current),_.current="")}),onPointerMove:W(e.onPointerMove,Vt(A=>{const Q=A.target,ae=H.current!==A.clientX;if(A.currentTarget.contains(Q)&&ae){const te=A.clientX>H.current?"right":"left";N.current=te,H.current=A.clientX}}))})})})})})})});aa.displayName=xe;var zp="MenuGroup",zr=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{role:"group",...r,ref:t})});zr.displayName=zp;var Kp="MenuLabel",ca=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{...r,ref:t})});ca.displayName=Kp;var Dn="MenuItem",la="menu.itemSelect",Ln=f.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...o}=e,i=f.useRef(null),s=Ft(Dn,e.__scopeMenu),a=Wr(Dn,e.__scopeMenu),c=oe(t,i),l=f.useRef(!1),d=()=>{const u=i.current;if(!n&&u){const g=new CustomEvent(la,{bubbles:!0,cancelable:!0});u.addEventListener(la,m=>r?.(m),{once:!0}),ci(u,g),g.defaultPrevented?l.current=!1:s.onClose()}};return p.jsx(ua,{...o,ref:c,disabled:n,onClick:W(e.onClick,d),onPointerDown:u=>{e.onPointerDown?.(u),l.current=!0},onPointerUp:W(e.onPointerUp,u=>{l.current||u.currentTarget?.click()}),onKeyDown:W(e.onKeyDown,u=>{const g=a.searchRef.current!=="";n||g&&u.key===" "||Vr.includes(u.key)&&(u.currentTarget.click(),u.preventDefault())})})});Ln.displayName=Dn;var ua=f.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:o,...i}=e,s=Wr(Dn,n),a=ra(n),c=f.useRef(null),l=oe(t,c),[d,u]=f.useState(!1),[g,m]=f.useState("");return f.useEffect(()=>{const w=c.current;w&&m((w.textContent??"").trim())},[i.children]),p.jsx(Nt.ItemSlot,{scope:n,disabled:r,textValue:o??g,children:p.jsx(Uf,{asChild:!0,...a,focusable:!r,children:p.jsx(ie.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...i,ref:l,onPointerMove:W(e.onPointerMove,Vt(w=>{r?s.onItemLeave(w):(s.onItemEnter(w),w.defaultPrevented||w.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:W(e.onPointerLeave,Vt(w=>s.onItemLeave(w))),onFocus:W(e.onFocus,()=>u(!0)),onBlur:W(e.onBlur,()=>u(!1))})})})}),Yp="MenuCheckboxItem",da=f.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...o}=e;return p.jsx(ga,{scope:e.__scopeMenu,checked:n,children:p.jsx(Ln,{role:"menuitemcheckbox","aria-checked":jn(n)?"mixed":n,...o,ref:t,"data-state":Yr(n),onSelect:W(o.onSelect,()=>r?.(jn(n)?!0:!n),{checkForDefaultPrevented:!1})})})});da.displayName=Yp;var fa="MenuRadioGroup",[Gp,Xp]=nt(fa,{value:void 0,onValueChange:()=>{}}),pa=f.forwardRef((e,t)=>{const{value:n,onValueChange:r,...o}=e,i=Fe(r);return p.jsx(Gp,{scope:e.__scopeMenu,value:n,onValueChange:i,children:p.jsx(zr,{...o,ref:t})})});pa.displayName=fa;var ha="MenuRadioItem",ma=f.forwardRef((e,t)=>{const{value:n,...r}=e,o=Xp(ha,e.__scopeMenu),i=n===o.value;return p.jsx(ga,{scope:e.__scopeMenu,checked:i,children:p.jsx(Ln,{role:"menuitemradio","aria-checked":i,...r,ref:t,"data-state":Yr(i),onSelect:W(r.onSelect,()=>o.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});ma.displayName=ha;var Kr="MenuItemIndicator",[ga,qp]=nt(Kr,{checked:!1}),va=f.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...o}=e,i=qp(Kr,n);return p.jsx(Dt,{present:r||jn(i.checked)||i.checked===!0,children:p.jsx(ie.span,{...o,ref:t,"data-state":Yr(i.checked)})})});va.displayName=Kr;var Zp="MenuSeparator",ya=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return p.jsx(ie.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});ya.displayName=Zp;var Jp="MenuArrow",wa=f.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,o=In(n);return p.jsx(Mf,{...o,...r,ref:t})});wa.displayName=Jp;var Qp="MenuSub",[$m,ba]=nt(Qp),$t="MenuSubTrigger",xa=f.forwardRef((e,t)=>{const n=rt($t,e.__scopeMenu),r=Ft($t,e.__scopeMenu),o=ba($t,e.__scopeMenu),i=Wr($t,e.__scopeMenu),s=f.useRef(null),{pointerGraceTimerRef:a,onPointerGraceIntentChange:c}=i,l={__scopeMenu:e.__scopeMenu},d=f.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return f.useEffect(()=>d,[d]),f.useEffect(()=>{const u=a.current;return()=>{window.clearTimeout(u),c(null)}},[a,c]),p.jsx(Hr,{asChild:!0,...l,children:p.jsx(ua,{id:o.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":o.contentId,"data-state":Ca(n.open),...e,ref:un(t,o.onTriggerChange),onClick:u=>{e.onClick?.(u),!(e.disabled||u.defaultPrevented)&&(u.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:W(e.onPointerMove,Vt(u=>{i.onItemEnter(u),!u.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:W(e.onPointerLeave,Vt(u=>{d();const g=n.content?.getBoundingClientRect();if(g){const m=n.content?.dataset.side,w=m==="right",v=w?-5:5,b=g[w?"left":"right"],x=g[w?"right":"left"];i.onPointerGraceIntentChange({area:[{x:u.clientX+v,y:u.clientY},{x:b,y:g.top},{x,y:g.top},{x,y:g.bottom},{x:b,y:g.bottom}],side:m}),window.clearTimeout(a.current),a.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(u),u.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:W(e.onKeyDown,u=>{const g=i.searchRef.current!=="";e.disabled||g&&u.key===" "||Ip[r.dir].includes(u.key)&&(n.onOpenChange(!0),n.content?.focus(),u.preventDefault())})})})});xa.displayName=$t;var Sa="MenuSubContent",Ea=f.forwardRef((e,t)=>{const n=ia(xe,e.__scopeMenu),{forceMount:r=n.forceMount,...o}=e,i=rt(xe,e.__scopeMenu),s=Ft(xe,e.__scopeMenu),a=ba(Sa,e.__scopeMenu),c=f.useRef(null),l=oe(t,c);return p.jsx(Nt.Provider,{scope:e.__scopeMenu,children:p.jsx(Dt,{present:r||i.open,children:p.jsx(Nt.Slot,{scope:e.__scopeMenu,children:p.jsx(Ur,{id:a.contentId,"aria-labelledby":a.triggerId,...o,ref:l,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:d=>{s.isUsingKeyboardRef.current&&c.current?.focus(),d.preventDefault()},onCloseAutoFocus:d=>d.preventDefault(),onFocusOutside:W(e.onFocusOutside,d=>{d.target!==a.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:W(e.onEscapeKeyDown,d=>{s.onClose(),d.preventDefault()}),onKeyDown:W(e.onKeyDown,d=>{const u=d.currentTarget.contains(d.target),g=Dp[s.dir].includes(d.key);u&&g&&(i.onOpenChange(!1),a.trigger?.focus(),d.preventDefault())})})})})})});Ea.displayName=Sa;function Ca(e){return e?"open":"closed"}function jn(e){return e==="indeterminate"}function Yr(e){return jn(e)?"indeterminate":e?"checked":"unchecked"}function eh(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function th(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function nh(e,t,n){const o=t.length>1&&Array.from(t).every(l=>l===t[0])?t[0]:t,i=n?e.indexOf(n):-1;let s=th(e,Math.max(i,0));o.length===1&&(s=s.filter(l=>l!==n));const c=s.find(l=>l.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}function rh(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;i<t.length;s=i++){const a=t[i],c=t[s],l=a.x,d=a.y,u=c.x,g=c.y;d>r!=g>r&&n<(u-l)*(r-d)/(g-d)+l&&(o=!o)}return o}function oh(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return rh(n,t)}function Vt(e){return t=>t.pointerType==="mouse"?e(t):void 0}var ih=oa,sh=Hr,ah=sa,ch=aa,lh=zr,uh=ca,dh=Ln,fh=da,ph=pa,hh=ma,mh=va,gh=ya,vh=wa,yh=xa,wh=Ea,Nn="DropdownMenu",[bh,Vm]=ht(Nn,[na]),de=na(),[xh,Pa]=bh(Nn),Ra=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:o,defaultOpen:i,onOpenChange:s,modal:a=!0}=e,c=de(t),l=f.useRef(null),[d,u]=cr({prop:o,defaultProp:i??!1,onChange:s,caller:Nn});return p.jsx(xh,{scope:t,triggerId:wr(),triggerRef:l,contentId:wr(),open:d,onOpenChange:u,onOpenToggle:f.useCallback(()=>u(g=>!g),[u]),modal:a,children:p.jsx(ih,{...c,open:d,onOpenChange:u,dir:r,modal:a,children:n})})};Ra.displayName=Nn;var Ta="DropdownMenuTrigger",Ma=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...o}=e,i=Pa(Ta,n),s=de(n);return p.jsx(sh,{asChild:!0,...s,children:p.jsx(ie.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...o,ref:un(t,i.triggerRef),onPointerDown:W(e.onPointerDown,a=>{!r&&a.button===0&&a.ctrlKey===!1&&(i.onOpenToggle(),i.open||a.preventDefault())}),onKeyDown:W(e.onKeyDown,a=>{r||(["Enter"," "].includes(a.key)&&i.onOpenToggle(),a.key==="ArrowDown"&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(a.key)&&a.preventDefault())})})})});Ma.displayName=Ta;var Sh="DropdownMenuPortal",Aa=e=>{const{__scopeDropdownMenu:t,...n}=e,r=de(t);return p.jsx(ah,{...r,...n})};Aa.displayName=Sh;var ka="DropdownMenuContent",_a=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=Pa(ka,n),i=de(n),s=f.useRef(!1);return p.jsx(ch,{id:o.contentId,"aria-labelledby":o.triggerId,...i,...r,ref:t,onCloseAutoFocus:W(e.onCloseAutoFocus,a=>{s.current||o.triggerRef.current?.focus(),s.current=!1,a.preventDefault()}),onInteractOutside:W(e.onInteractOutside,a=>{const c=a.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0,d=c.button===2||l;(!o.modal||d)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});_a.displayName=ka;var Eh="DropdownMenuGroup",Ch=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(lh,{...o,...r,ref:t})});Ch.displayName=Eh;var Ph="DropdownMenuLabel",Rh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(uh,{...o,...r,ref:t})});Rh.displayName=Ph;var Th="DropdownMenuItem",Oa=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(dh,{...o,...r,ref:t})});Oa.displayName=Th;var Mh="DropdownMenuCheckboxItem",Ah=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(fh,{...o,...r,ref:t})});Ah.displayName=Mh;var kh="DropdownMenuRadioGroup",_h=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(ph,{...o,...r,ref:t})});_h.displayName=kh;var Oh="DropdownMenuRadioItem",Ih=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(hh,{...o,...r,ref:t})});Ih.displayName=Oh;var Dh="DropdownMenuItemIndicator",Lh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(mh,{...o,...r,ref:t})});Lh.displayName=Dh;var jh="DropdownMenuSeparator",Nh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(gh,{...o,...r,ref:t})});Nh.displayName=jh;var Fh="DropdownMenuArrow",$h=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(vh,{...o,...r,ref:t})});$h.displayName=Fh;var Vh="DropdownMenuSubTrigger",Hh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(yh,{...o,...r,ref:t})});Hh.displayName=Vh;var Bh="DropdownMenuSubContent",Wh=f.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,o=de(n);return p.jsx(wh,{...o,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Wh.displayName=Bh;var Uh=Ra,zh=Ma,Kh=Aa,Yh=_a,Gh=Oa;const Xh=Uh,qh=zh,Zh=Kh,Ia=R.forwardRef(({sideOffset:e=4,...t},n)=>p.jsx(Jh,{ref:n,sideOffset:e,onCloseAutoFocus:r=>{r.preventDefault()},...t}));Ia.displayName="PlayerDropdownMenuContent";const Da=R.forwardRef((e,t)=>p.jsx(Qh,{ref:t,...e}));Da.displayName="PlayerDropdownMenuItem";const Jh=Y(Yh).withConfig({shouldForwardProp:e=>e!=="ref"})`
|
|
407
415
|
padding: 0.25rem;
|
|
408
416
|
min-width: 8rem;
|
|
409
417
|
max-height: 12rem;
|
|
@@ -474,7 +482,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
474
482
|
transform: translateX(0);
|
|
475
483
|
}
|
|
476
484
|
}
|
|
477
|
-
`,
|
|
485
|
+
`,Qh=Y(Gh)`
|
|
478
486
|
position: relative;
|
|
479
487
|
display: flex;
|
|
480
488
|
align-items: center;
|
|
@@ -511,11 +519,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
511
519
|
color: rgba(255, 255, 255, 0.5);
|
|
512
520
|
pointer-events: none;
|
|
513
521
|
}
|
|
514
|
-
`,
|
|
522
|
+
`,La="settings";function ja(){const[e,t]=R.useState(!1),n=k(c=>c.containerRef),r=k(c=>c.addIdleLock),o=k(c=>c.removeIdleLock),i=k(c=>c.levels),s=k(c=>c.setLevel),a=R.useCallback(c=>{t(c),c?r(La):o(La)},[r,o]);return p.jsxs(Xh,{open:e,onOpenChange:a,children:[p.jsx(qh,{asChild:!0,children:p.jsx(et,{children:p.jsx(Hu,{})})}),p.jsx(Zh,{container:n.current,children:p.jsx(Ia,{side:"top",align:"end",children:i?.map(c=>p.jsxs(Da,{onClick:()=>s(c.value),children:[c.label,c.selected&&p.jsx(Vu,{})]},c.sid))})})]})}function em(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 tm(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 nm(){return p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",children:p.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 Na="volume";function Fa(){k(a=>a.containerRef);const e=k(a=>a.setVolume),t=k(a=>a.volume),n=k(a=>a.addIdleLock),r=k(a=>a.removeIdleLock),o=a=>{e(a[0]),n(Na)},i=()=>{r(Na)},s=()=>e(t?0:100);return p.jsxs(rm,{children:[p.jsx(et,{onClick:s,className:"shrink-0",children:t?t>50?p.jsx(em,{}):p.jsx(tm,{}):p.jsx(nm,{})}),p.jsx($a,{children:p.jsx(pn,{value:[t],onValueChange:o,onValueCommit:i})})]})}const $a=Y.div`
|
|
515
523
|
width: 0;
|
|
516
524
|
opacity: 0;
|
|
517
525
|
transition: all 0.2s ease-in-out;
|
|
518
|
-
`,
|
|
526
|
+
`,rm=Y.div`
|
|
519
527
|
display: flex;
|
|
520
528
|
align-items: center;
|
|
521
529
|
gap: 0.25rem;
|
|
@@ -526,11 +534,11 @@ See https://s-c.sh/2BAXzed for more info.`),window[Wt]+=1);function Mc({children
|
|
|
526
534
|
&:hover {
|
|
527
535
|
width: 6rem;
|
|
528
536
|
|
|
529
|
-
${
|
|
537
|
+
${$a} {
|
|
530
538
|
width: 100%;
|
|
531
539
|
opacity: 1;
|
|
532
540
|
}
|
|
533
541
|
}
|
|
534
542
|
}
|
|
535
|
-
`;function
|
|
543
|
+
`;function om({url:e,startDate:t,endDate:n,messages:r}){return p.jsx(Ru,{startDate:new Date(t),endDate:new Date(n),children:p.jsx(im,{url:e,messages:r})})}function im({url:e,messages:t}){const n=k(r=>r.containerRef);return p.jsx(Ii,{ref:n,children:p.jsxs(gl,{eventFinishedMessage:t?.eventFinished,eventNotStartedMessage:t?.eventNotStarted,eventStartingSoonMessage:t?.eventStartingSoon,children:[p.jsx(ku,{url:e}),p.jsx(Bi,{}),p.jsxs(Hi,{children:[p.jsx(Vl,{}),p.jsx(Di,{children:p.jsxs(Li,{children:[p.jsx(Pu,{}),p.jsxs(ji,{children:[p.jsxs(Fi,{children:[p.jsx(Fl,{}),p.jsx(Fa,{}),p.jsx(Tu,{})]}),p.jsxs($i,{children:[p.jsx(Sl,{message:t?.live}),p.jsx(ja,{}),p.jsx(Vi,{})]})]})]})})]})]})})}function sm(){const e=k(o=>o.isPlaying),t=k(o=>o.pause),n=k(o=>o.play),r=()=>{e?t():n()};return p.jsx(et,{onClick:r,children:e?p.jsx(Zo,{}):p.jsx(Jo,{})})}function am(){const e=k(o=>o.isPlaying),t=k(o=>o.pause),n=k(o=>o.play),r=()=>{e?t():n()};return p.jsx(ti,{onClick:r})}const Va="vod-player-progress-bar";function cm(){const e=R.useRef(null),t=R.useRef(null),[n,r]=R.useState(!1),[o,i]=R.useState(-1),[s,a]=R.useState(-1),c=k(y=>y.currentTime),l=k(y=>y.duration),d=k(y=>y.seek),u=k(y=>y.addIdleLock),g=k(y=>y.removeIdleLock),m=parseFloat((l?(s!==-1?s:c)/l*100:0).toFixed(1)),w=y=>{a(l*(y[0]/100)),u(Va)},v=()=>{s!==-1&&(d(s),a(-1),g(Va))},b=()=>r(!0),x=()=>r(!1),E=R.useCallback(y=>{const S=e.current,P=t.current;if(S&&P){const M=hn(S),C=hn(P),I=(y.pageX||y.clientX)-M.left,j=I/M.width;if(j<0)return;let _=I-C.width/2;_<0&&(_=0),_>M.width-C.width&&(_=-1),P.style.left=_>-1?`${_}px`:"auto",P.style.right=_>-1?"auto":"0px",i(j*l)}b()},[l]);return p.jsxs(ni,{children:[p.jsx(pn,{ref:e,value:[m],onPointerLeave:x,onPointerDown:x,onPointerMove:E,onValueChange:w,onValueCommit:v,step:.1}),p.jsx(ri,{ref:t,$isVisible:n,children:p.jsx(oi,{children:pt(o)})})]})}function lm(){const e=k(n=>n.currentTime),t=k(n=>n.duration);return p.jsxs(Ti,{children:[p.jsx(Ai,{children:pt(e)}),p.jsx(_i,{}),p.jsx(ki,{children:pt(t)})]})}const um=60,dm=95;function fm({storageKey:e}){const t=k(d=>d.currentTime),n=k(d=>d.duration),r=k(d=>d.isPlaying),o=k(d=>d.setStartTime),i=R.useRef(!1),s=R.useCallback(()=>{window.localStorage.setItem(e,JSON.stringify({currentTime:t,duration:n}))},[t,n,e]),a=R.useCallback(()=>{const d=window.localStorage.getItem(e);if(d){const u=JSON.parse(d);return{startTime:u.currentTime,progress:u.currentTime/u.duration*100}}return{startTime:null,progress:null}},[e]),c=R.useCallback(()=>{t<um||s()},[t,s]),l=R.useCallback(()=>{if(i.current)return;const{progress:d,startTime:u}=a();u&&d&&d<dm&&(o(u),i.current=!0)},[a,o]);return Wt(()=>c(),r?1e3:null),R.useEffect(()=>{l()},[l]),null}function pm({url:e,watchHistory:t}){return p.jsxs(Ri,{children:[p.jsx(hm,{url:e}),t?.enabled&&p.jsx(fm,{storageKey:t.storageKey})]})}function hm({url:e}){const t=k(n=>n.containerRef);return p.jsxs(Ii,{ref:t,children:[p.jsx(Oi,{url:e,isLive:!1}),p.jsx(Bi,{}),p.jsxs(Hi,{children:[p.jsx(am,{}),p.jsx(Di,{children:p.jsxs(Li,{children:[p.jsx(cm,{}),p.jsxs(ji,{children:[p.jsxs(Fi,{children:[p.jsx(sm,{}),p.jsx(Fa,{}),p.jsx(lm,{})]}),p.jsxs($i,{children:[p.jsx(ja,{}),p.jsx(Vi,{})]})]})]})})]})]})}Ae.LivePlayer=om,Ae.VodPlayer=pm,Object.defineProperty(Ae,Symbol.toStringTag,{value:"Module"})}));
|
|
536
544
|
//# sourceMappingURL=react-video-player.umd.js.map
|