nhc-dga-ui
Version:
DGA ui library
51 lines (46 loc) • 254 kB
JavaScript
import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import o,{useDebugValue as n,createElement as i,useRef as a,useContext as l,useEffect as s}from"react";import{Calendar as d}from"react-multi-date-picker";import{createRoot as c}from"react-dom/client";const p=o.createContext(null),u=({theme:t,children:r})=>e(p.Provider,{value:t,children:r}),g=t=>()=>e(u,{theme:{direction:"rtl"},children:e(t,{})}),h={direction:"ltr",fontFamily:"IBM Plex Sans",textColor:"#161616",textOnColor:"#FFFFFF",palette:{neutral:{25:"#FCFCFD",50:"#F9FAFB",100:"#F3F4F6",200:"#E5E7EB",300:"#D2D6DB",400:"#9DA4AE",500:"#6C737F",600:"#4D5761",700:"#384250",800:"#1F2A37",900:"#111927",950:"#0D121C",light:"#D2D6DB",main:"#6C737F",dark:"#384250",contrastText:"#FFF"},primary:{25:"#F7FDF9",50:"#F3FCF6",100:"#DFF6E7",200:"#B8EACB",300:"#88D8AD",400:"#54C08A",500:"#25935F",600:"#1B8354",700:"#166A45",800:"#14573A",900:"#104631",950:"#092A1E",light:"#54C08A",main:"#1B8354",dark:"#14573A",contrastText:"#FFF"},secondary:{25:"#FFFEF7",50:"#FFFEF2",100:"#FFFCE6",200:"#FCF3BD",300:"#FAE996",400:"#F7D54D",500:"#F5BD02",600:"#DBA102",700:"#B87B02",800:"#945C01",900:"#6E3C00",950:"#472400",light:"#F7D54D",main:"#DBA102",dark:"#945C01",contrastText:"#0D121C"},error:{25:"#FFFBFA",50:"#FEF3F2",100:"#FEE4E2",200:"#FECDCA",300:"#FDA29B",400:"#F97066",500:"#F04438",600:"#D92D20",700:"#B42318",800:"#912018",900:"#7A271A",950:"#55160C",light:"#FDA29B",main:"#F04438",dark:"#B42318",contrastText:"#FFF"},warning:{25:"#FFFCF5",50:"#FFFAEB",100:"#FEF0C7",200:"#FEDF89",300:"#FEC84B",400:"#FDB022",500:"#F79009",600:"#DC6803",700:"#B54708",800:"#93370D",900:"#7A2E0E",950:"#4E1D09",light:"#FEC84B",main:"#F79009",dark:"#B54708",contrastText:"#0D121C"},info:{25:"#F5FAFF",50:"#ECFDF3",100:"#D1E9FF",200:"#B2DDFF",300:"#84CAFF",400:"#53B1FD",500:"#2E90FA",600:"#1570EF",700:"#175CD3",800:"#1849A9",900:"#194185",950:"#102A56",light:"#84CAFF",main:"#2E90FA",dark:"#175CD3",contrastText:"#FFF"},success:{25:"#F6FEF9",50:"#ECFDF3",100:"#DCFAE6",200:"#ABEFC6",300:"#75E0A7",400:"#47CD89",500:"#17B26A",600:"#079455",700:"#067647",800:"#085D3A",900:"#074D31",950:"#053321",light:"#75E0A7",main:"#17B26A",dark:"#067647",contrastText:"#FFF"}},typography:{h1:{fontSize:"72px",lineHeight:"90px"},h2:{fontSize:"60px",lineHeight:"72px"},h3:{fontSize:"48px",lineHeight:"60px"},h4:{fontSize:"36px",lineHeight:"44px"},h5:{fontSize:"30px",lineHeight:"38px"},h6:{fontSize:"24px",lineHeight:"32px"},xl:{fontSize:"20px",lineHeight:"30px"},lg:{fontSize:"18px",lineHeight:"28px"},md:{fontSize:"16px",lineHeight:"24px"},sm:{fontSize:"14px",lineHeight:"20px"},xs:{fontSize:"12px",lineHeight:"18px"}},elevation:{shadows:{xs:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .05);",sm:"box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, .06), 0px 1px 3px 0px rgba(16, 24, 40, .1);",md:"box-shadow: 0px 2px 4px -2px rgba(16, 24, 40, .06), 0px 4px 8px -2px rgba(16, 24, 40, .1);",lg:"box-shadow: 0px 4px 6px -2px rgba(16, 24, 40, .03), 0px 12px 16px -4px rgba(16, 24, 40, .08);",xl:"box-shadow: 0px 8px 8px -4px rgba(16, 24, 40, .03), 0px 20px 24px -4px rgba(16, 24, 40, .08);","2xl":"box-shadow: 0 24px 48px -12px #1018282e;","3xl":"box-shadow: 0 32px 64px -12px #10182824;"},backdropBlur:{sm:"filter: blur(8px);-webkit-filter: blur(8px);",md:"filter: blur(16px);-webkit-filter: blur(16px);",lg:"filter: blur(24px);-webkit-filter: blur(24px);",xl:"filter: blur(40px);-webkit-filter: blur(40px);"}},raduises:{none:"0",xs:"2px",sm:"4px",md:"8px",lg:"16px",xl:"24px",full:"9999px"},breakPoints:{lg:1280,md:768,sm:375}},m=(e,t,r=" ")=>e+r+(null!=t?t:""),A=()=>Date.now().toString(36)+Math.random().toString(36).substring(2,8);function f(e,t){void 0===t&&(t={});var r=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===r&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}f(".dgaui {\n font-family: IBM Plex Sans Arabic;\n box-sizing: border-box;\n font-size: 14px;\n -webkit-tap-highlight-color: transparent;\n}\n\n.dgaui input,\n.dgaui textarea,\n.dgaui select {\n font-family: IBM Plex Sans Arabic;\n}\n\n.dgaui_hiddenScrollbar {\n -ms-overflow-style: none; /* IE and Edge */\n /* Hide scrollbar for IE, Edge and Firefox */\n scrollbar-width: none; /* Firefox */\n}\n/* Hide scrollbar for Chrome, Safari and Opera */\n.dgaui_hiddenScrollbar::-webkit-scrollbar {\n display: none;\n}\n");const b=()=>{const e=o.useContext(p);let t=h;return e&&(t=((e,t)=>{let r={};return t&&(r=function e(t,r){let o=Object.assign({},t);for(const i in r)(n=r[i])&&"object"==typeof n&&!Array.isArray(n)&&i in t?o[i]=e(t[i],r[i]):o[i]=r[i];var n;return o}(e,t)),r})(h,e)),t};var x=function(){return x=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},x.apply(this,arguments)};function v(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]])}return r}function y(e,t,r){if(r||2===arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function C(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}"function"==typeof SuppressedError&&SuppressedError;var w=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,$=C((function(e){return w.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));function k(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var S="-ms-",B="-moz-",E="-webkit-",N="comm",z="rule",I="decl",F="@keyframes",U=Math.abs,R=String.fromCharCode,O=Object.assign;function D(e){return e.trim()}function T(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function H(e,t,r){return e.indexOf(t,r)}function M(e,t){return 0|e.charCodeAt(t)}function L(e,t,r){return e.slice(t,r)}function Q(e){return e.length}function j(e){return e.length}function P(e,t){return t.push(e),e}function V(e,t){return e.filter((function(e){return!T(e,t)}))}var K=1,X=1,G=0,J=0,W=0,Z="";function q(e,t,r,o,n,i,a,l){return{value:e,root:t,parent:r,type:o,props:n,children:i,line:K,column:X,length:a,return:"",siblings:l}}function _(e,t){return O(q("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function ee(e){for(;e.root;)e=_(e.root,{children:[e]});P(e,e.siblings)}function te(){return W=J>0?M(Z,--J):0,X--,10===W&&(X=1,K--),W}function re(){return W=J<G?M(Z,J++):0,X++,10===W&&(X=1,K++),W}function oe(){return M(Z,J)}function ne(){return J}function ie(e,t){return L(Z,e,t)}function ae(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return D(ie(J-1,ce(91===e?e+2:40===e?e+1:e)))}function se(e){for(;(W=oe())&&W<33;)re();return ae(e)>2||ae(W)>3?"":" "}function de(e,t){for(;--t&&re()&&!(W<48||W>102||W>57&&W<65||W>70&&W<97););return ie(e,ne()+(t<6&&32==oe()&&32==re()))}function ce(e){for(;re();)switch(W){case e:return J;case 34:case 39:34!==e&&39!==e&&ce(W);break;case 40:41===e&&ce(e);break;case 92:re()}return J}function pe(e,t){for(;re()&&e+W!==57&&(e+W!==84||47!==oe()););return"/*"+ie(t,J-1)+"*"+R(47===e?e:re())}function ue(e){for(;!ae(oe());)re();return ie(e,J)}function ge(e){return function(e){return Z="",e}(he("",null,null,null,[""],e=function(e){return K=X=1,G=Q(Z=e),J=0,[]}(e),0,[0],e))}function he(e,t,r,o,n,i,a,l,s){for(var d=0,c=0,p=a,u=0,g=0,h=0,m=1,A=1,f=1,b=0,x="",v=n,y=i,C=o,w=x;A;)switch(h=b,b=re()){case 40:if(108!=h&&58==M(w,p-1)){-1!=H(w+=Y(le(b),"&","&\f"),"&\f",U(d?l[d-1]:0))&&(f=-1);break}case 34:case 39:case 91:w+=le(b);break;case 9:case 10:case 13:case 32:w+=se(h);break;case 92:w+=de(ne()-1,7);continue;case 47:switch(oe()){case 42:case 47:P(Ae(pe(re(),ne()),t,r,s),s);break;default:w+="/"}break;case 123*m:l[d++]=Q(w)*f;case 125*m:case 59:case 0:switch(b){case 0:case 125:A=0;case 59+c:-1==f&&(w=Y(w,/\f/g,"")),g>0&&Q(w)-p&&P(g>32?fe(w+";",o,r,p-1,s):fe(Y(w," ","")+";",o,r,p-2,s),s);break;case 59:w+=";";default:if(P(C=me(w,t,r,d,c,n,l,x,v=[],y=[],p,i),i),123===b)if(0===c)he(w,t,C,C,v,i,p,l,y);else switch(99===u&&110===M(w,3)?100:u){case 100:case 108:case 109:case 115:he(e,C,C,o&&P(me(e,C,C,0,0,n,l,x,n,v=[],p,y),y),n,y,p,l,o?v:y);break;default:he(w,C,C,C,[""],y,0,l,y)}}d=c=g=0,m=f=1,x=w="",p=a;break;case 58:p=1+Q(w),g=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==te())continue;switch(w+=R(b),b*m){case 38:f=c>0?1:(w+="\f",-1);break;case 44:l[d++]=(Q(w)-1)*f,f=1;break;case 64:45===oe()&&(w+=le(re())),u=oe(),c=p=Q(x=w+=ue(ne())),b++;break;case 45:45===h&&2==Q(w)&&(m=0)}}return i}function me(e,t,r,o,n,i,a,l,s,d,c,p){for(var u=n-1,g=0===n?i:[""],h=j(g),m=0,A=0,f=0;m<o;++m)for(var b=0,x=L(e,u+1,u=U(A=a[m])),v=e;b<h;++b)(v=D(A>0?g[b]+" "+x:Y(x,/&\f/g,g[b])))&&(s[f++]=v);return q(e,t,r,0===n?z:l,s,d,c,p)}function Ae(e,t,r,o){return q(e,t,r,N,R(W),L(e,2,-2),0,o)}function fe(e,t,r,o,n){return q(e,t,r,I,L(e,0,o),L(e,o+1,-1),o,n)}function be(e,t,r){switch(function(e,t){return 45^M(e,0)?(((t<<2^M(e,0))<<2^M(e,1))<<2^M(e,2))<<2^M(e,3):0}(e,t)){case 5103:return E+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return E+e+e;case 4789:return B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return E+e+B+e+S+e+e;case 5936:switch(M(e,t+11)){case 114:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return E+e+S+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return E+e+S+e+e;case 6165:return E+e+S+"flex-"+e+e;case 5187:return E+e+Y(e,/(\w+).+(:[^]+)/,E+"box-$1$2"+S+"flex-$1$2")+e;case 5443:return E+e+S+"flex-item-"+Y(e,/flex-|-self/g,"")+(T(e,/flex-|baseline/)?"":S+"grid-row-"+Y(e,/flex-|-self/g,""))+e;case 4675:return E+e+S+"flex-line-pack"+Y(e,/align-content|flex-|-self/g,"")+e;case 5548:return E+e+S+Y(e,"shrink","negative")+e;case 5292:return E+e+S+Y(e,"basis","preferred-size")+e;case 6060:return E+"box-"+Y(e,"-grow","")+E+e+S+Y(e,"grow","positive")+e;case 4554:return E+Y(e,/([^-])(transform)/g,"$1"+E+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,E+"$1"),/(image-set)/,E+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,E+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,E+"box-pack:$3"+S+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+E+e+e;case 4200:if(!T(e,/flex-|baseline/))return S+"grid-column-align"+L(e,t)+e;break;case 2592:case 3360:return S+Y(e,"template-","")+e;case 4384:case 3616:return r&&r.some((function(e,r){return t=r,T(e.props,/grid-\w+-end/)}))?~H(e+(r=r[t].value),"span",0)?e:S+Y(e,"-start","")+e+S+"grid-row-span:"+(~H(r,"span",0)?T(r,/\d+/):+T(r,/\d+/)-+T(e,/\d+/))+";":S+Y(e,"-start","")+e;case 4896:case 4128:return r&&r.some((function(e){return T(e.props,/grid-\w+-start/)}))?e:S+Y(Y(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,E+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Q(e)-1-t>6)switch(M(e,t+1)){case 109:if(45!==M(e,t+4))break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+E+"$2-$3$1"+B+(108==M(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch",0)?be(Y(e,"stretch","fill-available"),t,r)+e:e}break;case 5152:case 5920:return Y(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,r,o,n,i,a,l){return S+r+":"+o+l+(n?S+r+"-span:"+(i?a:+a-+o)+l:"")+e}));case 4949:if(121===M(e,t+6))return Y(e,":",":"+E)+e;break;case 6444:switch(M(e,45===M(e,14)?18:11)){case 120:return Y(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+E+(45===M(e,14)?"inline-":"")+"box$3$1"+E+"$2$3$1"+S+"$2box$3")+e;case 100:return Y(e,":",":"+S)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Y(e,"scroll-","scroll-snap-")+e}return e}function xe(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function ve(e,t,r,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case I:return e.return=e.return||e.value;case N:return"";case F:return e.return=e.value+"{"+xe(e.children,o)+"}";case z:if(!Q(e.value=e.props.join(",")))return""}return Q(r=xe(e.children,o))?e.return=e.value+"{"+r+"}":""}function ye(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case I:return void(e.return=be(e.value,e.length,r));case F:return xe([_(e,{value:Y(e.value,"@","@"+E)})],o);case z:if(e.length)return function(e,t){return e.map(t).join("")}(r=e.props,(function(t){switch(T(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":ee(_(e,{props:[Y(t,/:(read-\w+)/,":-moz-$1")]})),ee(_(e,{props:[t]})),O(e,{props:V(r,o)});break;case"::placeholder":ee(_(e,{props:[Y(t,/:(plac\w+)/,":"+E+"input-$1")]})),ee(_(e,{props:[Y(t,/:(plac\w+)/,":-moz-$1")]})),ee(_(e,{props:[Y(t,/:(plac\w+)/,S+"input-$1")]})),ee(_(e,{props:[t]})),O(e,{props:V(r,o)})}return""}))}}var Ce={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},we="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",$e="active",ke="data-styled-version",Se="6.1.15",Be="/*!sc*/\n",Ee="undefined"!=typeof window&&"HTMLElement"in window,Ne=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process.env.REACT_APP_SC_DISABLE_SPEEDY&&process.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!==process.env&&void 0!==process.env.SC_DISABLE_SPEEDY&&""!==process.env.SC_DISABLE_SPEEDY?"false"!==process.env.SC_DISABLE_SPEEDY&&process.env.SC_DISABLE_SPEEDY:"production"!==process.env.NODE_ENV),ze=/invalid hook call/i,Ie=new Set,Fe=function(e,t){if("production"!==process.env.NODE_ENV){var r=t?' with the id of "'.concat(t,'"'):"",o="The component ".concat(e).concat(r," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",n=console.error;try{var i=!0;console.error=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];ze.test(e)?(i=!1,Ie.delete(o)):n.apply(void 0,y([e],t,!1))},a(),i&&!Ie.has(o)&&(console.warn(o),Ie.add(o))}catch(e){ze.test(e.message)&&Ie.delete(o)}finally{console.error=n}}},Ue=Object.freeze([]),Re=Object.freeze({});var Oe=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),De=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Te=/(^-|-$)/g;function Ye(e){return e.replace(De,"-").replace(Te,"")}var He=/(a)(d)/gi,Me=function(e){return String.fromCharCode(e+(e>25?39:97))};function Le(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=Me(t%52)+r;return(Me(t%52)+r).replace(He,"$1-$2")}var Qe,je=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},Pe=function(e){return je(5381,e)};function Ve(e){return Le(Pe(e)>>>0)}function Ke(e){return"production"!==process.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function Xe(e){return"string"==typeof e&&("production"===process.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var Ge="function"==typeof Symbol&&Symbol.for,Je=Ge?Symbol.for("react.memo"):60115,We=Ge?Symbol.for("react.forward_ref"):60112,Ze={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},qe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},_e={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},et=((Qe={})[We]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Qe[Je]=_e,Qe);function tt(e){return("type"in(t=e)&&t.type.$$typeof)===Je?_e:"$$typeof"in e?et[e.$$typeof]:Ze;var t}var rt=Object.defineProperty,ot=Object.getOwnPropertyNames,nt=Object.getOwnPropertySymbols,it=Object.getOwnPropertyDescriptor,at=Object.getPrototypeOf,lt=Object.prototype;function st(e,t,r){if("string"!=typeof t){if(lt){var o=at(t);o&&o!==lt&&st(e,o,r)}var n=ot(t);nt&&(n=n.concat(nt(t)));for(var i=tt(e),a=tt(t),l=0;l<n.length;++l){var s=n[l];if(!(s in qe||r&&r[s]||a&&s in a||i&&s in i)){var d=it(t,s);try{rt(e,s,d)}catch(e){}}}}return e}function dt(e){return"function"==typeof e}function ct(e){return"object"==typeof e&&"styledComponentId"in e}function pt(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ut(e,t){if(0===e.length)return"";for(var r=e[0],o=1;o<e.length;o++)r+=e[o];return r}function gt(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function ht(e,t,r){if(void 0===r&&(r=!1),!r&&!gt(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=ht(e[o],t[o]);else if(gt(t))for(var o in t)e[o]=ht(e[o],t[o]);return e}function mt(e,t){Object.defineProperty(e,"toString",{value:t})}var At="production"!==process.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ft(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e[0],o=[],n=1,i=e.length;n<i;n+=1)o.push(e[n]);return o.forEach((function(e){r=r.replace(/%[a-z]/,e)})),r}function bt(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return"production"===process.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):"")):new Error(ft.apply(void 0,y([At[e]],t,!1)).trim())}var xt=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,n=o;e>=n;)if((n<<=1)<0)throw bt(16,"".concat(e));this.groupSizes=new Uint32Array(n),this.groupSizes.set(r),this.length=n;for(var i=o;i<n;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t;this.groupSizes[e]=0;for(var n=r;n<o;n++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),n=o+r,i=o;i<n;i++)t+="".concat(this.tag.getRule(i)).concat(Be);return t},e}(),vt=1<<30,yt=new Map,Ct=new Map,wt=1,$t=function(e){if(yt.has(e))return yt.get(e);for(;Ct.has(wt);)wt++;var t=wt++;if("production"!==process.env.NODE_ENV&&((0|t)<0||t>vt))throw bt(16,"".concat(t));return yt.set(e,t),Ct.set(t,e),t},kt=function(e,t){wt=t+1,yt.set(e,t),Ct.set(t,e)},St="style[".concat(we,"][").concat(ke,'="').concat(Se,'"]'),Bt=new RegExp("^".concat(we,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),Et=function(e,t,r){for(var o,n=r.split(","),i=0,a=n.length;i<a;i++)(o=n[i])&&e.registerName(t,o)},Nt=function(e,t){for(var r,o=(null!==(r=t.textContent)&&void 0!==r?r:"").split(Be),n=[],i=0,a=o.length;i<a;i++){var l=o[i].trim();if(l){var s=l.match(Bt);if(s){var d=0|parseInt(s[1],10),c=s[2];0!==d&&(kt(c,d),Et(e,c,s[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(l)}}},zt=function(e){for(var t=document.querySelectorAll(St),r=0,o=t.length;r<o;r++){var n=t[r];n&&n.getAttribute(we)!==$e&&(Nt(e,n),n.parentNode&&n.parentNode.removeChild(n))}};var It=function(e){var t=document.head,r=e||t,o=document.createElement("style"),n=function(e){var t=Array.from(e.querySelectorAll("style[".concat(we,"]")));return t[t.length-1]}(r),i=void 0!==n?n.nextSibling:null;o.setAttribute(we,$e),o.setAttribute(ke,Se);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&o.setAttribute("nonce",a),r.insertBefore(o,i),o},Ft=function(){function e(e){this.element=It(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,o=t.length;r<o;r++){var n=t[r];if(n.ownerNode===e)return n}throw bt(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ut=function(){function e(e){this.element=It(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Rt=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Ot=Ee,Dt={isServer:!Ee,useCSSOMInjection:!Ne},Tt=function(){function e(e,t,r){void 0===e&&(e=Re),void 0===t&&(t={});var o=this;this.options=x(x({},Dt),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&Ee&&Ot&&(Ot=!1,zt(this)),mt(this,(function(){return function(e){for(var t=e.getTag(),r=t.length,o="",n=function(r){var n=function(e){return Ct.get(e)}(r);if(void 0===n)return"continue";var i=e.names.get(n),a=t.getGroup(r);if(void 0===i||!i.size||0===a.length)return"continue";var l="".concat(we,".g").concat(r,'[id="').concat(n,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),o+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(Be)},i=0;i<r;i++)n(i);return o}(o)}))}return e.registerId=function(e){return $t(e)},e.prototype.rehydrate=function(){!this.server&&Ee&&zt(this)},e.prototype.reconstructWithOptions=function(t,r){return void 0===r&&(r=!0),new e(x(x({},this.options),t),this.gs,r&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,r=e.target;return e.isServer?new Rt(r):t?new Ft(r):new Ut(r)}(this.options),new xt(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if($t(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},e.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules($t(e),r)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup($t(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),Yt=/&/g,Ht=/^\s*\/\/.*$/gm;function Mt(e,t){return e.map((function(e){return"rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map((function(e){return"".concat(t," ").concat(e)}))),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Mt(e.children,t)),e}))}var Lt=new Tt,Qt=function(){var e,t,r,o=Re,n=o.options,i=void 0===n?Re:n,a=o.plugins,l=void 0===a?Ue:a,s=function(r,o,n){return n.startsWith(t)&&n.endsWith(t)&&n.replaceAll(t,"").length>0?".".concat(e):r},d=l.slice();d.push((function(e){e.type===z&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Yt,t).replace(r,s))})),i.prefix&&d.push(ye),d.push(ve);var c=function(o,n,a,l){void 0===n&&(n=""),void 0===a&&(a=""),void 0===l&&(l="&"),e=l,t=n,r=new RegExp("\\".concat(t,"\\b"),"g");var s=o.replace(Ht,""),c=ge(a||n?"".concat(a," ").concat(n," { ").concat(s," }"):s);i.namespace&&(c=Mt(c,i.namespace));var p,u=[];return xe(c,function(e){var t=j(e);return function(r,o,n,i){for(var a="",l=0;l<t;l++)a+=e[l](r,o,n,i)||"";return a}}(d.concat((p=function(e){return u.push(e)},function(e){e.root||(e=e.return)&&p(e)})))),u};return c.hash=l.length?l.reduce((function(e,t){return t.name||bt(15),je(e,t.name)}),5381).toString():"",c}(),jt=o.createContext({shouldForwardProp:void 0,styleSheet:Lt,stylis:Qt});function Pt(){return l(jt)}jt.Consumer,o.createContext(void 0);var Vt=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=Qt);var o=r.name+t.hash;e.hasNameForId(r.id,o)||e.insertRules(r.id,o,t(r.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,mt(this,(function(){throw bt(12,String(r.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Qt),this.name+e.hash},e}(),Kt=function(e){return e>="A"&&e<="Z"};function Xt(e){for(var t="",r=0;r<e.length;r++){var o=e[r];if(1===r&&"-"===o&&"-"===e[0])return e;Kt(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Gt=function(e){return null==e||!1===e||""===e},Jt=function(e){var t,r,o=[];for(var n in e){var i=e[n];e.hasOwnProperty(n)&&!Gt(i)&&(Array.isArray(i)&&i.isCss||dt(i)?o.push("".concat(Xt(n),":"),i,";"):gt(i)?o.push.apply(o,y(y(["".concat(n," {")],Jt(i),!1),["}"],!1)):o.push("".concat(Xt(n),": ").concat((t=n,null==(r=i)||"boolean"==typeof r||""===r?"":"number"!=typeof r||0===r||t in Ce||t.startsWith("--")?String(r).trim():"".concat(r,"px")),";")))}return o};function Wt(e,t,r,o){if(Gt(e))return[];if(ct(e))return[".".concat(e.styledComponentId)];if(dt(e)){if(!dt(i=e)||i.prototype&&i.prototype.isReactComponent||!t)return[e];var n=e(t);return"production"===process.env.NODE_ENV||"object"!=typeof n||Array.isArray(n)||n instanceof Vt||gt(n)||null===n||console.error("".concat(Ke(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Wt(n,t,r,o)}var i;return e instanceof Vt?r?(e.inject(r,o),[e.getName(o)]):[e]:gt(e)?Jt(e):Array.isArray(e)?Array.prototype.concat.apply(Ue,e.map((function(e){return Wt(e,t,r,o)}))):[e.toString()]}var Zt=Pe(Se),qt=function(){function e(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic="production"===process.env.NODE_ENV&&(void 0===r||r.isStatic)&&function(e){for(var t=0;t<e.length;t+=1){var r=e[t];if(dt(r)&&!ct(r))return!1}return!0}(e),this.componentId=t,this.baseHash=je(Zt,t),this.baseStyle=r,Tt.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=pt(o,this.staticRulesId);else{var n=ut(Wt(this.rules,e,t,r)),i=Le(je(this.baseHash,n)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=r(n,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}o=pt(o,i),this.staticRulesId=i}else{for(var l=je(this.baseHash,r.hash),s="",d=0;d<this.rules.length;d++){var c=this.rules[d];if("string"==typeof c)s+=c,"production"!==process.env.NODE_ENV&&(l=je(l,c));else if(c){var p=ut(Wt(c,e,t,r));l=je(l,p+d),s+=p}}if(s){var u=Le(l>>>0);t.hasNameForId(this.componentId,u)||t.insertRules(this.componentId,u,r(s,".".concat(u),void 0,this.componentId)),o=pt(o,u)}}return o},e}(),_t=o.createContext(void 0);_t.Consumer;var er={},tr=new Set;function rr(e,t,r){var a=ct(e),l=e,s=!Xe(e),d=t.attrs,c=void 0===d?Ue:d,p=t.componentId,u=void 0===p?function(e,t){var r="string"!=typeof e?"sc":Ye(e);er[r]=(er[r]||0)+1;var o="".concat(r,"-").concat(Ve(Se+r+er[r]));return t?"".concat(t,"-").concat(o):o}(t.displayName,t.parentComponentId):p,g=t.displayName,h=void 0===g?function(e){return Xe(e)?"styled.".concat(e):"Styled(".concat(Ke(e),")")}(e):g,m=t.displayName&&t.componentId?"".concat(Ye(t.displayName),"-").concat(t.componentId):t.componentId||u,A=a&&l.attrs?l.attrs.concat(c).filter(Boolean):c,f=t.shouldForwardProp;if(a&&l.shouldForwardProp){var b=l.shouldForwardProp;if(t.shouldForwardProp){var v=t.shouldForwardProp;f=function(e,t){return b(e,t)&&v(e,t)}}else f=b}var y=new qt(r,m,a?l.componentStyle:void 0);function C(e,t){return function(e,t,r){var a=e.attrs,l=e.componentStyle,s=e.defaultProps,d=e.foldedComponentIds,c=e.styledComponentId,p=e.target,u=o.useContext(_t),g=Pt(),h=e.shouldForwardProp||g.shouldForwardProp;"production"!==process.env.NODE_ENV&&n(c);var m=function(e,t,r){return void 0===r&&(r=Re),e.theme!==r.theme&&e.theme||t||r.theme}(t,u,s)||Re,A=function(e,t,r){for(var o,n=x(x({},t),{className:void 0,theme:r}),i=0;i<e.length;i+=1){var a=dt(o=e[i])?o(n):o;for(var l in a)n[l]="className"===l?pt(n[l],a[l]):"style"===l?x(x({},n[l]),a[l]):a[l]}return t.className&&(n.className=pt(n.className,t.className)),n}(a,t,m),f=A.as||p,b={};for(var v in A)void 0===A[v]||"$"===v[0]||"as"===v||"theme"===v&&A.theme===m||("forwardedAs"===v?b.as=A.forwardedAs:h&&!h(v,f)||(b[v]=A[v],h||"development"!==process.env.NODE_ENV||$(v)||tr.has(v)||!Oe.has(f)||(tr.add(v),console.warn('styled-components: it looks like an unknown prop "'.concat(v,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var y=function(e,t){var r=Pt(),o=e.generateAndInjectStyles(t,r.styleSheet,r.stylis);return"production"!==process.env.NODE_ENV&&n(o),o}(l,A);"production"!==process.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(y);var C=pt(d,c);return y&&(C+=" "+y),A.className&&(C+=" "+A.className),b[Xe(f)&&!Oe.has(f)?"class":"className"]=C,r&&(b.ref=r),i(f,b)}(w,e,t)}C.displayName=h;var w=o.forwardRef(C);return w.attrs=A,w.componentStyle=y,w.displayName=h,w.shouldForwardProp=f,w.foldedComponentIds=a?pt(l.foldedComponentIds,l.styledComponentId):"",w.styledComponentId=m,w.target=a?l.target:e,Object.defineProperty(w,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=a?function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var o=0,n=t;o<n.length;o++)ht(e,n[o],!0);return e}({},l.defaultProps,e):e}}),"production"!==process.env.NODE_ENV&&(Fe(h,m),w.warnTooManyClasses=function(e,t){var r={},o=!1;return function(n){if(!o&&(r[n]=!0,Object.keys(r).length>=200)){var i=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(i,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=!0,r={}}}}(h,m)),mt(w,(function(){return".".concat(w.styledComponentId)})),s&&st(w,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),w}function or(e,t){for(var r=[e[0]],o=0,n=t.length;o<n;o+=1)r.push(t[o],e[o+1]);return r}var nr=function(e){return Object.assign(e,{isCss:!0})};function ir(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(dt(e)||gt(e))return nr(Wt(or(Ue,y([e],t,!0))));var o=e;return 0===t.length&&1===o.length&&"string"==typeof o[0]?Wt(o):nr(Wt(or(o,t)))}function ar(e,t,r){if(void 0===r&&(r=Re),!t)throw bt(1,t);var o=function(o){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return e(t,r,ir.apply(void 0,y([o],n,!1)))};return o.attrs=function(o){return ar(e,t,x(x({},r),{attrs:Array.prototype.concat(r.attrs,o).filter(Boolean)}))},o.withConfig=function(o){return ar(e,t,x(x({},r),o))},o}var lr=function(e){return ar(rr,e)},sr=lr;function dr(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var o=ut(ir.apply(void 0,y([e],t,!1))),n=Ve(o);return new Vt(n,o)}Oe.forEach((function(e){sr[e]=lr(e)})),"production"!==process.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var cr="__sc-".concat(we,"__");"production"!==process.env.NODE_ENV&&"test"!==process.env.NODE_ENV&&"undefined"!=typeof window&&(window[cr]||(window[cr]=0),1===window[cr]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[cr]+=1);var pr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAClSURBVHgB7Y89DsIwDIUdomRIMnTIz8oR2Fi5CVfoDYCNjYzcpitnyYJYsoKN2gURSmFsPimSZT8/vwBUZkiD/KNbvDaEEHvnXAcjSCk71MVRQ855ZIwtUXwqmXnvdxSStPAN1toNLt1DCO07M5rhwRVMAU3bfnE79KguHRrgpUHO+aK1xt+zaIy5KaXWWJ9xdEgpHeFXKCkmu9L7lGwSTQ9UKk8eYgIfE1UYUugAAAAASUVORK5CYII=";const ur={small:{h:40,p:8,f:16},medium:{h:48,p:12,f:16},large:{h:56,p:16,f:16}},gr=n=>{var i,{size:a="medium",title:l,expanded:s,onChange:d,defaultExpanded:c,iconAlignment:p="trailing",flush:u=!1,children:g}=n,h=v(n,["size","title","expanded","onChange","defaultExpanded","iconAlignment","flush","children"]);const A=b(),f=o.useRef(null),[x,y]=o.useState(c),[C,w]=o.useState(0);let $=`solid 1px ${A.palette.neutral[300]}`,k="solid 2px transparent",S="pointer",B="#161616";const E=void 0!==s?s:x;h.disabled&&(S="default",$=`solid 1px ${A.palette.neutral[300]}`,k="none",B=A.palette.neutral[400]);return o.useEffect((()=>{var e;(null===(e=f.current)||void 0===e?void 0:e.clientHeight)&&w(f.current.clientHeight)}),[null===(i=f.current)||void 0===i?void 0:i.clientHeight]),t("div",{className:m("dgaui dgaui_accordion",h.className),tabIndex:1,children:[t(hr,Object.assign({$customStyle:{direction:A.direction,minHeight:ur[a].h,padding:ur[a].p,fontSize:ur[a].f,fontColor:B,colors:A.palette.neutral,border:k,borderTop:$,cursor:S},flush:u},h,{onClick:e=>{d&&d(e,!E),y(!E)},className:"dgaui dgaui_accordion_title",children:["leading"===p&&t("div",{style:{display:"flex",alignItems:"flex-start",justifyItems:"center",gap:16},children:[e("span",{children:e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})}),e("span",{children:l})]}),"trailing"===p&&t(r,{children:[e("span",{children:l}),e("img",{alt:"arrowdown",src:pr,style:{transition:"all 0.2s",transform:E?"rotateZ(180deg)":"none"}})]})]})),e("div",{className:"dgaui_accordionContent",style:{direction:A.direction,height:E?C:0,overflow:"hidden",transition:"all 0.2s",color:B},children:e("div",{ref:f,style:{padding:16},children:g})})]})},hr=sr.button`
direction: ${e=>e.$customStyle.direction};
outline: none;
min-height: ${e=>e.$customStyle.minHeight}px;
padding: ${e=>e.flush?"0":`${e.$customStyle.padding}px`};
font-size: ${e=>e.$customStyle.fontSize}px;
color: ${e=>e.$customStyle.fontColor};
background-color: #fff;
border: ${e=>e.$customStyle.border};
${e=>e.$customStyle.borderTop?"border-top:"+e.$customStyle.borderTop:""};
cursor: ${e=>e.$customStyle.cursor};
display: flex;
justify-content: space-between;
align-items: center;
width: 100%;
transition: height 0.2s;
&:hover {
background-color: ${e=>e.$customStyle.colors[100]};
}
&:active {
background-color: ${e=>e.$customStyle.colors[200]};
}
&:focus {
border: solid 2px #161616;
}
&:disabled:hover {
background-color: #fff;
}
&:disabled:active {
background-color: #fff;
}
`;var mr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAACySURBVHgBfVGxEQIhEIQnegiMgPRLsQRLsAPtQMwMLUE78UPL+MyBmBRcZiTw4Z6ZG3budmFZuDHmkHPehRCebGNprU+c82VIKU0ADwgvFLnMwLmXg2vDoXJPVHq/mVsPGlGPLCqIMb6UUhzQYWeofcGoq/fesQ2/9abWBtbQ0WQC/1uqnqsN1Fztwe7MOlaaB5LpkdH1RPjBI0Vei6y1ZzGO4ySEeCO6GyUokUspF8DPF27nTJwLb4bWAAAAAElFTkSuQmCC",Ar="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAYAAABG1c6oAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAABtSURBVHgB7ZLBCcAwCEVNV0jUNTpCN2g3yipu0hE6UmuggVB6UwiBPPAg6Dv4BZh0BxHXtl/AABHlEMLFzDtYKTKtW0vASj9ZSmlzk8UYj3c4m2XNkvxJTTf7Sl0CqFJ92tMzTXGTVUpQMBmfB72yKHZx70rDAAAAAElFTkSuQmCC",fr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAF/SURBVHgBjVOxTgJBEJ3ZOwwl5RmbTdDEEv9ASqMWfAH4BfAJ/oHwBcIXoBFDiX+gpYkU2xgpKS+6d+PMckfW49Sbanf2zbyZebMIJTbVuhGGcUsRaLmnCOZyuXoqw2IxcE/FfUIcAFCjgDVIMP5M66OOMeudBHMd6SSABR81O8fMOglDMPJmLfsIenzsSqKgBu2z15XZJhDmWhA/87VBSJ3fyn08OmhRmjIJrb+S+olUouRBynbMSrX9YAmYH0c6v5+/vb8IgWB5RgPxuQSE0JOyBeAzUprcJBZufV9GMEHCvlSuHg6jU8koPUNFY8KxDNkplUuVD6yKhXaDVcit/IlEvIf/ksmSsEROKr4b//Fi+TEsC7KhkxVSAqOsrfPgcM2tdIvAWTNazJr7d0V/hnXbqURLlmbECXvZQLcWJHDF0l77PrcLjKVs6DuLJLtQlDM3IWD5pv4iVV5lKVuYoWyVc8t+4QA3Peqf/Oha5ZkNSz9TWbn+d5Zh+4G5fQMA8cBCDpoKdwAAAABJRU5ErkJggg==";const br=({indeterminate:t=!1})=>e("svg",t?{width:"12",height:"2",viewBox:"0 0 12 2",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("rect",{width:"12",height:"2",rx:"1",className:"checkmark",fill:"white"})}:{width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:e("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.5945 0.535432C12.1352 1.07616 12.1352 1.95286 11.5945 2.4936L5.2483 8.83982C4.98864 9.09949 4.63645 9.24537 4.26923 9.24537C3.90201 9.24537 3.54983 9.09949 3.29016 8.83982L0.405544 5.95517C-0.135181 5.41444 -0.135181 4.53774 0.405545 3.99701C0.946271 3.45628 1.82296 3.45628 2.36369 3.99701L4.26923 5.90257L9.63631 0.535432C10.177 -0.00530017 11.0537 -0.00530013 11.5945 0.535432Z",className:"checkmark",fill:"white"})}),xr={xSmall:{w:14,h:14,svgW:9,svgH:9,svgLeft:2.5,svgTop:3},small:{w:18,h:18,svgW:12,svgH:12,svgLeft:3,svgTop:4},medium:{w:22,h:22,svgW:14,svgH:14,svgLeft:4,svgTop:5}},vr=r=>{var{label:o,description:n,error:i,onChange:l,value:d,size:c,style:p="primary",indeterminate:u=!1}=r,g=v(r,["label","description","error","onChange","value","size","style","indeterminate"]);const h=b(),f={neutral:{default:(x=h).palette.neutral[600],hovered:x.palette.neutral[800],active:x.palette.neutral[900],disabled:x.palette.neutral[200]},primary:{default:x.palette.primary[600],hovered:x.palette.primary[800],active:x.palette.primary[900],disabled:x.palette.neutral[200]}};var x;const y=null!=c?c:"medium";let C=h.textColor,w=f[p].default,$=f[p].hovered,k=f[p].active;const S=A(),B=a(null);return s((()=>{B.current&&(B.current.indeterminate=u)}),[u]),t(yr,{$customStyle:{theme:h,fontColor:C,backgroundColor:w,backgroundColorHovered:$,backgroundColorActive:k,width:xr[y].w,height:xr[y].h,svgW:xr[y].svgW,svgH:xr[y].svgW,svgLeft:xr[y].svgLeft,svgTop:xr[y].svgTop},className:m("dgaui dgaui_checkboxContainer",g.className),children:[t("div",{className:"dgaui_checkboxHead",children:[t("label",{className:"dgaui_checkbox",children:[e("input",Object.assign({ref:B,id:S,type:"checkbox"},g,{checked:d,onChange:e=>{l&&l(e,e.target.checked)}})),e(br,{indeterminate:u})]}),o&&e("label",{htmlFor:g.id||S,className:"dgaui_checkboxLabel",children:o})]}),(n||i)&&t("div",{className:"dgaui_checkboxDescription",children:[n&&e("div",{className:"dgaui_checkboxDescriptionText",children:n}),i&&e("div",{className:"dgaui_checkboxDescriptionError",children:i})]})]})},yr=sr.div`
direction: ${e=>e.$customStyle.theme.direction};
color: ${e=>e.$customStyle.fontColor};
.dgaui_checkbox svg {
position: absolute;
width: ${e=>e.$customStyle.svgW}px;
height: ${e=>e.$customStyle.svgH}px;
left: ${e=>e.$customStyle.svgLeft}px;
top: ${e=>e.$customStyle.svgTop}px;
.checkmark {
fill: transparent;
}
}
.dgaui_checkboxLabel {
cursor: pointer;