@wavv/ui 2.0.0-alpha.2 → 2.0.0-alpha.3

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.
@@ -15,7 +15,7 @@
15
15
  *
16
16
  * This source code is licensed under the MIT license found in the
17
17
  * LICENSE file in the root directory of this source tree.
18
- */"production"===process.env.NODE_ENV?Fs.exports=function(){if(Bs)return zs;Bs=1;var e,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"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),zs.ContextConsumer=s,zs.ContextProvider=a,zs.Element=t,zs.ForwardRef=l,zs.Fragment=r,zs.Lazy=p,zs.Memo=d,zs.Portal=n,zs.Profiler=i,zs.StrictMode=o,zs.Suspense=u,zs.SuspenseList=f,zs.isAsyncMode=function(){return!1},zs.isConcurrentMode=function(){return!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g,zs}():Fs.exports=(Hs||(Hs=1,"production"!==process.env.NODE_ENV&&function(){var e,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"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;Vs.ContextConsumer=v,Vs.ContextProvider=y,Vs.Element=m,Vs.ForwardRef=b,Vs.Fragment=w,Vs.Lazy=x,Vs.Memo=C,Vs.Portal=S,Vs.Profiler=_,Vs.StrictMode=O,Vs.Suspense=k,Vs.SuspenseList=E,Vs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Vs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Vs.isContextConsumer=function(e){return g(e)===s},Vs.isContextProvider=function(e){return g(e)===a},Vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vs.isForwardRef=function(e){return g(e)===l},Vs.isFragment=function(e){return g(e)===r},Vs.isLazy=function(e){return g(e)===p},Vs.isMemo=function(e){return g(e)===d},Vs.isPortal=function(e){return g(e)===n},Vs.isProfiler=function(e){return g(e)===i},Vs.isStrictMode=function(e){return g(e)===o},Vs.isSuspense=function(e){return g(e)===u},Vs.isSuspenseList=function(e){return g(e)===f},Vs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Vs.typeOf=g}()),Vs);var Ks=Fs.exports;function $s(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Ks.isFragment(o)?e.push.apply(e,$s(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Us=(e,t)=>!t.includes(e),Ws=W("div",{shouldForwardProp:e=>Us(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Zs=W("div",{shouldForwardProp:e=>Us(e,["selected","noSelect","contentPosition","color","accented"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const s=r?e.color.accent:e.color.inactive;return{color:i?t:n||s,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),qs=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx(Gs,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};qs.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u}=t,f=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(Zs,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},f,{children:n}))};const Gs=W(Ws)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Ys=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Xs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Qs,{children:n.header}),e.jsx(ec,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Js=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ys(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(qs.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,children:Xs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?$s(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return $s([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Qs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),ec=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),tc=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},nc=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(js,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(As,{asChild:!0,children:e.jsx(ic,Object.assign({},b,{children:a}))}),e.jsx(Ts,{container:p,children:e.jsx(Ms,{asChild:!0,side:tc(i).side,align:tc(i).align,sideOffset:l,children:e.jsxs(Ws,{id:o,maxHeight:d,width:f,zIndex:h,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>{const{id:n}=t,r=c(t,["id"]),o=null==n?void 0:n.toString();return e.jsx(rc,Object.assign({id:o},r,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Xs(t)}),o)})),n,u&&e.jsx(Ls,{className:"menu-arrow"})]})})})]})},rc=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(Ps,{asChild:!0,disabled:o,onSelect:i,children:e.jsx(Zs,Object.assign({id:null==r?void 0:r.toString()},a,{children:n}))})};nc.Item=rc,nc.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Is,{children:[e.jsx(Rs,{asChild:!0,disabled:a,children:e.jsxs(Zs,{children:[o,e.jsx(ac,{children:e.jsx(sc,{children:e.jsx(dn,{name:"chevron-right",size:"small",inheritColor:a})})})]})}),e.jsx(Ts,{container:s,children:e.jsx(Ns,{asChild:!0,sideOffset:2,alignOffset:-5,children:e.jsx(Ws,Object.assign({id:r,zIndex:i},l,{children:n}))})})]})},nc.Separator=()=>e.jsx(oc,{});const oc=W(Ds)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),ic=W.div({display:"inline-flex"}),ac=W.div({marginLeft:"auto",width:16,height:16}),sc=W.div({position:"absolute",right:8}),cc=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(lc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(fc,{children:e.jsx(dn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},lc=W.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),ln,un),uc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),fc=W.div({animation:`${uc} 1s linear infinite`,width:"max-content",height:"max-content"}),dc=({size:t})=>e.jsx(pc,{className:"button-loader",children:e.jsx(cc,{size:t})}),pc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),hc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(gc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},gc=W.div((({width:e})=>({display:"inline-flex",width:e})),ln),vc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(mc,Object.assign({options:i},a,{children:s})):e.jsx(yc,Object.assign({},a,{children:s}))};vc.Group=hc;const yc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(bc,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(dn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(dc,{size:k})]}))},mc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(wc,{children:e.jsxs(hc,{width:_?void 0:O,children:[e.jsx(yc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(xc,{children:r})})),e.jsx(nc,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(yc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},bc=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?ar:cr,i="dark"===e?cr:ar;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),ln),wc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),xc=W.div({marginRight:8}),Cc=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(_c,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},Sc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),_c=W.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":Sc(e,o||i),"&::-moz-range-thumb":Sc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),ln),Oc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(kc,Object.assign({width:a},b,{children:[e.jsx(vc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Ec,{alignDataTop:"top"===s,children:[!B&&e.jsx(Cc,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(jc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Ac,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Ac,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),kc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),ln),Ec=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),jc=W.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Ac=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Tc={},Mc={};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.defaultOptions=void 0,Mc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.getLocales=Pc.getFractionDigits=Pc.roundTo=Pc.parseValue=void 0,Pc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Pc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Pc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Pc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.millify=void 0;const Dc=Mc,Lc=Pc,Ic=1e3;function*Rc(e){let t=Ic;for(;;){const n=e/t;if(n<1)return;yield n,t*=Ic}}function Nc(e,t){var n,r;const o=t?{...Dc.defaultOptions,...t}:Dc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Lc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Rc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Lc.roundTo(i,o.precision);for(const e of Rc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Lc.getLocales(),{minimumFractionDigits:Lc.getFractionDigits(c)})}${f}${u}`}Tc.millify=Nc;var Bc=Tc.default=Nc;function Fc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fc(e))&&(r&&(r+=" "),r+=t);return r}var Hc=Array.isArray,Vc="object"==typeof ct&&ct&&ct.Object===Object&&ct,Kc=Vc,$c="object"==typeof self&&self&&self.Object===Object&&self,Uc=Kc||$c||Function("return this")(),Wc=Uc.Symbol,Zc=Wc,qc=Object.prototype,Gc=qc.hasOwnProperty,Yc=qc.toString,Xc=Zc?Zc.toStringTag:void 0;var Jc=function(e){var t=Gc.call(e,Xc),n=e[Xc];try{e[Xc]=void 0;var r=!0}catch(e){}var o=Yc.call(e);return r&&(t?e[Xc]=n:delete e[Xc]),o},Qc=Object.prototype.toString;var el=Jc,tl=function(e){return Qc.call(e)},nl=Wc?Wc.toStringTag:void 0;var rl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":nl&&nl in Object(e)?el(e):tl(e)};var ol=function(e){return null!=e&&"object"==typeof e},il=rl,al=ol;var sl=function(e){return"symbol"==typeof e||al(e)&&"[object Symbol]"==il(e)},cl=Hc,ll=sl,ul=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fl=/^\w*$/;var dl=function(e,t){if(cl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ll(e))||(fl.test(e)||!ul.test(e)||null!=t&&e in Object(t))};var pl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},hl=lt(pl),gl=rl,vl=pl;var yl,ml=function(e){if(!vl(e))return!1;var t=gl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},bl=lt(ml),wl=Uc["__core-js_shared__"],xl=(yl=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||""))?"Symbol(src)_1."+yl:"";var Cl=function(e){return!!xl&&xl in e},Sl=Function.prototype.toString;var _l=function(e){if(null!=e){try{return Sl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ol=ml,kl=Cl,El=pl,jl=_l,Al=/^\[object .+?Constructor\]$/,Tl=Function.prototype,Ml=Object.prototype,Pl=Tl.toString,Dl=Ml.hasOwnProperty,Ll=RegExp("^"+Pl.call(Dl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Il=function(e,t){return null==e?void 0:e[t]},Rl=function(e){return!(!El(e)||kl(e))&&(Ol(e)?Ll:Al).test(jl(e))},Nl=Il;var Bl=function(e,t){var n=Nl(e,t);return Rl(n)?n:void 0},Fl=Bl(Object,"create"),zl=Fl;var Hl=function(){this.__data__=zl?zl(null):{},this.size=0};var Vl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kl=Fl,$l=Object.prototype.hasOwnProperty;var Ul=function(e){var t=this.__data__;if(Kl){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return $l.call(t,e)?t[e]:void 0},Wl=Fl,Zl=Object.prototype.hasOwnProperty;var ql=Fl;var Gl=Hl,Yl=Vl,Xl=Ul,Jl=function(e){var t=this.__data__;return Wl?void 0!==t[e]:Zl.call(t,e)},Ql=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ql&&void 0===t?"__lodash_hash_undefined__":t,this};function eu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eu.prototype.clear=Gl,eu.prototype.delete=Yl,eu.prototype.get=Xl,eu.prototype.has=Jl,eu.prototype.set=Ql;var tu=eu;var nu=function(){this.__data__=[],this.size=0};var ru=function(e,t){return e===t||e!=e&&t!=t},ou=ru;var iu=function(e,t){for(var n=e.length;n--;)if(ou(e[n][0],t))return n;return-1},au=iu,su=Array.prototype.splice;var cu=function(e){var t=this.__data__,n=au(t,e);return!(n<0)&&(n==t.length-1?t.pop():su.call(t,n,1),--this.size,!0)},lu=iu;var uu=function(e){var t=this.__data__,n=lu(t,e);return n<0?void 0:t[n][1]},fu=iu;var du=iu;var pu=function(e,t){var n=this.__data__,r=du(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},hu=nu,gu=cu,vu=uu,yu=function(e){return fu(this.__data__,e)>-1},mu=pu;function bu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bu.prototype.clear=hu,bu.prototype.delete=gu,bu.prototype.get=vu,bu.prototype.has=yu,bu.prototype.set=mu;var wu=bu,xu=Bl(Uc,"Map"),Cu=tu,Su=wu,_u=xu;var Ou=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ku=function(e,t){var n=e.__data__;return Ou(t)?n["string"==typeof t?"string":"hash"]:n.map},Eu=ku;var ju=ku;var Au=ku;var Tu=ku;var Mu=function(e,t){var n=Tu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Pu=function(){this.size=0,this.__data__={hash:new Cu,map:new(_u||Su),string:new Cu}},Du=function(e){var t=Eu(this,e).delete(e);return this.size-=t?1:0,t},Lu=function(e){return ju(this,e).get(e)},Iu=function(e){return Au(this,e).has(e)},Ru=Mu;function Nu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nu.prototype.clear=Pu,Nu.prototype.delete=Du,Nu.prototype.get=Lu,Nu.prototype.has=Iu,Nu.prototype.set=Ru;var Bu=Nu,Fu=Bu;function zu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zu.Cache||Fu),n}zu.Cache=Fu;var Hu=zu,Vu=lt(Hu),Ku=Hu;var $u=function(e){var t=Ku(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Uu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wu=/\\(\\)?/g,Zu=$u((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Uu,(function(e,n,r,o){t.push(r?o.replace(Wu,"$1"):n||e)})),t})),qu=Zu;var Gu=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Yu=Gu,Xu=Hc,Ju=sl,Qu=Wc?Wc.prototype:void 0,ef=Qu?Qu.toString:void 0;var tf=function e(t){if("string"==typeof t)return t;if(Xu(t))return Yu(t,e)+"";if(Ju(t))return ef?ef.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},nf=tf;var rf=function(e){return null==e?"":nf(e)},of=Hc,af=dl,sf=qu,cf=rf;var lf=function(e,t){return of(e)?e:af(e,t)?[e]:sf(cf(e))},uf=sl;var ff=function(e){if("string"==typeof e||uf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},df=lf,pf=ff;var hf=function(e,t){for(var n=0,r=(t=df(t,e)).length;null!=e&&n<r;)e=e[pf(t[n++])];return n&&n==r?e:void 0},gf=hf;var vf=function(e,t,n){var r=null==e?void 0:gf(e,t);return void 0===r?n:r},yf=lt(vf);var mf=lt((function(e){return null==e})),bf=rl,wf=Hc,xf=ol;var Cf,Sf=lt((function(e){return"string"==typeof e||!wf(e)&&xf(e)&&"[object String]"==bf(e)})),_f={exports:{}},Of={};var kf,Ef={};
18
+ */"production"===process.env.NODE_ENV?Fs.exports=function(){if(Bs)return zs;Bs=1;var e,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"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:switch(e=e.type){case r:case i:case o:case u:case f:return e;default:switch(e=e&&e.$$typeof){case c:case s:case l:case p:case d:case a:return e;default:return h}}case n:return h}}}return e=Symbol.for("react.module.reference"),zs.ContextConsumer=s,zs.ContextProvider=a,zs.Element=t,zs.ForwardRef=l,zs.Fragment=r,zs.Lazy=p,zs.Memo=d,zs.Portal=n,zs.Profiler=i,zs.StrictMode=o,zs.Suspense=u,zs.SuspenseList=f,zs.isAsyncMode=function(){return!1},zs.isConcurrentMode=function(){return!1},zs.isContextConsumer=function(e){return g(e)===s},zs.isContextProvider=function(e){return g(e)===a},zs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},zs.isForwardRef=function(e){return g(e)===l},zs.isFragment=function(e){return g(e)===r},zs.isLazy=function(e){return g(e)===p},zs.isMemo=function(e){return g(e)===d},zs.isPortal=function(e){return g(e)===n},zs.isProfiler=function(e){return g(e)===i},zs.isStrictMode=function(e){return g(e)===o},zs.isSuspense=function(e){return g(e)===u},zs.isSuspenseList=function(e){return g(e)===f},zs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},zs.typeOf=g,zs}():Fs.exports=(Hs||(Hs=1,"production"!==process.env.NODE_ENV&&function(){var e,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"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen");function g(e){if("object"==typeof e&&null!==e){var h=e.$$typeof;switch(h){case t:var g=e.type;switch(g){case r:case i:case o:case u:case f:return g;default:var v=g&&g.$$typeof;switch(v){case c:case s:case l:case p:case d:case a:return v;default:return h}}case n:return h}}}e=Symbol.for("react.module.reference");var v=s,y=a,m=t,b=l,w=r,x=p,C=d,S=n,_=i,O=o,k=u,E=f,j=!1,A=!1;Vs.ContextConsumer=v,Vs.ContextProvider=y,Vs.Element=m,Vs.ForwardRef=b,Vs.Fragment=w,Vs.Lazy=x,Vs.Memo=C,Vs.Portal=S,Vs.Profiler=_,Vs.StrictMode=O,Vs.Suspense=k,Vs.SuspenseList=E,Vs.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Vs.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Vs.isContextConsumer=function(e){return g(e)===s},Vs.isContextProvider=function(e){return g(e)===a},Vs.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Vs.isForwardRef=function(e){return g(e)===l},Vs.isFragment=function(e){return g(e)===r},Vs.isLazy=function(e){return g(e)===p},Vs.isMemo=function(e){return g(e)===d},Vs.isPortal=function(e){return g(e)===n},Vs.isProfiler=function(e){return g(e)===i},Vs.isStrictMode=function(e){return g(e)===o},Vs.isSuspense=function(e){return g(e)===u},Vs.isSuspenseList=function(e){return g(e)===f},Vs.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===r||t===i||t===o||t===u||t===f||t===h||"object"==typeof t&&null!==t&&(t.$$typeof===p||t.$$typeof===d||t.$$typeof===a||t.$$typeof===s||t.$$typeof===l||t.$$typeof===e||void 0!==t.getModuleId)},Vs.typeOf=g}()),Vs);var Ks=Fs.exports;function $s(e,n=0,r=[]){return t.Children.toArray(e).reduce(((e,o,i)=>(Ks.isFragment(o)?e.push.apply(e,$s(o.props.children,n+1,r.concat(o.key||i))):t.isValidElement(o)?e.push(t.cloneElement(o,{key:r.concat(String(o.key)).join(".")})):"string"!=typeof o&&"number"!=typeof o||e.push(o),e)),[])}const Us=(e,t)=>!t.includes(e),Ws=W("div",{shouldForwardProp:e=>Us(e,["maxHeight","zIndex","offsetY","offsetX","centerY","centerX","optionsPosition"])})((({theme:e,width:t,maxHeight:n,zIndex:r})=>({backgroundColor:e.options.background,borderRadius:4,boxShadow:e.elevation3,boxSizing:"border-box",fontFamily:e.font.family.default,fontSize:e.font.size.md,maxHeight:n,overflowY:"auto",width:t||"max-content",zIndex:r,"& > span > .menu-arrow":{fill:e.options.background,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .menu-arrow':{filter:"drop-shadow(0px 2px 2px rgba(0, 0, 0, 0.1))"}}))),Zs=W("div",{shouldForwardProp:e=>Us(e,["selected","noSelect","contentPosition","color","accented"])})({border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative"},(({theme:{optionItem:e,scale4:t},color:n,accented:r,selected:o,disabled:i,noSelect:a=!1})=>{const s=r?e.color.accent:e.color.inactive;return{color:i?t:n||s,cursor:i||a?"inherit":"pointer",pointerEvents:i||a?"none":"auto",backgroundColor:!a&&o?e.background.active:e.background.inactive,"&:hover":{backgroundColor:i||a?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active},"&[data-highlighted]":{backgroundColor:e.background.active},"&[data-disabled], &[data-disabled]:hover":{color:t,backgroundColor:e.background.inactive,cursor:"inherit"}}}),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),qs=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:l,offsetX:u,centerY:f,centerX:d,direction:p})=>{const[h,g]=t.useState(),v=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||v;if(e&&p){const{scrollWidth:t,scrollHeight:n}=e,r="left"===p||"right"===p;g((r?t:n<c?n:c)+((r?u:l)||4))}}),[i,p]);const y=e.jsx(Gs,{id:n,ref:i||v,offsetX:u,offsetY:l,width:s,maxHeight:c,centerY:f,centerX:d,optionsPosition:{direction:p,amount:h},children:o});if(a){const e=document.querySelector(a);return e?r.createPortal(y,e):y}return y};qs.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u}=t,f=c(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(Zs,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:a,contentPosition:s,color:l,accented:u,tabIndex:a?-1:0},f,{children:n}))};const Gs=W(Ws)((({offsetY:e,offsetX:t})=>({zIndex:2,top:e?-e:"100%",position:"absolute",left:t||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),Ys=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},Xs=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Qs,{children:n.header}),e.jsx(ec,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),Js=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ys(t,o).map((t=>{var o;const i=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(qs.Item,{id:null===(o=t.id)||void 0===o?void 0:o.toString(),onClick:i,children:Xs(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?$s(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return $s([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Qs=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),ec=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),tc=e=>{let t="top",n="center";if(!e)return{side:t,align:n};const[r,o]=e.split(" ");return"left"===r&&(t="left"),"right"===r&&(t="right"),"bottom"===r&&(t="bottom"),"left"!==o&&"top"!==o||(n="start"),"right"!==o&&"bottom"!==o||(n="end"),{side:t,align:n}},nc=t=>{var{children:n,options:r,id:o,position:i="bottom",trigger:a,open:s,offset:l=4,arrow:u,width:f,maxHeight:d=200,container:p,zIndex:h,disableScrollLock:g,onChange:v,afterShow:y,afterHide:m}=t,b=c(t,["children","options","id","position","trigger","open","offset","arrow","width","maxHeight","container","zIndex","disableScrollLock","onChange","afterShow","afterHide"]);return e.jsxs(js,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(As,{asChild:!0,children:e.jsx(ic,Object.assign({},b,{children:a}))}),e.jsx(Ts,{container:p,children:e.jsx(Ms,{asChild:!0,side:tc(i).side,align:tc(i).align,sideOffset:l,children:e.jsxs(Ws,{id:o,maxHeight:d,width:f,zIndex:h,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>{const{id:n,label:r,header:o,body:i,leftElement:a,rightElement:s}=t,l=c(t,["id","label","header","body","leftElement","rightElement"]),u=null==n?void 0:n.toString();return e.jsx(rc,Object.assign({id:u},l,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Xs({label:r,header:o,body:i,leftElement:a,rightElement:s})}),u)})),n,u&&e.jsx(Ls,{className:"menu-arrow"})]})})})]})},rc=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(Ps,{asChild:!0,disabled:o,onSelect:i,children:e.jsx(Zs,Object.assign({id:null==r?void 0:r.toString()},a,{children:n}))})};nc.Item=rc,nc.Sub=t=>{var{children:n,id:r,label:o,zIndex:i,disabled:a,container:s}=t,l=c(t,["children","id","label","zIndex","disabled","container"]);return e.jsxs(Is,{children:[e.jsx(Rs,{asChild:!0,disabled:a,children:e.jsxs(Zs,{children:[o,e.jsx(ac,{children:e.jsx(sc,{children:e.jsx(dn,{name:"chevron-right",size:"small",inheritColor:a})})})]})}),e.jsx(Ts,{container:s,children:e.jsx(Ns,{asChild:!0,sideOffset:2,alignOffset:-5,children:e.jsx(Ws,Object.assign({id:r,zIndex:i},l,{children:n}))})})]})},nc.Separator=()=>e.jsx(oc,{});const oc=W(Ds)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),ic=W.div({display:"inline-flex"}),ac=W.div({marginLeft:"auto",width:16,height:16}),sc=W.div({position:"absolute",right:8}),cc=t=>{var{size:n,color:r,center:o,background:i,zIndex:a,margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y}=t,m=c(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:s,marginTop:l,marginBottom:u,marginRight:f,marginLeft:d,position:p,top:h,bottom:g,right:v,left:y};return e.jsx(lc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(fc,{children:e.jsx(dn,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},lc=W.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),ln,un),uc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),fc=W.div({animation:`${uc} 1s linear infinite`,width:"max-content",height:"max-content"}),dc=({size:t})=>e.jsx(pc,{className:"button-loader",children:e.jsx(cc,{size:t})}),pc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),hc=n=>{var{children:r,disabled:o,outline:i,size:a,small:s,large:l,secondary:u,negative:f,positive:d,caution:p,collapse:h}=n,g=c(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(gc,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let c;if(n>1&&(c=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=s||r.props.small,v=l||r.props.large,y=a||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=u||r.props.secondary,x=f||r.props.negative,C=d||r.props.positive,S=p||r.props.caution,_=h||r.props.collapse,O=t.cloneElement(n,{joined:c,size:y,small:g,large:v,disabled:m,outline:b,secondary:w,negative:x,positive:C,caution:S,collapse:_});return"trigger"in e.props?t.cloneElement(e,{trigger:O}):O}return null}))}))}return null},gc=W.div((({width:e})=>({display:"inline-flex",width:e})),ln),vc=t=>{const{content:n,children:r,dropdown:o,options:i}=t,a=c(t,["content","children","dropdown","options"]),s=n||r;return o&&i?e.jsx(mc,Object.assign({options:i},a,{children:s})):e.jsx(yc,Object.assign({},a,{children:s}))};vc.Group=hc;const yc=t=>{var{children:r,onClick:o,icon:i,iconPosition:a,iconColor:s,joined:l,size:u,small:f,large:d,isLoading:p,collapse:h,backgroundColor:g,color:v,type:y,animation:m,iconAnimation:b}=t,w=c(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation","iconAnimation"]);const{button:x}=n.useTheme(),C=i&&(!r||h),S="right"===a;let _=u||"medium";f?_="small":d&&(_="large");const O=x[_],{iconSize:k}=O,E=h&&i;return e.jsxs(bc,Object.assign({},w,{type:y||"button",size:_,iconOnly:C,iconRight:S,joined:l,onClick:o,isLoading:p,color:v,backgroundColor:g,animation:m,children:[i?e.jsx(dn,{size:k,name:i,marginRight:C||S?0:4,marginLeft:!C&&S?4:0,color:s,inheritColor:!s,animation:b}):null,!E&&e.jsx("span",{children:r}),p&&e.jsx(dc,{size:k})]}))},mc=n=>{var{children:r,options:o,onClick:i,afterShow:a,afterHide:s,secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m,disabled:b,buttonDisabled:w,optionsDisabled:x,isLoading:C,direction:S,collapse:_,width:O,zIndex:k,disableScrollLock:E,hideDivider:j,gap:A}=n,T=c(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","subtle","link","size","small","large","disabled","buttonDisabled","optionsDisabled","isLoading","direction","collapse","width","zIndex","disableScrollLock","hideDivider","gap"]);const[M,P]=t.useState(!1),D={secondary:l,negative:u,positive:f,caution:d,outline:p,subtle:h,link:g,size:v,small:y,large:m};return e.jsx(wc,{children:e.jsxs(hc,{width:_?void 0:O,children:[e.jsx(yc,Object.assign({},D,T,{disabled:b||w,width:O&&!_?"100%":void 0,collapse:_,isLoading:C,onClick:e=>{i&&i(e)},hideJoinedBorder:j,joinedPadding:A,children:r&&e.jsx(xc,{children:r})})),e.jsx(nc,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(yc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},bc=W.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:l,animation:u})=>{const f=i||a&&!o,d=n[r],p=c||"max-content",{height:h,font:g,padding:v,iconOnlyPadding:y}=d,m=l||h,b=a||f?y:v;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:p,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:u,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,hideJoinedBorder:n,joinedPadding:r,iconOnly:o,outline:i,negative:a,positive:s,caution:c,secondary:l,disabled:u,subtle:f,link:d})=>{const{button:p,size:h}=e;let g=p.primary;f?g=p.subtle:d?g=p.link:u?g=p.disabled:a?g=p.negative:s?g=p.positive:c?g=p.caution:l&&(g=p.secondary);const v=i?g.outlineBackground:g.background;let y=i?g.outlineColor:g.color;if(d||f){let e=p.subtle;d&&(e=p.link),u?y=p.disabled.color:a?y=e.negativeColor:s?y=e.positiveColor:c?y=e.cautionColor:l&&(y=e.secondaryColor)}const m="left"===t||"middle"===t,b="right"===t||"middle"===t,w=o?h.xs:h.sm,x=r||w;return{backgroundColor:v.default,color:y.default,border:i&&!d?"1px solid":"none",borderColor:g.border.default,"&:hover":{backgroundColor:v.hover,color:y.hover,borderColor:i&&!u?g.border.hover:void 0},"&:active":{backgroundColor:v.active,color:y.active,borderColor:i&&!u?g.border.active:void 0},"&:disabled":{backgroundColor:f?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:m?0:void 0,borderBottomLeftRadius:m?0:void 0,borderTopRightRadius:b?0:void 0,borderBottomRightRadius:b?0:void 0,paddingLeft:m?x:void 0,paddingRight:b?x:void 0,borderRight:b&&!n?`1px solid ${i?g.border.default:g.divider}`:void 0,borderLeft:m&&!n?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?ar:cr,i="dark"===e?cr:ar;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),ln),wc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),xc=W.div({marginRight:8}),Cc=t=>{var{value:n,max:r=100,step:o=1,width:i,height:a,disabled:s,onChange:l}=t,u=c(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(_c,Object.assign({},u,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;l&&l(+t)},step:o,width:i,height:a,disabled:s,readOnly:!l}))},Sc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),_c=W.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":Sc(e,o||i),"&::-moz-range-thumb":Sc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),ln),Oc=t.forwardRef(((n,r)=>{var{src:o,title:i,width:a,infoPosition:s,centerAlignContent:l,small:u,collapsed:f,hideSliderOnStop:d,hideTimeOnStop:p,fontSizeTitle:h,fontSizeTime:g,onPlay:v,onPause:y,onStop:m}=n,b=c(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[C,S]=t.useState(!0),[_,O]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,M]=t.useState(""),P=t.useRef(null),D=()=>{const{current:e}=P;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},L=()=>{const{current:e}=P;e&&e.pause()},I=()=>{const{current:e}=P;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:L,stop:I})),[P,w]);const R=e=>{x(!1),S(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=P;!!e&&e.paused})()}),[w]);const N=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=C&&d,F=C&&p;return e.jsxs(kc,Object.assign({width:a},b,{children:[e.jsx(vc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Ec,{alignDataTop:"top"===s,children:[!B&&e.jsx(Cc,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(jc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Ac,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Ac,{secondary:!0,fontSize:g,children:[j&&!C?`${j} / `:"",T]})]})]}),e.jsxs("audio",{ref:P,onPlay:e=>{x(!0),S(!1),v&&v(e)},onPause:e=>{x(!1),y&&y(e)},onEmptied:R,onEnded:R,onTimeUpdate:()=>{const{current:e}=P;if(e){const{currentTime:t}=e,n=N(t);O(t),A(n)}},onDurationChange:()=>{const{current:e}=P;if(e){const{duration:t}=e,n=N(t);E(t),M(n)}},children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]})]}))})),kc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),ln),Ec=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),jc=W.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Ac=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Tc={},Mc={};Object.defineProperty(Mc,"__esModule",{value:!0}),Mc.defaultOptions=void 0,Mc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Pc={};Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.getLocales=Pc.getFractionDigits=Pc.roundTo=Pc.parseValue=void 0,Pc.parseValue=function(e){const t=parseFloat(null==e?void 0:e.toString());if(isNaN(t))throw new Error("Input value is not a number");if(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER)throw new RangeError("Input value is outside of safe integer range");return t},Pc.roundTo=function(e,t){if(!Number.isFinite(e))throw new Error("Input value is not a finite number");if(!Number.isInteger(t)||t<0)throw new Error("Precision is not a positive integer");return Number.isInteger(e)?e:parseFloat(e.toFixed(t))},Pc.getFractionDigits=function(e){var t;if(Number.isInteger(e))return 0;const n=e.toString().split(".")[1];return null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0},Pc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Tc,"__esModule",{value:!0}),Tc.millify=void 0;const Dc=Mc,Lc=Pc,Ic=1e3;function*Rc(e){let t=Ic;for(;;){const n=e/t;if(n<1)return;yield n,t*=Ic}}function Nc(e,t){var n,r;const o=t?{...Dc.defaultOptions,...t}:Dc.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Lc.parseValue(e)}catch(t){return t instanceof Error&&console.warn(`WARN: ${t.message} (millify)`),String(e)}const a=i<0?"-":"";i=Math.abs(i);let s=0;for(const e of Rc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Lc.roundTo(i,o.precision);for(const e of Rc(c))c=e,s+=1;const l=null!==(n=o.units[s])&&void 0!==n?n:"",u=o.lowercase?l.toLowerCase():l,f=o.space?" ":"";return`${a}${c.toLocaleString(null!==(r=o.locales)&&void 0!==r?r:Lc.getLocales(),{minimumFractionDigits:Lc.getFractionDigits(c)})}${f}${u}`}Tc.millify=Nc;var Bc=Tc.default=Nc;function Fc(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Fc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function zc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fc(e))&&(r&&(r+=" "),r+=t);return r}var Hc=Array.isArray,Vc="object"==typeof ct&&ct&&ct.Object===Object&&ct,Kc=Vc,$c="object"==typeof self&&self&&self.Object===Object&&self,Uc=Kc||$c||Function("return this")(),Wc=Uc.Symbol,Zc=Wc,qc=Object.prototype,Gc=qc.hasOwnProperty,Yc=qc.toString,Xc=Zc?Zc.toStringTag:void 0;var Jc=function(e){var t=Gc.call(e,Xc),n=e[Xc];try{e[Xc]=void 0;var r=!0}catch(e){}var o=Yc.call(e);return r&&(t?e[Xc]=n:delete e[Xc]),o},Qc=Object.prototype.toString;var el=Jc,tl=function(e){return Qc.call(e)},nl=Wc?Wc.toStringTag:void 0;var rl=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":nl&&nl in Object(e)?el(e):tl(e)};var ol=function(e){return null!=e&&"object"==typeof e},il=rl,al=ol;var sl=function(e){return"symbol"==typeof e||al(e)&&"[object Symbol]"==il(e)},cl=Hc,ll=sl,ul=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fl=/^\w*$/;var dl=function(e,t){if(cl(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ll(e))||(fl.test(e)||!ul.test(e)||null!=t&&e in Object(t))};var pl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},hl=lt(pl),gl=rl,vl=pl;var yl,ml=function(e){if(!vl(e))return!1;var t=gl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},bl=lt(ml),wl=Uc["__core-js_shared__"],xl=(yl=/[^.]+$/.exec(wl&&wl.keys&&wl.keys.IE_PROTO||""))?"Symbol(src)_1."+yl:"";var Cl=function(e){return!!xl&&xl in e},Sl=Function.prototype.toString;var _l=function(e){if(null!=e){try{return Sl.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ol=ml,kl=Cl,El=pl,jl=_l,Al=/^\[object .+?Constructor\]$/,Tl=Function.prototype,Ml=Object.prototype,Pl=Tl.toString,Dl=Ml.hasOwnProperty,Ll=RegExp("^"+Pl.call(Dl).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Il=function(e,t){return null==e?void 0:e[t]},Rl=function(e){return!(!El(e)||kl(e))&&(Ol(e)?Ll:Al).test(jl(e))},Nl=Il;var Bl=function(e,t){var n=Nl(e,t);return Rl(n)?n:void 0},Fl=Bl(Object,"create"),zl=Fl;var Hl=function(){this.__data__=zl?zl(null):{},this.size=0};var Vl=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Kl=Fl,$l=Object.prototype.hasOwnProperty;var Ul=function(e){var t=this.__data__;if(Kl){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return $l.call(t,e)?t[e]:void 0},Wl=Fl,Zl=Object.prototype.hasOwnProperty;var ql=Fl;var Gl=Hl,Yl=Vl,Xl=Ul,Jl=function(e){var t=this.__data__;return Wl?void 0!==t[e]:Zl.call(t,e)},Ql=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ql&&void 0===t?"__lodash_hash_undefined__":t,this};function eu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}eu.prototype.clear=Gl,eu.prototype.delete=Yl,eu.prototype.get=Xl,eu.prototype.has=Jl,eu.prototype.set=Ql;var tu=eu;var nu=function(){this.__data__=[],this.size=0};var ru=function(e,t){return e===t||e!=e&&t!=t},ou=ru;var iu=function(e,t){for(var n=e.length;n--;)if(ou(e[n][0],t))return n;return-1},au=iu,su=Array.prototype.splice;var cu=function(e){var t=this.__data__,n=au(t,e);return!(n<0)&&(n==t.length-1?t.pop():su.call(t,n,1),--this.size,!0)},lu=iu;var uu=function(e){var t=this.__data__,n=lu(t,e);return n<0?void 0:t[n][1]},fu=iu;var du=iu;var pu=function(e,t){var n=this.__data__,r=du(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},hu=nu,gu=cu,vu=uu,yu=function(e){return fu(this.__data__,e)>-1},mu=pu;function bu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bu.prototype.clear=hu,bu.prototype.delete=gu,bu.prototype.get=vu,bu.prototype.has=yu,bu.prototype.set=mu;var wu=bu,xu=Bl(Uc,"Map"),Cu=tu,Su=wu,_u=xu;var Ou=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ku=function(e,t){var n=e.__data__;return Ou(t)?n["string"==typeof t?"string":"hash"]:n.map},Eu=ku;var ju=ku;var Au=ku;var Tu=ku;var Mu=function(e,t){var n=Tu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Pu=function(){this.size=0,this.__data__={hash:new Cu,map:new(_u||Su),string:new Cu}},Du=function(e){var t=Eu(this,e).delete(e);return this.size-=t?1:0,t},Lu=function(e){return ju(this,e).get(e)},Iu=function(e){return Au(this,e).has(e)},Ru=Mu;function Nu(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Nu.prototype.clear=Pu,Nu.prototype.delete=Du,Nu.prototype.get=Lu,Nu.prototype.has=Iu,Nu.prototype.set=Ru;var Bu=Nu,Fu=Bu;function zu(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(zu.Cache||Fu),n}zu.Cache=Fu;var Hu=zu,Vu=lt(Hu),Ku=Hu;var $u=function(e){var t=Ku(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Uu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Wu=/\\(\\)?/g,Zu=$u((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Uu,(function(e,n,r,o){t.push(r?o.replace(Wu,"$1"):n||e)})),t})),qu=Zu;var Gu=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},Yu=Gu,Xu=Hc,Ju=sl,Qu=Wc?Wc.prototype:void 0,ef=Qu?Qu.toString:void 0;var tf=function e(t){if("string"==typeof t)return t;if(Xu(t))return Yu(t,e)+"";if(Ju(t))return ef?ef.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},nf=tf;var rf=function(e){return null==e?"":nf(e)},of=Hc,af=dl,sf=qu,cf=rf;var lf=function(e,t){return of(e)?e:af(e,t)?[e]:sf(cf(e))},uf=sl;var ff=function(e){if("string"==typeof e||uf(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},df=lf,pf=ff;var hf=function(e,t){for(var n=0,r=(t=df(t,e)).length;null!=e&&n<r;)e=e[pf(t[n++])];return n&&n==r?e:void 0},gf=hf;var vf=function(e,t,n){var r=null==e?void 0:gf(e,t);return void 0===r?n:r},yf=lt(vf);var mf=lt((function(e){return null==e})),bf=rl,wf=Hc,xf=ol;var Cf,Sf=lt((function(e){return"string"==typeof e||!wf(e)&&xf(e)&&"[object String]"==bf(e)})),_f={exports:{}},Of={};var kf,Ef={};
19
19
  /** @license React v16.13.1
20
20
  * react-is.development.js
21
21
  *