@kwantis-id3/frontend-library 0.8.5 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/index.js CHANGED
@@ -7,9 +7,9 @@ import*as e from"react";import t,{useLayoutEffect as u,useContext as n,createEle
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
9
  */Re={get exports(){return Te},set exports(e){Te=e}},"production"===process.env.NODE_ENV?Re.exports=function(){if(Ne)return ke;Ne=1;var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,u=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:switch(e=e.type){case s:case c:case n:case o:case r:case d:return e;default:switch(e=e&&e.$$typeof){case a:case l:case g:case f:case i:return e;default:return p}}case u:return p}}}function v(e){return C(e)===c}return ke.AsyncMode=s,ke.ConcurrentMode=c,ke.ContextConsumer=a,ke.ContextProvider=i,ke.Element=t,ke.ForwardRef=l,ke.Fragment=n,ke.Lazy=g,ke.Memo=f,ke.Portal=u,ke.Profiler=o,ke.StrictMode=r,ke.Suspense=d,ke.isAsyncMode=function(e){return v(e)||C(e)===s},ke.isConcurrentMode=v,ke.isContextConsumer=function(e){return C(e)===a},ke.isContextProvider=function(e){return C(e)===i},ke.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},ke.isForwardRef=function(e){return C(e)===l},ke.isFragment=function(e){return C(e)===n},ke.isLazy=function(e){return C(e)===g},ke.isMemo=function(e){return C(e)===f},ke.isPortal=function(e){return C(e)===u},ke.isProfiler=function(e){return C(e)===o},ke.isStrictMode=function(e){return C(e)===r},ke.isSuspense=function(e){return C(e)===d},ke.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||e.$$typeof===m||e.$$typeof===A||e.$$typeof===b)},ke.typeOf=C,ke}():Re.exports=(Ve||(Ve=1,"production"!==process.env.NODE_ENV&&function(){var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,u=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,r=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,i=e?Symbol.for("react.provider"):60109,a=e?Symbol.for("react.context"):60110,s=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,h=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,A=e?Symbol.for("react.scope"):60119;function C(e){if("object"==typeof e&&null!==e){var p=e.$$typeof;switch(p){case t:var b=e.type;switch(b){case s:case c:case n:case o:case r:case d:return b;default:var h=b&&b.$$typeof;switch(h){case a:case l:case g:case f:case i:return h;default:return p}}case u:return p}}}var v=s,E=c,y=a,I=i,F=t,B=l,x=n,D=g,w=f,G=u,O=o,N=r,T=d,k=!1;function V(e){return C(e)===c}Se.AsyncMode=v,Se.ConcurrentMode=E,Se.ContextConsumer=y,Se.ContextProvider=I,Se.Element=F,Se.ForwardRef=B,Se.Fragment=x,Se.Lazy=D,Se.Memo=w,Se.Portal=G,Se.Profiler=O,Se.StrictMode=N,Se.Suspense=T,Se.isAsyncMode=function(e){return k||(k=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),V(e)||C(e)===s},Se.isConcurrentMode=V,Se.isContextConsumer=function(e){return C(e)===a},Se.isContextProvider=function(e){return C(e)===i},Se.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},Se.isForwardRef=function(e){return C(e)===l},Se.isFragment=function(e){return C(e)===n},Se.isLazy=function(e){return C(e)===g},Se.isMemo=function(e){return C(e)===f},Se.isPortal=function(e){return C(e)===u},Se.isProfiler=function(e){return C(e)===o},Se.isStrictMode=function(e){return C(e)===r},Se.isSuspense=function(e){return C(e)===d},Se.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===c||e===o||e===r||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===f||e.$$typeof===i||e.$$typeof===a||e.$$typeof===l||e.$$typeof===h||e.$$typeof===m||e.$$typeof===A||e.$$typeof===b)},Se.typeOf=C}()),Se);var We=Te,Ze={};Ze[We.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Ze[We.Memo]={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0};var Xe="undefined"!=typeof document;function Me(e,t,u){var n="";return u.split(" ").forEach((function(u){void 0!==e[u]?t.push(e[u]+";"):n+=u+" "})),n}var Pe=function(e,t,u){var n=e.key+"-"+t.name;(!1===u||!1===Xe&&void 0!==e.compat)&&void 0===e.registered[n]&&(e.registered[n]=t.styles)},He=function(e,t,u){Pe(e,t,u);var n=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var r="",o=t;do{var i=e.insert(t===o?"."+n:"",o,e.sheet,!0);Xe||void 0===i||(r+=i),o=o.next}while(void 0!==o);if(!Xe&&0!==r.length)return r}};var Le={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},je="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",ze="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Ye=/[A-Z]|^ms/g,Je=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_e=function(e){return 45===e.charCodeAt(1)},Ue=function(e){return null!=e&&"boolean"!=typeof e},Qe=fe((function(e){return _e(e)?e:e.replace(Ye,"-$&").toLowerCase()})),$e=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Je,(function(e,t,u){return at={name:t,styles:u,next:at},t}))}return 1===Le[e]||_e(e)||"number"!=typeof t||0===t?t:t+"px"};if("production"!==process.env.NODE_ENV){var Ke=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,qe=["normal","none","initial","inherit","unset"],et=$e,tt=/^-ms-/,ut=/-(.)/g,nt={};$e=function(e,t){if("content"===e&&("string"!=typeof t||-1===qe.indexOf(t)&&!Ke.test(t)&&(t.charAt(0)!==t.charAt(t.length-1)||'"'!==t.charAt(0)&&"'"!==t.charAt(0))))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+t+"\"'`");var u=et(e,t);return""===u||_e(e)||-1===e.indexOf("-")||void 0!==nt[e]||(nt[e]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+e.replace(tt,"ms-").replace(ut,(function(e,t){return t.toUpperCase()}))+"?")),u}}var rt="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ot(e,t,u){if(null==u)return"";if(void 0!==u.__emotion_styles){if("production"!==process.env.NODE_ENV&&"NO_COMPONENT_SELECTOR"===u.toString())throw new Error(rt);return u}switch(typeof u){case"boolean":return"";case"object":if(1===u.anim)return at={name:u.name,styles:u.styles,next:at},u.name;if(void 0!==u.styles){var n=u.next;if(void 0!==n)for(;void 0!==n;)at={name:n.name,styles:n.styles,next:at},n=n.next;var r=u.styles+";";return"production"!==process.env.NODE_ENV&&void 0!==u.map&&(r+=u.map),r}return function(e,t,u){var n="";if(Array.isArray(u))for(var r=0;r<u.length;r++)n+=ot(e,t,u[r])+";";else for(var o in u){var i=u[o];if("object"!=typeof i)null!=t&&void 0!==t[i]?n+=o+"{"+t[i]+"}":Ue(i)&&(n+=Qe(o)+":"+$e(o,i)+";");else{if("NO_COMPONENT_SELECTOR"===o&&"production"!==process.env.NODE_ENV)throw new Error(rt);if(!Array.isArray(i)||"string"!=typeof i[0]||null!=t&&void 0!==t[i[0]]){var a=ot(e,t,i);switch(o){case"animation":case"animationName":n+=Qe(o)+":"+a+";";break;default:"production"!==process.env.NODE_ENV&&"undefined"===o&&console.error(ze),n+=o+"{"+a+"}"}}else for(var s=0;s<i.length;s++)Ue(i[s])&&(n+=Qe(o)+":"+$e(o,i[s])+";")}}return n}(e,t,u);case"function":if(void 0!==e){var o=at,i=u(e);return at=o,ot(e,t,i)}"production"!==process.env.NODE_ENV&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break;case"string":if("production"!==process.env.NODE_ENV){var a=[],s=u.replace(Je,(function(e,t,u){var n="animation"+a.length;return a.push("const "+n+" = keyframes`"+u.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+n+"}"}));a.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(a,["`"+s+"`"]).join("\n")+"\n\nYou should wrap it with `css` like this:\n\ncss`"+s+"`")}}if(null==t)return u;var c=t[u];return void 0!==c?c:u}var it,at,st=/label:\s*([^\s;\n{]+)\s*(;|$)/g;"production"!==process.env.NODE_ENV&&(it=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var ct=function(e,t,u){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var n=!0,r="";at=void 0;var o,i=e[0];null==i||void 0===i.raw?(n=!1,r+=ot(u,t,i)):("production"!==process.env.NODE_ENV&&void 0===i[0]&&console.error(je),r+=i[0]);for(var a=1;a<e.length;a++)r+=ot(u,t,e[a]),n&&("production"!==process.env.NODE_ENV&&void 0===i[a]&&console.error(je),r+=i[a]);"production"!==process.env.NODE_ENV&&(r=r.replace(it,(function(e){return o=e,""}))),st.lastIndex=0;for(var s,c="";null!==(s=st.exec(r));)c+="-"+s[1];var l=function(e){for(var t,u=0,n=0,r=e.length;r>=4;++n,r-=4)t=1540483477*(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))+(59797*(t>>>16)<<16),u=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&u)+(59797*(u>>>16)<<16);switch(r){case 3:u^=(255&e.charCodeAt(n+2))<<16;case 2:u^=(255&e.charCodeAt(n+1))<<8;case 1:u=1540483477*(65535&(u^=255&e.charCodeAt(n)))+(59797*(u>>>16)<<16)}return(((u=1540483477*(65535&(u^=u>>>13))+(59797*(u>>>16)<<16))^u>>>15)>>>0).toString(36)}(r)+c;return"production"!==process.env.NODE_ENV?{name:l,styles:r,map:o,next:at,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:l,styles:r,next:at}},lt="undefined"!=typeof document,dt=function(e){return e()},pt=!!e.useInsertionEffect&&e.useInsertionEffect,ft=lt&&pt||dt,gt=pt||u,bt="undefined"!=typeof document,ht={}.hasOwnProperty,mt=o("undefined"!=typeof HTMLElement?De({key:"css"}):null);"production"!==process.env.NODE_ENV&&(mt.displayName="EmotionCacheContext"),mt.Provider;var At=function(e){return i((function(t,u){var r=n(mt);return e(t,r,u)}))};bt||(At=function(e){return function(t){var u=n(mt);return null===u?(u=De({key:"css"}),r(mt.Provider,{value:u},e(t,u))):e(t,u)}});var Ct=o({});"production"!==process.env.NODE_ENV&&(Ct.displayName="EmotionThemeContext");var vt=pe((function(e){return pe((function(t){return function(e,t){if("function"==typeof t){var u=t(e);if("production"!==process.env.NODE_ENV&&(null==u||"object"!=typeof u||Array.isArray(u)))throw new Error("[ThemeProvider] Please return an object from your theme function, i.e. theme={() => ({})}!");return u}if("production"!==process.env.NODE_ENV&&(null==t||"object"!=typeof t||Array.isArray(t)))throw new Error("[ThemeProvider] Please make your theme prop a plain object");return we({},e,t)}(e,t)}))})),Et=function(e){var t=n(Ct);return e.theme!==t&&(t=vt(t)(e.theme)),r(Ct.Provider,{value:t},e.children)},yt=function(e){var t=e.split(".");return t[t.length-1]},It=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);return t||(t=/^([A-Za-z0-9$.]+)@/.exec(e))?yt(t[1]):void 0},Ft=new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),Bt=function(e){return e.replace(/\$/g,"-")},xt="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Dt="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",wt=function(e,t){if("production"!==process.env.NODE_ENV&&"string"==typeof t.css&&-1!==t.css.indexOf(":"))throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var u={};for(var n in t)ht.call(t,n)&&(u[n]=t[n]);if(u[xt]=e,"production"!==process.env.NODE_ENV&&t.css&&("object"!=typeof t.css||"string"!=typeof t.css.name||-1===t.css.name.indexOf("-"))){var r=function(e){if(e)for(var t=e.split("\n"),u=0;u<t.length;u++){var n=It(t[u]);if(n){if(Ft.has(n))break;if(/^[A-Z]/.test(n))return Bt(n)}}}((new Error).stack);r&&(u[Dt]=r)}return u},Gt=function(e){var t=e.cache,u=e.serialized,n=e.isStringTag;Pe(t,u,n);var o=ft((function(){return He(t,u,n)}));if(!bt&&void 0!==o){for(var i,a=u.name,s=u.next;void 0!==s;)a+=" "+s.name,s=s.next;return r("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},Ot=At((function(e,t,u){var o=e.css;"string"==typeof o&&void 0!==t.registered[o]&&(o=t.registered[o]);var i=e[xt],s=[o],c="";"string"==typeof e.className?c=Me(t.registered,s,e.className):null!=e.className&&(c=e.className+" ");var l=ct(s,void 0,n(Ct));if("production"!==process.env.NODE_ENV&&-1===l.name.indexOf("-")){var d=e[Dt];d&&(l=ct([l,"label:"+d+";"]))}c+=t.key+"-"+l.name;var p={};for(var f in e)!ht.call(e,f)||"css"===f||f===xt||"production"!==process.env.NODE_ENV&&f===Dt||(p[f]=e[f]);return p.ref=u,p.className=c,r(a,null,r(Gt,{cache:t,serialized:l,isStringTag:"string"==typeof i}),r(i,p))}));function Nt(e,t,u){return ht.call(t,"css")?g(Ot,wt(e,t),u):g(e,t,u)}function Tt(e,t,u){return ht.call(t,"css")?b(Ot,wt(e,t),u):b(e,t,u)}"production"!==process.env.NODE_ENV&&(Ot.displayName="EmotionCssPropInternal");var kt=function(e,t){var u=arguments;if(null==t||!ht.call(t,"css"))return r.apply(void 0,u);var n=u.length,o=new Array(n);o[0]=Ot,o[1]=wt(e,t);for(var i=2;i<n;i++)o[i]=u[i];return r.apply(null,o)},Vt=!1,Rt=At((function(e,t){"production"===process.env.NODE_ENV||Vt||!e.className&&!e.css||(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),Vt=!0);var u=e.styles,o=ct([u],void 0,n(Ct));if(!bt){for(var i,a=o.name,c=o.styles,l=o.next;void 0!==l;)a+=" "+l.name,c+=l.styles,l=l.next;var d=!0===t.compat,p=t.insert("",{name:a,styles:c},t.sheet,d);return d?null:r("style",((i={})["data-emotion"]=t.key+"-global "+a,i.dangerouslySetInnerHTML={__html:p},i.nonce=t.sheet.nonce,i))}var f=s();return gt((function(){var e=t.key+"-global",u=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,r=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(u.before=t.sheet.tags[0]),null!==r&&(n=!0,r.setAttribute("data-emotion",e),u.hydrate([r])),f.current=[u,n],function(){u.flush()}}),[t]),gt((function(){var e=f.current,u=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&He(t,o.next,!0),u.tags.length){var n=u.tags[u.tags.length-1].nextElementSibling;u.before=n,u.flush()}t.insert("",o,u,!1)}}),[t,o.name]),null}));function St(){for(var e=arguments.length,t=new Array(e),u=0;u<e;u++)t[u]=arguments[u];return ct(t)}"production"!==process.env.NODE_ENV&&(Rt.displayName="EmotionGlobal");var Wt=function e(t){for(var u=t.length,n=0,r="";n<u;n++){var o=t[n];if(null!=o){var i=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))i=e(o);else for(var a in"production"!==process.env.NODE_ENV&&void 0!==o.styles&&void 0!==o.name&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),i="",o)o[a]&&a&&(i&&(i+=" "),i+=a);break;default:i=o}i&&(r&&(r+=" "),r+=i)}}return r};var Zt=function(e){var t,u=e.cache,n=e.serializedArr,o=ft((function(){for(var e="",t=0;t<n.length;t++){var r=He(u,n[t],!1);bt||void 0===r||(e+=r)}if(!bt)return e}));return bt||0===o.length?null:r("style",((t={})["data-emotion"]=u.key+" "+n.map((function(e){return e.name})).join(" "),t.dangerouslySetInnerHTML={__html:o},t.nonce=u.sheet.nonce,t))},Xt=At((function(e,t){var u=!1,o=[],i=function(){if(u&&"production"!==process.env.NODE_ENV)throw new Error("css can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=ct(n,t.registered);return o.push(i),Pe(t,i,!1),t.key+"-"+i.name},s={css:i,cx:function(){if(u&&"production"!==process.env.NODE_ENV)throw new Error("cx can only be used during render");for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return function(e,t,u){var n=[],r=Me(e,n,u);return n.length<2?u:r+t(n)}(t.registered,i,Wt(n))},theme:n(Ct)},c=e.children(s);return u=!0,r(a,null,r(Zt,{cache:t,serializedArr:o}),c)}));if("production"!==process.env.NODE_ENV&&(Xt.displayName="EmotionClassNames"),"production"!==process.env.NODE_ENV){var Mt="undefined"!=typeof document,Pt="undefined"!=typeof jest||"undefined"!=typeof vi;if(Mt&&!Pt){var Ht="undefined"!=typeof globalThis?globalThis:Mt?window:global,Lt="__EMOTION_REACT_"+"11.10.6".split(".")[0]+"__";Ht[Lt]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ht[Lt]=!0}}const jt={colors:{primary:{main:"#1d4e89",contrastText:"#ffffff"},secondary:{main:"#00b2ca",contrastText:"#ffffff"},tertiary:{main:"#7dcfb6",contrastText:"#ffffff"},statusOk:{main:"#00e200",contrastText:"#ffffff"},statusWarning:{main:"#efff00",contrastText:"#ffffff"},statusCritical:{main:"#ff3838",contrastText:"#ffffff"},statusNeutral:{main:"#7b8089",contrastText:"#ffffff"}}},zt=t.createContext(jt),Yt=e=>{const[u]=c(e.theme||jt);return t.createElement(zt.Provider,{value:u},t.createElement(Et,{theme:u},e.children))},Jt=()=>{const e=n(Ct);return t=e,0===Object.keys(t).length?jt:e;var t};var _t=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Ut=fe((function(e){return _t.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91})),Qt=function(e){return"theme"!==e},$t=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?Ut:Qt},Kt=function(e,t,u){var n;if(t){var r=t.shouldForwardProp;n=e.__emotion_forwardProp&&r?function(t){return e.__emotion_forwardProp(t)&&r(t)}:r}return"function"!=typeof n&&u&&(n=e.__emotion_forwardProp),n},qt="You have illegal escape sequence in your template literal, most likely inside content's property value.\nBecause you write your CSS inside a JavaScript string you actually have to do double escaping, so for example \"content: '\\00d7';\" should become \"content: '\\\\00d7';\".\nYou can read more about this here:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences",eu="undefined"!=typeof document,tu=function(e){var t=e.cache,u=e.serialized,n=e.isStringTag;Pe(t,u,n);var o=ft((function(){return He(t,u,n)}));if(!eu&&void 0!==o){for(var i,a=u.name,s=u.next;void 0!==s;)a+=" "+s.name,s=s.next;return r("style",((i={})["data-emotion"]=t.key+" "+a,i.dangerouslySetInnerHTML={__html:o},i.nonce=t.sheet.nonce,i))}return null},uu=function e(t,u){if("production"!==process.env.NODE_ENV&&void 0===t)throw new Error("You are trying to create a styled element with an undefined component.\nYou may have forgotten to import it.");var o,i,s=t.__emotion_real===t,c=s&&t.__emotion_base||t;void 0!==u&&(o=u.label,i=u.target);var l=Kt(t,u,s),d=l||$t(c),p=!d("as");return function(){var f=arguments,g=s&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==o&&g.push("label:"+o+";"),null==f[0]||void 0===f[0].raw)g.push.apply(g,f);else{"production"!==process.env.NODE_ENV&&void 0===f[0][0]&&console.error(qt),g.push(f[0][0]);for(var b=f.length,h=1;h<b;h++)"production"!==process.env.NODE_ENV&&void 0===f[0][h]&&console.error(qt),g.push(f[h],f[0][h])}var m=At((function(e,t,u){var o=p&&e.as||c,s="",f=[],b=e;if(null==e.theme){for(var h in b={},e)b[h]=e[h];b.theme=n(Ct)}"string"==typeof e.className?s=Me(t.registered,f,e.className):null!=e.className&&(s=e.className+" ");var m=ct(g.concat(f),t.registered,b);s+=t.key+"-"+m.name,void 0!==i&&(s+=" "+i);var A=p&&void 0===l?$t(o):d,C={};for(var v in e)p&&"as"===v||A(v)&&(C[v]=e[v]);return C.className=s,C.ref=u,r(a,null,r(tu,{cache:t,serialized:m,isStringTag:"string"==typeof o}),r(o,C))}));return m.displayName=void 0!==o?o:"Styled("+("string"==typeof c?c:c.displayName||c.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=c,m.__emotion_styles=g,m.__emotion_forwardProp=l,Object.defineProperty(m,"toString",{value:function(){return void 0===i&&"production"!==process.env.NODE_ENV?"NO_COMPONENT_SELECTOR":"."+i}}),m.withComponent=function(t,n){return e(t,we({},u,n,{shouldForwardProp:Kt(m,n,!0)})).apply(void 0,g)},m}}.bind();function nu(e){return nu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},nu(e)}["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){uu[e]=uu(e)}));var ru=/^\s+/,ou=/\s+$/;function iu(e,t){if(t=t||{},(e=e||"")instanceof iu)return e;if(!(this instanceof iu))return new iu(e,t);var u=function(e){var t={r:0,g:0,b:0},u=1,n=null,r=null,o=null,i=!1,a=!1;"string"==typeof e&&(e=function(e){e=e.replace(ru,"").replace(ou,"").toLowerCase();var t,u=!1;if(Iu[e])e=Iu[e],u=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=Su.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=Su.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=Su.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=Su.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=Su.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=Su.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=Su.hex8.exec(e))return{r:wu(t[1]),g:wu(t[2]),b:wu(t[3]),a:Tu(t[4]),format:u?"name":"hex8"};if(t=Su.hex6.exec(e))return{r:wu(t[1]),g:wu(t[2]),b:wu(t[3]),format:u?"name":"hex"};if(t=Su.hex4.exec(e))return{r:wu(t[1]+""+t[1]),g:wu(t[2]+""+t[2]),b:wu(t[3]+""+t[3]),a:Tu(t[4]+""+t[4]),format:u?"name":"hex8"};if(t=Su.hex3.exec(e))return{r:wu(t[1]+""+t[1]),g:wu(t[2]+""+t[2]),b:wu(t[3]+""+t[3]),format:u?"name":"hex"};return!1}(e));"object"==nu(e)&&(Wu(e.r)&&Wu(e.g)&&Wu(e.b)?(s=e.r,c=e.g,l=e.b,t={r:255*xu(s,255),g:255*xu(c,255),b:255*xu(l,255)},i=!0,a="%"===String(e.r).substr(-1)?"prgb":"rgb"):Wu(e.h)&&Wu(e.s)&&Wu(e.v)?(n=Ou(e.s),r=Ou(e.v),t=function(e,t,u){e=6*xu(e,360),t=xu(t,100),u=xu(u,100);var n=Math.floor(e),r=e-n,o=u*(1-t),i=u*(1-r*t),a=u*(1-(1-r)*t),s=n%6,c=[u,i,o,o,a,u][s],l=[a,u,u,i,o,o][s],d=[o,o,a,u,u,i][s];return{r:255*c,g:255*l,b:255*d}}(e.h,n,r),i=!0,a="hsv"):Wu(e.h)&&Wu(e.s)&&Wu(e.l)&&(n=Ou(e.s),o=Ou(e.l),t=function(e,t,u){var n,r,o;function i(e,t,u){return u<0&&(u+=1),u>1&&(u-=1),u<1/6?e+6*(t-e)*u:u<.5?t:u<2/3?e+(t-e)*(2/3-u)*6:e}if(e=xu(e,360),t=xu(t,100),u=xu(u,100),0===t)n=r=o=u;else{var a=u<.5?u*(1+t):u+t-u*t,s=2*u-a;n=i(s,a,e+1/3),r=i(s,a,e),o=i(s,a,e-1/3)}return{r:255*n,g:255*r,b:255*o}}(e.h,n,o),i=!0,a="hsl"),e.hasOwnProperty("a")&&(u=e.a));var s,c,l;return u=Bu(u),{ok:i,format:e.format||a,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:u}}(e);this._originalInput=e,this._r=u.r,this._g=u.g,this._b=u.b,this._a=u.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||u.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=u.ok}function au(e,t,u){e=xu(e,255),t=xu(t,255),u=xu(u,255);var n,r,o=Math.max(e,t,u),i=Math.min(e,t,u),a=(o+i)/2;if(o==i)n=r=0;else{var s=o-i;switch(r=a>.5?s/(2-o-i):s/(o+i),o){case e:n=(t-u)/s+(t<u?6:0);break;case t:n=(u-e)/s+2;break;case u:n=(e-t)/s+4}n/=6}return{h:n,s:r,l:a}}function su(e,t,u){e=xu(e,255),t=xu(t,255),u=xu(u,255);var n,r,o=Math.max(e,t,u),i=Math.min(e,t,u),a=o,s=o-i;if(r=0===o?0:s/o,o==i)n=0;else{switch(o){case e:n=(t-u)/s+(t<u?6:0);break;case t:n=(u-e)/s+2;break;case u:n=(e-t)/s+4}n/=6}return{h:n,s:r,v:a}}function cu(e,t,u,n){var r=[Gu(Math.round(e).toString(16)),Gu(Math.round(t).toString(16)),Gu(Math.round(u).toString(16))];return n&&r[0].charAt(0)==r[0].charAt(1)&&r[1].charAt(0)==r[1].charAt(1)&&r[2].charAt(0)==r[2].charAt(1)?r[0].charAt(0)+r[1].charAt(0)+r[2].charAt(0):r.join("")}function lu(e,t,u,n){return[Gu(Nu(n)),Gu(Math.round(e).toString(16)),Gu(Math.round(t).toString(16)),Gu(Math.round(u).toString(16))].join("")}function du(e,t){t=0===t?0:t||10;var u=iu(e).toHsl();return u.s-=t/100,u.s=Du(u.s),iu(u)}function pu(e,t){t=0===t?0:t||10;var u=iu(e).toHsl();return u.s+=t/100,u.s=Du(u.s),iu(u)}function fu(e){return iu(e).desaturate(100)}function gu(e,t){t=0===t?0:t||10;var u=iu(e).toHsl();return u.l+=t/100,u.l=Du(u.l),iu(u)}function bu(e,t){t=0===t?0:t||10;var u=iu(e).toRgb();return u.r=Math.max(0,Math.min(255,u.r-Math.round(-t/100*255))),u.g=Math.max(0,Math.min(255,u.g-Math.round(-t/100*255))),u.b=Math.max(0,Math.min(255,u.b-Math.round(-t/100*255))),iu(u)}function hu(e,t){t=0===t?0:t||10;var u=iu(e).toHsl();return u.l-=t/100,u.l=Du(u.l),iu(u)}function mu(e,t){var u=iu(e).toHsl(),n=(u.h+t)%360;return u.h=n<0?360+n:n,iu(u)}function Au(e){var t=iu(e).toHsl();return t.h=(t.h+180)%360,iu(t)}function Cu(e,t){if(isNaN(t)||t<=0)throw new Error("Argument to polyad must be a positive number");for(var u=iu(e).toHsl(),n=[iu(e)],r=360/t,o=1;o<t;o++)n.push(iu({h:(u.h+o*r)%360,s:u.s,l:u.l}));return n}function vu(e){var t=iu(e).toHsl(),u=t.h;return[iu(e),iu({h:(u+72)%360,s:t.s,l:t.l}),iu({h:(u+216)%360,s:t.s,l:t.l})]}function Eu(e,t,u){t=t||6,u=u||30;var n=iu(e).toHsl(),r=360/u,o=[iu(e)];for(n.h=(n.h-(r*t>>1)+720)%360;--t;)n.h=(n.h+r)%360,o.push(iu(n));return o}function yu(e,t){t=t||6;for(var u=iu(e).toHsv(),n=u.h,r=u.s,o=u.v,i=[],a=1/t;t--;)i.push(iu({h:n,s:r,v:o})),o=(o+a)%1;return i}iu.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,u,n=this.toRgb();return e=n.r/255,t=n.g/255,u=n.b/255,.2126*(e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.0722*(u<=.03928?u/12.92:Math.pow((u+.055)/1.055,2.4))},setAlpha:function(e){return this._a=Bu(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=su(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=su(this._r,this._g,this._b),t=Math.round(360*e.h),u=Math.round(100*e.s),n=Math.round(100*e.v);return 1==this._a?"hsv("+t+", "+u+"%, "+n+"%)":"hsva("+t+", "+u+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=au(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=au(this._r,this._g,this._b),t=Math.round(360*e.h),u=Math.round(100*e.s),n=Math.round(100*e.l);return 1==this._a?"hsl("+t+", "+u+"%, "+n+"%)":"hsla("+t+", "+u+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return cu(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,u,n,r){var o=[Gu(Math.round(e).toString(16)),Gu(Math.round(t).toString(16)),Gu(Math.round(u).toString(16)),Gu(Nu(n))];if(r&&o[0].charAt(0)==o[0].charAt(1)&&o[1].charAt(0)==o[1].charAt(1)&&o[2].charAt(0)==o[2].charAt(1)&&o[3].charAt(0)==o[3].charAt(1))return o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0)+o[3].charAt(0);return o.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+")":"rgba("+Math.round(this._r)+", "+Math.round(this._g)+", "+Math.round(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:Math.round(100*xu(this._r,255))+"%",g:Math.round(100*xu(this._g,255))+"%",b:Math.round(100*xu(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+Math.round(100*xu(this._r,255))+"%, "+Math.round(100*xu(this._g,255))+"%, "+Math.round(100*xu(this._b,255))+"%)":"rgba("+Math.round(100*xu(this._r,255))+"%, "+Math.round(100*xu(this._g,255))+"%, "+Math.round(100*xu(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(Fu[cu(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+lu(this._r,this._g,this._b,this._a),u=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var r=iu(e);u="#"+lu(r._r,r._g,r._b,r._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+u+")"},toString:function(e){var t=!!e;e=e||this._format;var u=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(u=this.toRgbString()),"prgb"===e&&(u=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(u=this.toHexString()),"hex3"===e&&(u=this.toHexString(!0)),"hex4"===e&&(u=this.toHex8String(!0)),"hex8"===e&&(u=this.toHex8String()),"name"===e&&(u=this.toName()),"hsl"===e&&(u=this.toHslString()),"hsv"===e&&(u=this.toHsvString()),u||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return iu(this.toString())},_applyModification:function(e,t){var u=e.apply(null,[this].concat([].slice.call(t)));return this._r=u._r,this._g=u._g,this._b=u._b,this.setAlpha(u._a),this},lighten:function(){return this._applyModification(gu,arguments)},brighten:function(){return this._applyModification(bu,arguments)},darken:function(){return this._applyModification(hu,arguments)},desaturate:function(){return this._applyModification(du,arguments)},saturate:function(){return this._applyModification(pu,arguments)},greyscale:function(){return this._applyModification(fu,arguments)},spin:function(){return this._applyModification(mu,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Eu,arguments)},complement:function(){return this._applyCombination(Au,arguments)},monochromatic:function(){return this._applyCombination(yu,arguments)},splitcomplement:function(){return this._applyCombination(vu,arguments)},triad:function(){return this._applyCombination(Cu,[3])},tetrad:function(){return this._applyCombination(Cu,[4])}},iu.fromRatio=function(e,t){if("object"==nu(e)){var u={};for(var n in e)e.hasOwnProperty(n)&&(u[n]="a"===n?e[n]:Ou(e[n]));e=u}return iu(e,t)},iu.equals=function(e,t){return!(!e||!t)&&iu(e).toRgbString()==iu(t).toRgbString()},iu.random=function(){return iu.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},iu.mix=function(e,t,u){u=0===u?0:u||50;var n=iu(e).toRgb(),r=iu(t).toRgb(),o=u/100;return iu({r:(r.r-n.r)*o+n.r,g:(r.g-n.g)*o+n.g,b:(r.b-n.b)*o+n.b,a:(r.a-n.a)*o+n.a})},iu.readability=function(e,t){var u=iu(e),n=iu(t);return(Math.max(u.getLuminance(),n.getLuminance())+.05)/(Math.min(u.getLuminance(),n.getLuminance())+.05)},iu.isReadable=function(e,t,u){var n,r,o=iu.readability(e,t);switch(r=!1,(n=function(e){var t,u;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),u=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==u&&"large"!==u&&(u="small");return{level:t,size:u}}(u)).level+n.size){case"AAsmall":case"AAAlarge":r=o>=4.5;break;case"AAlarge":r=o>=3;break;case"AAAsmall":r=o>=7}return r},iu.mostReadable=function(e,t,u){var n,r,o,i,a=null,s=0;r=(u=u||{}).includeFallbackColors,o=u.level,i=u.size;for(var c=0;c<t.length;c++)(n=iu.readability(e,t[c]))>s&&(s=n,a=iu(t[c]));return iu.isReadable(e,a,{level:o,size:i})||!r?a:(u.includeFallbackColors=!1,iu.mostReadable(e,["#fff","#000"],u))};var Iu=iu.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},Fu=iu.hexNames=function(e){var t={};for(var u in e)e.hasOwnProperty(u)&&(t[e[u]]=u);return t}(Iu);function Bu(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function xu(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var u=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),u&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function Du(e){return Math.min(1,Math.max(0,e))}function wu(e){return parseInt(e,16)}function Gu(e){return 1==e.length?"0"+e:""+e}function Ou(e){return e<=1&&(e=100*e+"%"),e}function Nu(e){return Math.round(255*parseFloat(e)).toString(16)}function Tu(e){return wu(e)/255}var ku,Vu,Ru,Su=(Vu="[\\s|\\(]+("+(ku="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+ku+")[,|\\s]+("+ku+")\\s*\\)?",Ru="[\\s|\\(]+("+ku+")[,|\\s]+("+ku+")[,|\\s]+("+ku+")[,|\\s]+("+ku+")\\s*\\)?",{CSS_UNIT:new RegExp(ku),rgb:new RegExp("rgb"+Vu),rgba:new RegExp("rgba"+Ru),hsl:new RegExp("hsl"+Vu),hsla:new RegExp("hsla"+Ru),hsv:new RegExp("hsv"+Vu),hsva:new RegExp("hsva"+Ru),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function Wu(e){return!!Su.CSS_UNIT.exec(e)}const Zu=t=>{const u=Jt(),n=uu.button`
10
- padding: 0.6em 1.2em;
10
+ padding: 1em 1.2em;
11
11
  transition: 0.25s;
12
- border-radius: 8px;
12
+ border-radius: 4px;
13
13
  :hover {
14
14
  cursor: pointer;
15
15
  }
@@ -18,6 +18,7 @@ import*as e from"react";import t,{useLayoutEffect as u,useContext as n,createEle
18
18
  background-color: ${u.colors[t.color||"primary"].main};
19
19
  font-weight: bold;
20
20
  color: ${u.colors[t.color||"primary"].contrastText};
21
+ box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
21
22
  :hover {
22
23
  background-color: ${iu(u.colors[t.color||"primary"].main).lighten(5).toString()};
23
24
  }
@@ -96,5 +97,5 @@ import*as e from"react";import t,{useLayoutEffect as u,useContext as n,createEle
96
97
  position: relative;
97
98
  top: 15px;
98
99
  color: ${e=>e.textColor};
99
- `,ta=e=>{const u=Jt(),n=t.useMemo((()=>u.colors[e.color||"primary"]),[u,e.color]);t.useMemo((()=>u.colors[e.unselectedColor||"statusNeutral"]),[u,e.unselectedColor]);const{min:r,max:o}=t.useMemo((()=>e.autoCalculateMinMax?{min:Math.min(...e.values),max:Math.max(...e.values)}:{min:e.min||0,max:e.max||100}),[e.autoCalculateMinMax,e.min,e.max]);return t.createElement(t.Fragment,null,t.createElement(Ri.Range,{min:r,max:o,values:e.values,onChange:e.onChange,onFinalChange:e.onFinalChange,step:e.step,renderTrack:({props:i,children:a})=>{return t.createElement($i,{onMouseDown:i.onMouseDown,onTouchStart:i.onTouchStart,className:e.className,id:e.htmlId,style:Object.assign(Object.assign({},i.style),{height:"36px",display:"flex",width:"100%"})},t.createElement(Ki,{ref:i.ref,bgColor:Ri.getTrackBackground({values:e.values,colors:(s=e.values,1===s.length?[n.main,u.colors.statusNeutral.main]:Array.from(new Array(e.values.length+1)).map(((e,t)=>t%2!=0?n.main:u.colors.statusNeutral.main))),min:r,max:o})},a));var s},renderThumb:({props:u,value:r})=>t.createElement(qi,Object.assign({bgColor:n.contrastText,borderColor:n.main,value:String(r)},u,{style:Object.assign({},u.style)}),!1!==e.showThumbValue&&t.createElement(ea,{textColor:n.main},r))}))};export{$n as Accordion,Zu as Button,Ti as MultiSelect,Ni as SingleSelect,ta as Slider,Yt as ThemeContextProvider,Jt as useThemeContext};
100
+ `,ta=e=>{const u=Jt(),n=t.useMemo((()=>{if(e.disabled){return{main:iu(u.colors[e.color||"primary"].main).desaturate(80).toHexString(),contrastText:u.colors[e.color||"primary"].contrastText}}return u.colors[e.color||"primary"]}),[u,e.color]),r=t.useMemo((()=>u.colors[e.unselectedColor||"statusNeutral"]),[u,e.unselectedColor]),{min:o,max:i}=t.useMemo((()=>e.autoCalculateMinMax?{min:Math.min(...e.values),max:Math.max(...e.values)}:{min:e.min||0,max:e.max||100}),[e.autoCalculateMinMax,e.min,e.max]);return t.createElement(t.Fragment,null,t.createElement(Ri.Range,{min:o,max:i,values:e.values,onChange:e.onChange,onFinalChange:e.onFinalChange,step:e.step,disabled:e.disabled,renderTrack:({props:a,children:s})=>{return t.createElement($i,{onMouseDown:a.onMouseDown,onTouchStart:a.onTouchStart,className:e.className,id:e.htmlId,style:Object.assign(Object.assign({},a.style),{height:"36px",display:"flex",width:"100%"})},t.createElement(Ki,{ref:a.ref,bgColor:Ri.getTrackBackground({values:e.values,colors:(c=e.values,1===c.length?[n.main,u.colors.statusNeutral.main]:Array.from(new Array(e.values.length+1)).map(((e,t)=>t%2!=0?n.main:r.main))),min:o,max:i})},s));var c},renderThumb:({props:u,value:r})=>t.createElement(qi,Object.assign({bgColor:n.contrastText,borderColor:n.main,value:String(r),disabled:e.disabled},u,{style:Object.assign({},u.style)}),!1!==e.showThumbValue&&t.createElement(ea,{textColor:n.main},r))}))};export{$n as Accordion,Zu as Button,Ti as MultiSelect,Ni as SingleSelect,ta as Slider,Yt as ThemeContextProvider,Jt as useThemeContext};
100
101
  //# sourceMappingURL=index.js.map