@wavv/ui 1.9.11 → 1.9.12

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?Ls.exports=function(){if(Ds)return Is;Ds=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"),Is.ContextConsumer=s,Is.ContextProvider=a,Is.Element=t,Is.ForwardRef=l,Is.Fragment=r,Is.Lazy=p,Is.Memo=d,Is.Portal=n,Is.Profiler=i,Is.StrictMode=o,Is.Suspense=u,Is.SuspenseList=f,Is.isAsyncMode=function(){return!1},Is.isConcurrentMode=function(){return!1},Is.isContextConsumer=function(e){return g(e)===s},Is.isContextProvider=function(e){return g(e)===a},Is.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Is.isForwardRef=function(e){return g(e)===l},Is.isFragment=function(e){return g(e)===r},Is.isLazy=function(e){return g(e)===p},Is.isMemo=function(e){return g(e)===d},Is.isPortal=function(e){return g(e)===n},Is.isProfiler=function(e){return g(e)===i},Is.isStrictMode=function(e){return g(e)===o},Is.isSuspense=function(e){return g(e)===u},Is.isSuspenseList=function(e){return g(e)===f},Is.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)},Is.typeOf=g,Is}():Ls.exports=(Rs||(Rs=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;Ns.ContextConsumer=v,Ns.ContextProvider=y,Ns.Element=m,Ns.ForwardRef=b,Ns.Fragment=w,Ns.Lazy=x,Ns.Memo=C,Ns.Portal=S,Ns.Profiler=_,Ns.StrictMode=O,Ns.Suspense=k,Ns.SuspenseList=E,Ns.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ns.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ns.isContextConsumer=function(e){return g(e)===s},Ns.isContextProvider=function(e){return g(e)===a},Ns.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ns.isForwardRef=function(e){return g(e)===l},Ns.isFragment=function(e){return g(e)===r},Ns.isLazy=function(e){return g(e)===p},Ns.isMemo=function(e){return g(e)===d},Ns.isPortal=function(e){return g(e)===n},Ns.isProfiler=function(e){return g(e)===i},Ns.isStrictMode=function(e){return g(e)===o},Ns.isSuspense=function(e){return g(e)===u},Ns.isSuspenseList=function(e){return g(e)===f},Ns.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)},Ns.typeOf=g}()),Ns);var Bs=Ls.exports;function Fs(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=[]),t.Children.toArray(e).reduce((function(e,o,i){return Bs.isFragment(o)?e.push.apply(e,Fs(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 zs=({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(Hs,{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};zs.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(Vs,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 Hs=W.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||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}:{}})),Vs=W.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Ks=(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},Us=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Ws,{children:n.header}),e.jsx(Zs,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),$s=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ks(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(zs.Item,{id:t.id,onClick:o,children:Us(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Fs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Fs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Ws=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Zs=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),qs=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}},Gs=(e,t)=>!t.includes(e),Ys=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(Ss,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(_s,{asChild:!0,children:e.jsx(sc,Object.assign({},b,{children:a}))}),e.jsx(Os,{container:p,children:e.jsxs(ec,{id:o,maxHeight:d,width:f,zIndex:h,side:qs(i).side,align:qs(i).align,sideOffset:l,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>e.jsx(Xs,{id:t.id,onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Us(t)},t.id))),n,u&&e.jsx(As,{className:"menu-arrow"})]})})]})},Xs=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(oc,Object.assign({id:null==r?void 0:r.toString(),disabled:o,onSelect:i},a,{children:n}))};Ys.Item=Xs,Ys.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(Ts,{children:[e.jsxs(ic,{disabled:a,children:[o,e.jsx(cc,{children:e.jsx(lc,{children:e.jsx(un,{name:"chevron-right",size:"small",inheritColor:a})})})]}),e.jsx(Os,{container:s,children:e.jsx(tc,Object.assign({sideOffset:2,alignOffset:-5,zIndex:i,id:r},l,{children:n}))})]})},Ys.Separator=()=>e.jsx(ac,{});const Js=({theme:e,width:t,maxHeight:n,zIndex:r})=>({fontFamily:null==e?void 0:e.font.family.default,fontSize:null==e?void 0:e.font.size.md,width:t||"max-content",maxHeight:n,backgroundColor:null==e?void 0:e.options.background,borderRadius:4,boxShadow:null==e?void 0:e.elevation3,zIndex:r,boxSizing:"border-box",overflowY:"auto"}),Qs={shouldForwardProp:e=>Gs(e,["maxHeight","zIndex"])},ec=W(ks,Qs)(Js,(({theme:{options:e}})=>({"& > span > .menu-arrow":{fill:e.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))"}}))),tc=W(Ps,Qs)(Js),nc=({theme:e,color:t,accented:n,disabled:r,contentPosition:o})=>{const i="start"===o||"end"===o?`flex-${o}`:o,a=n?null==e?void 0:e.optionItem.color.accent:null==e?void 0:e.optionItem.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",justifyContent:i,color:t||a,cursor:r?"inherit":"pointer",backgroundColor:null==e?void 0:e.optionItem.background.inactive,"&[data-highlighted]":{backgroundColor:null==e?void 0:e.optionItem.background.active},"&[data-disabled]":{color:null==e?void 0:e.scale4},"&:focus":{outline:"none",backgroundColor:null==e?void 0:e.optionItem.background.active}}},rc={shouldForwardProp:e=>Gs(e,["selected","noSelect","contentPosition","color","accented"])},oc=W(Es,rc)(nc),ic=W(Ms,rc)(nc),ac=W(js)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),sc=W.div({display:"inline-flex"}),cc=W.div({marginLeft:"auto",width:16,height:16}),lc=W.div({position:"absolute",right:8}),uc=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(fc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(pc,{children:e.jsx(un,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},fc=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"}}),sn,cn),dc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),pc=W.div({animation:`${dc} 1s linear infinite`,width:"max-content",height:"max-content"}),hc=({size:t})=>e.jsx(gc,{className:"button-loader",children:e.jsx(uc,{size:t})}),gc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),vc=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(yc,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},yc=W.div((({width:e})=>({display:"inline-flex",width:e})),sn),mc=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(wc,Object.assign({options:i},a,{children:s})):e.jsx(bc,Object.assign({},a,{children:s}))};mc.Group=vc;const bc=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(xc,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(un,{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(hc,{size:k})]}))},wc=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(Cc,{children:e.jsxs(vc,{width:_?void 0:O,children:[e.jsx(bc,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(Sc,{children:r})})),e.jsx(Ys,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(bc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},xc=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?or:ar,i="dark"===e?ar:or;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}}}),sn),Cc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),Sc=W.div({marginRight:8}),_c=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(kc,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}))},Oc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),kc=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":Oc(e,o||i),"&::-moz-range-thumb":Oc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),sn),Ec=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(jc,Object.assign({width:a},b,{children:[e.jsx(mc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Ac,{alignDataTop:"top"===s,children:[!B&&e.jsx(_c,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(Tc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Mc,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Mc,{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})]})]}))})),jc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),sn),Ac=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Tc=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%"}))),Mc=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Pc={},Dc={};Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.defaultOptions=void 0,Dc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.getLocales=Lc.getFractionDigits=Lc.roundTo=Lc.parseValue=void 0,Lc.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},Lc.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))},Lc.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},Lc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.millify=void 0;const Ic=Dc,Rc=Lc,Nc=1e3;function*Bc(e){let t=Nc;for(;;){const n=e/t;if(n<1)return;yield n,t*=Nc}}function Fc(e,t){var n,r;const o=t?{...Ic.defaultOptions,...t}:Ic.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Rc.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 Bc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Rc.roundTo(i,o.precision);for(const e of Bc(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:Rc.getLocales(),{minimumFractionDigits:Rc.getFractionDigits(c)})}${f}${u}`}Pc.millify=Fc;var zc=Pc.default=Fc;function Hc(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=Hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hc(e))&&(r&&(r+=" "),r+=t);return r}var Kc=Array.isArray,Uc="object"==typeof at&&at&&at.Object===Object&&at,$c=Uc,Wc="object"==typeof self&&self&&self.Object===Object&&self,Zc=$c||Wc||Function("return this")(),qc=Zc.Symbol,Gc=qc,Yc=Object.prototype,Xc=Yc.hasOwnProperty,Jc=Yc.toString,Qc=Gc?Gc.toStringTag:void 0;var el=function(e){var t=Xc.call(e,Qc),n=e[Qc];try{e[Qc]=void 0;var r=!0}catch(e){}var o=Jc.call(e);return r&&(t?e[Qc]=n:delete e[Qc]),o},tl=Object.prototype.toString;var nl=el,rl=function(e){return tl.call(e)},ol=qc?qc.toStringTag:void 0;var il=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ol&&ol in Object(e)?nl(e):rl(e)};var al=function(e){return null!=e&&"object"==typeof e},sl=il,cl=al;var ll=function(e){return"symbol"==typeof e||cl(e)&&"[object Symbol]"==sl(e)},ul=Kc,fl=ll,dl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pl=/^\w*$/;var hl=function(e,t){if(ul(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!fl(e))||(pl.test(e)||!dl.test(e)||null!=t&&e in Object(t))};var gl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},vl=st(gl),yl=il,ml=gl;var bl,wl=function(e){if(!ml(e))return!1;var t=yl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xl=st(wl),Cl=Zc["__core-js_shared__"],Sl=(bl=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||""))?"Symbol(src)_1."+bl:"";var _l=function(e){return!!Sl&&Sl in e},Ol=Function.prototype.toString;var kl=function(e){if(null!=e){try{return Ol.call(e)}catch(e){}try{return e+""}catch(e){}}return""},El=wl,jl=_l,Al=gl,Tl=kl,Ml=/^\[object .+?Constructor\]$/,Pl=Function.prototype,Dl=Object.prototype,Ll=Pl.toString,Il=Dl.hasOwnProperty,Rl=RegExp("^"+Ll.call(Il).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nl=function(e,t){return null==e?void 0:e[t]},Bl=function(e){return!(!Al(e)||jl(e))&&(El(e)?Rl:Ml).test(Tl(e))},Fl=Nl;var zl=function(e,t){var n=Fl(e,t);return Bl(n)?n:void 0},Hl=zl(Object,"create"),Vl=Hl;var Kl=function(){this.__data__=Vl?Vl(null):{},this.size=0};var Ul=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$l=Hl,Wl=Object.prototype.hasOwnProperty;var Zl=function(e){var t=this.__data__;if($l){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Wl.call(t,e)?t[e]:void 0},ql=Hl,Gl=Object.prototype.hasOwnProperty;var Yl=Hl;var Xl=Kl,Jl=Ul,Ql=Zl,eu=function(e){var t=this.__data__;return ql?void 0!==t[e]:Gl.call(t,e)},tu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Yl&&void 0===t?"__lodash_hash_undefined__":t,this};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=Xl,nu.prototype.delete=Jl,nu.prototype.get=Ql,nu.prototype.has=eu,nu.prototype.set=tu;var ru=nu;var ou=function(){this.__data__=[],this.size=0};var iu=function(e,t){return e===t||e!=e&&t!=t},au=iu;var su=function(e,t){for(var n=e.length;n--;)if(au(e[n][0],t))return n;return-1},cu=su,lu=Array.prototype.splice;var uu=function(e){var t=this.__data__,n=cu(t,e);return!(n<0)&&(n==t.length-1?t.pop():lu.call(t,n,1),--this.size,!0)},fu=su;var du=function(e){var t=this.__data__,n=fu(t,e);return n<0?void 0:t[n][1]},pu=su;var hu=su;var gu=function(e,t){var n=this.__data__,r=hu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},vu=ou,yu=uu,mu=du,bu=function(e){return pu(this.__data__,e)>-1},wu=gu;function xu(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])}}xu.prototype.clear=vu,xu.prototype.delete=yu,xu.prototype.get=mu,xu.prototype.has=bu,xu.prototype.set=wu;var Cu=xu,Su=zl(Zc,"Map"),_u=ru,Ou=Cu,ku=Su;var Eu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ju=function(e,t){var n=e.__data__;return Eu(t)?n["string"==typeof t?"string":"hash"]:n.map},Au=ju;var Tu=ju;var Mu=ju;var Pu=ju;var Du=function(e,t){var n=Pu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Lu=function(){this.size=0,this.__data__={hash:new _u,map:new(ku||Ou),string:new _u}},Iu=function(e){var t=Au(this,e).delete(e);return this.size-=t?1:0,t},Ru=function(e){return Tu(this,e).get(e)},Nu=function(e){return Mu(this,e).has(e)},Bu=Du;function Fu(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])}}Fu.prototype.clear=Lu,Fu.prototype.delete=Iu,Fu.prototype.get=Ru,Fu.prototype.has=Nu,Fu.prototype.set=Bu;var zu=Fu,Hu=zu;function Vu(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(Vu.Cache||Hu),n}Vu.Cache=Hu;var Ku=Vu,Uu=st(Ku),$u=Ku;var Wu=function(e){var t=$u(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Zu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qu=/\\(\\)?/g,Gu=Wu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Zu,(function(e,n,r,o){t.push(r?o.replace(qu,"$1"):n||e)})),t})),Yu=Gu;var Xu=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},Ju=Xu,Qu=Kc,ef=ll,tf=qc?qc.prototype:void 0,nf=tf?tf.toString:void 0;var rf=function e(t){if("string"==typeof t)return t;if(Qu(t))return Ju(t,e)+"";if(ef(t))return nf?nf.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},of=rf;var af=function(e){return null==e?"":of(e)},sf=Kc,cf=hl,lf=Yu,uf=af;var ff=function(e,t){return sf(e)?e:cf(e,t)?[e]:lf(uf(e))},df=ll;var pf=function(e){if("string"==typeof e||df(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},hf=ff,gf=pf;var vf=function(e,t){for(var n=0,r=(t=hf(t,e)).length;null!=e&&n<r;)e=e[gf(t[n++])];return n&&n==r?e:void 0},yf=vf;var mf=function(e,t,n){var r=null==e?void 0:yf(e,t);return void 0===r?n:r},bf=st(mf);var wf=st((function(e){return null==e})),xf=il,Cf=Kc,Sf=al;var _f,Of=st((function(e){return"string"==typeof e||!Cf(e)&&Sf(e)&&"[object String]"==xf(e)})),kf={exports:{}},Ef={};var jf,Af={};
18
+ */"production"===process.env.NODE_ENV?Ls.exports=function(){if(Ds)return Is;Ds=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"),Is.ContextConsumer=s,Is.ContextProvider=a,Is.Element=t,Is.ForwardRef=l,Is.Fragment=r,Is.Lazy=p,Is.Memo=d,Is.Portal=n,Is.Profiler=i,Is.StrictMode=o,Is.Suspense=u,Is.SuspenseList=f,Is.isAsyncMode=function(){return!1},Is.isConcurrentMode=function(){return!1},Is.isContextConsumer=function(e){return g(e)===s},Is.isContextProvider=function(e){return g(e)===a},Is.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Is.isForwardRef=function(e){return g(e)===l},Is.isFragment=function(e){return g(e)===r},Is.isLazy=function(e){return g(e)===p},Is.isMemo=function(e){return g(e)===d},Is.isPortal=function(e){return g(e)===n},Is.isProfiler=function(e){return g(e)===i},Is.isStrictMode=function(e){return g(e)===o},Is.isSuspense=function(e){return g(e)===u},Is.isSuspenseList=function(e){return g(e)===f},Is.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)},Is.typeOf=g,Is}():Ls.exports=(Rs||(Rs=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;Ns.ContextConsumer=v,Ns.ContextProvider=y,Ns.Element=m,Ns.ForwardRef=b,Ns.Fragment=w,Ns.Lazy=x,Ns.Memo=C,Ns.Portal=S,Ns.Profiler=_,Ns.StrictMode=O,Ns.Suspense=k,Ns.SuspenseList=E,Ns.isAsyncMode=function(e){return j||(j=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ns.isConcurrentMode=function(e){return A||(A=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},Ns.isContextConsumer=function(e){return g(e)===s},Ns.isContextProvider=function(e){return g(e)===a},Ns.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Ns.isForwardRef=function(e){return g(e)===l},Ns.isFragment=function(e){return g(e)===r},Ns.isLazy=function(e){return g(e)===p},Ns.isMemo=function(e){return g(e)===d},Ns.isPortal=function(e){return g(e)===n},Ns.isProfiler=function(e){return g(e)===i},Ns.isStrictMode=function(e){return g(e)===o},Ns.isSuspense=function(e){return g(e)===u},Ns.isSuspenseList=function(e){return g(e)===f},Ns.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)},Ns.typeOf=g}()),Ns);var Bs=Ls.exports;function Fs(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=[]),t.Children.toArray(e).reduce((function(e,o,i){return Bs.isFragment(o)?e.push.apply(e,Fs(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 zs=({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(Hs,{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};zs.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(Vs,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 Hs=W.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||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}:{}})),Vs=W.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),Ks=(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},Us=n=>e.jsxs(t.Fragment,{children:[n.leftElement||null,n.header&&n.body?e.jsxs("div",{style:{display:"flex",flexDirection:"column"},children:[e.jsx(Ws,{children:n.header}),e.jsx(Zs,{children:n.body})]}):n.label,n.rightElement&&e.jsx("div",{style:{marginLeft:"auto"},children:n.rightElement})]}),$s=(n,r,o,i,a)=>{const{selected:s}=a,l=((t,n,r,o)=>{if(t&&t.length>0)return Ks(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsx(zs.Item,{id:t.id,onClick:o,children:Us(t)},t.id)}));return[]})(n,o,i,c(a,["selected"])),u=((e,n,r)=>e?Fs(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i);return Fs([...l,...u]).map(((e,n)=>e?t.cloneElement(e,{selected:s===n}):null))},Ws=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),Zs=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),qs=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}},Gs=(e,t)=>!t.includes(e),Ys=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(Ss,{onOpenChange:e=>{y&&e&&y(),m&&!e&&m()},open:s,modal:!g,children:[e.jsx(_s,{asChild:!0,children:e.jsx(sc,Object.assign({},b,{children:a}))}),e.jsx(Os,{container:p,children:e.jsxs(ec,{id:o,maxHeight:d,width:f,zIndex:h,side:qs(i).side,align:qs(i).align,sideOffset:l,children:[r&&(null==r?void 0:r.length)>0&&r.map((t=>e.jsx(Xs,Object.assign({},t,{onClick:t.onClick||(e=>{((e,t)=>{v&&v(e,t)})(t,e)}),children:Us(t)}),t.id))),n,u&&e.jsx(As,{className:"menu-arrow"})]})})]})},Xs=t=>{var{children:n,id:r,disabled:o,onClick:i}=t,a=c(t,["children","id","disabled","onClick"]);return e.jsx(oc,Object.assign({id:null==r?void 0:r.toString(),disabled:o,onSelect:i},a,{children:n}))};Ys.Item=Xs,Ys.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(Ts,{children:[e.jsxs(ic,{disabled:a,children:[o,e.jsx(cc,{children:e.jsx(lc,{children:e.jsx(un,{name:"chevron-right",size:"small",inheritColor:a})})})]}),e.jsx(Os,{container:s,children:e.jsx(tc,Object.assign({sideOffset:2,alignOffset:-5,zIndex:i,id:r},l,{children:n}))})]})},Ys.Separator=()=>e.jsx(ac,{});const Js=({theme:e,width:t,maxHeight:n,zIndex:r})=>({fontFamily:null==e?void 0:e.font.family.default,fontSize:null==e?void 0:e.font.size.md,width:t||"max-content",maxHeight:n,backgroundColor:null==e?void 0:e.options.background,borderRadius:4,boxShadow:null==e?void 0:e.elevation3,zIndex:r,boxSizing:"border-box",overflowY:"auto"}),Qs={shouldForwardProp:e=>Gs(e,["maxHeight","zIndex"])},ec=W(ks,Qs)(Js,(({theme:{options:e}})=>({"& > span > .menu-arrow":{fill:e.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))"}}))),tc=W(Ps,Qs)(Js),nc=({theme:e,color:t,accented:n,disabled:r,contentPosition:o})=>{const i="start"===o||"end"===o?`flex-${o}`:o,a=n?null==e?void 0:e.optionItem.color.accent:null==e?void 0:e.optionItem.color.inactive;return{border:"none",padding:"4px 16px",display:"flex",alignItems:"center",userSelect:"none",position:"relative",justifyContent:i,color:t||a,cursor:r?"inherit":"pointer",backgroundColor:null==e?void 0:e.optionItem.background.inactive,"&[data-highlighted]":{backgroundColor:null==e?void 0:e.optionItem.background.active},"&[data-disabled]":{color:null==e?void 0:e.scale4},"&:focus":{outline:"none",backgroundColor:null==e?void 0:e.optionItem.background.active}}},rc={shouldForwardProp:e=>Gs(e,["selected","noSelect","contentPosition","color","accented"])},oc=W(Es,rc)(nc),ic=W(Ms,rc)(nc),ac=W(js)((({theme:e})=>({height:1,backgroundColor:e.scale2,margin:"4px 8px"}))),sc=W.div({display:"inline-flex"}),cc=W.div({marginLeft:"auto",width:16,height:16}),lc=W.div({position:"absolute",right:8}),uc=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(fc,Object.assign({},b,{center:o,background:i,zIndex:a,children:e.jsx(pc,{children:e.jsx(un,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},fc=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"}}),sn,cn),dc=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),pc=W.div({animation:`${dc} 1s linear infinite`,width:"max-content",height:"max-content"}),hc=({size:t})=>e.jsx(gc,{className:"button-loader",children:e.jsx(uc,{size:t})}),gc=W.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),vc=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(yc,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},yc=W.div((({width:e})=>({display:"inline-flex",width:e})),sn),mc=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(wc,Object.assign({options:i},a,{children:s})):e.jsx(bc,Object.assign({},a,{children:s}))};mc.Group=vc;const bc=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(xc,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(un,{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(hc,{size:k})]}))},wc=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(Cc,{children:e.jsxs(vc,{width:_?void 0:O,children:[e.jsx(bc,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(Sc,{children:r})})),e.jsx(Ys,{position:`${S||"bottom"} right`,afterShow:()=>{a&&a(),P(!0)},afterHide:()=>{s&&s(),P(!1)},options:o,trigger:e.jsx(bc,Object.assign({},D,{icon:M?"caret-up":"caret-down",preventPointerEvents:C,tabIndex:-1,joinedPadding:A,disabled:b||x})),zIndex:k,disableScrollLock:E})]})})},xc=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?or:ar,i="dark"===e?ar:or;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}}}),sn),Cc=W.div({display:"inline-flex",flexDirection:"column",position:"relative"}),Sc=W.div({marginRight:8}),_c=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(kc,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}))},Oc=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),kc=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":Oc(e,o||i),"&::-moz-range-thumb":Oc(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),sn),Ec=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(jc,Object.assign({width:a},b,{children:[e.jsx(mc,{outline:!0,small:u,icon:w?"pause":"play",onClick:()=>{w?L():D()},marginRight:8}),!f&&e.jsxs(Ac,{alignDataTop:"top"===s,children:[!B&&e.jsx(_c,{value:_,max:k,step:.1,onChange:e=>{(null==P?void 0:P.current)&&(P.current.currentTime=e)}}),e.jsxs(Tc,{alignTop:"top"===s,noSlider:B,relative:l||B,children:[i?e.jsx(Mc,{fontSize:h,children:i}):e.jsx("div",{}),!F&&e.jsxs(Mc,{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})]})]}))})),jc=W.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),sn),Ac=W.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Tc=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%"}))),Mc=W.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var Pc={},Dc={};Object.defineProperty(Dc,"__esModule",{value:!0}),Dc.defaultOptions=void 0,Dc.defaultOptions={lowercase:!1,precision:1,space:!1,units:["","K","M","B","T","P","E"]};var Lc={};Object.defineProperty(Lc,"__esModule",{value:!0}),Lc.getLocales=Lc.getFractionDigits=Lc.roundTo=Lc.parseValue=void 0,Lc.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},Lc.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))},Lc.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},Lc.getLocales=function(){var e;return"undefined"==typeof navigator?[]:Array.from(null!==(e=navigator.languages)&&void 0!==e?e:[])},Object.defineProperty(Pc,"__esModule",{value:!0}),Pc.millify=void 0;const Ic=Dc,Rc=Lc,Nc=1e3;function*Bc(e){let t=Nc;for(;;){const n=e/t;if(n<1)return;yield n,t*=Nc}}function Fc(e,t){var n,r;const o=t?{...Ic.defaultOptions,...t}:Ic.defaultOptions;if(!Array.isArray(o.units)||!o.units.length)throw new Error("Option `units` must be a non-empty array");let i;try{i=Rc.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 Bc(i))i=e,s+=1;if(s>=o.units.length)return e.toString();let c=Rc.roundTo(i,o.precision);for(const e of Bc(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:Rc.getLocales(),{minimumFractionDigits:Rc.getFractionDigits(c)})}${f}${u}`}Pc.millify=Fc;var zc=Pc.default=Fc;function Hc(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=Hc(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Vc(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Hc(e))&&(r&&(r+=" "),r+=t);return r}var Kc=Array.isArray,Uc="object"==typeof at&&at&&at.Object===Object&&at,$c=Uc,Wc="object"==typeof self&&self&&self.Object===Object&&self,Zc=$c||Wc||Function("return this")(),qc=Zc.Symbol,Gc=qc,Yc=Object.prototype,Xc=Yc.hasOwnProperty,Jc=Yc.toString,Qc=Gc?Gc.toStringTag:void 0;var el=function(e){var t=Xc.call(e,Qc),n=e[Qc];try{e[Qc]=void 0;var r=!0}catch(e){}var o=Jc.call(e);return r&&(t?e[Qc]=n:delete e[Qc]),o},tl=Object.prototype.toString;var nl=el,rl=function(e){return tl.call(e)},ol=qc?qc.toStringTag:void 0;var il=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ol&&ol in Object(e)?nl(e):rl(e)};var al=function(e){return null!=e&&"object"==typeof e},sl=il,cl=al;var ll=function(e){return"symbol"==typeof e||cl(e)&&"[object Symbol]"==sl(e)},ul=Kc,fl=ll,dl=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pl=/^\w*$/;var hl=function(e,t){if(ul(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!fl(e))||(pl.test(e)||!dl.test(e)||null!=t&&e in Object(t))};var gl=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},vl=st(gl),yl=il,ml=gl;var bl,wl=function(e){if(!ml(e))return!1;var t=yl(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},xl=st(wl),Cl=Zc["__core-js_shared__"],Sl=(bl=/[^.]+$/.exec(Cl&&Cl.keys&&Cl.keys.IE_PROTO||""))?"Symbol(src)_1."+bl:"";var _l=function(e){return!!Sl&&Sl in e},Ol=Function.prototype.toString;var kl=function(e){if(null!=e){try{return Ol.call(e)}catch(e){}try{return e+""}catch(e){}}return""},El=wl,jl=_l,Al=gl,Tl=kl,Ml=/^\[object .+?Constructor\]$/,Pl=Function.prototype,Dl=Object.prototype,Ll=Pl.toString,Il=Dl.hasOwnProperty,Rl=RegExp("^"+Ll.call(Il).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Nl=function(e,t){return null==e?void 0:e[t]},Bl=function(e){return!(!Al(e)||jl(e))&&(El(e)?Rl:Ml).test(Tl(e))},Fl=Nl;var zl=function(e,t){var n=Fl(e,t);return Bl(n)?n:void 0},Hl=zl(Object,"create"),Vl=Hl;var Kl=function(){this.__data__=Vl?Vl(null):{},this.size=0};var Ul=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},$l=Hl,Wl=Object.prototype.hasOwnProperty;var Zl=function(e){var t=this.__data__;if($l){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Wl.call(t,e)?t[e]:void 0},ql=Hl,Gl=Object.prototype.hasOwnProperty;var Yl=Hl;var Xl=Kl,Jl=Ul,Ql=Zl,eu=function(e){var t=this.__data__;return ql?void 0!==t[e]:Gl.call(t,e)},tu=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Yl&&void 0===t?"__lodash_hash_undefined__":t,this};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=Xl,nu.prototype.delete=Jl,nu.prototype.get=Ql,nu.prototype.has=eu,nu.prototype.set=tu;var ru=nu;var ou=function(){this.__data__=[],this.size=0};var iu=function(e,t){return e===t||e!=e&&t!=t},au=iu;var su=function(e,t){for(var n=e.length;n--;)if(au(e[n][0],t))return n;return-1},cu=su,lu=Array.prototype.splice;var uu=function(e){var t=this.__data__,n=cu(t,e);return!(n<0)&&(n==t.length-1?t.pop():lu.call(t,n,1),--this.size,!0)},fu=su;var du=function(e){var t=this.__data__,n=fu(t,e);return n<0?void 0:t[n][1]},pu=su;var hu=su;var gu=function(e,t){var n=this.__data__,r=hu(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},vu=ou,yu=uu,mu=du,bu=function(e){return pu(this.__data__,e)>-1},wu=gu;function xu(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])}}xu.prototype.clear=vu,xu.prototype.delete=yu,xu.prototype.get=mu,xu.prototype.has=bu,xu.prototype.set=wu;var Cu=xu,Su=zl(Zc,"Map"),_u=ru,Ou=Cu,ku=Su;var Eu=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var ju=function(e,t){var n=e.__data__;return Eu(t)?n["string"==typeof t?"string":"hash"]:n.map},Au=ju;var Tu=ju;var Mu=ju;var Pu=ju;var Du=function(e,t){var n=Pu(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Lu=function(){this.size=0,this.__data__={hash:new _u,map:new(ku||Ou),string:new _u}},Iu=function(e){var t=Au(this,e).delete(e);return this.size-=t?1:0,t},Ru=function(e){return Tu(this,e).get(e)},Nu=function(e){return Mu(this,e).has(e)},Bu=Du;function Fu(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])}}Fu.prototype.clear=Lu,Fu.prototype.delete=Iu,Fu.prototype.get=Ru,Fu.prototype.has=Nu,Fu.prototype.set=Bu;var zu=Fu,Hu=zu;function Vu(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(Vu.Cache||Hu),n}Vu.Cache=Hu;var Ku=Vu,Uu=st(Ku),$u=Ku;var Wu=function(e){var t=$u(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t},Zu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qu=/\\(\\)?/g,Gu=Wu((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Zu,(function(e,n,r,o){t.push(r?o.replace(qu,"$1"):n||e)})),t})),Yu=Gu;var Xu=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},Ju=Xu,Qu=Kc,ef=ll,tf=qc?qc.prototype:void 0,nf=tf?tf.toString:void 0;var rf=function e(t){if("string"==typeof t)return t;if(Qu(t))return Ju(t,e)+"";if(ef(t))return nf?nf.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},of=rf;var af=function(e){return null==e?"":of(e)},sf=Kc,cf=hl,lf=Yu,uf=af;var ff=function(e,t){return sf(e)?e:cf(e,t)?[e]:lf(uf(e))},df=ll;var pf=function(e){if("string"==typeof e||df(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},hf=ff,gf=pf;var vf=function(e,t){for(var n=0,r=(t=hf(t,e)).length;null!=e&&n<r;)e=e[gf(t[n++])];return n&&n==r?e:void 0},yf=vf;var mf=function(e,t,n){var r=null==e?void 0:yf(e,t);return void 0===r?n:r},bf=st(mf);var wf=st((function(e){return null==e})),xf=il,Cf=Kc,Sf=al;var _f,Of=st((function(e){return"string"==typeof e||!Cf(e)&&Sf(e)&&"[object String]"==xf(e)})),kf={exports:{}},Ef={};var jf,Af={};
19
19
  /** @license React v16.13.1
20
20
  * react-is.development.js
21
21
  *