You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3 lines
693 KiB

/*! For license information please see main.205e7457.js.LICENSE.txt */
!function(){var e={9791:function(e,t,n){"use strict";var r=n(9797),i=/^((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)-.*))$/,a=(0,r.Z)((function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));t.Z=a},9797:function(e,t){"use strict";t.Z=function(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}},9309:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),a=n(184),o=(0,i.default)((0,a.jsx)("path",{d:"M19 5v2h-4V5h4M9 5v6H5V5h4m10 8v6h-4v-6h4M9 17v2H5v-2h4M21 3h-8v6h8V3zM11 3H3v10h8V3zm10 8h-8v10h8V11zm-10 4H3v6h8v-6z"}),"DashboardOutlined");t.Z=o},6488:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),a=n(184),o=(0,i.default)((0,a.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z"}),"Logout");t.Z=o},6120:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),a=n(184),o=(0,i.default)((0,a.jsx)("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined");t.Z=o},8840:function(e,t,n){"use strict";var r=n(4836);t.Z=void 0;var i=r(n(5649)),a=n(184),o=(0,i.default)((0,a.jsx)("path",{d:"M12.5 10c0-1.65-1.35-3-3-3s-3 1.35-3 3 1.35 3 3 3 3-1.35 3-3zm-3 1c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm6.5 2c1.11 0 2-.89 2-2 0-1.11-.89-2-2-2-1.11 0-2.01.89-2 2 0 1.11.89 2 2 2zM11.99 2.01c-5.52 0-10 4.48-10 10s4.48 10 10 10 10-4.48 10-10-4.48-10-10-10zM5.84 17.12c.68-.54 2.27-1.11 3.66-1.11.07 0 .15.01.23.01.24-.64.67-1.29 1.3-1.86-.56-.1-1.09-.16-1.53-.16-1.3 0-3.39.45-4.73 1.43-.5-1.04-.78-2.2-.78-3.43 0-4.41 3.59-8 8-8s8 3.59 8 8c0 1.2-.27 2.34-.75 3.37-1-.59-2.36-.87-3.24-.87-1.52 0-4.5.81-4.5 2.7v2.78c-2.27-.13-4.29-1.21-5.66-2.86z"}),"SupervisedUserCircleOutlined");t.Z=o},5649:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.createSvgIcon}});var r=n(4619)},4619:function(e,t,n){"use strict";n.r(t),n.d(t,{capitalize:function(){return s},createChainedFunction:function(){return l},createSvgIcon:function(){return ar},debounce:function(){return or},deprecatedPropType:function(){return sr},isMuiElement:function(){return lr},ownerDocument:function(){return cr},ownerWindow:function(){return fr},requirePropFactory:function(){return dr},setRef:function(){return pr},unstable_ClassNameGenerator:function(){return Ar},unstable_useEnhancedEffect:function(){return mr},unstable_useId:function(){return br},unsupportedProp:function(){return xr},useControlled:function(){return kr},useEventCallback:function(){return wr},useForkRef:function(){return _r},useIsFocusVisible:function(){return Rr}});var r=function(e){return e},i=function(){var e=r;return{configure:function(t){e=t},generate:function(t){return e(t)},reset:function(){e=r}}}();function a(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}function o(e){if("string"!==typeof e)throw new Error(a(7));return e.charAt(0).toUpperCase()+e.slice(1)}var s=o;var l=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return null==t?e:function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];e.apply(this,r),t.apply(this,r)}}),(function(){}))},u=n(7462),c=n(2791),f=n.t(c,2),d=n(3366),h=n(8182);function p(e,t){var n=(0,u.Z)({},t);return Object.keys(e).forEach((function(r){if(r.toString().match(/^(components|slots)$/))n[r]=(0,u.Z)({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){var i=e[r]||{},a=t[r];n[r]={},a&&Object.keys(a)?i&&Object.keys(i)?(n[r]=(0,u.Z)({},a),Object.keys(i).forEach((function(e){n[r][e]=p(i[e],a[e])}))):n[r]=a:n[r]=i}else void 0===n[r]&&(n[r]=e[r])})),n}function v(e){var t=e.theme,n=e.name,r=e.props;return t&&t.components&&t.components[n]&&t.components[n].defaultProps?p(t.components[n].defaultProps,r):r}function m(e){return null!==e&&"object"===typeof e&&e.constructor===Object}function g(e){if(!m(e))return e;var t={};return Object.keys(e).forEach((function(n){t[n]=g(e[n])})),t}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?(0,u.Z)({},e):e;return m(e)&&m(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(m(t[i])&&i in e&&m(e[i])?r[i]=y(e[i],t[i],n):n.clone?r[i]=m(t[i])?g(t[i]):t[i]:r[i]=t[i])})),r}var b=n(4942),x=["values","unit","step"],k=function(e){var t=Object.keys(e).map((function(t){return{key:t,val:e[t]}}))||[];return t.sort((function(e,t){return e.val-t.val})),t.reduce((function(e,t){return(0,u.Z)({},e,(0,b.Z)({},t.key,t.val))}),{})};var w={borderRadius:4},S=n(885),_={xs:0,sm:600,md:900,lg:1200,xl:1536},C={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(_[e],"px)")}};function E(e,t,n){var r=e.theme||{};if(Array.isArray(t)){var i=r.breakpoints||C;return t.reduce((function(e,r,a){return e[i.up(i.keys[a])]=n(t[a]),e}),{})}if("object"===typeof t){var a=r.breakpoints||C;return Object.keys(t).reduce((function(e,r){if(-1!==Object.keys(a.values||_).indexOf(r)){e[a.up(r)]=n(t[r],r)}else{var i=r;e[i]=t[i]}return e}),{})}return n(t)}function O(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(null==(e=t.keys)?void 0:e.reduce((function(e,n){return e[t.up(n)]={},e}),{}))||{}}function P(e,t){return e.reduce((function(e,t){var n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}function M(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||"string"!==typeof t)return null;if(e&&e.vars&&n){var r="vars.".concat(t).split(".").reduce((function(e,t){return e&&e[t]?e[t]:null}),e);if(null!=r)return r}return t.split(".").reduce((function(e,t){return e&&null!=e[t]?e[t]:null}),e)}function T(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n;return r="function"===typeof e?e(n):Array.isArray(e)?e[n]||i:M(e,n)||i,t&&(r=t(r,i,e)),r}var j=function(e){var t=e.prop,n=e.cssProperty,r=void 0===n?e.prop:n,i=e.themeKey,a=e.transform,s=function(e){if(null==e[t])return null;var n=e[t],s=M(e.theme,i)||{};return E(e,n,(function(e){var n=T(s,a,e);return e===n&&"string"===typeof e&&(n=T(s,a,"".concat(t).concat("default"===e?"":o(e)),e)),!1===r?n:(0,b.Z)({},r,n)}))};return s.propTypes={},s.filterProps=[t],s};var R=function(e,t){return t?y(e,t,{clone:!1}):e};var A={m:"margin",p:"padding"},N={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},D={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},L=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!D[e])return[e];e=D[e]}var t=e.split(""),n=(0,S.Z)(t,2),r=n[0],i=n[1],a=A[r],o=N[i]||"";return Array.isArray(o)?o.map((function(e){return a+e})):[a+o]})),I=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],z=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],F=[].concat(I,z);function B(e,t,n,r){var i,a=null!=(i=M(e,t,!1))?i:n;return"number"===typeof a?function(e){return"string"===typeof e?e:a*e}:Array.isArray(a)?function(e){return"string"===typeof e?e:a[e]}:"function"===typeof a?a:function(){}}function W(e){return B(e,"spacing",8)}function V(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}function Z(e,t,n,r){if(-1===t.indexOf(n))return null;var i=function(e,t){return function(n){return e.reduce((function(e,r){return e[r]=V(t,n),e}),{})}}(L(n),r);return E(e,e[n],i)}function H(e,t){var n=W(e.theme);return Object.keys(e).map((function(r){return Z(e,t,r,n)})).reduce(R,{})}function $(e){return H(e,I)}function U(e){return H(e,z)}function K(e){return H(e,F)}$.propTypes={},$.filterProps=I,U.propTypes={},U.filterProps=z,K.propTypes={},K.filterProps=F;var q=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return t.filterProps.forEach((function(n){e[n]=t})),e}),{}),i=function(e){return Object.keys(e).reduce((function(t,n){return r[n]?R(t,r[n](e)):t}),{})};return i.propTypes={},i.filterProps=t.reduce((function(e,t){return e.concat(t.filterProps)}),[]),i};function Y(e){return"number"!==typeof e?e:"".concat(e,"px solid")}var G=j({prop:"border",themeKey:"borders",transform:Y}),X=j({prop:"borderTop",themeKey:"borders",transform:Y}),Q=j({prop:"borderRight",themeKey:"borders",transform:Y}),J=j({prop:"borderBottom",themeKey:"borders",transform:Y}),ee=j({prop:"borderLeft",themeKey:"borders",transform:Y}),te=j({prop:"borderColor",themeKey:"palette"}),ne=j({prop:"borderTopColor",themeKey:"palette"}),re=j({prop:"borderRightColor",themeKey:"palette"}),ie=j({prop:"borderBottomColor",themeKey:"palette"}),ae=j({prop:"borderLeftColor",themeKey:"palette"}),oe=function(e){if(void 0!==e.borderRadius&&null!==e.borderRadius){var t=B(e.theme,"shape.borderRadius",4);return E(e,e.borderRadius,(function(e){return{borderRadius:V(t,e)}}))}return null};oe.propTypes={},oe.filterProps=["borderRadius"];q(G,X,Q,J,ee,te,ne,re,ie,ae,oe);var se=function(e){if(void 0!==e.gap&&null!==e.gap){var t=B(e.theme,"spacing",8);return E(e,e.gap,(function(e){return{gap:V(t,e)}}))}return null};se.propTypes={},se.filterProps=["gap"];var le=function(e){if(void 0!==e.columnGap&&null!==e.columnGap){var t=B(e.theme,"spacing",8);return E(e,e.columnGap,(function(e){return{columnGap:V(t,e)}}))}return null};le.propTypes={},le.filterProps=["columnGap"];var ue=function(e){if(void 0!==e.rowGap&&null!==e.rowGap){var t=B(e.theme,"spacing",8);return E(e,e.rowGap,(function(e){return{rowGap:V(t,e)}}))}return null};ue.propTypes={},ue.filterProps=["rowGap"];q(se,le,ue,j({prop:"gridColumn"}),j({prop:"gridRow"}),j({prop:"gridAutoFlow"}),j({prop:"gridAutoColumns"}),j({prop:"gridAutoRows"}),j({prop:"gridTemplateColumns"}),j({prop:"gridTemplateRows"}),j({prop:"gridTemplateAreas"}),j({prop:"gridArea"}));function ce(e,t){return"grey"===t?t:e}q(j({prop:"color",themeKey:"palette",transform:ce}),j({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ce}),j({prop:"backgroundColor",themeKey:"palette",transform:ce}));function fe(e){return e<=1&&0!==e?"".concat(100*e,"%"):e}var de=j({prop:"width",transform:fe}),he=function(e){if(void 0!==e.maxWidth&&null!==e.maxWidth){return E(e,e.maxWidth,(function(t){var n,r,i;return{maxWidth:(null==(n=e.theme)||null==(r=n.breakpoints)||null==(i=r.values)?void 0:i[t])||_[t]||fe(t)}}))}return null};he.filterProps=["maxWidth"];var pe=j({prop:"minWidth",transform:fe}),ve=j({prop:"height",transform:fe}),me=j({prop:"maxHeight",transform:fe}),ge=j({prop:"minHeight",transform:fe}),ye=(j({prop:"size",cssProperty:"width",transform:fe}),j({prop:"size",cssProperty:"height",transform:fe}),q(de,he,pe,ve,me,ge,j({prop:"boxSizing"})),{border:{themeKey:"borders",transform:Y},borderTop:{themeKey:"borders",transform:Y},borderRight:{themeKey:"borders",transform:Y},borderBottom:{themeKey:"borders",transform:Y},borderLeft:{themeKey:"borders",transform:Y},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:oe},color:{themeKey:"palette",transform:ce},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ce},backgroundColor:{themeKey:"palette",transform:ce},p:{style:U},pt:{style:U},pr:{style:U},pb:{style:U},pl:{style:U},px:{style:U},py:{style:U},padding:{style:U},paddingTop:{style:U},paddingRight:{style:U},paddingBottom:{style:U},paddingLeft:{style:U},paddingX:{style:U},paddingY:{style:U},paddingInline:{style:U},paddingInlineStart:{style:U},paddingInlineEnd:{style:U},paddingBlock:{style:U},paddingBlockStart:{style:U},paddingBlockEnd:{style:U},m:{style:$},mt:{style:$},mr:{style:$},mb:{style:$},ml:{style:$},mx:{style:$},my:{style:$},margin:{style:$},marginTop:{style:$},marginRight:{style:$},marginBottom:{style:$},marginLeft:{style:$},marginX:{style:$},marginY:{style:$},marginInline:{style:$},marginInlineStart:{style:$},marginInlineEnd:{style:$},marginBlock:{style:$},marginBlockStart:{style:$},marginBlockEnd:{style:$},displayPrint:{cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:se},rowGap:{style:ue},columnGap:{style:le},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:fe},maxWidth:{style:he},minWidth:{transform:fe},height:{transform:fe},maxHeight:{transform:fe},minHeight:{transform:fe},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}});var be=function(){function e(e,t,n,r){var i,a=(i={},(0,b.Z)(i,e,t),(0,b.Z)(i,"theme",n),i),s=r[e];if(!s)return(0,b.Z)({},e,t);var l=s.cssProperty,u=void 0===l?e:l,c=s.themeKey,f=s.transform,d=s.style;if(null==t)return null;if("typography"===c&&"inherit"===t)return(0,b.Z)({},e,t);var h=M(n,c)||{};if(d)return d(a);return E(a,t,(function(t){var n=T(h,f,t);return t===n&&"string"===typeof t&&(n=T(h,f,"".concat(e).concat("default"===t?"":o(t)),t)),!1===u?n:(0,b.Z)({},u,n)}))}return function t(n){var r,i=n||{},a=i.sx,o=i.theme,s=void 0===o?{}:o;if(!a)return null;var l=null!=(r=s.unstable_sxConfig)?r:ye;function u(n){var r=n;if("function"===typeof n)r=n(s);else if("object"!==typeof n)return n;if(!r)return null;var i=O(s.breakpoints),a=Object.keys(i),o=i;return Object.keys(r).forEach((function(n){var i,a,u=(i=r[n],a=s,"function"===typeof i?i(a):i);if(null!==u&&void 0!==u)if("object"===typeof u)if(l[n])o=R(o,e(n,u,s,l));else{var c=E({theme:s},u,(function(e){return(0,b.Z)({},n,e)}));!function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.reduce((function(e,t){return e.concat(Object.keys(t))}),[]),i=new Set(r);return t.every((function(e){return i.size===Object.keys(e).length}))}(c,u)?o=R(o,c):o[n]=t({sx:u,theme:s})}else o=R(o,e(n,u,s,l))})),P(a,o)}return Array.isArray(a)?a.map(u):u(a)}}();be.filterProps=["sx"];var xe=be,ke=["breakpoints","palette","spacing","shape"];var we=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,a=e.spacing,o=e.shape,s=void 0===o?{}:o,l=(0,d.Z)(e,ke),c=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:900,lg:1200,xl:1536}:t,r=e.unit,i=void 0===r?"px":r,a=e.step,o=void 0===a?5:a,s=(0,d.Z)(e,x),l=k(n),c=Object.keys(l);function f(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function h(e){var t="number"===typeof n[e]?n[e]:e;return"@media (max-width:".concat(t-o/100).concat(i,")")}function p(e,t){var r=c.indexOf(t);return"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[c[r]]?n[c[r]]:t)-o/100).concat(i,")")}return(0,u.Z)({keys:c,values:l,up:f,down:h,between:p,only:function(e){return c.indexOf(e)+1<c.length?p(e,c[c.indexOf(e)+1]):f(e)},not:function(e){var t=c.indexOf(e);return 0===t?f(c[1]):t===c.length-1?h(c[t]):p(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:i},s)}(n),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=W({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return(0===n.length?[1]:n).map((function(e){var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return n.mui=!0,n}(a),h=y({breakpoints:c,direction:"ltr",components:{},palette:(0,u.Z)({mode:"light"},i),spacing:f,shape:(0,u.Z)({},w,s)},l),p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];return(h=v.reduce((function(e,t){return y(e,t)}),h)).unstable_sxConfig=(0,u.Z)({},ye,null==l?void 0:l.unstable_sxConfig),h.unstable_sx=function(e){return xe({sx:e,theme:this})},h};var Se=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_e=Math.abs,Ce=String.fromCharCode,Ee=Object.assign;function Oe(e){return e.trim()}function Pe(e,t,n){return e.replace(t,n)}function Me(e,t){return e.indexOf(t)}function Te(e,t){return 0|e.charCodeAt(t)}function je(e,t,n){return e.slice(t,n)}function Re(e){return e.length}function Ae(e){return e.length}function Ne(e,t){return t.push(e),e}var De=1,Le=1,Ie=0,ze=0,Fe=0,Be="";function We(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:De,column:Le,length:o,return:""}}function Ve(e,t){return Ee(We("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ze(){return Fe=ze>0?Te(Be,--ze):0,Le--,10===Fe&&(Le=1,De--),Fe}function He(){return Fe=ze<Ie?Te(Be,ze++):0,Le++,10===Fe&&(Le=1,De++),Fe}function $e(){return Te(Be,ze)}function Ue(){return ze}function Ke(e,t){return je(Be,e,t)}function qe(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 Ye(e){return De=Le=1,Ie=Re(Be=e),ze=0,[]}function Ge(e){return Be="",e}function Xe(e){return Oe(Ke(ze-1,et(91===e?e+2:40===e?e+1:e)))}function Qe(e){for(;(Fe=$e())&&Fe<33;)He();return qe(e)>2||qe(Fe)>3?"":" "}function Je(e,t){for(;--t&&He()&&!(Fe<48||Fe>102||Fe>57&&Fe<65||Fe>70&&Fe<97););return Ke(e,Ue()+(t<6&&32==$e()&&32==He()))}function et(e){for(;He();)switch(Fe){case e:return ze;case 34:case 39:34!==e&&39!==e&&et(Fe);break;case 40:41===e&&et(e);break;case 92:He()}return ze}function tt(e,t){for(;He()&&e+Fe!==57&&(e+Fe!==84||47!==$e()););return"/*"+Ke(t,ze-1)+"*"+Ce(47===e?e:He())}function nt(e){for(;!qe($e());)He();return Ke(e,ze)}var rt="-ms-",it="-moz-",at="-webkit-",ot="comm",st="rule",lt="decl",ut="@keyframes";function ct(e,t){for(var n="",r=Ae(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ft(e,t,n,r){switch(e.type){case"@import":case lt:return e.return=e.return||e.value;case ot:return"";case ut:return e.return=e.value+"{"+ct(e.children,r)+"}";case st:e.value=e.props.join(",")}return Re(n=ct(e.children,r))?e.return=e.value+"{"+n+"}":""}function dt(e){return Ge(ht("",null,null,null,[""],e=Ye(e),0,[0],e))}function ht(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,m=1,g=1,y=0,b="",x=i,k=a,w=r,S=b;m;)switch(p=y,y=He()){case 40:if(108!=p&&58==Te(S,f-1)){-1!=Me(S+=Pe(Xe(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Xe(y);break;case 9:case 10:case 13:case 32:S+=Qe(p);break;case 92:S+=Je(Ue()-1,7);continue;case 47:switch($e()){case 42:case 47:Ne(vt(tt(He(),Ue()),t,n),l);break;default:S+="/"}break;case 123*v:s[u++]=Re(S)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:h>0&&Re(S)-f&&Ne(h>32?mt(S+";",r,n,f-1):mt(Pe(S," ","")+";",r,n,f-2),l);break;case 59:S+=";";default:if(Ne(w=pt(S,t,n,u,c,i,s,b,x=[],k=[],f),a),123===y)if(0===c)ht(S,t,w,w,x,a,f,s,k);else switch(99===d&&110===Te(S,3)?100:d){case 100:case 109:case 115:ht(e,w,w,r&&Ne(pt(e,w,w,0,0,i,s,b,i,x=[],f),k),i,k,f,s,r?x:k);break;default:ht(S,w,w,w,[""],k,0,s,k)}}u=c=h=0,v=g=1,b=S="",f=o;break;case 58:f=1+Re(S),h=p;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==Ze())continue;switch(S+=Ce(y),y*v){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(Re(S)-1)*g,g=1;break;case 64:45===$e()&&(S+=Xe(He())),d=$e(),c=f=Re(b=S+=nt(Ue())),y++;break;case 45:45===p&&2==Re(S)&&(v=0)}}return a}function pt(e,t,n,r,i,a,o,s,l,u,c){for(var f=i-1,d=0===i?a:[""],h=Ae(d),p=0,v=0,m=0;p<r;++p)for(var g=0,y=je(e,f+1,f=_e(v=o[p])),b=e;g<h;++g)(b=Oe(v>0?d[g]+" "+y:Pe(y,/&\f/g,d[g])))&&(l[m++]=b);return We(e,t,n,0===i?st:s,l,u,c)}function vt(e,t,n){return We(e,t,n,ot,Ce(Fe),je(e,2,-2),0)}function mt(e,t,n,r){return We(e,t,n,lt,je(e,0,r),je(e,r+1,-1),r)}var gt=function(e,t,n){for(var r=0,i=0;r=i,i=$e(),38===r&&12===i&&(t[n]=1),!qe(i);)He();return Ke(e,ze)},yt=function(e,t){return Ge(function(e,t){var n=-1,r=44;do{switch(qe(r)){case 0:38===r&&12===$e()&&(t[n]=1),e[n]+=gt(ze-1,t,n);break;case 2:e[n]+=Xe(r);break;case 4:if(44===r){e[++n]=58===$e()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Ce(r)}}while(r=He());return e}(Ye(e),t))},bt=new WeakMap,xt=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||bt.get(n))&&!r){bt.set(e,!0);for(var i=[],a=yt(t,i),o=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<o.length;u++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[u]):o[u]+" "+a[s]}}},kt=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function wt(e,t){switch(function(e,t){return 45^Te(e,0)?(((t<<2^Te(e,0))<<2^Te(e,1))<<2^Te(e,2))<<2^Te(e,3):0}(e,t)){case 5103:return at+"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 at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+it+e+rt+e+e;case 6828:case 4268:return at+e+rt+e+e;case 6165:return at+e+rt+"flex-"+e+e;case 5187:return at+e+Pe(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return at+e+rt+"flex-item-"+Pe(e,/flex-|-self/,"")+e;case 4675:return at+e+rt+"flex-line-pack"+Pe(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+rt+Pe(e,"shrink","negative")+e;case 5292:return at+e+rt+Pe(e,"basis","preferred-size")+e;case 6060:return at+"box-"+Pe(e,"-grow","")+at+e+rt+Pe(e,"grow","positive")+e;case 4554:return at+Pe(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return Pe(Pe(Pe(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return Pe(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return Pe(Pe(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return Pe(e,/(.+)-inline(.+)/,at+"$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(Re(e)-1-t>6)switch(Te(e,t+1)){case 109:if(45!==Te(e,t+4))break;case 102:return Pe(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+it+(108==Te(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Me(e,"stretch")?wt(Pe(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Te(e,t+1))break;case 6444:switch(Te(e,Re(e)-3-(~Me(e,"!important")&&10))){case 107:return Pe(e,":",":"+at)+e;case 101:return Pe(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(45===Te(e,14)?"inline-":"")+"box$3$1"+at+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(Te(e,t+11)){case 114:return at+e+rt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+rt+Pe(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+rt+Pe(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+rt+e+e}return e}var St=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case lt:e.return=wt(e.value,e.length);break;case ut:return ct([Ve(e,{value:Pe(e.value,"@","@"+at)})],r);case st:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ct([Ve(e,{props:[Pe(t,/:(read-\w+)/,":"+it+"$1")]})],r);case"::placeholder":return ct([Ve(e,{props:[Pe(t,/:(plac\w+)/,":"+at+"input-$1")]}),Ve(e,{props:[Pe(t,/:(plac\w+)/,":"+it+"$1")]}),Ve(e,{props:[Pe(t,/:(plac\w+)/,rt+"input-$1")]})],r)}return""}))}}],_t=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||St;var i,a,o={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;s.push(e)}));var l,u,c=[ft,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],f=function(e){var t=Ae(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}([xt,kt].concat(r,c));a=function(e,t,n,r){l=n,ct(dt(e?e+"{"+t.styles+"}":t.styles),f),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new Se({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:a};return d.sheet.hydrate(s),d};var Ct=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},Et={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},Ot=n(9797),Pt=/[A-Z]|^ms/g,Mt=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tt=function(e){return 45===e.charCodeAt(1)},jt=function(e){return null!=e&&"boolean"!==typeof e},Rt=(0,Ot.Z)((function(e){return Tt(e)?e:e.replace(Pt,"-$&").toLowerCase()})),At=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Mt,(function(e,t,n){return Dt={name:t,styles:n,next:Dt},t}))}return 1===Et[e]||Tt(e)||"number"!==typeof t||0===t?t:t+"px"};function Nt(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Dt={name:n.name,styles:n.styles,next:Dt},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Dt={name:r.name,styles:r.styles,next:Dt},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Nt(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":jt(o)&&(r+=Rt(a)+":"+At(a,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=Nt(e,t,o);switch(a){case"animation":case"animationName":r+=Rt(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)jt(o[l])&&(r+=Rt(a)+":"+At(a,o[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Dt,a=n(e);return Dt=i,Nt(e,t,a)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var Dt,Lt=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var It=!!f.useInsertionEffect&&f.useInsertionEffect,zt=It||function(e){return e()},Ft=(It||c.useLayoutEffect,(0,c.createContext)("undefined"!==typeof HTMLElement?_t({key:"css"}):null));Ft.Provider;var Bt=function(e){return(0,c.forwardRef)((function(t,n){var r=(0,c.useContext)(Ft);return e(t,r,n)}))},Wt=(0,c.createContext)({});var Vt=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=c.useContext(Wt);return n&&(e=n,0!==Object.keys(e).length)?n:t},Zt=we();var Ht=function(){return Vt(arguments.length>0&&void 0!==arguments[0]?arguments[0]:Zt)};function $t(e,t){var n;return(0,u.Z)({toolbar:(n={minHeight:56},(0,b.Z)(n,e.up("xs"),{"@media (orientation: landscape)":{minHeight:48}}),(0,b.Z)(n,e.up("sm"),{minHeight:64}),n)},t)}function Ut(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Kt(e){if(e.type)return e;if("#"===e.charAt(0))return Kt(function(e){e=e.slice(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(a(9,e));var r,i=e.substring(t+1,e.length-1);if("color"===n){if(r=(i=i.split(" ")).shift(),4===i.length&&"/"===i[3].charAt(0)&&(i[3]=i[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(a(10,r))}else i=i.split(",");return{type:n,values:i=i.map((function(e){return parseFloat(e)})),colorSpace:r}}function qt(e){var t=e.type,n=e.colorSpace,r=e.values;return-1!==t.indexOf("rgb")?r=r.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),r=-1!==t.indexOf("color")?"".concat(n," ").concat(r.join(" ")):"".concat(r.join(", ")),"".concat(t,"(").concat(r,")")}function Yt(e){var t="hsl"===(e=Kt(e)).type||"hsla"===e.type?Kt(function(e){var t=(e=Kt(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-a*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),qt({type:s,values:l})}(e)).values:e.values;return t=t.map((function(t){return"color"!==e.type&&(t/=255),t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Gt(e,t){if(e=Kt(e),t=Ut(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return qt(e)}function Xt(e,t){if(e=Kt(e),t=Ut(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(var r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return qt(e)}var Qt={black:"#000",white:"#fff"},Jt={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},en={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},tn={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},nn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},rn={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},an={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},on={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},sn=["mode","contrastThreshold","tonalOffset"],ln={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Qt.white,default:Qt.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},un={text:{primary:Qt.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Qt.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function cn(e,t,n,r){var i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Xt(e.main,i):"dark"===t&&(e.dark=Gt(e.main,a)))}function fn(e){var t=e.mode,n=void 0===t?"light":t,r=e.contrastThreshold,i=void 0===r?3:r,o=e.tonalOffset,s=void 0===o?.2:o,l=(0,d.Z)(e,sn),c=e.primary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:rn[200],light:rn[50],dark:rn[400]}:{main:rn[700],light:rn[400],dark:rn[800]}}(n),f=e.secondary||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:en[200],light:en[50],dark:en[400]}:{main:en[500],light:en[300],dark:en[700]}}(n),h=e.error||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:tn[500],light:tn[300],dark:tn[700]}:{main:tn[700],light:tn[400],dark:tn[800]}}(n),p=e.info||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:an[400],light:an[300],dark:an[700]}:{main:an[700],light:an[500],dark:an[900]}}(n),v=e.success||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:on[400],light:on[300],dark:on[700]}:{main:on[800],light:on[500],dark:on[900]}}(n),m=e.warning||function(){return"dark"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"light")?{main:nn[400],light:nn[300],dark:nn[700]}:{main:"#ed6c02",light:nn[500],dark:nn[900]}}(n);function g(e){var t=function(e,t){var n=Yt(e),r=Yt(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,un.text.primary)>=i?un.text.primary:ln.text.primary;return t}var b=function(e){var t=e.color,n=e.name,r=e.mainShade,i=void 0===r?500:r,o=e.lightShade,l=void 0===o?300:o,c=e.darkShade,f=void 0===c?700:c;if(!(t=(0,u.Z)({},t)).main&&t[i]&&(t.main=t[i]),!t.hasOwnProperty("main"))throw new Error(a(11,n?" (".concat(n,")"):"",i));if("string"!==typeof t.main)throw new Error(a(12,n?" (".concat(n,")"):"",JSON.stringify(t.main)));return cn(t,"light",l,s),cn(t,"dark",f,s),t.contrastText||(t.contrastText=g(t.main)),t},x={dark:un,light:ln};return y((0,u.Z)({common:(0,u.Z)({},Qt),mode:n,primary:b({color:c,name:"primary"}),secondary:b({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:h,name:"error"}),warning:b({color:m,name:"warning"}),info:b({color:p,name:"info"}),success:b({color:v,name:"success"}),grey:Jt,contrastThreshold:i,getContrastText:g,augmentColor:b,tonalOffset:s},x[n]),l)}var dn=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];var hn={textTransform:"uppercase"},pn='"Roboto", "Helvetica", "Arial", sans-serif';function vn(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,i=void 0===r?pn:r,a=n.fontSize,o=void 0===a?14:a,s=n.fontWeightLight,l=void 0===s?300:s,c=n.fontWeightRegular,f=void 0===c?400:c,h=n.fontWeightMedium,p=void 0===h?500:h,v=n.fontWeightBold,m=void 0===v?700:v,g=n.htmlFontSize,b=void 0===g?16:g,x=n.allVariants,k=n.pxToRem,w=(0,d.Z)(n,dn);var S=o/14,_=k||function(e){return"".concat(e/b*S,"rem")},C=function(e,t,n,r,a){return(0,u.Z)({fontFamily:i,fontWeight:e,fontSize:_(t),lineHeight:n},i===pn?{letterSpacing:"".concat((o=r/t,Math.round(1e5*o)/1e5),"em")}:{},a,x);var o},E={h1:C(l,96,1.167,-1.5),h2:C(l,60,1.2,-.5),h3:C(f,48,1.167,0),h4:C(f,34,1.235,.25),h5:C(f,24,1.334,0),h6:C(p,20,1.6,.15),subtitle1:C(f,16,1.75,.15),subtitle2:C(p,14,1.57,.1),body1:C(f,16,1.5,.15),body2:C(f,14,1.43,.15),button:C(p,14,1.75,.4,hn),caption:C(f,12,1.66,.4),overline:C(f,12,2.66,1,hn),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return y((0,u.Z)({htmlFontSize:b,pxToRem:_,fontFamily:i,fontSize:o,fontWeightLight:l,fontWeightRegular:f,fontWeightMedium:p,fontWeightBold:m},E),w,{clone:!1})}function mn(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var gn=["none",mn(0,2,1,-1,0,1,1,0,0,1,3,0),mn(0,3,1,-2,0,2,2,0,0,1,5,0),mn(0,3,3,-2,0,3,4,0,0,1,8,0),mn(0,2,4,-1,0,4,5,0,0,1,10,0),mn(0,3,5,-1,0,5,8,0,0,1,14,0),mn(0,3,5,-1,0,6,10,0,0,1,18,0),mn(0,4,5,-2,0,7,10,1,0,2,16,1),mn(0,5,5,-3,0,8,10,1,0,3,14,2),mn(0,5,6,-3,0,9,12,1,0,3,16,2),mn(0,6,6,-3,0,10,14,1,0,4,18,3),mn(0,6,7,-4,0,11,15,1,0,4,20,3),mn(0,7,8,-4,0,12,17,2,0,5,22,4),mn(0,7,8,-4,0,13,19,2,0,5,24,4),mn(0,7,9,-4,0,14,21,2,0,5,26,4),mn(0,8,9,-5,0,15,22,2,0,6,28,5),mn(0,8,10,-5,0,16,24,2,0,6,30,5),mn(0,8,11,-5,0,17,26,2,0,6,32,5),mn(0,9,11,-5,0,18,28,2,0,7,34,6),mn(0,9,12,-6,0,19,29,2,0,7,36,6),mn(0,10,13,-6,0,20,31,3,0,8,38,7),mn(0,10,13,-6,0,21,33,3,0,8,40,7),mn(0,10,14,-6,0,22,35,3,0,8,42,7),mn(0,11,14,-7,0,23,36,3,0,9,44,8),mn(0,11,15,-7,0,24,38,3,0,9,46,8)],yn=["duration","easing","delay"],bn={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},xn={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function kn(e){return"".concat(Math.round(e),"ms")}function wn(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}function Sn(e){var t=(0,u.Z)({},bn,e.easing),n=(0,u.Z)({},xn,e.duration);return(0,u.Z)({getAutoHeightDuration:wn,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.duration,a=void 0===i?n.standard:i,o=r.easing,s=void 0===o?t.easeInOut:o,l=r.delay,u=void 0===l?0:l;(0,d.Z)(r,yn);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof a?a:kn(a)," ").concat(s," ").concat("string"===typeof u?u:kn(u))})).join(",")}},e,{easing:t,duration:n})}var _n={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Cn=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function En(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mixins,n=void 0===t?{}:t,r=e.palette,i=void 0===r?{}:r,o=e.transitions,s=void 0===o?{}:o,l=e.typography,c=void 0===l?{}:l,f=(0,d.Z)(e,Cn);if(e.vars)throw new Error(a(18));var h=fn(i),p=we(e),v=y(p,{mixins:$t(p.breakpoints,n),palette:h,shadows:gn.slice(),typography:vn(h,c),transitions:Sn(s),zIndex:(0,u.Z)({},_n)});v=y(v,f);for(var m=arguments.length,g=new Array(m>1?m-1:0),b=1;b<m;b++)g[b-1]=arguments[b];return(v=g.reduce((function(e,t){return y(e,t)}),v)).unstable_sxConfig=(0,u.Z)({},ye,null==f?void 0:f.unstable_sxConfig),v.unstable_sx=function(e){return xe({sx:e,theme:this})},v}var On=En(),Pn="$$material";function Mn(e){return function(e){var t=e.props,n=e.name,r=e.defaultTheme,i=e.themeId,a=Ht(r);return i&&(a=a[i]||a),v({theme:a,name:n,props:t})}({props:e.props,name:e.name,defaultTheme:On,themeId:Pn})}var Tn=n(2982),jn=n(9791);var Rn=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},An=jn.Z,Nn=function(e){return"theme"!==e},Dn=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?An:Nn},Ln=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},In=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Rn(t,n,r);zt((function(){return function(e,t,n){Rn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}}(t,n,r)}));return null},zn=function e(t,n){var r,i,a=t.__emotion_real===t,o=a&&t.__emotion_base||t;void 0!==n&&(r=n.label,i=n.target);var s=Ln(t,n,a),l=s||Dn(o),f=!l("as");return function(){var d=arguments,h=a&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==r&&h.push("label:"+r+";"),null==d[0]||void 0===d[0].raw)h.push.apply(h,d);else{0,h.push(d[0][0]);for(var p=d.length,v=1;v<p;v++)h.push(d[v],d[0][v])}var m=Bt((function(e,t,n){var r=f&&e.as||o,a="",u=[],d=e;if(null==e.theme){for(var p in d={},e)d[p]=e[p];d.theme=(0,c.useContext)(Wt)}"string"===typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,u,e.className):null!=e.className&&(a=e.className+" ");var v=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Dt=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=Nt(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Nt(n,t,e[o]),r&&(i+=a[o]);Lt.lastIndex=0;for(var s,l="";null!==(s=Lt.exec(i));)l+="-"+s[1];return{name:Ct(i)+l,styles:i,next:Dt}}(h.concat(u),t.registered,d);a+=t.key+"-"+v.name,void 0!==i&&(a+=" "+i);var m=f&&void 0===s?Dn(r):l,g={};for(var y in e)f&&"as"===y||m(y)&&(g[y]=e[y]);return g.className=a,g.ref=n,(0,c.createElement)(c.Fragment,null,(0,c.createElement)(In,{cache:t,serialized:v,isStringTag:"string"===typeof r}),(0,c.createElement)(r,g))}));return m.displayName=void 0!==r?r:"Styled("+("string"===typeof o?o:o.displayName||o.name||"Component")+")",m.defaultProps=t.defaultProps,m.__emotion_real=m,m.__emotion_base=o,m.__emotion_styles=h,m.__emotion_forwardProp=s,Object.defineProperty(m,"toString",{value:function(){return"."+i}}),m.withComponent=function(t,r){return e(t,(0,u.Z)({},n,r,{shouldForwardProp:Ln(m,r,!0)})).apply(void 0,h)},m}},Fn=zn.bind();["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){Fn[e]=Fn(e)}));var Bn=Fn;var Wn=["variant"];function Vn(e){return 0===e.length}function Zn(e){var t=e.variant,n=(0,d.Z)(e,Wn),r=t||"";return Object.keys(n).sort().forEach((function(t){r+="color"===t?Vn(r)?e[t]:o(e[t]):"".concat(Vn(r)?t:o(t)).concat(o(e[t].toString()))})),r}var Hn=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function $n(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}var Un=we();function Kn(e){var t,n=e.defaultTheme,r=e.theme,i=e.themeId;return t=r,0===Object.keys(t).length?n:r[i]||r}var qn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.themeId,n=e.defaultTheme,r=void 0===n?Un:n,i=e.rootShouldForwardProp,a=void 0===i?$n:i,o=e.slotShouldForwardProp,s=void 0===o?$n:o,l=function(e){return xe((0,u.Z)({},e,{theme:Kn((0,u.Z)({},e,{defaultTheme:r,themeId:t}))}))};return l.__mui_systemSx=!0,function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}(e,(function(e){return e.filter((function(e){return!(null!=e&&e.__mui_systemSx)}))}));var i=n.name,o=n.slot,c=n.skipVariantsResolver,f=n.skipSx,h=n.overridesResolver,p=(0,d.Z)(n,Hn),v=void 0!==c?c:o&&"Root"!==o||!1,m=f||!1;var g=$n;"Root"===o?g=a:o?g=s:function(e){return"string"===typeof e&&e.charCodeAt(0)>96}(e)&&(g=void 0);var y=function(e,t){return Bn(e,t)}(e,(0,u.Z)({shouldForwardProp:g,label:undefined},p)),b=function(e){for(var n=arguments.length,a=new Array(n>1?n-1:0),o=1;o<n;o++)a[o-1]=arguments[o];var s=a?a.map((function(e){return"function"===typeof e&&e.__emotion_real!==e?function(n){return e((0,u.Z)({},n,{theme:Kn((0,u.Z)({},n,{defaultTheme:r,themeId:t}))}))}:e})):[],c=e;i&&h&&s.push((function(e){var n=Kn((0,u.Z)({},e,{defaultTheme:r,themeId:t})),a=function(e,t){return t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null}(i,n);if(a){var o={};return Object.entries(a).forEach((function(t){var r=(0,S.Z)(t,2),i=r[0],a=r[1];o[i]="function"===typeof a?a((0,u.Z)({},e,{theme:n})):a})),h(e,o)}return null})),i&&!v&&s.push((function(e){var n=Kn((0,u.Z)({},e,{defaultTheme:r,themeId:t}));return function(e,t,n,r){var i,a,o=e.ownerState,s=void 0===o?{}:o,l=[],u=null==n||null==(i=n.components)||null==(a=i[r])?void 0:a.variants;return u&&u.forEach((function(n){var r=!0;Object.keys(n.props).forEach((function(t){s[t]!==n.props[t]&&e[t]!==n.props[t]&&(r=!1)})),r&&l.push(t[Zn(n.props)])})),l}(e,function(e,t){var n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);var r={};return n.forEach((function(e){var t=Zn(e.props);r[t]=e.style})),r}(i,n),n,i)})),m||s.push(l);var f=s.length-a.length;if(Array.isArray(e)&&f>0){var d=new Array(f).fill("");(c=[].concat((0,Tn.Z)(e),(0,Tn.Z)(d))).raw=[].concat((0,Tn.Z)(e.raw),(0,Tn.Z)(d))}else"function"===typeof e&&e.__emotion_real!==e&&(c=function(n){return e((0,u.Z)({},n,{theme:Kn((0,u.Z)({},n,{defaultTheme:r,themeId:t}))}))});return y.apply(void 0,[c].concat((0,Tn.Z)(s)))};return y.withConfig&&(b.withConfig=y.withConfig),b}}({themeId:Pn,defaultTheme:On,rootShouldForwardProp:function(e){return $n(e)&&"classes"!==e}}),Yn=qn,Gn={active:"active",checked:"checked",completed:"completed",disabled:"disabled",readOnly:"readOnly",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function Xn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r=Gn[t];return r?"".concat(n,"-").concat(r):"".concat(i.generate(e),"-").concat(t)}function Qn(e){return Xn("MuiSvgIcon",e)}!function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"Mui",r={};t.forEach((function(t){r[t]=Xn(e,t,n)}))}("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);var Jn=n(184),er=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],tr=function(e){var t=e.color,n=e.fontSize,r=e.classes;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r={};return Object.keys(e).forEach((function(i){r[i]=e[i].reduce((function(e,r){if(r){var i=t(r);""!==i&&e.push(i),n&&n[r]&&e.push(n[r])}return e}),[]).join(" ")})),r}({root:["root","inherit"!==t&&"color".concat(s(t)),"fontSize".concat(s(n))]},Qn,r)},nr=Yn("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:function(e,t){var n=e.ownerState;return[t.root,"inherit"!==n.color&&t["color".concat(s(n.color))],t["fontSize".concat(s(n.fontSize))]]}})((function(e){var t,n,r,i,a,o,s,l,u,c,f,d,h,p,v,m,g,y=e.theme,b=e.ownerState;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(t=y.transitions)||null==(n=t.create)?void 0:n.call(t,"fill",{duration:null==(r=y.transitions)||null==(i=r.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=y.typography)||null==(o=a.pxToRem)?void 0:o.call(a,20))||"1.25rem",medium:(null==(s=y.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=y.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"}[b.fontSize],color:null!=(f=null==(d=(y.vars||y).palette)||null==(h=d[b.color])?void 0:h.main)?f:{action:null==(p=(y.vars||y).palette)||null==(v=p.action)?void 0:v.active,disabled:null==(m=(y.vars||y).palette)||null==(g=m.action)?void 0:g.disabled,inherit:void 0}[b.color]}})),rr=c.forwardRef((function(e,t){var n=Mn({props:e,name:"MuiSvgIcon"}),r=n.children,i=n.className,a=n.color,o=void 0===a?"inherit":a,s=n.component,l=void 0===s?"svg":s,c=n.fontSize,f=void 0===c?"medium":c,p=n.htmlColor,v=n.inheritViewBox,m=void 0!==v&&v,g=n.titleAccess,y=n.viewBox,b=void 0===y?"0 0 24 24":y,x=(0,d.Z)(n,er),k=(0,u.Z)({},n,{color:o,component:l,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:m,viewBox:b}),w={};m||(w.viewBox=b);var S=tr(k);return(0,Jn.jsxs)(nr,(0,u.Z)({as:l,className:(0,h.Z)(S.root,i),focusable:"false",color:p,"aria-hidden":!g||void 0,role:g?"img":void 0,ref:t},w,x,{ownerState:k,children:[r,g?(0,Jn.jsx)("title",{children:g}):null]}))}));rr.muiName="SvgIcon";var ir=rr;function ar(e,t){function n(n,r){return(0,Jn.jsx)(ir,(0,u.Z)({"data-testid":"".concat(t,"Icon"),ref:r},n,{children:e}))}return n.muiName=ir.muiName,c.memo(c.forwardRef(n))}var or=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:166;function r(){for(var r=this,i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];clearTimeout(t),t=setTimeout((function(){e.apply(r,a)}),n)}return r.clear=function(){clearTimeout(t)},r};var sr=function(e,t){return function(){return null}};var lr=function(e,t){return c.isValidElement(e)&&-1!==t.indexOf(e.type.muiName)};function ur(e){return e&&e.ownerDocument||document}var cr=ur;var fr=function(e){return ur(e).defaultView||window};var dr=function(e,t){return function(){return null}};function hr(e,t){"function"===typeof e?e(t):e&&(e.current=t)}var pr=hr,vr="undefined"!==typeof window?c.useLayoutEffect:c.useEffect,mr=vr,gr=0;var yr=f.useId;var br=function(e){if(void 0!==yr){var t=yr();return null!=e?e:t}return function(e){var t=c.useState(e),n=(0,S.Z)(t,2),r=n[0],i=n[1],a=e||r;return c.useEffect((function(){null==r&&i("mui-".concat(gr+=1))}),[r]),a}(e)};var xr=function(e,t,n,r,i){return null};var kr=function(e){var t=e.controlled,n=e.default,r=(e.name,e.state,c.useRef(void 0!==t).current),i=c.useState(n),a=(0,S.Z)(i,2),o=a[0],s=a[1];return[r?t:o,c.useCallback((function(e){r||s(e)}),[])]};var wr=function(e){var t=c.useRef(e);return vr((function(){t.current=e})),c.useCallback((function(){return t.current.apply(void 0,arguments)}),[])};var Sr,_r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return c.useMemo((function(){return t.every((function(e){return null==e}))?null:function(e){t.forEach((function(t){hr(t,e)}))}}),t)},Cr=!0,Er=!1,Or={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pr(e){e.metaKey||e.altKey||e.ctrlKey||(Cr=!0)}function Mr(){Cr=!1}function Tr(){"hidden"===this.visibilityState&&Er&&(Cr=!0)}function jr(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return Cr||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Or[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}var Rr=function(){var e=c.useCallback((function(e){var t;null!=e&&((t=e.ownerDocument).addEventListener("keydown",Pr,!0),t.addEventListener("mousedown",Mr,!0),t.addEventListener("pointerdown",Mr,!0),t.addEventListener("touchstart",Mr,!0),t.addEventListener("visibilitychange",Tr,!0))}),[]),t=c.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!jr(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(Er=!0,window.clearTimeout(Sr),Sr=window.setTimeout((function(){Er=!1}),100),t.current=!1,!0)},ref:e}},Ar={configure:function(e){i.configure(e)}}},1694:function(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var a=typeof n;if("string"===a||"number"===a)e.push(n);else if(Array.isArray(n)){if(n.length){var o=i.apply(null,n);o&&e.push(o)}}else if("object"===a){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(i.default=i,e.exports=i):void 0===(n=function(){return i}.apply(t,[]))||(e.exports=n)}()},8182:function(e,t,n){"use strict";function r(e){var t,n,i="";if("string"==typeof e||"number"==typeof e)i+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=r(e[t]))&&(i&&(i+=" "),i+=n);else for(t in e)e[t]&&(i&&(i+=" "),i+=t);return i}t.Z=function(){for(var e,t,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(t=r(e))&&(i&&(i+=" "),i+=t);return i}},2110:function(e,t,n){"use strict";var r=n(8309),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?o:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(p){var i=h(n);i&&i!==p&&e(t,i,r)}var o=c(n);f&&(o=o.concat(f(n)));for(var s=l(t),v=l(n),m=0;m<o.length;++m){var g=o[m];if(!a[g]&&(!r||!r[g])&&(!v||!v[g])&&(!s||!s[g])){var y=d(n,g);try{u(t,g,y)}catch(b){}}}}return t}},746:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,l=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,c=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,h=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.suspense_list"):60120,v=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116,g=n?Symbol.for("react.block"):60121,y=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,x=n?Symbol.for("react.scope"):60119;function k(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case c:case f:case a:case s:case o:case h:return e;default:switch(e=e&&e.$$typeof){case u:case d:case m:case v:case l:return e;default:return t}}case i:return t}}}function w(e){return k(e)===f}t.AsyncMode=c,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=l,t.Element=r,t.ForwardRef=d,t.Fragment=a,t.Lazy=m,t.Memo=v,t.Portal=i,t.Profiler=s,t.StrictMode=o,t.Suspense=h,t.isAsyncMode=function(e){return w(e)||k(e)===c},t.isConcurrentMode=w,t.isContextConsumer=function(e){return k(e)===u},t.isContextProvider=function(e){return k(e)===l},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return k(e)===d},t.isFragment=function(e){return k(e)===a},t.isLazy=function(e){return k(e)===m},t.isMemo=function(e){return k(e)===v},t.isPortal=function(e){return k(e)===i},t.isProfiler=function(e){return k(e)===s},t.isStrictMode=function(e){return k(e)===o},t.isSuspense=function(e){return k(e)===h},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===s||e===o||e===h||e===p||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===l||e.$$typeof===u||e.$$typeof===d||e.$$typeof===y||e.$$typeof===b||e.$$typeof===x||e.$$typeof===g)},t.typeOf=k},8309:function(e,t,n){"use strict";e.exports=n(746)},2176:function(e){"use strict";e.exports=function(e,t,n,r,i,a,o,s){if(!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,o,s],c=0;(l=new Error(t.replace(/%s/g,(function(){return u[c++]})))).name="Invariant Violation"}throw l.framesToPop=1,l}}},888:function(e,t,n){"use strict";var r=n(9047);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:a,resetWarningCache:i};return n.PropTypes=n,n}},2007:function(e,t,n){e.exports=n(888)()},9047:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9141:function(e){!function(t){"use strict";"function"===typeof bootstrap?bootstrap("promise",t):e.exports=t()}((function(){"use strict";var e=!1;try{throw new Error}catch($){e=!!$.stack}var t,n=k(),r=function(){},i=function(){var e={task:void 0,next:null},t=e,n=!1,r=void 0,a=!1,o=[];function s(){for(var t,r;e.next;)t=(e=e.next).task,e.task=void 0,(r=e.domain)&&(e.domain=void 0,r.enter()),l(t,r);for(;o.length;)l(t=o.pop());n=!1}function l(e,t){try{e()}catch($){if(a)throw t&&t.exit(),setTimeout(s,0),t&&t.enter(),$;setTimeout((function(){throw $}),0)}t&&t.exit()}if(i=function(e){t=t.next={task:e,domain:a&&process.domain,next:null},n||(n=!0,r())},"object"===typeof process&&"[object process]"===process.toString()&&process.nextTick)a=!0,r=function(){process.nextTick(s)};else if("function"===typeof setImmediate)r="undefined"!==typeof window?setImmediate.bind(window,s):function(){setImmediate(s)};else if("undefined"!==typeof MessageChannel){var u=new MessageChannel;u.port1.onmessage=function(){r=c,u.port1.onmessage=s,s()};var c=function(){u.port2.postMessage(0)};r=function(){setTimeout(s,0),c()}}else r=function(){setTimeout(s,0)};return i.runAfter=function(e){o.push(e),n||(n=!0,r())},i}(),a=Function.call;function o(e){return function(){return a.apply(e,arguments)}}var s,l=o(Array.prototype.slice),u=o(Array.prototype.reduce||function(e,t){var n=0,r=this.length;if(1===arguments.length)for(;;){if(n in this){t=this[n++];break}if(++n>=r)throw new TypeError}for(;n<r;n++)n in this&&(t=e(t,this[n],n));return t}),c=o(Array.prototype.indexOf||function(e){for(var t=0;t<this.length;t++)if(this[t]===e)return t;return-1}),f=o(Array.prototype.map||function(e,t){var n=this,r=[];return u(n,(function(i,a,o){r.push(e.call(t,a,o,n))}),void 0),r}),d=Object.create||function(e){function t(){}return t.prototype=e,new t},h=Object.defineProperty||function(e,t,n){return e[t]=n.value,e},p=o(Object.prototype.hasOwnProperty),v=Object.keys||function(e){var t=[];for(var n in e)p(e,n)&&t.push(n);return t},m=o(Object.prototype.toString);s="undefined"!==typeof ReturnValue?ReturnValue:function(e){this.value=e};function g(t,n){if(e&&n.stack&&"object"===typeof t&&null!==t&&t.stack){for(var r=[],i=n;i;i=i.source)i.stack&&(!t.__minimumStackCounter__||t.__minimumStackCounter__>i.stackCounter)&&(h(t,"__minimumStackCounter__",{value:i.stackCounter,configurable:!0}),r.unshift(i.stack));r.unshift(t.stack);var a=function(e){for(var t=e.split("\n"),n=[],r=0;r<t.length;++r){var i=t[r];x(i)||y(i)||!i||n.push(i)}return n.join("\n")}(r.join("\nFrom previous event:\n"));h(t,"stack",{value:a,configurable:!0})}}function y(e){return-1!==e.indexOf("(module.js:")||-1!==e.indexOf("(node.js:")}function b(e){var t=/at .+ \((.+):(\d+):(?:\d+)\)$/.exec(e);if(t)return[t[1],Number(t[2])];var n=/at ([^ ]+):(\d+):(?:\d+)$/.exec(e);if(n)return[n[1],Number(n[2])];var r=/.*@(.+):(\d+)$/.exec(e);return r?[r[1],Number(r[2])]:void 0}function x(e){var r=b(e);if(!r)return!1;var i=r[0],a=r[1];return i===t&&a>=n&&a<=H}function k(){if(e)try{throw new Error}catch($){var n=$.stack.split("\n"),r=b(n[0].indexOf("@")>0?n[1]:n[2]);if(!r)return;return t=r[0],r[1]}}function w(e){return e instanceof O?e:j(e)?function(e){var t=_();return w.nextTick((function(){try{e.then(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}})),t.promise}(e):z(e)}w.resolve=w,w.nextTick=i,w.longStackSupport=!1;var S=1;function _(){var t,n=[],r=[],i=d(_.prototype),a=d(O.prototype);if(a.promiseDispatch=function(e,i,a){var o=l(arguments);n?(n.push(o),"when"===i&&a[1]&&r.push(a[1])):w.nextTick((function(){t.promiseDispatch.apply(t,o)}))},a.valueOf=function(){if(n)return a;var e=M(t);return T(e)&&(t=e),e},a.inspect=function(){return t?t.inspect():{state:"pending"}},w.longStackSupport&&e)try{throw new Error}catch($){a.stack=$.stack.substring($.stack.indexOf("\n")+1),a.stackCounter=S++}function o(i){t=i,w.longStackSupport&&e&&(a.source=i),u(n,(function(e,t){w.nextTick((function(){i.promiseDispatch.apply(i,t)}))}),void 0),n=void 0,r=void 0}return i.promise=a,i.resolve=function(e){t||o(w(e))},i.fulfill=function(e){t||o(z(e))},i.reject=function(e){t||o(I(e))},i.notify=function(e){t||u(r,(function(t,n){w.nextTick((function(){n(e)}))}),void 0)},i}function C(e){if("function"!==typeof e)throw new TypeError("resolver must be a function.");var t=_();try{e(t.resolve,t.reject,t.notify)}catch(n){t.reject(n)}return t.promise}function E(e){return C((function(t,n){for(var r=0,i=e.length;r<i;r++)w(e[r]).then(t,n)}))}function O(e,t,n){void 0===t&&(t=function(e){return I(new Error("Promise does not support operation: "+e))}),void 0===n&&(n=function(){return{state:"unknown"}});var r=d(O.prototype);if(r.promiseDispatch=function(n,i,a){var o;try{o=e[i]?e[i].apply(r,a):t.call(r,i,a)}catch(s){o=I(s)}n&&n(o)},r.inspect=n,n){var i=n();"rejected"===i.state&&(r.exception=i.reason),r.valueOf=function(){var e=n();return"pending"===e.state||"rejected"===e.state?r:e.value}}return r}function P(e,t,n,r){return w(e).then(t,n,r)}function M(e){if(T(e)){var t=e.inspect();if("fulfilled"===t.state)return t.value}return e}function T(e){return e instanceof O}function j(e){return(t=e)===Object(t)&&"function"===typeof e.then;var t}"object"===typeof process&&process&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.Q_DEBUG&&(w.longStackSupport=!0),w.defer=_,_.prototype.makeNodeResolver=function(){var e=this;return function(t,n){t?e.reject(t):arguments.length>2?e.resolve(l(arguments,1)):e.resolve(n)}},w.Promise=C,w.promise=C,C.race=E,C.all=W,C.reject=I,C.resolve=w,w.passByCopy=function(e){return e},O.prototype.passByCopy=function(){return this},w.join=function(e,t){return w(e).join(t)},O.prototype.join=function(e){return w([this,e]).spread((function(e,t){if(e===t)return e;throw new Error("Q can't join: not the same: "+e+" "+t)}))},w.race=E,O.prototype.race=function(){return this.then(w.race)},w.makePromise=O,O.prototype.toString=function(){return"[object Promise]"},O.prototype.then=function(e,t,n){var r=this,i=_(),a=!1;return w.nextTick((function(){r.promiseDispatch((function(t){a||(a=!0,i.resolve(function(t){try{return"function"===typeof e?e(t):t}catch(n){return I(n)}}(t)))}),"when",[function(e){a||(a=!0,i.resolve(function(e){if("function"===typeof t){g(e,r);try{return t(e)}catch(n){return I(n)}}return I(e)}(e)))}])})),r.promiseDispatch(void 0,"when",[void 0,function(e){var t,r=!1;try{t=function(e){return"function"===typeof n?n(e):e}(e)}catch($){if(r=!0,!w.onerror)throw $;w.onerror($)}r||i.notify(t)}]),i.promise},w.tap=function(e,t){return w(e).tap(t)},O.prototype.tap=function(e){return e=w(e),this.then((function(t){return e.fcall(t).thenResolve(t)}))},w.when=P,O.prototype.thenResolve=function(e){return this.then((function(){return e}))},w.thenResolve=function(e,t){return w(e).thenResolve(t)},O.prototype.thenReject=function(e){return this.then((function(){throw e}))},w.thenReject=function(e,t){return w(e).thenReject(t)},w.nearer=M,w.isPromise=T,w.isPromiseAlike=j,w.isPending=function(e){return T(e)&&"pending"===e.inspect().state},O.prototype.isPending=function(){return"pending"===this.inspect().state},w.isFulfilled=function(e){return!T(e)||"fulfilled"===e.inspect().state},O.prototype.isFulfilled=function(){return"fulfilled"===this.inspect().state},w.isRejected=function(e){return T(e)&&"rejected"===e.inspect().state},O.prototype.isRejected=function(){return"rejected"===this.inspect().state};var R=[],A=[],N=[],D=!0;function L(){R.length=0,A.length=0,D||(D=!0)}function I(e){var t=O({when:function(t){return t&&function(e){if(D){var t=c(A,e);-1!==t&&("object"===typeof process&&"function"===typeof process.emit&&w.nextTick.runAfter((function(){var n=c(N,e);-1!==n&&(process.emit("rejectionHandled",R[t],e),N.splice(n,1))})),A.splice(t,1),R.splice(t,1))}}(this),t?t(e):this}},(function(){return this}),(function(){return{state:"rejected",reason:e}}));return function(e,t){D&&("object"===typeof process&&"function"===typeof process.emit&&w.nextTick.runAfter((function(){-1!==c(A,e)&&(process.emit("unhandledRejection",t,e),N.push(e))})),A.push(e),t&&"undefined"!==typeof t.stack?R.push(t.stack):R.push("(no stack) "+t))}(t,e),t}function z(e){return O({when:function(){return e},get:function(t){return e[t]},set:function(t,n){e[t]=n},delete:function(t){delete e[t]},post:function(t,n){return null===t||void 0===t?e.apply(void 0,n):e[t].apply(e,n)},apply:function(t,n){return e.apply(t,n)},keys:function(){return v(e)}},void 0,(function(){return{state:"fulfilled",value:e}}))}function F(e,t,n){return w(e).spread(t,n)}function B(e,t,n){return w(e).dispatch(t,n)}function W(e){return P(e,(function(e){var t=0,n=_();return u(e,(function(r,i,a){var o;T(i)&&"fulfilled"===(o=i.inspect()).state?e[a]=o.value:(++t,P(i,(function(r){e[a]=r,0===--t&&n.resolve(e)}),n.reject,(function(e){n.notify({index:a,value:e})})))}),void 0),0===t&&n.resolve(e),n.promise}))}function V(e){if(0===e.length)return w.resolve();var t=w.defer(),n=0;return u(e,(function(r,i,a){var o=e[a];n++,P(o,(function(e){t.resolve(e)}),(function(e){if(0===--n){var r=e||new Error(""+e);r.message="Q can't get fulfillment value from any promise, all promises were rejected. Last error message: "+r.message,t.reject(r)}}),(function(e){t.notify({index:a,value:e})}))}),void 0),t.promise}function Z(e){return P(e,(function(e){return e=f(e,w),P(W(f(e,(function(e){return P(e,r,r)}))),(function(){return e}))}))}w.resetUnhandledRejections=L,w.getUnhandledReasons=function(){return R.slice()},w.stopUnhandledRejectionTracking=function(){L(),D=!1},L(),w.reject=I,w.fulfill=z,w.master=function(e){return O({isDef:function(){}},(function(t,n){return B(e,t,n)}),(function(){return w(e).inspect()}))},w.spread=F,O.prototype.spread=function(e,t){return this.all().then((function(t){return e.apply(void 0,t)}),t)},w.async=function(e){return function(){function t(e,t){var a;if("undefined"===typeof StopIteration){try{a=n[e](t)}catch(o){return I(o)}return a.done?w(a.value):P(a.value,r,i)}try{a=n[e](t)}catch(o){return function(e){return"[object StopIteration]"===m(e)||e instanceof s}(o)?w(o.value):I(o)}return P(a,r,i)}var n=e.apply(this,arguments),r=t.bind(t,"next"),i=t.bind(t,"throw");return r()}},w.spawn=function(e){w.done(w.async(e)())},w.return=function(e){throw new s(e)},w.promised=function(e){return function(){return F([this,W(arguments)],(function(t,n){return e.apply(t,n)}))}},w.dispatch=B,O.prototype.dispatch=function(e,t){var n=this,r=_();return w.nextTick((function(){n.promiseDispatch(r.resolve,e,t)})),r.promise},w.get=function(e,t){return w(e).dispatch("get",[t])},O.prototype.get=function(e){return this.dispatch("get",[e])},w.set=function(e,t,n){return w(e).dispatch("set",[t,n])},O.prototype.set=function(e,t){return this.dispatch("set",[e,t])},w.del=w.delete=function(e,t){return w(e).dispatch("delete",[t])},O.prototype.del=O.prototype.delete=function(e){return this.dispatch("delete",[e])},w.mapply=w.post=function(e,t,n){return w(e).dispatch("post",[t,n])},O.prototype.mapply=O.prototype.post=function(e,t){return this.dispatch("post",[e,t])},w.send=w.mcall=w.invoke=function(e,t){return w(e).dispatch("post",[t,l(arguments,2)])},O.prototype.send=O.prototype.mcall=O.prototype.invoke=function(e){return this.dispatch("post",[e,l(arguments,1)])},w.fapply=function(e,t){return w(e).dispatch("apply",[void 0,t])},O.prototype.fapply=function(e){return this.dispatch("apply",[void 0,e])},w.try=w.fcall=function(e){return w(e).dispatch("apply",[void 0,l(arguments,1)])},O.prototype.fcall=function(){return this.dispatch("apply",[void 0,l(arguments)])},w.fbind=function(e){var t=w(e),n=l(arguments,1);return function(){return t.dispatch("apply",[this,n.concat(l(arguments))])}},O.prototype.fbind=function(){var e=this,t=l(arguments);return function(){return e.dispatch("apply",[this,t.concat(l(arguments))])}},w.keys=function(e){return w(e).dispatch("keys",[])},O.prototype.keys=function(){return this.dispatch("keys",[])},w.all=W,O.prototype.all=function(){return W(this)},w.any=V,O.prototype.any=function(){return V(this)},w.allResolved=function(e,t,n){return function(){return"undefined"!==typeof console&&"function"===typeof console.warn&&console.warn(t+" is deprecated, use "+n+" instead.",new Error("").stack),e.apply(e,arguments)}}(Z,"allResolved","allSettled"),O.prototype.allResolved=function(){return Z(this)},w.allSettled=function(e){return w(e).allSettled()},O.prototype.allSettled=function(){return this.then((function(e){return W(f(e,(function(e){function t(){return e.inspect()}return(e=w(e)).then(t,t)})))}))},w.fail=w.catch=function(e,t){return w(e).then(void 0,t)},O.prototype.fail=O.prototype.catch=function(e){return this.then(void 0,e)},w.progress=function(e,t){return w(e).then(void 0,void 0,t)},O.prototype.progress=function(e){return this.then(void 0,void 0,e)},w.fin=w.finally=function(e,t){return w(e).finally(t)},O.prototype.fin=O.prototype.finally=function(e){if(!e||"function"!==typeof e.apply)throw new Error("Q can't apply finally callback");return e=w(e),this.then((function(t){return e.fcall().then((function(){return t}))}),(function(t){return e.fcall().then((function(){throw t}))}))},w.done=function(e,t,n,r){return w(e).done(t,n,r)},O.prototype.done=function(e,t,n){var r=function(e){w.nextTick((function(){if(g(e,i),!w.onerror)throw e;w.onerror(e)}))},i=e||t||n?this.then(e,t,n):this;"object"===typeof process&&process&&process.domain&&(r=process.domain.bind(r)),i.then(void 0,r)},w.timeout=function(e,t,n){return w(e).timeout(t,n)},O.prototype.timeout=function(e,t){var n=_(),r=setTimeout((function(){t&&"string"!==typeof t||((t=new Error(t||"Timed out after "+e+" ms")).code="ETIMEDOUT"),n.reject(t)}),e);return this.then((function(e){clearTimeout(r),n.resolve(e)}),(function(e){clearTimeout(r),n.reject(e)}),n.notify),n.promise},w.delay=function(e,t){return void 0===t&&(t=e,e=void 0),w(e).delay(t)},O.prototype.delay=function(e){return this.then((function(t){var n=_();return setTimeout((function(){n.resolve(t)}),e),n.promise}))},w.nfapply=function(e,t){return w(e).nfapply(t)},O.prototype.nfapply=function(e){var t=_(),n=l(e);return n.push(t.makeNodeResolver()),this.fapply(n).fail(t.reject),t.promise},w.nfcall=function(e){var t=l(arguments,1);return w(e).nfapply(t)},O.prototype.nfcall=function(){var e=l(arguments),t=_();return e.push(t.makeNodeResolver()),this.fapply(e).fail(t.reject),t.promise},w.nfbind=w.denodeify=function(e){if(void 0===e)throw new Error("Q can't wrap an undefined function");var t=l(arguments,1);return function(){var n=t.concat(l(arguments)),r=_();return n.push(r.makeNodeResolver()),w(e).fapply(n).fail(r.reject),r.promise}},O.prototype.nfbind=O.prototype.denodeify=function(){var e=l(arguments);return e.unshift(this),w.denodeify.apply(void 0,e)},w.nbind=function(e,t){var n=l(arguments,2);return function(){var r=n.concat(l(arguments)),i=_();return r.push(i.makeNodeResolver()),w((function(){return e.apply(t,arguments)})).fapply(r).fail(i.reject),i.promise}},O.prototype.nbind=function(){var e=l(arguments,0);return e.unshift(this),w.nbind.apply(void 0,e)},w.nmapply=w.npost=function(e,t,n){return w(e).npost(t,n)},O.prototype.nmapply=O.prototype.npost=function(e,t){var n=l(t||[]),r=_();return n.push(r.makeNodeResolver()),this.dispatch("post",[e,n]).fail(r.reject),r.promise},w.nsend=w.nmcall=w.ninvoke=function(e,t){var n=l(arguments,2),r=_();return n.push(r.makeNodeResolver()),w(e).dispatch("post",[t,n]).fail(r.reject),r.promise},O.prototype.nsend=O.prototype.nmcall=O.prototype.ninvoke=function(e){var t=l(arguments,1),n=_();return t.push(n.makeNodeResolver()),this.dispatch("post",[e,t]).fail(n.reject),n.promise},w.nodeify=function(e,t){return w(e).nodeify(t)},O.prototype.nodeify=function(e){if(!e)return this;this.then((function(t){w.nextTick((function(){e(null,t)}))}),(function(t){w.nextTick((function(){e(t)}))}))},w.noConflict=function(){throw new Error("Q.noConflict only works when Q is used as a global")};var H=k();return w}))},4463:function(e,t,n){"use strict";var r=n(2791),i=n(5296);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var o=new Set,s={};function l(e,t){u(e,t),u(e+"Capture",t)}function u(e,t){for(s[e]=t,e=0;e<t.length;e++)o.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,h={},p={};function v(e,t,n,r,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new v(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];m[t]=new v(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new v(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new v(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new v(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new v(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function y(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=m.hasOwnProperty(t)?m[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(p,e)||!f.call(h,e)&&(d.test(e)?p[e]=!0:(h[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,y);m[t]=new v(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),w=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),C=Symbol.for("react.profiler"),E=Symbol.for("react.provider"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var A=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var N=Symbol.iterator;function D(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=N&&e[N]||e["@@iterator"])?e:null}var L,I=Object.assign;function z(e){if(void 0===L)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);L=t&&t[1]||""}return"\n"+L+e}var F=!1;function B(e,t){if(!e||F)return"";F=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var r=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){r=u}e.call(t.prototype)}else{try{throw Error()}catch(u){r=u}e()}}catch(u){if(u&&r&&"string"===typeof u.stack){for(var i=u.stack.split("\n"),a=r.stack.split("\n"),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(1!==o||1!==s)do{if(o--,0>--s||i[o]!==a[s]){var l="\n"+i[o].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=o&&0<=s);break}}}finally{F=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?z(e):""}function W(e){switch(e.tag){case 5:return z(e.type);case 16:return z("Lazy");case 13:return z("Suspense");case 19:return z("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function V(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case S:return"Fragment";case w:return"Portal";case C:return"Profiler";case _:return"StrictMode";case M:return"Suspense";case T:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case O:return(e.displayName||"Context")+".Consumer";case E:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case j:return null!==(t=e.displayName||null)?t:V(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return V(e(t))}catch(n){}}return null}function Z(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return V(t);case 8:return t===_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function $(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function U(e){e._valueTracker||(e._valueTracker=function(e){var t=$(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function K(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=$(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return I({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function G(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){X(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return I({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(te(n)){if(1<n.length)throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function ae(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function oe(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ue,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ue=ue||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return ce(e,t)}))}:ce);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var he={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function ve(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||he.hasOwnProperty(e)&&he[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=ve(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(he).forEach((function(e){pe.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),he[t]=he[e]}))}));var ge=I({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ye(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var we=null,Se=null,_e=null;function Ce(e){if(e=mi(e)){if("function"!==typeof we)throw Error(a(280));var t=e.stateNode;t&&(t=yi(t),we(e.stateNode,e.type,t))}}function Ee(e){Se?_e?_e.push(e):_e=[e]:Se=e}function Oe(){if(Se){var e=Se,t=_e;if(_e=Se=null,Ce(e),t)for(e=0;e<t.length;e++)Ce(t[e])}}function Pe(e,t){return e(t)}function Me(){}var Te=!1;function je(e,t,n){if(Te)return e(t,n);Te=!0;try{return Pe(e,t,n)}finally{Te=!1,(null!==Se||null!==_e)&&(Me(),Oe())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=yi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}var Ae=!1;if(c)try{var Ne={};Object.defineProperty(Ne,"passive",{get:function(){Ae=!0}}),window.addEventListener("test",Ne,Ne),window.removeEventListener("test",Ne,Ne)}catch(ce){Ae=!1}function De(e,t,n,r,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(c){this.onError(c)}}var Le=!1,Ie=null,ze=!1,Fe=null,Be={onError:function(e){Le=!0,Ie=e}};function We(e,t,n,r,i,a,o,s,l){Le=!1,Ie=null,De.apply(Be,arguments)}function Ve(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ze(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ve(e)!==e)throw Error(a(188))}function $e(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ve(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var o=i.alternate;if(null===o){if(null!==(r=i.return)){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return He(i),e;if(o===r)return He(i),t;o=o.sibling}throw Error(a(188))}if(n.return!==r.return)n=i,r=o;else{for(var s=!1,l=i.child;l;){if(l===n){s=!0,n=i,r=o;break}if(l===r){s=!0,r=i,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,r=i;break}if(l===r){s=!0,r=o,n=i;break}l=l.sibling}if(!s)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e))?Ue(e):null}function Ue(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ue(e);if(null!==t)return t;e=e.sibling}return null}var Ke=i.unstable_scheduleCallback,qe=i.unstable_cancelCallback,Ye=i.unstable_shouldYield,Ge=i.unstable_requestPaint,Xe=i.unstable_now,Qe=i.unstable_getCurrentPriorityLevel,Je=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,at=null;var ot=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ut=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=268435455&n;if(0!==o){var s=o&~i;0!==s?r=ft(s):0!==(a&=o)&&(r=ft(a))}else 0!==(o=n&~i)?r=ft(o):0!==a&&(r=ft(a));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(a=t&-t)||16===i&&0!==(4194240&a)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-ot(t)),r|=e[n],t&=~i;return r}function ht(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function vt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function mt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-ot(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ot(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var yt=0;function bt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,kt,wt,St,_t,Ct=!1,Et=[],Ot=null,Pt=null,Mt=null,Tt=new Map,jt=new Map,Rt=[],At="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ot=null;break;case"dragenter":case"dragleave":Pt=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jt.delete(t.pointerId)}}function Dt(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=mi(t))&&kt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Lt(e){var t=vi(e.target);if(null!==t){var n=Ve(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ze(n)))return e.blockedOn=t,void _t(e.priority,(function(){wt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Kt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=mi(n))&&kt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);xe=r,n.target.dispatchEvent(r),xe=null,t.shift()}return!0}function zt(e,t,n){It(e)&&n.delete(t)}function Ft(){Ct=!1,null!==Ot&&It(Ot)&&(Ot=null),null!==Pt&&It(Pt)&&(Pt=null),null!==Mt&&It(Mt)&&(Mt=null),Tt.forEach(zt),jt.forEach(zt)}function Bt(e,t){e.blockedOn===t&&(e.blockedOn=null,Ct||(Ct=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Ft)))}function Wt(e){function t(t){return Bt(t,e)}if(0<Et.length){Bt(Et[0],e);for(var n=1;n<Et.length;n++){var r=Et[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ot&&Bt(Ot,e),null!==Pt&&Bt(Pt,e),null!==Mt&&Bt(Mt,e),Tt.forEach(t),jt.forEach(t),n=0;n<Rt.length;n++)(r=Rt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Rt.length&&null===(n=Rt[0]).blockedOn;)Lt(n),null===n.blockedOn&&Rt.shift()}var Vt=x.ReactCurrentBatchConfig;function Zt(e,t,n,r){var i=yt,a=Vt.transition;Vt.transition=null;try{yt=1,$t(e,t,n,r)}finally{yt=i,Vt.transition=a}}function Ht(e,t,n,r){var i=yt,a=Vt.transition;Vt.transition=null;try{yt=4,$t(e,t,n,r)}finally{yt=i,Vt.transition=a}}function $t(e,t,n,r){var i=Kt(e,t,n,r);if(null===i)Vr(e,t,r,Ut,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ot=Dt(Ot,e,t,n,r,i),!0;case"dragenter":return Pt=Dt(Pt,e,t,n,r,i),!0;case"mouseover":return Mt=Dt(Mt,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Tt.set(a,Dt(Tt.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,jt.set(a,Dt(jt.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<At.indexOf(e)){for(;null!==i;){var a=mi(i);if(null!==a&&xt(a),null===(a=Kt(e,t,n,r))&&Vr(e,t,r,Ut,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else Vr(e,t,r,null,n)}var Ut=null;function Kt(e,t,n,r){if(Ut=null,null!==(e=vi(e=ke(r))))if(null===(t=Ve(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ze(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Ut=e,null}function qt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,Gt=null,Xt=null;function Qt(){if(Xt)return Xt;var e,t,n=Gt,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Xt=i.slice(e,1<t?1-t:void 0)}function Jt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function en(){return!0}function tn(){return!1}function nn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?en:tn,this.isPropagationStopped=tn,this}return I(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=en)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=en)},persist:function(){},isPersistent:en}),t}var rn,an,on,sn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=nn(sn),un=I({},sn,{view:0,detail:0}),cn=nn(un),fn=I({},un,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==on&&(on&&"mousemove"===e.type?(rn=e.screenX-on.screenX,an=e.screenY-on.screenY):an=rn=0,on=e),rn)},movementY:function(e){return"movementY"in e?e.movementY:an}}),dn=nn(fn),hn=nn(I({},fn,{dataTransfer:0})),pn=nn(I({},un,{relatedTarget:0})),vn=nn(I({},sn,{animationName:0,elapsedTime:0,pseudoElement:0})),mn=I({},sn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),gn=nn(mn),yn=nn(I({},sn,{data:0})),bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function wn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Sn(){return wn}var _n=I({},un,{key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Jt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?xn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sn,charCode:function(e){return"keypress"===e.type?Jt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Jt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Cn=nn(_n),En=nn(I({},fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),On=nn(I({},un,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sn})),Pn=nn(I({},sn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mn=I({},fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Tn=nn(Mn),jn=[9,13,27,32],Rn=c&&"CompositionEvent"in window,An=null;c&&"documentMode"in document&&(An=document.documentMode);var Nn=c&&"TextEvent"in window&&!An,Dn=c&&(!Rn||An&&8<An&&11>=An),Ln=String.fromCharCode(32),In=!1;function zn(e,t){switch(e){case"keyup":return-1!==jn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fn(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Bn=!1;var Wn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Wn[e.type]:"textarea"===t}function Zn(e,t,n,r){Ee(r),0<(t=Hr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Hn=null,$n=null;function Un(e){Lr(e,0)}function Kn(e){if(K(gi(e)))return e}function qn(e,t){if("change"===e)return t}var Yn=!1;if(c){var Gn;if(c){var Xn="oninput"in document;if(!Xn){var Qn=document.createElement("div");Qn.setAttribute("oninput","return;"),Xn="function"===typeof Qn.oninput}Gn=Xn}else Gn=!1;Yn=Gn&&(!document.documentMode||9<document.documentMode)}function Jn(){Hn&&(Hn.detachEvent("onpropertychange",er),$n=Hn=null)}function er(e){if("value"===e.propertyName&&Kn($n)){var t=[];Zn(t,$n,e,ke(e)),je(Un,t)}}function tr(e,t,n){"focusin"===e?(Jn(),$n=n,(Hn=t).attachEvent("onpropertychange",er)):"focusout"===e&&Jn()}function nr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kn($n)}function rr(e,t){if("click"===e)return Kn(t)}function ir(e,t){if("input"===e||"change"===e)return Kn(t)}var ar="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function or(e,t){if(ar(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!ar(e[i],t[i]))return!1}return!0}function sr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=sr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=sr(r)}}function ur(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ur(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function cr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function fr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function dr(e){var t=cr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ur(n.ownerDocument.documentElement,n)){if(null!==r&&fr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=void 0===r.end?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=lr(n,a);var o=lr(n,r);i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var hr=c&&"documentMode"in document&&11>=document.documentMode,pr=null,vr=null,mr=null,gr=!1;function yr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;gr||null==pr||pr!==q(r)||("selectionStart"in(r=pr)&&fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},mr&&or(mr,r)||(mr=r,0<(r=Hr(vr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=pr)))}function br(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var xr={animationend:br("Animation","AnimationEnd"),animationiteration:br("Animation","AnimationIteration"),animationstart:br("Animation","AnimationStart"),transitionend:br("Transition","TransitionEnd")},kr={},wr={};function Sr(e){if(kr[e])return kr[e];if(!xr[e])return e;var t,n=xr[e];for(t in n)if(n.hasOwnProperty(t)&&t in wr)return kr[e]=n[t];return e}c&&(wr=document.createElement("div").style,"AnimationEvent"in window||(delete xr.animationend.animation,delete xr.animationiteration.animation,delete xr.animationstart.animation),"TransitionEvent"in window||delete xr.transitionend.transition);var _r=Sr("animationend"),Cr=Sr("animationiteration"),Er=Sr("animationstart"),Or=Sr("transitionend"),Pr=new Map,Mr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Tr(e,t){Pr.set(e,t),l(t,[e])}for(var jr=0;jr<Mr.length;jr++){var Rr=Mr[jr];Tr(Rr.toLowerCase(),"on"+(Rr[0].toUpperCase()+Rr.slice(1)))}Tr(_r,"onAnimationEnd"),Tr(Cr,"onAnimationIteration"),Tr(Er,"onAnimationStart"),Tr("dblclick","onDoubleClick"),Tr("focusin","onFocus"),Tr("focusout","onBlur"),Tr(Or,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ar="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Nr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ar));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,o,s,l,u){if(We.apply(this,arguments),Le){if(!Le)throw Error(a(198));var c=Ie;Le=!1,Ie=null,ze||(ze=!0,Fe=c)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;Dr(i,s,u),a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;Dr(i,s,u),a=l}}}if(ze)throw e=Fe,ze=!1,Fe=null,e}function Ir(e,t){var n=t[di];void 0===n&&(n=t[di]=new Set);var r=e+"__bubble";n.has(r)||(Wr(t,e,2,!1),n.add(r))}function zr(e,t,n){var r=0;t&&(r|=4),Wr(n,e,r,t)}var Fr="_reactListening"+Math.random().toString(36).slice(2);function Br(e){if(!e[Fr]){e[Fr]=!0,o.forEach((function(t){"selectionchange"!==t&&(Nr.has(t)||zr(t,!1,e),zr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Fr]||(t[Fr]=!0,zr("selectionchange",!1,t))}}function Wr(e,t,n,r){switch(qt(t)){case 1:var i=Zt;break;case 4:i=Ht;break;default:i=$t}n=i.bind(null,t,n,e),i=void 0,!Ae||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Vr(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=r.return;null!==o;){var l=o.tag;if((3===l||4===l)&&((l=o.stateNode.containerInfo)===i||8===l.nodeType&&l.parentNode===i))return;o=o.return}for(;null!==s;){if(null===(o=vi(s)))return;if(5===(l=o.tag)||6===l){r=a=o;continue e}s=s.parentNode}}r=r.return}je((function(){var r=a,i=ke(n),o=[];e:{var s=Pr.get(e);if(void 0!==s){var l=ln,u=e;switch(e){case"keypress":if(0===Jt(n))break e;case"keydown":case"keyup":l=Cn;break;case"focusin":u="focus",l=pn;break;case"focusout":u="blur",l=pn;break;case"beforeblur":case"afterblur":l=pn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=dn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=On;break;case _r:case Cr:case Er:l=vn;break;case Or:l=Pn;break;case"scroll":l=cn;break;case"wheel":l=Tn;break;case"copy":case"cut":case"paste":l=gn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=En}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==s?s+"Capture":null:s;c=[];for(var h,p=r;null!==p;){var v=(h=p).stateNode;if(5===h.tag&&null!==v&&(h=v,null!==d&&(null!=(v=Re(p,d))&&c.push(Zr(p,v,h)))),f)break;p=p.return}0<c.length&&(s=new l(s,u,null,n,i),o.push({event:s,listeners:c}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===xe||!(u=n.relatedTarget||n.fromElement)||!vi(u)&&!u[fi])&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(u=(u=n.relatedTarget||n.toElement)?vi(u):null)&&(u!==(f=Ve(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=r),l!==u)){if(c=dn,v="onMouseLeave",d="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(c=En,v="onPointerLeave",d="onPointerEnter",p="pointer"),f=null==l?s:gi(l),h=null==u?s:gi(u),(s=new c(v,p+"leave",l,n,i)).target=f,s.relatedTarget=h,v=null,vi(i)===r&&((c=new c(d,p+"enter",u,n,i)).target=h,c.relatedTarget=f,v=c),f=v,l&&u)e:{for(d=u,p=0,h=c=l;h;h=$r(h))p++;for(h=0,v=d;v;v=$r(v))h++;for(;0<p-h;)c=$r(c),p--;for(;0<h-p;)d=$r(d),h--;for(;p--;){if(c===d||null!==d&&c===d.alternate)break e;c=$r(c),d=$r(d)}c=null}else c=null;null!==l&&Ur(o,s,l,c,!1),null!==u&&null!==f&&Ur(o,f,u,c,!0)}if("select"===(l=(s=r?gi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=qn;else if(Vn(s))if(Yn)m=ir;else{m=nr;var g=tr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=rr);switch(m&&(m=m(e,r))?Zn(o,m,n,i):(g&&g(e,s,r),"focusout"===e&&(g=s._wrapperState)&&g.controlled&&"number"===s.type&&ee(s,"number",s.value)),g=r?gi(r):window,e){case"focusin":(Vn(g)||"true"===g.contentEditable)&&(pr=g,vr=r,mr=null);break;case"focusout":mr=vr=pr=null;break;case"mousedown":gr=!0;break;case"contextmenu":case"mouseup":case"dragend":gr=!1,yr(o,n,i);break;case"selectionchange":if(hr)break;case"keydown":case"keyup":yr(o,n,i)}var y;if(Rn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Bn?zn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Bn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Bn&&(y=Qt()):(Gt="value"in(Yt=i)?Yt.value:Yt.textContent,Bn=!0)),0<(g=Hr(r,b)).length&&(b=new yn(b,e,null,n,i),o.push({event:b,listeners:g}),y?b.data=y:null!==(y=Fn(n))&&(b.data=y))),(y=Nn?function(e,t){switch(e){case"compositionend":return Fn(t);case"keypress":return 32!==t.which?null:(In=!0,Ln);case"textInput":return(e=t.data)===Ln&&In?null:e;default:return null}}(e,n):function(e,t){if(Bn)return"compositionend"===e||!Rn&&zn(e,t)?(e=Qt(),Xt=Gt=Yt=null,Bn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Hr(r,"onBeforeInput")).length&&(i=new yn("onBeforeInput","beforeinput",null,n,i),o.push({event:i,listeners:r}),i.data=y))}Lr(o,t)}))}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Hr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=Re(e,n))&&r.unshift(Zr(e,a,i)),null!=(a=Re(e,t))&&r.push(Zr(e,a,i))),e=e.return}return r}function $r(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Ur(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=Re(n,a))&&o.unshift(Zr(n,l,s)):i||null!=(l=Re(n,a))&&o.push(Zr(n,l,s))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var Kr=/\r\n?/g,qr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Kr,"\n").replace(qr,"")}function Gr(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(a(425))}function Xr(){}var Qr=null;function Jr(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ei="function"===typeof setTimeout?setTimeout:void 0,ti="function"===typeof clearTimeout?clearTimeout:void 0,ni="function"===typeof Promise?Promise:void 0,ri="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof ni?function(e){return ni.resolve(null).then(e).catch(ii)}:ei;function ii(e){setTimeout((function(){throw e}))}function ai(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Wt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Wt(t)}function oi(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function si(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var li=Math.random().toString(36).slice(2),ui="__reactFiber$"+li,ci="__reactProps$"+li,fi="__reactContainer$"+li,di="__reactEvents$"+li,hi="__reactListeners$"+li,pi="__reactHandles$"+li;function vi(e){var t=e[ui];if(t)return t;for(var n=e.parentNode;n;){if(t=n[fi]||n[ui]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=si(e);null!==e;){if(n=e[ui])return n;e=si(e)}return t}n=(e=n).parentNode}return null}function mi(e){return!(e=e[ui]||e[fi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function gi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function yi(e){return e[ci]||null}var bi=[],xi=-1;function ki(e){return{current:e}}function wi(e){0>xi||(e.current=bi[xi],bi[xi]=null,xi--)}function Si(e,t){xi++,bi[xi]=e.current,e.current=t}var _i={},Ci=ki(_i),Ei=ki(!1),Oi=_i;function Pi(e,t){var n=e.type.contextTypes;if(!n)return _i;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function Mi(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ti(){wi(Ei),wi(Ci)}function ji(e,t,n){if(Ci.current!==_i)throw Error(a(168));Si(Ci,t),Si(Ei,n)}function Ri(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(a(108,Z(e)||"Unknown",i));return I({},n,r)}function Ai(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_i,Oi=Ci.current,Si(Ci,e),Si(Ei,Ei.current),!0}function Ni(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=Ri(e,t,Oi),r.__reactInternalMemoizedMergedChildContext=e,wi(Ei),wi(Ci),Si(Ci,e)):wi(Ei),Si(Ei,n)}var Di=null,Li=!1,Ii=!1;function zi(e){null===Di?Di=[e]:Di.push(e)}function Fi(){if(!Ii&&null!==Di){Ii=!0;var e=0,t=yt;try{var n=Di;for(yt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Di=null,Li=!1}catch(i){throw null!==Di&&(Di=Di.slice(e+1)),Ke(Je,Fi),i}finally{yt=t,Ii=!1}}return null}var Bi=x.ReactCurrentBatchConfig;function Wi(e,t){if(e&&e.defaultProps){for(var n in t=I({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Vi=ki(null),Zi=null,Hi=null,$i=null;function Ui(){$i=Hi=Zi=null}function Ki(e){var t=Vi.current;wi(Vi),e._currentValue=t}function qi(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Yi(e,t){Zi=e,$i=Hi=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ys=!0),e.firstContext=null)}function Gi(e){var t=e._currentValue;if($i!==e)if(e={context:e,memoizedValue:t,next:null},null===Hi){if(null===Zi)throw Error(a(308));Hi=e,Zi.dependencies={lanes:0,firstContext:e}}else Hi=Hi.next=e;return t}var Xi=null,Qi=!1;function Ji(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ea(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function ta(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function na(e,t){var n=e.updateQueue;null!==n&&(n=n.shared,null!==bl&&0!==(1&e.mode)&&0===(2&yl)?(null===(e=n.interleaved)?(t.next=t,null===Xi?Xi=[n]:Xi.push(n)):(t.next=e.next,e.next=t),n.interleaved=t):(null===(e=n.pending)?t.next=t:(t.next=e.next,e.next=t),n.pending=t))}function ra(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function ia(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function aa(e,t,n,r){var i=e.updateQueue;Qi=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var f=i.baseState;for(o=0,c=u=l=null,s=a;;){var d=s.lane,h=s.eventTime;if((r&d)===d){null!==c&&(c=c.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,v=s;switch(d=t,h=n,v.tag){case 1:if("function"===typeof(p=v.payload)){f=p.call(h,f,d);break e}f=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(d="function"===typeof(p=v.payload)?p.call(h,f,d):p)||void 0===d)break e;f=I({},f,d);break e;case 2:Qi=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else h={eventTime:h,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=f):c=c.next=h,o|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===c&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null!==(t=i.shared.interleaved)){i=t;do{o|=i.lane,i=i.next}while(i!==t)}else null===a&&(i.shared.lanes=0);El|=o,e.lanes=o,e.memoizedState=f}}function oa(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(a(191,i));i.call(r)}}}var sa=(new r.Component).refs;function la(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:I({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var ua={isMounted:function(e){return!!(e=e._reactInternals)&&Ve(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=Hl(e),a=ta(r,i);a.payload=t,void 0!==n&&null!==n&&(a.callback=n),na(e,a),null!==(t=$l(e,i,r))&&ra(t,e,i)},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Zl(),i=Hl(e),a=ta(r,i);a.tag=1,a.payload=t,void 0!==n&&null!==n&&(a.callback=n),na(e,a),null!==(t=$l(e,i,r))&&ra(t,e,i)},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Zl(),r=Hl(e),i=ta(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),na(e,i),null!==(t=$l(e,r,n))&&ra(t,e,r)}};function ca(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!or(n,r)||!or(i,a))}function fa(e,t,n){var r=!1,i=_i,a=t.contextType;return"object"===typeof a&&null!==a?a=Gi(a):(i=Mi(t)?Oi:Ci.current,a=(r=null!==(r=t.contextTypes)&&void 0!==r)?Pi(e,i):_i),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ua,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function da(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ua.enqueueReplaceState(t,t.state,null)}function ha(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=sa,Ji(e);var a=t.contextType;"object"===typeof a&&null!==a?i.context=Gi(a):(a=Mi(t)?Oi:Ci.current,i.context=Pi(e,a)),i.state=e.memoizedState,"function"===typeof(a=t.getDerivedStateFromProps)&&(la(e,t,a,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&ua.enqueueReplaceState(i,i.state,null),aa(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}var pa=[],va=0,ma=null,ga=0,ya=[],ba=0,xa=null,ka=1,wa="";function Sa(e,t){pa[va++]=ga,pa[va++]=ma,ma=e,ga=t}function _a(e,t,n){ya[ba++]=ka,ya[ba++]=wa,ya[ba++]=xa,xa=e;var r=ka;e=wa;var i=32-ot(r)-1;r&=~(1<<i),n+=1;var a=32-ot(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ka=1<<32-ot(t)+i|n<<i|r,wa=a+e}else ka=1<<a|n<<i|r,wa=e}function Ca(e){null!==e.return&&(Sa(e,1),_a(e,1,0))}function Ea(e){for(;e===ma;)ma=pa[--va],pa[va]=null,ga=pa[--va],pa[va]=null;for(;e===xa;)xa=ya[--ba],ya[ba]=null,wa=ya[--ba],ya[ba]=null,ka=ya[--ba],ya[ba]=null}var Oa=null,Pa=null,Ma=!1,Ta=null;function ja(e,t){var n=ku(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function Ra(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,Oa=e,Pa=oi(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,Oa=e,Pa=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==xa?{id:ka,overflow:wa}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=ku(18,null,null,0)).stateNode=t,n.return=e,e.child=n,Oa=e,Pa=null,!0);default:return!1}}function Aa(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function Na(e){if(Ma){var t=Pa;if(t){var n=t;if(!Ra(e,t)){if(Aa(e))throw Error(a(418));t=oi(n.nextSibling);var r=Oa;t&&Ra(e,t)?ja(r,n):(e.flags=-4097&e.flags|2,Ma=!1,Oa=e)}}else{if(Aa(e))throw Error(a(418));e.flags=-4097&e.flags|2,Ma=!1,Oa=e}}}function Da(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Oa=e}function La(e){if(e!==Oa)return!1;if(!Ma)return Da(e),Ma=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!Jr(e.type,e.memoizedProps)),t&&(t=Pa)){if(Aa(e)){for(e=Pa;e;)e=oi(e.nextSibling);throw Error(a(418))}for(;t;)ja(e,t),t=oi(t.nextSibling)}if(Da(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Pa=oi(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}Pa=null}}else Pa=Oa?oi(e.stateNode.nextSibling):null;return!0}function Ia(){Pa=Oa=null,Ma=!1}function za(e){null===Ta?Ta=[e]:Ta.push(e)}function Fa(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var i=r,o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:(t=function(e){var t=i.refs;t===sa&&(t=i.refs={}),null===e?delete t[o]:t[o]=e},t._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ba(e,t){throw e=Object.prototype.toString.call(t),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Wa(e){return(0,e._init)(e._payload)}function Va(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Su(e,t)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Ou(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===S?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===R&&Wa(a)===t.type)?((r=i(t,n.props)).ref=Fa(e,t,n),r.return=e,r):((r=_u(n.type,n.key,n.props,null,e.mode,r)).ref=Fa(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Pu(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,a){return null===t||7!==t.tag?((t=Cu(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Ou(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case k:return(n=_u(t.type,t.key,t.props,null,e.mode,n)).ref=Fa(e,null,t),n.return=e,n;case w:return(t=Pu(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||D(t))return(t=Cu(t,e.mode,n,null)).return=e,t;Ba(e,t)}return null}function h(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case k:return n.key===i?u(e,t,n,r):null;case w:return n.key===i?c(e,t,n,r):null;case R:return h(e,t,(i=n._init)(n._payload),r)}if(te(n)||D(n))return null!==i?null:f(e,t,n,r,null);Ba(e,n)}return null}function p(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case k:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return p(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||D(r))return f(t,e=e.get(n)||null,r,i,null);Ba(t,r)}return null}function v(i,a,s,l){for(var u=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=h(i,f,s[v],l);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(i,f),a=o(g,a,v),null===c?u=g:c.sibling=g,c=g,f=m}if(v===s.length)return n(i,f),Ma&&Sa(i,v),u;if(null===f){for(;v<s.length;v++)null!==(f=d(i,s[v],l))&&(a=o(f,a,v),null===c?u=f:c.sibling=f,c=f);return Ma&&Sa(i,v),u}for(f=r(i,f);v<s.length;v++)null!==(m=p(f,i,v,s[v],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(i,e)})),Ma&&Sa(i,v),u}function m(i,s,l,u){var c=D(l);if("function"!==typeof c)throw Error(a(150));if(null==(l=c.call(l)))throw Error(a(151));for(var f=c=null,v=s,m=s=0,g=null,y=l.next();null!==v&&!y.done;m++,y=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=h(i,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=o(b,s,m),null===f?c=b:f.sibling=b,f=b,v=g}if(y.done)return n(i,v),Ma&&Sa(i,m),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=d(i,y.value,u))&&(s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return Ma&&Sa(i,m),c}for(v=r(i,v);!y.done;m++,y=l.next())null!==(y=p(v,i,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=o(y,s,m),null===f?c=y:f.sibling=y,f=y);return e&&v.forEach((function(e){return t(i,e)})),Ma&&Sa(i,m),c}return function e(r,a,o,l){if("object"===typeof o&&null!==o&&o.type===S&&null===o.key&&(o=o.props.children),"object"===typeof o&&null!==o){switch(o.$$typeof){case k:e:{for(var u=o.key,c=a;null!==c;){if(c.key===u){if((u=o.type)===S){if(7===c.tag){n(r,c.sibling),(a=i(c,o.props.children)).return=r,r=a;break e}}else if(c.elementType===u||"object"===typeof u&&null!==u&&u.$$typeof===R&&Wa(u)===c.type){n(r,c.sibling),(a=i(c,o.props)).ref=Fa(r,c,o),a.return=r,r=a;break e}n(r,c);break}t(r,c),c=c.sibling}o.type===S?((a=Cu(o.props.children,r.mode,l,o.key)).return=r,r=a):((l=_u(o.type,o.key,o.props,null,r.mode,l)).ref=Fa(r,a,o),l.return=r,r=l)}return s(r);case w:e:{for(c=o.key;null!==a;){if(a.key===c){if(4===a.tag&&a.stateNode.containerInfo===o.containerInfo&&a.stateNode.implementation===o.implementation){n(r,a.sibling),(a=i(a,o.children||[])).return=r,r=a;break e}n(r,a);break}t(r,a),a=a.sibling}(a=Pu(o,r.mode,l)).return=r,r=a}return s(r);case R:return e(r,a,(c=o._init)(o._payload),l)}if(te(o))return v(r,a,o,l);if(D(o))return m(r,a,o,l);Ba(r,o)}return"string"===typeof o&&""!==o||"number"===typeof o?(o=""+o,null!==a&&6===a.tag?(n(r,a.sibling),(a=i(a,o)).return=r,r=a):(n(r,a),(a=Ou(o,r.mode,l)).return=r,r=a),s(r)):n(r,a)}}var Za=Va(!0),Ha=Va(!1),$a={},Ua=ki($a),Ka=ki($a),qa=ki($a);function Ya(e){if(e===$a)throw Error(a(174));return e}function Ga(e,t){switch(Si(qa,t),Si(Ka,e),Si(Ua,$a),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}wi(Ua),Si(Ua,t)}function Xa(){wi(Ua),wi(Ka),wi(qa)}function Qa(e){Ya(qa.current);var t=Ya(Ua.current),n=le(t,e.type);t!==n&&(Si(Ka,e),Si(Ua,n))}function Ja(e){Ka.current===e&&(wi(Ua),wi(Ka))}var eo=ki(0);function to(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var no=[];function ro(){for(var e=0;e<no.length;e++)no[e]._workInProgressVersionPrimary=null;no.length=0}var io=x.ReactCurrentDispatcher,ao=x.ReactCurrentBatchConfig,oo=0,so=null,lo=null,uo=null,co=!1,fo=!1,ho=0,po=0;function vo(){throw Error(a(321))}function mo(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ar(e[n],t[n]))return!1;return!0}function go(e,t,n,r,i,o){if(oo=o,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,io.current=null===e||null===e.memoizedState?Jo:es,e=n(r,i),fo){o=0;do{if(fo=!1,ho=0,25<=o)throw Error(a(301));o+=1,uo=lo=null,t.updateQueue=null,io.current=ts,e=n(r,i)}while(fo)}if(io.current=Qo,t=null!==lo&&null!==lo.next,oo=0,uo=lo=so=null,co=!1,t)throw Error(a(300));return e}function yo(){var e=0!==ho;return ho=0,e}function bo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===uo?so.memoizedState=uo=e:uo=uo.next=e,uo}function xo(){if(null===lo){var e=so.alternate;e=null!==e?e.memoizedState:null}else e=lo.next;var t=null===uo?so.memoizedState:uo.next;if(null!==t)uo=t,lo=e;else{if(null===e)throw Error(a(310));e={memoizedState:(lo=e).memoizedState,baseState:lo.baseState,baseQueue:lo.baseQueue,queue:lo.queue,next:null},null===uo?so.memoizedState=uo=e:uo=uo.next=e}return uo}function ko(e,t){return"function"===typeof t?t(e):t}function wo(e){var t=xo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=lo,i=r.baseQueue,o=n.pending;if(null!==o){if(null!==i){var s=i.next;i.next=o.next,o.next=s}r.baseQueue=i=o,n.pending=null}if(null!==i){o=i.next,r=r.baseState;var l=s=null,u=null,c=o;do{var f=c.lane;if((oo&f)===f)null!==u&&(u=u.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),r=c.hasEagerState?c.eagerState:e(r,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===u?(l=u=d,s=r):u=u.next=d,so.lanes|=f,El|=f}c=c.next}while(null!==c&&c!==o);null===u?s=r:u.next=l,ar(r,t.memoizedState)||(ys=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=u,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{o=i.lane,so.lanes|=o,El|=o,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function So(e){var t=xo(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{o=e(o,s.action),s=s.next}while(s!==i);ar(o,t.memoizedState)||(ys=!0),t.memoizedState=o,null===t.baseQueue&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function _o(){}function Co(e,t){var n=so,r=xo(),i=t(),o=!ar(r.memoizedState,i);if(o&&(r.memoizedState=i,ys=!0),r=r.queue,Lo(Po.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||null!==uo&&1&uo.memoizedState.tag){if(n.flags|=2048,jo(9,Oo.bind(null,n,r,i,t),void 0,null),null===bl)throw Error(a(349));0!==(30&oo)||Eo(n,t,i)}return i}function Eo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=so.updateQueue)?(t={lastEffect:null,stores:null},so.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Oo(e,t,n,r){t.value=n,t.getSnapshot=r,Mo(t)&&$l(e,1,-1)}function Po(e,t,n){return n((function(){Mo(t)&&$l(e,1,-1)}))}function Mo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ar(e,n)}catch(r){return!0}}function To(e){var t=bo();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:ko,lastRenderedState:e},t.queue=e,e=e.dispatch=Ko.bind(null,so,e),[t.memoizedState,e]}function jo(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=so.updateQueue)?(t={lastEffect:null,stores:null},so.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ro(){return xo().memoizedState}function Ao(e,t,n,r){var i=bo();so.flags|=e,i.memoizedState=jo(1|t,n,void 0,void 0===r?null:r)}function No(e,t,n,r){var i=xo();r=void 0===r?null:r;var a=void 0;if(null!==lo){var o=lo.memoizedState;if(a=o.destroy,null!==r&&mo(r,o.deps))return void(i.memoizedState=jo(t,n,a,r))}so.flags|=e,i.memoizedState=jo(1|t,n,a,r)}function Do(e,t){return Ao(8390656,8,e,t)}function Lo(e,t){return No(2048,8,e,t)}function Io(e,t){return No(4,2,e,t)}function zo(e,t){return No(4,4,e,t)}function Fo(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Bo(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,No(4,4,Fo.bind(null,t,e),n)}function Wo(){}function Vo(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Zo(e,t){var n=xo();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&mo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Ho(e,t){var n=yt;yt=0!==n&&4>n?n:4,e(!0);var r=ao.transition;ao.transition={};try{e(!1),t()}finally{yt=n,ao.transition=r}}function $o(){return xo().memoizedState}function Uo(e,t,n){var r=Hl(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},qo(e)?Yo(t,n):(Go(e,t,n),null!==(e=$l(e,r,n=Zl()))&&Xo(e,t,r))}function Ko(e,t,n){var r=Hl(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(qo(e))Yo(t,i);else{Go(e,t,i);var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,ar(s,o))return}catch(l){}null!==(e=$l(e,r,n=Zl()))&&Xo(e,t,r)}}function qo(e){var t=e.alternate;return e===so||null!==t&&t===so}function Yo(e,t){fo=co=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Go(e,t,n){null!==bl&&0!==(1&e.mode)&&0===(2&yl)?(null===(e=t.interleaved)?(n.next=n,null===Xi?Xi=[t]:Xi.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(null===(e=t.pending)?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function Xo(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Qo={readContext:Gi,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useInsertionEffect:vo,useLayoutEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useMutableSource:vo,useSyncExternalStore:vo,useId:vo,unstable_isNewReconciler:!1},Jo={readContext:Gi,useCallback:function(e,t){return bo().memoizedState=[e,void 0===t?null:t],e},useContext:Gi,useEffect:Do,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ao(4194308,4,Fo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ao(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ao(4,2,e,t)},useMemo:function(e,t){var n=bo();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=bo();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Uo.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},bo().memoizedState=e},useState:To,useDebugValue:Wo,useDeferredValue:function(e){var t=To(e),n=t[0],r=t[1];return Do((function(){var t=ao.transition;ao.transition={};try{r(e)}finally{ao.transition=t}}),[e]),n},useTransition:function(){var e=To(!1),t=e[0];return e=Ho.bind(null,e[1]),bo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=so,i=bo();if(Ma){if(void 0===n)throw Error(a(407));n=n()}else{if(n=t(),null===bl)throw Error(a(349));0!==(30&oo)||Eo(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Do(Po.bind(null,r,o,e),[e]),r.flags|=2048,jo(9,Oo.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=bo(),t=bl.identifierPrefix;if(Ma){var n=wa;t=":"+t+"R"+(n=(ka&~(1<<32-ot(ka)-1)).toString(32)+n),0<(n=ho++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=po++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Gi,useCallback:Vo,useContext:Gi,useEffect:Lo,useImperativeHandle:Bo,useInsertionEffect:Io,useLayoutEffect:zo,useMemo:Zo,useReducer:wo,useRef:Ro,useState:function(){return wo(ko)},useDebugValue:Wo,useDeferredValue:function(e){var t=wo(ko),n=t[0],r=t[1];return Lo((function(){var t=ao.transition;ao.transition={};try{r(e)}finally{ao.transition=t}}),[e]),n},useTransition:function(){return[wo(ko)[0],xo().memoizedState]},useMutableSource:_o,useSyncExternalStore:Co,useId:$o,unstable_isNewReconciler:!1},ts={readContext:Gi,useCallback:Vo,useContext:Gi,useEffect:Lo,useImperativeHandle:Bo,useInsertionEffect:Io,useLayoutEffect:zo,useMemo:Zo,useReducer:So,useRef:Ro,useState:function(){return So(ko)},useDebugValue:Wo,useDeferredValue:function(e){var t=So(ko),n=t[0],r=t[1];return Lo((function(){var t=ao.transition;ao.transition={};try{r(e)}finally{ao.transition=t}}),[e]),n},useTransition:function(){return[So(ko)[0],xo().memoizedState]},useMutableSource:_o,useSyncExternalStore:Co,useId:$o,unstable_isNewReconciler:!1};function ns(e,t){try{var n="",r=t;do{n+=W(r),r=r.return}while(r);var i=n}catch(a){i="\nError generating stack: "+a.message+"\n"+a.stack}return{value:e,source:t,stack:i}}function rs(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var is,as,os,ss,ls="function"===typeof WeakMap?WeakMap:Map;function us(e,t,n){(n=ta(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Al||(Al=!0,Nl=r),rs(0,t)},n}function cs(e,t,n){(n=ta(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){rs(0,t)}}var a=e.stateNode;return null!==a&&"function"===typeof a.componentDidCatch&&(n.callback=function(){rs(0,t),"function"!==typeof r&&(null===Dl?Dl=new Set([this]):Dl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ls;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=vu.bind(null,e,t,n),t.then(e,e))}function ds(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function hs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=ta(-1,1)).tag=2,na(n,t))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}function ps(e,t){if(!Ma)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vs(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ms(e,t,n){var r=t.pendingProps;switch(Ea(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vs(t),null;case 1:case 17:return Mi(t.type)&&Ti(),vs(t),null;case 3:return r=t.stateNode,Xa(),wi(Ei),wi(Ci),ro(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(La(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==Ta&&(Gl(Ta),Ta=null))),as(e,t),vs(t),null;case 5:Ja(t);var i=Ya(qa.current);if(n=t.type,null!==e&&null!=t.stateNode)os(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(a(166));return vs(t),null}if(e=Ya(Ua.current),La(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[ui]=t,r[ci]=o,e=0!==(1&t.mode),n){case"dialog":Ir("cancel",r),Ir("close",r);break;case"iframe":case"object":case"embed":Ir("load",r);break;case"video":case"audio":for(i=0;i<Ar.length;i++)Ir(Ar[i],r);break;case"source":Ir("error",r);break;case"img":case"image":case"link":Ir("error",r),Ir("load",r);break;case"details":Ir("toggle",r);break;case"input":G(r,o),Ir("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Ir("invalid",r);break;case"textarea":ie(r,o),Ir("invalid",r)}for(var l in ye(n,o),i=null,o)if(o.hasOwnProperty(l)){var u=o[l];"children"===l?"string"===typeof u?r.textContent!==u&&(Gr(r.textContent,u,e),i=["children",u]):"number"===typeof u&&r.textContent!==""+u&&(Gr(r.textContent,u,e),i=["children",""+u]):s.hasOwnProperty(l)&&null!=u&&"onScroll"===l&&Ir("scroll",r)}switch(n){case"input":U(r),J(r,o,!0);break;case"textarea":U(r),oe(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=Xr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ui]=t,e[ci]=r,is(e,t,!1,!1),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Ir("cancel",e),Ir("close",e),i=r;break;case"iframe":case"object":case"embed":Ir("load",e),i=r;break;case"video":case"audio":for(i=0;i<Ar.length;i++)Ir(Ar[i],e);i=r;break;case"source":Ir("error",e),i=r;break;case"img":case"image":case"link":Ir("error",e),Ir("load",e),i=r;break;case"details":Ir("toggle",e),i=r;break;case"input":G(e,r),i=Y(e,r),Ir("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=I({},r,{value:void 0}),Ir("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),Ir("invalid",e)}for(o in ye(n,i),u=i)if(u.hasOwnProperty(o)){var c=u[o];"style"===o?me(e,c):"dangerouslySetInnerHTML"===o?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===o?"string"===typeof c?("textarea"!==n||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(s.hasOwnProperty(o)?null!=c&&"onScroll"===o&&Ir("scroll",e):null!=c&&b(e,o,c,l))}switch(n){case"input":U(e),J(e,r,!1);break;case"textarea":U(e),oe(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(o=r.value)?ne(e,!!r.multiple,o,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Xr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return vs(t),null;case 6:if(e&&null!=t.stateNode)ss(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));if(n=Ya(qa.current),Ya(Ua.current),La(t)){if(r=t.stateNode,n=t.memoizedProps,r[ui]=t,(o=r.nodeValue!==n)&&null!==(e=Oa))switch(l=0!==(1&e.mode),e.tag){case 3:Gr(r.nodeValue,n,l);break;case 5:!0!==e.memoizedProps[void 0]&&Gr(r.nodeValue,n,l)}o&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ui]=t,t.stateNode=r}return vs(t),null;case 13:if(wi(eo),r=t.memoizedState,Ma&&null!==Pa&&0!==(1&t.mode)&&0===(128&t.flags)){for(r=Pa;r;)r=oi(r.nextSibling);return Ia(),t.flags|=98560,t}if(null!==r&&null!==r.dehydrated){if(r=La(t),null===e){if(!r)throw Error(a(318));if(!(r=null!==(r=t.memoizedState)?r.dehydrated:null))throw Error(a(317));r[ui]=t}else Ia(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;return vs(t),null}return null!==Ta&&(Gl(Ta),Ta=null),0!==(128&t.flags)?(t.lanes=n,t):(r=null!==r,n=!1,null===e?La(t):n=null!==e.memoizedState,r&&!n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&eo.current)?0===_l&&(_l=3):au())),null!==t.updateQueue&&(t.flags|=4),vs(t),null);case 4:return Xa(),as(e,t),null===e&&Br(t.stateNode.containerInfo),vs(t),null;case 10:return Ki(t.type._context),vs(t),null;case 19:if(wi(eo),null===(o=t.memoizedState))return vs(t),null;if(r=0!==(128&t.flags),null===(l=o.rendering))if(r)ps(o,!1);else{if(0!==_l||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=to(e))){for(t.flags|=128,ps(o,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(o=n).flags&=14680066,null===(l=o.alternate)?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=l.childLanes,o.lanes=l.lanes,o.child=l.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=l.memoizedProps,o.memoizedState=l.memoizedState,o.updateQueue=l.updateQueue,o.type=l.type,e=l.dependencies,o.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Si(eo,1&eo.current|2),t.child}e=e.sibling}null!==o.tail&&Xe()>Rl&&(t.flags|=128,r=!0,ps(o,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=to(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),ps(o,!0),null===o.tail&&"hidden"===o.tailMode&&!l.alternate&&!Ma)return vs(t),null}else 2*Xe()-o.renderingStartTime>Rl&&1073741824!==n&&(t.flags|=128,r=!0,ps(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=o.last)?n.sibling=l:t.child=l,o.last=l)}return null!==o.tail?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=Xe(),t.sibling=null,n=eo.current,Si(eo,r?1&n|2:1&n),t):(vs(t),null);case 22:case 23:return tu(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&wl)&&(vs(t),6&t.subtreeFlags&&(t.flags|=8192)):vs(t),null;case 24:case 25:return null}throw Error(a(156,t.tag))}is=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},as=function(){},os=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Ya(Ua.current);var a,o=null;switch(n){case"input":i=Y(e,i),r=Y(e,r),o=[];break;case"select":i=I({},i,{value:void 0}),r=I({},r,{value:void 0}),o=[];break;case"textarea":i=re(e,i),r=re(e,r),o=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Xr)}for(c in ye(n,r),n=null,i)if(!r.hasOwnProperty(c)&&i.hasOwnProperty(c)&&null!=i[c])if("style"===c){var l=i[c];for(a in l)l.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(s.hasOwnProperty(c)?o||(o=[]):(o=o||[]).push(c,null));for(c in r){var u=r[c];if(l=null!=i?i[c]:void 0,r.hasOwnProperty(c)&&u!==l&&(null!=u||null!=l))if("style"===c)if(l){for(a in l)!l.hasOwnProperty(a)||u&&u.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in u)u.hasOwnProperty(a)&&l[a]!==u[a]&&(n||(n={}),n[a]=u[a])}else n||(o||(o=[]),o.push(c,n)),n=u;else"dangerouslySetInnerHTML"===c?(u=u?u.__html:void 0,l=l?l.__html:void 0,null!=u&&l!==u&&(o=o||[]).push(c,u)):"children"===c?"string"!==typeof u&&"number"!==typeof u||(o=o||[]).push(c,""+u):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(s.hasOwnProperty(c)?(null!=u&&"onScroll"===c&&Ir("scroll",e),o||l===u||(o=[])):(o=o||[]).push(c,u))}n&&(o=o||[]).push("style",n);var c=o;(t.updateQueue=c)&&(t.flags|=4)}},ss=function(e,t,n,r){n!==r&&(t.flags|=4)};var gs=x.ReactCurrentOwner,ys=!1;function bs(e,t,n,r){t.child=null===e?Ha(t,null,n,r):Za(t,e.child,n,r)}function xs(e,t,n,r,i){n=n.render;var a=t.ref;return Yi(t,i),r=go(e,t,n,r,a,i),n=yo(),null===e||ys?(Ma&&n&&Ca(t),t.flags|=1,bs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function ks(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||wu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=_u(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ws(e,t,a,r,i))}if(a=e.child,0===(e.lanes&i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:or)(o,r)&&e.ref===t.ref)return Bs(e,t,i)}return t.flags|=1,(e=Su(a,r)).ref=t.ref,e.return=t,t.child=e}function ws(e,t,n,r,i){if(null!==e&&or(e.memoizedProps,r)&&e.ref===t.ref){if(ys=!1,0===(e.lanes&i))return t.lanes=e.lanes,Bs(e,t,i);0!==(131072&e.flags)&&(ys=!0)}return Cs(e,t,n,r,i)}function Ss(e,t,n){var r=t.pendingProps,i=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null},Si(Sl,wl),wl|=n;else{if(0===(1073741824&n))return e=null!==a?a.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null},t.updateQueue=null,Si(Sl,wl),wl|=e,null;t.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:n,Si(Sl,wl),wl|=r}else null!==a?(r=a.baseLanes|n,t.memoizedState=null):r=n,Si(Sl,wl),wl|=r;return bs(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Cs(e,t,n,r,i){var a=Mi(n)?Oi:Ci.current;return a=Pi(t,a),Yi(t,i),n=go(e,t,n,r,a,i),r=yo(),null===e||ys?(Ma&&r&&Ca(t),t.flags|=1,bs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Bs(e,t,i))}function Es(e,t,n,r,i){if(Mi(n)){var a=!0;Ai(t)}else a=!1;if(Yi(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),fa(t,n,r),ha(t,n,r,i),r=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=n.contextType;"object"===typeof u&&null!==u?u=Gi(u):u=Pi(t,u=Mi(n)?Oi:Ci.current);var c=n.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof o.getSnapshotBeforeUpdate;f||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==r||l!==u)&&da(t,o,r,u),Qi=!1;var d=t.memoizedState;o.state=d,aa(t,r,o,i),l=t.memoizedState,s!==r||d!==l||Ei.current||Qi?("function"===typeof c&&(la(t,n,c,r),l=t.memoizedState),(s=Qi||ca(t,n,s,r,d,l,u))?(f||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||("function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"===typeof o.componentDidMount&&(t.flags|=4194308)):("function"===typeof o.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),o.props=r,o.state=l,o.context=u,r=s):("function"===typeof o.componentDidMount&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,ea(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Wi(t.type,s),o.props=u,f=t.pendingProps,d=o.context,"object"===typeof(l=n.contextType)&&null!==l?l=Gi(l):l=Pi(t,l=Mi(n)?Oi:Ci.current);var h=n.getDerivedStateFromProps;(c="function"===typeof h||"function"===typeof o.getSnapshotBeforeUpdate)||"function"!==typeof o.UNSAFE_componentWillReceiveProps&&"function"!==typeof o.componentWillReceiveProps||(s!==f||d!==l)&&da(t,o,r,l),Qi=!1,d=t.memoizedState,o.state=d,aa(t,r,o,i);var p=t.memoizedState;s!==f||d!==p||Ei.current||Qi?("function"===typeof h&&(la(t,n,h,r),p=t.memoizedState),(u=Qi||ca(t,n,u,r,d,p,l)||!1)?(c||"function"!==typeof o.UNSAFE_componentWillUpdate&&"function"!==typeof o.componentWillUpdate||("function"===typeof o.componentWillUpdate&&o.componentWillUpdate(r,p,l),"function"===typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof o.componentDidUpdate&&(t.flags|=4),"function"===typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),o.props=r,o.state=p,o.context=l,r=u):("function"!==typeof o.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Os(e,t,n,r,a,i)}function Os(e,t,n,r,i,a){_s(e,t);var o=0!==(128&t.flags);if(!r&&!o)return i&&Ni(t,n,!1),Bs(e,t,a);r=t.stateNode,gs.current=t;var s=o&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&o?(t.child=Za(t,e.child,null,a),t.child=Za(t,null,s,a)):bs(e,t,s,a),t.memoizedState=r.state,i&&Ni(t,n,!0),t.child}function Ps(e){var t=e.stateNode;t.pendingContext?ji(0,t.pendingContext,t.pendingContext!==t.context):t.context&&ji(0,t.context,!1),Ga(e,t.containerInfo)}function Ms(e,t,n,r,i){return Ia(),za(i),t.flags|=256,bs(e,t,n,r),t.child}var Ts={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:null}}function Rs(e,t,n){var r,i=t.pendingProps,o=eo.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&o)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(o|=1),Si(eo,1&o),null===e)return Na(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(o=i.children,e=i.fallback,s?(i=t.mode,s=t.child,o={mode:"hidden",children:o},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=o):s=Eu(o,i,0,null),e=Cu(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=js(n),t.memoizedState=Ts,e):As(t,o));if(null!==(o=e.memoizedState)){if(null!==(r=o.dehydrated)){if(l)return 256&t.flags?(t.flags&=-257,Ls(e,t,n,Error(a(422)))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(s=i.fallback,o=t.mode,i=Eu({mode:"visible",children:i.children},o,0,null),(s=Cu(s,o,n,null)).flags|=2,i.return=t,s.return=t,i.sibling=s,t.child=i,0!==(1&t.mode)&&Za(t,e.child,null,n),t.child.memoizedState=js(n),t.memoizedState=Ts,s);if(0===(1&t.mode))t=Ls(e,t,n,null);else if("$!"===r.data)t=Ls(e,t,n,Error(a(419)));else if(i=0!==(n&e.childLanes),ys||i){if(null!==(i=bl)){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(i=0!==(s&(i.suspendedLanes|n))?0:s)&&i!==o.retryLane&&(o.retryLane=i,$l(e,i,-1))}au(),t=Ls(e,t,n,Error(a(421)))}else"$?"===r.data?(t.flags|=128,t.child=e.child,t=gu.bind(null,e),r._reactRetry=t,t=null):(n=o.treeContext,Pa=oi(r.nextSibling),Oa=t,Ma=!0,Ta=null,null!==n&&(ya[ba++]=ka,ya[ba++]=wa,ya[ba++]=xa,ka=n.id,wa=n.overflow,xa=t),(t=As(t,t.pendingProps.children)).flags|=4096);return t}return s?(i=Ds(e,t,i.children,i.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?js(n):{baseLanes:o.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Ts,i):(n=Ns(e,t,i.children,n),t.memoizedState=null,n)}return s?(i=Ds(e,t,i.children,i.fallback,n),s=t.child,o=e.child.memoizedState,s.memoizedState=null===o?js(n):{baseLanes:o.baseLanes|n,cachePool:null},s.childLanes=e.childLanes&~n,t.memoizedState=Ts,i):(n=Ns(e,t,i.children,n),t.memoizedState=null,n)}function As(e,t){return(t=Eu({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ns(e,t,n,r){var i=e.child;return e=i.sibling,n=Su(i,{mode:"visible",children:n}),0===(1&t.mode)&&(n.lanes=r),n.return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Ds(e,t,n,r,i){var a=t.mode,o=(e=e.child).sibling,s={mode:"hidden",children:n};return 0===(1&a)&&t.child!==e?((n=t.child).childLanes=0,n.pendingProps=s,t.deletions=null):(n=Su(e,s)).subtreeFlags=14680064&e.subtreeFlags,null!==o?r=Su(o,r):(r=Cu(r,a,i,null)).flags|=2,r.return=t,n.return=t,n.sibling=r,t.child=n,r}function Ls(e,t,n,r){return null!==r&&za(r),Za(t,e.child,null,n),(e=As(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Is(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),qi(e.return,t,n)}function zs(e,t,n,r,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function Fs(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(bs(e,t,r.children,n),0!==(2&(r=eo.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Is(e,n,t);else if(19===e.tag)Is(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Si(eo,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===to(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),zs(t,!1,i,n,a);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===to(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}zs(t,!0,n,null,a);break;case"together":zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Bs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),El|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Su(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Su(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Ws(e,t){switch(Ea(t),t.tag){case 1:return Mi(t.type)&&Ti(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Xa(),wi(Ei),wi(Ci),ro(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ja(t),null;case 13:if(wi(eo),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(a(340));Ia()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return wi(eo),null;case 4:return Xa(),null;case 10:return Ki(t.type._context),null;case 22:case 23:return tu(),null;default:return null}}var Vs=!1,Zs=!1,Hs="function"===typeof WeakSet?WeakSet:Set,$s=null;function Us(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){pu(e,t,r)}else n.current=null}function Ks(e,t,n){try{n()}catch(r){pu(e,t,r)}}var qs=!1;function Ys(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&Ks(t,n,a)}i=i.next}while(i!==r)}}function Gs(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Xs(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function Qs(e,t,n){if(at&&"function"===typeof at.onCommitFiberUnmount)try{at.onCommitFiberUnmount(it,t)}catch(o){}switch(t.tag){case 0:case 11:case 14:case 15:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var i=r,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&Ks(t,n,a),r=r.next}while(r!==e)}break;case 1:if(Us(t,n),"function"===typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(o){pu(t,n,o)}break;case 5:Us(t,n);break;case 4:al(e,t,n)}}function Js(e){var t=e.alternate;null!==t&&(e.alternate=null,Js(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ui],delete t[ci],delete t[di],delete t[hi],delete t[pi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function el(e){return 5===e.tag||3===e.tag||4===e.tag}function tl(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||el(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function nl(e){e:{for(var t=e.return;null!==t;){if(el(t))break e;t=t.return}throw Error(a(160))}var n=t;switch(n.tag){case 5:t=n.stateNode,32&n.flags&&(de(t,""),n.flags&=-33),il(e,n=tl(e),t);break;case 3:case 4:t=n.stateNode.containerInfo,rl(e,n=tl(e),t);break;default:throw Error(a(161))}}function rl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Xr));else if(4!==r&&null!==(e=e.child))for(rl(e,t,n),e=e.sibling;null!==e;)rl(e,t,n),e=e.sibling}function il(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(il(e,t,n),e=e.sibling;null!==e;)il(e,t,n),e=e.sibling}function al(e,t,n){for(var r,i,o=t,s=!1;;){if(!s){s=o.return;e:for(;;){if(null===s)throw Error(a(160));switch(r=s.stateNode,s.tag){case 5:i=!1;break e;case 3:case 4:r=r.containerInfo,i=!0;break e}s=s.return}s=!0}if(5===o.tag||6===o.tag){e:for(var l=e,u=o,c=n,f=u;;)if(Qs(l,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===u)break e;for(;null===f.sibling;){if(null===f.return||f.return===u)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}i?(l=r,u=o.stateNode,8===l.nodeType?l.parentNode.removeChild(u):l.removeChild(u)):r.removeChild(o.stateNode)}else if(18===o.tag)i?(l=r,u=o.stateNode,8===l.nodeType?ai(l.parentNode,u):1===l.nodeType&&ai(l,u),Wt(l)):ai(r,o.stateNode);else if(4===o.tag){if(null!==o.child){r=o.stateNode.containerInfo,i=!0,o.child.return=o,o=o.child;continue}}else if(Qs(e,o,n),null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;4===(o=o.return).tag&&(s=!1)}o.sibling.return=o.return,o=o.sibling}}function ol(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return Ys(3,t,t.return),Gs(3,t),void Ys(5,t,t.return);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,i=null!==e?e.memoizedProps:r;e=t.type;var o=t.updateQueue;if(t.updateQueue=null,null!==o){for("input"===e&&"radio"===r.type&&null!=r.name&&X(n,r),be(e,i),t=be(e,r),i=0;i<o.length;i+=2){var s=o[i],l=o[i+1];"style"===s?me(n,l):"dangerouslySetInnerHTML"===s?fe(n,l):"children"===s?de(n,l):b(n,s,l,t)}switch(e){case"input":Q(n,r);break;case"textarea":ae(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(o=r.value)?ne(n,!!r.multiple,o,!1):e!==!!r.multiple&&(null!=r.defaultValue?ne(n,!!r.multiple,r.defaultValue,!0):ne(n,!!r.multiple,r.multiple?[]:"",!1))}n[ci]=r}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void(null!==e&&e.memoizedState.isDehydrated&&Wt(t.stateNode.containerInfo));case 13:case 19:return void sl(t)}throw Error(a(163))}function sl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Hs),t.forEach((function(t){var r=yu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function ll(e,t,n){$s=e,ul(e,t,n)}function ul(e,t,n){for(var r=0!==(1&e.mode);null!==$s;){var i=$s,a=i.child;if(22===i.tag&&r){var o=null!==i.memoizedState||Vs;if(!o){var s=i.alternate,l=null!==s&&null!==s.memoizedState||Zs;s=Vs;var u=Zs;if(Vs=o,(Zs=l)&&!u)for($s=i;null!==$s;)l=(o=$s).child,22===o.tag&&null!==o.memoizedState?dl(i):null!==l?(l.return=o,$s=l):dl(i);for(;null!==a;)$s=a,ul(a,t,n),a=a.sibling;$s=i,Vs=s,Zs=u}cl(e)}else 0!==(8772&i.subtreeFlags)&&null!==a?(a.return=i,$s=a):cl(e)}}function cl(e){for(;null!==$s;){var t=$s;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Zs||Gs(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Zs)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Wi(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;null!==o&&oa(t,o,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}oa(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var u=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":u.autoFocus&&n.focus();break;case"img":u.src&&(n.src=u.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:break;case 13:if(null===t.memoizedState){var c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Wt(d)}}}break;default:throw Error(a(163))}Zs||512&t.flags&&Xs(t)}catch(h){pu(t,t.return,h)}}if(t===e){$s=null;break}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}function fl(e){for(;null!==$s;){var t=$s;if(t===e){$s=null;break}var n=t.sibling;if(null!==n){n.return=t.return,$s=n;break}$s=t.return}}function dl(e){for(;null!==$s;){var t=$s;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Gs(4,t)}catch(l){pu(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(l){pu(t,i,l)}}var a=t.return;try{Xs(t)}catch(l){pu(t,a,l)}break;case 5:var o=t.return;try{Xs(t)}catch(l){pu(t,o,l)}}}catch(l){pu(t,t.return,l)}if(t===e){$s=null;break}var s=t.sibling;if(null!==s){s.return=t.return,$s=s;break}$s=t.return}}var hl,pl=Math.ceil,vl=x.ReactCurrentDispatcher,ml=x.ReactCurrentOwner,gl=x.ReactCurrentBatchConfig,yl=0,bl=null,xl=null,kl=0,wl=0,Sl=ki(0),_l=0,Cl=null,El=0,Ol=0,Pl=0,Ml=null,Tl=null,jl=0,Rl=1/0,Al=!1,Nl=null,Dl=null,Ll=!1,Il=null,zl=0,Fl=0,Bl=null,Wl=-1,Vl=0;function Zl(){return 0!==(6&yl)?Xe():-1!==Wl?Wl:Wl=Xe()}function Hl(e){return 0===(1&e.mode)?1:0!==(2&yl)&&0!==kl?kl&-kl:null!==Bi.transition?(0===Vl&&(e=ut,0===(4194240&(ut<<=1))&&(ut=64),Vl=e),Vl):0!==(e=yt)?e:e=void 0===(e=window.event)?16:qt(e.type)}function $l(e,t,n){if(50<Fl)throw Fl=0,Bl=null,Error(a(185));var r=Ul(e,t);return null===r?null:(mt(r,t,n),0!==(2&yl)&&r===bl||(r===bl&&(0===(2&yl)&&(Ol|=t),4===_l&&Xl(r,kl)),Kl(r,n),1===t&&0===yl&&0===(1&e.mode)&&(Rl=Xe()+500,Li&&Fi())),r)}function Ul(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}function Kl(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-ot(a),s=1<<o,l=i[o];-1===l?0!==(s&n)&&0===(s&r)||(i[o]=ht(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var r=dt(e,e===bl?kl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Li=!0,zi(e)}(Ql.bind(null,e)):zi(Ql.bind(null,e)),ri((function(){0===yl&&Fi()})),n=null;else{switch(bt(r)){case 1:n=Je;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=bu(n,ql.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function ql(e,t){if(Wl=-1,Vl=0,0!==(6&yl))throw Error(a(327));var n=e.callbackNode;if(du()&&e.callbackNode!==n)return null;var r=dt(e,e===bl?kl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=ou(e,r);else{t=r;var i=yl;yl|=2;var o=iu();for(bl===e&&kl===t||(Rl=Xe()+500,nu(e,t));;)try{lu();break}catch(l){ru(e,l)}Ui(),vl.current=o,yl=i,null!==xl?t=0:(bl=null,kl=0,t=_l)}if(0!==t){if(2===t&&(0!==(i=pt(e))&&(r=i,t=Yl(e,i))),1===t)throw n=Cl,nu(e,0),Xl(e,r),Kl(e,Xe()),n;if(6===t)Xl(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!ar(a(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=ou(e,r))&&(0!==(o=pt(e))&&(r=o,t=Yl(e,o))),1===t))throw n=Cl,nu(e,0),Xl(e,r),Kl(e,Xe()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(a(345));case 2:case 5:fu(e,Tl);break;case 3:if(Xl(e,r),(130023424&r)===r&&10<(t=jl+500-Xe())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){Zl(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ei(fu.bind(null,e,Tl),t);break}fu(e,Tl);break;case 4:if(Xl(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-ot(r);o=1<<s,(s=t[s])>i&&(i=s),r&=~o}if(r=i,10<(r=(120>(r=Xe()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*pl(r/1960))-r)){e.timeoutHandle=ei(fu.bind(null,e,Tl),r);break}fu(e,Tl);break;default:throw Error(a(329))}}}return Kl(e,Xe()),e.callbackNode===n?ql.bind(null,e):null}function Yl(e,t){var n=Ml;return e.current.memoizedState.isDehydrated&&(nu(e,t).flags|=256),2!==(e=ou(e,t))&&(t=Tl,Tl=n,null!==t&&Gl(t)),e}function Gl(e){null===Tl?Tl=e:Tl.push.apply(Tl,e)}function Xl(e,t){for(t&=~Pl,t&=~Ol,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ot(t),r=1<<n;e[n]=-1,t&=~r}}function Ql(e){if(0!==(6&yl))throw Error(a(327));du();var t=dt(e,0);if(0===(1&t))return Kl(e,Xe()),null;var n=ou(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=Yl(e,r))}if(1===n)throw n=Cl,nu(e,0),Xl(e,t),Kl(e,Xe()),n;if(6===n)throw Error(a(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,fu(e,Tl),Kl(e,Xe()),null}function Jl(e,t){var n=yl;yl|=1;try{return e(t)}finally{0===(yl=n)&&(Rl=Xe()+500,Li&&Fi())}}function eu(e){null!==Il&&0===Il.tag&&0===(6&yl)&&du();var t=yl;yl|=1;var n=gl.transition,r=yt;try{if(gl.transition=null,yt=1,e)return e()}finally{yt=r,gl.transition=n,0===(6&(yl=t))&&Fi()}}function tu(){wl=Sl.current,wi(Sl)}function nu(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ti(n)),null!==xl)for(n=xl.return;null!==n;){var r=n;switch(Ea(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Ti();break;case 3:Xa(),wi(Ei),wi(Ci),ro();break;case 5:Ja(r);break;case 4:Xa();break;case 13:case 19:wi(eo);break;case 10:Ki(r.type._context);break;case 22:case 23:tu()}n=n.return}if(bl=e,xl=e=Su(e.current,null),kl=wl=t,_l=0,Cl=null,Pl=Ol=El=0,Tl=Ml=null,null!==Xi){for(t=0;t<Xi.length;t++)if(null!==(r=(n=Xi[t]).interleaved)){n.interleaved=null;var i=r.next,a=n.pending;if(null!==a){var o=a.next;a.next=i,r.next=o}n.pending=r}Xi=null}return e}function ru(e,t){for(;;){var n=xl;try{if(Ui(),io.current=Qo,co){for(var r=so.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}co=!1}if(oo=0,uo=lo=so=null,fo=!1,ho=0,ml.current=null,null===n||null===n.return){_l=1,Cl=t,xl=null;break}e:{var o=e,s=n.return,l=n,u=t;if(t=kl,l.flags|=32768,null!==u&&"object"===typeof u&&"function"===typeof u.then){var c=u,f=l,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var h=f.alternate;h?(f.updateQueue=h.updateQueue,f.memoizedState=h.memoizedState,f.lanes=h.lanes):(f.updateQueue=null,f.memoizedState=null)}var p=ds(s);if(null!==p){p.flags&=-257,hs(p,s,l,0,t),1&p.mode&&fs(o,c,t),u=c;var v=(t=p).updateQueue;if(null===v){var m=new Set;m.add(u),t.updateQueue=m}else v.add(u);break e}if(0===(1&t)){fs(o,c,t),au();break e}u=Error(a(426))}else if(Ma&&1&l.mode){var g=ds(s);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),hs(g,s,l,0,t),za(u);break e}}o=u,4!==_l&&(_l=2),null===Ml?Ml=[o]:Ml.push(o),u=ns(u,l),l=s;do{switch(l.tag){case 3:l.flags|=65536,t&=-t,l.lanes|=t,ia(l,us(0,u,t));break e;case 1:o=u;var y=l.type,b=l.stateNode;if(0===(128&l.flags)&&("function"===typeof y.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Dl||!Dl.has(b)))){l.flags|=65536,t&=-t,l.lanes|=t,ia(l,cs(l,o,t));break e}}l=l.return}while(null!==l)}cu(n)}catch(x){t=x,xl===n&&null!==n&&(xl=n=n.return);continue}break}}function iu(){var e=vl.current;return vl.current=Qo,null===e?Qo:e}function au(){0!==_l&&3!==_l&&2!==_l||(_l=4),null===bl||0===(268435455&El)&&0===(268435455&Ol)||Xl(bl,kl)}function ou(e,t){var n=yl;yl|=2;var r=iu();for(bl===e&&kl===t||nu(e,t);;)try{su();break}catch(i){ru(e,i)}if(Ui(),yl=n,vl.current=r,null!==xl)throw Error(a(261));return bl=null,kl=0,_l}function su(){for(;null!==xl;)uu(xl)}function lu(){for(;null!==xl&&!Ye();)uu(xl)}function uu(e){var t=hl(e.alternate,e,wl);e.memoizedProps=e.pendingProps,null===t?cu(e):xl=t,ml.current=null}function cu(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=ms(n,t,wl)))return void(xl=n)}else{if(null!==(n=Ws(n,t)))return n.flags&=32767,void(xl=n);if(null===e)return _l=6,void(xl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(xl=t);xl=t=e}while(null!==t);0===_l&&(_l=5)}function fu(e,t){var n=yt,r=gl.transition;try{gl.transition=null,yt=1,function(e,t,n){do{du()}while(null!==Il);if(0!==(6&yl))throw Error(a(327));var r=e.finishedWork,i=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackPriority=0;var o=r.lanes|r.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ot(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}(e,o),e===bl&&(xl=bl=null,kl=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Ll||(Ll=!0,bu(tt,(function(){return du(),null}))),o=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||o){o=gl.transition,gl.transition=null;var s=yt;yt=1;var l=yl;yl|=4,ml.current=null,function(e,t){if(fr(e=cr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch(w){n=null;break e}var s=0,l=-1,u=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||0!==i&&3!==d.nodeType||(l=s+i),d!==o||0!==r&&3!==d.nodeType||(u=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(p=d.firstChild);)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===i&&(l=s),h===o&&++f===r&&(u=s),null!==(p=d.nextSibling))break;h=(d=h).parentNode}d=p}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qr={focusedElem:e,selectionRange:n},$s=t;null!==$s;)if(e=(t=$s).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,$s=e;else for(;null!==$s;){t=$s;try{var v=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==v){var m=v.memoizedProps,g=v.memoizedState,y=t.stateNode,b=y.getSnapshotBeforeUpdate(t.elementType===t.type?m:Wi(t.type,m),g);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;if(1===x.nodeType)x.textContent="";else if(9===x.nodeType){var k=x.body;null!=k&&(k.textContent="")}break;default:throw Error(a(163))}}catch(w){pu(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,$s=e;break}$s=t.return}v=qs,qs=!1}(e,r),function(e,t){for($s=t;null!==$s;){var n=(t=$s).deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{al(e,i,t);var a=i.alternate;null!==a&&(a.return=null),i.return=null}catch(_){pu(i,t,_)}}if(n=t.child,0!==(12854&t.subtreeFlags)&&null!==n)n.return=t,$s=n;else for(;null!==$s;){t=$s;try{var o=t.flags;if(32&o&&de(t.stateNode,""),512&o){var s=t.alternate;if(null!==s){var l=s.ref;null!==l&&("function"===typeof l?l(null):l.current=null)}}if(8192&o)switch(t.tag){case 13:if(null!==t.memoizedState){var u=t.alternate;null!==u&&null!==u.memoizedState||(jl=Xe())}break;case 22:var c=null!==t.memoizedState,f=t.alternate,d=null!==f&&null!==f.memoizedState;e:{i=c;for(var h=null,p=r=n=t;;){if(5===p.tag){if(null===h){h=p;var v=p.stateNode;if(i){var m=v.style;"function"===typeof m.setProperty?m.setProperty("display","none","important"):m.display="none"}else{var g=p.stateNode,y=p.memoizedProps.style,b=void 0!==y&&null!==y&&y.hasOwnProperty("display")?y.display:null;g.style.display=ve("display",b)}}}else if(6===p.tag)null===h&&(p.stateNode.nodeValue=i?"":p.memoizedProps);else if((22!==p.tag&&23!==p.tag||null===p.memoizedState||p===r)&&null!==p.child){p.child.return=p,p=p.child;continue}if(p===r)break;for(;null===p.sibling;){if(null===p.return||p.return===r)break e;h===p&&(h=null),p=p.return}h===p&&(h=null),p.sibling.return=p.return,p=p.sibling}}if(c&&!d&&0!==(1&n.mode)){$s=n;for(var x=n.child;null!==x;){for(n=$s=x;null!==$s;){var k=(r=$s).child;switch(r.tag){case 0:case 11:case 14:case 15:Ys(4,r,r.return);break;case 1:Us(r,r.return);var w=r.stateNode;if("function"===typeof w.componentWillUnmount){var S=r.return;try{w.props=r.memoizedProps,w.state=r.memoizedState,w.componentWillUnmount()}catch(_){pu(r,S,_)}}break;case 5:Us(r,r.return);break;case 22:if(null!==r.memoizedState){fl(n);continue}}null!==k?(k.return=r,$s=k):fl(n)}x=x.sibling}}}switch(4102&o){case 2:nl(t),t.flags&=-3;break;case 6:nl(t),t.flags&=-3,ol(t.alternate,t);break;case 4096:t.flags&=-4097;break;case 4100:t.flags&=-4097,ol(t.alternate,t);break;case 4:ol(t.alternate,t)}}catch(_){pu(t,t.return,_)}if(null!==(n=t.sibling)){n.return=t.return,$s=n;break}$s=t.return}}}(e,r),dr(Qr),Qr=null,e.current=r,ll(r,e,i),Ge(),yl=l,yt=s,gl.transition=o}else e.current=r;if(Ll&&(Ll=!1,Il=e,zl=i),o=e.pendingLanes,0===o&&(Dl=null),function(e){if(at&&"function"===typeof at.onCommitFiberRoot)try{at.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),Kl(e,Xe()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n(t[r]);if(Al)throw Al=!1,e=Nl,Nl=null,e;0!==(1&zl)&&0!==e.tag&&du(),o=e.pendingLanes,0!==(1&o)?e===Bl?Fl++:(Fl=0,Bl=e):Fl=0,Fi()}(e,t,n)}finally{gl.transition=r,yt=n}return null}function du(){if(null!==Il){var e=bt(zl),t=gl.transition,n=yt;try{if(gl.transition=null,yt=16>e?16:e,null===Il)var r=!1;else{if(e=Il,Il=null,zl=0,0!==(6&yl))throw Error(a(331));var i=yl;for(yl|=4,$s=e.current;null!==$s;){var o=$s,s=o.child;if(0!==(16&$s.flags)){var l=o.deletions;if(null!==l){for(var u=0;u<l.length;u++){var c=l[u];for($s=c;null!==$s;){var f=$s;switch(f.tag){case 0:case 11:case 15:Ys(8,f,o)}var d=f.child;if(null!==d)d.return=f,$s=d;else for(;null!==$s;){var h=(f=$s).sibling,p=f.return;if(Js(f),f===c){$s=null;break}if(null!==h){h.return=p,$s=h;break}$s=p}}}var v=o.alternate;if(null!==v){var m=v.child;if(null!==m){v.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}$s=o}}if(0!==(2064&o.subtreeFlags)&&null!==s)s.return=o,$s=s;else e:for(;null!==$s;){if(0!==(2048&(o=$s).flags))switch(o.tag){case 0:case 11:case 15:Ys(9,o,o.return)}var y=o.sibling;if(null!==y){y.return=o.return,$s=y;break e}$s=o.return}}var b=e.current;for($s=b;null!==$s;){var x=(s=$s).child;if(0!==(2064&s.subtreeFlags)&&null!==x)x.return=s,$s=x;else e:for(s=b;null!==$s;){if(0!==(2048&(l=$s).flags))try{switch(l.tag){case 0:case 11:case 15:Gs(9,l)}}catch(w){pu(l,l.return,w)}if(l===s){$s=null;break e}var k=l.sibling;if(null!==k){k.return=l.return,$s=k;break e}$s=l.return}}if(yl=i,Fi(),at&&"function"===typeof at.onPostCommitFiberRoot)try{at.onPostCommitFiberRoot(it,e)}catch(w){}r=!0}return r}finally{yt=n,gl.transition=t}}return!1}function hu(e,t,n){na(e,t=us(0,t=ns(n,t),1)),t=Zl(),null!==(e=Ul(e,1))&&(mt(e,1,t),Kl(e,t))}function pu(e,t,n){if(3===e.tag)hu(e,e,n);else for(;null!==t;){if(3===t.tag){hu(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Dl||!Dl.has(r))){na(t,e=cs(t,e=ns(n,e),1)),e=Zl(),null!==(t=Ul(t,1))&&(mt(t,1,e),Kl(t,e));break}}t=t.return}}function vu(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=Zl(),e.pingedLanes|=e.suspendedLanes&n,bl===e&&(kl&n)===n&&(4===_l||3===_l&&(130023424&kl)===kl&&500>Xe()-jl?nu(e,0):Pl|=n),Kl(e,t)}function mu(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var n=Zl();null!==(e=Ul(e,t))&&(mt(e,t,n),Kl(e,n))}function gu(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),mu(e,n)}function yu(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(t),mu(e,n)}function bu(e,t){return Ke(e,t)}function xu(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ku(e,t,n,r){return new xu(e,t,n,r)}function wu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Su(e,t){var n=e.alternate;return null===n?((n=ku(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _u(e,t,n,r,i,o){var s=2;if(r=e,"function"===typeof e)wu(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case S:return Cu(n.children,i,o,t);case _:s=8,i|=8;break;case C:return(e=ku(12,n,t,2|i)).elementType=C,e.lanes=o,e;case M:return(e=ku(13,n,t,i)).elementType=M,e.lanes=o,e;case T:return(e=ku(19,n,t,i)).elementType=T,e.lanes=o,e;case A:return Eu(n,i,o,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case E:s=10;break e;case O:s=9;break e;case P:s=11;break e;case j:s=14;break e;case R:s=16,r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=ku(s,n,t,i)).elementType=e,t.type=r,t.lanes=o,t}function Cu(e,t,n,r){return(e=ku(7,e,r,t)).lanes=n,e}function Eu(e,t,n,r){return(e=ku(22,e,r,t)).elementType=A,e.lanes=n,e.stateNode={},e}function Ou(e,t,n){return(e=ku(6,e,null,t)).lanes=n,e}function Pu(e,t,n){return(t=ku(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=vt(0),this.expirationTimes=vt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=vt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Tu(e,t,n,r,i,a,o,s,l){return e=new Mu(e,t,n,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=ku(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null},Ji(a),e}function ju(e){if(!e)return _i;e:{if(Ve(e=e._reactInternals)!==e||1!==e.tag)throw Error(a(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Mi(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(a(171))}if(1===e.tag){var n=e.type;if(Mi(n))return Ri(e,n,t)}return t}function Ru(e,t,n,r,i,a,o,s,l){return(e=Tu(n,r,!0,e,0,a,0,s,l)).context=ju(null),n=e.current,(a=ta(r=Zl(),i=Hl(n))).callback=void 0!==t&&null!==t?t:null,na(n,a),e.current.lanes=i,mt(e,i,r),Kl(e,r),e}function Au(e,t,n,r){var i=t.current,a=Zl(),o=Hl(i);return n=ju(n),null===t.context?t.context=n:t.pendingContext=n,(t=ta(a,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),na(i,t),null!==(e=$l(i,o,a))&&ra(e,i,o),o}function Nu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Du(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Lu(e,t){Du(e,t),(e=e.alternate)&&Du(e,t)}hl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ei.current)ys=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ys=!1,function(e,t,n){switch(t.tag){case 3:Ps(t),Ia();break;case 5:Qa(t);break;case 1:Mi(t.type)&&Ai(t);break;case 4:Ga(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Si(Vi,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Si(eo,1&eo.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Rs(e,t,n):(Si(eo,1&eo.current),null!==(e=Bs(e,t,n))?e.sibling:null);Si(eo,1&eo.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return Fs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),Si(eo,eo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ss(e,t,n)}return Bs(e,t,n)}(e,t,n);ys=0!==(131072&e.flags)}else ys=!1,Ma&&0!==(1048576&t.flags)&&_a(t,ga,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=Pi(t,Ci.current);Yi(t,n),i=go(null,t,r,e,i,n);var o=yo();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Mi(r)?(o=!0,Ai(t)):o=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ji(t),i.updater=ua,t.stateNode=i,i._reactInternals=t,ha(t,r,e,n),t=Os(null,t,r,!0,o,n)):(t.tag=0,Ma&&o&&Ca(t),bs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return wu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===j)return 14}return 2}(r),e=Wi(r,e),i){case 0:t=Cs(null,t,r,e,n);break e;case 1:t=Es(null,t,r,e,n);break e;case 11:t=xs(null,t,r,e,n);break e;case 14:t=ks(null,t,r,Wi(r.type,e),n);break e}throw Error(a(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:Wi(r,i),n);case 1:return r=t.type,i=t.pendingProps,Es(e,t,r,i=t.elementType===r?i:Wi(r,i),n);case 3:e:{if(Ps(t),null===e)throw Error(a(387));r=t.pendingProps,i=(o=t.memoizedState).element,ea(e,t),aa(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,256&t.flags){t=Ms(e,t,r,n,i=Error(a(423)));break e}if(r!==i){t=Ms(e,t,r,n,i=Error(a(424)));break e}for(Pa=oi(t.stateNode.containerInfo.firstChild),Oa=t,Ma=!0,Ta=null,n=Ha(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(Ia(),r===i){t=Bs(e,t,n);break e}bs(e,t,r,n)}t=t.child}return t;case 5:return Qa(t),null===e&&Na(t),r=t.type,i=t.pendingProps,o=null!==e?e.memoizedProps:null,s=i.children,Jr(r,i)?s=null:null!==o&&Jr(r,o)&&(t.flags|=32),_s(e,t),bs(e,t,s,n),t.child;case 6:return null===e&&Na(t),null;case 13:return Rs(e,t,n);case 4:return Ga(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Za(t,null,r,n):bs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,xs(e,t,r,i=t.elementType===r?i:Wi(r,i),n);case 7:return bs(e,t,t.pendingProps,n),t.child;case 8:case 12:return bs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,Si(Vi,r._currentValue),r._currentValue=s,null!==o)if(ar(o.value,s)){if(o.children===i.children&&!Ei.current){t=Bs(e,t,n);break e}}else for(null!==(o=t.child)&&(o.return=t);null!==o;){var l=o.dependencies;if(null!==l){s=o.child;for(var u=l.firstContext;null!==u;){if(u.context===r){if(1===o.tag){(u=ta(-1,n&-n)).tag=2;var c=o.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?u.next=u:(u.next=f.next,f.next=u),c.pending=u}}o.lanes|=n,null!==(u=o.alternate)&&(u.lanes|=n),qi(o.return,n,t),l.lanes|=n;break}u=u.next}}else if(10===o.tag)s=o.type===t.type?null:o.child;else if(18===o.tag){if(null===(s=o.return))throw Error(a(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),qi(s,n,t),s=o.sibling}else s=o.child;if(null!==s)s.return=o;else for(s=o;null!==s;){if(s===t){s=null;break}if(null!==(o=s.sibling)){o.return=s.return,s=o;break}s=s.return}o=s}bs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Yi(t,n),r=r(i=Gi(i)),t.flags|=1,bs(e,t,r,n),t.child;case 14:return i=Wi(r=t.type,t.pendingProps),ks(e,t,r,i=Wi(r.type,i),n);case 15:return ws(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Wi(r,i),null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Mi(r)?(e=!0,Ai(t)):e=!1,Yi(t,n),fa(t,r,i),ha(t,r,i,n),Os(null,t,r,!0,e,n);case 19:return Fs(e,t,n);case 22:return Ss(e,t,n)}throw Error(a(156,t.tag))};var Iu="function"===typeof reportError?reportError:function(e){console.error(e)};function zu(e){this._internalRoot=e}function Fu(e){this._internalRoot=e}function Bu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Wu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Vu(){}function Zu(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if("function"===typeof i){var s=i;i=function(){var e=Nu(o);s.call(e)}}Au(t,o,e,i)}else o=function(e,t,n,r,i){if(i){if("function"===typeof r){var a=r;r=function(){var e=Nu(o);a.call(e)}}var o=Ru(t,r,e,0,null,!1,0,"",Vu);return e._reactRootContainer=o,e[fi]=o.current,Br(8===e.nodeType?e.parentNode:e),eu(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Nu(l);s.call(e)}}var l=Tu(e,0,!1,null,0,!1,0,"",Vu);return e._reactRootContainer=l,e[fi]=l.current,Br(8===e.nodeType?e.parentNode:e),eu((function(){Au(t,l,n,r)})),l}(n,t,e,i,r);return Nu(o)}Fu.prototype.render=zu.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(a(409));Au(e,t,null,null)},Fu.prototype.unmount=zu.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;eu((function(){Au(null,e,null,null)})),t[fi]=null}},Fu.prototype.unstable_scheduleHydration=function(e){if(e){var t=St();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Rt.length&&0!==t&&t<Rt[n].priority;n++);Rt.splice(n,0,e),0===n&&Lt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),Kl(t,Xe()),0===(6&yl)&&(Rl=Xe()+500,Fi()))}break;case 13:var r=Zl();eu((function(){return $l(e,1,r)})),Lu(e,1)}},kt=function(e){13===e.tag&&($l(e,134217728,Zl()),Lu(e,134217728))},wt=function(e){if(13===e.tag){var t=Zl(),n=Hl(e);$l(e,n,t),Lu(e,n)}},St=function(){return yt},_t=function(e,t){var n=yt;try{return yt=e,t()}finally{yt=n}},we=function(e,t,n){switch(t){case"input":if(Q(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=yi(r);if(!i)throw Error(a(90));K(r),Q(r,i)}}}break;case"textarea":ae(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Pe=Jl,Me=eu;var Hu={usingClientEntryPoint:!1,Events:[mi,gi,yi,Ee,Oe,Jl]},$u={findFiberByHostInstance:vi,bundleType:0,version:"18.0.0-fc46dba67-20220329",rendererPackageName:"react-dom"},Uu={bundleType:$u.bundleType,version:$u.version,rendererPackageName:$u.rendererPackageName,rendererConfig:$u.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=$e(e))?null:e.stateNode},findFiberByHostInstance:$u.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.0.0-fc46dba67-20220329"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Ku=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ku.isDisabled&&Ku.supportsFiber)try{it=Ku.inject(Uu),at=Ku}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Hu,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Bu(t))throw Error(a(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:w,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Bu(e))throw Error(a(299));var n=!1,r="",i=Iu;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Tu(e,1,!1,null,0,n,0,r,i),e[fi]=t.current,Br(8===e.nodeType?e.parentNode:e),new zu(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw e=Object.keys(e).join(","),Error(a(268,e))}return e=null===(e=$e(t))?null:e.stateNode},t.flushSync=function(e){return eu(e)},t.hydrate=function(e,t,n){if(!Wu(t))throw Error(a(200));return Zu(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Bu(e))throw Error(a(405));var r=null!=n&&n.hydratedSources||null,i=!1,o="",s=Iu;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(o=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=Ru(t,null,e,1,null!=n?n:null,i,0,o,s),e[fi]=t.current,Br(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Fu(t)},t.render=function(e,t,n){if(!Wu(t))throw Error(a(200));return Zu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Wu(e))throw Error(a(40));return!!e._reactRootContainer&&(eu((function(){Zu(null,null,e,!1,(function(){e._reactRootContainer=null,e[fi]=null}))})),!0)},t.unstable_batchedUpdates=Jl,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Wu(n))throw Error(a(200));if(null==e||void 0===e._reactInternals)throw Error(a(38));return Zu(e,t,n,!1,r)},t.version="18.0.0-fc46dba67-20220329"},1250:function(e,t,n){"use strict";var r=n(4164);t.s=r.createRoot,r.hydrateRoot},4164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(4463)},1372:function(e,t){"use strict";var n=60103,r=60106,i=60107,a=60108,o=60114,s=60109,l=60110,u=60112,c=60113,f=60120,d=60115,h=60116,p=60121,v=60122,m=60117,g=60129,y=60131;if("function"===typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),i=b("react.fragment"),a=b("react.strict_mode"),o=b("react.profiler"),s=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),f=b("react.suspense_list"),d=b("react.memo"),h=b("react.lazy"),p=b("react.block"),v=b("react.server.block"),m=b("react.fundamental"),g=b("react.debug_trace_mode"),y=b("react.legacy_hidden")}function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case o:case a:case c:case f:return e;default:switch(e=e&&e.$$typeof){case l:case u:case h:case d:case s:return e;default:return t}}case r:return t}}}t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===i||e===o||e===g||e===a||e===c||e===f||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===h||e.$$typeof===d||e.$$typeof===s||e.$$typeof===l||e.$$typeof===u||e.$$typeof===m||e.$$typeof===p||e[0]===v)},t.typeOf=x},7441:function(e,t,n){"use strict";e.exports=n(1372)},6374:function(e,t,n){"use strict";var r=n(2791),i=Symbol.for("react.element"),a=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,n){var r,a={},u=null,c=null;for(r in void 0!==n&&(u=""+n),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)o.call(t,r)&&!l.hasOwnProperty(r)&&(a[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===a[r]&&(a[r]=t[r]);return{$$typeof:i,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},9117:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},v=Object.assign,m={};function g(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function y(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=g.prototype;var x=b.prototype=new y;x.constructor=b,v(x,g.prototype),x.isPureReactComponent=!0;var k=Array.isArray,w=Object.prototype.hasOwnProperty,S={current:null},_={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,r){var i,a={},o=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(o=""+t.key),t)w.call(t,i)&&!_.hasOwnProperty(i)&&(a[i]=t[i]);var l=arguments.length-2;if(1===l)a.children=r;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];a.children=u}if(e&&e.defaultProps)for(i in l=e.defaultProps)void 0===a[i]&&(a[i]=l[i]);return{$$typeof:n,type:e,key:o,ref:s,props:a,_owner:S.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var O=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function M(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return o=o(l=e),e=""===a?"."+P(l,0):a,k(o)?(i="",null!=e&&(i=e.replace(O,"$&/")+"/"),M(o,t,i,"",(function(e){return e}))):null!=o&&(E(o)&&(o=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(o,i+(!o.key||l&&l.key===o.key?"":(""+o.key).replace(O,"$&/")+"/")+e)),t.push(o)),1;if(l=0,a=""===a?".":a+":",k(e))for(var u=0;u<e.length;u++){var c=a+P(s=e[u],u);l+=M(s,t,i,c,o)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=h&&e[h]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),u=0;!(s=e.next()).done;)l+=M(s=s.value,t,i,c=a+P(s,u++),o);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function T(e,t,n){if(null==e)return e;var r=[],i=0;return M(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function j(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},A={transition:null},N={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:A,ReactCurrentOwner:S};t.Children={map:T,forEach:function(e,t,n){T(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return T(e,(function(){t++})),t},toArray:function(e){return T(e,(function(e){return e}))||[]},only:function(e){if(!E(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=i,t.Profiler=o,t.PureComponent=b,t.StrictMode=a,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=N,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=v({},e.props),a=e.key,o=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(o=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(u in t)w.call(t,u)&&!_.hasOwnProperty(u)&&(i[u]=void 0===t[u]&&void 0!==l?l[u]:t[u])}var u=arguments.length-2;if(1===u)i.children=r;else if(1<u){l=Array(u);for(var c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}return{$$typeof:n,type:e.type,key:a,ref:o,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=C,t.createFactory=function(e){var t=C.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=E,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:j}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=A.transition;A.transition={};try{e()}finally{A.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.0.0-fc46dba67-20220329"},2791:function(e,t,n){"use strict";e.exports=n(9117)},184:function(e,t,n){"use strict";e.exports=n(6374)},6813:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],f=1,d=null,h=3,p=!1,v=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function k(e){if(m=!1,x(e),!v)if(null!==r(u))v=!0,A(w);else{var t=r(c);null!==t&&N(k,t.startTime-e)}}function w(e,n){v=!1,m&&(m=!1,y(E),E=-1),p=!0;var a=h;try{for(x(n),d=r(u);null!==d&&(!(d.expirationTime>n)||e&&!M());){var o=d.callback;if("function"===typeof o){d.callback=null,h=d.priorityLevel;var s=o(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(u)&&i(u),x(n)}else i(u);d=r(u)}if(null!==d)var l=!0;else{var f=r(c);null!==f&&N(k,f.startTime-n),l=!1}return l}finally{d=null,h=a,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var S,_=!1,C=null,E=-1,O=5,P=-1;function M(){return!(t.unstable_now()-P<O)}function T(){if(null!==C){var e=t.unstable_now();P=e;var n=!0;try{n=C(!0,e)}finally{n?S():(_=!1,C=null)}}else _=!1}if("function"===typeof b)S=function(){b(T)};else if("undefined"!==typeof MessageChannel){var j=new MessageChannel,R=j.port2;j.port1.onmessage=T,S=function(){R.postMessage(null)}}else S=function(){g(T,0)};function A(e){C=e,_||(_=!0,S())}function N(e,n){E=g((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,A(w))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):O=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(u)},t.unstable_next=function(e){switch(h){case 1:case 2:case 3:var t=3;break;default:t=h}var n=h;h=t;try{return e()}finally{h=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=h;h=e;try{return t()}finally{h=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(y(E),E=-1):m=!0,N(k,a-o))):(e.sortIndex=s,n(u,e),v||p||(v=!0,A(w))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=h;return function(){var n=h;h=t;try{return e.apply(this,arguments)}finally{h=n}}}},5296:function(e,t,n){"use strict";e.exports=n(6813)},9613:function(e){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l<a.length;l++){var u=a[l];if(!s(u))return!1;var c=e[u],f=t[u];if(!1===(i=n?n.call(r,c,f,u):void 0)||void 0===i&&c!==f)return!1}return!0}},2391:function(e){"use strict";var t=function(){};e.exports=t},4836:function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},907:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(9142);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:function(){return r}})},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}n.d(t,{Z:function(){return r}})},885:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(181);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},2982:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(907);var i=n(181);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,i.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(1002);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="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},r(e)}n.d(t,{Z:function(){return r}})},181:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(907);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.m=e,n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},function(){var e,t=Object.getPrototypeOf?function(e){return Object.getPrototypeOf(e)}:function(e){return e.__proto__};n.t=function(r,i){if(1&i&&(r=this(r)),8&i)return r;if("object"===typeof r&&r){if(4&i&&r.__esModule)return r;if(16&i&&"function"===typeof r.then)return r}var a=Object.create(null);n.r(a);var o={};e=e||[null,t({}),t([]),t(t)];for(var s=2&i&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((function(e){o[e]=function(){return r[e]}}));return o.default=function(){return r},n.d(a,o),a}}(),n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=function(e){return Promise.all(Object.keys(n.f).reduce((function(t,r){return n.f[r](e,t),t}),[]))},n.u=function(e){return"static/js/"+e+".f12dc038.chunk.js"},n.miniCssF=function(e){},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){var e={},t="budget-buddy:";n.l=function(r,i,a,o){if(e[r])e[r].push(i);else{var s,l;if(void 0!==a)for(var u=document.getElementsByTagName("script"),c=0;c<u.length;c++){var f=u[c];if(f.getAttribute("src")==r||f.getAttribute("data-webpack")==t+a){s=f;break}}s||(l=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+a),s.src=r),e[r]=[i];var d=function(t,n){s.onerror=s.onload=null,clearTimeout(h);var i=e[r];if(delete e[r],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((function(e){return e(n)})),t)return t(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}}}(),n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.p="/",function(){var e={179:0};n.f.j=function(t,r){var i=n.o(e,t)?e[t]:void 0;if(0!==i)if(i)r.push(i[2]);else{var a=new Promise((function(n,r){i=e[t]=[n,r]}));r.push(i[2]=a);var o=n.p+n.u(t),s=new Error;n.l(o,(function(r){if(n.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var a=r&&("load"===r.type?"missing":r.type),o=r&&r.target&&r.target.src;s.message="Loading chunk "+t+" failed.\n("+a+": "+o+")",s.name="ChunkLoadError",s.type=a,s.request=o,i[1](s)}}),"chunk-"+t,t)}};var t=function(t,r){var i,a,o=r[0],s=r[1],l=r[2],u=0;if(o.some((function(t){return 0!==e[t]}))){for(i in s)n.o(s,i)&&(n.m[i]=s[i]);if(l)l(n)}for(t&&t(r);u<o.length;u++)a=o[u],n.o(e,a)&&e[a]&&e[a][0](),e[a]=0},r=self.webpackChunkbudget_buddy=self.webpackChunkbudget_buddy||[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))}(),n.nc=void 0,function(){"use strict";var e=n(2791),t=n.t(e,2),r=n(1250),i=function(e){e&&e instanceof Function&&n.e(496).then(n.bind(n,1496)).then((function(t){var n=t.getCLS,r=t.getFID,i=t.getFCP,a=t.getLCP,o=t.getTTFB;n(e),r(e),i(e),a(e),o(e)}))},a=n(7441),o=n(9613),s=n.n(o);var l=function(e){function t(e,r,l,u,d){for(var h,p,v,m,x,w=0,S=0,_=0,C=0,E=0,R=0,N=v=h=0,L=0,I=0,z=0,F=0,B=l.length,W=B-1,V="",Z="",H="",$="";L<B;){if(p=l.charCodeAt(L),L===W&&0!==S+C+_+w&&(0!==S&&(p=47===S?10:47),C=_=w=0,B++,W++),0===S+C+_+w){if(L===W&&(0<I&&(V=V.replace(f,"")),0<V.trim().length)){switch(p){case 32:case 9:case 59:case 13:case 10:break;default:V+=l.charAt(L)}p=59}switch(p){case 123:for(h=(V=V.trim()).charCodeAt(0),v=1,F=++L;L<B;){switch(p=l.charCodeAt(L)){case 123:v++;break;case 125:v--;break;case 47:switch(p=l.charCodeAt(L+1)){case 42:case 47:e:{for(N=L+1;N<W;++N)switch(l.charCodeAt(N)){case 47:if(42===p&&42===l.charCodeAt(N-1)&&L+2!==N){L=N+1;break e}break;case 10:if(47===p){L=N+1;break e}}L=N}}break;case 91:p++;case 40:p++;case 34:case 39:for(;L++<W&&l.charCodeAt(L)!==p;);}if(0===v)break;L++}if(v=l.substring(F,L),0===h&&(h=(V=V.replace(c,"").trim()).charCodeAt(0)),64===h){switch(0<I&&(V=V.replace(f,"")),p=V.charCodeAt(1)){case 100:case 109:case 115:case 45:I=r;break;default:I=j}if(F=(v=t(r,I,v,p,d+1)).length,0<A&&(x=s(3,v,I=n(j,V,z),r,P,O,F,p,d,u),V=I.join(""),void 0!==x&&0===(F=(v=x.trim()).length)&&(p=0,v="")),0<F)switch(p){case 115:V=V.replace(k,o);case 100:case 109:case 45:v=V+"{"+v+"}";break;case 107:v=(V=V.replace(g,"$1 $2"))+"{"+v+"}",v=1===T||2===T&&a("@"+v,3)?"@-webkit-"+v+"@"+v:"@"+v;break;default:v=V+v,112===u&&(Z+=v,v="")}else v=""}else v=t(r,n(r,V,z),v,u,d+1);H+=v,v=z=I=N=h=0,V="",p=l.charCodeAt(++L);break;case 125:case 59:if(1<(F=(V=(0<I?V.replace(f,""):V).trim()).length))switch(0===N&&(h=V.charCodeAt(0),45===h||96<h&&123>h)&&(F=(V=V.replace(" ",":")).length),0<A&&void 0!==(x=s(1,V,r,e,P,O,Z.length,u,d,u))&&0===(F=(V=x.trim()).length)&&(V="\0\0"),h=V.charCodeAt(0),p=V.charCodeAt(1),h){case 0:break;case 64:if(105===p||99===p){$+=V+l.charAt(L);break}default:58!==V.charCodeAt(F-1)&&(Z+=i(V,h,p,V.charCodeAt(2)))}z=I=N=h=0,V="",p=l.charCodeAt(++L)}}switch(p){case 13:case 10:47===S?S=0:0===1+h&&107!==u&&0<V.length&&(I=1,V+="\0"),0<A*D&&s(0,V,r,e,P,O,Z.length,u,d,u),O=1,P++;break;case 59:case 125:if(0===S+C+_+w){O++;break}default:switch(O++,m=l.charAt(L),p){case 9:case 32:if(0===C+w+S)switch(E){case 44:case 58:case 9:case 32:m="";break;default:32!==p&&(m=" ")}break;case 0:m="\\0";break;case 12:m="\\f";break;case 11:m="\\v";break;case 38:0===C+S+w&&(I=z=1,m="\f"+m);break;case 108:if(0===C+S+w+M&&0<N)switch(L-N){case 2:112===E&&58===l.charCodeAt(L-3)&&(M=E);case 8:111===R&&(M=R)}break;case 58:0===C+S+w&&(N=L);break;case 44:0===S+_+C+w&&(I=1,m+="\r");break;case 34:case 39:0===S&&(C=C===p?0:0===C?p:C);break;case 91:0===C+S+_&&w++;break;case 93:0===C+S+_&&w--;break;case 41:0===C+S+w&&_--;break;case 40:if(0===C+S+w){if(0===h)if(2*E+3*R===533);else h=1;_++}break;case 64:0===S+_+C+w+N+v&&(v=1);break;case 42:case 47:if(!(0<C+w+_))switch(S){case 0:switch(2*p+3*l.charCodeAt(L+1)){case 235:S=47;break;case 220:F=L,S=42}break;case 42:47===p&&42===E&&F+2!==L&&(33===l.charCodeAt(F+2)&&(Z+=l.substring(F,L+1)),m="",S=0)}}0===S&&(V+=m)}R=E,E=p,L++}if(0<(F=Z.length)){if(I=r,0<A&&(void 0!==(x=s(2,Z,I,e,P,O,F,u,d,u))&&0===(Z=x).length))return $+Z+H;if(Z=I.join(",")+"{"+Z+"}",0!==T*M){switch(2!==T||a(Z,2)||(M=0),M){case 111:Z=Z.replace(b,":-moz-$1")+Z;break;case 112:Z=Z.replace(y,"::-webkit-input-$1")+Z.replace(y,"::-moz-$1")+Z.replace(y,":-ms-input-$1")+Z}M=0}}return $+Z+H}function n(e,t,n){var i=t.trim().split(v);t=i;var a=i.length,o=e.length;switch(o){case 0:case 1:var s=0;for(e=0===o?"":e[0]+" ";s<a;++s)t[s]=r(e,t[s],n).trim();break;default:var l=s=0;for(t=[];s<a;++s)for(var u=0;u<o;++u)t[l++]=r(e[u]+" ",i[s],n).trim()}return t}function r(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(m,"$1"+e.trim());case 58:return e.trim()+t.replace(m,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(m,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function i(e,t,n,r){var o=e+";",s=2*t+3*n+4*r;if(944===s){e=o.indexOf(":",9)+1;var l=o.substring(e,o.length-1).trim();return l=o.substring(0,e).trim()+l+";",1===T||2===T&&a(l,1)?"-webkit-"+l+l:l}if(0===T||2===T&&!a(o,1))return o;switch(s){case 1015:return 97===o.charCodeAt(10)?"-webkit-"+o+o:o;case 951:return 116===o.charCodeAt(3)?"-webkit-"+o+o:o;case 963:return 110===o.charCodeAt(5)?"-webkit-"+o+o:o;case 1009:if(100!==o.charCodeAt(4))break;case 969:case 942:return"-webkit-"+o+o;case 978:return"-webkit-"+o+"-moz-"+o+o;case 1019:case 983:return"-webkit-"+o+"-moz-"+o+"-ms-"+o+o;case 883:if(45===o.charCodeAt(8))return"-webkit-"+o+o;if(0<o.indexOf("image-set(",11))return o.replace(E,"$1-webkit-$2")+o;break;case 932:if(45===o.charCodeAt(4))switch(o.charCodeAt(5)){case 103:return"-webkit-box-"+o.replace("-grow","")+"-webkit-"+o+"-ms-"+o.replace("grow","positive")+o;case 115:return"-webkit-"+o+"-ms-"+o.replace("shrink","negative")+o;case 98:return"-webkit-"+o+"-ms-"+o.replace("basis","preferred-size")+o}return"-webkit-"+o+"-ms-"+o+o;case 964:return"-webkit-"+o+"-ms-flex-"+o+o;case 1023:if(99!==o.charCodeAt(8))break;return"-webkit-box-pack"+(l=o.substring(o.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+o+"-ms-flex-pack"+l+o;case 1005:return h.test(o)?o.replace(d,":-webkit-")+o.replace(d,":-moz-")+o:o;case 1e3:switch(t=(l=o.substring(13).trim()).indexOf("-")+1,l.charCodeAt(0)+l.charCodeAt(t)){case 226:l=o.replace(x,"tb");break;case 232:l=o.replace(x,"tb-rl");break;case 220:l=o.replace(x,"lr");break;default:return o}return"-webkit-"+o+"-ms-"+l+o;case 1017:if(-1===o.indexOf("sticky",9))break;case 975:switch(t=(o=e).length-10,s=(l=(33===o.charCodeAt(t)?o.substring(0,t):o).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|l.charCodeAt(7))){case 203:if(111>l.charCodeAt(8))break;case 115:o=o.replace(l,"-webkit-"+l)+";"+o;break;case 207:case 102:o=o.replace(l,"-webkit-"+(102<s?"inline-":"")+"box")+";"+o.replace(l,"-webkit-"+l)+";"+o.replace(l,"-ms-"+l+"box")+";"+o}return o+";";case 938:if(45===o.charCodeAt(5))switch(o.charCodeAt(6)){case 105:return l=o.replace("-items",""),"-webkit-"+o+"-webkit-box-"+l+"-ms-flex-"+l+o;case 115:return"-webkit-"+o+"-ms-flex-item-"+o.replace(S,"")+o;default:return"-webkit-"+o+"-ms-flex-line-pack"+o.replace("align-content","").replace(S,"")+o}break;case 973:case 989:if(45!==o.charCodeAt(3)||122===o.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(l=e.substring(e.indexOf(":")+1)).charCodeAt(0)?i(e.replace("stretch","fill-available"),t,n,r).replace(":fill-available",":stretch"):o.replace(l,"-webkit-"+l)+o.replace(l,"-moz-"+l.replace("fill-",""))+o;break;case 962:if(o="-webkit-"+o+(102===o.charCodeAt(5)?"-ms-"+o:"")+o,211===n+r&&105===o.charCodeAt(13)&&0<o.indexOf("transform",10))return o.substring(0,o.indexOf(";",27)+1).replace(p,"$1-webkit-$2")+o}return o}function a(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),N(2!==t?r:r.replace(_,"$1"),n,t)}function o(e,t){var n=i(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,i,a,o,s,l,c){for(var f,d=0,h=t;d<A;++d)switch(f=R[d].call(u,e,h,n,r,i,a,o,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=f}if(h!==t)return h}function l(e){return void 0!==(e=e.prefix)&&(N=null,e?"function"!==typeof e?T=1:(T=2,N=e):T=0),l}function u(e,n){var r=e;if(33>r.charCodeAt(0)&&(r=r.trim()),r=[r],0<A){var i=s(-1,n,r,r,P,O,0,0,0,0);void 0!==i&&"string"===typeof i&&(n=i)}var a=t(j,r,n,0,0);return 0<A&&(void 0!==(i=s(-2,a,r,r,P,O,a.length,0,0,0))&&(a=i)),"",M=0,O=P=1,a}var c=/^\0+/g,f=/[\0\r\f]/g,d=/: */g,h=/zoo|gra/,p=/([,: ])(transform)/g,v=/,\r+?/g,m=/([\t\r\n ])*\f?&/g,g=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,b=/:(read-only)/g,x=/[svh]\w+-[tblr]{2}/,k=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,S=/-self|flex-/g,_=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,E=/([^-])(image-set\()/,O=1,P=1,M=0,T=1,j=[],R=[],A=0,N=null,D=0;return u.use=function e(t){switch(t){case void 0:case null:A=R.length=0;break;default:if("function"===typeof t)R[A++]=t;else if("object"===typeof t)for(var n=0,r=t.length;n<r;++n)e(t[n]);else D=0|!!t}return e},u.set=l,void 0!==e&&l(e),u},u={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},c=n(9791),f=n(2110),d=n.n(f);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n},v=function(e){return null!==e&&"object"==typeof e&&"[object Object]"===(e.toString?e.toString():Object.prototype.toString.call(e))&&!(0,a.typeOf)(e)},m=Object.freeze([]),g=Object.freeze({});function y(e){return"function"==typeof e}function b(e){return e.displayName||e.name||"Component"}function x(e){return e&&"string"==typeof e.styledComponentId}var k="undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",w="undefined"!=typeof window&&"HTMLElement"in window,S=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&(void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)));function _(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];throw new Error("An error occurred. See https://git.io/JUIaE#"+e+" for more information."+(n.length>0?" Args: "+n.join(", "):""))}var C=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},t.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&_(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var a=r;a<i;a++)this.groupSizes[a]=0}for(var o=this.indexOfGroup(e+1),s=0,l=t.length;s<l;s++)this.tag.insertRule(o,t[s])&&(this.groupSizes[e]++,o++)},t.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var i=n;i<r;i++)this.tag.deleteRule(n)}},t.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,a=r;a<i;a++)t+=this.tag.getRule(a)+"/*!sc*/\n";return t},e}(),E=new Map,O=new Map,P=1,M=function(e){if(E.has(e))return E.get(e);for(;O.has(P);)P++;var t=P++;return E.set(e,t),O.set(t,e),t},T=function(e){return O.get(e)},j=function(e,t){t>=P&&(P=t+1),E.set(e,t),O.set(t,e)},R="style["+k+'][data-styled-version="5.3.9"]',A=new RegExp("^"+k+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),N=function(e,t,n){for(var r,i=n.split(","),a=0,o=i.length;a<o;a++)(r=i[a])&&e.registerName(t,r)},D=function(e,t){for(var n=(t.textContent||"").split("/*!sc*/\n"),r=[],i=0,a=n.length;i<a;i++){var o=n[i].trim();if(o){var s=o.match(A);if(s){var l=0|parseInt(s[1],10),u=s[2];0!==l&&(j(u,l),N(e,u,s[3]),e.getTag().insertRules(l,r)),r.length=0}else r.push(o)}}},L=function(){return n.nc},I=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(e){for(var t=e.childNodes,n=t.length;n>=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(k))return r}}(n),a=void 0!==i?i.nextSibling:null;r.setAttribute(k,"active"),r.setAttribute("data-styled-version","5.3.9");var o=L();return o&&r.setAttribute("nonce",o),n.insertBefore(r,a),r},z=function(){function e(e){var t=this.element=I(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var i=t[n];if(i.ownerNode===e)return i}_(17)}(t),this.length=0}var t=e.prototype;return t.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},t.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},t.getRule=function(e){var t=this.sheet.cssRules[e];return void 0!==t&&"string"==typeof t.cssText?t.cssText:""},e}(),F=function(){function e(e){var t=this.element=I(e);this.nodes=t.childNodes,this.length=0}var t=e.prototype;return t.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),B=function(){function e(e){this.rules=[],this.length=0}var t=e.prototype;return t.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},t.deleteRule=function(e){this.rules.splice(e,1),this.length--},t.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),W=w,V={isServer:!w,useCSSOMInjection:!S},Z=function(){function e(e,t,n){void 0===e&&(e=g),void 0===t&&(t={}),this.options=h({},V,{},e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&w&&W&&(W=!1,function(e){for(var t=document.querySelectorAll(R),n=0,r=t.length;n<r;n++){var i=t[n];i&&"active"!==i.getAttribute(k)&&(D(e,i),i.parentNode&&i.parentNode.removeChild(i))}}(this))}e.registerId=function(e){return M(e)};var t=e.prototype;return t.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(h({},this.options,{},t),this.gs,n&&this.names||void 0)},t.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},t.getTag=function(){return this.tag||(this.tag=(n=(t=this.options).isServer,r=t.useCSSOMInjection,i=t.target,e=n?new B(i):r?new z(i):new F(i),new C(e)));var e,t,n,r,i},t.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},t.registerName=function(e,t){if(M(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},t.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(M(e),n)},t.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},t.clearRules=function(e){this.getTag().clearGroup(M(e)),this.clearNames(e)},t.clearTag=function(){this.tag=void 0},t.toString=function(){return function(e){for(var t=e.getTag(),n=t.length,r="",i=0;i<n;i++){var a=T(i);if(void 0!==a){var o=e.names.get(a),s=t.getGroup(i);if(o&&s&&o.size){var l=k+".g"+i+'[id="'+a+'"]',u="";void 0!==o&&o.forEach((function(e){e.length>0&&(u+=e+",")})),r+=""+s+l+'{content:"'+u+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,$=function(e){return String.fromCharCode(e+(e>25?39:97))};function U(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=$(t%52)+n;return($(t%52)+n).replace(H,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},q=function(e){return K(5381,e)};function Y(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(y(n)&&!x(n))return!1}return!0}var G=q("5.3.9"),X=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Y(e),this.componentId=t,this.baseHash=K(G,t),this.baseStyle=n,Z.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.componentId,i=[];if(this.baseStyle&&i.push(this.baseStyle.generateAndInjectStyles(e,t,n)),this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(r,this.staticRulesId))i.push(this.staticRulesId);else{var a=ve(this.rules,e,t,n).join(""),o=U(K(this.baseHash,a)>>>0);if(!t.hasNameForId(r,o)){var s=n(a,"."+o,void 0,r);t.insertRules(r,o,s)}i.push(o),this.staticRulesId=o}else{for(var l=this.rules.length,u=K(this.baseHash,n.hash),c="",f=0;f<l;f++){var d=this.rules[f];if("string"==typeof d)c+=d;else if(d){var h=ve(d,e,t,n),p=Array.isArray(h)?h.join(""):h;u=K(u,p+f),c+=p}}if(c){var v=U(u>>>0);if(!t.hasNameForId(r,v)){var m=n(c,"."+v,void 0,r);t.insertRules(r,v,m)}i.push(v)}}return i.join(" ")},e}(),Q=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,i,a=void 0===e?g:e,o=a.options,s=void 0===o?g:o,u=a.plugins,c=void 0===u?m:u,f=new l(s),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,a,o,s,l,u,c,f){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===u)return r+"/*|*/";break;case 3:switch(u){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,a){return 0===r&&-1!==J.indexOf(a[n.length])||a.match(i)?e:"."+t};function v(e,a,o,s){void 0===s&&(s="&");var l=e.replace(Q,""),u=a&&o?o+" "+a+" { "+l+" }":l;return t=s,n=a,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(o||!a?"":a,u)}return f.use([].concat(c,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=c.length?c.reduce((function(e,t){return t.name||_(15),K(e,t.name)}),5381).toString():"",v}var te=e.createContext(),ne=(te.Consumer,e.createContext()),re=(ne.Consumer,new Z),ie=ee();function ae(){return(0,e.useContext)(te)||re}function oe(){return(0,e.useContext)(ne)||ie}function se(t){var n=(0,e.useState)(t.stylisPlugins),r=n[0],i=n[1],a=ae(),o=(0,e.useMemo)((function(){var e=a;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),l=(0,e.useMemo)((function(){return ee({options:{prefix:!t.disableVendorPrefixes},plugins:r})}),[t.disableVendorPrefixes,r]);return(0,e.useEffect)((function(){s()(r,t.stylisPlugins)||i(t.stylisPlugins)}),[t.stylisPlugins]),e.createElement(te.Provider,{value:o},e.createElement(ne.Provider,{value:l},t.children))}var le=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return _(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ue=/([A-Z])/,ce=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return ue.test(e)?e.replace(ce,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,a=[],o=0,s=e.length;o<s;o+=1)""!==(i=ve(e[o],t,n,r))&&(Array.isArray(i)?a.push.apply(a,i):a.push(i));return a}return pe(e)?"":x(e)?"."+e.styledComponentId:y(e)?"function"!=typeof(l=e)||l.prototype&&l.prototype.isReactComponent||!t?e:ve(e(t),t,n,r):e instanceof le?n?(e.inject(n,r),e.getName(r)):e:v(e)?function e(t,n){var r,i,a=[];for(var o in t)t.hasOwnProperty(o)&&!pe(t[o])&&(Array.isArray(t[o])&&t[o].isCss||y(t[o])?a.push(he(o)+":",t[o],";"):v(t[o])?a.push.apply(a,e(t[o],o)):a.push(he(o)+": "+(r=o,(null==(i=t[o])||"boolean"==typeof i||""===i?"":"number"!=typeof i||0===i||r in u?String(i).trim():i+"px")+";")));return n?[n+" {"].concat(a,["}"]):a}(e):e.toString();var l}var me=function(e){return Array.isArray(e)&&(e.isCss=!0),e};function ge(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return y(e)||v(e)?me(ve(p(m,[e].concat(n)))):0===n.length&&1===e.length&&"string"==typeof e[0]?e:me(ve(p(e,n)))}new Set;var ye=function(e,t,n){return void 0===n&&(n=g),e.theme!==n.theme&&e.theme||t||n.theme},be=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xe=/(^-|-$)/g;function ke(e){return e.replace(be,"-").replace(xe,"")}var we=function(e){return U(q(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var _e=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Ce=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Ee(e,t,n){var r=e[n];_e(t)&&_e(r)?Oe(r,t):e[n]=t}function Oe(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];for(var i=0,a=n;i<a.length;i++){var o=a[i];if(_e(o))for(var s in o)Ce(s)&&Ee(e,o[s],s)}return e}var Pe=e.createContext();Pe.Consumer;function Me(t){var n=(0,e.useContext)(Pe),r=(0,e.useMemo)((function(){return function(e,t){return e?y(e)?e(t):Array.isArray(e)||"object"!=typeof e?_(8):t?h({},t,{},e):e:_(14)}(t.theme,n)}),[t.theme,n]);return t.children?e.createElement(Pe.Provider,{value:r},t.children):null}var Te={};function je(t,n,r){var i=x(t),a=!Se(t),o=n.attrs,s=void 0===o?m:o,l=n.componentId,u=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ke(e);Te[n]=(Te[n]||0)+1;var r=n+"-"+we("5.3.9"+n+Te[n]);return t?t+"-"+r:r}(n.displayName,n.parentComponentId):l,f=n.displayName,p=void 0===f?function(e){return Se(e)?"styled."+e:"Styled("+b(e)+")"}(t):f,v=n.displayName&&n.componentId?ke(n.displayName)+"-"+n.componentId:n.componentId||u,k=i&&t.attrs?Array.prototype.concat(t.attrs,s).filter(Boolean):s,w=n.shouldForwardProp;i&&t.shouldForwardProp&&(w=n.shouldForwardProp?function(e,r,i){return t.shouldForwardProp(e,r,i)&&n.shouldForwardProp(e,r,i)}:t.shouldForwardProp);var S,_=new X(r,v,i?t.componentStyle:void 0),C=_.isStatic&&0===s.length,E=function(t,n){return function(t,n,r,i){var a=t.attrs,o=t.componentStyle,s=t.defaultProps,l=t.foldedComponentIds,u=t.shouldForwardProp,f=t.styledComponentId,d=t.target,p=function(e,t,n){void 0===e&&(e=g);var r=h({},t,{theme:e}),i={};return n.forEach((function(e){var t,n,a,o=e;for(t in y(o)&&(o=o(r)),o)r[t]=i[t]="className"===t?(n=i[t],a=o[t],n&&a?n+" "+a:n||a):o[t]})),[r,i]}(ye(n,(0,e.useContext)(Pe),s)||g,n,a),v=p[0],m=p[1],b=function(e,t,n,r){var i=ae(),a=oe();return t?e.generateAndInjectStyles(g,i,a):e.generateAndInjectStyles(n,i,a)}(o,i,v),x=r,k=m.$as||n.$as||m.as||n.as||d,w=Se(k),S=m!==n?h({},n,{},m):n,_={};for(var C in S)"$"!==C[0]&&"as"!==C&&("forwardedAs"===C?_.as=S[C]:(u?u(C,c.Z,k):!w||(0,c.Z)(C))&&(_[C]=S[C]));return n.style&&m.style!==n.style&&(_.style=h({},n.style,{},m.style)),_.className=Array.prototype.concat(l,f,b!==f?b:null,n.className,m.className).filter(Boolean).join(" "),_.ref=x,(0,e.createElement)(k,_)}(S,t,n,C)};return E.displayName=p,(S=e.forwardRef(E)).attrs=k,S.componentStyle=_,S.displayName=p,S.shouldForwardProp=w,S.foldedComponentIds=i?Array.prototype.concat(t.foldedComponentIds,t.styledComponentId):m,S.styledComponentId=v,S.target=i?t.target:t,S.withComponent=function(e){var t=n.componentId,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(n,["componentId"]),a=t&&t+"-"+(Se(e)?e:ke(b(e)));return je(e,h({},i,{attrs:k,componentId:a}),r)},Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Oe({},t.defaultProps,e):e}}),Object.defineProperty(S,"toString",{value:function(){return"."+S.styledComponentId}}),a&&d()(S,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),S}var Re=function(e){return function e(t,n,r){if(void 0===r&&(r=g),!(0,a.isValidElementType)(n))return _(1,String(n));var i=function(){return t(n,r,ge.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,h({},r,{},i))},i.attrs=function(i){return e(t,n,h({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(je,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","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Re[e]=Re(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Y(e),Z.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),a=this.componentId+e;n.insertRules(a,a,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&Z.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function t(){var t=this;this._emitSheetCSS=function(){var e=t.instance.toString();if(!e)return"";var n=L();return"<style "+[n&&'nonce="'+n+'"',k+'="true"','data-styled-version="5.3.9"'].filter(Boolean).join(" ")+">"+e+"</style>"},this.getStyleTags=function(){return t.sealed?_(2):t._emitSheetCSS()},this.getStyleElement=function(){var n;if(t.sealed)return _(2);var r=((n={})[k]="",n["data-styled-version"]="5.3.9",n.dangerouslySetInnerHTML={__html:t.instance.toString()},n),i=L();return i&&(r.nonce=i),[e.createElement("style",h({},r,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new Z({isServer:!0}),this.sealed=!1}var n=t.prototype;n.collectStyles=function(t){return this.sealed?_(2):e.createElement(se,{sheet:this.instance},t)},n.interleaveWithNodeStream=function(e){return _(3)}}();var Ae=n(3366);function Ne(e,t){if(null==e)return{};var n,r,i=(0,Ae.Z)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var De=n(7462),Le=n(1002);function Ie(e){return e&&"object"===(0,Le.Z)(e)&&e.constructor===Object}function ze(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},r=n.clone?(0,De.Z)({},e):e;return Ie(e)&&Ie(t)&&Object.keys(t).forEach((function(i){"__proto__"!==i&&(Ie(t[i])&&i in e?r[i]=ze(e[i],t[i],n):r[i]=t[i])})),r}var Fe=["xs","sm","md","lg","xl"];var Be=n(4942);function We(e,t,n){var r;return(0,De.Z)({gutters:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,De.Z)({paddingLeft:t(2),paddingRight:t(2)},n,(0,Be.Z)({},e.up("sm"),(0,De.Z)({paddingLeft:t(3),paddingRight:t(3)},n[e.up("sm")])))},toolbar:(r={minHeight:56},(0,Be.Z)(r,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,Be.Z)(r,e.up("sm"),{minHeight:64}),r)},n)}function Ve(e){for(var t="https://mui.com/production-error/?code="+e,n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."}var Ze={black:"#000",white:"#fff"},He={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},$e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},Ue={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},Ke={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},qe={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ye={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Ge={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Xe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),n)}function Qe(e){if(e.type)return e;if("#"===e.charAt(0))return Qe(function(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),n=e.match(t);return n&&1===n[0].length&&(n=n.map((function(e){return e+e}))),n?"rgb".concat(4===n.length?"a":"","(").concat(n.map((function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3})).join(", "),")"):""}(e));var t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla"].indexOf(n))throw new Error(Ve(3,e));var r=e.substring(t+1,e.length-1).split(",");return{type:n,values:r=r.map((function(e){return parseFloat(e)}))}}function Je(e){var t=e.type,n=e.values;return-1!==t.indexOf("rgb")?n=n.map((function(e,t){return t<3?parseInt(e,10):e})):-1!==t.indexOf("hsl")&&(n[1]="".concat(n[1],"%"),n[2]="".concat(n[2],"%")),"".concat(t,"(").concat(n.join(", "),")")}function et(e){var t="hsl"===(e=Qe(e)).type?Qe(function(e){var t=(e=Qe(e)).values,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+n/30)%12;return i-a*Math.max(Math.min(t-3,9-t,1),-1)},s="rgb",l=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(s+="a",l.push(t[3])),Je({type:s,values:l})}(e)).values:e.values;return t=t.map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function tt(e,t){return e=Qe(e),t=Xe(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=t,Je(e)}function nt(e,t){if(e=Qe(e),t=Xe(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-t;return Je(e)}function rt(e,t){if(e=Qe(e),t=Xe(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;return Je(e)}var it={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ze.white,default:He[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},at={text:{primary:Ze.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:He[800],default:"#303030"},action:{active:Ze.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function ot(e,t,n,r){var i=r.light||r,a=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=rt(e.main,i):"dark"===t&&(e.dark=nt(e.main,a)))}function st(e){var t=e.primary,n=void 0===t?{light:$e[300],main:$e[500],dark:$e[700]}:t,r=e.secondary,i=void 0===r?{light:Ue.A200,main:Ue.A400,dark:Ue.A700}:r,a=e.error,o=void 0===a?{light:Ke[300],main:Ke[500],dark:Ke[700]}:a,s=e.warning,l=void 0===s?{light:qe[300],main:qe[500],dark:qe[700]}:s,u=e.info,c=void 0===u?{light:Ye[300],main:Ye[500],dark:Ye[700]}:u,f=e.success,d=void 0===f?{light:Ge[300],main:Ge[500],dark:Ge[700]}:f,h=e.type,p=void 0===h?"light":h,v=e.contrastThreshold,m=void 0===v?3:v,g=e.tonalOffset,y=void 0===g?.2:g,b=Ne(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function x(e){var t=function(e,t){var n=et(e),r=et(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}(e,at.text.primary)>=m?at.text.primary:it.text.primary;return t}var k=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,De.Z)({},e)).main&&e[t]&&(e.main=e[t]),!e.main)throw new Error(Ve(4,t));if("string"!==typeof e.main)throw new Error(Ve(5,JSON.stringify(e.main)));return ot(e,"light",n,y),ot(e,"dark",r,y),e.contrastText||(e.contrastText=x(e.main)),e},w={dark:at,light:it};return ze((0,De.Z)({common:Ze,type:p,primary:k(n),secondary:k(i,"A400","A200","A700"),error:k(o),warning:k(l),info:k(c),success:k(d),grey:He,contrastThreshold:m,getContrastText:x,augmentColor:k,tonalOffset:y},w[p]),b)}function lt(e){return Math.round(1e5*e)/1e5}function ut(e){return lt(e)}var ct={textTransform:"uppercase"},ft='"Roboto", "Helvetica", "Arial", sans-serif';function dt(e,t){var n="function"===typeof t?t(e):t,r=n.fontFamily,i=void 0===r?ft:r,a=n.fontSize,o=void 0===a?14:a,s=n.fontWeightLight,l=void 0===s?300:s,u=n.fontWeightRegular,c=void 0===u?400:u,f=n.fontWeightMedium,d=void 0===f?500:f,h=n.fontWeightBold,p=void 0===h?700:h,v=n.htmlFontSize,m=void 0===v?16:v,g=n.allVariants,y=n.pxToRem,b=Ne(n,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]);var x=o/14,k=y||function(e){return"".concat(e/m*x,"rem")},w=function(e,t,n,r,a){return(0,De.Z)({fontFamily:i,fontWeight:e,fontSize:k(t),lineHeight:n},i===ft?{letterSpacing:"".concat(lt(r/t),"em")}:{},a,g)},S={h1:w(l,96,1.167,-1.5),h2:w(l,60,1.2,-.5),h3:w(c,48,1.167,0),h4:w(c,34,1.235,.25),h5:w(c,24,1.334,0),h6:w(d,20,1.6,.15),subtitle1:w(c,16,1.75,.15),subtitle2:w(d,14,1.57,.1),body1:w(c,16,1.5,.15),body2:w(c,14,1.43,.15),button:w(d,14,1.75,.4,ct),caption:w(c,12,1.66,.4),overline:w(c,12,2.66,1,ct)};return ze((0,De.Z)({htmlFontSize:m,pxToRem:k,round:ut,fontFamily:i,fontSize:o,fontWeightLight:l,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:p},S),b,{clone:!1})}function ht(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var pt=["none",ht(0,2,1,-1,0,1,1,0,0,1,3,0),ht(0,3,1,-2,0,2,2,0,0,1,5,0),ht(0,3,3,-2,0,3,4,0,0,1,8,0),ht(0,2,4,-1,0,4,5,0,0,1,10,0),ht(0,3,5,-1,0,5,8,0,0,1,14,0),ht(0,3,5,-1,0,6,10,0,0,1,18,0),ht(0,4,5,-2,0,7,10,1,0,2,16,1),ht(0,5,5,-3,0,8,10,1,0,3,14,2),ht(0,5,6,-3,0,9,12,1,0,3,16,2),ht(0,6,6,-3,0,10,14,1,0,4,18,3),ht(0,6,7,-4,0,11,15,1,0,4,20,3),ht(0,7,8,-4,0,12,17,2,0,5,22,4),ht(0,7,8,-4,0,13,19,2,0,5,24,4),ht(0,7,9,-4,0,14,21,2,0,5,26,4),ht(0,8,9,-5,0,15,22,2,0,6,28,5),ht(0,8,10,-5,0,16,24,2,0,6,30,5),ht(0,8,11,-5,0,17,26,2,0,6,32,5),ht(0,9,11,-5,0,18,28,2,0,7,34,6),ht(0,9,12,-6,0,19,29,2,0,7,36,6),ht(0,10,13,-6,0,20,31,3,0,8,38,7),ht(0,10,13,-6,0,21,33,3,0,8,40,7),ht(0,10,14,-6,0,22,35,3,0,8,42,7),ht(0,11,14,-7,0,23,36,3,0,9,44,8),ht(0,11,15,-7,0,24,38,3,0,9,46,8)],vt={borderRadius:4},mt=n(885),gt={xs:0,sm:600,md:960,lg:1280,xl:1920},yt={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(gt[e],"px)")}};var bt=function(e,t){return t?ze(e,t,{clone:!1}):e};var xt={m:"margin",p:"padding"},kt={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},wt={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},St=function(e){var t={};return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}((function(e){if(e.length>2){if(!wt[e])return[e];e=wt[e]}var t=e.split(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=xt[r],o=kt[i]||"";return Array.isArray(o)?o.map((function(e){return a+e})):[a+o]})),_t=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function Ct(e){var t=e.spacing||8;return"number"===typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"===typeof t?t:function(){}}function Et(e,t){return function(n){return e.reduce((function(e,r){return e[r]=function(e,t){if("string"===typeof t||null==t)return t;var n=e(Math.abs(t));return t>=0?n:"number"===typeof n?-n:"-".concat(n)}(t,n),e}),{})}}function Ot(e){var t=Ct(e.theme);return Object.keys(e).map((function(n){if(-1===_t.indexOf(n))return null;var r=Et(St(n),t),i=e[n];return function(e,t,n){if(Array.isArray(t)){var r=e.theme.breakpoints||yt;return t.reduce((function(e,i,a){return e[r.up(r.keys[a])]=n(t[a]),e}),{})}if("object"===(0,Le.Z)(t)){var i=e.theme.breakpoints||yt;return Object.keys(t).reduce((function(e,r){return e[i.up(r)]=n(t[r]),e}),{})}return n(t)}(e,i,r)})).reduce(bt,{})}Ot.propTypes={},Ot.filterProps=_t;var Pt={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Mt={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Tt(e){return"".concat(Math.round(e),"ms")}var jt={easing:Pt,duration:Mt,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.duration,r=void 0===n?Mt.standard:n,i=t.easing,a=void 0===i?Pt.easeInOut:i,o=t.delay,s=void 0===o?0:o;Ne(t,["duration","easing","delay"]);return(Array.isArray(e)?e:[e]).map((function(e){return"".concat(e," ").concat("string"===typeof r?r:Tt(r)," ").concat(a," ").concat("string"===typeof s?s:Tt(s))})).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}},Rt={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function At(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.breakpoints,n=void 0===t?{}:t,r=e.mixins,i=void 0===r?{}:r,a=e.palette,o=void 0===a?{}:a,s=e.spacing,l=e.typography,u=void 0===l?{}:l,c=Ne(e,["breakpoints","mixins","palette","spacing","typography"]),f=st(o),d=function(e){var t=e.values,n=void 0===t?{xs:0,sm:600,md:960,lg:1280,xl:1920}:t,r=e.unit,i=void 0===r?"px":r,a=e.step,o=void 0===a?5:a,s=Ne(e,["values","unit","step"]);function l(e){var t="number"===typeof n[e]?n[e]:e;return"@media (min-width:".concat(t).concat(i,")")}function u(e,t){var r=Fe.indexOf(t);return r===Fe.length-1?l(e):"@media (min-width:".concat("number"===typeof n[e]?n[e]:e).concat(i,") and ")+"(max-width:".concat((-1!==r&&"number"===typeof n[Fe[r+1]]?n[Fe[r+1]]:t)-o/100).concat(i,")")}return(0,De.Z)({keys:Fe,values:n,up:l,down:function(e){var t=Fe.indexOf(e)+1,r=n[Fe[t]];return t===Fe.length?l("xs"):"@media (max-width:".concat(("number"===typeof r&&t>0?r:e)-o/100).concat(i,")")},between:u,only:function(e){return u(e,e)},width:function(e){return n[e]}},s)}(n),h=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(e.mui)return e;var t=Ct({spacing:e}),n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return 0===n.length?t(1):1===n.length?t(n[0]):n.map((function(e){if("string"===typeof e)return e;var n=t(e);return"number"===typeof n?"".concat(n,"px"):n})).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return e}}),n.mui=!0,n}(s),p=ze({breakpoints:d,direction:"ltr",mixins:We(d,h,i),overrides:{},palette:f,props:{},shadows:pt,typography:dt(f,u),spacing:h,shape:vt,transitions:jt,zIndex:Rt},c),v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];return p=m.reduce((function(e,t){return ze(e,t)}),p)}var Nt=At,Dt=Nt({pallete:{light:{primary:{},secondary:{},background:{}},dark:{primary:{},secondary:{},background:{}}},typography:{},overrides:{}}),Lt=function(){return Lt=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Lt.apply(this,arguments)};function It(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function zt(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function Ft(){return Ft=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ft.apply(this,arguments)}function Bt(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Wt=/^((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)-.*))$/,Vt=Bt((function(e){return Wt.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&e.charCodeAt(2)<91}));var Zt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(r){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),Ht="-ms-",$t="-moz-",Ut="-webkit-",Kt="comm",qt="rule",Yt="decl",Gt="@keyframes",Xt=Math.abs,Qt=String.fromCharCode,Jt=Object.assign;function en(e){return e.trim()}function tn(e,t,n){return e.replace(t,n)}function nn(e,t){return e.indexOf(t)}function rn(e,t){return 0|e.charCodeAt(t)}function an(e,t,n){return e.slice(t,n)}function on(e){return e.length}function sn(e){return e.length}function ln(e,t){return t.push(e),e}var un=1,cn=1,fn=0,dn=0,hn=0,pn="";function vn(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:un,column:cn,length:o,return:""}}function mn(e,t){return Jt(vn("",null,null,"",null,null,0),e,{length:-e.length},t)}function gn(){return hn=dn>0?rn(pn,--dn):0,cn--,10===hn&&(cn=1,un--),hn}function yn(){return hn=dn<fn?rn(pn,dn++):0,cn++,10===hn&&(cn=1,un++),hn}function bn(){return rn(pn,dn)}function xn(){return dn}function kn(e,t){return an(pn,e,t)}function wn(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 Sn(e){return un=cn=1,fn=on(pn=e),dn=0,[]}function _n(e){return pn="",e}function Cn(e){return en(kn(dn-1,Pn(91===e?e+2:40===e?e+1:e)))}function En(e){for(;(hn=bn())&&hn<33;)yn();return wn(e)>2||wn(hn)>3?"":" "}function On(e,t){for(;--t&&yn()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return kn(e,xn()+(t<6&&32==bn()&&32==yn()))}function Pn(e){for(;yn();)switch(hn){case e:return dn;case 34:case 39:34!==e&&39!==e&&Pn(hn);break;case 40:41===e&&Pn(e);break;case 92:yn()}return dn}function Mn(e,t){for(;yn()&&e+hn!==57&&(e+hn!==84||47!==bn()););return"/*"+kn(t,dn-1)+"*"+Qt(47===e?e:yn())}function Tn(e){for(;!wn(bn());)yn();return kn(e,dn)}function jn(e){return _n(Rn("",null,null,null,[""],e=Sn(e),0,[0],e))}function Rn(e,t,n,r,i,a,o,s,l){for(var u=0,c=0,f=o,d=0,h=0,p=0,v=1,m=1,g=1,y=0,b="",x=i,k=a,w=r,S=b;m;)switch(p=y,y=yn()){case 40:if(108!=p&&58==rn(S,f-1)){-1!=nn(S+=tn(Cn(y),"&","&\f"),"&\f")&&(g=-1);break}case 34:case 39:case 91:S+=Cn(y);break;case 9:case 10:case 13:case 32:S+=En(p);break;case 92:S+=On(xn()-1,7);continue;case 47:switch(bn()){case 42:case 47:ln(Nn(Mn(yn(),xn()),t,n),l);break;default:S+="/"}break;case 123*v:s[u++]=on(S)*g;case 125*v:case 59:case 0:switch(y){case 0:case 125:m=0;case 59+c:h>0&&on(S)-f&&ln(h>32?Dn(S+";",r,n,f-1):Dn(tn(S," ","")+";",r,n,f-2),l);break;case 59:S+=";";default:if(ln(w=An(S,t,n,u,c,i,s,b,x=[],k=[],f),a),123===y)if(0===c)Rn(S,t,w,w,x,a,f,s,k);else switch(99===d&&110===rn(S,3)?100:d){case 100:case 109:case 115:Rn(e,w,w,r&&ln(An(e,w,w,0,0,i,s,b,i,x=[],f),k),i,k,f,s,r?x:k);break;default:Rn(S,w,w,w,[""],k,0,s,k)}}u=c=h=0,v=g=1,b=S="",f=o;break;case 58:f=1+on(S),h=p;default:if(v<1)if(123==y)--v;else if(125==y&&0==v++&&125==gn())continue;switch(S+=Qt(y),y*v){case 38:g=c>0?1:(S+="\f",-1);break;case 44:s[u++]=(on(S)-1)*g,g=1;break;case 64:45===bn()&&(S+=Cn(yn())),d=bn(),c=f=on(b=S+=Tn(xn())),y++;break;case 45:45===p&&2==on(S)&&(v=0)}}return a}function An(e,t,n,r,i,a,o,s,l,u,c){for(var f=i-1,d=0===i?a:[""],h=sn(d),p=0,v=0,m=0;p<r;++p)for(var g=0,y=an(e,f+1,f=Xt(v=o[p])),b=e;g<h;++g)(b=en(v>0?d[g]+" "+y:tn(y,/&\f/g,d[g])))&&(l[m++]=b);return vn(e,t,n,0===i?qt:s,l,u,c)}function Nn(e,t,n){return vn(e,t,n,Kt,Qt(hn),an(e,2,-2),0)}function Dn(e,t,n,r){return vn(e,t,n,Yt,an(e,0,r),an(e,r+1,-1),r)}function Ln(e,t){for(var n="",r=sn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function In(e,t,n,r){switch(e.type){case"@import":case Yt:return e.return=e.return||e.value;case Kt:return"";case Gt:return e.return=e.value+"{"+Ln(e.children,r)+"}";case qt:e.value=e.props.join(",")}return on(n=Ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function zn(e){var t=sn(e);return function(n,r,i,a){for(var o="",s=0;s<t;s++)o+=e[s](n,r,i,a)||"";return o}}function Fn(e){return function(t){t.root||(t=t.return)&&e(t)}}var Bn=function(e,t,n){for(var r=0,i=0;r=i,i=bn(),38===r&&12===i&&(t[n]=1),!wn(i);)yn();return kn(e,dn)},Wn=function(e,t){return _n(function(e,t){var n=-1,r=44;do{switch(wn(r)){case 0:38===r&&12===bn()&&(t[n]=1),e[n]+=Bn(dn-1,t,n);break;case 2:e[n]+=Cn(r);break;case 4:if(44===r){e[++n]=58===bn()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Qt(r)}}while(r=yn());return e}(Sn(e),t))},Vn=new WeakMap,Zn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||Vn.get(n))&&!r){Vn.set(e,!0);for(var i=[],a=Wn(t,i),o=n.props,s=0,l=0;s<a.length;s++)for(var u=0;u<o.length;u++,l++)e.props[l]=i[s]?a[s].replace(/&\f/g,o[u]):o[u]+" "+a[s]}}},Hn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function $n(e,t){switch(function(e,t){return 45^rn(e,0)?(((t<<2^rn(e,0))<<2^rn(e,1))<<2^rn(e,2))<<2^rn(e,3):0}(e,t)){case 5103:return Ut+"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 Ut+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ut+e+$t+e+Ht+e+e;case 6828:case 4268:return Ut+e+Ht+e+e;case 6165:return Ut+e+Ht+"flex-"+e+e;case 5187:return Ut+e+tn(e,/(\w+).+(:[^]+)/,Ut+"box-$1$2"+Ht+"flex-$1$2")+e;case 5443:return Ut+e+Ht+"flex-item-"+tn(e,/flex-|-self/,"")+e;case 4675:return Ut+e+Ht+"flex-line-pack"+tn(e,/align-content|flex-|-self/,"")+e;case 5548:return Ut+e+Ht+tn(e,"shrink","negative")+e;case 5292:return Ut+e+Ht+tn(e,"basis","preferred-size")+e;case 6060:return Ut+"box-"+tn(e,"-grow","")+Ut+e+Ht+tn(e,"grow","positive")+e;case 4554:return Ut+tn(e,/([^-])(transform)/g,"$1"+Ut+"$2")+e;case 6187:return tn(tn(tn(e,/(zoom-|grab)/,Ut+"$1"),/(image-set)/,Ut+"$1"),e,"")+e;case 5495:case 3959:return tn(e,/(image-set\([^]*)/,Ut+"$1$`$1");case 4968:return tn(tn(e,/(.+:)(flex-)?(.*)/,Ut+"box-pack:$3"+Ht+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ut+e+e;case 4095:case 3583:case 4068:case 2532:return tn(e,/(.+)-inline(.+)/,Ut+"$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(on(e)-1-t>6)switch(rn(e,t+1)){case 109:if(45!==rn(e,t+4))break;case 102:return tn(e,/(.+:)(.+)-([^]+)/,"$1"+Ut+"$2-$3$1"+$t+(108==rn(e,t+3)?"$3":"$2-$3"))+e;case 115:return~nn(e,"stretch")?$n(tn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==rn(e,t+1))break;case 6444:switch(rn(e,on(e)-3-(~nn(e,"!important")&&10))){case 107:return tn(e,":",":"+Ut)+e;case 101:return tn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ut+(45===rn(e,14)?"inline-":"")+"box$3$1"+Ut+"$2$3$1"+Ht+"$2box$3")+e}break;case 5936:switch(rn(e,t+11)){case 114:return Ut+e+Ht+tn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ut+e+Ht+tn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ut+e+Ht+tn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ut+e+Ht+e+e}return e}var Un="undefined"!==typeof document,Kn=Un?void 0:function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}((function(){return Bt((function(){var e={};return function(t){return e[t]}}))})),qn=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Yt:e.return=$n(e.value,e.length);break;case Gt:return Ln([mn(e,{value:tn(e.value,"@","@"+Ut)})],r);case qt:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ln([mn(e,{props:[tn(t,/:(read-\w+)/,":"+$t+"$1")]})],r);case"::placeholder":return Ln([mn(e,{props:[tn(t,/:(plac\w+)/,":"+Ut+"input-$1")]}),mn(e,{props:[tn(t,/:(plac\w+)/,":"+$t+"$1")]}),mn(e,{props:[tn(t,/:(plac\w+)/,Ht+"input-$1")]})],r)}return""}))}}],Yn=function(e){var t=e.key;if(Un&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||qn;var i,a,o={},s=[];Un&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)o[t[n]]=!0;s.push(e)})));var l=[Zn,Hn];if(Un){var u,c=[In,Fn((function(e){u.insert(e)}))],f=zn(l.concat(r,c));a=function(e,t,n,r){u=n,function(e){Ln(jn(e),f)}(e?e+"{"+t.styles+"}":t.styles),r&&(m.inserted[t.name]=!0)}}else{var d=[In],h=zn(l.concat(r,d)),p=Kn(r)(t),v=function(e,t){var n=t.name;return void 0===p[n]&&(p[n]=function(e){return Ln(jn(e),h)}(e?e+"{"+t.styles+"}":t.styles)),p[n]};a=function(e,t,n,r){var i=t.name,a=v(e,t);return void 0===m.compat?(r&&(m.inserted[i]=!0),a):r?void(m.inserted[i]=a):a}}var m={key:t,sheet:new Zt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:a};return m.sheet.hydrate(s),m};var Gn="undefined"!==typeof document,Xn=function(e){return e()},Qn=!!t.useInsertionEffect&&t.useInsertionEffect,Jn=Gn&&Qn||Xn,er="undefined"!==typeof document,tr=(0,e.createContext)("undefined"!==typeof HTMLElement?Yn({key:"css"}):null);tr.Provider;var nr=function(t){return(0,e.forwardRef)((function(n,r){var i=(0,e.useContext)(tr);return t(n,i,r)}))};er||(nr=function(t){return function(n){var r=(0,e.useContext)(tr);return null===r?(r=Yn({key:"css"}),(0,e.createElement)(tr.Provider,{value:r},t(n,r))):t(n,r)}});var rr=(0,e.createContext)({});var ir="undefined"!==typeof document;var ar=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===ir&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)};var or={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},sr=/[A-Z]|^ms/g,lr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ur=function(e){return 45===e.charCodeAt(1)},cr=function(e){return null!=e&&"boolean"!==typeof e},fr=Bt((function(e){return ur(e)?e:e.replace(sr,"-$&").toLowerCase()})),dr=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(lr,(function(e,t,n){return pr={name:t,styles:n,next:pr},t}))}return 1===or[e]||ur(e)||"number"!==typeof t||0===t?t:t+"px"};function hr(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return pr={name:n.name,styles:n.styles,next:pr},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)pr={name:r.name,styles:r.styles,next:pr},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=hr(e,t,n[i])+";";else for(var a in n){var o=n[a];if("object"!==typeof o)null!=t&&void 0!==t[o]?r+=a+"{"+t[o]+"}":cr(o)&&(r+=fr(a)+":"+dr(a,o)+";");else if(!Array.isArray(o)||"string"!==typeof o[0]||null!=t&&void 0!==t[o[0]]){var s=hr(e,t,o);switch(a){case"animation":case"animationName":r+=fr(a)+":"+s+";";break;default:r+=a+"{"+s+"}"}}else for(var l=0;l<o.length;l++)cr(o[l])&&(r+=fr(a)+":"+dr(a,o[l])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=pr,a=n(e);return pr=i,hr(e,t,a)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}var pr,vr=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var mr=Vt,gr=function(e){return"theme"!==e},yr=function(e){return"string"===typeof e&&e.charCodeAt(0)>96?mr:gr},br=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!==typeof r&&n&&(r=e.__emotion_forwardProp),r},xr="undefined"!==typeof document,kr=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;ar(n,r,i);var a=Jn((function(){return function(e,t,n){ar(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",a=t;do{var o=e.insert(t===a?"."+r:"",a,e.sheet,!0);ir||void 0===o||(i+=o),a=a.next}while(void 0!==a);if(!ir&&0!==i.length)return i}}(n,r,i)}));if(!xr&&void 0!==a){for(var o,s=r.name,l=r.next;void 0!==l;)s+=" "+l.name,l=l.next;return(0,e.createElement)("style",((o={})["data-emotion"]=n.key+" "+s,o.dangerouslySetInnerHTML={__html:a},o.nonce=n.sheet.nonce,o))}return null},wr=function t(n,r){var i,a,o=n.__emotion_real===n,s=o&&n.__emotion_base||n;void 0!==r&&(i=r.label,a=r.target);var l=br(n,r,o),u=l||yr(s),c=!u("as");return function(){var f=arguments,d=o&&void 0!==n.__emotion_styles?n.__emotion_styles.slice(0):[];if(void 0!==i&&d.push("label:"+i+";"),null==f[0]||void 0===f[0].raw)d.push.apply(d,f);else{0,d.push(f[0][0]);for(var h=f.length,p=1;p<h;p++)d.push(f[p],f[0][p])}var v=nr((function(t,n,r){var i=c&&t.as||s,o="",f=[],h=t;if(null==t.theme){for(var p in h={},t)h[p]=t[p];h.theme=(0,e.useContext)(rr)}"string"===typeof t.className?o=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(n.registered,f,t.className):null!=t.className&&(o=t.className+" ");var v=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";pr=void 0;var a=e[0];null==a||void 0===a.raw?(r=!1,i+=hr(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=hr(n,t,e[o]),r&&(i+=a[o]);vr.lastIndex=0;for(var s,l="";null!==(s=vr.exec(i));)l+="-"+s[1];var u=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+l;return{name:u,styles:i,next:pr}}(d.concat(f),n.registered,h);o+=n.key+"-"+v.name,void 0!==a&&(o+=" "+a);var m=c&&void 0===l?yr(i):u,g={};for(var y in t)c&&"as"===y||m(y)&&(g[y]=t[y]);return g.className=o,g.ref=r,(0,e.createElement)(e.Fragment,null,(0,e.createElement)(kr,{cache:n,serialized:v,isStringTag:"string"===typeof i}),(0,e.createElement)(i,g))}));return v.displayName=void 0!==i?i:"Styled("+("string"===typeof s?s:s.displayName||s.name||"Component")+")",v.defaultProps=n.defaultProps,v.__emotion_real=v,v.__emotion_base=s,v.__emotion_styles=d,v.__emotion_forwardProp=l,Object.defineProperty(v,"toString",{value:function(){return"."+a}}),v.withComponent=function(e,n){return t(e,Ft({},r,n,{shouldForwardProp:br(v,n,!0)})).apply(void 0,d)},v}}.bind();["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){wr[e]=wr(e)}));var Sr,_r={exports:{}};Sr=_r,function(){var e={}.hasOwnProperty;function t(){for(var n=[],r=0;r<arguments.length;r++){var i=arguments[r];if(i){var a=typeof i;if("string"===a||"number"===a)n.push(i);else if(Array.isArray(i)){if(i.length){var o=t.apply(null,i);o&&n.push(o)}}else if("object"===a){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){n.push(i.toString());continue}for(var s in i)e.call(i,s)&&i[s]&&n.push(s)}}}return n.join(" ")}Sr.exports?(t.default=t,Sr.exports=t):window.classNames=t}();var Cr,Er,Or,Pr,Mr,Tr,jr,Rr,Ar,Nr,Dr,Lr,Ir,zr,Fr,Br=_r.exports,Wr=e.createContext(void 0),Vr=function(t){var n=t.children,r=e.useState(),i=r[0],a=r[1],o=e.useCallback((function(e){a((function(t){return Lt(Lt({},t),e)}))}),[]),s=e.useCallback((function(){a((function(e){return Lt(Lt({},e),{collapsed:!Boolean(null===e||void 0===e?void 0:e.collapsed)})}))}),[]),l=e.useCallback((function(){a((function(e){return Lt(Lt({},e),{toggled:!Boolean(null===e||void 0===e?void 0:e.toggled)})}))}),[]),u=e.useMemo((function(){return Lt(Lt({},i),{updateSidebarState:o,updateCollapseState:s,updateToggleState:l})}),[i,s,o,l]);return e.createElement(Wr.Provider,{value:u},n)},Zr=function(){var t=e.useContext(Wr);if(void 0===t)throw new Error("ProSidebarProvider is required!");return t},Hr="ps-sidebar-root",$r="ps-sidebar-container",Ur="ps-sidebar-image",Kr="ps-sidebar-backdrop",qr="ps-collapsed",Yr="ps-toggled",Gr="ps-rtl",Xr="ps-broken",Qr="ps-menu-root",Jr="ps-menuitem-root",ei="ps-submenu-root",ti="ps-menu-button",ni="ps-menu-prefix",ri="ps-menu-suffix",ii="ps-menu-label",ai="ps-menu-icon",oi="ps-submenu-content",si="ps-submenu-expand-icon",li="ps-disabled",ui="ps-active",ci="ps-open",fi=wr.div(Cr||(Cr=zt(["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"],["\n position: fixed;\n top: 0px;\n right: 0px;\n bottom: 0px;\n left: 0px;\n z-index: 1;\n background-color: rgb(0, 0, 0, 0.3);\n"]))),di={xs:"480px",sm:"576px",md:"768px",lg:"992px",xl:"1200px",xxl:"1600px",always:"always"},hi=wr.aside(Er||(Er=zt(["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"],["\n position: relative;\n border-right-width: 1px;\n border-right-style: solid;\n border-color: #efefef;\n\n transition: ",";\n\n width: ",";\n min-width: ",";\n\n &."," {\n width: ",";\n min-width: ",";\n }\n\n &."," {\n direction: rtl;\n border-right-width: none;\n border-left-width: 1px;\n border-right-style: none;\n border-left-style: solid;\n }\n\n &."," {\n position: fixed;\n height: 100%;\n top: 0px;\n z-index: 100;\n\n ","\n\n &."," {\n ","\n }\n\n &."," {\n ","\n }\n\n &."," {\n right: -",";\n\n &."," {\n right: -",";\n }\n\n &."," {\n right: 0;\n }\n }\n }\n\n ","\n"])),(function(e){var t=e.transitionDuration;return"width, left, right, ".concat(t,"ms")}),(function(e){return e.width}),(function(e){return e.width}),qr,(function(e){return e.collapsedWidth}),(function(e){return e.collapsedWidth}),Gr,Xr,(function(e){var t=e.rtl,n=e.width;return t?"":"left: -".concat(n,";")}),qr,(function(e){var t=e.rtl,n=e.collapsedWidth;return t?"":"left: -".concat(n,"; ")}),Yr,(function(e){return e.rtl?"":"left: 0;"}),Gr,(function(e){return e.width}),qr,(function(e){return e.collapsedWidth}),Yr,(function(e){return e.rootStyles})),pi=wr.div(Or||(Or=zt(["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"],["\n position: relative;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n z-index: 3;\n\n ","\n"])),(function(e){var t=e.backgroundColor;return t?"background-color:".concat(t,";"):""})),vi=wr.img(Pr||(Pr=zt(["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"],["\n &."," {\n width: 100%;\n height: 100%;\n object-fit: cover;\n object-position: center;\n position: absolute;\n left: 0;\n top: 0;\n z-index: 2;\n }\n"])),Ur),mi=e.forwardRef((function(t,n){var r,i=t.width,a=void 0===i?"250px":i,o=t.collapsedWidth,s=void 0===o?"80px":o,l=t.defaultCollapsed,u=void 0!==l&&l,c=t.className,f=t.children,d=t.breakPoint,h=t.customBreakPoint,p=t.backgroundColor,v=void 0===p?"rgb(249, 249, 249, 0.7)":p,m=t.transitionDuration,g=void 0===m?300:m,y=t.image,b=t.rtl,x=t.rootStyles,k=It(t,["width","collapsedWidth","defaultCollapsed","className","children","breakPoint","customBreakPoint","backgroundColor","transitionDuration","image","rtl","rootStyles"]),w=function(t){var n=e.useState("always"===t),r=n[0],i=n[1];return e.useEffect((function(){if(t&&"always"!==t){var e=window.matchMedia("(max-width: ".concat(t,")"));e.matches!==r&&i(e.matches);var n=function(){return i(e.matches)};return window.addEventListener("resize",n),function(){return window.removeEventListener("resize",n)}}}),[r,t]),r}(null!==h&&void 0!==h?h:d?di[d]:d),S=Zr(),_=S.updateSidebarState,C=S.collapsed,E=S.width,O=S.collapsedWidth,P=S.broken,M=S.toggled,T=S.transitionDuration,j=S.rtl,R=function(){_({toggled:!1})};return e.useEffect((function(){_({width:a,collapsedWidth:s,broken:w,rtl:b})}),[a,s,w,_,b]),e.useEffect((function(){_({collapsed:u,transitionDuration:g,toggled:!1})}),[u,g,_]),e.createElement(hi,Lt({ref:n,"data-testid":"".concat(Hr,"-test-id"),rtl:j,rootStyles:x,width:E,collapsedWidth:O,transitionDuration:null!==T&&void 0!==T?T:300,className:Br(Hr,(r={},r[qr]=C,r[Yr]=M,r[Xr]=P,r[Gr]=j,r),c)},k),e.createElement(pi,{"data-testid":"".concat($r,"-test-id"),className:$r,backgroundColor:v},f),y&&e.createElement(vi,{"data-testid":"".concat(Ur,"-test-id"),src:y,alt:"sidebar background",className:Ur}),P&&M&&e.createElement(fi,{"data-testid":"".concat(Kr,"-test-id"),role:"button",tabIndex:0,"aria-label":"backdrop",onClick:R,onKeyPress:R,className:Kr}))})),gi=wr.ul(Mr||(Mr=zt(["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"],["\n list-style-type: none;\n padding: 0;\n margin: 0;\n"]))),yi=wr.nav(Tr||(Tr=zt(["\n &."," {\n ","\n }\n"],["\n &."," {\n ","\n }\n"])),Qr,(function(e){return e.rootStyles})),bi=e.createContext(void 0),xi=e.forwardRef((function(t,n){var r=t.children,i=t.className,a=t.transitionDuration,o=void 0===a?300:a,s=t.closeOnClick,l=void 0!==s&&s,u=t.rootStyles,c=t.menuItemStyles,f=t.renderExpandIcon,d=It(t,["children","className","transitionDuration","closeOnClick","rootStyles","menuItemStyles","renderExpandIcon"]),h=e.useMemo((function(){return{transitionDuration:o,closeOnClick:l,menuItemStyles:c,renderExpandIcon:f}}),[o,l,c,f]);return e.createElement(bi.Provider,{value:h},e.createElement(yi,Lt({ref:n,className:Br(Qr,i),rootStyles:u},d),e.createElement(gi,null,r)))})),ki=function(){var t=e.useContext(bi);if(void 0===t)throw new Error("Menu Component is required!");return t},wi=wr.div(Rr||(Rr=zt(["\n display: none;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"],["\n display: none;\n overflow: hidden;\n z-index: 999;\n transition: height ","ms;\n box-sizing: border-box;\n background-color: white;\n\n ","\n\n ","\n\n ",";\n\n ",";\n"])),(function(e){return e.transitionDuration}),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n&&"\n background-color: white;\n box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;\n "}),(function(e){return e.defaultOpen&&"height: auto;display: block;"}),(function(e){var t=e.collapsed,n=e.firstLevel,r=e.openWhenCollapsed;return t&&n?"\n \n padding-left: 0px;\n width: 200px;\n border-radius: 4px;\n height: auto!important;\n display: block!important; \n transition: none!important; \n visibility: ".concat(r?"visible":"hidden",";\n "):"\n position: static!important;\n transform: none!important;\n "}),(function(e){return e.rootStyles})),Si=e.forwardRef((function(t,n){var r=t.children,i=t.open,a=t.openWhenCollapsed,o=t.firstLevel,s=t.collapsed,l=It(t,["children","open","openWhenCollapsed","firstLevel","collapsed"]),u=ki().transitionDuration,c=n,f=e.useState(!1),d=f[0],h=f[1];return e.useEffect((function(){if(clearTimeout(jr),d)if(i){var e=null===c||void 0===c?void 0:c.current;if(e){e.style.display="block",e.style.overflow="hidden",e.style.height="auto";var t=e.offsetHeight;e.style.height="0px",e.offsetHeight,e.style.height="".concat(t,"px"),jr=setTimeout((function(){e.style.overflow="auto",e.style.height="auto"}),u)}}else{var n=null===c||void 0===c?void 0:c.current;n&&(n.style.overflow="hidden",n.style.height="".concat(n.offsetHeight,"px"),n.offsetHeight,n.style.height="0px",jr=setTimeout((function(){n.style.overflow="auto",n.style.display="none"}),u))}return function(){return clearTimeout(jr)}}),[i,c]),e.useEffect((function(){h(!0)}),[]),e.createElement(wi,Lt({"data-testid":"".concat(oi,"-test-id"),ref:n,firstLevel:o,collapsed:s,open:i,openWhenCollapsed:a,transitionDuration:u},l),e.createElement(gi,null,r))})),_i=wr.span(Ar||(Ar=zt(["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"],["\n flex-grow: 1;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n ",";\n"])),(function(e){return e.rootStyles})),Ci=wr.span(Nr||(Nr=zt(["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"],["\n width: 35px;\n min-width: 35px;\n height: 35px;\n line-height: 35px;\n text-align: center;\n display: inline-block;\n border-radius: 2px;\n display: flex;\n align-items: center;\n justify-content: center;\n\n ","\n\n ",";\n"])),(function(e){return e.rtl?"margin-left: 10px;":"margin-right: 10px;"}),(function(e){return e.rootStyles})),Ei=wr.span(Dr||(Dr=zt(["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n ","\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),(function(e){return e.rtl?"margin-left: 5px;":"margin-right: 5px;"}),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1"}),(function(e){return e.transitionDuration}),(function(e){return e.rootStyles})),Oi=wr.span(Lr||(Lr=zt(["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"],["\n margin-right: 5px;\n margin-left: 5px;\n opacity: ",";\n transition: opacity ","ms;\n\n ",";\n"])),(function(e){var t=e.firstLevel,n=e.collapsed;return t&&n?"0":"1"}),(function(e){return e.transitionDuration}),(function(e){return e.rootStyles})),Pi=wr.span(Ir||(Ir=zt(["\n ","\n\n ",";\n"],["\n ","\n\n ",";\n"])),(function(e){var t=e.collapsed,n=e.level,r=e.rtl;return t&&0===n&&"\n position: absolute;\n ".concat(r?"left: 10px;":"right: 10px;","\n top: 50%;\n transform: translateY(-50%);\n \n ")}),(function(e){return e.rootStyles})),Mi=wr.span(zr||(zr=zt(["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"],["\n display: inline-block;\n transition: transform 0.3s;\n ","\n\n width: 5px;\n height: 5px;\n transform: rotate(",");\n"])),(function(e){return e.rtl?"\n border-left: 2px solid currentcolor;\n border-top: 2px solid currentcolor;\n ":" border-right: 2px solid currentcolor;\n border-bottom: 2px solid currentcolor;\n "}),(function(e){var t=e.open,n=e.rtl;return t?n?"-135deg":"45deg":"-45deg"})),Ti=wr.span(Fr||(Fr=zt(["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"],["\n width: 5px;\n height: 5px;\n background-color: currentcolor;\n border-radius: 50%;\n display: inline-block;\n"]))),ji="top",Ri="bottom",Ai="right",Ni="left",Di="auto",Li=[ji,Ri,Ai,Ni],Ii="start",zi="end",Fi="clippingParents",Bi="viewport",Wi="popper",Vi="reference",Zi=Li.reduce((function(e,t){return e.concat([t+"-"+Ii,t+"-"+zi])}),[]),Hi=[].concat(Li,[Di]).reduce((function(e,t){return e.concat([t,t+"-"+Ii,t+"-"+zi])}),[]),$i=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Ui(e){return e?(e.nodeName||"").toLowerCase():null}function Ki(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qi(e){return e instanceof Ki(e).Element||e instanceof Element}function Yi(e){return e instanceof Ki(e).HTMLElement||e instanceof HTMLElement}function Gi(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Ki(e).ShadowRoot||e instanceof ShadowRoot)}var Xi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Yi(i)&&Ui(i)&&(Object.assign(i.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?i.removeAttribute(e):i.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});Yi(r)&&Ui(r)&&(Object.assign(r.style,a),Object.keys(i).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Qi(e){return e.split("-")[0]}var Ji=Math.max,ea=Math.min,ta=Math.round;function na(){var e=navigator.userAgentData;return null!=e&&e.brands?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function ra(){return!/^((?!chrome|android).)*safari/i.test(na())}function ia(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Yi(e)&&(i=e.offsetWidth>0&&ta(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&ta(r.height)/e.offsetHeight||1);var o=(qi(e)?Ki(e):window).visualViewport,s=!ra()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,f=r.height/a;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l,x:l,y:u}}function aa(e){var t=ia(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function oa(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Gi(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function sa(e){return Ki(e).getComputedStyle(e)}function la(e){return["table","td","th"].indexOf(Ui(e))>=0}function ua(e){return((qi(e)?e.ownerDocument:e.document)||window.document).documentElement}function ca(e){return"html"===Ui(e)?e:e.assignedSlot||e.parentNode||(Gi(e)?e.host:null)||ua(e)}function fa(e){return Yi(e)&&"fixed"!==sa(e).position?e.offsetParent:null}function da(e){for(var t=Ki(e),n=fa(e);n&&la(n)&&"static"===sa(n).position;)n=fa(n);return n&&("html"===Ui(n)||"body"===Ui(n)&&"static"===sa(n).position)?t:n||function(e){var t=/firefox/i.test(na());if(/Trident/i.test(na())&&Yi(e)&&"fixed"===sa(e).position)return null;var n=ca(e);for(Gi(n)&&(n=n.host);Yi(n)&&["html","body"].indexOf(Ui(n))<0;){var r=sa(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function ha(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function pa(e,t,n){return Ji(e,ea(t,n))}function va(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ma(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var ga={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Qi(n.placement),l=ha(s),u=[Ni,Ai].indexOf(s)>=0?"height":"width";if(a&&o){var c=function(e,t){return va("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ma(e,Li))}(i.padding,n),f=aa(a),d="y"===l?ji:Ni,h="y"===l?Ri:Ai,p=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],m=da(a),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=p/2-v/2,b=c[d],x=g-f[u]-c[h],k=g/2-f[u]/2+y,w=pa(b,k,x),S=l;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&oa(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ya(e){return e.split("-")[1]}var ba={top:"auto",right:"auto",bottom:"auto",left:"auto"};function xa(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=void 0===d?0:d,p=o.y,v=void 0===p?0:p,m="function"===typeof c?c({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=Ni,x=ji,k=window;if(u){var w=da(n),S="clientHeight",_="clientWidth";if(w===Ki(n)&&"static"!==sa(w=ua(n)).position&&"absolute"===s&&(S="scrollHeight",_="scrollWidth"),i===ji||(i===Ni||i===Ai)&&a===zi)x=Ri,v-=(f&&w===k&&k.visualViewport?k.visualViewport.height:w[S])-r.height,v*=l?1:-1;if(i===Ni||(i===ji||i===Ri)&&a===zi)b=Ai,h-=(f&&w===k&&k.visualViewport?k.visualViewport.width:w[_])-r.width,h*=l?1:-1}var C,E=Object.assign({position:s},u&&ba),O=!0===c?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ta(t*r)/r||0,y:ta(n*r)/r||0}}({x:h,y:v}):{x:h,y:v};return h=O.x,v=O.y,l?Object.assign({},E,((C={})[x]=y?"0":"",C[b]=g?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",C)):Object.assign({},E,((t={})[x]=y?v+"px":"",t[b]=g?h+"px":"",t.transform="",t))}var ka={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:Qi(t.placement),variation:ya(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,xa(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,xa(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},wa={passive:!0};var Sa={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=Ki(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,wa)})),s&&l.addEventListener("resize",n.update,wa),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,wa)})),s&&l.removeEventListener("resize",n.update,wa)}},data:{}},_a={left:"right",right:"left",bottom:"top",top:"bottom"};function Ca(e){return e.replace(/left|right|bottom|top/g,(function(e){return _a[e]}))}var Ea={start:"end",end:"start"};function Oa(e){return e.replace(/start|end/g,(function(e){return Ea[e]}))}function Pa(e){var t=Ki(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ma(e){return ia(ua(e)).left+Pa(e).scrollLeft}function Ta(e){var t=sa(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function ja(e){return["html","body","#document"].indexOf(Ui(e))>=0?e.ownerDocument.body:Yi(e)&&Ta(e)?e:ja(ca(e))}function Ra(e,t){var n;void 0===t&&(t=[]);var r=ja(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Ki(r),o=i?[a].concat(a.visualViewport||[],Ta(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Ra(ca(o)))}function Aa(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Na(e,t,n){return t===Bi?Aa(function(e,t){var n=Ki(e),r=ua(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=ra();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Ma(e),y:l}}(e,n)):qi(t)?function(e,t){var n=ia(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Aa(function(e){var t,n=ua(e),r=Pa(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=Ji(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Ji(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Ma(e),l=-r.scrollTop;return"rtl"===sa(i||n).direction&&(s+=Ji(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(ua(e)))}function Da(e,t,n,r){var i="clippingParents"===t?function(e){var t=Ra(ca(e)),n=["absolute","fixed"].indexOf(sa(e).position)>=0&&Yi(e)?da(e):e;return qi(n)?t.filter((function(e){return qi(e)&&oa(e,n)&&"body"!==Ui(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce((function(t,n){var i=Na(e,n,r);return t.top=Ji(i.top,t.top),t.right=ea(i.right,t.right),t.bottom=ea(i.bottom,t.bottom),t.left=Ji(i.left,t.left),t}),Na(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function La(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?Qi(i):null,o=i?ya(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case ji:t={x:s,y:n.y-r.height};break;case Ri:t={x:s,y:n.y+n.height};break;case Ai:t={x:n.x+n.width,y:l};break;case Ni:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?ha(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case Ii:t[u]=t[u]-(n[c]/2-r[c]/2);break;case zi:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Ia(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?Fi:s,u=n.rootBoundary,c=void 0===u?Bi:u,f=n.elementContext,d=void 0===f?Wi:f,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,m=void 0===v?0:v,g=va("number"!==typeof m?m:ma(m,Li)),y=d===Wi?Vi:Wi,b=e.rects.popper,x=e.elements[p?y:d],k=Da(qi(x)?x:x.contextElement||ua(e.elements.popper),l,c,o),w=ia(e.elements.reference),S=La({reference:w,element:b,strategy:"absolute",placement:i}),_=Aa(Object.assign({},b,S)),C=d===Wi?_:w,E={top:k.top-C.top+g.top,bottom:C.bottom-k.bottom+g.bottom,left:k.left-C.left+g.left,right:C.right-k.right+g.right},O=e.modifiersData.offset;if(d===Wi&&O){var P=O[i];Object.keys(E).forEach((function(e){var t=[Ai,Ri].indexOf(e)>=0?1:-1,n=[ji,Ri].indexOf(e)>=0?"y":"x";E[e]+=P[n]*t}))}return E}function za(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Hi:l,c=ya(r),f=c?s?Zi:Zi.filter((function(e){return ya(e)===c})):Li,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=Ia(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Qi(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}var Fa={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=Qi(m),y=l||(g===m||!p?[Ca(m)]:function(e){if(Qi(e)===Di)return[];var t=Ca(e);return[Oa(e),t,Oa(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Qi(n)===Di?za(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,k=t.rects.popper,w=new Map,S=!0,_=b[0],C=0;C<b.length;C++){var E=b[C],O=Qi(E),P=ya(E)===Ii,M=[ji,Ri].indexOf(O)>=0,T=M?"width":"height",j=Ia(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),R=M?P?Ai:Ni:P?Ri:ji;x[T]>k[T]&&(R=Ca(R));var A=Ca(R),N=[];if(a&&N.push(j[O]<=0),s&&N.push(j[R]<=0,j[A]<=0),N.every((function(e){return e}))){_=E,S=!1;break}w.set(E,N)}if(S)for(var D=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},L=p?3:1;L>0;L--){if("break"===D(L))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ba(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wa(e){return[ji,Ai,Ri,Ni].some((function(t){return e[t]>=0}))}var Va={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=Hi.reduce((function(e,n){return e[n]=function(e,t,n){var r=Qi(e),i=[Ni,ji].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[Ni,Ai].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}};var Za={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,v=void 0===p?0:p,m=Ia(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=Qi(t.placement),y=ya(t.placement),b=!y,x=ha(g),k="x"===x?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,C="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(a){var M,T="y"===x?ji:Ni,j="y"===x?Ri:Ai,R="y"===x?"height":"width",A=w[x],N=A+m[T],D=A-m[j],L=h?-_[R]/2:0,I=y===Ii?S[R]:_[R],z=y===Ii?-_[R]:-S[R],F=t.elements.arrow,B=h&&F?aa(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=W[T],Z=W[j],H=pa(0,S[R],B[R]),$=b?S[R]/2-L-H-V-E.mainAxis:I-H-V-E.mainAxis,U=b?-S[R]/2+L+H+Z+E.mainAxis:z+H+Z+E.mainAxis,K=t.elements.arrow&&da(t.elements.arrow),q=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,Y=null!=(M=null==O?void 0:O[x])?M:0,G=A+U-Y,X=pa(h?ea(N,A+$-Y-q):N,A,h?Ji(D,G):D);w[x]=X,P[x]=X-A}if(s){var Q,J="x"===x?ji:Ni,ee="x"===x?Ri:Ai,te=w[k],ne="y"===k?"height":"width",re=te+m[J],ie=te-m[ee],ae=-1!==[ji,Ni].indexOf(g),oe=null!=(Q=null==O?void 0:O[k])?Q:0,se=ae?re:te-S[ne]-_[ne]-oe+E.altAxis,le=ae?te+S[ne]+_[ne]-oe-E.altAxis:ie,ue=h&&ae?function(e,t,n){var r=pa(e,t,n);return r>n?n:r}(se,te,le):pa(h?se:re,te,h?le:ie);w[k]=ue,P[k]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function Ha(e,t,n){void 0===n&&(n=!1);var r=Yi(t),i=Yi(t)&&function(e){var t=e.getBoundingClientRect(),n=ta(t.width)/e.offsetWidth||1,r=ta(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=ua(t),o=ia(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==Ui(t)||Ta(a))&&(s=function(e){return e!==Ki(e)&&Yi(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Pa(e);var t}(t)),Yi(t)?((l=ia(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Ma(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function $a(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function Ua(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Ka={placement:"bottom",modifiers:[],strategy:"absolute"};function qa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function Ya(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?Ka:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ka,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},a,i.options,s),i.scrollParents={reference:qi(e)?Ra(e):e.contextElement?Ra(e.contextElement):[],popper:Ra(t)};var c=function(e){var t=$a(e);return $i.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=c.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var s=a({state:i,name:t,instance:l,options:r}),u=function(){};o.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(qa(t,n)){i.rects={reference:Ha(t,da(n),"fixed"===i.options.strategy),popper:aa(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,u=a.options,c=void 0===u?{}:u,f=a.name;"function"===typeof o&&(i=o({state:i,options:c,name:f,instance:l})||i)}else i.reset=!1,r=-1}}},update:Ua((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!qa(e,t))return l;function u(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Ga,Xa,Qa=Ya({defaultModifiers:[Sa,{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=La({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ka,Xi,Va,Fa,Za,ga,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ia(t,{elementContext:"reference"}),s=Ia(t,{altBoundary:!0}),l=Ba(o,r),u=Ba(s,i,a),c=Wa(l),f=Wa(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}}]}),Ja=function(e){var t=e.rtl,n=e.level,r=e.collapsed,i=e.disabled,a=e.active;return"\n display: flex;\n align-items: center;\n height: 50px;\n text-decoration: none;\n color: inherit;\n box-sizing: border-box;\n cursor: pointer;\n\n ".concat(t?"padding-left: 20px;\n padding-right: ".concat(0===n?20:20*(r?n:n+1),"px;\n "):"padding-right: 20px;\n padding-left: ".concat(0===n?20:20*(r?n:n+1),"px;\n "),"\n\n &:hover {\n background-color: #f3f3f3;\n }\n\n ").concat(i&&" \n pointer-events: none;\n cursor: default;\n color:#adadad;\n ","\n\n ").concat(a&&"background-color: #e2eef9;","\n \n ")},eo=e.forwardRef((function(t,n){var r=t.className,i=t.component,a=t.children,o=It(t,["className","component","children"]);if(i){if("string"===typeof i)return e.createElement(i,Lt(Lt({className:Br(r)},o),{ref:n}),a);var s=i.props,l=s.className,u=It(s,["className"]);return e.cloneElement(i,Lt(Lt(Lt({className:Br(r,l)},o),u),{ref:n}),a)}return e.createElement("a",Lt({ref:n,className:Br(r)},o),a)})),to=wr.li(Ga||(Ga=zt(["\n position: relative;\n width: 100%;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"],["\n position: relative;\n width: 100%;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"])),(function(e){return e.menuItemStyles}),(function(e){return e.rootStyles}),ti,(function(e){var t=e.level,n=e.disabled,r=e.active,i=e.collapsed,a=e.rtl;return Ja({level:t,disabled:n,active:r,collapsed:i,rtl:a})}),(function(e){return e.buttonStyles})),no=(e.forwardRef((function(t,n){var r,i=t.children,a=t.className,o=t.label,s=t.icon,l=t.title,u=t.prefix,c=t.suffix,f=t.open,d=t.defaultOpen,h=t.level,p=void 0===h?0:h,v=t.active,m=void 0!==v&&v,g=t.disabled,y=void 0!==g&&g,b=t.rootStyles,x=t.component,k=t.onOpenChange,w=t.onClick,S=t.onKeyUp,_=It(t,["children","className","label","icon","title","prefix","suffix","open","defaultOpen","level","active","disabled","rootStyles","component","onOpenChange","onClick","onKeyUp"]),C=Zr(),E=C.collapsed,O=C.transitionDuration,P=C.rtl,M=ki(),T=M.renderExpandIcon,j=M.closeOnClick,R=M.menuItemStyles,A=e.useState(!!d),N=A[0],D=A[1],L=e.useState(!!d),I=L[0],z=L[1],F=e.useState(!1),B=F[0],W=F[1],V=e.Children.toArray(i).filter(Boolean),Z=e.useRef(null),H=e.useRef(null),$=function(t){var n=t.level,r=t.buttonRef,i=t.contentRef,a=Zr(),o=a.collapsed,s=a.transitionDuration,l=a.toggled,u=e.useRef();return e.useEffect((function(){return 0===n&&o&&i.current&&r.current&&(u.current=Qa(r.current,i.current,{placement:"right",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[0,5]}}]})),function(){var e;return null===(e=u.current)||void 0===e?void 0:e.destroy()}}),[n,o,i,r]),e.useEffect((function(){if(i.current&&r.current){var e=new ResizeObserver((function(){var e;null===(e=u.current)||void 0===e||e.update()}));e.observe(i.current),e.observe(r.current)}setTimeout((function(){var e;null===(e=u.current)||void 0===e||e.update()}),s)}),[s,l,i,r]),{popperInstance:u.current}}({level:p,buttonRef:Z,contentRef:H}).popperInstance,U=function(){"undefined"!==typeof f||0===p&&E?null===k||void 0===k||k(!f):(null===k||void 0===k||k(!N),D(!N))},K=function(e){if(R){var t={level:p,disabled:y,active:m,isSubmenu:!0,open:null!==f&&void 0!==f?f:N},n=R.root,r=R.button,i=R.label,a=R.icon,o=R.prefix,s=R.suffix,l=R.subMenuContent,u=R.SubMenuExpandIcon;switch(e){case"root":return"function"===typeof n?n(t):n;case"button":return"function"===typeof r?r(t):r;case"label":return"function"===typeof i?i(t):i;case"icon":return"function"===typeof a?a(t):a;case"prefix":return"function"===typeof o?o(t):o;case"suffix":return"function"===typeof s?s(t):s;case"SubMenuExpandIcon":return"function"===typeof u?u(t):u;case"subMenuContent":return"function"===typeof l?l(t):l;default:return}}};e.useLayoutEffect((function(){setTimeout((function(){return null===$||void 0===$?void 0:$.update()}),O),E&&0===p&&W(!1)}),[E,p,P,O,$]),e.useEffect((function(){var e=function(e){var t,n,r;!B&&(null===(t=Z.current)||void 0===t?void 0:t.contains(e))?W(!0):(j&&!(null===(n=e.closest(".menu-item"))||void 0===n?void 0:n.classList.contains("sub-menu"))||!(null===(r=H.current)||void 0===r?void 0:r.contains(e))&&B)&&W(!1)},t=function(t){e(t.target)},n=function(t){"Enter"===t.key?e(t.target):"Escape"===t.key&&W(!1)},r=function(){document.removeEventListener("click",t),document.removeEventListener("keyup",n)};return r(),E&&0===p&&(document.addEventListener("click",t,!1),document.addEventListener("keyup",n,!1)),function(){r()}}),[E,p,j,B]),e.useEffect((function(){f&&z(f)}),[]);var q=((r={})[ui]=m,r[li]=y,r[ci]=null!==f&&void 0!==f?f:N,r);return e.createElement(to,{ref:n,className:Br(Jr,ei,q,a),menuItemStyles:K("root"),level:p,collapsed:E,rtl:P,disabled:y,active:m,buttonStyles:K("button"),rootStyles:b},e.createElement(eo,Lt({"data-testid":"".concat(ti,"-test-id"),ref:Z,title:l,className:Br(ti,q),onClick:function(e){null===w||void 0===w||w(e),U()},onKeyUp:function(e){null===S||void 0===S||S(e),"Enter"===e.key&&U()},component:x,tabIndex:0},_),s&&e.createElement(Ci,{rtl:P,className:Br(ai,q),rootStyles:K("icon")},s),u&&e.createElement(Ei,{collapsed:E,transitionDuration:O,firstLevel:0===p,className:Br(ni,q),rtl:P,rootStyles:K("prefix")},u),e.createElement(_i,{className:Br(ii,q),rootStyles:K("label")},o),c&&e.createElement(Oi,{collapsed:E,transitionDuration:O,firstLevel:0===p,className:Br(ri,q),rootStyles:K("suffix")},c),e.createElement(Pi,{rtl:P,className:Br(si,q),collapsed:E,level:p,rootStyles:K("SubMenuExpandIcon")},T?T({level:p,disabled:y,active:m,open:null!==f&&void 0!==f?f:N}):E&&0===p?e.createElement(Ti,null):e.createElement(Mi,{rtl:P,open:null!==f&&void 0!==f?f:N}))),e.createElement(Si,{ref:H,openWhenCollapsed:B,open:null!==f&&void 0!==f?f:N,firstLevel:0===p,collapsed:E,defaultOpen:I,className:Br(oi,q),rootStyles:K("subMenuContent")},V.map((function(t){return e.cloneElement(t,Lt(Lt({},t.props),{level:p+1}))}))))})),wr.li(Xa||(Xa=zt(["\n display: inline-block;\n width: 100%;\n position: relative;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"],["\n display: inline-block;\n width: 100%;\n position: relative;\n\n ",";\n\n ",";\n\n > ."," {\n ",";\n\n ",";\n }\n"])),(function(e){return e.menuItemStyles}),(function(e){return e.rootStyles}),ti,(function(e){var t=e.level,n=e.disabled,r=e.active,i=e.collapsed,a=e.rtl;return Ja({level:t,disabled:n,active:r,collapsed:i,rtl:a})}),(function(e){return e.buttonStyles}))),ro=e.forwardRef((function(t,n){var r,i=t.children,a=t.icon,o=t.className,s=t.prefix,l=t.suffix,u=t.level,c=void 0===u?0:u,f=t.active,d=void 0!==f&&f,h=t.disabled,p=void 0!==h&&h,v=t.component,m=t.rootStyles,g=It(t,["children","icon","className","prefix","suffix","level","active","disabled","component","rootStyles"]),y=Zr(),b=y.collapsed,x=y.transitionDuration,k=y.rtl,w=ki().menuItemStyles,S=function(e){if(w){var t={level:c,disabled:p,active:d,isSubmenu:!1},n=w.root,r=w.button,i=w.label,a=w.icon,o=w.prefix,s=w.suffix;switch(e){case"root":return"function"===typeof n?n(t):n;case"button":return"function"===typeof r?r(t):r;case"label":return"function"===typeof i?i(t):i;case"icon":return"function"===typeof a?a(t):a;case"prefix":return"function"===typeof o?o(t):o;case"suffix":return"function"===typeof s?s(t):s;default:return}}},_=((r={})[ui]=d,r[li]=p,r);return e.createElement(no,{ref:n,className:Br(Jr,_,o),menuItemStyles:S("root"),level:c,collapsed:b,rtl:k,disabled:p,active:d,buttonStyles:S("button"),rootStyles:m},e.createElement(eo,Lt({className:Br(ti,_),"data-testid":"".concat(ti,"-test-id"),component:v,tabIndex:0},g),a&&e.createElement(Ci,{rtl:k,className:Br(ai,_),rootStyles:S("icon")},a),s&&e.createElement(Ei,{collapsed:b,transitionDuration:x,firstLevel:0===c,className:Br(ni,_),rtl:k,rootStyles:S("prefix")},s),e.createElement(_i,{className:Br(ii,_),rootStyles:S("label")},i),l&&e.createElement(Oi,{collapsed:b,transitionDuration:x,firstLevel:0===c,className:Br(ri,_),rootStyles:S("suffix")},l)))})),io=function(t){var n=t.children;return e.createElement(Vr,null,n)};function ao(){ao=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(P){l=function(e,t,n){return e[t]=n}}function u(e,t,n,i){var a=t&&t.prototype instanceof d?t:d,o=Object.create(a.prototype),s=new C(i||[]);return r(o,"_invoke",{value:k(e,n,s)}),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=u;var f={};function d(){}function h(){}function p(){}var v={};l(v,a,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(E([])));g&&g!==t&&n.call(g,a)&&(v=g);var y=p.prototype=d.prototype=Object.create(v);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function i(r,a,o,s){var l=c(e[r],e,a);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"==(0,Le.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,o,s)}),(function(e){i("throw",e,o,s)})):t.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return i("throw",e,o,s)}))}s(l.arg)}var a;r(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return O()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=w(o,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=c(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===f)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function w(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),f;var i=c(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,f;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,f):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,f)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function E(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:O}}function O(){return{value:void 0,done:!0}}return h.prototype=p,r(y,"constructor",{value:p,configurable:!0}),r(p,"constructor",{value:h,configurable:!0}),h.displayName=l(p,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(x.prototype),l(x.prototype,o,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new x(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},b(y),l(y,s,"Generator"),l(y,a,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=E,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],o=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(s&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,f):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),f},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),f}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},e}function oo(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function so(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){oo(a,r,i,o,s,"next",e)}function s(e){oo(a,r,i,o,s,"throw",e)}o(void 0)}))}}var lo=n(8182),uo="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},co="object"===("undefined"===typeof window?"undefined":uo(window))&&"object"===("undefined"===typeof document?"undefined":uo(document))&&9===document.nodeType,fo=n(9142);function ho(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,fo.Z)(r.key),r)}}function po(e,t,n){return t&&ho(e.prototype,t),n&&ho(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vo(e,t){return vo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vo(e,t)}function mo(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,vo(e,t)}function go(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var yo={}.constructor;function bo(e){if(null==e||"object"!==typeof e)return e;if(Array.isArray(e))return e.map(bo);if(e.constructor!==yo)return e;var t={};for(var n in e)t[n]=bo(e[n]);return t}function xo(e,t,n){void 0===e&&(e="unnamed");var r=n.jss,i=bo(t),a=r.plugins.onCreateRule(e,i,n);return a||(e[0],null)}var ko=function(e,t){for(var n="",r=0;r<e.length&&"!important"!==e[r];r++)n&&(n+=t),n+=e[r];return n},wo=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var n=0;n<e.length&&"!important"!==e[n];n++)t&&(t+=", "),t+=ko(e[n]," ");else t=ko(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function So(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function _o(e,t){for(var n="",r=0;r<t;r++)n+=" ";return n+e}function Co(e,t,n){void 0===n&&(n={});var r="";if(!t)return r;var i=n.indent,a=void 0===i?0:i,o=t.fallbacks;!1===n.format&&(a=-1/0);var s=So(n),l=s.linebreak,u=s.space;if(e&&a++,o)if(Array.isArray(o))for(var c=0;c<o.length;c++){var f=o[c];for(var d in f){var h=f[d];null!=h&&(r&&(r+=l),r+=_o(d+":"+u+wo(h)+";",a))}}else for(var p in o){var v=o[p];null!=v&&(r&&(r+=l),r+=_o(p+":"+u+wo(v)+";",a))}for(var m in t){var g=t[m];null!=g&&"fallbacks"!==m&&(r&&(r+=l),r+=_o(m+":"+u+wo(g)+";",a))}return(r||n.allowEmpty)&&e?(r&&(r=""+l+r+l),_o(""+e+u+"{"+r,--a)+_o("}",a)):r}var Eo=/([[\].#*$><+~=|^:(),"'`\s])/g,Oo="undefined"!==typeof CSS&&CSS.escape,Po=function(e){return Oo?Oo(e):e.replace(Eo,"\\$1")},Mo=function(){function e(e,t,n){this.type="style",this.isProcessed=!1;var r=n.sheet,i=n.Renderer;this.key=e,this.options=n,this.style=t,r?this.renderer=r.renderer:i&&(this.renderer=new i)}return e.prototype.prop=function(e,t,n){if(void 0===t)return this.style[e];var r=!!n&&n.force;if(!r&&this.style[e]===t)return this;var i=t;n&&!1===n.process||(i=this.options.jss.plugins.onChangeValue(t,e,this));var a=null==i||!1===i,o=e in this.style;if(a&&!o&&!r)return this;var s=a&&o;if(s?delete this.style[e]:this.style[e]=i,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,i),this;var l=this.options.sheet;return l&&l.attached,this},e}(),To=function(e){function t(t,n,r){var i;i=e.call(this,t,n,r)||this;var a=r.selector,o=r.scoped,s=r.sheet,l=r.generateId;return a?i.selectorText=a:!1!==o&&(i.id=l(go(go(i)),s),i.selectorText="."+Po(i.id)),i}mo(t,e);var n=t.prototype;return n.applyTo=function(e){var t=this.renderer;if(t){var n=this.toJSON();for(var r in n)t.setProperty(e,r,n[r])}return this},n.toJSON=function(){var e={};for(var t in this.style){var n=this.style[t];"object"!==typeof n?e[t]=n:Array.isArray(n)&&(e[t]=wo(n))}return e},n.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,De.Z)({},e,{allowEmpty:!0}):e;return Co(this.selectorText,this.style,n)},po(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,n=this.renderable;if(n&&t)t.setSelector(n,e)||t.replaceRule(n,this)}},get:function(){return this.selectorText}}]),t}(Mo),jo={onCreateRule:function(e,t,n){return"@"===e[0]||n.parent&&"keyframes"===n.parent.type?null:new To(e,t,n)}},Ro={indent:1,children:!0},Ao=/@([\w-]+)/,No=function(){function e(e,t,n){this.type="conditional",this.isProcessed=!1,this.key=e;var r=e.match(Ao);for(var i in this.at=r?r[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new is((0,De.Z)({},n,{parent:this})),t)this.rules.add(i,t[i]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r?(this.options.jss.plugins.onProcessRule(r),r):null},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.toString=function(e){void 0===e&&(e=Ro);var t=So(e).linebreak;if(null==e.indent&&(e.indent=Ro.indent),null==e.children&&(e.children=Ro.children),!1===e.children)return this.query+" {}";var n=this.rules.toString(e);return n?this.query+" {"+t+n+t+"}":""},e}(),Do=/@container|@media|@supports\s+/,Lo={onCreateRule:function(e,t,n){return Do.test(e)?new No(e,t,n):null}},Io={indent:1,children:!0},zo=/@keyframes\s+([\w-]+)/,Fo=function(){function e(e,t,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var r=e.match(zo);r&&r[1]?this.name=r[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var i=n.scoped,a=n.sheet,o=n.generateId;for(var s in this.id=!1===i?this.name:Po(o(this,a)),this.rules=new is((0,De.Z)({},n,{parent:this})),t)this.rules.add(s,t[s],(0,De.Z)({},n,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Io);var t=So(e).linebreak;if(null==e.indent&&(e.indent=Io.indent),null==e.children&&(e.children=Io.children),!1===e.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(e);return n&&(n=""+t+n+t),this.at+" "+this.id+" {"+n+"}"},e}(),Bo=/@keyframes\s+/,Wo=/\$([\w-]+)/g,Vo=function(e,t){return"string"===typeof e?e.replace(Wo,(function(e,n){return n in t?t[n]:e})):e},Zo=function(e,t,n){var r=e[t],i=Vo(r,n);i!==r&&(e[t]=i)},Ho={onCreateRule:function(e,t,n){return"string"===typeof e&&Bo.test(e)?new Fo(e,t,n):null},onProcessStyle:function(e,t,n){return"style"===t.type&&n?("animation-name"in e&&Zo(e,"animation-name",n.keyframes),"animation"in e&&Zo(e,"animation",n.keyframes),e):e},onChangeValue:function(e,t,n){var r=n.options.sheet;if(!r)return e;switch(t){case"animation":case"animation-name":return Vo(e,r.keyframes);default:return e}}},$o=function(e){function t(){return e.apply(this,arguments)||this}return mo(t,e),t.prototype.toString=function(e){var t=this.options.sheet,n=!!t&&t.options.link?(0,De.Z)({},e,{allowEmpty:!0}):e;return Co(this.key,this.style,n)},t}(Mo),Uo={onCreateRule:function(e,t,n){return n.parent&&"keyframes"===n.parent.type?new $o(e,t,n):null}},Ko=function(){function e(e,t,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){var t=So(e).linebreak;if(Array.isArray(this.style)){for(var n="",r=0;r<this.style.length;r++)n+=Co(this.at,this.style[r]),this.style[r+1]&&(n+=t);return n}return Co(this.at,this.style,e)},e}(),qo=/@font-face/,Yo={onCreateRule:function(e,t,n){return qo.test(e)?new Ko(e,t,n):null}},Go=function(){function e(e,t,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=n}return e.prototype.toString=function(e){return Co(this.key,this.style,e)},e}(),Xo={onCreateRule:function(e,t,n){return"@viewport"===e||"@-ms-viewport"===e?new Go(e,t,n):null}},Qo=function(){function e(e,t,n){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=n}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",n=0;n<this.value.length;n++)t+=this.key+" "+this.value[n]+";",this.value[n+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Jo={"@charset":!0,"@import":!0,"@namespace":!0},es={onCreateRule:function(e,t,n){return e in Jo?new Qo(e,t,n):null}},ts=[jo,Lo,Ho,Uo,Yo,Xo,es],ns={process:!0},rs={force:!0,process:!0},is=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,n){var r=this.options,i=r.parent,a=r.sheet,o=r.jss,s=r.Renderer,l=r.generateId,u=r.scoped,c=(0,De.Z)({classes:this.classes,parent:i,sheet:a,jss:o,Renderer:s,generateId:l,scoped:u,name:e,keyframes:this.keyframes,selector:void 0},n),f=e;e in this.raw&&(f=e+"-d"+this.counter++),this.raw[f]=t,f in this.classes&&(c.selector="."+Po(this.classes[f]));var d=xo(f,t,c);if(!d)return null;this.register(d);var h=void 0===c.index?this.index.length:c.index;return this.index.splice(h,0,d),d},t.replace=function(e,t,n){var r=this.get(e),i=this.index.indexOf(r);r&&this.remove(r);var a=n;return-1!==i&&(a=(0,De.Z)({},n,{index:i})),this.add(e,t,a)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof To?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Fo&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof To?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Fo&&delete this.keyframes[e.name]},t.update=function(){var e,t,n;if("string"===typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],n=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,n);else for(var r=0;r<this.index.length;r++)this.updateOne(this.index[r],t,n)},t.updateOne=function(t,n,r){void 0===r&&(r=ns);var i=this.options,a=i.jss.plugins,o=i.sheet;if(t.rules instanceof e)t.rules.update(n,r);else{var s=t.style;if(a.onUpdate(n,t,o,r),r.process&&s&&s!==t.style){for(var l in a.onProcessStyle(t.style,t,o),t.style){var u=t.style[l];u!==s[l]&&t.prop(l,u,rs)}for(var c in s){var f=t.style[c],d=s[c];null==f&&f!==d&&t.prop(c,null,rs)}}}},t.toString=function(e){for(var t="",n=this.options.sheet,r=!!n&&n.options.link,i=So(e).linebreak,a=0;a<this.index.length;a++){var o=this.index[a].toString(e);(o||r)&&(t&&(t+=i),t+=o)}return t},e}(),as=function(){function e(e,t){for(var n in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=(0,De.Z)({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new is(this.options),e)this.rules.add(n,e[n]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,n){var r=this.queue;this.attached&&!r&&(this.queue=[]);var i=this.rules.add(e,t,n);return i?(this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(r?r.push(i):(this.insertRule(i),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),i):i:(this.deployed=!1,i)):null},t.replaceRule=function(e,t,n){var r=this.rules.get(e);if(!r)return this.addRule(e,t,n);var i=this.rules.replace(e,t,n);return i&&this.options.jss.plugins.onProcessRule(i),this.attached?this.deployed?(this.renderer&&(i?r.renderable&&this.renderer.replaceRule(r.renderable,i):this.renderer.deleteRule(r)),i):i:(this.deployed=!1,i)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var n=[];for(var r in e){var i=this.addRule(r,e[r],t);i&&n.push(i)}return n},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"===typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,n){return this.rules.updateOne(e,t,n),this},t.toString=function(e){return this.rules.toString(e)},e}(),os=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,n){for(var r=0;r<this.registry.onCreateRule.length;r++){var i=this.registry.onCreateRule[r](e,t,n);if(i)return i}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,n=0;n<this.registry.onProcessRule.length;n++)this.registry.onProcessRule[n](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,n){for(var r=0;r<this.registry.onProcessStyle.length;r++)t.style=this.registry.onProcessStyle[r](t.style,t,n)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,n,r){for(var i=0;i<this.registry.onUpdate.length;i++)this.registry.onUpdate[i](e,t,n,r)},t.onChangeValue=function(e,t,n){for(var r=e,i=0;i<this.registry.onChangeValue.length;i++)r=this.registry.onChangeValue[i](r,t,n);return r},t.use=function(e,t){void 0===t&&(t={queue:"external"});var n=this.plugins[t.queue];-1===n.indexOf(e)&&(n.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce((function(e,t){for(var n in t)n in e&&e[n].push(t[n]);return e}),{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),ss=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,n=e.options.index;if(-1===t.indexOf(e))if(0===t.length||n>=this.index)t.push(e);else for(var r=0;r<t.length;r++)if(t[r].options.index>n)return void t.splice(r,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,n=t.attached,r=(0,Ae.Z)(t,["attached"]),i=So(r).linebreak,a="",o=0;o<this.registry.length;o++){var s=this.registry[o];null!=n&&s.attached!==n||(a&&(a+=i),a+=s.toString(r))}return a},po(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),ls=new ss,us="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window&&window.Math===Math?window:"undefined"!==typeof self&&self.Math===Math?self:Function("return this")(),cs="2f1acc6c3a606b082e5eef5e54414ffb";null==us[cs]&&(us[cs]=0);var fs=us[cs]++,ds=function(e){void 0===e&&(e={});var t=0;return function(n,r){t+=1;var i="",a="";return r&&(r.options.classNamePrefix&&(a=r.options.classNamePrefix),null!=r.options.jss.id&&(i=String(r.options.jss.id))),e.minify?""+(a||"c")+fs+i+t:a+n.key+"-"+fs+(i?"-"+i:"")+"-"+t}},hs=function(e){var t;return function(){return t||(t=e()),t}},ps=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(n){return""}},vs=function(e,t,n){try{var r=n;if(Array.isArray(n)&&(r=wo(n)),e.attributeStyleMap)e.attributeStyleMap.set(t,r);else{var i=r?r.indexOf("!important"):-1,a=i>-1?r.substr(0,i-1):r;e.style.setProperty(t,a,i>-1?"important":"")}}catch(o){return!1}return!0},ms=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(n){}},gs=function(e,t){return e.selectorText=t,e.selectorText===t},ys=hs((function(){return document.querySelector("head")}));function bs(e){var t=ls.registry;if(t.length>0){var n=function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r.attached&&r.options.index>t.index&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if(n=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.attached&&r.options.insertionPoint===t.insertionPoint)return r}return null}(t,e),n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var r=e.insertionPoint;if(r&&"string"===typeof r){var i=function(e){for(var t=ys(),n=0;n<t.childNodes.length;n++){var r=t.childNodes[n];if(8===r.nodeType&&r.nodeValue.trim()===e)return r}return null}(r);if(i)return{parent:i.parentNode,node:i.nextSibling}}return!1}var xs=hs((function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null})),ks=function(e,t,n){try{"insertRule"in e?e.insertRule(t,n):"appendRule"in e&&e.appendRule(t)}catch(r){return!1}return e.cssRules[n]},ws=function(e,t){var n=e.cssRules.length;return void 0===t||t>n?n:t},Ss=function(){function e(e){this.getPropertyValue=ps,this.setProperty=vs,this.removeProperty=ms,this.setSelector=gs,this.hasInsertedRules=!1,this.cssRules=[],e&&ls.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},n=t.media,r=t.meta,i=t.element;this.element=i||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),r&&this.element.setAttribute("data-meta",r);var a=xs();a&&this.element.setAttribute("nonce",a)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var n=t.insertionPoint,r=bs(t);if(!1!==r&&r.parent)r.parent.insertBefore(e,r.node);else if(n&&"number"===typeof n.nodeType){var i=n,a=i.parentNode;a&&a.insertBefore(e,i.nextSibling)}else ys().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var n=0;n<e.index.length;n++)this.insertRule(e.index[n],n,t)},t.insertRule=function(e,t,n){if(void 0===n&&(n=this.element.sheet),e.rules){var r=e,i=n;if("conditional"===e.type||"keyframes"===e.type){var a=ws(n,t);if(!1===(i=ks(n,r.toString({children:!1}),a)))return!1;this.refCssRule(e,a,i)}return this.insertRules(r.rules,i),i}var o=e.toString();if(!o)return!1;var s=ws(n,t),l=ks(n,o,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,n){e.renderable=n,e.options.parent instanceof as&&this.cssRules.splice(t,0,n)},t.deleteRule=function(e){var t=this.element.sheet,n=this.indexOf(e);return-1!==n&&(t.deleteRule(n),this.cssRules.splice(n,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var n=this.indexOf(e);return-1!==n&&(this.element.sheet.deleteRule(n),this.cssRules.splice(n,1),this.insertRule(t,n))},t.getRules=function(){return this.element.sheet.cssRules},e}(),_s=0,Cs=function(){function e(e){this.id=_s++,this.version="10.10.0",this.plugins=new os,this.options={id:{minify:!1},createGenerateId:ds,Renderer:co?Ss:null,plugins:[]},this.generateId=ds({minify:!1});for(var t=0;t<ts.length;t++)this.plugins.use(ts[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=(0,De.Z)({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var n=t.index;"number"!==typeof n&&(n=0===ls.index?0:ls.index+1);var r=new as(e,(0,De.Z)({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:n}));return this.plugins.onProcessSheet(r),r},t.removeStyleSheet=function(e){return e.detach(),ls.remove(e),this},t.createRule=function(e,t,n){if(void 0===t&&(t={}),void 0===n&&(n={}),"object"===typeof e)return this.createRule(void 0,e,t);var r=(0,De.Z)({},n,{name:e,jss:this,Renderer:this.options.Renderer});r.generateId||(r.generateId=this.generateId),r.classes||(r.classes={}),r.keyframes||(r.keyframes={});var i=xo(e,t,r);return i&&this.plugins.onProcessRule(i),i},t.use=function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){e.plugins.use(t)})),this},e}(),Es=function(e){return new Cs(e)},Os="object"===typeof CSS&&null!=CSS&&"number"in CSS;function Ps(e){var t=null;for(var n in e){var r=e[n],i=typeof r;if("function"===i)t||(t={}),t[n]=r;else if("object"===i&&null!==r&&!Array.isArray(r)){var a=Ps(r);a&&(t||(t={}),t[n]=a)}}return t}Es();function Ms(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.baseClasses,n=e.newClasses;e.Component;if(!n)return t;var r=(0,De.Z)({},t);return Object.keys(n).forEach((function(e){n[e]&&(r[e]="".concat(t[e]," ").concat(n[e]))})),r}var Ts={set:function(e,t,n,r){var i=e.get(t);i||(i=new Map,e.set(t,i)),i.set(n,r)},get:function(e,t,n){var r=e.get(t);return r?r.get(n):void 0},delete:function(e,t,n){e.get(t).delete(n)}},js=Ts;var Rs=e.createContext(null);function As(){return e.useContext(Rs)}var Ns="function"===typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",Ds=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];var Ls=Date.now(),Is="fnValues"+Ls,zs="fnStyle"+ ++Ls,Fs=function(){return{onCreateRule:function(e,t,n){if("function"!==typeof t)return null;var r=xo(e,{},n);return r[zs]=t,r},onProcessStyle:function(e,t){if(Is in t||zs in t)return e;var n={};for(var r in e){var i=e[r];"function"===typeof i&&(delete e[r],n[r]=i)}return t[Is]=n,e},onUpdate:function(e,t,n,r){var i=t,a=i[zs];a&&(i.style=a(e)||{});var o=i[Is];if(o)for(var s in o)i.prop(s,o[s](e),r)}}},Bs="@global",Ws="@global ",Vs=function(){function e(e,t,n){for(var r in this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n,this.rules=new is((0,De.Z)({},n,{parent:this})),t)this.rules.add(r,t[r]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.addRule=function(e,t,n){var r=this.rules.add(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.replaceRule=function(e,t,n){var r=this.rules.replace(e,t,n);return r&&this.options.jss.plugins.onProcessRule(r),r},t.indexOf=function(e){return this.rules.indexOf(e)},t.toString=function(e){return this.rules.toString(e)},e}(),Zs=function(){function e(e,t,n){this.type="global",this.at=Bs,this.isProcessed=!1,this.key=e,this.options=n;var r=e.substr(Ws.length);this.rule=n.jss.createRule(r,t,(0,De.Z)({},n,{parent:this}))}return e.prototype.toString=function(e){return this.rule?this.rule.toString(e):""},e}(),Hs=/\s*,\s*/g;function $s(e,t){for(var n=e.split(Hs),r="",i=0;i<n.length;i++)r+=t+" "+n[i].trim(),n[i+1]&&(r+=", ");return r}var Us=function(){return{onCreateRule:function(e,t,n){if(!e)return null;if(e===Bs)return new Vs(e,t,n);if("@"===e[0]&&e.substr(0,Ws.length)===Ws)return new Zs(e,t,n);var r=n.parent;return r&&("global"===r.type||r.options.parent&&"global"===r.options.parent.type)&&(n.scoped=!1),n.selector||!1!==n.scoped||(n.selector=e),null},onProcessRule:function(e,t){"style"===e.type&&t&&(function(e,t){var n=e.options,r=e.style,i=r?r[Bs]:null;if(i){for(var a in i)t.addRule(a,i[a],(0,De.Z)({},n,{selector:$s(a,e.selector)}));delete r[Bs]}}(e,t),function(e,t){var n=e.options,r=e.style;for(var i in r)if("@"===i[0]&&i.substr(0,Bs.length)===Bs){var a=$s(i.substr(Bs.length),e.selector);t.addRule(a,r[i],(0,De.Z)({},n,{selector:a})),delete r[i]}}(e,t))}}},Ks=/\s*,\s*/g,qs=/&/g,Ys=/\$([\w-]+)/g;var Gs=function(){function e(e,t){return function(n,r){var i=e.getRule(r)||t&&t.getRule(r);return i?i.selector:r}}function t(e,t){for(var n=t.split(Ks),r=e.split(Ks),i="",a=0;a<n.length;a++)for(var o=n[a],s=0;s<r.length;s++){var l=r[s];i&&(i+=", "),i+=-1!==l.indexOf("&")?l.replace(qs,o):o+" "+l}return i}function n(e,t,n){if(n)return(0,De.Z)({},n,{index:n.index+1});var r=e.options.nestingLevel;r=void 0===r?1:r+1;var i=(0,De.Z)({},e.options,{nestingLevel:r,index:t.indexOf(e)+1});return delete i.name,i}return{onProcessStyle:function(r,i,a){if("style"!==i.type)return r;var o,s,l=i,u=l.options.parent;for(var c in r){var f=-1!==c.indexOf("&"),d="@"===c[0];if(f||d){if(o=n(l,u,o),f){var h=t(c,l.selector);s||(s=e(u,a)),h=h.replace(Ys,s);var p=l.key+"-"+c;"replaceRule"in u?u.replaceRule(p,r[c],(0,De.Z)({},o,{selector:h})):u.addRule(p,r[c],(0,De.Z)({},o,{selector:h}))}else d&&u.addRule(c,{},o).addRule(l.key,r[c],{selector:l.selector});delete r[c]}}return r}}},Xs=/[A-Z]/g,Qs=/^ms-/,Js={};function el(e){return"-"+e.toLowerCase()}var tl=function(e){if(Js.hasOwnProperty(e))return Js[e];var t=e.replace(Xs,el);return Js[e]=Qs.test(t)?"-"+t:t};function nl(e){var t={};for(var n in e){t[0===n.indexOf("--")?n:tl(n)]=e[n]}return e.fallbacks&&(Array.isArray(e.fallbacks)?t.fallbacks=e.fallbacks.map(nl):t.fallbacks=nl(e.fallbacks)),t}var rl=function(){return{onProcessStyle:function(e){if(Array.isArray(e)){for(var t=0;t<e.length;t++)e[t]=nl(e[t]);return e}return nl(e)},onChangeValue:function(e,t,n){if(0===t.indexOf("--"))return e;var r=tl(t);return t===r?e:(n.prop(r,e),null)}}},il=Os&&CSS?CSS.px:"px",al=Os&&CSS?CSS.ms:"ms",ol=Os&&CSS?CSS.percent:"%";function sl(e){var t=/(-[a-z])/g,n=function(e){return e[1].toUpperCase()},r={};for(var i in e)r[i]=e[i],r[i.replace(t,n)]=e[i];return r}var ll=sl({"animation-delay":al,"animation-duration":al,"background-position":il,"background-position-x":il,"background-position-y":il,"background-size":il,border:il,"border-bottom":il,"border-bottom-left-radius":il,"border-bottom-right-radius":il,"border-bottom-width":il,"border-left":il,"border-left-width":il,"border-radius":il,"border-right":il,"border-right-width":il,"border-top":il,"border-top-left-radius":il,"border-top-right-radius":il,"border-top-width":il,"border-width":il,"border-block":il,"border-block-end":il,"border-block-end-width":il,"border-block-start":il,"border-block-start-width":il,"border-block-width":il,"border-inline":il,"border-inline-end":il,"border-inline-end-width":il,"border-inline-start":il,"border-inline-start-width":il,"border-inline-width":il,"border-start-start-radius":il,"border-start-end-radius":il,"border-end-start-radius":il,"border-end-end-radius":il,margin:il,"margin-bottom":il,"margin-left":il,"margin-right":il,"margin-top":il,"margin-block":il,"margin-block-end":il,"margin-block-start":il,"margin-inline":il,"margin-inline-end":il,"margin-inline-start":il,padding:il,"padding-bottom":il,"padding-left":il,"padding-right":il,"padding-top":il,"padding-block":il,"padding-block-end":il,"padding-block-start":il,"padding-inline":il,"padding-inline-end":il,"padding-inline-start":il,"mask-position-x":il,"mask-position-y":il,"mask-size":il,height:il,width:il,"min-height":il,"max-height":il,"min-width":il,"max-width":il,bottom:il,left:il,top:il,right:il,inset:il,"inset-block":il,"inset-block-end":il,"inset-block-start":il,"inset-inline":il,"inset-inline-end":il,"inset-inline-start":il,"box-shadow":il,"text-shadow":il,"column-gap":il,"column-rule":il,"column-rule-width":il,"column-width":il,"font-size":il,"font-size-delta":il,"letter-spacing":il,"text-decoration-thickness":il,"text-indent":il,"text-stroke":il,"text-stroke-width":il,"word-spacing":il,motion:il,"motion-offset":il,outline:il,"outline-offset":il,"outline-width":il,perspective:il,"perspective-origin-x":ol,"perspective-origin-y":ol,"transform-origin":ol,"transform-origin-x":ol,"transform-origin-y":ol,"transform-origin-z":ol,"transition-delay":al,"transition-duration":al,"vertical-align":il,"flex-basis":il,"shape-margin":il,size:il,gap:il,grid:il,"grid-gap":il,"row-gap":il,"grid-row-gap":il,"grid-column-gap":il,"grid-template-rows":il,"grid-template-columns":il,"grid-auto-rows":il,"grid-auto-columns":il,"box-shadow-x":il,"box-shadow-y":il,"box-shadow-blur":il,"box-shadow-spread":il,"font-line-height":il,"text-shadow-x":il,"text-shadow-y":il,"text-shadow-blur":il});function ul(e,t,n){if(null==t)return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)t[r]=ul(e,t[r],n);else if("object"===typeof t)if("fallbacks"===e)for(var i in t)t[i]=ul(i,t[i],n);else for(var a in t)t[a]=ul(e+"-"+a,t[a],n);else if("number"===typeof t&&!1===isNaN(t)){var o=n[e]||ll[e];return!o||0===t&&o===il?t.toString():"function"===typeof o?o(t).toString():""+t+o}return t}var cl=function(e){void 0===e&&(e={});var t=sl(e);return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var r in e)e[r]=ul(r,e[r],t);return e},onChangeValue:function(e,n){return ul(n,e,t)}}},fl=n(2982),dl="",hl="",pl="",vl="",ml=co&&"ontouchstart"in document.documentElement;if(co){var gl={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},yl=document.createElement("p").style;for(var bl in gl)if(bl+"Transform"in yl){dl=bl,hl=gl[bl];break}"Webkit"===dl&&"msHyphens"in yl&&(dl="ms",hl=gl.ms,vl="edge"),"Webkit"===dl&&"-apple-trailing-word"in yl&&(pl="apple")}var xl={js:dl,css:hl,vendor:pl,browser:vl,isTouch:ml};var kl={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===xl.js?"-webkit-"+e:xl.css+e)}},wl={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===xl.js?xl.css+"print-"+e:e)}},Sl=/[-\s]+(.)?/g;function _l(e,t){return t?t.toUpperCase():""}function Cl(e){return e.replace(Sl,_l)}function El(e){return Cl("-"+e)}var Ol,Pl={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if("Webkit"===xl.js){var n="mask-image";if(Cl(n)in t)return e;if(xl.js+El(n)in t)return xl.css+e}return e}},Ml={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==xl.vendor||xl.isTouch?e:xl.css+e)}},Tl={noPrefill:["transform"],supportedProperty:function(e,t,n){return"transform"===e&&(n.transform?e:xl.css+e)}},jl={noPrefill:["transition"],supportedProperty:function(e,t,n){return"transition"===e&&(n.transition?e:xl.css+e)}},Rl={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===xl.js||"ms"===xl.js&&"edge"!==xl.browser?xl.css+e:e)}},Al={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===xl.js||"ms"===xl.js||"apple"===xl.vendor?xl.css+e:e)}},Nl={supportedProperty:function(e,t){return!!/^break-/.test(e)&&("Webkit"===xl.js?"WebkitColumn"+El(e)in t&&xl.css+"column-"+e:"Moz"===xl.js&&("page"+El(e)in t&&"page-"+e))}},Dl={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===xl.js)return e;var n=e.replace("-inline","");return xl.js+El(n)in t&&xl.css+n}},Ll={supportedProperty:function(e,t){return Cl(e)in t&&e}},Il={supportedProperty:function(e,t){var n=El(e);return"-"===e[0]||"-"===e[0]&&"-"===e[1]?e:xl.js+n in t?xl.css+e:"Webkit"!==xl.js&&"Webkit"+n in t&&"-webkit-"+e}},zl={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===xl.js?""+xl.css+e:e)}},Fl={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===xl.js?xl.css+"scroll-chaining":e)}},Bl={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},Wl={supportedProperty:function(e,t){var n=Bl[e];return!!n&&(xl.js+El(n)in t&&xl.css+n)}},Vl={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},Zl=Object.keys(Vl),Hl=function(e){return xl.css+e},$l={supportedProperty:function(e,t,n){var r=n.multiple;if(Zl.indexOf(e)>-1){var i=Vl[e];if(!Array.isArray(i))return xl.js+El(i)in t&&xl.css+i;if(!r)return!1;for(var a=0;a<i.length;a++)if(!(xl.js+El(i[0])in t))return!1;return i.map(Hl)}return!1}},Ul=[kl,wl,Pl,Ml,Tl,jl,Rl,Al,Nl,Dl,Ll,Il,zl,Fl,Wl,$l],Kl=Ul.filter((function(e){return e.supportedProperty})).map((function(e){return e.supportedProperty})),ql=Ul.filter((function(e){return e.noPrefill})).reduce((function(e,t){return e.push.apply(e,(0,fl.Z)(t.noPrefill)),e}),[]),Yl={};if(co){Ol=document.createElement("p");var Gl=window.getComputedStyle(document.documentElement,"");for(var Xl in Gl)isNaN(Xl)||(Yl[Gl[Xl]]=Gl[Xl]);ql.forEach((function(e){return delete Yl[e]}))}function Ql(e,t){if(void 0===t&&(t={}),!Ol)return e;if(null!=Yl[e])return Yl[e];"transition"!==e&&"transform"!==e||(t[e]=e in Ol.style);for(var n=0;n<Kl.length&&(Yl[e]=Kl[n](e,Ol.style,t),!Yl[e]);n++);try{Ol.style[e]=""}catch(r){return!1}return Yl[e]}var Jl,eu={},tu={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},nu=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function ru(e,t,n){if("var"===t)return"var";if("all"===t)return"all";if("all"===n)return", all";var r=t?Ql(t):", "+Ql(n);return r||(t||n)}function iu(e,t){var n=t;if(!Jl||"content"===e)return t;if("string"!==typeof n||!isNaN(parseInt(n,10)))return n;var r=e+n;if(null!=eu[r])return eu[r];try{Jl.style[e]=n}catch(i){return eu[r]=!1,!1}if(tu[e])n=n.replace(nu,ru);else if(""===Jl.style[e]&&("-ms-flex"===(n=xl.css+n)&&(Jl.style[e]="-ms-flexbox"),Jl.style[e]=n,""===Jl.style[e]))return eu[r]=!1,!1;return Jl.style[e]="",eu[r]=n,eu[r]}co&&(Jl=document.createElement("p"));var au=function(){function e(t){for(var n in t){var r=t[n];if("fallbacks"===n&&Array.isArray(r))t[n]=r.map(e);else{var i=!1,a=Ql(n);a&&a!==n&&(i=!0);var o=!1,s=iu(a,wo(r));s&&s!==r&&(o=!0),(i||o)&&(i&&delete t[n],t[a||n]=s||r)}}return t}return{onProcessRule:function(e){if("keyframes"===e.type){var t=e;t.at=function(e){return"-"===e[1]||"ms"===xl.js?e:"@"+xl.css+"keyframes"+e.substr(10)}(t.at)}},onProcessStyle:function(t,n){return"style"!==n.type?t:e(t)},onChangeValue:function(e,t){return iu(t,wo(e))||e}}};var ou=function(){var e=function(e,t){return e.length===t.length?e>t?1:-1:e.length-t.length};return{onProcessStyle:function(t,n){if("style"!==n.type)return t;for(var r={},i=Object.keys(t).sort(e),a=0;a<i.length;a++)r[i[a]]=t[i[a]];return r}}};var su=Es({plugins:[Fs(),Us(),Gs(),rl(),cl(),"undefined"===typeof window?null:au(),ou()]}),lu=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,n=void 0!==t&&t,r=e.productionPrefix,i=void 0===r?"jss":r,a=e.seed,o=void 0===a?"":a,s=""===o?"":"".concat(o,"-"),l=0,u=function(){return l+=1};return function(e,t){var r=t.options.name;if(r&&0===r.indexOf("Mui")&&!t.options.link&&!n){if(-1!==Ds.indexOf(e.key))return"Mui-".concat(e.key);var a="".concat(s).concat(r,"-").concat(e.key);return t.options.theme[Ns]&&""===o?"".concat(a,"-").concat(u()):a}return"".concat(s).concat(i).concat(u())}}(),uu={disableGeneration:!1,generateClassName:lu,jss:su,sheetsCache:null,sheetsManager:new Map,sheetsRegistry:null},cu=e.createContext(uu);var fu=-1e9;var du={};function hu(e,t){var n=e.state,r=e.theme,i=e.stylesOptions,a=e.stylesCreator,o=e.name;if(!i.disableGeneration){var s=js.get(i.sheetsManager,a,r);s||(s={refs:0,staticSheet:null,dynamicStyles:null},js.set(i.sheetsManager,a,r,s));var l=(0,De.Z)({},a.options,i,{theme:r,flip:"boolean"===typeof i.flip?i.flip:"rtl"===r.direction});l.generateId=l.serverGenerateClassName||l.generateClassName;var u=i.sheetsRegistry;if(0===s.refs){var c;i.sheetsCache&&(c=js.get(i.sheetsCache,a,r));var f=a.create(r,o);c||((c=i.jss.createStyleSheet(f,(0,De.Z)({link:!1},l))).attach(),i.sheetsCache&&js.set(i.sheetsCache,a,r,c)),u&&u.add(c),s.staticSheet=c,s.dynamicStyles=Ps(f)}if(s.dynamicStyles){var d=i.jss.createStyleSheet(s.dynamicStyles,(0,De.Z)({link:!0},l));d.update(t),d.attach(),n.dynamicSheet=d,n.classes=Ms({baseClasses:s.staticSheet.classes,newClasses:d.classes}),u&&u.add(d)}else n.classes=s.staticSheet.classes;s.refs+=1}}function pu(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.name,i=n.classNamePrefix,a=n.Component,o=n.defaultTheme,s=void 0===o?du:o,l=Ne(n,["name","classNamePrefix","Component","defaultTheme"]),u=function(e){var t="function"===typeof e;return{create:function(n,r){var i;try{i=t?e(n):e}catch(s){throw s}if(!r||!n.overrides||!n.overrides[r])return i;var a=n.overrides[r],o=(0,De.Z)({},i);return Object.keys(a).forEach((function(e){o[e]=ze(o[e],a[e])})),o},options:{}}}(t),c=r||i||"makeStyles";u.options={index:fu+=1,name:r,meta:c,classNamePrefix:c};return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=As()||s,i=(0,De.Z)({},e.useContext(cu),l),o=e.useRef(),c=e.useRef();!function(t,n){var r,i=e.useRef([]),a=e.useMemo((function(){return{}}),n);i.current!==a&&(i.current=a,r=t()),e.useEffect((function(){return function(){r&&r()}}),[a])}((function(){var e={name:r,state:{},stylesCreator:u,stylesOptions:i,theme:n};return hu(e,t),c.current=!1,o.current=e,function(){!function(e){var t=e.state,n=e.theme,r=e.stylesOptions,i=e.stylesCreator;if(!r.disableGeneration){var a=js.get(r.sheetsManager,i,n);a.refs-=1;var o=r.sheetsRegistry;0===a.refs&&(js.delete(r.sheetsManager,i,n),r.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),t.dynamicSheet&&(r.jss.removeStyleSheet(t.dynamicSheet),o&&o.remove(t.dynamicSheet))}}(e)}}),[n,u]),e.useEffect((function(){c.current&&function(e,t){var n=e.state;n.dynamicSheet&&n.dynamicSheet.update(t)}(o.current,t),c.current=!0}));var f=function(e,t,n){var r=e.state;if(e.stylesOptions.disableGeneration)return t||{};r.cacheClasses||(r.cacheClasses={value:null,lastProp:null,lastJSS:{}});var i=!1;return r.classes!==r.cacheClasses.lastJSS&&(r.cacheClasses.lastJSS=r.classes,i=!0),t!==r.cacheClasses.lastProp&&(r.cacheClasses.lastProp=t,i=!0),i&&(r.cacheClasses.value=Ms({baseClasses:r.cacheClasses.lastJSS,newClasses:t,Component:n})),r.cacheClasses.value}(o.current,t.classes,a);return f}}var vu=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(r){var i=n.defaultTheme,a=n.withTheme,o=void 0!==a&&a,s=n.name,l=Ne(n,["defaultTheme","withTheme","name"]);var u=s,c=pu(t,(0,De.Z)({defaultTheme:i,Component:r,name:s||r.displayName,classNamePrefix:u},l)),f=e.forwardRef((function(t,n){t.classes;var a,l=t.innerRef,u=Ne(t,["classes","innerRef"]),f=c((0,De.Z)({},r.defaultProps,t)),d=u;return("string"===typeof s||o)&&(a=As()||i,s&&(d=function(e){var t=e.theme,n=e.name,r=e.props;if(!t||!t.props||!t.props[n])return r;var i,a=t.props[n];for(i in a)void 0===r[i]&&(r[i]=a[i]);return r}({theme:a,name:s,props:u})),o&&!d.theme&&(d.theme=a)),e.createElement(r,(0,De.Z)({ref:l||n,classes:f},d))}));return d()(f,r),f}},mu=Nt();var gu=function(e,t){return vu(e,(0,De.Z)({defaultTheme:mu},t))},yu=e.forwardRef((function(t,n){var r=t.classes,i=t.className,a=t.component,o=void 0===a?"div":a,s=t.disableGutters,l=void 0!==s&&s,u=t.variant,c=void 0===u?"regular":u,f=Ne(t,["classes","className","component","disableGutters","variant"]);return e.createElement(o,(0,De.Z)({className:(0,lo.Z)(r.root,r[c],i,!l&&r.gutters),ref:n},f))})),bu=gu((function(e){return{root:{position:"relative",display:"flex",alignItems:"center"},gutters:(0,Be.Z)({paddingLeft:e.spacing(2),paddingRight:e.spacing(2)},e.breakpoints.up("sm"),{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}),regular:e.mixins.toolbar,dense:{minHeight:48}}}),{name:"MuiToolbar"})(yu);function xu(e){if("string"!==typeof e)throw new Error(Ve(7));return e.charAt(0).toUpperCase()+e.slice(1)}var ku=n(4164),wu=!0,Su=!1,_u=null,Cu={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Eu(e){e.metaKey||e.altKey||e.ctrlKey||(wu=!0)}function Ou(){wu=!1}function Pu(){"hidden"===this.visibilityState&&Su&&(wu=!0)}function Mu(e){var t=e.target;try{return t.matches(":focus-visible")}catch(n){}return wu||function(e){var t=e.type,n=e.tagName;return!("INPUT"!==n||!Cu[t]||e.readOnly)||"TEXTAREA"===n&&!e.readOnly||!!e.isContentEditable}(t)}function Tu(){Su=!0,window.clearTimeout(_u),_u=window.setTimeout((function(){Su=!1}),100)}function ju(){var t=e.useCallback((function(e){var t,n=ku.findDOMNode(e);null!=n&&((t=n.ownerDocument).addEventListener("keydown",Eu,!0),t.addEventListener("mousedown",Ou,!0),t.addEventListener("pointerdown",Ou,!0),t.addEventListener("touchstart",Ou,!0),t.addEventListener("visibilitychange",Pu,!0))}),[]);return{isFocusVisible:Mu,onBlurVisible:Tu,ref:t}}function Ru(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function Au(t,n){return e.useMemo((function(){return null==t&&null==n?null:function(e){Ru(t,e),Ru(n,e)}}),[t,n])}var Nu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p"},Du=e.forwardRef((function(t,n){var r=t.align,i=void 0===r?"inherit":r,a=t.classes,o=t.className,s=t.color,l=void 0===s?"initial":s,u=t.component,c=t.display,f=void 0===c?"initial":c,d=t.gutterBottom,h=void 0!==d&&d,p=t.noWrap,v=void 0!==p&&p,m=t.paragraph,g=void 0!==m&&m,y=t.variant,b=void 0===y?"body1":y,x=t.variantMapping,k=void 0===x?Nu:x,w=Ne(t,["align","classes","className","color","component","display","gutterBottom","noWrap","paragraph","variant","variantMapping"]),S=u||(g?"p":k[b]||Nu[b])||"span";return e.createElement(S,(0,De.Z)({className:(0,lo.Z)(a.root,o,"inherit"!==b&&a[b],"initial"!==l&&a["color".concat(xu(l))],v&&a.noWrap,h&&a.gutterBottom,g&&a.paragraph,"inherit"!==i&&a["align".concat(xu(i))],"initial"!==f&&a["display".concat(xu(f))]),ref:n},w))})),Lu=gu((function(e){return{root:{margin:0},body2:e.typography.body2,body1:e.typography.body1,caption:e.typography.caption,button:e.typography.button,h1:e.typography.h1,h2:e.typography.h2,h3:e.typography.h3,h4:e.typography.h4,h5:e.typography.h5,h6:e.typography.h6,subtitle1:e.typography.subtitle1,subtitle2:e.typography.subtitle2,overline:e.typography.overline,srOnly:{position:"absolute",height:1,width:1,overflow:"hidden"},alignLeft:{textAlign:"left"},alignCenter:{textAlign:"center"},alignRight:{textAlign:"right"},alignJustify:{textAlign:"justify"},noWrap:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gutterBottom:{marginBottom:"0.35em"},paragraph:{marginBottom:16},colorInherit:{color:"inherit"},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorTextPrimary:{color:e.palette.text.primary},colorTextSecondary:{color:e.palette.text.secondary},colorError:{color:e.palette.error.main},displayInline:{display:"inline"},displayBlock:{display:"block"}}}),{name:"MuiTypography"})(Du),Iu=e.forwardRef((function(t,n){var r=t.classes,i=t.className,a=t.color,o=void 0===a?"primary":a,s=t.component,l=void 0===s?"a":s,u=t.onBlur,c=t.onFocus,f=t.TypographyClasses,d=t.underline,h=void 0===d?"hover":d,p=t.variant,v=void 0===p?"inherit":p,m=Ne(t,["classes","className","color","component","onBlur","onFocus","TypographyClasses","underline","variant"]),g=ju(),y=g.isFocusVisible,b=g.onBlurVisible,x=g.ref,k=e.useState(!1),w=k[0],S=k[1],_=Au(n,x);return e.createElement(Lu,(0,De.Z)({className:(0,lo.Z)(r.root,r["underline".concat(xu(h))],i,w&&r.focusVisible,"button"===l&&r.button),classes:f,color:o,component:l,onBlur:function(e){w&&(b(),S(!1)),u&&u(e)},onFocus:function(e){y(e)&&S(!0),c&&c(e)},ref:_,variant:v},m))})),zu=gu({root:{},underlineNone:{textDecoration:"none"},underlineHover:{textDecoration:"none","&:hover":{textDecoration:"underline"}},underlineAlways:{textDecoration:"underline"},button:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none","&::-moz-focus-inner":{borderStyle:"none"},"&$focusVisible":{outline:"auto"}},focusVisible:{}},{name:"MuiLink"})(Iu),Fu="undefined"!==typeof window?e.useLayoutEffect:e.useEffect;function Bu(t){var n=e.useRef(t);return Fu((function(){n.current=t})),e.useCallback((function(){return n.current.apply(void 0,arguments)}),[])}var Wu=e.createContext(null);function Vu(t,n){var r=Object.create(null);return t&&e.Children.map(t,(function(e){return e})).forEach((function(t){r[t.key]=function(t){return n&&(0,e.isValidElement)(t)?n(t):t}(t)})),r}function Zu(e,t,n){return null!=n[t]?n[t]:e.props[t]}function Hu(t,n,r){var i=Vu(t.children),a=function(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var r,i=Object.create(null),a=[];for(var o in e)o in t?a.length&&(i[o]=a,a=[]):a.push(o);var s={};for(var l in t){if(i[l])for(r=0;r<i[l].length;r++){var u=i[l][r];s[i[l][r]]=n(u)}s[l]=n(l)}for(r=0;r<a.length;r++)s[a[r]]=n(a[r]);return s}(n,i);return Object.keys(a).forEach((function(o){var s=a[o];if((0,e.isValidElement)(s)){var l=o in n,u=o in i,c=n[o],f=(0,e.isValidElement)(c)&&!c.props.in;!u||l&&!f?u||!l||f?u&&l&&(0,e.isValidElement)(c)&&(a[o]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:c.props.in,exit:Zu(s,"exit",t),enter:Zu(s,"enter",t)})):a[o]=(0,e.cloneElement)(s,{in:!1}):a[o]=(0,e.cloneElement)(s,{onExited:r.bind(null,s),in:!0,exit:Zu(s,"exit",t),enter:Zu(s,"enter",t)})}})),a}var $u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},Uu=function(t){function n(e,n){var r,i=(r=t.call(this,e,n)||this).handleExited.bind(go(r));return r.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},r}mo(n,t);var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(t,n){var r,i,a=n.children,o=n.handleExited;return{children:n.firstRender?(r=t,i=o,Vu(r.children,(function(t){return(0,e.cloneElement)(t,{onExited:i.bind(null,t),in:!0,appear:Zu(t,"appear",r),enter:Zu(t,"enter",r),exit:Zu(t,"exit",r)})}))):Hu(t,a,o),firstRender:!1}},r.handleExited=function(e,t){var n=Vu(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=(0,De.Z)({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var t=this.props,n=t.component,r=t.childFactory,i=(0,Ae.Z)(t,["component","childFactory"]),a=this.state.contextValue,o=$u(this.state.children).map(r);return delete i.appear,delete i.enter,delete i.exit,null===n?e.createElement(Wu.Provider,{value:a},o):e.createElement(Wu.Provider,{value:a},e.createElement(n,i,o))},n}(e.Component);Uu.propTypes={},Uu.defaultProps={component:"div",childFactory:function(e){return e}};var Ku=Uu,qu="undefined"===typeof window?e.useEffect:e.useLayoutEffect;var Yu=function(t){var n=t.classes,r=t.pulsate,i=void 0!==r&&r,a=t.rippleX,o=t.rippleY,s=t.rippleSize,l=t.in,u=t.onExited,c=void 0===u?function(){}:u,f=t.timeout,d=e.useState(!1),h=d[0],p=d[1],v=(0,lo.Z)(n.ripple,n.rippleVisible,i&&n.ripplePulsate),m={width:s,height:s,top:-s/2+o,left:-s/2+a},g=(0,lo.Z)(n.child,h&&n.childLeaving,i&&n.childPulsate),y=Bu(c);return qu((function(){if(!l){p(!0);var e=setTimeout(y,f);return function(){clearTimeout(e)}}}),[y,l,f]),e.createElement("span",{className:v,style:m},e.createElement("span",{className:g}))},Gu=e.forwardRef((function(t,n){var r=t.center,i=void 0!==r&&r,a=t.classes,o=t.className,s=Ne(t,["center","classes","className"]),l=e.useState([]),u=l[0],c=l[1],f=e.useRef(0),d=e.useRef(null);e.useEffect((function(){d.current&&(d.current(),d.current=null)}),[u]);var h=e.useRef(!1),p=e.useRef(null),v=e.useRef(null),m=e.useRef(null);e.useEffect((function(){return function(){clearTimeout(p.current)}}),[]);var g=e.useCallback((function(t){var n=t.pulsate,r=t.rippleX,i=t.rippleY,o=t.rippleSize,s=t.cb;c((function(t){return[].concat((0,fl.Z)(t),[e.createElement(Yu,{key:f.current,classes:a,timeout:550,pulsate:n,rippleX:r,rippleY:i,rippleSize:o})])})),f.current+=1,d.current=s}),[a]),y=e.useCallback((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=t.pulsate,a=void 0!==r&&r,o=t.center,s=void 0===o?i||t.pulsate:o,l=t.fakeElement,u=void 0!==l&&l;if("mousedown"===e.type&&h.current)h.current=!1;else{"touchstart"===e.type&&(h.current=!0);var c,f,d,y=u?null:m.current,b=y?y.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(s||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(b.width/2),f=Math.round(b.height/2);else{var x=e.touches?e.touches[0]:e,k=x.clientX,w=x.clientY;c=Math.round(k-b.left),f=Math.round(w-b.top)}if(s)(d=Math.sqrt((2*Math.pow(b.width,2)+Math.pow(b.height,2))/3))%2===0&&(d+=1);else{var S=2*Math.max(Math.abs((y?y.clientWidth:0)-c),c)+2,_=2*Math.max(Math.abs((y?y.clientHeight:0)-f),f)+2;d=Math.sqrt(Math.pow(S,2)+Math.pow(_,2))}e.touches?null===v.current&&(v.current=function(){g({pulsate:a,rippleX:c,rippleY:f,rippleSize:d,cb:n})},p.current=setTimeout((function(){v.current&&(v.current(),v.current=null)}),80)):g({pulsate:a,rippleX:c,rippleY:f,rippleSize:d,cb:n})}}),[i,g]),b=e.useCallback((function(){y({},{pulsate:!0})}),[y]),x=e.useCallback((function(e,t){if(clearTimeout(p.current),"touchend"===e.type&&v.current)return e.persist(),v.current(),v.current=null,void(p.current=setTimeout((function(){x(e,t)})));v.current=null,c((function(e){return e.length>0?e.slice(1):e})),d.current=t}),[]);return e.useImperativeHandle(n,(function(){return{pulsate:b,start:y,stop:x}}),[b,y,x]),e.createElement("span",(0,De.Z)({className:(0,lo.Z)(a.root,o),ref:m},s),e.createElement(Ku,{component:null,exit:!0},u))})),Xu=gu((function(e){return{root:{overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"},ripple:{opacity:0,position:"absolute"},rippleVisible:{opacity:.3,transform:"scale(1)",animation:"$enter ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},ripplePulsate:{animationDuration:"".concat(e.transitions.duration.shorter,"ms")},child:{opacity:1,display:"block",width:"100%",height:"100%",borderRadius:"50%",backgroundColor:"currentColor"},childLeaving:{opacity:0,animation:"$exit ".concat(550,"ms ").concat(e.transitions.easing.easeInOut)},childPulsate:{position:"absolute",left:0,top:0,animation:"$pulsate 2500ms ".concat(e.transitions.easing.easeInOut," 200ms infinite")},"@keyframes enter":{"0%":{transform:"scale(0)",opacity:.1},"100%":{transform:"scale(1)",opacity:.3}},"@keyframes exit":{"0%":{opacity:1},"100%":{opacity:0}},"@keyframes pulsate":{"0%":{transform:"scale(1)"},"50%":{transform:"scale(0.92)"},"100%":{transform:"scale(1)"}}}}),{flip:!1,name:"MuiTouchRipple"})(e.memo(Gu)),Qu=e.forwardRef((function(t,n){var r=t.action,i=t.buttonRef,a=t.centerRipple,o=void 0!==a&&a,s=t.children,l=t.classes,u=t.className,c=t.component,f=void 0===c?"button":c,d=t.disabled,h=void 0!==d&&d,p=t.disableRipple,v=void 0!==p&&p,m=t.disableTouchRipple,g=void 0!==m&&m,y=t.focusRipple,b=void 0!==y&&y,x=t.focusVisibleClassName,k=t.onBlur,w=t.onClick,S=t.onFocus,_=t.onFocusVisible,C=t.onKeyDown,E=t.onKeyUp,O=t.onMouseDown,P=t.onMouseLeave,M=t.onMouseUp,T=t.onTouchEnd,j=t.onTouchMove,R=t.onTouchStart,A=t.onDragLeave,N=t.tabIndex,D=void 0===N?0:N,L=t.TouchRippleProps,I=t.type,z=void 0===I?"button":I,F=Ne(t,["action","buttonRef","centerRipple","children","classes","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","onBlur","onClick","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","onDragLeave","tabIndex","TouchRippleProps","type"]),B=e.useRef(null);var W=e.useRef(null),V=e.useState(!1),Z=V[0],H=V[1];h&&Z&&H(!1);var $=ju(),U=$.isFocusVisible,K=$.onBlurVisible,q=$.ref;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;return Bu((function(r){return t&&t(r),!n&&W.current&&W.current[e](r),!0}))}e.useImperativeHandle(r,(function(){return{focusVisible:function(){H(!0),B.current.focus()}}}),[]),e.useEffect((function(){Z&&b&&!v&&W.current.pulsate()}),[v,b,Z]);var G=Y("start",O),X=Y("stop",A),Q=Y("stop",M),J=Y("stop",(function(e){Z&&e.preventDefault(),P&&P(e)})),ee=Y("start",R),te=Y("stop",T),ne=Y("stop",j),re=Y("stop",(function(e){Z&&(K(e),H(!1)),k&&k(e)}),!1),ie=Bu((function(e){B.current||(B.current=e.currentTarget),U(e)&&(H(!0),_&&_(e)),S&&S(e)})),ae=function(){var e=ku.findDOMNode(B.current);return f&&"button"!==f&&!("A"===e.tagName&&e.href)},oe=e.useRef(!1),se=Bu((function(e){b&&!oe.current&&Z&&W.current&&" "===e.key&&(oe.current=!0,e.persist(),W.current.stop(e,(function(){W.current.start(e)}))),e.target===e.currentTarget&&ae()&&" "===e.key&&e.preventDefault(),C&&C(e),e.target===e.currentTarget&&ae()&&"Enter"===e.key&&!h&&(e.preventDefault(),w&&w(e))})),le=Bu((function(e){b&&" "===e.key&&W.current&&Z&&!e.defaultPrevented&&(oe.current=!1,e.persist(),W.current.stop(e,(function(){W.current.pulsate(e)}))),E&&E(e),w&&e.target===e.currentTarget&&ae()&&" "===e.key&&!e.defaultPrevented&&w(e)})),ue=f;"button"===ue&&F.href&&(ue="a");var ce={};"button"===ue?(ce.type=z,ce.disabled=h):("a"===ue&&F.href||(ce.role="button"),ce["aria-disabled"]=h);var fe=Au(i,n),de=Au(q,B),he=Au(fe,de),pe=e.useState(!1),ve=pe[0],me=pe[1];e.useEffect((function(){me(!0)}),[]);var ge=ve&&!v&&!h;return e.createElement(ue,(0,De.Z)({className:(0,lo.Z)(l.root,u,Z&&[l.focusVisible,x],h&&l.disabled),onBlur:re,onClick:w,onFocus:ie,onKeyDown:se,onKeyUp:le,onMouseDown:G,onMouseLeave:J,onMouseUp:Q,onDragLeave:X,onTouchEnd:te,onTouchMove:ne,onTouchStart:ee,ref:he,tabIndex:h?-1:D},ce,F),s,ge?e.createElement(Xu,(0,De.Z)({ref:W,center:o},L)):null)})),Ju=gu({root:{display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle","-moz-appearance":"none","-webkit-appearance":"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},"&$disabled":{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}},disabled:{},focusVisible:{}},{name:"MuiButtonBase"})(Qu),ec=e.forwardRef((function(t,n){var r=t.children,i=t.classes,a=t.className,o=t.color,s=void 0===o?"default":o,l=t.component,u=void 0===l?"button":l,c=t.disabled,f=void 0!==c&&c,d=t.disableElevation,h=void 0!==d&&d,p=t.disableFocusRipple,v=void 0!==p&&p,m=t.endIcon,g=t.focusVisibleClassName,y=t.fullWidth,b=void 0!==y&&y,x=t.size,k=void 0===x?"medium":x,w=t.startIcon,S=t.type,_=void 0===S?"button":S,C=t.variant,E=void 0===C?"text":C,O=Ne(t,["children","classes","className","color","component","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"]),P=w&&e.createElement("span",{className:(0,lo.Z)(i.startIcon,i["iconSize".concat(xu(k))])},w),M=m&&e.createElement("span",{className:(0,lo.Z)(i.endIcon,i["iconSize".concat(xu(k))])},m);return e.createElement(Ju,(0,De.Z)({className:(0,lo.Z)(i.root,i[E],a,"inherit"===s?i.colorInherit:"default"!==s&&i["".concat(E).concat(xu(s))],"medium"!==k&&[i["".concat(E,"Size").concat(xu(k))],i["size".concat(xu(k))]],h&&i.disableElevation,f&&i.disabled,b&&i.fullWidth),component:u,disabled:f,focusRipple:!v,focusVisibleClassName:(0,lo.Z)(i.focusVisible,g),ref:n,type:_},O),e.createElement("span",{className:i.label},P,r,M))})),tc=gu((function(e){return{root:(0,De.Z)({},e.typography.button,{boxSizing:"border-box",minWidth:64,padding:"6px 16px",borderRadius:e.shape.borderRadius,color:e.palette.text.primary,transition:e.transitions.create(["background-color","box-shadow","border"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none",backgroundColor:tt(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"},"&$disabled":{backgroundColor:"transparent"}},"&$disabled":{color:e.palette.action.disabled}}),label:{width:"100%",display:"inherit",alignItems:"inherit",justifyContent:"inherit"},text:{padding:"6px 8px"},textPrimary:{color:e.palette.primary.main,"&:hover":{backgroundColor:tt(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},textSecondary:{color:e.palette.secondary.main,"&:hover":{backgroundColor:tt(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlined:{padding:"5px 15px",border:"1px solid ".concat("light"===e.palette.type?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),"&$disabled":{border:"1px solid ".concat(e.palette.action.disabledBackground)}},outlinedPrimary:{color:e.palette.primary.main,border:"1px solid ".concat(tt(e.palette.primary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.primary.main),backgroundColor:tt(e.palette.primary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},outlinedSecondary:{color:e.palette.secondary.main,border:"1px solid ".concat(tt(e.palette.secondary.main,.5)),"&:hover":{border:"1px solid ".concat(e.palette.secondary.main),backgroundColor:tt(e.palette.secondary.main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"&$disabled":{border:"1px solid ".concat(e.palette.action.disabled)}},contained:{color:e.palette.getContrastText(e.palette.grey[300]),backgroundColor:e.palette.grey[300],boxShadow:e.shadows[2],"&:hover":{backgroundColor:e.palette.grey.A100,boxShadow:e.shadows[4],"@media (hover: none)":{boxShadow:e.shadows[2],backgroundColor:e.palette.grey[300]},"&$disabled":{backgroundColor:e.palette.action.disabledBackground}},"&$focusVisible":{boxShadow:e.shadows[6]},"&:active":{boxShadow:e.shadows[8]},"&$disabled":{color:e.palette.action.disabled,boxShadow:e.shadows[0],backgroundColor:e.palette.action.disabledBackground}},containedPrimary:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.main,"&:hover":{backgroundColor:e.palette.primary.dark,"@media (hover: none)":{backgroundColor:e.palette.primary.main}}},containedSecondary:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.main,"&:hover":{backgroundColor:e.palette.secondary.dark,"@media (hover: none)":{backgroundColor:e.palette.secondary.main}}},disableElevation:{boxShadow:"none","&:hover":{boxShadow:"none"},"&$focusVisible":{boxShadow:"none"},"&:active":{boxShadow:"none"},"&$disabled":{boxShadow:"none"}},focusVisible:{},disabled:{},colorInherit:{color:"inherit",borderColor:"currentColor"},textSizeSmall:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},textSizeLarge:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},outlinedSizeSmall:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},outlinedSizeLarge:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},containedSizeSmall:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},containedSizeLarge:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},sizeSmall:{},sizeLarge:{},fullWidth:{width:"100%"},startIcon:{display:"inherit",marginRight:8,marginLeft:-4,"&$iconSizeSmall":{marginLeft:-2}},endIcon:{display:"inherit",marginRight:-4,marginLeft:8,"&$iconSizeSmall":{marginRight:-2}},iconSizeSmall:{"& > *:first-child":{fontSize:18}},iconSizeMedium:{"& > *:first-child":{fontSize:20}},iconSizeLarge:{"& > *:first-child":{fontSize:22}}}}),{name:"MuiButton"})(ec),nc=n.p+"static/media/BudgetBuddyLogo.8e4cd296c3a372956bf4.png";function rc(){return null!==ic()}function ic(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(n.startsWith("session="))return n.substring("session=".length,n.length)}return null}function ac(){return oc.apply(this,arguments)}function oc(){return(oc=so(ao().mark((function e(){var t,n,r;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/userinfo",{method:"GET",headers:{"x-session-key":ic()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.name,e.abrupt("return",r);case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function sc(){return lc.apply(this,arguments)}function lc(){return(lc=so(ao().mark((function e(){var t,n,r;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/userinfo",{method:"GET",headers:{"x-session-key":ic()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.email,e.abrupt("return",r);case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function uc(){document.cookie.split(";").forEach((function(e){document.cookie=e.replace(/^ +/,"").replace(/=.*/,"=;expires="+(new Date).toUTCString()+";path=/")})),window.location.href="/welcome"}function cc(e){return e.whole+.01*e.decimal}function fc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dc(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fc(Object(n),!0).forEach((function(t){(0,Be.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fc(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var hc=n(1694),pc=n.n(hc),vc=n(184),mc=["xxl","xl","lg","md","sm","xs"],gc=e.createContext({prefixes:{},breakpoints:mc,minBreakpoint:"xs"});gc.Consumer,gc.Provider;function yc(t,n){var r=(0,e.useContext)(gc).prefixes;return t||r[n]||n}function bc(){return(0,e.useContext)(gc).breakpoints}function xc(){return(0,e.useContext)(gc).minBreakpoint}var kc=Function.prototype.bind.call(Function.prototype.call,[].slice);function wc(e,t){return kc(e.querySelectorAll(t))}var Sc=!("undefined"===typeof window||!window.document||!window.document.createElement),_c=!1,Cc=!1;try{var Ec={get passive(){return _c=!0},get once(){return Cc=_c=!0}};Sc&&(window.addEventListener("test",Ec,Ec),window.removeEventListener("test",Ec,!0))}catch(cw){}var Oc=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!Cc){var i=r.once,a=r.capture,o=n;!Cc&&i&&(o=n.__once||function e(r){this.removeEventListener(t,e,a),n.call(this,r)},n.__once=o),e.addEventListener(t,o,_c?r:a)}e.addEventListener(t,n,r)};n(2176);function Pc(e){return"default"+e.charAt(0).toUpperCase()+e.substr(1)}function Mc(e){var t=function(e,t){if("object"!==typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===typeof t?t:String(t)}function Tc(t,n,r){var i=(0,e.useRef)(void 0!==t),a=(0,e.useState)(n),o=a[0],s=a[1],l=void 0!==t,u=i.current;return i.current=l,!l&&u&&o!==n&&s(n),[l?t:o,(0,e.useCallback)((function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];r&&r.apply(void 0,[e].concat(n)),s(e)}),[r])]}function jc(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function Rc(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function Ac(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}jc.__suppressDeprecationWarning=!0,Rc.__suppressDeprecationWarning=!0,Ac.__suppressDeprecationWarning=!0;var Nc=function(t){var n=(0,e.useRef)(t);return(0,e.useEffect)((function(){n.current=t}),[t]),n};function Dc(t){var n=Nc(t);return(0,e.useCallback)((function(){return n.current&&n.current.apply(n,arguments)}),[n])}var Lc=e.createContext(null);var Ic=n(181);function zc(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,Ic.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}var Fc=Object.prototype.hasOwnProperty;function Bc(e,t,n){var r,i=zc(e.keys());try{for(i.s();!(r=i.n()).done;)if(Wc(n=r.value,t))return n}catch(a){i.e(a)}finally{i.f()}}function Wc(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&Wc(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;var a,o=zc(e);try{for(o.s();!(a=o.n()).done;){if((i=r=a.value)&&"object"===typeof i&&!(i=Bc(t,i)))return!1;if(!t.has(i))return!1}}catch(u){o.e(u)}finally{o.f()}return!0}if(n===Map){if(e.size!==t.size)return!1;var s,l=zc(e);try{for(l.s();!(s=l.n()).done;){if((i=(r=s.value)[0])&&"object"===typeof i&&!(i=Bc(t,i)))return!1;if(!Wc(r[1],t.get(i)))return!1}}catch(u){l.e(u)}finally{l.f()}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"===typeof e){for(n in r=0,e){if(Fc.call(e,n)&&++r&&!Fc.call(t,n))return!1;if(!(n in t)||!Wc(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!==e&&t!==t}var Vc=function(t){var n=function(){var t=(0,e.useRef)(!0),n=(0,e.useRef)((function(){return t.current}));return(0,e.useEffect)((function(){return t.current=!0,function(){t.current=!1}}),[]),n.current}();return[t[0],(0,e.useCallback)((function(e){if(n())return t[1](e)}),[n,t[1]])]};function Zc(e){return e.split("-")[0]}function Hc(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $c(e){return e instanceof Hc(e).Element||e instanceof Element}function Uc(e){return e instanceof Hc(e).HTMLElement||e instanceof HTMLElement}function Kc(e){return"undefined"!==typeof ShadowRoot&&(e instanceof Hc(e).ShadowRoot||e instanceof ShadowRoot)}var qc=Math.max,Yc=Math.min,Gc=Math.round;function Xc(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function Qc(){return!/^((?!chrome|android).)*safari/i.test(Xc())}function Jc(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Uc(e)&&(i=e.offsetWidth>0&&Gc(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Gc(r.height)/e.offsetHeight||1);var o=($c(e)?Hc(e):window).visualViewport,s=!Qc()&&n,l=(r.left+(s&&o?o.offsetLeft:0))/i,u=(r.top+(s&&o?o.offsetTop:0))/a,c=r.width/i,f=r.height/a;return{width:c,height:f,top:u,right:l+c,bottom:u+f,left:l,x:l,y:u}}function ef(e){var t=Jc(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function tf(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Kc(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function nf(e){return e?(e.nodeName||"").toLowerCase():null}function rf(e){return Hc(e).getComputedStyle(e)}function af(e){return["table","td","th"].indexOf(nf(e))>=0}function of(e){return(($c(e)?e.ownerDocument:e.document)||window.document).documentElement}function sf(e){return"html"===nf(e)?e:e.assignedSlot||e.parentNode||(Kc(e)?e.host:null)||of(e)}function lf(e){return Uc(e)&&"fixed"!==rf(e).position?e.offsetParent:null}function uf(e){for(var t=Hc(e),n=lf(e);n&&af(n)&&"static"===rf(n).position;)n=lf(n);return n&&("html"===nf(n)||"body"===nf(n)&&"static"===rf(n).position)?t:n||function(e){var t=/firefox/i.test(Xc());if(/Trident/i.test(Xc())&&Uc(e)&&"fixed"===rf(e).position)return null;var n=sf(e);for(Kc(n)&&(n=n.host);Uc(n)&&["html","body"].indexOf(nf(n))<0;){var r=rf(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function cf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ff(e,t,n){return qc(e,Yc(t,n))}function df(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function hf(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var pf="top",vf="bottom",mf="right",gf="left",yf="auto",bf=[pf,vf,mf,gf],xf="start",kf="end",wf="clippingParents",Sf="viewport",_f="popper",Cf="reference",Ef=bf.reduce((function(e,t){return e.concat([t+"-"+xf,t+"-"+kf])}),[]),Of=[].concat(bf,[yf]).reduce((function(e,t){return e.concat([t,t+"-"+xf,t+"-"+kf])}),[]),Pf=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];var Mf={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Zc(n.placement),l=cf(s),u=[gf,mf].indexOf(s)>=0?"height":"width";if(a&&o){var c=function(e,t){return df("number"!==typeof(e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:hf(e,bf))}(i.padding,n),f=ef(a),d="y"===l?pf:gf,h="y"===l?vf:mf,p=n.rects.reference[u]+n.rects.reference[l]-o[l]-n.rects.popper[u],v=o[l]-n.rects.reference[l],m=uf(a),g=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,y=p/2-v/2,b=c[d],x=g-f[u]-c[h],k=g/2-f[u]/2+y,w=ff(b,k,x),S=l;n.modifiersData[r]=((t={})[S]=w,t.centerOffset=w-k,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r)))&&tf(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Tf(e){return e.split("-")[1]}var jf={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Rf(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,d=o.x,h=void 0===d?0:d,p=o.y,v=void 0===p?0:p,m="function"===typeof c?c({x:h,y:v}):{x:h,y:v};h=m.x,v=m.y;var g=o.hasOwnProperty("x"),y=o.hasOwnProperty("y"),b=gf,x=pf,k=window;if(u){var w=uf(n),S="clientHeight",_="clientWidth";if(w===Hc(n)&&"static"!==rf(w=of(n)).position&&"absolute"===s&&(S="scrollHeight",_="scrollWidth"),i===pf||(i===gf||i===mf)&&a===kf)x=vf,v-=(f&&w===k&&k.visualViewport?k.visualViewport.height:w[S])-r.height,v*=l?1:-1;if(i===gf||(i===pf||i===vf)&&a===kf)b=mf,h-=(f&&w===k&&k.visualViewport?k.visualViewport.width:w[_])-r.width,h*=l?1:-1}var C,E=Object.assign({position:s},u&&jf),O=!0===c?function(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Gc(n*i)/i||0,y:Gc(r*i)/i||0}}({x:h,y:v},Hc(n)):{x:h,y:v};return h=O.x,v=O.y,l?Object.assign({},E,((C={})[x]=y?"0":"",C[b]=g?"0":"",C.transform=(k.devicePixelRatio||1)<=1?"translate("+h+"px, "+v+"px)":"translate3d("+h+"px, "+v+"px, 0)",C)):Object.assign({},E,((t={})[x]=y?v+"px":"",t[b]=g?h+"px":"",t.transform="",t))}var Af={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=void 0===r||r,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:Zc(t.placement),variation:Tf(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Rf(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Rf(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Nf={passive:!0};var Df={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=void 0===i||i,o=r.resize,s=void 0===o||o,l=Hc(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach((function(e){e.addEventListener("scroll",n.update,Nf)})),s&&l.addEventListener("resize",n.update,Nf),function(){a&&u.forEach((function(e){e.removeEventListener("scroll",n.update,Nf)})),s&&l.removeEventListener("resize",n.update,Nf)}},data:{}},Lf={left:"right",right:"left",bottom:"top",top:"bottom"};function If(e){return e.replace(/left|right|bottom|top/g,(function(e){return Lf[e]}))}var zf={start:"end",end:"start"};function Ff(e){return e.replace(/start|end/g,(function(e){return zf[e]}))}function Bf(e){var t=Hc(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Wf(e){return Jc(of(e)).left+Bf(e).scrollLeft}function Vf(e){var t=rf(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Zf(e){return["html","body","#document"].indexOf(nf(e))>=0?e.ownerDocument.body:Uc(e)&&Vf(e)?e:Zf(sf(e))}function Hf(e,t){var n;void 0===t&&(t=[]);var r=Zf(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=Hc(r),o=i?[a].concat(a.visualViewport||[],Vf(r)?r:[]):r,s=t.concat(o);return i?s:s.concat(Hf(sf(o)))}function $f(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Uf(e,t,n){return t===Sf?$f(function(e,t){var n=Hc(e),r=of(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,l=0;if(i){a=i.width,o=i.height;var u=Qc();(u||!u&&"fixed"===t)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:a,height:o,x:s+Wf(e),y:l}}(e,n)):$c(t)?function(e,t){var n=Jc(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):$f(function(e){var t,n=of(e),r=Bf(e),i=null==(t=e.ownerDocument)?void 0:t.body,a=qc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=qc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-r.scrollLeft+Wf(e),l=-r.scrollTop;return"rtl"===rf(i||n).direction&&(s+=qc(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}(of(e)))}function Kf(e,t,n,r){var i="clippingParents"===t?function(e){var t=Hf(sf(e)),n=["absolute","fixed"].indexOf(rf(e).position)>=0&&Uc(e)?uf(e):e;return $c(n)?t.filter((function(e){return $c(e)&&tf(e,n)&&"body"!==nf(e)})):[]}(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce((function(t,n){var i=Uf(e,n,r);return t.top=qc(i.top,t.top),t.right=Yc(i.right,t.right),t.bottom=Yc(i.bottom,t.bottom),t.left=qc(i.left,t.left),t}),Uf(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function qf(e){var t,n=e.reference,r=e.element,i=e.placement,a=i?Zc(i):null,o=i?Tf(i):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(a){case pf:t={x:s,y:n.y-r.height};break;case vf:t={x:s,y:n.y+n.height};break;case mf:t={x:n.x+n.width,y:l};break;case gf:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=a?cf(a):null;if(null!=u){var c="y"===u?"height":"width";switch(o){case xf:t[u]=t[u]-(n[c]/2-r[c]/2);break;case kf:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function Yf(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=void 0===r?e.placement:r,a=n.strategy,o=void 0===a?e.strategy:a,s=n.boundary,l=void 0===s?wf:s,u=n.rootBoundary,c=void 0===u?Sf:u,f=n.elementContext,d=void 0===f?_f:f,h=n.altBoundary,p=void 0!==h&&h,v=n.padding,m=void 0===v?0:v,g=df("number"!==typeof m?m:hf(m,bf)),y=d===_f?Cf:_f,b=e.rects.popper,x=e.elements[p?y:d],k=Kf($c(x)?x:x.contextElement||of(e.elements.popper),l,c,o),w=Jc(e.elements.reference),S=qf({reference:w,element:b,strategy:"absolute",placement:i}),_=$f(Object.assign({},b,S)),C=d===_f?_:w,E={top:k.top-C.top+g.top,bottom:C.bottom-k.bottom+g.bottom,left:k.left-C.left+g.left,right:C.right-k.right+g.right},O=e.modifiersData.offset;if(d===_f&&O){var P=O[i];Object.keys(E).forEach((function(e){var t=[mf,vf].indexOf(e)>=0?1:-1,n=[pf,vf].indexOf(e)>=0?"y":"x";E[e]+=P[n]*t}))}return E}var Gf={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0===o||o,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,d=n.altBoundary,h=n.flipVariations,p=void 0===h||h,v=n.allowedAutoPlacements,m=t.options.placement,g=Zc(m),y=l||(g===m||!p?[If(m)]:function(e){if(Zc(e)===yf)return[];var t=If(e);return[Ff(e),t,Ff(t)]}(m)),b=[m].concat(y).reduce((function(e,n){return e.concat(Zc(n)===yf?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?Of:l,c=Tf(r),f=c?s?Ef:Ef.filter((function(e){return Tf(e)===c})):bf,d=f.filter((function(e){return u.indexOf(e)>=0}));0===d.length&&(d=f);var h=d.reduce((function(t,n){return t[n]=Yf(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Zc(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}(t,{placement:n,boundary:c,rootBoundary:f,padding:u,flipVariations:p,allowedAutoPlacements:v}):n)}),[]),x=t.rects.reference,k=t.rects.popper,w=new Map,S=!0,_=b[0],C=0;C<b.length;C++){var E=b[C],O=Zc(E),P=Tf(E)===xf,M=[pf,vf].indexOf(O)>=0,T=M?"width":"height",j=Yf(t,{placement:E,boundary:c,rootBoundary:f,altBoundary:d,padding:u}),R=M?P?mf:gf:P?vf:pf;x[T]>k[T]&&(R=If(R));var A=If(R),N=[];if(a&&N.push(j[O]<=0),s&&N.push(j[R]<=0,j[A]<=0),N.every((function(e){return e}))){_=E,S=!1;break}w.set(E,N)}if(S)for(var D=function(e){var t=b.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return _=t,"break"},L=p?3:1;L>0;L--){if("break"===D(L))break}t.placement!==_&&(t.modifiersData[r]._skip=!0,t.placement=_,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Xf(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Qf(e){return[pf,mf,vf,gf].some((function(t){return e[t]>=0}))}var Jf={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=void 0===i?[0,0]:i,o=Of.reduce((function(e,n){return e[n]=function(e,t,n){var r=Zc(e),i=[gf,pf].indexOf(r)>=0?-1:1,a="function"===typeof n?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o=o||0,s=(s||0)*i,[gf,mf].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}};var ed={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=void 0===i||i,o=n.altAxis,s=void 0!==o&&o,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,d=n.tether,h=void 0===d||d,p=n.tetherOffset,v=void 0===p?0:p,m=Yf(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),g=Zc(t.placement),y=Tf(t.placement),b=!y,x=cf(g),k="x"===x?"y":"x",w=t.modifiersData.popperOffsets,S=t.rects.reference,_=t.rects.popper,C="function"===typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E="number"===typeof C?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(a){var M,T="y"===x?pf:gf,j="y"===x?vf:mf,R="y"===x?"height":"width",A=w[x],N=A+m[T],D=A-m[j],L=h?-_[R]/2:0,I=y===xf?S[R]:_[R],z=y===xf?-_[R]:-S[R],F=t.elements.arrow,B=h&&F?ef(F):{width:0,height:0},W=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=W[T],Z=W[j],H=ff(0,S[R],B[R]),$=b?S[R]/2-L-H-V-E.mainAxis:I-H-V-E.mainAxis,U=b?-S[R]/2+L+H+Z+E.mainAxis:z+H+Z+E.mainAxis,K=t.elements.arrow&&uf(t.elements.arrow),q=K?"y"===x?K.clientTop||0:K.clientLeft||0:0,Y=null!=(M=null==O?void 0:O[x])?M:0,G=A+U-Y,X=ff(h?Yc(N,A+$-Y-q):N,A,h?qc(D,G):D);w[x]=X,P[x]=X-A}if(s){var Q,J="x"===x?pf:gf,ee="x"===x?vf:mf,te=w[k],ne="y"===k?"height":"width",re=te+m[J],ie=te-m[ee],ae=-1!==[pf,gf].indexOf(g),oe=null!=(Q=null==O?void 0:O[k])?Q:0,se=ae?re:te-S[ne]-_[ne]-oe+E.altAxis,le=ae?te+S[ne]+_[ne]-oe-E.altAxis:ie,ue=h&&ae?function(e,t,n){var r=ff(e,t,n);return r>n?n:r}(se,te,le):ff(h?se:re,te,h?le:ie);w[k]=ue,P[k]=ue-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function td(e,t,n){void 0===n&&(n=!1);var r=Uc(t),i=Uc(t)&&function(e){var t=e.getBoundingClientRect(),n=Gc(t.width)/e.offsetWidth||1,r=Gc(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),a=of(t),o=Jc(e,i,n),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&(("body"!==nf(t)||Vf(a))&&(s=function(e){return e!==Hc(e)&&Uc(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Bf(e);var t}(t)),Uc(t)?((l=Jc(t,!0)).x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=Wf(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function nd(e){var t=new Map,n=new Set,r=[];function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||i(e)})),r}function rd(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var id={placement:"bottom",modifiers:[],strategy:"absolute"};function ad(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"===typeof e.getBoundingClientRect)}))}function od(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,i=t.defaultOptions,a=void 0===i?id:i;return function(e,t,n){void 0===n&&(n=a);var i={placement:"bottom",orderedModifiers:[],options:Object.assign({},id,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,l={state:i,setOptions:function(n){var s="function"===typeof n?n(i.options):n;u(),i.options=Object.assign({},a,i.options,s),i.scrollParents={reference:$c(e)?Hf(e):e.contextElement?Hf(e.contextElement):[],popper:Hf(t)};var c=function(e){var t=nd(e);return Pf.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}(function(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}([].concat(r,i.options.modifiers)));return i.orderedModifiers=c.filter((function(e){return e.enabled})),i.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,a=e.effect;if("function"===typeof a){var s=a({state:i,name:t,instance:l,options:r}),u=function(){};o.push(s||u)}})),l.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(ad(t,n)){i.rects={reference:td(t,uf(n),"fixed"===i.options.strategy),popper:ef(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach((function(e){return i.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<i.orderedModifiers.length;r++)if(!0!==i.reset){var a=i.orderedModifiers[r],o=a.fn,u=a.options,c=void 0===u?{}:u,f=a.name;"function"===typeof o&&(i=o({state:i,options:c,name:f,instance:l})||i)}else i.reset=!1,r=-1}}},update:rd((function(){return new Promise((function(e){l.forceUpdate(),e(i)}))})),destroy:function(){u(),s=!0}};if(!ad(e,t))return l;function u(){o.forEach((function(e){return e()})),o=[]}return l.setOptions(n).then((function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var sd=od({defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Yf(t,{elementContext:"reference"}),s=Yf(t,{altBoundary:!0}),l=Xf(o,r),u=Xf(s,i,a),c=Qf(l),f=Qf(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=qf({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},Af,Df,Jf,Gf,ed,Mf]}),ld=["enabled","placement","strategy","modifiers"];var ud={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:function(){}},cd={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:function(e){var t=e.state;return function(){var e=t.elements,n=e.reference,r=e.popper;if("removeAttribute"in n){var i=(n.getAttribute("aria-describedby")||"").split(",").filter((function(e){return e.trim()!==r.id}));i.length?n.setAttribute("aria-describedby",i.join(",")):n.removeAttribute("aria-describedby")}}},fn:function(e){var t,n=e.state.elements,r=n.popper,i=n.reference,a=null==(t=r.getAttribute("role"))?void 0:t.toLowerCase();if(r.id&&"tooltip"===a&&"setAttribute"in i){var o=i.getAttribute("aria-describedby");if(o&&-1!==o.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",o?"".concat(o,",").concat(r.id):r.id)}}},fd=[];var dd=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.enabled,a=void 0===i||i,o=r.placement,s=void 0===o?"bottom":o,l=r.strategy,u=void 0===l?"absolute":l,c=r.modifiers,f=void 0===c?fd:c,d=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(r,ld),h=(0,e.useRef)(f),p=(0,e.useRef)(),v=(0,e.useCallback)((function(){var e;null==(e=p.current)||e.update()}),[]),m=(0,e.useCallback)((function(){var e;null==(e=p.current)||e.forceUpdate()}),[]),g=Vc((0,e.useState)({placement:s,update:v,forceUpdate:m,attributes:{},styles:{popper:{},arrow:{}}})),y=(0,mt.Z)(g,2),b=y[0],x=y[1],k=(0,e.useMemo)((function(){return{name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:function(e){var t=e.state,n={},r={};Object.keys(t.elements).forEach((function(e){n[e]=t.styles[e],r[e]=t.attributes[e]})),x({state:t,styles:n,attributes:r,update:v,forceUpdate:m,placement:t.placement})}}}),[v,m,x]),w=(0,e.useMemo)((function(){return Wc(h.current,f)||(h.current=f),h.current}),[f]);return(0,e.useEffect)((function(){p.current&&a&&p.current.setOptions({placement:s,strategy:u,modifiers:[].concat((0,fl.Z)(w),[k,ud])})}),[u,s,k,a,w]),(0,e.useEffect)((function(){if(a&&null!=t&&null!=n)return p.current=sd(t,n,Object.assign({},d,{placement:s,strategy:u,modifiers:[].concat((0,fl.Z)(w),[cd,k])})),function(){null!=p.current&&(p.current.destroy(),p.current=void 0,x((function(e){return Object.assign({},e,{attributes:{},styles:{popper:{}}})})))}}),[a,t,n]),b};function hd(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}var pd=function(e,t,n,r){var i=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,i),n.__once&&e.removeEventListener(t,n.__once,i)};var vd=function(e,t,n,r){return Oc(e,t,n,r),function(){pd(e,t,n,r)}};var md=n(2391),gd=n.n(md),yd=function(){};var bd=function(e){return e&&("current"in e?e.current:e)},xd={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var kd=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yd,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=r.disabled,a=r.clickTrigger,o=void 0===a?"click":a,s=(0,e.useRef)(!1),l=(0,e.useRef)(!1),u=(0,e.useCallback)((function(e){var n,r=bd(t);gd()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),s.current=!r||!!((n=e).metaKey||n.altKey||n.ctrlKey||n.shiftKey)||!function(e){return 0===e.button}(e)||!!hd(r,e.target)||l.current,l.current=!1}),[t]),c=Dc((function(e){var n=bd(t);n&&hd(n,e.target)&&(l.current=!0)})),f=Dc((function(e){s.current||n(e)}));(0,e.useEffect)((function(){if(!i&&null!=t){var e=function(e){return e&&e.ownerDocument||document}(bd(t)),n=(e.defaultView||window).event,r=null;xd[o]&&(r=vd(e,xd[o],c,!0));var a=vd(e,o,u,!0),s=vd(e,o,(function(e){e!==n?f(e):n=void 0})),l=[];return"ontouchstart"in e.documentElement&&(l=[].slice.call(e.body.children).map((function(e){return vd(e,"mousemove",yd)}))),function(){null==r||r(),a(),s(),l.forEach((function(e){return e()}))}}}),[t,i,o,u,c,f])};function wd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)?e:Object.keys(e).map((function(t){return e[t].name=t,e[t]}))}function Sd(e){var t,n,r,i,a,o=e.enabled,s=e.enableEvents,l=e.placement,u=e.flip,c=e.offset,f=e.fixed,d=e.containerPadding,h=e.arrowElement,p=e.popperConfig,v=void 0===p?{}:p,m=function(e){var t={};return Array.isArray(e)?(null==e||e.forEach((function(e){t[e.name]=e})),t):e||t}(v.modifiers);return Object.assign({},v,{placement:l,enabled:o,strategy:f?"fixed":v.strategy,modifiers:wd(Object.assign({},m,{eventListeners:{enabled:s,options:null==(t=m.eventListeners)?void 0:t.options},preventOverflow:Object.assign({},m.preventOverflow,{options:d?Object.assign({padding:d},null==(n=m.preventOverflow)?void 0:n.options):null==(r=m.preventOverflow)?void 0:r.options}),offset:{options:Object.assign({offset:c},null==(i=m.offset)?void 0:i.options)},arrow:Object.assign({},m.arrow,{enabled:!!h,options:Object.assign({},null==(a=m.arrow)?void 0:a.options,{element:h})}),flip:Object.assign({enabled:!!u},m.flip)}))})}var _d=["children"];var Cd=function(){};function Ed(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,e.useContext)(Lc),r=(0,e.useState)(null),i=(0,mt.Z)(r,2),a=i[0],o=i[1],s=(0,e.useRef)(!1),l=t.flip,u=t.offset,c=t.rootCloseEvent,f=t.fixed,d=void 0!==f&&f,h=t.placement,p=t.popperConfig,v=void 0===p?{}:p,m=t.enableEventListeners,g=void 0===m||m,y=t.usePopper,b=void 0===y?!!n:y,x=null==(null==n?void 0:n.show)?!!t.show:n.show;x&&!s.current&&(s.current=!0);var k=n||{},w=k.placement,S=k.setMenu,_=k.menuElement,C=k.toggleElement,E=dd(C,_,Sd({placement:h||w||"bottom-start",enabled:b,enableEvents:null==g?x:g,offset:u,flip:l,fixed:d,arrowElement:a,popperConfig:v})),O=Object.assign({ref:S||Cd,"aria-labelledby":null==C?void 0:C.id},E.attributes.popper,{style:E.styles.popper}),P={show:x,placement:w,hasShown:s.current,toggle:null==n?void 0:n.toggle,popper:b?E:null,arrowProps:b?Object.assign({ref:o},E.attributes.arrow,{style:E.styles.arrow}):{}};return kd(_,(function(e){null==n||n.toggle(!1,e)}),{clickTrigger:c,disabled:!x}),[O,P]}function Od(e){var t=e.children,n=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,_d),r=Ed(n),i=(0,mt.Z)(r,2),a=i[0],o=i[1];return(0,vc.jsx)(vc.Fragment,{children:t(a,o)})}Od.displayName="DropdownMenu",Od.defaultProps={usePopper:!0};var Pd=Od,Md={prefix:String(Math.round(1e10*Math.random())),current:0,isSSR:!1},Td=e.createContext(Md);var jd=Boolean("undefined"!==typeof window&&window.document&&window.document.createElement),Rd=new WeakMap;function Ad(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=(0,e.useContext)(Td),r=(0,e.useRef)(null);if(null===r.current&&!t){var i,a,o=null===(i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===i||null===(a=i.ReactCurrentOwner)||void 0===a?void 0:a.current;if(o){var s=Rd.get(o);null==s?Rd.set(o,{id:n.current,state:o.memoizedState}):o.memoizedState!==s.state&&(n.current=s.id,Rd.delete(o))}r.current=++n.current}return r.current}var Nd=function(e){var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},Dd=function(){};function Ld(){var t=function(t){var n=(0,e.useContext)(Td);n!==Md||jd||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");var r=Ad(!!t);return t||"react-aria".concat(n.prefix,"-").concat(r)}(),n=(0,e.useContext)(Lc)||{},r=n.show,i=void 0!==r&&r,a=n.toggle,o=void 0===a?Dd:a,s=n.setToggle,l=n.menuElement,u=(0,e.useCallback)((function(e){o(!i,e)}),[i,o]),c={id:t,ref:s||Dd,onClick:u,"aria-expanded":!!i};return l&&Nd(l)&&(c["aria-haspopup"]=!0),[c,{show:i,toggle:o}]}function Id(e){var t=e.children,n=Ld(),r=(0,mt.Z)(n,2),i=r[0],a=r[1];return(0,vc.jsx)(vc.Fragment,{children:t(i,a)})}Id.displayName="DropdownToggle";var zd=Id,Fd=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return null!=e?String(e):t||null},Bd=e.createContext(null),Wd=e.createContext(null);Wd.displayName="NavContext";var Vd=Wd,Zd=["as","disabled"];function Hd(e){var t=e.tagName,n=e.disabled,r=e.href,i=e.target,a=e.rel,o=e.role,s=e.onClick,l=e.tabIndex,u=void 0===l?0:l,c=e.type;t||(t=null!=r||null!=i||null!=a?"a":"button");var f={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},f];var d=function(e){(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==s||s(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=o?o:"button",disabled:void 0,tabIndex:n?void 0:u,href:r,target:"a"===t?i:void 0,"aria-disabled":n||void 0,rel:"a"===t?a:void 0,onClick:d,onKeyDown:function(e){" "===e.key&&(e.preventDefault(),d(e))}},f]}var $d=e.forwardRef((function(e,t){var n=e.as,r=e.disabled,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Zd),a=Hd(Object.assign({tagName:n,disabled:r},i)),o=(0,mt.Z)(a,2),s=o[0],l=o[1].tagName;return(0,vc.jsx)(l,Object.assign({},i,s,{ref:t}))}));$d.displayName="Button";var Ud=$d,Kd="data-rr-ui-";function qd(e){return"".concat(Kd).concat(e)}var Yd=["eventKey","disabled","onClick","active","as"];function Gd(t){var n=t.key,r=t.href,i=t.active,a=t.disabled,o=t.onClick,s=(0,e.useContext)(Bd),l=((0,e.useContext)(Vd)||{}).activeKey,u=Fd(n,r),c=null==i&&null!=n?Fd(l)===u:i,f=Dc((function(e){a||(null==o||o(e),s&&!e.isPropagationStopped()&&s(u,e))}));return[(0,Be.Z)({onClick:f,"aria-disabled":a||void 0,"aria-selected":c},qd("dropdown-item"),""),{isActive:c}]}var Xd=e.forwardRef((function(e,t){var n=e.eventKey,r=e.disabled,i=e.onClick,a=e.active,o=e.as,s=void 0===o?Ud:o,l=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Yd),u=Gd({key:n,href:l.href,disabled:r,onClick:i,active:a}),c=(0,mt.Z)(u,1)[0];return(0,vc.jsx)(s,Object.assign({},l,{ref:t},c))}));Xd.displayName="DropdownItem";var Qd=Xd,Jd=(0,e.createContext)(Sc?window:void 0);Jd.Provider;function eh(){var t=(0,e.useReducer)((function(e){return!e}),!1)[1],n=(0,e.useRef)(null),r=(0,e.useCallback)((function(e){n.current=e,t()}),[t]);return[n,r]}function th(t){var n=t.defaultShow,r=t.show,i=t.onSelect,a=t.onToggle,o=t.itemSelector,s=void 0===o?"* [".concat(qd("dropdown-item"),"]"):o,l=t.focusFirstItemOnShow,u=t.placement,c=void 0===u?"bottom-start":u,f=t.children,d=(0,e.useContext)(Jd),h=Tc(r,n,a),p=(0,mt.Z)(h,2),v=p[0],m=p[1],g=eh(),y=(0,mt.Z)(g,2),b=y[0],x=y[1],k=b.current,w=eh(),S=(0,mt.Z)(w,2),_=S[0],C=S[1],E=_.current,O=function(t){var n=(0,e.useRef)(null);return(0,e.useEffect)((function(){n.current=t})),n.current}(v),P=(0,e.useRef)(null),M=(0,e.useRef)(!1),T=(0,e.useContext)(Bd),j=(0,e.useCallback)((function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null==t?void 0:t.type;m(e,{originalEvent:t,source:n})}),[m]),R=Dc((function(e,t){null==i||i(e,t),j(!1,t,"select"),t.isPropagationStopped()||null==T||T(e,t)})),A=(0,e.useMemo)((function(){return{toggle:j,placement:c,show:v,menuElement:k,toggleElement:E,setMenu:x,setToggle:C}}),[j,c,v,k,E,x,C]);k&&O&&!v&&(M.current=k.contains(k.ownerDocument.activeElement));var N=Dc((function(){E&&E.focus&&E.focus()})),D=Dc((function(){var e=P.current,t=l;if(null==t&&(t=!(!b.current||!Nd(b.current))&&"keyboard"),!1!==t&&("keyboard"!==t||/^key.+$/.test(e))){var n=wc(b.current,s)[0];n&&n.focus&&n.focus()}}));(0,e.useEffect)((function(){v?D():M.current&&(M.current=!1,N())}),[v,M,N,D]),(0,e.useEffect)((function(){P.current=null}));var L=function(e,t){if(!b.current)return null;var n=wc(b.current,s),r=n.indexOf(e)+t;return n[r=Math.max(0,Math.min(r,n.length))]};return function(t,n,r,i){void 0===i&&(i=!1);var a=Dc(r);(0,e.useEffect)((function(){var e="function"===typeof t?t():t;return e.addEventListener(n,a,i),function(){return e.removeEventListener(n,a,i)}}),[t])}((0,e.useCallback)((function(){return d.document}),[d]),"keydown",(function(e){var t,n,r=e.key,i=e.target,a=null==(t=b.current)?void 0:t.contains(i),o=null==(n=_.current)?void 0:n.contains(i);if((!/input|textarea/i.test(i.tagName)||!(" "===r||"Escape"!==r&&a||"Escape"===r&&"search"===i.type))&&(a||o)&&("Tab"!==r||b.current&&v)){P.current=e.type;var s={originalEvent:e,source:e.type};switch(r){case"ArrowUp":var l=L(i,-1);return l&&l.focus&&l.focus(),void e.preventDefault();case"ArrowDown":if(e.preventDefault(),v){var u=L(i,1);u&&u.focus&&u.focus()}else m(!0,s);return;case"Tab":Oc(i.ownerDocument,"keyup",(function(e){var t;("Tab"!==e.key||e.target)&&null!=(t=b.current)&&t.contains(e.target)||m(!1,s)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),m(!1,s)}}})),(0,vc.jsx)(Bd.Provider,{value:R,children:(0,vc.jsx)(Lc.Provider,{value:A,children:f})})}th.displayName="Dropdown",th.Menu=Pd,th.Toggle=zd,th.Item=Qd;var nh=th,rh=e.createContext({});rh.displayName="DropdownContext";var ih=rh;var ah="undefined"!==typeof n.g&&n.g.navigator&&"ReactNative"===n.g.navigator.product,oh="undefined"!==typeof document||ah?e.useLayoutEffect:e.useEffect;new WeakMap;var sh=["onKeyDown"];var lh=e.forwardRef((function(e,t){var n,r=e.onKeyDown,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,sh),a=Hd(Object.assign({tagName:"a"},i)),o=(0,mt.Z)(a,1)[0],s=Dc((function(e){o.onKeyDown(e),null==r||r(e)}));return(n=i.href)&&"#"!==n.trim()&&"button"!==i.role?(0,vc.jsx)("a",Object.assign({ref:t},i,{onKeyDown:r})):(0,vc.jsx)("a",Object.assign({ref:t},i,o,{onKeyDown:s}))}));lh.displayName="Anchor";var uh=lh,ch=["bsPrefix","className","eventKey","disabled","onClick","active","as"],fh=e.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.eventKey,a=e.disabled,o=void 0!==a&&a,s=e.onClick,l=e.active,u=e.as,c=void 0===u?uh:u,f=Ne(e,ch),d=yc(n,"dropdown-item"),h=Gd({key:i,href:f.href,disabled:o,onClick:s,active:l}),p=(0,mt.Z)(h,2),v=p[0],m=p[1];return(0,vc.jsx)(c,dc(dc(dc({},f),v),{},{ref:t,className:pc()(r,d,m.isActive&&"active",o&&"disabled")}))}));fh.displayName="DropdownItem";var dh=fh,hh=function(e){return e&&"function"!==typeof e?function(t){e.current=t}:e};var ph=function(t,n){return(0,e.useMemo)((function(){return function(e,t){var n=hh(e),r=hh(t);return function(e){n&&n(e),r&&r(e)}}(t,n)}),[t,n])},vh=e.createContext(null);vh.displayName="InputGroupContext";var mh=vh,gh=e.createContext(null);gh.displayName="NavbarContext";var yh=gh;function bh(e,t){return e}var xh=["bsPrefix","className","align","rootCloseEvent","flip","show","renderOnMount","as","popperConfig","variant"];function kh(e,t,n){var r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}var wh=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.className,a=t.align,o=t.rootCloseEvent,s=t.flip,l=void 0===s||s,u=t.show,c=t.renderOnMount,f=t.as,d=void 0===f?"div":f,h=t.popperConfig,p=t.variant,v=Ne(t,xh),m=!1,g=(0,e.useContext)(yh),y=yc(r,"dropdown-menu"),b=(0,e.useContext)(ih),x=b.align,k=b.drop,w=b.isRTL;a=a||x;var S=(0,e.useContext)(mh),_=[];if(a)if("object"===typeof a){var C=Object.keys(a);if(C.length){var E=C[0],O=a[E];m="start"===O,_.push("".concat(y,"-").concat(E,"-").concat(O))}}else"end"===a&&(m=!0);var P=kh(m,k,w),M=Ed({flip:l,rootCloseEvent:o,show:u,usePopper:!g&&0===_.length,offset:[0,2],popperConfig:h,placement:P}),T=(0,mt.Z)(M,2),j=T[0],R=T[1],A=R.hasShown,N=R.popper,D=R.show,L=R.toggle;if(j.ref=ph(bh(n),j.ref),oh((function(){D&&(null==N||N.update())}),[D]),!A&&!c&&!S)return null;"string"!==typeof d&&(j.show=D,j.close=function(){return null==L?void 0:L(!1)},j.align=a);var I=v.style;return null!=N&&N.placement&&(I=dc(dc({},v.style),j.style),v["x-placement"]=N.placement),(0,vc.jsx)(d,dc(dc(dc(dc({},v),j),{},{style:I},(_.length||g)&&{"data-bs-popper":"static"}),{},{className:pc().apply(void 0,[i,y,D&&"show",m&&"".concat(y,"-end"),p&&"".concat(y,"-").concat(p)].concat(_))}))}));wh.displayName="DropdownMenu";var Sh=wh,_h=["as","bsPrefix","variant","size","active","disabled","className"],Ch=e.forwardRef((function(e,t){var n=e.as,r=e.bsPrefix,i=e.variant,a=void 0===i?"primary":i,o=e.size,s=e.active,l=void 0!==s&&s,u=e.disabled,c=void 0!==u&&u,f=e.className,d=Ne(e,_h),h=yc(r,"btn"),p=Hd(dc({tagName:n,disabled:c},d)),v=(0,mt.Z)(p,2),m=v[0],g=v[1].tagName;return(0,vc.jsx)(g,dc(dc(dc({},m),d),{},{ref:t,disabled:c,className:pc()(f,h,l&&"active",a&&"".concat(h,"-").concat(a),o&&"".concat(h,"-").concat(o),d.href&&c&&"disabled")}))}));Ch.displayName="Button";var Eh=Ch,Oh=["bsPrefix","split","className","childBsPrefix","as"],Ph=e.forwardRef((function(t,n){var r=t.bsPrefix,i=t.split,a=t.className,o=t.childBsPrefix,s=t.as,l=void 0===s?Eh:s,u=Ne(t,Oh),c=yc(r,"dropdown-toggle"),f=(0,e.useContext)(Lc);void 0!==o&&(u.bsPrefix=o);var d=Ld(),h=(0,mt.Z)(d,1)[0];return h.ref=ph(h.ref,bh(n)),(0,vc.jsx)(l,dc(dc({className:pc()(a,c,i&&"".concat(c,"-split"),(null==f?void 0:f.show)&&"show")},h),u))}));Ph.displayName="DropdownToggle";var Mh=Ph,Th=/-(.)/g;var jh=["className","bsPrefix","as"],Rh=function(e){return e[0].toUpperCase()+(t=e,t.replace(Th,(function(e,t){return t.toUpperCase()}))).slice(1);var t};function Ah(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.displayName,i=void 0===r?Rh(t):r,a=n.Component,o=n.defaultProps,s=e.forwardRef((function(e,n){var r=e.className,i=e.bsPrefix,s=e.as,l=void 0===s?a||"div":s,u=Ne(e,jh),c=dc(dc({},o),u),f=yc(i,t);return(0,vc.jsx)(l,dc({ref:n,className:pc()(r,f)},c))}));return s.displayName=i,s}var Nh=["bsPrefix","drop","show","className","align","onSelect","onToggle","focusFirstItemOnShow","as","navbar","autoClose"],Dh=Ah("dropdown-header",{defaultProps:{role:"heading"}}),Lh=Ah("dropdown-divider",{Component:"hr",defaultProps:{role:"separator"}}),Ih=Ah("dropdown-item-text",{Component:"span"}),zh=e.forwardRef((function(t,n){var r=function(e,t){return Object.keys(t).reduce((function(n,r){var i,a=n,o=a[Pc(r)],s=a[r],l=(0,Ae.Z)(a,[Pc(r),r].map(Mc)),u=t[r],c=Tc(s,o,e[u]),f=c[0],d=c[1];return(0,De.Z)({},l,((i={})[r]=f,i[u]=d,i))}),e)}(t,{show:"onToggle"}),i=r.bsPrefix,a=r.drop,o=void 0===a?"down":a,s=r.show,l=r.className,u=r.align,c=void 0===u?"start":u,f=r.onSelect,d=r.onToggle,h=r.focusFirstItemOnShow,p=r.as,v=void 0===p?"div":p,m=(r.navbar,r.autoClose),g=void 0===m||m,y=Ne(r,Nh),b=(0,e.useContext)(mh),x=yc(i,"dropdown"),k="rtl"===(0,e.useContext)(gc).dir,w=Dc((function(e,t){var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===g?"click"===n:"inside"===g?"rootClose"!==n:"outside"!==g||"select"!==n)&&(null==d||d(e,t))})),S=kh("end"===c,o,k),_=(0,e.useMemo)((function(){return{align:c,drop:o,isRTL:k}}),[c,o,k]),C={down:x,"down-centered":"".concat(x,"-center"),up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,vc.jsx)(ih.Provider,{value:_,children:(0,vc.jsx)(nh,{placement:S,show:s,onSelect:f,onToggle:w,focusFirstItemOnShow:h,itemSelector:".".concat(x,"-item:not(.disabled):not(:disabled)"),children:b?y.children:(0,vc.jsx)(v,dc(dc({},y),{},{ref:n,className:pc()(l,s&&"show",C[o])}))})})}));zh.displayName="Dropdown";var Fh=Object.assign(zh,{Toggle:Mh,Menu:Sh,Item:dh,ItemText:Ih,Divider:Lh,Header:Dh}),Bh=e.createContext(null),Wh=["as","active","eventKey"];function Vh(t){var n=t.key,r=t.onClick,i=t.active,a=t.id,o=t.role,s=t.disabled,l=(0,e.useContext)(Bd),u=(0,e.useContext)(Vd),c=(0,e.useContext)(Bh),f=i,d={role:o};if(u){o||"tablist"!==u.role||(d.role="tab");var h=u.getControllerId(null!=n?n:null),p=u.getControlledId(null!=n?n:null);d[qd("event-key")]=n,d.id=h||a,!(f=null==i&&null!=n?u.activeKey===n:i)&&(null!=c&&c.unmountOnExit||null!=c&&c.mountOnEnter)||(d["aria-controls"]=p)}return"tab"===d.role&&(d["aria-selected"]=f,f||(d.tabIndex=-1),s&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=Dc((function(e){s||(null==r||r(e),null!=n&&l&&!e.isPropagationStopped()&&l(n,e))})),[d,{isActive:f}]}var Zh=e.forwardRef((function(e,t){var n=e.as,r=void 0===n?Ud:n,i=e.active,a=e.eventKey,o=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Wh),s=Vh(Object.assign({key:Fd(a,o.href),active:i},o)),l=(0,mt.Z)(s,2),u=l[0],c=l[1];return u[qd("active")]=c.isActive,(0,vc.jsx)(r,Object.assign({},o,u,{ref:t}))}));Zh.displayName="NavItem";var Hh=["bsPrefix","className","as","active","eventKey","disabled"],$h=e.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.as,a=void 0===i?uh:i,o=e.active,s=e.eventKey,l=e.disabled,u=void 0!==l&&l,c=Ne(e,Hh);n=yc(n,"nav-link");var f=Vh(dc({key:Fd(s,c.href),active:o,disabled:u},c)),d=(0,mt.Z)(f,2),h=d[0],p=d[1];return(0,vc.jsx)(a,dc(dc(dc({},c),h),{},{ref:t,disabled:u,className:pc()(r,n,u&&"disabled",p.isActive&&"active")}))}));$h.displayName="NavLink";var Uh=$h,Kh=["id","title","children","bsPrefix","className","rootCloseEvent","menuRole","disabled","active","renderMenuOnMount","menuVariant"],qh=e.forwardRef((function(e,t){var n=e.id,r=e.title,i=e.children,a=e.bsPrefix,o=e.className,s=e.rootCloseEvent,l=e.menuRole,u=e.disabled,c=e.active,f=e.renderMenuOnMount,d=e.menuVariant,h=Ne(e,Kh),p=yc(void 0,"nav-item");return(0,vc.jsxs)(Fh,dc(dc({ref:t},h),{},{className:pc()(o,p),children:[(0,vc.jsx)(Fh.Toggle,{id:n,eventKey:null,active:c,disabled:u,childBsPrefix:a,as:Uh,children:r}),(0,vc.jsx)(Fh.Menu,{role:l,renderOnMount:f,rootCloseEvent:s,variant:d,children:i})]}))}));qh.displayName="NavDropdown";var Yh=Object.assign(qh,{Item:Fh.Item,ItemText:Fh.ItemText,Divider:Fh.Divider,Header:Fh.Header});n(9141);function Gh(){var t=(0,e.useState)(null),n=(0,mt.Z)(t,2),r=n[0],i=n[1];return(0,e.useEffect)((function(){function e(){return e=so(ao().mark((function e(){var t;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ac();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,vc.jsxs)(bu,{position:"sticky",className:"navbar bar py-3 px-4",children:[(0,vc.jsxs)(zu,{href:"/",className:"nav-brand",underline:"none",children:[(0,vc.jsx)("img",{src:nc,className:"logo w-100"}),(0,vc.jsx)(Lu,{variant:"h4",className:"nav-header",children:"BudgetBuddy"})]}),(0,vc.jsx)("div",{className:"nav-login-control",children:rc()?(0,vc.jsx)("div",{children:(0,vc.jsxs)(Yh,{title:"Logged in as ".concat(r),children:[(0,vc.jsx)(Yh.Item,{href:"/settings",children:"Settings"}),(0,vc.jsx)(Yh.Item,{href:"/about-us",children:"About Us"}),(0,vc.jsx)(Yh.Item,{onClick:uc,children:"Sign Out"})]})}):(0,vc.jsxs)("span",{className:"mx-0",style:{display:"flex"},children:[(0,vc.jsx)(tc,{className:"mx-0",href:"/login",children:"Login"}),(0,vc.jsx)("p",{style:{marginTop:"9px"},children:"or"}),(0,vc.jsx)(tc,{className:"mx-0",href:"/signup",children:"Signup"})]})})]})}var Xh=n(9309),Qh=n(6120),Jh=n(8840),ep=n(6488),tp=e.forwardRef((function(t,n){var r=t.children,i=t.classes,a=t.className,o=t.color,s=void 0===o?"inherit":o,l=t.component,u=void 0===l?"svg":l,c=t.fontSize,f=void 0===c?"medium":c,d=t.htmlColor,h=t.titleAccess,p=t.viewBox,v=void 0===p?"0 0 24 24":p,m=Ne(t,["children","classes","className","color","component","fontSize","htmlColor","titleAccess","viewBox"]);return e.createElement(u,(0,De.Z)({className:(0,lo.Z)(i.root,a,"inherit"!==s&&i["color".concat(xu(s))],"default"!==f&&"medium"!==f&&i["fontSize".concat(xu(f))]),focusable:"false",viewBox:v,color:d,"aria-hidden":!h||void 0,role:h?"img":void 0,ref:n},m),r,h?e.createElement("title",null,h):null)}));tp.muiName="SvgIcon";var np=gu((function(e){return{root:{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,fontSize:e.typography.pxToRem(24),transition:e.transitions.create("fill",{duration:e.transitions.duration.shorter})},colorPrimary:{color:e.palette.primary.main},colorSecondary:{color:e.palette.secondary.main},colorAction:{color:e.palette.action.active},colorError:{color:e.palette.error.main},colorDisabled:{color:e.palette.action.disabled},fontSizeInherit:{fontSize:"inherit"},fontSizeSmall:{fontSize:e.typography.pxToRem(20)},fontSizeLarge:{fontSize:e.typography.pxToRem(35)}}}),{name:"MuiSvgIcon"})(tp);var rp=function(t,n){var r=function(n,r){return e.createElement(np,(0,De.Z)({ref:r},n),t)};return r.muiName=np.muiName,e.memo(e.forwardRef(r))}(e.createElement("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));var ip=e.forwardRef((function(t,n){var r=t.alt,i=t.children,a=t.classes,o=t.className,s=t.component,l=void 0===s?"div":s,u=t.imgProps,c=t.sizes,f=t.src,d=t.srcSet,h=t.variant,p=void 0===h?"circular":h,v=Ne(t,["alt","children","classes","className","component","imgProps","sizes","src","srcSet","variant"]),m=null,g=function(t){var n=t.src,r=t.srcSet,i=e.useState(!1),a=i[0],o=i[1];return e.useEffect((function(){if(n||r){o(!1);var e=!0,t=new Image;return t.src=n,t.srcSet=r,t.onload=function(){e&&o("loaded")},t.onerror=function(){e&&o("error")},function(){e=!1}}}),[n,r]),a}({src:f,srcSet:d}),y=f||d,b=y&&"error"!==g;return m=b?e.createElement("img",(0,De.Z)({alt:r,src:f,srcSet:d,sizes:c,className:a.img},u)):null!=i?i:y&&r?r[0]:e.createElement(rp,{className:a.fallback}),e.createElement(l,(0,De.Z)({className:(0,lo.Z)(a.root,a.system,a[p],o,!b&&a.colorDefault),ref:n},v),m)})),ap=gu((function(e){return{root:{position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},colorDefault:{color:e.palette.background.default,backgroundColor:"light"===e.palette.type?e.palette.grey[400]:e.palette.grey[600]},circle:{},circular:{},rounded:{borderRadius:e.shape.borderRadius},square:{borderRadius:0},img:{width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4},fallback:{width:"75%",height:"75%"}}}),{name:"MuiAvatar"})(ip);function op(){var t=(0,e.useState)(null),n=(0,mt.Z)(t,2),r=n[0],i=n[1];return(0,e.useEffect)((function(){function e(){return(e=so(ao().mark((function e(){var t;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ac();case 2:t=e.sent,i(t.split(" ")[0]);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,vc.jsxs)(mi,{className:"sidebar",backgroundColor:"transparent",style:{border:"none"},children:[(0,vc.jsxs)("div",{className:"sidebar-header",children:[(0,vc.jsx)("div",{className:"sidebar-avatar",children:(0,vc.jsx)(ap,{})}),(0,vc.jsxs)("div",{className:"sidebar-text",children:[(0,vc.jsxs)(Lu,{className:"sidebar-welcome",variant:"h6",children:["Welcome, ",r,"!"]}),(0,vc.jsx)(Lu,{variant:"subtitle2",children:" Your Budget Overiew"})]})]}),(0,vc.jsxs)(xi,{children:[(0,vc.jsx)(ro,{component:(0,vc.jsx)(zu,{href:"/dashboard"}),icon:(0,vc.jsx)(Xh.Z,{}),children:"Dashboard"}),(0,vc.jsx)(ro,{component:(0,vc.jsx)(zu,{href:"/settings"}),icon:(0,vc.jsx)(Qh.Z,{}),children:"Settings"}),(0,vc.jsx)(ro,{component:(0,vc.jsx)(zu,{href:"/about-us"}),icon:(0,vc.jsx)(Jh.Z,{}),children:"About Us"}),(0,vc.jsx)(ro,{onClick:uc,icon:(0,vc.jsx)(ep.Z,{}),children:"Sign Out"})]})]})}var sp=function(e,t){switch(t.type){case"ADD_EXPENSE":return dc(dc({},e),{},{expenses:[].concat((0,fl.Z)(e.expenses),[t.payload])});case"DELETE_EXPENSE":return dc(dc({},e),{},{expenses:e.expenses.filter((function(e){return e.id!==t.payload}))});case"SET_BUDGET":return dc(dc({},e),{},{budget:t.payload});default:return e}},lp={budget:0,expenses:[]},up=(0,e.createContext)(),cp=function(t){var n=(0,e.useReducer)(sp,lp),r=(0,mt.Z)(n,2),i=r[0],a=r[1];return(0,vc.jsx)(up.Provider,{value:{expenses:i.expenses,budget:i.budget,dispatch:a},children:t.children})};function fp(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=(o[0],o[1],(0,e.useState)("")),l=(0,mt.Z)(s,2),u=l[0],c=l[1],f=(0,e.useState)(!1),d=(0,mt.Z)(f,2);d[0],d[1];function h(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(n.startsWith("session="))return n.substring("session=".length,n.length)}return null}function p(){return v.apply(this,arguments)}function v(){return(v=so(ao().mark((function e(){var t,n,r,i,a;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/w/balance",{method:"GET",headers:{"x-session-key":h()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.balance.whole,i=n.balance.decimal,a=r+"."+i,console.log(a),e.abrupt("return",a);case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function m(){return g.apply(this,arguments)}function g(){return(g=so(ao().mark((function e(){var t;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,p();case 2:t=e.sent,c(t);case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,e.useEffect)((function(){m()}),[]);return(0,vc.jsxs)(vc.Fragment,{children:[(0,vc.jsx)("h1",{children:u}),(0,vc.jsxs)("form",{id:"form",onSubmit:function(e){e.preventDefault(),console.log(r);var t=r.split(".");console.log(t),t.length<2?t.push("0"):t[1].length>2?console.log("TEST SUCCESS"):t[1].length<1&&t.push("0");var n={whole:t[0],decimal:t[1]},i=[];for(var a in n){var o=encodeURIComponent(a),s=encodeURIComponent(n[a]);i.push(o+"="+s)}i=i.join("&"),fetch("https://api.bb.gabefarrell.com/w/balance",{method:"POST",body:i,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","x-session-key":h()}}).then((function(e){return e.json()})).then((function(e){console.log(e),200==e.status&&m()}))},children:[(0,vc.jsx)("input",{type:"text",className:"form-control",placeholder:"Enter Balance",value:r,maxLength:"10",pattern:"^[+]?[0-9]{1,3}(?:,?[0-9]{3})*(?:\\.[0-9]{2})?",title:"Please enter the balance with two decimal places for cents. Please enter a balance 999999999.99",onChange:function(e){return i(e.target.value)},required:!0}),(0,vc.jsx)("button",{type:"submit",children:"Submit"})]})]})}var dp=function(t){var n=(0,e.useState)(t.budget),r=(0,mt.Z)(n,2),i=r[0],a=r[1];return(0,vc.jsxs)(vc.Fragment,{children:[(0,vc.jsx)("input",{required:"required",type:"number",className:"form-control mr-3",id:"name",value:i,onChange:function(e){return a(e.target.value)}}),(0,vc.jsx)("button",{type:"button",className:"btn btn-primary",onClick:function(){return t.handleSaveClick(i)},children:"Save"})]})},hp=function(){var t=(0,e.useContext)(up),n=t.budget,r=t.dispatch,i=(0,e.useState)(!1),a=(0,mt.Z)(i,2),o=a[0],s=a[1];return(0,vc.jsx)("div",{className:"widget d-flex align-items-center justify-content-between",children:o?(0,vc.jsx)(dp,{handleSaveClick:function(e){r({type:"SET_BUDGET",payload:e}),s(!1)},budget:n}):(0,vc.jsx)(fp,{handleEditClick:function(){s(!0)},budget:n})})},pp=(n.p,function(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=(n[0],n[1],(0,e.useState)("")),i=(0,mt.Z)(r,2),a=(i[0],i[1],(0,e.useState)("")),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(""),c=(0,mt.Z)(u,2),f=c[0],d=c[1];function h(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(n.startsWith("session="))return n.substring("session=".length,n.length)}return null}function p(){return v.apply(this,arguments)}function v(){return(v=so(ao().mark((function e(){var t,n,r,i,a,o,s;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/w/transactions/recent",{method:"GET",headers:{"x-session-key":h()}});case 3:return t=e.sent,e.next=6,t.json();case 6:for(n=e.sent,r=n.transactions.map((function(e){return e.amount.whole})),i=n.transactions.map((function(e){return e.amount.decimal})),a=[],o=0;o<r.length;o++)s=r[o]+"."+i[o],a.push(s);return e.abrupt("return",a);case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function m(){return g.apply(this,arguments)}function g(){return(g=so(ao().mark((function e(){var t,n,r;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/w/transactions/recent",{method:"GET",headers:{"x-session-key":h()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.transactions.map((function(e){return e.category})),e.abrupt("return",r);case 11:e.prev=11,e.t0=e.catch(0),console.error(e.t0);case 14:case"end":return e.stop()}}),e,null,[[0,11]])})))).apply(this,arguments)}function y(){return(y=so(ao().mark((function e(t,n){var r,i,a;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(r=document.getElementById("myTable"),i=0;i<t.length;i++)a="<tr>\n\t\t\t\t\t\t\t\t<td>".concat(t[i],"</td>\n\t\t\t\t\t\t\t\t<td>").concat(n[i],"</td>\n\t\t\t\t\t\t </tr>"),r.innerHTML+=a;case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){return(b=so(ao().mark((function e(){var t,n;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,m();case 2:return t=e.sent,e.next=5,p();case 5:n=e.sent,d(t),l(n);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return function(e,t){y.apply(this,arguments)}(f,s),(0,e.useEffect)((function(){!function(){b.apply(this,arguments)}()}),[]),(0,vc.jsxs)("div",{className:"widget",children:[(0,vc.jsx)("h4",{children:"Recent Transactions"}),(0,vc.jsx)("table",{children:(0,vc.jsx)("tbody",{id:"myTable"})})]})}),vp=function(t){(0,e.useContext)(up).dispatch;var n=(0,e.useState)(""),r=(0,mt.Z)(n,2),i=r[0],a=r[1],o=(0,e.useState)(""),s=(0,mt.Z)(o,2),l=s[0],u=s[1],c=(0,e.useState)([]),f=(0,mt.Z)(c,2),d=f[0],h=f[1],p=(0,e.useState)("expenses"),v=(0,mt.Z)(p,2),m=v[0],g=v[1];(0,e.useEffect)((function(){y()}),[m]);var y=function(){"expenses"==m?fetch("https://api.bb.gabefarrell.com/w/budget",{method:"GET",headers:{"x-session-key":ic()}}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error);else{var t=Object.keys(e.expenses_by_category).length>0?Object.keys(e.expenses_by_category):["Uncategorized"];h(t),u(t[0])}})):fetch("https://api.bb.gabefarrell.com/w/income",{method:"GET",headers:{"x-session-key":ic()}}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error);else{var t=Object.keys(e.income_by_category).length>0?Object.keys(e.income_by_category):["Uncategorized"];h(t),u(t[0])}}))},b=function(e){a(e.target.value)};return(0,vc.jsxs)("div",{className:"widget",children:[(0,vc.jsx)("h4",{children:"Add Transaction"}),(0,vc.jsxs)("div",{className:"row",children:[(0,vc.jsxs)("div",{className:"col-md col-lg-4",children:[(0,vc.jsx)("label",{htmlFor:"cost",children:"Cost"}),(0,vc.jsx)("input",{required:"required",type:"number",className:"form-control",id:"cost",min:"0.00",step:".01",value:i,onChange:function(e){return a(e.target.value)}})]}),(0,vc.jsxs)("div",{className:"col-md col-lg-4",children:[(0,vc.jsx)("label",{htmlFor:"category-select",children:"Category"}),(0,vc.jsx)("select",{className:"form-select",id:"category-select",value:l,onChange:function(e){return u(e.target.value)},children:d.map((function(e){return(0,vc.jsx)("option",{value:e,children:e},e)}))})]})]}),(0,vc.jsx)("div",{className:"row mt-2",children:(0,vc.jsxs)("div",{className:"col",children:[(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:1,onClick:b,children:"$1"}),(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:5,onClick:b,children:"$5"}),(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:10,onClick:b,children:"$10"}),(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:15,onClick:b,children:"$15"}),(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:20,onClick:b,children:"$20"}),(0,vc.jsx)("button",{className:"btn btn-outline-success m-right",value:50,onClick:b,children:"$50"})]})}),(0,vc.jsx)("div",{className:"row mt-2",children:(0,vc.jsxs)("div",{className:"col-sm",children:[(0,vc.jsx)("button",{className:"btn btn-dark m-right",onClick:function(){g("expenses"==m?"income":"expenses")},children:m.toUpperCase()}),(0,vc.jsxs)("button",{type:"submit",onClick:function(e){e.preventDefault();var t=new FormData,n=0,r=0;i.includes(".")?(n=parseInt(i.split(".")[0]),r=parseInt(i.split(".")[1])):n=parseInt(i),t.append("category",l),t.append("currency","USD"),t.append("whole",n),t.append("decimal",r),t.append("type",m);try{fetch("https://api.bb.gabefarrell.com/w/transactions?whole=".concat(n,"&decimal=").concat(r,"&currency=").concat("USD","&category=").concat(l,"&type=").concat(m),{method:"POST",body:t,headers:{"x-session-key":ic()}}).then((function(e){return e.json()})).then((function(e){200!=e.status&&console.log(e.error)}))}catch(o){console.error(o)}a("")},id:"add-transaction-button",className:"btn btn-primary m-right",children:["Add ",m.substring(0,1).toUpperCase()+m.substring(1)]}),(0,vc.jsx)("button",{className:"btn btn-primary",onClick:function(){var e=prompt("Enter the new category name:");if(e){if(-1==d.indexOf(e)){var t=[].concat((0,fl.Z)(d),[e]);h(t)}u(e)}},children:"Add New Category"})]})})]})};function mp(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(""),c=(0,mt.Z)(u,2);c[0],c[1];function f(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){var n=e[t].trim();if(n.startsWith("session="))return n.substring("session=".length,n.length)}return null}function d(){return h.apply(this,arguments)}function h(){return(h=so(ao().mark((function e(){var t,n,r,i,a;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/w/budget",{method:"GET",headers:{"x-session-key":f()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.budget.whole,i=n.budget.decimal,a=r+"."+i,console.log(a),e.abrupt("return",a);case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function p(){return v.apply(this,arguments)}function v(){return(v=so(ao().mark((function e(){var t,n,r,i,a;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://api.bb.gabefarrell.com/w/expenses/month",{method:"GET",headers:{"x-session-key":f()}});case 3:return t=e.sent,e.next=6,t.json();case 6:return n=e.sent,r=n.whole,i=n.decimal,a=r+"."+i,console.log(a+"<- Total Expenses"),e.abrupt("return",a);case 14:e.prev=14,e.t0=e.catch(0),console.error(e.t0);case 17:case"end":return e.stop()}}),e,null,[[0,14]])})))).apply(this,arguments)}function m(){return g.apply(this,arguments)}function g(){return(g=so(ao().mark((function e(){var t,n,r;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d();case 2:return t=e.sent,e.next=5,p();case 5:n=e.sent,r=(t-n).toFixed(2),i(r);case 8:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,e.useEffect)((function(){m()}),[]),(0,vc.jsxs)(vc.Fragment,{children:[(0,vc.jsx)("h1",{children:r}),(0,vc.jsxs)("form",{id:"form",onSubmit:function(e){e.preventDefault();var t=s.split(".");(t.length<2||t[1].length<1)&&t.push(0);var n={whole:t[0],decimal:t[1]},r=[];for(var i in n){var a=encodeURIComponent(i),o=encodeURIComponent(n[i]);r.push(a+"="+o)}r=r.join("&"),fetch("https://api.bb.gabefarrell.com/w/budget",{method:"POST",body:r,headers:{"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8","x-session-key":f()}}).then((function(e){return e.json()})).then((function(e){console.log(e),200==e.status&&m()}))},children:[(0,vc.jsx)("input",{type:"text",className:"form-control",placeholder:"Enter Budget",value:s,onChange:function(e){return l(e.target.value)},required:!0}),(0,vc.jsx)("button",{type:"submit",children:"Submit"})]})]})}function gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},gp(e)}function yp(){return yp="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=gp(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},yp.apply(this,arguments)}function bp(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vo(e,t)}function xp(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(cw){return!1}}();return function(){var n,r=gp(e);if(t){var i=gp(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===(0,Le.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return go(e)}(this,n)}}function kp(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wp(e){return e+.5|0}var Sp=function(e,t,n){return Math.max(Math.min(e,n),t)};function _p(e){return Sp(wp(2.55*e),0,255)}function Cp(e){return Sp(wp(255*e),0,255)}function Ep(e){return Sp(wp(e/2.55)/100,0,1)}function Op(e){return Sp(wp(100*e),0,100)}var Pp={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Mp=(0,fl.Z)("0123456789ABCDEF"),Tp=function(e){return Mp[15&e]},jp=function(e){return Mp[(240&e)>>4]+Mp[15&e]},Rp=function(e){return(240&e)>>4===(15&e)};function Ap(e){var t=function(e){return Rp(e.r)&&Rp(e.g)&&Rp(e.b)&&Rp(e.a)}(e)?Tp:jp;return e?"#"+t(e.r)+t(e.g)+t(e.b)+function(e,t){return e<255?t(e):""}(e.a,t):void 0}var Np=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Dp(e,t,n){var r=t*Math.min(n,1-n),i=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+e/30)%12;return n-r*Math.max(Math.min(i-3,9-i,1),-1)};return[i(0),i(8),i(4)]}function Lp(e,t,n){var r=function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(r+e/60)%6;return n-n*t*Math.max(Math.min(i,4-i,1),0)};return[r(5),r(3),r(1)]}function Ip(e,t,n){var r,i=Dp(e,1,.5);for(t+n>1&&(t*=r=1/(t+n),n*=r),r=0;r<3;r++)i[r]*=1-t-n,i[r]+=t;return i}function zp(e){var t,n,r,i=e.r/255,a=e.g/255,o=e.b/255,s=Math.max(i,a,o),l=Math.min(i,a,o),u=(s+l)/2;return s!==l&&(r=s-l,n=u>.5?r/(2-s-l):r/(s+l),t=function(e,t,n,r,i){return e===i?(t-n)/r+(t<n?6:0):t===i?(n-e)/r+2:(e-t)/r+4}(i,a,o,r,s),t=60*t+.5),[0|t,n||0,u]}function Fp(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(Cp)}function Bp(e,t,n){return Fp(Dp,e,t,n)}function Wp(e){return(e%360+360)%360}function Vp(e){var t,n=Np.exec(e),r=255;if(n){n[5]!==t&&(r=n[6]?_p(+n[5]):Cp(+n[5]));var i=Wp(+n[2]),a=+n[3]/100,o=+n[4]/100;return t="hwb"===n[1]?function(e,t,n){return Fp(Ip,e,t,n)}(i,a,o):"hsv"===n[1]?function(e,t,n){return Fp(Lp,e,t,n)}(i,a,o):Bp(i,a,o),{r:t[0],g:t[1],b:t[2],a:r}}}var Zp,Hp={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},$p={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Up(e){Zp||(Zp=function(){var e,t,n,r,i,a={},o=Object.keys($p),s=Object.keys(Hp);for(e=0;e<o.length;e++){for(r=i=o[e],t=0;t<s.length;t++)n=s[t],i=i.replace(n,Hp[n]);n=parseInt($p[r],16),a[i]=[n>>16&255,n>>8&255,255&n]}return a}(),Zp.transparent=[0,0,0,0]);var t=Zp[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}var Kp=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;var qp=function(e){return e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055},Yp=function(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)};function Gp(e,t,n){if(e){var r=zp(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,0===t?360:1)),r=Bp(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Xp(e,t){return e?Object.assign(t||{},e):e}function Qp(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Cp(e[3]))):(t=Xp(e,{r:0,g:0,b:0,a:1})).a=Cp(t.a),t}function Jp(e){return"r"===e.charAt(0)?function(e){var t,n,r,i=Kp.exec(e),a=255;if(i){if(i[7]!==t){var o=+i[7];a=i[8]?_p(o):Sp(255*o,0,255)}return t=+i[1],n=+i[3],r=+i[5],{r:t=255&(i[2]?_p(t):Sp(t,0,255)),g:n=255&(i[4]?_p(n):Sp(n,0,255)),b:r=255&(i[6]?_p(r):Sp(r,0,255)),a:a}}}(e):Vp(e)}var ev=function(){function e(t){if(kp(this,e),t instanceof e)return t;var n,r=typeof t;"object"===r?n=Qp(t):"string"===r&&(n=function(e){var t,n=e.length;return"#"===e[0]&&(4===n||5===n?t={r:255&17*Pp[e[1]],g:255&17*Pp[e[2]],b:255&17*Pp[e[3]],a:5===n?17*Pp[e[4]]:255}:7!==n&&9!==n||(t={r:Pp[e[1]]<<4|Pp[e[2]],g:Pp[e[3]]<<4|Pp[e[4]],b:Pp[e[5]]<<4|Pp[e[6]],a:9===n?Pp[e[7]]<<4|Pp[e[8]]:255})),t}(t)||Up(t)||Jp(t)),this._rgb=n,this._valid=!!n}return po(e,[{key:"valid",get:function(){return this._valid}},{key:"rgb",get:function(){var e=Xp(this._rgb);return e&&(e.a=Ep(e.a)),e},set:function(e){this._rgb=Qp(e)}},{key:"rgbString",value:function(){return this._valid?function(e){return e&&(e.a<255?"rgba(".concat(e.r,", ").concat(e.g,", ").concat(e.b,", ").concat(Ep(e.a),")"):"rgb(".concat(e.r,", ").concat(e.g,", ").concat(e.b,")"))}(this._rgb):void 0}},{key:"hexString",value:function(){return this._valid?Ap(this._rgb):void 0}},{key:"hslString",value:function(){return this._valid?function(e){if(e){var t=zp(e),n=t[0],r=Op(t[1]),i=Op(t[2]);return e.a<255?"hsla(".concat(n,", ").concat(r,"%, ").concat(i,"%, ").concat(Ep(e.a),")"):"hsl(".concat(n,", ").concat(r,"%, ").concat(i,"%)")}}(this._rgb):void 0}},{key:"mix",value:function(e,t){if(e){var n,r=this.rgb,i=e.rgb,a=t===n?.5:t,o=2*a-1,s=r.a-i.a,l=((o*s===-1?o:(o+s)/(1+o*s))+1)/2;n=1-l,r.r=255&l*r.r+n*i.r+.5,r.g=255&l*r.g+n*i.g+.5,r.b=255&l*r.b+n*i.b+.5,r.a=a*r.a+(1-a)*i.a,this.rgb=r}return this}},{key:"interpolate",value:function(e,t){return e&&(this._rgb=function(e,t,n){var r=Yp(Ep(e.r)),i=Yp(Ep(e.g)),a=Yp(Ep(e.b));return{r:Cp(qp(r+n*(Yp(Ep(t.r))-r))),g:Cp(qp(i+n*(Yp(Ep(t.g))-i))),b:Cp(qp(a+n*(Yp(Ep(t.b))-a))),a:e.a+n*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}},{key:"clone",value:function(){return new e(this.rgb)}},{key:"alpha",value:function(e){return this._rgb.a=Cp(e),this}},{key:"clearer",value:function(e){return this._rgb.a*=1-e,this}},{key:"greyscale",value:function(){var e=this._rgb,t=wp(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}},{key:"opaquer",value:function(e){return this._rgb.a*=1+e,this}},{key:"negate",value:function(){var e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}},{key:"lighten",value:function(e){return Gp(this._rgb,2,e),this}},{key:"darken",value:function(e){return Gp(this._rgb,2,-e),this}},{key:"saturate",value:function(e){return Gp(this._rgb,1,e),this}},{key:"desaturate",value:function(e){return Gp(this._rgb,1,-e),this}},{key:"rotate",value:function(e){return function(e,t){var n=zp(e);n[0]=Wp(n[0]+t),n=Bp(n),e.r=n[0],e.g=n[1],e.b=n[2]}(this._rgb,e),this}}]),e}();function tv(){}var nv=function(){var e=0;return function(){return e++}}();function rv(e){return null===e||"undefined"===typeof e}function iv(e){if(Array.isArray&&Array.isArray(e))return!0;var t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function av(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}function ov(e){return("number"===typeof e||e instanceof Number)&&isFinite(+e)}function sv(e,t){return ov(e)?e:t}function lv(e,t){return"undefined"===typeof e?t:e}var uv=function(e,t){return"string"===typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e};function cv(e,t,n){if(e&&"function"===typeof e.call)return e.apply(n,t)}function fv(e,t,n,r){var i,a,o;if(iv(e))if(a=e.length,r)for(i=a-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<a;i++)t.call(n,e[i],i);else if(av(e))for(a=(o=Object.keys(e)).length,i=0;i<a;i++)t.call(n,e[o[i]],o[i])}function dv(e,t){var n,r,i,a;if(!e||!t||e.length!==t.length)return!1;for(n=0,r=e.length;n<r;++n)if(i=e[n],a=t[n],i.datasetIndex!==a.datasetIndex||i.index!==a.index)return!1;return!0}function hv(e){if(iv(e))return e.map(hv);if(av(e)){for(var t=Object.create(null),n=Object.keys(e),r=n.length,i=0;i<r;++i)t[n[i]]=hv(e[n[i]]);return t}return e}function pv(e){return-1===["__proto__","prototype","constructor"].indexOf(e)}function vv(e,t,n,r){if(pv(e)){var i=t[e],a=n[e];av(i)&&av(a)?mv(i,a,r):t[e]=hv(a)}}function mv(e,t,n){var r=iv(t)?t:[t],i=r.length;if(!av(e))return e;for(var a,o=(n=n||{}).merger||vv,s=0;s<i;++s)if(av(a=r[s]))for(var l=Object.keys(a),u=0,c=l.length;u<c;++u)o(l[u],e,a,n);return e}function gv(e,t){return mv(e,t,{merger:yv})}function yv(e,t,n){if(pv(e)){var r=t[e],i=n[e];av(r)&&av(i)?gv(r,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=hv(i))}}var bv={"":function(e){return e},x:function(e){return e.x},y:function(e){return e.y}};function xv(e){var t=function(e){var t,n=[],r="",i=zc(e.split("."));try{for(i.s();!(t=i.n()).done;)(r+=t.value).endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="")}catch(a){i.e(a)}finally{i.f()}return n}(e);return function(e){var n,r=zc(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(""===i)break;e=e&&e[i]}}catch(a){r.e(a)}finally{r.f()}return e}}function kv(e,t){return(bv[t]||(bv[t]=xv(t)))(e)}function wv(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Sv=function(e){return"undefined"!==typeof e},_v=function(e){return"function"===typeof e},Cv=function(e,t){if(e.size!==t.size)return!1;var n,r=zc(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(!t.has(i))return!1}}catch(a){r.e(a)}finally{r.f()}return!0};var Ev=Math.PI,Ov=2*Ev,Pv=Ov+Ev,Mv=Number.POSITIVE_INFINITY,Tv=Ev/180,jv=Ev/2,Rv=Ev/4,Av=2*Ev/3,Nv=Math.log10,Dv=Math.sign;function Lv(e,t,n){return Math.abs(e-t)<n}function Iv(e){var t=Math.round(e);e=Lv(e,t,e/1e3)?t:e;var n=Math.pow(10,Math.floor(Nv(e))),r=e/n;return(r<=1?1:r<=2?2:r<=5?5:10)*n}function zv(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Fv(e,t,n){var r,i,a;for(r=0,i=e.length;r<i;r++)a=e[r][n],isNaN(a)||(t.min=Math.min(t.min,a),t.max=Math.max(t.max,a))}function Bv(e){return e*(Ev/180)}function Wv(e){return e*(180/Ev)}function Vv(e){if(ov(e)){for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n++;return n}}function Zv(e,t){var n=t.x-e.x,r=t.y-e.y,i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n);return a<-.5*Ev&&(a+=Ov),{angle:a,distance:i}}function Hv(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function $v(e,t){return(e-t+Pv)%Ov-Ev}function Uv(e){return(e%Ov+Ov)%Ov}function Kv(e,t,n,r){var i=Uv(e),a=Uv(t),o=Uv(n),s=Uv(a-i),l=Uv(o-i),u=Uv(i-a),c=Uv(i-o);return i===a||i===o||r&&a===o||s>l&&u<c}function qv(e,t,n){return Math.max(t,Math.min(n,e))}function Yv(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return e>=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function Gv(e,t,n){n=n||function(n){return e[n]<t};for(var r,i=e.length-1,a=0;i-a>1;)n(r=a+i>>1)?a=r:i=r;return{lo:a,hi:i}}var Xv=function(e,t,n,r){return Gv(e,n,r?function(r){var i=e[r][t];return i<n||i===n&&e[r+1][t]===n}:function(r){return e[r][t]<n})},Qv=function(e,t,n){return Gv(e,n,(function(r){return e[r][t]>=n}))};var Jv=["push","pop","shift","splice","unshift"];function em(e,t){var n=e._chartjs;if(n){var r=n.listeners,i=r.indexOf(t);-1!==i&&r.splice(i,1),r.length>0||(Jv.forEach((function(t){delete e[t]})),delete e._chartjs)}}function tm(e){var t,n,r=new Set;for(t=0,n=e.length;t<n;++t)r.add(e[t]);return r.size===n?e:Array.from(r)}var nm="undefined"===typeof window?function(e){return e()}:window.requestAnimationFrame;function rm(e,t){var n=[],r=!1;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];n=a,r||(r=!0,nm.call(window,(function(){r=!1,e.apply(t,n)})))}}var im=function(e){return"start"===e?"left":"end"===e?"right":"center"},am=function(e,t,n){return"start"===e?t:"end"===e?n:(t+n)/2};function om(e,t,n){var r=t.length,i=0,a=r;if(e._sorted){var o=e.iScale,s=e._parsed,l=o.axis,u=o.getUserBounds(),c=u.min,f=u.max,d=u.minDefined,h=u.maxDefined;d&&(i=qv(Math.min(Xv(s,o.axis,c).lo,n?r:Xv(t,l,o.getPixelForValue(c)).lo),0,r-1)),a=h?qv(Math.max(Xv(s,o.axis,f,!0).hi+1,n?0:Xv(t,l,o.getPixelForValue(f),!0).hi+1),i,r)-i:r-i}return{start:i,count:a}}function sm(e){var t=e.xScale,n=e.yScale,r=e._scaleRanges,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;var a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}var lm=function(e){return 0===e||1===e},um=function(e,t,n){return-Math.pow(2,10*(e-=1))*Math.sin((e-t)*Ov/n)},cm=function(e,t,n){return Math.pow(2,-10*e)*Math.sin((e-t)*Ov/n)+1},fm={linear:function(e){return e},easeInQuad:function(e){return e*e},easeOutQuad:function(e){return-e*(e-2)},easeInOutQuad:function(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)},easeInCubic:function(e){return e*e*e},easeOutCubic:function(e){return(e-=1)*e*e+1},easeInOutCubic:function(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},easeInQuart:function(e){return e*e*e*e},easeOutQuart:function(e){return-((e-=1)*e*e*e-1)},easeInOutQuart:function(e){return(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},easeInQuint:function(e){return e*e*e*e*e},easeOutQuint:function(e){return(e-=1)*e*e*e*e+1},easeInOutQuint:function(e){return(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},easeInSine:function(e){return 1-Math.cos(e*jv)},easeOutSine:function(e){return Math.sin(e*jv)},easeInOutSine:function(e){return-.5*(Math.cos(Ev*e)-1)},easeInExpo:function(e){return 0===e?0:Math.pow(2,10*(e-1))},easeOutExpo:function(e){return 1===e?1:1-Math.pow(2,-10*e)},easeInOutExpo:function(e){return lm(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1)))},easeInCirc:function(e){return e>=1?e:-(Math.sqrt(1-e*e)-1)},easeOutCirc:function(e){return Math.sqrt(1-(e-=1)*e)},easeInOutCirc:function(e){return(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},easeInElastic:function(e){return lm(e)?e:um(e,.075,.3)},easeOutElastic:function(e){return lm(e)?e:cm(e,.075,.3)},easeInOutElastic:function(e){var t=.1125;return lm(e)?e:e<.5?.5*um(2*e,t,.45):.5+.5*cm(2*e-1,t,.45)},easeInBack:function(e){var t=1.70158;return e*e*((t+1)*e-t)},easeOutBack:function(e){var t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack:function(e){var t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:function(e){return 1-fm.easeOutBounce(1-e)},easeOutBounce:function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},easeInOutBounce:function(e){return e<.5?.5*fm.easeInBounce(2*e):.5*fm.easeOutBounce(2*e-1)+.5}};function dm(e){if(e&&"object"===typeof e){var t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function hm(e){return dm(e)?e:new ev(e)}function pm(e){return dm(e)?e:new ev(e).saturate(.5).darken(.1).hexString()}var vm=["x","y","borderWidth","radius","tension"],mm=["color","borderColor","backgroundColor"];var gm=new Map;function ym(e,t,n){return function(e,t){t=t||{};var n=e+JSON.stringify(t),r=gm.get(n);return r||(r=new Intl.NumberFormat(e,t),gm.set(n,r)),r}(t,n).format(e)}var bm={values:function(e){return iv(e)?e:""+e},numeric:function(e,t,n){if(0===e)return"0";var r,i=this.chart.options.locale,a=e;if(n.length>1){var o=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(o<1e-4||o>1e15)&&(r="scientific"),a=function(e,t){var n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e));return n}(e,n)}var s=Nv(Math.abs(a)),l=Math.max(Math.min(-1*Math.floor(s),20),0),u={notation:r,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(u,this.options.ticks.format),ym(e,i,u)},logarithmic:function(e,t,n){if(0===e)return"0";var r=n[t].significand||e/Math.pow(10,Math.floor(Nv(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?bm.numeric.call(this,e,t,n):""}};var xm={formatters:bm};var km=Object.create(null),wm=Object.create(null);function Sm(e,t){if(!t)return e;for(var n=t.split("."),r=0,i=n.length;r<i;++r){var a=n[r];e=e[a]||(e[a]=Object.create(null))}return e}function _m(e,t,n){return"string"===typeof t?mv(Sm(e,t),n):mv(Sm(e,""),t)}var Cm=function(){function e(t,n){kp(this,e),this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=function(e){return e.chart.platform.getDevicePixelRatio()},this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=function(e,t){return pm(t.backgroundColor)},this.hoverBorderColor=function(e,t){return pm(t.borderColor)},this.hoverColor=function(e,t){return pm(t.color)},this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(n)}return po(e,[{key:"set",value:function(e,t){return _m(this,e,t)}},{key:"get",value:function(e){return Sm(this,e)}},{key:"describe",value:function(e,t){return _m(wm,e,t)}},{key:"override",value:function(e,t){return _m(km,e,t)}},{key:"route",value:function(e,t,n,r){var i,a=Sm(this,e),o=Sm(this,n),s="_"+t;Object.defineProperties(a,(i={},(0,Be.Z)(i,s,{value:a[t],writable:!0}),(0,Be.Z)(i,t,{enumerable:!0,get:function(){var e=this[s],t=o[r];return av(e)?Object.assign({},t,e):lv(e,t)},set:function(e){this[s]=e}}),i))}},{key:"apply",value:function(e){var t=this;e.forEach((function(e){return e(t)}))}}]),e}(),Em=new Cm({_scriptable:function(e){return!e.startsWith("on")},_indexable:function(e){return"events"!==e},hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:function(e){return"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}}),e.set("animations",{colors:{type:"color",properties:mm},numbers:{type:"number",properties:vm}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:function(e){return 0|e}}}}})},function(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:function(e,t){return t.lineWidth},tickColor:function(e,t){return t.color},offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:xm.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:function(e){return!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e},_indexable:function(e){return"borderDash"!==e&&"tickBorderDash"!==e&&"dash"!==e}}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:function(e){return"backdropPadding"!==e&&"callback"!==e},_indexable:function(e){return"backdropPadding"!==e}})}]);function Om(e,t,n,r,i){var a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function Pm(e,t,n,r){var i=(r=r||{}).data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;var o,s,l,u,c,f=0,d=n.length;for(o=0;o<d;o++)if(void 0!==(u=n[o])&&null!==u&&!0!==iv(u))f=Om(e,i,a,f,u);else if(iv(u))for(s=0,l=u.length;s<l;s++)void 0===(c=u[s])||null===c||iv(c)||(f=Om(e,i,a,f,c));e.restore();var h=a.length/2;if(h>n.length){for(o=0;o<h;o++)delete i[a[o]];a.splice(0,h)}return f}function Mm(e,t,n){var r=e.currentDevicePixelRatio,i=0!==n?Math.max(n/2,.5):0;return Math.round((t-i)*r)/r+i}function Tm(e,t){(t=t||e.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore()}function jm(e,t,n,r){Rm(e,t,n,r,null)}function Rm(e,t,n,r,i){var a,o,s,l,u,c,f,d,h=t.pointStyle,p=t.rotation,v=t.radius,m=(p||0)*Tv;if(h&&"object"===typeof h&&("[object HTMLImageElement]"===(a=h.toString())||"[object HTMLCanvasElement]"===a))return e.save(),e.translate(n,r),e.rotate(m),e.drawImage(h,-h.width/2,-h.height/2,h.width,h.height),void e.restore();if(!(isNaN(v)||v<=0)){switch(e.beginPath(),h){default:i?e.ellipse(n,r,i/2,v,0,0,Ov):e.arc(n,r,v,0,Ov),e.closePath();break;case"triangle":c=i?i/2:v,e.moveTo(n+Math.sin(m)*c,r-Math.cos(m)*v),m+=Av,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*v),m+=Av,e.lineTo(n+Math.sin(m)*c,r-Math.cos(m)*v),e.closePath();break;case"rectRounded":l=v-(u=.516*v),o=Math.cos(m+Rv)*l,f=Math.cos(m+Rv)*(i?i/2-u:l),s=Math.sin(m+Rv)*l,d=Math.sin(m+Rv)*(i?i/2-u:l),e.arc(n-f,r-s,u,m-Ev,m-jv),e.arc(n+d,r-o,u,m-jv,m),e.arc(n+f,r+s,u,m,m+jv),e.arc(n-d,r+o,u,m+jv,m+Ev),e.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*v,c=i?i/2:l,e.rect(n-c,r-l,2*c,2*l);break}m+=Rv;case"rectRot":f=Math.cos(m)*(i?i/2:v),o=Math.cos(m)*v,s=Math.sin(m)*v,d=Math.sin(m)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+d,r-o),e.lineTo(n+f,r+s),e.lineTo(n-d,r+o),e.closePath();break;case"crossRot":m+=Rv;case"cross":f=Math.cos(m)*(i?i/2:v),o=Math.cos(m)*v,s=Math.sin(m)*v,d=Math.sin(m)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-o),e.lineTo(n-d,r+o);break;case"star":f=Math.cos(m)*(i?i/2:v),o=Math.cos(m)*v,s=Math.sin(m)*v,d=Math.sin(m)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-o),e.lineTo(n-d,r+o),m+=Rv,f=Math.cos(m)*(i?i/2:v),o=Math.cos(m)*v,s=Math.sin(m)*v,d=Math.sin(m)*(i?i/2:v),e.moveTo(n-f,r-s),e.lineTo(n+f,r+s),e.moveTo(n+d,r-o),e.lineTo(n-d,r+o);break;case"line":o=i?i/2:Math.cos(m)*v,s=Math.sin(m)*v,e.moveTo(n-o,r-s),e.lineTo(n+o,r+s);break;case"dash":e.moveTo(n,r),e.lineTo(n+Math.cos(m)*(i?i/2:v),r+Math.sin(m)*v);break;case!1:e.closePath()}e.fill(),t.borderWidth>0&&e.stroke()}}function Am(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function Nm(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Dm(e){e.restore()}function Lm(e,t,n,r,i){if(!t)return e.lineTo(n.x,n.y);if("middle"===i){var a=(t.x+n.x)/2;e.lineTo(a,t.y),e.lineTo(a,n.y)}else"after"===i!==!!r?e.lineTo(t.x,n.y):e.lineTo(n.x,t.y);e.lineTo(n.x,n.y)}function Im(e,t,n,r){if(!t)return e.lineTo(n.x,n.y);e.bezierCurveTo(r?t.cp1x:t.cp2x,r?t.cp1y:t.cp2y,r?n.cp2x:n.cp1x,r?n.cp2y:n.cp1y,n.x,n.y)}function zm(e,t,n,r,i){var a,o,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=iv(t)?t:[t],u=s.strokeWidth>0&&""!==s.strokeColor;for(e.save(),e.font=i.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);rv(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,s),a=0;a<l.length;++a)o=l[a],s.backdrop&&Bm(e,s.backdrop),u&&(s.strokeColor&&(e.strokeStyle=s.strokeColor),rv(s.strokeWidth)||(e.lineWidth=s.strokeWidth),e.strokeText(o,n,r,s.maxWidth)),e.fillText(o,n,r,s.maxWidth),Fm(e,n,r,o,s),r+=i.lineHeight;e.restore()}function Fm(e,t,n,r,i){if(i.strikethrough||i.underline){var a=e.measureText(r),o=t-a.actualBoundingBoxLeft,s=t+a.actualBoundingBoxRight,l=n-a.actualBoundingBoxAscent,u=n+a.actualBoundingBoxDescent,c=i.strikethrough?(l+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(o,c),e.lineTo(s,c),e.stroke()}}function Bm(e,t){var n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Wm(e,t){var n=t.x,r=t.y,i=t.w,a=t.h,o=t.radius;e.arc(n+o.topLeft,r+o.topLeft,o.topLeft,-jv,Ev,!0),e.lineTo(n,r+a-o.bottomLeft),e.arc(n+o.bottomLeft,r+a-o.bottomLeft,o.bottomLeft,Ev,jv,!0),e.lineTo(n+i-o.bottomRight,r+a),e.arc(n+i-o.bottomRight,r+a-o.bottomRight,o.bottomRight,jv,0,!0),e.lineTo(n+i,r+o.topRight),e.arc(n+i-o.topRight,r+o.topRight,o.topRight,0,-jv,!0),e.lineTo(n+o.topLeft,r)}var Vm=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Zm=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Hm(e,t){var n=(""+e).match(Vm);if(!n||"normal"===n[1])return 1.2*t;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100}return t*e}var $m=function(e){return+e||0};function Um(e,t){var n,r={},i=av(t),a=i?Object.keys(t):t,o=av(e)?i?function(n){return lv(e[n],e[t[n]])}:function(t){return e[t]}:function(){return e},s=zc(a);try{for(s.s();!(n=s.n()).done;){var l=n.value;r[l]=$m(o(l))}}catch(u){s.e(u)}finally{s.f()}return r}function Km(e){return Um(e,{top:"y",right:"x",bottom:"y",left:"x"})}function qm(e){return Um(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Ym(e){var t=Km(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Gm(e,t){e=e||{},t=t||Em.font;var n=lv(e.size,t.size);"string"===typeof n&&(n=parseInt(n,10));var r=lv(e.style,t.style);r&&!(""+r).match(Zm)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);var i={family:lv(e.family,t.family),lineHeight:Hm(lv(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:lv(e.weight,t.weight),string:""};return i.string=function(e){return!e||rv(e.size)||rv(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(i),i}function Xm(e,t,n,r){var i,a,o,s=!0;for(i=0,a=e.length;i<a;++i)if(void 0!==(o=e[i])&&(void 0!==t&&"function"===typeof o&&(o=o(t),s=!1),void 0!==n&&iv(o)&&(o=o[n%o.length],s=!1),void 0!==o))return r&&!s&&(r.cacheable=!1),o}function Qm(e,t){return Object.assign(Object.create(e),t)}function Jm(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[""],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,i=arguments.length>3?arguments[3]:void 0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){return e[0]};Sv(i)||(i=cg("_fallback",e));var o=(t={},(0,Be.Z)(t,Symbol.toStringTag,"Object"),(0,Be.Z)(t,"_cacheable",!0),(0,Be.Z)(t,"_scopes",e),(0,Be.Z)(t,"_rootScopes",r),(0,Be.Z)(t,"_fallback",i),(0,Be.Z)(t,"_getTarget",a),(0,Be.Z)(t,"override",(function(t){return Jm([t].concat((0,fl.Z)(e)),n,r,i)})),t);return new Proxy(o,{deleteProperty:function(t,n){return delete t[n],delete t._keys,delete e[0][n],!0},get:function(t,r){return ig(t,r,(function(){return function(e,t,n,r){var i,a,o=zc(t);try{for(o.s();!(a=o.n()).done;){var s=a.value;if(i=cg(ng(s,e),n),Sv(i))return rg(e,i)?lg(n,r,e,i):i}}catch(l){o.e(l)}finally{o.f()}}(r,n,e,t)}))},getOwnPropertyDescriptor:function(e,t){return Reflect.getOwnPropertyDescriptor(e._scopes[0],t)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e[0])},has:function(e,t){return fg(e).includes(t)},ownKeys:function(e){return fg(e)},set:function(e,t,n){var r=e._storage||(e._storage=a());return e[t]=r[t]=n,delete e._keys,!0}})}function eg(e,t,n,r){var i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:tg(e,r),setContext:function(t){return eg(e,t,n,r)},override:function(i){return eg(e.override(i),t,n,r)}};return new Proxy(i,{deleteProperty:function(t,n){return delete t[n],delete e[n],!0},get:function(e,t,n){return ig(e,t,(function(){return function(e,t,n){var r=e._proxy,i=e._context,a=e._subProxy,o=e._descriptors,s=r[t];_v(s)&&o.isScriptable(t)&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._stack;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(a,o||r),s.delete(e),rg(e,t)&&(t=lg(i._scopes,i,e,t));return t}(t,s,e,n));iv(s)&&s.length&&(s=function(e,t,n,r){var i=n._proxy,a=n._context,o=n._subProxy,s=n._descriptors;if(Sv(a.index)&&r(e))t=t[a.index%t.length];else if(av(t[0])){var l=t,u=i._scopes.filter((function(e){return e!==l}));t=[];var c,f=zc(l);try{for(f.s();!(c=f.n()).done;){var d=lg(u,i,e,c.value);t.push(eg(d,a,o&&o[e],s))}}catch(h){f.e(h)}finally{f.f()}}return t}(t,s,e,o.isIndexable));rg(t,s)&&(s=eg(s,i,a&&a[t],o));return s}(e,t,n)}))},getOwnPropertyDescriptor:function(t,n){return t._descriptors.allKeys?Reflect.has(e,n)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,n)},getPrototypeOf:function(){return Reflect.getPrototypeOf(e)},has:function(t,n){return Reflect.has(e,n)},ownKeys:function(){return Reflect.ownKeys(e)},set:function(t,n,r){return e[n]=r,delete t[n],!0}})}function tg(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{scriptable:!0,indexable:!0},n=e._scriptable,r=void 0===n?t.scriptable:n,i=e._indexable,a=void 0===i?t.indexable:i,o=e._allKeys;return{allKeys:void 0===o?t.allKeys:o,scriptable:r,indexable:a,isScriptable:_v(r)?r:function(){return r},isIndexable:_v(a)?a:function(){return a}}}var ng=function(e,t){return e?e+wv(t):t},rg=function(e,t){return av(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object)};function ig(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];var r=n();return e[t]=r,r}function ag(e,t,n){return _v(e)?e(t,n):e}var og=function(e,t){return!0===e?t:"string"===typeof e?kv(t,e):void 0};function sg(e,t,n,r,i){var a,o=zc(t);try{for(o.s();!(a=o.n()).done;){var s=a.value,l=og(n,s);if(l){e.add(l);var u=ag(l._fallback,n,i);if(Sv(u)&&u!==n&&u!==r)return u}else if(!1===l&&Sv(r)&&n!==r)return null}}catch(c){o.e(c)}finally{o.f()}return!1}function lg(e,t,n,r){var i=t._rootScopes,a=ag(t._fallback,n,r),o=[].concat((0,fl.Z)(e),(0,fl.Z)(i)),s=new Set;s.add(r);var l=ug(s,o,n,a||n,r);return null!==l&&((!Sv(a)||a===n||null!==(l=ug(s,o,a,l,r)))&&Jm(Array.from(s),[""],i,a,(function(){return function(e,t,n){var r=e._getTarget();t in r||(r[t]={});var i=r[t];if(iv(i)&&av(n))return n;return i||{}}(t,n,r)})))}function ug(e,t,n,r,i){for(;n;)n=sg(e,t,n,r,i);return n}function cg(e,t){var n,r=zc(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i){var a=i[e];if(Sv(a))return a}}}catch(o){r.e(o)}finally{r.f()}}function fg(e){var t=e._keys;return t||(t=e._keys=function(e){var t,n=new Set,r=zc(e);try{for(r.s();!(t=r.n()).done;){var i,a=t.value,o=zc(Object.keys(a).filter((function(e){return!e.startsWith("_")})));try{for(o.s();!(i=o.n()).done;){var s=i.value;n.add(s)}}catch(l){o.e(l)}finally{o.f()}}}catch(l){r.e(l)}finally{r.f()}return Array.from(n)}(e._scopes)),t}function dg(e,t,n,r){var i,a,o,s,l=e.iScale,u=this._parsing.key,c=void 0===u?"r":u,f=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],f[i]={r:l.parse(kv(s,c),o)};return f}var hg=Number.EPSILON||1e-14,pg=function(e,t){return t<e.length&&!e[t].skip&&e[t]},vg=function(e){return"x"===e?"y":"x"};function mg(e,t,n,r){var i=e.skip?t:e,a=t,o=n.skip?t:n,s=Hv(a,i),l=Hv(o,a),u=s/(s+l),c=l/(s+l),f=r*(u=isNaN(u)?0:u),d=r*(c=isNaN(c)?0:c);return{previous:{x:a.x-f*(o.x-i.x),y:a.y-f*(o.y-i.y)},next:{x:a.x+d*(o.x-i.x),y:a.y+d*(o.y-i.y)}}}function gg(e){var t,n,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",a=vg(i),o=e.length,s=Array(o).fill(0),l=Array(o),u=pg(e,0);for(t=0;t<o;++t)if(n=r,r=u,u=pg(e,t+1),r){if(u){var c=u[i]-r[i];s[t]=0!==c?(u[a]-r[a])/c:0}l[t]=n?u?Dv(s[t-1])!==Dv(s[t])?0:(s[t-1]+s[t])/2:s[t-1]:s[t]}!function(e,t,n){for(var r,i,a,o,s,l=e.length,u=pg(e,0),c=0;c<l-1;++c)s=u,u=pg(e,c+1),s&&u&&(Lv(t[c],0,hg)?n[c]=n[c+1]=0:(r=n[c]/t[c],i=n[c+1]/t[c],(o=Math.pow(r,2)+Math.pow(i,2))<=9||(a=3/Math.sqrt(o),n[c]=r*a*t[c],n[c+1]=i*a*t[c])))}(e,s,l),function(e,t){for(var n,r,i,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"x",o=vg(a),s=e.length,l=pg(e,0),u=0;u<s;++u)if(r=i,i=l,l=pg(e,u+1),i){var c=i[a],f=i[o];r&&(n=(c-r[a])/3,i["cp1".concat(a)]=c-n,i["cp1".concat(o)]=f-n*t[u]),l&&(n=(l[a]-c)/3,i["cp2".concat(a)]=c+n,i["cp2".concat(o)]=f+n*t[u])}}(e,l,i)}function yg(e,t,n){return Math.max(Math.min(e,n),t)}function bg(e,t,n,r,i){var a,o,s,l;if(t.spanGaps&&(e=e.filter((function(e){return!e.skip}))),"monotone"===t.cubicInterpolationMode)gg(e,i);else{var u=r?e[e.length-1]:e[0];for(a=0,o=e.length;a<o;++a)l=mg(u,s=e[a],e[Math.min(a+1,o-(r?0:1))%o],t.tension),s.cp1x=l.previous.x,s.cp1y=l.previous.y,s.cp2x=l.next.x,s.cp2y=l.next.y,u=s}t.capBezierPoints&&function(e,t){var n,r,i,a,o,s=Am(e[0],t);for(n=0,r=e.length;n<r;++n)o=a,a=s,s=n<r-1&&Am(e[n+1],t),a&&(i=e[n],o&&(i.cp1x=yg(i.cp1x,t.left,t.right),i.cp1y=yg(i.cp1y,t.top,t.bottom)),s&&(i.cp2x=yg(i.cp2x,t.left,t.right),i.cp2y=yg(i.cp2y,t.top,t.bottom)))}(e,n)}function xg(){return"undefined"!==typeof window&&"undefined"!==typeof document}function kg(e){var t=e.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function wg(e,t,n){var r;return"string"===typeof e?(r=parseInt(e,10),-1!==e.indexOf("%")&&(r=r/100*t.parentNode[n])):r=e,r}var Sg=function(e){return e.ownerDocument.defaultView.getComputedStyle(e,null)};var _g=["top","right","bottom","left"];function Cg(e,t,n){var r={};n=n?"-"+n:"";for(var i=0;i<4;i++){var a=_g[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}var Eg=function(e,t,n){return(e>0||t>0)&&(!n||!n.shadowRoot)};function Og(e,t){if("native"in e)return e;var n=t.canvas,r=t.currentDevicePixelRatio,i=Sg(n),a="border-box"===i.boxSizing,o=Cg(i,"padding"),s=Cg(i,"border","width"),l=function(e,t){var n,r,i=e.touches,a=i&&i.length?i[0]:e,o=a.offsetX,s=a.offsetY,l=!1;if(Eg(o,s,e.target))n=o,r=s;else{var u=t.getBoundingClientRect();n=a.clientX-u.left,r=a.clientY-u.top,l=!0}return{x:n,y:r,box:l}}(e,n),u=l.x,c=l.y,f=l.box,d=o.left+(f&&s.left),h=o.top+(f&&s.top),p=t.width,v=t.height;return a&&(p-=o.width+s.width,v-=o.height+s.height),{x:Math.round((u-d)/p*n.width/r),y:Math.round((c-h)/v*n.height/r)}}var Pg=function(e){return Math.round(10*e)/10};function Mg(e,t,n,r){var i=Sg(e),a=Cg(i,"margin"),o=wg(i.maxWidth,e,"clientWidth")||Mv,s=wg(i.maxHeight,e,"clientHeight")||Mv,l=function(e,t,n){var r,i;if(void 0===t||void 0===n){var a=kg(e);if(a){var o=a.getBoundingClientRect(),s=Sg(a),l=Cg(s,"border","width"),u=Cg(s,"padding");t=o.width-u.width-l.width,n=o.height-u.height-l.height,r=wg(s.maxWidth,a,"clientWidth"),i=wg(s.maxHeight,a,"clientHeight")}else t=e.clientWidth,n=e.clientHeight}return{width:t,height:n,maxWidth:r||Mv,maxHeight:i||Mv}}(e,t,n),u=l.width,c=l.height;if("content-box"===i.boxSizing){var f=Cg(i,"border","width"),d=Cg(i,"padding");u-=d.width+f.width,c-=d.height+f.height}return u=Math.max(0,u-a.width),c=Math.max(0,r?u/r:c-a.height),u=Pg(Math.min(u,o,l.maxWidth)),c=Pg(Math.min(c,s,l.maxHeight)),u&&!c&&(c=Pg(u/2)),(void 0!==t||void 0!==n)&&r&&l.height&&c>l.height&&(c=l.height,u=Pg(Math.floor(c*r))),{width:u,height:c}}function Tg(e,t,n){var r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);var o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height="".concat(e.height,"px"),o.style.width="".concat(e.width,"px")),(e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a)&&(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0)}var jg=function(){var e=!1;try{var t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(cw){}return e}();function Rg(e,t){var n=function(e,t){return Sg(e).getPropertyValue(t)}(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function Ag(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function Ng(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:"middle"===r?n<.5?e.y:t.y:"after"===r?n<1?e.y:t.y:n>0?t.y:e.y}}function Dg(e,t,n,r){var i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=Ag(e,i,n),s=Ag(i,a,n),l=Ag(a,t,n),u=Ag(o,s,n),c=Ag(s,l,n);return Ag(u,c,n)}function Lg(e,t,n){return e?function(e,t){return{x:function(n){return e+e+t-n},setWidth:function(e){t=e},textAlign:function(e){return"center"===e?e:"right"===e?"left":"right"},xPlus:function(e,t){return e-t},leftForLtr:function(e,t){return e-t}}}(t,n):{x:function(e){return e},setWidth:function(e){},textAlign:function(e){return e},xPlus:function(e,t){return e+t},leftForLtr:function(e,t){return e}}}function Ig(e,t){var n,r;"ltr"!==t&&"rtl"!==t||(r=[(n=e.canvas.style).getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function zg(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Fg(e){return"angle"===e?{between:Kv,compare:$v,normalize:Uv}:{between:Yv,compare:function(e,t){return e-t},normalize:function(e){return e}}}function Bg(e){var t=e.start,n=e.end,r=e.count;return{start:t%r,end:n%r,loop:e.loop&&(n-t+1)%r===0,style:e.style}}function Wg(e,t,n){if(!n)return[e];for(var r,i,a,o=n.property,s=n.start,l=n.end,u=t.length,c=Fg(o),f=c.compare,d=c.between,h=c.normalize,p=function(e,t,n){var r,i,a=n.property,o=n.start,s=n.end,l=Fg(a),u=l.between,c=l.normalize,f=t.length,d=e.start,h=e.end,p=e.loop;if(p){for(d+=f,h+=f,r=0,i=f;r<i&&u(c(t[d%f][a]),o,s);++r)d--,h--;d%=f,h%=f}return h<d&&(h+=f),{start:d,end:h,loop:p,style:e.style}}(e,t,n),v=p.start,m=p.end,g=p.loop,y=p.style,b=[],x=!1,k=null,w=function(){return x||d(s,a,r)&&0!==f(s,a)},S=function(){return!x||0===f(l,r)||d(l,a,r)},_=v,C=v;_<=m;++_)(i=t[_%u]).skip||(r=h(i[o]))!==a&&(x=d(r,s,l),null===k&&w()&&(k=0===f(r,s)?_:C),null!==k&&S()&&(b.push(Bg({start:k,end:_,loop:g,count:u,style:y})),k=null),C=_,a=r);return null!==k&&b.push(Bg({start:k,end:m,loop:g,count:u,style:y})),b}function Vg(e,t){for(var n=[],r=e.segments,i=0;i<r.length;i++){var a=Wg(r[i],e.points,t);a.length&&n.push.apply(n,(0,fl.Z)(a))}return n}function Zg(e,t,n,r){return r&&r.setContext&&n?function(e,t,n,r){var i=e._chart.getContext(),a=Hg(e.options),o=e._datasetIndex,s=e.options.spanGaps,l=n.length,u=[],c=a,f=t[0].start,d=f;function h(e,t,r,i){var a=s?-1:1;if(e!==t){for(e+=l;n[e%l].skip;)e-=a;for(;n[t%l].skip;)t+=a;e%l!==t%l&&(u.push({start:e%l,end:t%l,loop:r,style:i}),c=i,f=t%l)}}var p,v=zc(t);try{for(v.s();!(p=v.n()).done;){var m=p.value;f=s?f:m.start;var g=n[f%l],y=void 0;for(d=f+1;d<=m.end;d++){var b=n[d%l];$g(y=Hg(r.setContext(Qm(i,{type:"segment",p0:g,p1:b,p0DataIndex:(d-1)%l,p1DataIndex:d%l,datasetIndex:o}))),c)&&h(f,d-1,m.loop,c),g=b,c=y}f<d-1&&h(f,d-1,m.loop,c)}}catch(x){v.e(x)}finally{v.f()}return u}(e,t,n,r):t}function Hg(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function $g(e,t){return t&&JSON.stringify(e)!==JSON.stringify(t)}var Ug=function(){function e(){kp(this,e),this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}return po(e,[{key:"_notify",value:function(e,t,n,r){var i=t.listeners[r],a=t.duration;i.forEach((function(r){return r({chart:e,initial:t.initial,numSteps:a,currentStep:Math.min(n-t.start,a)})}))}},{key:"_refresh",value:function(){var e=this;this._request||(this._running=!0,this._request=nm.call(window,(function(){e._update(),e._request=null,e._running&&e._refresh()})))}},{key:"_update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Date.now(),n=0;this._charts.forEach((function(r,i){if(r.running&&r.items.length){for(var a,o=r.items,s=o.length-1,l=!1;s>=0;--s)(a=o[s])._active?(a._total>r.duration&&(r.duration=a._total),a.tick(t),l=!0):(o[s]=o[o.length-1],o.pop());l&&(i.draw(),e._notify(i,r,t,"progress")),o.length||(r.running=!1,e._notify(i,r,t,"complete"),r.initial=!1),n+=o.length}})),this._lastDate=t,0===n&&(this._running=!1)}},{key:"_getAnims",value:function(e){var t=this._charts,n=t.get(e);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,n)),n}},{key:"listen",value:function(e,t,n){this._getAnims(e).listeners[t].push(n)}},{key:"add",value:function(e,t){var n;t&&t.length&&(n=this._getAnims(e).items).push.apply(n,(0,fl.Z)(t))}},{key:"has",value:function(e){return this._getAnims(e).items.length>0}},{key:"start",value:function(e){var t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((function(e,t){return Math.max(e,t._duration)}),0),this._refresh())}},{key:"running",value:function(e){if(!this._running)return!1;var t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}},{key:"stop",value:function(e){var t=this._charts.get(e);if(t&&t.items.length){for(var n=t.items,r=n.length-1;r>=0;--r)n[r].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}}},{key:"remove",value:function(e){return this._charts.delete(e)}}]),e}(),Kg=new Ug,qg="transparent",Yg={boolean:function(e,t,n){return n>.5?t:e},color:function(e,t,n){var r=hm(e||qg),i=r.valid&&hm(t||qg);return i&&i.valid?i.mix(r,n).hexString():t},number:function(e,t,n){return e+(t-e)*n}},Gg=function(){function e(t,n,r,i){kp(this,e);var a=n[r];i=Xm([t.to,i,a,t.from]);var o=Xm([t.from,a,i]);this._active=!0,this._fn=t.fn||Yg[t.type||typeof o],this._easing=fm[t.easing]||fm.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=r,this._from=o,this._to=i,this._promises=void 0}return po(e,[{key:"active",value:function(){return this._active}},{key:"update",value:function(e,t,n){if(this._active){this._notify(!1);var r=this._target[this._prop],i=n-this._start,a=this._duration-i;this._start=n,this._duration=Math.floor(Math.max(a,e.duration)),this._total+=i,this._loop=!!e.loop,this._to=Xm([e.to,t,r,e.from]),this._from=Xm([e.from,r,t])}}},{key:"cancel",value:function(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}},{key:"tick",value:function(e){var t,n=e-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;if(this._active=a!==s&&(o||n<r),!this._active)return this._target[i]=s,void this._notify(!0);n<0?this._target[i]=a:(t=n/r%2,t=o&&t>1?2-t:t,t=this._easing(Math.min(1,Math.max(0,t))),this._target[i]=this._fn(a,s,t))}},{key:"wait",value:function(){var e=this._promises||(this._promises=[]);return new Promise((function(t,n){e.push({res:t,rej:n})}))}},{key:"_notify",value:function(e){for(var t=e?"res":"rej",n=this._promises||[],r=0;r<n.length;r++)n[r][t]()}}]),e}(),Xg=function(){function e(t,n){kp(this,e),this._chart=t,this._properties=new Map,this.configure(n)}return po(e,[{key:"configure",value:function(e){if(av(e)){var t=Object.keys(Em.animation),n=this._properties;Object.getOwnPropertyNames(e).forEach((function(r){var i=e[r];if(av(i)){for(var a={},o=0,s=t;o<s.length;o++){var l=s[o];a[l]=i[l]}(iv(i.properties)&&i.properties||[r]).forEach((function(e){e!==r&&n.has(e)||n.set(e,a)}))}}))}}},{key:"_animateOptions",value:function(e,t){var n=t.options,r=function(e,t){if(!t)return;var n=e.options;if(!n)return void(e.options=t);n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}}));return n}(e,n);if(!r)return[];var i=this._createAnimations(r,n);return n.$shared&&function(e,t){for(var n=[],r=Object.keys(t),i=0;i<r.length;i++){var a=e[r[i]];a&&a.active()&&n.push(a.wait())}return Promise.all(n)}(e.options.$animations,n).then((function(){e.options=n}),(function(){})),i}},{key:"_createAnimations",value:function(e,t){var n,r=this._properties,i=[],a=e.$animations||(e.$animations={}),o=Object.keys(t),s=Date.now();for(n=o.length-1;n>=0;--n){var l=o[n];if("$"!==l.charAt(0))if("options"!==l){var u=t[l],c=a[l],f=r.get(l);if(c){if(f&&c.active()){c.update(f,u,s);continue}c.cancel()}f&&f.duration?(a[l]=c=new Gg(f,e,l,u),i.push(c)):e[l]=u}else i.push.apply(i,(0,fl.Z)(this._animateOptions(e,t)))}return i}},{key:"update",value:function(e,t){if(0!==this._properties.size){var n=this._createAnimations(e,t);return n.length?(Kg.add(this._chart,n),!0):void 0}Object.assign(e,t)}}]),e}();function Qg(e,t){var n=e&&e.options||{},r=n.reverse,i=void 0===n.min?t:0,a=void 0===n.max?t:0;return{start:r?a:i,end:r?i:a}}function Jg(e,t){var n,r,i=[],a=e._getSortedDatasetMetas(t);for(n=0,r=a.length;n<r;++n)i.push(a[n].index);return i}function ey(e,t,n){var r,i,a,o,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},l=e.keys,u="single"===s.mode;if(null!==t){for(r=0,i=l.length;r<i;++r){if((a=+l[r])===n){if(s.all)continue;break}ov(o=e.values[a])&&(u||0===t||Dv(t)===Dv(o))&&(t+=o)}return t}}function ty(e,t){var n=e&&e.options.stacked;return n||void 0===n&&void 0!==t.stack}function ny(e,t,n){var r=e[t]||(e[t]={});return r[n]||(r[n]={})}function ry(e,t,n,r){var i,a=zc(t.getMatchingVisibleMetas(r).reverse());try{for(a.s();!(i=a.n()).done;){var o=i.value,s=e[o.index];if(n&&s>0||!n&&s<0)return o.index}}catch(l){a.e(l)}finally{a.f()}return null}function iy(e,t){for(var n,r=e.chart,i=e._cachedMeta,a=r._stacks||(r._stacks={}),o=i.iScale,s=i.vScale,l=i.index,u=o.axis,c=s.axis,f=function(e,t,n){return"".concat(e.id,".").concat(t.id,".").concat(n.stack||n.type)}(o,s,i),d=t.length,h=0;h<d;++h){var p=t[h],v=p[u],m=p[c];(n=(p._stacks||(p._stacks={}))[c]=ny(a,f,v))[l]=m,n._top=ry(n,s,!0,i.type),n._bottom=ry(n,s,!1,i.type),(n._visualValues||(n._visualValues={}))[l]=m}}function ay(e,t){var n=e.scales;return Object.keys(n).filter((function(e){return n[e].axis===t})).shift()}function oy(e,t){var n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){var i,a=zc(t=t||e._parsed);try{for(a.s();!(i=a.n()).done;){var o=i.value._stacks;if(!o||void 0===o[r]||void 0===o[r][n])return;delete o[r][n],void 0!==o[r]._visualValues&&void 0!==o[r]._visualValues[n]&&delete o[r]._visualValues[n]}}catch(s){a.e(s)}finally{a.f()}}}var sy=function(e){return"reset"===e||"none"===e},ly=function(e,t){return t?e:Object.assign({},e)},uy=function(){function e(t,n){kp(this,e),this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=(this instanceof e?this.constructor:void 0).datasetElementType,this.dataElementType=(this instanceof e?this.constructor:void 0).dataElementType,this.initialize()}return po(e,[{key:"initialize",value:function(){var e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=ty(e.vScale,e),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}},{key:"updateIndex",value:function(e){this.index!==e&&oy(this._cachedMeta),this.index=e}},{key:"linkScales",value:function(){var e=this.chart,t=this._cachedMeta,n=this.getDataset(),r=function(e,t,n,r){return"x"===e?t:"r"===e?r:n},i=t.xAxisID=lv(n.xAxisID,ay(e,"x")),a=t.yAxisID=lv(n.yAxisID,ay(e,"y")),o=t.rAxisID=lv(n.rAxisID,ay(e,"r")),s=t.indexAxis,l=t.iAxisID=r(s,i,a,o),u=t.vAxisID=r(s,a,i,o);t.xScale=this.getScaleForId(i),t.yScale=this.getScaleForId(a),t.rScale=this.getScaleForId(o),t.iScale=this.getScaleForId(l),t.vScale=this.getScaleForId(u)}},{key:"getDataset",value:function(){return this.chart.data.datasets[this.index]}},{key:"getMeta",value:function(){return this.chart.getDatasetMeta(this.index)}},{key:"getScaleForId",value:function(e){return this.chart.scales[e]}},{key:"_getOtherScale",value:function(e){var t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}},{key:"reset",value:function(){this._update("reset")}},{key:"_destroy",value:function(){var e=this._cachedMeta;this._data&&em(this._data,this),e._stacked&&oy(e)}},{key:"_dataCheck",value:function(){var e,t,n=this.getDataset(),r=n.data||(n.data=[]),i=this._data;if(av(r))this._data=function(e){var t,n,r,i=Object.keys(e),a=new Array(i.length);for(t=0,n=i.length;t<n;++t)r=i[t],a[t]={x:r,y:e[r]};return a}(r);else if(i!==r){if(i){em(i,this);var a=this._cachedMeta;oy(a),a._parsed=[]}r&&Object.isExtensible(r)&&(t=this,(e=r)._chartjs?e._chartjs.listeners.push(t):(Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),Jv.forEach((function(t){var n="_onData"+wv(t),r=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:function(){for(var t=arguments.length,i=new Array(t),a=0;a<t;a++)i[a]=arguments[a];var o=r.apply(this,i);return e._chartjs.listeners.forEach((function(e){"function"===typeof e[n]&&e[n].apply(e,i)})),o}})})))),this._syncList=[],this._data=r}}},{key:"addElements",value:function(){var e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}},{key:"buildOrUpdateElements",value:function(e){var t=this._cachedMeta,n=this.getDataset(),r=!1;this._dataCheck();var i=t._stacked;t._stacked=ty(t.vScale,t),t.stack!==n.stack&&(r=!0,oy(t),t.stack=n.stack),this._resyncElements(e),(r||i!==t._stacked)&&iy(this,t._parsed)}},{key:"configure",value:function(){var e=this.chart.config,t=e.datasetScopeKeys(this._type),n=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}},{key:"parse",value:function(e,t){var n,r,i,a=this._cachedMeta,o=this._data,s=a.iScale,l=a._stacked,u=s.axis,c=0===e&&t===o.length||a._sorted,f=e>0&&a._parsed[e-1];if(!1===this._parsing)a._parsed=o,a._sorted=!0,i=o;else{i=iv(o[e])?this.parseArrayData(a,o,e,t):av(o[e])?this.parseObjectData(a,o,e,t):this.parsePrimitiveData(a,o,e,t);for(n=0;n<t;++n)a._parsed[n+e]=r=i[n],c&&((null===r[u]||f&&r[u]<f[u])&&(c=!1),f=r);a._sorted=c}l&&iy(this,i)}},{key:"parsePrimitiveData",value:function(e,t,n,r){var i,a,o,s=e.iScale,l=e.vScale,u=s.axis,c=l.axis,f=s.getLabels(),d=s===l,h=new Array(r);for(i=0,a=r;i<a;++i){var p;o=i+n,h[i]=(p={},(0,Be.Z)(p,u,d||s.parse(f[o],o)),(0,Be.Z)(p,c,l.parse(t[o],o)),p)}return h}},{key:"parseArrayData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,u=e.yScale,c=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],c[i]={x:l.parse(s[0],o),y:u.parse(s[1],o)};return c}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.xScale,u=e.yScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v=new Array(r);for(i=0,a=r;i<a;++i)s=t[o=i+n],v[i]={x:l.parse(kv(s,d),o),y:u.parse(kv(s,p),o)};return v}},{key:"getParsed",value:function(e){return this._cachedMeta._parsed[e]}},{key:"getDataElement",value:function(e){return this._cachedMeta.data[e]}},{key:"applyStack",value:function(e,t,n){var r=this.chart,i=this._cachedMeta,a=t[e.axis];return ey({keys:Jg(r,!0),values:t._stacks[e.axis]._visualValues},a,i.index,{mode:n})}},{key:"updateRangeFromParsed",value:function(e,t,n,r){var i=n[t.axis],a=null===i?NaN:i,o=r&&n._stacks[t.axis];r&&o&&(r.values=o,a=ey(r,i,this._cachedMeta.index)),e.min=Math.min(e.min,a),e.max=Math.max(e.max,a)}},{key:"getMinMax",value:function(e,t){var n,r,i=this._cachedMeta,a=i._parsed,o=i._sorted&&e===i.iScale,s=a.length,l=this._getOtherScale(e),u=function(e,t,n){return e&&!t.hidden&&t._stacked&&{keys:Jg(n,!0),values:null}}(t,i,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},f=function(e){var t=e.getUserBounds(),n=t.min,r=t.max,i=t.minDefined,a=t.maxDefined;return{min:i?n:Number.NEGATIVE_INFINITY,max:a?r:Number.POSITIVE_INFINITY}}(l),d=f.min,h=f.max;function p(){var t=(r=a[n])[l.axis];return!ov(r[e.axis])||d>t||h<t}for(n=0;n<s&&(p()||(this.updateRangeFromParsed(c,e,r,u),!o));++n);if(o)for(n=s-1;n>=0;--n)if(!p()){this.updateRangeFromParsed(c,e,r,u);break}return c}},{key:"getAllParsedValues",value:function(e){var t,n,r,i=this._cachedMeta._parsed,a=[];for(t=0,n=i.length;t<n;++t)ov(r=i[t][e.axis])&&a.push(r);return a}},{key:"getMaxOverflow",value:function(){return!1}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e);return{label:n?""+n.getLabelForValue(i[n.axis]):"",value:r?""+r.getLabelForValue(i[r.axis]):""}}},{key:"_update",value:function(e){var t=this._cachedMeta;this.update(e||"default"),t._clip=function(e){var t,n,r,i;return av(e)?(t=e.top,n=e.right,r=e.bottom,i=e.left):t=n=r=i=e,{top:t,right:n,bottom:r,left:i,disabled:!1===e}}(lv(this.options.clip,function(e,t,n){if(!1===n)return!1;var r=Qg(e,n),i=Qg(t,n);return{top:i.end,right:r.end,bottom:i.start,left:r.start}}(t.xScale,t.yScale,this.getMaxOverflow())))}},{key:"update",value:function(e){}},{key:"draw",value:function(){var e,t=this._ctx,n=this.chart,r=this._cachedMeta,i=r.data||[],a=n.chartArea,o=[],s=this._drawStart||0,l=this._drawCount||i.length-s,u=this.options.drawActiveElementsOnTop;for(r.dataset&&r.dataset.draw(t,a,s,l),e=s;e<s+l;++e){var c=i[e];c.hidden||(c.active&&u?o.push(c):c.draw(t,a))}for(e=0;e<o.length;++e)o[e].draw(t,a)}},{key:"getStyle",value:function(e,t){var n=t?"active":"default";return void 0===e&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(e||0,n)}},{key:"getContext",value:function(e,t,n){var r,i=this.getDataset();if(e>=0&&e<this._cachedMeta.data.length){var a=this._cachedMeta.data[e];r=a.$context||(a.$context=function(e,t,n){return Qm(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}(this.getContext(),e,a)),r.parsed=this.getParsed(e),r.raw=i.data[e],r.index=r.dataIndex=e}else r=this.$context||(this.$context=function(e,t){return Qm(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),r.dataset=i,r.index=r.datasetIndex=this.index;return r.active=!!t,r.mode=n,r}},{key:"resolveDatasetElementOptions",value:function(e){return this._resolveElementOptions(this.datasetElementType.id,e)}},{key:"resolveDataElementOptions",value:function(e,t){return this._resolveElementOptions(this.dataElementType.id,t,e)}},{key:"_resolveElementOptions",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",r=arguments.length>2?arguments[2]:void 0,i="active"===n,a=this._cachedDataOpts,o=e+"-"+n,s=a[o],l=this.enableOptionSharing&&Sv(r);if(s)return ly(s,l);var u=this.chart.config,c=u.datasetElementScopeKeys(this._type,e),f=i?["".concat(e,"Hover"),"hover",e,""]:[e,""],d=u.getOptionScopes(this.getDataset(),c),h=Object.keys(Em.elements[e]),p=u.resolveNamedOptions(d,h,(function(){return t.getContext(r,i,n)}),f);return p.$shared&&(p.$shared=l,a[o]=Object.freeze(ly(p,l))),p}},{key:"_resolveAnimations",value:function(e,t,n){var r,i=this.chart,a=this._cachedDataOpts,o="animation-".concat(t),s=a[o];if(s)return s;if(!1!==i.options.animation){var l=this.chart.config,u=l.datasetAnimationScopeKeys(this._type,t),c=l.getOptionScopes(this.getDataset(),u);r=l.createResolver(c,this.getContext(e,n,t))}var f=new Xg(i,r&&r.animations);return r&&r._cacheable&&(a[o]=Object.freeze(f)),f}},{key:"getSharedOptions",value:function(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}},{key:"includeOptions",value:function(e,t){return!t||sy(e)||this.chart._animationsDisabled}},{key:"_getSharedOptions",value:function(e,t){var n=this.resolveDataElementOptions(e,t),r=this._sharedOptions,i=this.getSharedOptions(n),a=this.includeOptions(t,i)||i!==r;return this.updateSharedOptions(i,t,n),{sharedOptions:i,includeOptions:a}}},{key:"updateElement",value:function(e,t,n,r){sy(r)?Object.assign(e,n):this._resolveAnimations(t,r).update(e,n)}},{key:"updateSharedOptions",value:function(e,t,n){e&&!sy(t)&&this._resolveAnimations(void 0,t).update(e,n)}},{key:"_setStyle",value:function(e,t,n,r){e.active=r;var i=this.getStyle(t,r);this._resolveAnimations(t,n,r).update(e,{options:!r&&this.getSharedOptions(i)||i})}},{key:"removeHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!1)}},{key:"setHoverStyle",value:function(e,t,n){this._setStyle(e,n,"active",!0)}},{key:"_removeDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}},{key:"_setDatasetHoverStyle",value:function(){var e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}},{key:"_resyncElements",value:function(e){var t,n=this._data,r=this._cachedMeta.data,i=zc(this._syncList);try{for(i.s();!(t=i.n()).done;){var a=(0,mt.Z)(t.value,3),o=a[0],s=a[1],l=a[2];this[o](s,l)}}catch(d){i.e(d)}finally{i.f()}this._syncList=[];var u=r.length,c=n.length,f=Math.min(c,u);f&&this.parse(0,f),c>u?this._insertElements(u,c-u,e):c<u&&this._removeElements(c,u-c)}},{key:"_insertElements",value:function(e,t){var n,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=this._cachedMeta,a=i.data,o=e+t,s=function(e){for(e.length+=t,n=e.length-1;n>=o;n--)e[n]=e[n-t]};for(s(a),n=e;n<o;++n)a[n]=new this.dataElementType;this._parsing&&s(i._parsed),this.parse(e,t),r&&this.updateElements(a,e,t,"reset")}},{key:"updateElements",value:function(e,t,n,r){}},{key:"_removeElements",value:function(e,t){var n=this._cachedMeta;if(this._parsing){var r=n._parsed.splice(e,t);n._stacked&&oy(n,r)}n.data.splice(e,t)}},{key:"_sync",value:function(e){if(this._parsing)this._syncList.push(e);else{var t=(0,mt.Z)(e,3),n=t[0],r=t[1],i=t[2];this[n](r,i)}this.chart._dataChanges.push([this.index].concat((0,fl.Z)(e)))}},{key:"_onDataPush",value:function(){var e=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-e,e])}},{key:"_onDataPop",value:function(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}},{key:"_onDataShift",value:function(){this._sync(["_removeElements",0,1])}},{key:"_onDataSplice",value:function(e,t){t&&this._sync(["_removeElements",e,t]);var n=arguments.length-2;n&&this._sync(["_insertElements",e,n])}},{key:"_onDataUnshift",value:function(){this._sync(["_insertElements",0,arguments.length])}}]),e}();function cy(e){var t,n,r,i,a=e.iScale,o=function(e,t){if(!e._cache.$bar){for(var n=e.getMatchingVisibleMetas(t),r=[],i=0,a=n.length;i<a;i++)r=r.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=tm(r.sort((function(e,t){return e-t})))}return e._cache.$bar}(a,e.type),s=a._length,l=function(){32767!==r&&-32768!==r&&(Sv(i)&&(s=Math.min(s,Math.abs(r-i)||s)),i=r)};for(t=0,n=o.length;t<n;++t)r=a.getPixelForValue(o[t]),l();for(i=void 0,t=0,n=a.ticks.length;t<n;++t)r=a.getPixelForTick(t),l();return s}function fy(e,t,n,r){return iv(e)?function(e,t,n,r){var i=n.parse(e[0],r),a=n.parse(e[1],r),o=Math.min(i,a),s=Math.max(i,a),l=o,u=s;Math.abs(o)>Math.abs(s)&&(l=s,u=o),t[n.axis]=u,t._custom={barStart:l,barEnd:u,start:i,end:a,min:o,max:s}}(e,t,n,r):t[n.axis]=n.parse(e,r),t}function dy(e,t,n,r){var i,a,o,s,l=e.iScale,u=e.vScale,c=l.getLabels(),f=l===u,d=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=f||l.parse(c[i],i),d.push(fy(s,o,u,i));return d}function hy(e){return e&&void 0!==e.barStart&&void 0!==e.barEnd}function py(e,t,n,r){var i=t.borderSkipped,a={};if(i)if(!0!==i){var o=function(e){var t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.base<e.y,n="bottom",r="top"),t?(i="end",a="start"):(i="start",a="end"),{start:n,end:r,reverse:t,top:i,bottom:a}}(e),s=o.start,l=o.end,u=o.reverse,c=o.top,f=o.bottom;"middle"===i&&n&&(e.enableBorderRadius=!0,(n._top||0)===r?i=c:(n._bottom||0)===r?i=f:(a[vy(f,s,l,u)]=!0,i=c)),a[vy(i,s,l,u)]=!0,e.borderSkipped=a}else e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};else e.borderSkipped=a}function vy(e,t,n,r){var i,a,o;return r?(o=n,e=my(e=(i=e)===(a=t)?o:i===o?a:i,n,t)):e=my(e,t,n),e}function my(e,t,n){return"start"===e?t:"end"===e?n:e}function gy(e,t,n){var r=t.inflateAmount;e.inflateAmount="auto"===r?1===n?.33:0:r}(0,Be.Z)(uy,"defaults",{}),(0,Be.Z)(uy,"datasetElementType",null),(0,Be.Z)(uy,"dataElementType",null);var yy=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"parsePrimitiveData",value:function(e,t,n,r){return dy(e,t,n,r)}},{key:"parseArrayData",value:function(e,t,n,r){return dy(e,t,n,r)}},{key:"parseObjectData",value:function(e,t,n,r){var i,a,o,s,l=e.iScale,u=e.vScale,c=this._parsing,f=c.xAxisKey,d=void 0===f?"x":f,h=c.yAxisKey,p=void 0===h?"y":h,v="x"===l.axis?d:p,m="x"===u.axis?d:p,g=[];for(i=n,a=n+r;i<a;++i)s=t[i],(o={})[l.axis]=l.parse(kv(s,v),i),g.push(fy(kv(s,m),o,u,i));return g}},{key:"updateRangeFromParsed",value:function(e,t,r,i){yp(gp(n.prototype),"updateRangeFromParsed",this).call(this,e,t,r,i);var a=r._custom;a&&t===this._cachedMeta.vScale&&(e.min=Math.min(e.min,a.min),e.max=Math.max(e.max,a.max))}},{key:"getMaxOverflow",value:function(){return 0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=t.iScale,r=t.vScale,i=this.getParsed(e),a=i._custom,o=hy(a)?"["+a.start+", "+a.end+"]":""+r.getLabelForValue(i[r.axis]);return{label:""+n.getLabelForValue(i[n.axis]),value:o}}},{key:"initialize",value:function(){this.enableOptionSharing=!0,yp(gp(n.prototype),"initialize",this).call(this),this._cachedMeta.stack=this.getDataset().stack}},{key:"update",value:function(e){var t=this._cachedMeta;this.updateElements(t.data,0,t.data.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this.index,o=this._cachedMeta.vScale,s=o.getBasePixel(),l=o.isHorizontal(),u=this._getRuler(),c=this._getSharedOptions(t,r),f=c.sharedOptions,d=c.includeOptions,h=t;h<t+n;h++){var p=this.getParsed(h),v=i||rv(p[o.axis])?{base:s,head:s}:this._calculateBarValuePixels(h),m=this._calculateBarIndexPixels(h,u),g=(p._stacks||{})[o.axis],y={horizontal:l,base:v.base,enableBorderRadius:!g||hy(p._custom)||a===g._top||a===g._bottom,x:l?v.head:m.center,y:l?m.center:v.head,height:l?m.size:Math.abs(v.size),width:l?Math.abs(v.size):m.size};d&&(y.options=f||this.resolveDataElementOptions(h,e[h].active?"active":r));var b=y.options||e[h].options;py(y,b,g,a),gy(y,b,u.ratio),this.updateElement(e[h],h,y,r)}}},{key:"_getStacks",value:function(e,t){var n,r=this._cachedMeta.iScale,i=r.getMatchingVisibleMetas(this._type).filter((function(e){return e.controller.options.grouped})),a=r.options.stacked,o=[],s=function(e){var n=e.controller.getParsed(t),r=n&&n[e.vScale.axis];if(rv(r)||isNaN(r))return!0},l=zc(i);try{for(l.s();!(n=l.n()).done;){var u=n.value;if((void 0===t||!s(u))&&((!1===a||-1===o.indexOf(u.stack)||void 0===a&&void 0===u.stack)&&o.push(u.stack),u.index===e))break}}catch(c){l.e(c)}finally{l.f()}return o.length||o.push(void 0),o}},{key:"_getStackCount",value:function(e){return this._getStacks(void 0,e).length}},{key:"_getStackIndex",value:function(e,t,n){var r=this._getStacks(e,n),i=void 0!==t?r.indexOf(t):-1;return-1===i?r.length-1:i}},{key:"_getRuler",value:function(){var e,t,n=this.options,r=this._cachedMeta,i=r.iScale,a=[];for(e=0,t=r.data.length;e<t;++e)a.push(i.getPixelForValue(this.getParsed(e)[i.axis],e));var o=n.barThickness;return{min:o||cy(r),pixels:a,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:n.grouped,ratio:o?1:n.categoryPercentage*n.barPercentage}}},{key:"_calculateBarValuePixels",value:function(e){var t,n,r=this._cachedMeta,i=r.vScale,a=r._stacked,o=r.index,s=this.options,l=s.base,u=s.minBarLength,c=l||0,f=this.getParsed(e),d=f._custom,h=hy(d),p=f[i.axis],v=0,m=a?this.applyStack(i,f,a):p;m!==p&&(v=m-p,m=p),h&&(p=d.barStart,m=d.barEnd-d.barStart,0!==p&&Dv(p)!==Dv(d.barEnd)&&(v=0),v+=p);var g=rv(l)||h?v:l,y=i.getPixelForValue(g);if(n=(t=this.chart.getDataVisibility(e)?i.getPixelForValue(v+m):y)-y,Math.abs(n)<u){n=function(e,t,n){return 0!==e?Dv(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}(n,i,c)*u,p===c&&(y-=n/2);var b=i.getPixelForDecimal(0),x=i.getPixelForDecimal(1),k=Math.min(b,x),w=Math.max(b,x);t=(y=Math.max(Math.min(y,w),k))+n,a&&!h&&(f._stacks[i.axis]._visualValues[o]=i.getValueForPixel(t)-i.getValueForPixel(y))}if(y===i.getPixelForValue(c)){var S=Dv(n)*i.getLineWidthForValue(c)/2;y+=S,n-=S}return{size:n,base:y,head:t,center:t+n/2}}},{key:"_calculateBarIndexPixels",value:function(e,t){var n,r,i=t.scale,a=this.options,o=a.skipNull,s=lv(a.maxBarThickness,1/0);if(t.grouped){var l=o?this._getStackCount(e):t.stackCount,u="flex"===a.barThickness?function(e,t,n,r){var i=t.pixels,a=i[e],o=e>0?i[e-1]:null,s=e<i.length-1?i[e+1]:null,l=n.categoryPercentage;null===o&&(o=a-(null===s?t.end-t.start:s-a)),null===s&&(s=a+a-o);var u=a-(a-Math.min(o,s))/2*l;return{chunk:Math.abs(s-o)/2*l/r,ratio:n.barPercentage,start:u}}(e,t,a,l):function(e,t,n,r){var i,a,o=n.barThickness;return rv(o)?(i=t.min*n.categoryPercentage,a=n.barPercentage):(i=o*r,a=1),{chunk:i/r,ratio:a,start:t.pixels[e]-i/2}}(e,t,a,l),c=this._getStackIndex(this.index,this._cachedMeta.stack,o?e:void 0);n=u.start+u.chunk*c+u.chunk/2,r=Math.min(s,u.chunk*u.ratio)}else n=i.getPixelForValue(this.getParsed(e)[i.axis],e),r=Math.min(s,t.min*t.ratio);return{base:n-r/2,head:n+r/2,center:n,size:r}}},{key:"draw",value:function(){for(var e=this._cachedMeta,t=e.vScale,n=e.data,r=n.length,i=0;i<r;++i)null!==this.getParsed(i)[t.axis]&&n[i].draw(this._ctx)}}]),n}(uy);(0,Be.Z)(yy,"id","bar"),(0,Be.Z)(yy,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),(0,Be.Z)(yy,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});var by=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,yp(gp(n.prototype),"initialize",this).call(this)}},{key:"parsePrimitiveData",value:function(e,t,r,i){for(var a=yp(gp(n.prototype),"parsePrimitiveData",this).call(this,e,t,r,i),o=0;o<a.length;o++)a[o]._custom=this.resolveDataElementOptions(o+r).radius;return a}},{key:"parseArrayData",value:function(e,t,r,i){for(var a=yp(gp(n.prototype),"parseArrayData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=lv(s[2],this.resolveDataElementOptions(o+r).radius)}return a}},{key:"parseObjectData",value:function(e,t,r,i){for(var a=yp(gp(n.prototype),"parseObjectData",this).call(this,e,t,r,i),o=0;o<a.length;o++){var s=t[r+o];a[o]._custom=lv(s&&s.r&&+s.r,this.resolveDataElementOptions(o+r).radius)}return a}},{key:"getMaxOverflow",value:function(){for(var e=this._cachedMeta.data,t=0,n=e.length-1;n>=0;--n)t=Math.max(t,e[n].size(this.resolveDataElementOptions(n))/2);return t>0&&t}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart.data.labels||[],r=t.xScale,i=t.yScale,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y),l=a._custom;return{label:n[e]||"",value:"("+o+", "+s+(l?", "+l:"")+")"}}},{key:"update",value:function(e){var t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,l=this._getSharedOptions(t,r),u=l.sharedOptions,c=l.includeOptions,f=o.axis,d=s.axis,h=t;h<t+n;h++){var p=e[h],v=!i&&this.getParsed(h),m={},g=m[f]=i?o.getPixelForDecimal(.5):o.getPixelForValue(v[f]),y=m[d]=i?s.getBasePixel():s.getPixelForValue(v[d]);m.skip=isNaN(g)||isNaN(y),c&&(m.options=u||this.resolveDataElementOptions(h,p.active?"active":r),i&&(m.options.radius=0)),this.updateElement(p,h,m,r)}}},{key:"resolveDataElementOptions",value:function(e,t){var r=this.getParsed(e),i=yp(gp(n.prototype),"resolveDataElementOptions",this).call(this,e,t);i.$shared&&(i=Object.assign({},i,{$shared:!1}));var a=i.radius;return"active"!==t&&(i.radius=0),i.radius+=lv(r&&r._custom,a),i}}]),n}(uy);(0,Be.Z)(by,"id","bubble"),(0,Be.Z)(by,"defaults",{datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}}),(0,Be.Z)(by,"overrides",{scales:{x:{type:"linear"},y:{type:"linear"}}});var xy=function(e){bp(n,e);var t=xp(n);function n(e,r){var i;return kp(this,n),(i=t.call(this,e,r)).enableOptionSharing=!0,i.innerRadius=void 0,i.outerRadius=void 0,i.offsetX=void 0,i.offsetY=void 0,i}return po(n,[{key:"linkScales",value:function(){}},{key:"parse",value:function(e,t){var n=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=n;else{var i,a,o=function(e){return+n[e]};if(av(n[e])){var s=this._parsing.key,l=void 0===s?"value":s;o=function(e){return+kv(n[e],l)}}for(i=e,a=e+t;i<a;++i)r._parsed[i]=o(i)}}},{key:"_getRotation",value:function(){return Bv(this.options.rotation-90)}},{key:"_getCircumference",value:function(){return Bv(this.options.circumference)}},{key:"_getRotationExtents",value:function(){for(var e=Ov,t=-Ov,n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)&&this.chart.getDatasetMeta(n).type===this._type){var r=this.chart.getDatasetMeta(n).controller,i=r._getRotation(),a=r._getCircumference();e=Math.min(e,i),t=Math.max(t,i+a)}return{rotation:e,circumference:t-e}}},{key:"update",value:function(e){var t,n,r=this.chart.chartArea,i=this._cachedMeta,a=i.data,o=this.getMaxBorderWidth()+this.getMaxOffset(a)+this.options.spacing,s=Math.max((Math.min(r.width,r.height)-o)/2,0),l=Math.min((t=this.options.cutout,n=s,"string"===typeof t&&t.endsWith("%")?parseFloat(t)/100:+t/n),1),u=this._getRingWeight(this.index),c=this._getRotationExtents(),f=c.circumference,d=function(e,t,n){var r=1,i=1,a=0,o=0;if(t<Ov){var s=e,l=s+t,u=Math.cos(s),c=Math.sin(s),f=Math.cos(l),d=Math.sin(l),h=function(e,t,r){return Kv(e,s,l,!0)?1:Math.max(t,t*n,r,r*n)},p=function(e,t,r){return Kv(e,s,l,!0)?-1:Math.min(t,t*n,r,r*n)},v=h(0,u,f),m=h(jv,c,d),g=p(Ev,u,f),y=p(Ev+jv,c,d);r=(v-g)/2,i=(m-y)/2,a=-(v+g)/2,o=-(m+y)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}(c.rotation,f,l),h=d.ratioX,p=d.ratioY,v=d.offsetX,m=d.offsetY,g=(r.width-o)/h,y=(r.height-o)/p,b=Math.max(Math.min(g,y)/2,0),x=uv(this.options.radius,b),k=(x-Math.max(x*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=v*x,this.offsetY=m*x,i.total=this.calculateTotal(),this.outerRadius=x-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*u,0),this.updateElements(a,0,a.length,e)}},{key:"_circumference",value:function(e,t){var n=this.options,r=this._cachedMeta,i=this._getCircumference();return t&&n.animation.animateRotate||!this.chart.getDataVisibility(e)||null===r._parsed[e]||r.data[e].hidden?0:this.calculateCircumference(r._parsed[e]*i/Ov)}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=o.chartArea,l=o.options.animation,u=(s.left+s.right)/2,c=(s.top+s.bottom)/2,f=a&&l.animateScale,d=f?0:this.innerRadius,h=f?0:this.outerRadius,p=this._getSharedOptions(t,r),v=p.sharedOptions,m=p.includeOptions,g=this._getRotation();for(i=0;i<t;++i)g+=this._circumference(i,a);for(i=t;i<t+n;++i){var y=this._circumference(i,a),b=e[i],x={x:u+this.offsetX,y:c+this.offsetY,startAngle:g,endAngle:g+y,circumference:y,outerRadius:h,innerRadius:d};m&&(x.options=v||this.resolveDataElementOptions(i,b.active?"active":r)),g+=y,this.updateElement(b,i,x,r)}}},{key:"calculateTotal",value:function(){var e,t=this._cachedMeta,n=t.data,r=0;for(e=0;e<n.length;e++){var i=t._parsed[e];null===i||isNaN(i)||!this.chart.getDataVisibility(e)||n[e].hidden||(r+=Math.abs(i))}return r}},{key:"calculateCircumference",value:function(e){var t=this._cachedMeta.total;return t>0&&!isNaN(e)?Ov*(Math.abs(e)/t):0}},{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ym(t._parsed[e],n.options.locale);return{label:r[e]||"",value:i}}},{key:"getMaxBorderWidth",value:function(e){var t,n,r,i,a,o=0,s=this.chart;if(!e)for(t=0,n=s.data.datasets.length;t<n;++t)if(s.isDatasetVisible(t)){e=(r=s.getDatasetMeta(t)).data,i=r.controller;break}if(!e)return 0;for(t=0,n=e.length;t<n;++t)"inner"!==(a=i.resolveDataElementOptions(t)).borderAlign&&(o=Math.max(o,a.borderWidth||0,a.hoverBorderWidth||0));return o}},{key:"getMaxOffset",value:function(e){for(var t=0,n=0,r=e.length;n<r;++n){var i=this.resolveDataElementOptions(n);t=Math.max(t,i.offset||0,i.hoverOffset||0)}return t}},{key:"_getRingWeightOffset",value:function(e){for(var t=0,n=0;n<e;++n)this.chart.isDatasetVisible(n)&&(t+=this._getRingWeight(n));return t}},{key:"_getRingWeight",value:function(e){return Math.max(lv(this.chart.data.datasets[e].weight,1),0)}},{key:"_getVisibleDatasetWeightTotal",value:function(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}]),n}(uy);(0,Be.Z)(xy,"id","doughnut"),(0,Be.Z)(xy,"defaults",{datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"}),(0,Be.Z)(xy,"descriptors",{_scriptable:function(e){return"spacing"!==e},_indexable:function(e){return"spacing"!==e}}),(0,Be.Z)(xy,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels,r=n.pointStyle,i=n.color;return t.labels.map((function(t,n){var a=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});var ky=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"initialize",value:function(){this.enableOptionSharing=!0,this.supportsDecimation=!0,yp(gp(n.prototype),"initialize",this).call(this)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data,i=void 0===r?[]:r,a=t._dataset,o=this.chart._animationsDisabled,s=om(t,i,o),l=s.start,u=s.count;this._drawStart=l,this._drawCount=u,sm(t)&&(l=0,u=i.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!a._decimated,n.points=i;var c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(n,void 0,{animated:!o,options:c},e),this.updateElements(i,l,u,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,l=a._stacked,u=a._dataset,c=this._getSharedOptions(t,r),f=c.sharedOptions,d=c.includeOptions,h=o.axis,p=s.axis,v=this.options,m=v.spanGaps,g=v.segment,y=zv(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,x=t+n,k=e.length,w=t>0&&this.getParsed(t-1),S=0;S<k;++S){var _=e[S],C=b?_:{};if(S<t||S>=x)C.skip=!0;else{var E=this.getParsed(S),O=rv(E[p]),P=C[h]=o.getPixelForValue(E[h],S),M=C[p]=i||O?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,E,l):E[p],S);C.skip=isNaN(P)||isNaN(M)||O,C.stop=S>0&&Math.abs(E[h]-w[h])>y,g&&(C.parsed=E,C.raw=u.data[S]),d&&(C.options=f||this.resolveDataElementOptions(S,_.active?"active":r)),b||this.updateElement(_,S,C,r),w=E}}}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.dataset,n=t.options&&t.options.borderWidth||0,r=e.data||[];if(!r.length)return n;var i=r[0].size(this.resolveDataElementOptions(0)),a=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(n,i,a)/2}},{key:"draw",value:function(){var e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),yp(gp(n.prototype),"draw",this).call(this)}}]),n}(uy);(0,Be.Z)(ky,"id","line"),(0,Be.Z)(ky,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),(0,Be.Z)(ky,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});var wy=function(e){bp(n,e);var t=xp(n);function n(e,r){var i;return kp(this,n),(i=t.call(this,e,r)).innerRadius=void 0,i.outerRadius=void 0,i}return po(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart,r=n.data.labels||[],i=ym(t._parsed[e].r,n.options.locale);return{label:r[e]||"",value:i}}},{key:"parseObjectData",value:function(e,t,n,r){return dg.bind(this)(e,t,n,r)}},{key:"update",value:function(e){var t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}},{key:"getMinMax",value:function(){var e=this,t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((function(t,r){var i=e.getParsed(r).r;!isNaN(i)&&e.chart.getDataVisibility(r)&&(i<n.min&&(n.min=i),i>n.max&&(n.max=i))})),n}},{key:"_updateRadius",value:function(){var e=this.chart,t=e.chartArea,n=e.options,r=Math.min(t.right-t.left,t.bottom-t.top),i=Math.max(r/2,0),a=(i-Math.max(n.cutoutPercentage?i/100*n.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=i-a*this.index,this.innerRadius=this.outerRadius-a}},{key:"updateElements",value:function(e,t,n,r){var i,a="reset"===r,o=this.chart,s=o.options.animation,l=this._cachedMeta.rScale,u=l.xCenter,c=l.yCenter,f=l.getIndexAngle(0)-.5*Ev,d=f,h=360/this.countVisibleElements();for(i=0;i<t;++i)d+=this._computeAngle(i,r,h);for(i=t;i<t+n;i++){var p=e[i],v=d,m=d+this._computeAngle(i,r,h),g=o.getDataVisibility(i)?l.getDistanceFromCenterForValue(this.getParsed(i).r):0;d=m,a&&(s.animateScale&&(g=0),s.animateRotate&&(v=m=f));var y={x:u,y:c,innerRadius:0,outerRadius:g,startAngle:v,endAngle:m,options:this.resolveDataElementOptions(i,p.active?"active":r)};this.updateElement(p,i,y,r)}}},{key:"countVisibleElements",value:function(){var e=this,t=this._cachedMeta,n=0;return t.data.forEach((function(t,r){!isNaN(e.getParsed(r).r)&&e.chart.getDataVisibility(r)&&n++})),n}},{key:"_computeAngle",value:function(e,t,n){return this.chart.getDataVisibility(e)?Bv(this.resolveDataElementOptions(e,t).angle||n):0}}]),n}(uy);(0,Be.Z)(wy,"id","polarArea"),(0,Be.Z)(wy,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),(0,Be.Z)(wy,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels:function(e){var t=e.data;if(t.labels.length&&t.datasets.length){var n=e.legend.options.labels,r=n.pointStyle,i=n.color;return t.labels.map((function(t,n){var a=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:a.backgroundColor,strokeStyle:a.borderColor,fontColor:i,lineWidth:a.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}}))}return[]}},onClick:function(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});var Sy=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n)}(xy);(0,Be.Z)(Sy,"id","pie"),(0,Be.Z)(Sy,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});var _y=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta.vScale,n=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(n[t.axis])}}},{key:"parseObjectData",value:function(e,t,n,r){return dg.bind(this)(e,t,n,r)}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.dataset,r=t.data||[],i=t.iScale.getLabels();if(n.points=r,"resize"!==e){var a=this.resolveDatasetElementOptions(e);this.options.showLine||(a.borderWidth=0);var o={_loop:!0,_fullLoop:i.length===r.length,options:a};this.updateElement(n,void 0,o,e)}this.updateElements(r,0,r.length,e)}},{key:"updateElements",value:function(e,t,n,r){for(var i=this._cachedMeta.rScale,a="reset"===r,o=t;o<t+n;o++){var s=e[o],l=this.resolveDataElementOptions(o,s.active?"active":r),u=i.getPointPositionForValue(o,this.getParsed(o).r),c=a?i.xCenter:u.x,f=a?i.yCenter:u.y,d={x:c,y:f,angle:u.angle,skip:isNaN(c)||isNaN(f),options:l};this.updateElement(s,o,d,r)}}}]),n}(uy);(0,Be.Z)(_y,"id","radar"),(0,Be.Z)(_y,"defaults",{datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}}),(0,Be.Z)(_y,"overrides",{aspectRatio:1,scales:{r:{type:"radialLinear"}}});var Cy=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"getLabelAndValue",value:function(e){var t=this._cachedMeta,n=this.chart.data.labels||[],r=t.xScale,i=t.yScale,a=this.getParsed(e),o=r.getLabelForValue(a.x),s=i.getLabelForValue(a.y);return{label:n[e]||"",value:"("+o+", "+s+")"}}},{key:"update",value:function(e){var t=this._cachedMeta,n=t.data,r=void 0===n?[]:n,i=this.chart._animationsDisabled,a=om(t,r,i),o=a.start,s=a.count;if(this._drawStart=o,this._drawCount=s,sm(t)&&(o=0,s=r.length),this.options.showLine){var l=t.dataset,u=t._dataset;l._chart=this.chart,l._datasetIndex=this.index,l._decimated=!!u._decimated,l.points=r;var c=this.resolveDatasetElementOptions(e);c.segment=this.options.segment,this.updateElement(l,void 0,{animated:!i,options:c},e)}this.updateElements(r,o,s,e)}},{key:"addElements",value:function(){var e=this.options.showLine;!this.datasetElementType&&e&&(this.datasetElementType=this.chart.registry.getElement("line")),yp(gp(n.prototype),"addElements",this).call(this)}},{key:"updateElements",value:function(e,t,n,r){for(var i="reset"===r,a=this._cachedMeta,o=a.iScale,s=a.vScale,l=a._stacked,u=a._dataset,c=this.resolveDataElementOptions(t,r),f=this.getSharedOptions(c),d=this.includeOptions(r,f),h=o.axis,p=s.axis,v=this.options,m=v.spanGaps,g=v.segment,y=zv(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||i||"none"===r,x=t>0&&this.getParsed(t-1),k=t;k<t+n;++k){var w=e[k],S=this.getParsed(k),_=b?w:{},C=rv(S[p]),E=_[h]=o.getPixelForValue(S[h],k),O=_[p]=i||C?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,S,l):S[p],k);_.skip=isNaN(E)||isNaN(O)||C,_.stop=k>0&&Math.abs(S[h]-x[h])>y,g&&(_.parsed=S,_.raw=u.data[k]),d&&(_.options=f||this.resolveDataElementOptions(k,w.active?"active":r)),b||this.updateElement(w,k,_,r),x=S}this.updateSharedOptions(f,r,c)}},{key:"getMaxOverflow",value:function(){var e=this._cachedMeta,t=e.data||[];if(!this.options.showLine){for(var n=0,r=t.length-1;r>=0;--r)n=Math.max(n,t[r].size(this.resolveDataElementOptions(r))/2);return n>0&&n}var i=e.dataset,a=i.options&&i.options.borderWidth||0;if(!t.length)return a;var o=t[0].size(this.resolveDataElementOptions(0)),s=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(a,o,s)/2}}]),n}(uy);(0,Be.Z)(Cy,"id","scatter"),(0,Be.Z)(Cy,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),(0,Be.Z)(Cy,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});function Ey(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var Oy=function(){function e(t){kp(this,e),this.options=t||{}}return po(e,[{key:"init",value:function(){}},{key:"formats",value:function(){return Ey()}},{key:"parse",value:function(){return Ey()}},{key:"format",value:function(){return Ey()}},{key:"add",value:function(){return Ey()}},{key:"diff",value:function(){return Ey()}},{key:"startOf",value:function(){return Ey()}},{key:"endOf",value:function(){return Ey()}}],[{key:"override",value:function(t){Object.assign(e.prototype,t)}}]),e}(),Py={_date:Oy};function My(e,t,n,r){var i=e.controller,a=e.data,o=e._sorted,s=i._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&o&&a.length){var l=s._reversePixels?Qv:Xv;if(!r)return l(a,t,n);if(i._sharedOptions){var u=a[0],c="function"===typeof u.getRange&&u.getRange(t);if(c){var f=l(a,t,n-c),d=l(a,t,n+c);return{lo:f.lo,hi:d.hi}}}}return{lo:0,hi:a.length-1}}function Ty(e,t,n,r,i){for(var a=e.getSortedVisibleDatasetMetas(),o=n[t],s=0,l=a.length;s<l;++s)for(var u=a[s],c=u.index,f=u.data,d=My(a[s],t,o,i),h=d.lo,p=d.hi,v=h;v<=p;++v){var m=f[v];m.skip||r(m,c,v)}}function jy(e,t,n,r,i){var a=[];if(!i&&!e.isPointInArea(t))return a;return Ty(e,n,t,(function(n,o,s){(i||Am(n,e.chartArea,0))&&n.inRange(t.x,t.y,r)&&a.push({element:n,datasetIndex:o,index:s})}),!0),a}function Ry(e,t,n,r,i,a){var o=[],s=function(e){var t=-1!==e.indexOf("x"),n=-1!==e.indexOf("y");return function(e,r){var i=t?Math.abs(e.x-r.x):0,a=n?Math.abs(e.y-r.y):0;return Math.sqrt(Math.pow(i,2)+Math.pow(a,2))}}(n),l=Number.POSITIVE_INFINITY;return Ty(e,n,t,(function(n,u,c){var f=n.inRange(t.x,t.y,i);if(!r||f){var d=n.getCenterPoint(i);if(!!a||e.isPointInArea(d)||f){var h=s(t,d);h<l?(o=[{element:n,datasetIndex:u,index:c}],l=h):h===l&&o.push({element:n,datasetIndex:u,index:c})}}})),o}function Ay(e,t,n,r,i,a){return a||e.isPointInArea(t)?"r"!==n||r?Ry(e,t,n,r,i,a):function(e,t,n,r){var i=[];return Ty(e,n,t,(function(e,n,a){var o=e.getProps(["startAngle","endAngle"],r),s=o.startAngle,l=o.endAngle;Kv(Zv(e,{x:t.x,y:t.y}).angle,s,l)&&i.push({element:e,datasetIndex:n,index:a})})),i}(e,t,n,i):[]}function Ny(e,t,n,r,i){var a=[],o="x"===n?"inXRange":"inYRange",s=!1;return Ty(e,n,t,(function(e,r,l){e[o](t[n],i)&&(a.push({element:e,datasetIndex:r,index:l}),s=s||e.inRange(t.x,t.y,i))})),r&&!s?[]:a}var Dy={evaluateInteractionItems:Ty,modes:{index:function(e,t,n,r){var i=Og(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?jy(e,i,a,r,o):Ay(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach((function(e){var t=s[0].index,n=e.data[t];n&&!n.skip&&l.push({element:n,datasetIndex:e.index,index:t})})),l):[]},dataset:function(e,t,n,r){var i=Og(t,e),a=n.axis||"xy",o=n.includeInvisible||!1,s=n.intersect?jy(e,i,a,r,o):Ay(e,i,a,!1,r,o);if(s.length>0){var l=s[0].datasetIndex,u=e.getDatasetMeta(l).data;s=[];for(var c=0;c<u.length;++c)s.push({element:u[c],datasetIndex:l,index:c})}return s},point:function(e,t,n,r){return jy(e,Og(t,e),n.axis||"xy",r,n.includeInvisible||!1)},nearest:function(e,t,n,r){var i=Og(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;return Ay(e,i,a,n.intersect,r,o)},x:function(e,t,n,r){return Ny(e,Og(t,e),"x",n.intersect,r)},y:function(e,t,n,r){return Ny(e,Og(t,e),"y",n.intersect,r)}}},Ly=["left","top","right","bottom"];function Iy(e,t){return e.filter((function(e){return e.pos===t}))}function zy(e,t){return e.filter((function(e){return-1===Ly.indexOf(e.pos)&&e.box.axis===t}))}function Fy(e,t){return e.sort((function(e,n){var r=t?n:e,i=t?e:n;return r.weight===i.weight?r.index-i.index:r.weight-i.weight}))}function By(e,t){var n,r,i,a=function(e){var t,n={},r=zc(e);try{for(r.s();!(t=r.n()).done;){var i=t.value,a=i.stack,o=i.pos,s=i.stackWeight;if(a&&Ly.includes(o)){var l=n[a]||(n[a]={count:0,placed:0,weight:0,size:0});l.count++,l.weight+=s}}}catch(u){r.e(u)}finally{r.f()}return n}(e),o=t.vBoxMaxWidth,s=t.hBoxMaxHeight;for(n=0,r=e.length;n<r;++n){var l=(i=e[n]).box.fullSize,u=a[i.stack],c=u&&i.stackWeight/u.weight;i.horizontal?(i.width=c?c*o:l&&t.availableWidth,i.height=s):(i.width=o,i.height=c?c*s:l&&t.availableHeight)}return a}function Wy(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function Vy(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function Zy(e,t,n,r){var i=n.pos,a=n.box,o=e.maxPadding;if(!av(i)){n.size&&(e[i]-=n.size);var s=r[n.stack]||{size:0,count:1};s.size=Math.max(s.size,n.horizontal?a.height:a.width),n.size=s.size/s.count,e[i]+=n.size}a.getPadding&&Vy(o,a.getPadding());var l=Math.max(0,t.outerWidth-Wy(o,e,"left","right")),u=Math.max(0,t.outerHeight-Wy(o,e,"top","bottom")),c=l!==e.w,f=u!==e.h;return e.w=l,e.h=u,n.horizontal?{same:c,other:f}:{same:f,other:c}}function Hy(e,t){var n=t.maxPadding;function r(e){var r={left:0,top:0,right:0,bottom:0};return e.forEach((function(e){r[e]=Math.max(t[e],n[e])})),r}return r(e?["left","right"]:["top","bottom"])}function $y(e,t,n,r){var i,a,o,s,l,u,c=[];for(i=0,a=e.length,l=0;i<a;++i){(s=(o=e[i]).box).update(o.width||t.w,o.height||t.h,Hy(o.horizontal,t));var f=Zy(t,n,o,r),d=f.same,h=f.other;l|=d&&c.length,u=u||h,s.fullSize||c.push(o)}return l&&$y(c,t,n,r)||u}function Uy(e,t,n,r,i){e.top=n,e.left=t,e.right=t+r,e.bottom=n+i,e.width=r,e.height=i}function Ky(e,t,n,r){var i,a=n.padding,o=t.x,s=t.y,l=zc(e);try{for(l.s();!(i=l.n()).done;){var u=i.value,c=u.box,f=r[u.stack]||{count:1,placed:0,weight:1},d=u.stackWeight/f.weight||1;if(u.horizontal){var h=t.w*d,p=f.size||c.height;Sv(f.start)&&(s=f.start),c.fullSize?Uy(c,a.left,s,n.outerWidth-a.right-a.left,p):Uy(c,t.left+f.placed,s,h,p),f.start=s,f.placed+=h,s=c.bottom}else{var v=t.h*d,m=f.size||c.width;Sv(f.start)&&(o=f.start),c.fullSize?Uy(c,o,a.top,m,n.outerHeight-a.bottom-a.top):Uy(c,o,t.top+f.placed,m,v),f.start=o,f.placed+=v,o=c.right}}}catch(g){l.e(g)}finally{l.f()}t.x=o,t.y=s}var qy={addBox:function(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw:function(e){t.draw(e)}}]},e.boxes.push(t)},removeBox:function(e,t){var n=e.boxes?e.boxes.indexOf(t):-1;-1!==n&&e.boxes.splice(n,1)},configure:function(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update:function(e,t,n,r){if(e){var i=Ym(e.options.layout.padding),a=Math.max(t-i.width,0),o=Math.max(n-i.height,0),s=function(e){var t=function(e){var t,n,r,i,a,o,s=[];for(t=0,n=(e||[]).length;t<n;++t){var l=r=e[t];i=l.position;var u=l.options;a=u.stack;var c=u.stackWeight;o=void 0===c?1:c,s.push({index:t,box:r,pos:i,horizontal:r.isHorizontal(),weight:r.weight,stack:a&&i+a,stackWeight:o})}return s}(e),n=Fy(t.filter((function(e){return e.box.fullSize})),!0),r=Fy(Iy(t,"left"),!0),i=Fy(Iy(t,"right")),a=Fy(Iy(t,"top"),!0),o=Fy(Iy(t,"bottom")),s=zy(t,"x"),l=zy(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Iy(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}(e.boxes),l=s.vertical,u=s.horizontal;fv(e.boxes,(function(e){"function"===typeof e.beforeLayout&&e.beforeLayout()}));var c=l.reduce((function(e,t){return t.box.options&&!1===t.box.options.display?e:e+1}),0)||1,f=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/c,hBoxMaxHeight:o/2}),d=Object.assign({},i);Vy(d,Ym(r));var h=Object.assign({maxPadding:d,w:a,h:o,x:i.left,y:i.top},i),p=By(l.concat(u),f);$y(s.fullSize,h,f,p),$y(l,h,f,p),$y(u,h,f,p)&&$y(l,h,f,p),function(e){var t=e.maxPadding;function n(n){var r=Math.max(t[n]-e[n],0);return e[n]+=r,r}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}(h),Ky(s.leftAndTop,h,f,p),h.x+=h.w,h.y+=h.h,Ky(s.rightAndBottom,h,f,p),e.chartArea={left:h.left,top:h.top,right:h.left+h.w,bottom:h.top+h.h,height:h.h,width:h.w},fv(s.chartArea,(function(t){var n=t.box;Object.assign(n,e.chartArea),n.update(h.w,h.h,{left:0,top:0,right:0,bottom:0})}))}}},Yy=function(){function e(){kp(this,e)}return po(e,[{key:"acquireContext",value:function(e,t){}},{key:"releaseContext",value:function(e){return!1}},{key:"addEventListener",value:function(e,t,n){}},{key:"removeEventListener",value:function(e,t,n){}},{key:"getDevicePixelRatio",value:function(){return 1}},{key:"getMaximumSize",value:function(e,t,n,r){return t=Math.max(0,t||e.width),n=n||e.height,{width:t,height:Math.max(0,r?Math.floor(t/r):n)}}},{key:"isAttached",value:function(e){return!0}},{key:"updateConfig",value:function(e){}}]),e}(),Gy=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"acquireContext",value:function(e){return e&&e.getContext&&e.getContext("2d")||null}},{key:"updateConfig",value:function(e){e.options.animation=!1}}]),n}(Yy),Xy="$chartjs",Qy={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Jy=function(e){return null===e||""===e};var eb=!!jg&&{passive:!0};function tb(e,t,n){e.canvas.removeEventListener(t,n,eb)}function nb(e,t){var n,r=zc(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i===t||i.contains(t))return!0}}catch(a){r.e(a)}finally{r.f()}}function rb(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=zc(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||nb(o.addedNodes,r))&&!nb(o.removedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}function ib(e,t,n){var r=e.canvas,i=new MutationObserver((function(e){var t,i=!1,a=zc(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;i=(i=i||nb(o.removedNodes,r))&&!nb(o.addedNodes,r)}}catch(s){a.e(s)}finally{a.f()}i&&n()}));return i.observe(document,{childList:!0,subtree:!0}),i}var ab=new Map,ob=0;function sb(){var e=window.devicePixelRatio;e!==ob&&(ob=e,ab.forEach((function(t,n){n.currentDevicePixelRatio!==e&&t()})))}function lb(e,t,n){var r=e.canvas,i=r&&kg(r);if(i){var a=rm((function(e,t){var r=i.clientWidth;n(e,t),r<i.clientWidth&&n()}),window),o=new ResizeObserver((function(e){var t=e[0],n=t.contentRect.width,r=t.contentRect.height;0===n&&0===r||a(n,r)}));return o.observe(i),function(e,t){ab.size||window.addEventListener("resize",sb),ab.set(e,t)}(e,a),o}}function ub(e,t,n){n&&n.disconnect(),"resize"===t&&function(e){ab.delete(e),ab.size||window.removeEventListener("resize",sb)}(e)}function cb(e,t,n){var r=e.canvas,i=rm((function(t){null!==e.ctx&&n(function(e,t){var n=Qy[e.type]||e.type,r=Og(e,t),i=r.x,a=r.y;return{type:n,chart:t,native:e,x:void 0!==i?i:null,y:void 0!==a?a:null}}(t,e))}),e);return function(e,t,n){e.addEventListener(t,n,eb)}(r,t,i),i}var fb=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"acquireContext",value:function(e,t){var n=e&&e.getContext&&e.getContext("2d");return n&&n.canvas===e?(function(e,t){var n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[Xy]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Jy(i)){var a=Rg(e,"width");void 0!==a&&(e.width=a)}if(Jy(r))if(""===e.style.height)e.height=e.width/(t||2);else{var o=Rg(e,"height");void 0!==o&&(e.height=o)}}(e,t),n):null}},{key:"releaseContext",value:function(e){var t=e.canvas;if(!t[Xy])return!1;var n=t[Xy].initial;["height","width"].forEach((function(e){var r=n[e];rv(r)?t.removeAttribute(e):t.setAttribute(e,r)}));var r=n.style||{};return Object.keys(r).forEach((function(e){t.style[e]=r[e]})),t.width=t.width,delete t[Xy],!0}},{key:"addEventListener",value:function(e,t,n){this.removeEventListener(e,t);var r=e.$proxies||(e.$proxies={}),i={attach:rb,detach:ib,resize:lb}[t]||cb;r[t]=i(e,t,n)}},{key:"removeEventListener",value:function(e,t){var n=e.$proxies||(e.$proxies={}),r=n[t];r&&(({attach:ub,detach:ub,resize:ub}[t]||tb)(e,t,r),n[t]=void 0)}},{key:"getDevicePixelRatio",value:function(){return window.devicePixelRatio}},{key:"getMaximumSize",value:function(e,t,n,r){return Mg(e,t,n,r)}},{key:"isAttached",value:function(e){var t=kg(e);return!(!t||!t.isConnected)}}]),n}(Yy);var db=function(){function e(){kp(this,e),(0,Be.Z)(this,"active",!1)}return po(e,[{key:"tooltipPosition",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"hasValue",value:function(){return zv(this.x)&&zv(this.y)}},{key:"getProps",value:function(e,t){var n=this,r=this.$animations;if(!t||!r)return this;var i={};return e.forEach((function(e){i[e]=r[e]&&r[e].active()?r[e]._to:n[e]})),i}}]),e}();function hb(e,t){var n=e.options.ticks,r=function(e){var t=e.options.offset,n=e._tickSize(),r=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(r,i))}(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?function(e){var t,n,r=[];for(t=0,n=e.length;t<n;t++)e[t].major&&r.push(t);return r}(t):[],o=a.length,s=a[0],l=a[o-1],u=[];if(o>i)return function(e,t,n,r){var i,a=0,o=n[0];for(r=Math.ceil(r),i=0;i<e.length;i++)i===o&&(t.push(e[i]),o=n[++a*r])}(t,u,a,o/i),u;var c=function(e,t,n){var r=function(e){var t,n,r=e.length;if(r<2)return!1;for(n=e[0],t=1;t<r;++t)if(e[t]-e[t-1]!==n)return!1;return n}(e),i=t.length/n;if(!r)return Math.max(i,1);for(var a=function(e){var t,n=[],r=Math.sqrt(e);for(t=1;t<r;t++)e%t===0&&(n.push(t),n.push(e/t));return r===(0|r)&&n.push(r),n.sort((function(e,t){return e-t})).pop(),n}(r),o=0,s=a.length-1;o<s;o++){var l=a[o];if(l>i)return l}return Math.max(i,1)}(a,t,i);if(o>0){var f,d,h=o>1?Math.round((l-s)/(o-1)):null;for(pb(t,u,c,rv(h)?0:s-h,s),f=0,d=o-1;f<d;f++)pb(t,u,c,a[f],a[f+1]);return pb(t,u,c,l,rv(h)?t.length:l+h),u}return pb(t,u,c),u}function pb(e,t,n,r,i){var a,o,s,l=lv(r,0),u=Math.min(lv(i,e.length),e.length),c=0;for(n=Math.ceil(n),i&&(n=(a=i-r)/Math.floor(a/n)),s=l;s<0;)c++,s=Math.round(l+c*n);for(o=Math.max(l,0);o<u;o++)o===s&&(t.push(e[o]),c++,s=Math.round(l+c*n))}(0,Be.Z)(db,"defaults",{}),(0,Be.Z)(db,"defaultRoutes",void 0);var vb=function(e,t,n){return"top"===t||"left"===t?e[t]+n:e[t]-n},mb=function(e,t){return Math.min(t||e,e)};function gb(e,t){for(var n=[],r=e.length/t,i=e.length,a=0;a<i;a+=r)n.push(e[Math.floor(a)]);return n}function yb(e,t,n){var r,i=e.ticks.length,a=Math.min(t,i-1),o=e._startPixel,s=e._endPixel,l=1e-6,u=e.getPixelForTick(a);if(!(n&&(r=1===i?Math.max(u-o,s-u):0===t?(e.getPixelForTick(1)-u)/2:(u-e.getPixelForTick(a-1))/2,(u+=a<t?r:-r)<o-l||u>s+l)))return u}function bb(e){return e.drawTicks?e.tickLength:0}function xb(e,t){if(!e.display)return 0;var n=Gm(e.font,t),r=Ym(e.padding);return(iv(e.text)?e.text.length:1)*n.lineHeight+r.height}function kb(e,t,n){var r=im(e);return(n&&"right"!==t||!n&&"right"===t)&&(r=function(e){return"left"===e?"right":"right"===e?"left":e}(r)),r}var wb=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).id=e.id,r.type=e.type,r.options=void 0,r.ctx=e.ctx,r.chart=e.chart,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.width=void 0,r.height=void 0,r._margins={left:0,right:0,top:0,bottom:0},r.maxWidth=void 0,r.maxHeight=void 0,r.paddingTop=void 0,r.paddingBottom=void 0,r.paddingLeft=void 0,r.paddingRight=void 0,r.axis=void 0,r.labelRotation=void 0,r.min=void 0,r.max=void 0,r._range=void 0,r.ticks=[],r._gridLineItems=null,r._labelItems=null,r._labelSizes=null,r._length=0,r._maxLength=0,r._longestTextCache={},r._startPixel=void 0,r._endPixel=void 0,r._reversePixels=!1,r._userMax=void 0,r._userMin=void 0,r._suggestedMax=void 0,r._suggestedMin=void 0,r._ticksLength=0,r._borderValue=0,r._cache={},r._dataLimitsCached=!1,r.$context=void 0,r}return po(n,[{key:"init",value:function(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}},{key:"parse",value:function(e,t){return e}},{key:"getUserBounds",value:function(){var e=this._userMin,t=this._userMax,n=this._suggestedMin,r=this._suggestedMax;return e=sv(e,Number.POSITIVE_INFINITY),t=sv(t,Number.NEGATIVE_INFINITY),n=sv(n,Number.POSITIVE_INFINITY),r=sv(r,Number.NEGATIVE_INFINITY),{min:sv(e,n),max:sv(t,r),minDefined:ov(e),maxDefined:ov(t)}}},{key:"getMinMax",value:function(e){var t,n=this.getUserBounds(),r=n.min,i=n.max,a=n.minDefined,o=n.maxDefined;if(a&&o)return{min:r,max:i};for(var s=this.getMatchingVisibleMetas(),l=0,u=s.length;l<u;++l)t=s[l].controller.getMinMax(this,e),a||(r=Math.min(r,t.min)),o||(i=Math.max(i,t.max));return{min:sv(r=o&&r>i?i:r,sv(i=a&&r>i?r:i,r)),max:sv(i,sv(r,i))}}},{key:"getPadding",value:function(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}},{key:"getTicks",value:function(){return this.ticks}},{key:"getLabels",value:function(){var e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}},{key:"getLabelItems",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.chartArea;return this._labelItems||(this._labelItems=this._computeLabelItems(e))}},{key:"beforeLayout",value:function(){this._cache={},this._dataLimitsCached=!1}},{key:"beforeUpdate",value:function(){cv(this.options.beforeUpdate,[this])}},{key:"update",value:function(e,t,n){var r=this.options,i=r.beginAtZero,a=r.grace,o=r.ticks,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,n){var r=e.min,i=e.max,a=uv(t,(i-r)/2),o=function(e,t){return n&&0===e?0:e+t};return{min:o(r,-Math.abs(a)),max:o(i,a)}}(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();var l=s<this.ticks.length;this._convertTicksToLabels(l?gb(this.ticks,s):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=hb(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}},{key:"configure",value:function(){var e,t,n=this.options.reverse;this.isHorizontal()?(e=this.left,t=this.right):(e=this.top,t=this.bottom,n=!n),this._startPixel=e,this._endPixel=t,this._reversePixels=n,this._length=t-e,this._alignToPixels=this.options.alignToPixels}},{key:"afterUpdate",value:function(){cv(this.options.afterUpdate,[this])}},{key:"beforeSetDimensions",value:function(){cv(this.options.beforeSetDimensions,[this])}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}},{key:"afterSetDimensions",value:function(){cv(this.options.afterSetDimensions,[this])}},{key:"_callHooks",value:function(e){this.chart.notifyPlugins(e,this.getContext()),cv(this.options[e],[this])}},{key:"beforeDataLimits",value:function(){this._callHooks("beforeDataLimits")}},{key:"determineDataLimits",value:function(){}},{key:"afterDataLimits",value:function(){this._callHooks("afterDataLimits")}},{key:"beforeBuildTicks",value:function(){this._callHooks("beforeBuildTicks")}},{key:"buildTicks",value:function(){return[]}},{key:"afterBuildTicks",value:function(){this._callHooks("afterBuildTicks")}},{key:"beforeTickToLabelConversion",value:function(){cv(this.options.beforeTickToLabelConversion,[this])}},{key:"generateTickLabels",value:function(e){var t,n,r,i=this.options.ticks;for(t=0,n=e.length;t<n;t++)(r=e[t]).label=cv(i.callback,[r.value,t,e],this)}},{key:"afterTickToLabelConversion",value:function(){cv(this.options.afterTickToLabelConversion,[this])}},{key:"beforeCalculateLabelRotation",value:function(){cv(this.options.beforeCalculateLabelRotation,[this])}},{key:"calculateLabelRotation",value:function(){var e,t,n,r=this.options,i=r.ticks,a=mb(this.ticks.length,r.ticks.maxTicksLimit),o=i.minRotation||0,s=i.maxRotation,l=o;if(!this._isVisible()||!i.display||o>=s||a<=1||!this.isHorizontal())this.labelRotation=o;else{var u=this._getLabelSizes(),c=u.widest.width,f=u.highest.height,d=qv(this.chart.width-c,0,this.maxWidth);c+6>(e=r.offset?this.maxWidth/a:d/(a-1))&&(e=d/(a-(r.offset?.5:1)),t=this.maxHeight-bb(r.grid)-i.padding-xb(r.title,this.chart.options.font),n=Math.sqrt(c*c+f*f),l=Wv(Math.min(Math.asin(qv((u.highest.height+6)/e,-1,1)),Math.asin(qv(t/n,-1,1))-Math.asin(qv(f/n,-1,1)))),l=Math.max(o,Math.min(s,l))),this.labelRotation=l}}},{key:"afterCalculateLabelRotation",value:function(){cv(this.options.afterCalculateLabelRotation,[this])}},{key:"afterAutoSkip",value:function(){}},{key:"beforeFit",value:function(){cv(this.options.beforeFit,[this])}},{key:"fit",value:function(){var e={width:0,height:0},t=this.chart,n=this.options,r=n.ticks,i=n.title,a=n.grid,o=this._isVisible(),s=this.isHorizontal();if(o){var l=xb(i,t.options.font);if(s?(e.width=this.maxWidth,e.height=bb(a)+l):(e.height=this.maxHeight,e.width=bb(a)+l),r.display&&this.ticks.length){var u=this._getLabelSizes(),c=u.first,f=u.last,d=u.widest,h=u.highest,p=2*r.padding,v=Bv(this.labelRotation),m=Math.cos(v),g=Math.sin(v);if(s){var y=r.mirror?0:g*d.width+m*h.height;e.height=Math.min(this.maxHeight,e.height+y+p)}else{var b=r.mirror?0:m*d.width+g*h.height;e.width=Math.min(this.maxWidth,e.width+b+p)}this._calculatePadding(c,f,g,m)}}this._handleMargins(),s?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}},{key:"_calculatePadding",value:function(e,t,n,r){var i=this.options,a=i.ticks,o=a.align,s=a.padding,l=i.position,u=0!==this.labelRotation,c="top"!==l&&"x"===this.axis;if(this.isHorizontal()){var f=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1),h=0,p=0;u?c?(h=r*e.width,p=n*t.height):(h=n*e.height,p=r*t.width):"start"===o?p=t.width:"end"===o?h=e.width:"inner"!==o&&(h=e.width/2,p=t.width/2),this.paddingLeft=Math.max((h-f+s)*this.width/(this.width-f),0),this.paddingRight=Math.max((p-d+s)*this.width/(this.width-d),0)}else{var v=t.height/2,m=e.height/2;"start"===o?(v=0,m=e.height):"end"===o&&(v=t.height,m=0),this.paddingTop=v+s,this.paddingBottom=m+s}}},{key:"_handleMargins",value:function(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}},{key:"afterFit",value:function(){cv(this.options.afterFit,[this])}},{key:"isHorizontal",value:function(){var e=this.options,t=e.axis,n=e.position;return"top"===n||"bottom"===n||"x"===t}},{key:"isFullSize",value:function(){return this.options.fullSize}},{key:"_convertTicksToLabels",value:function(e){var t,n;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,n=e.length;t<n;t++)rv(e[t].label)&&(e.splice(t,1),n--,t--);this.afterTickToLabelConversion()}},{key:"_getLabelSizes",value:function(){var e=this._labelSizes;if(!e){var t=this.options.ticks.sampleSize,n=this.ticks;t<n.length&&(n=gb(n,t)),this._labelSizes=e=this._computeLabelSizes(n,n.length,this.options.ticks.maxTicksLimit)}return e}},{key:"_computeLabelSizes",value:function(e,t,n){var r,i,a,o,s,l,u,c,f,d,h,p=this.ctx,v=this._longestTextCache,m=[],g=[],y=Math.floor(t/mb(t,n)),b=0,x=0;for(r=0;r<t;r+=y){if(o=e[r].label,s=this._resolveTickFontOptions(r),p.font=l=s.string,u=v[l]=v[l]||{data:{},gc:[]},c=s.lineHeight,f=d=0,rv(o)||iv(o)){if(iv(o))for(i=0,a=o.length;i<a;++i)rv(h=o[i])||iv(h)||(f=Om(p,u.data,u.gc,f,h),d+=c)}else f=Om(p,u.data,u.gc,f,o),d=c;m.push(f),g.push(d),b=Math.max(f,b),x=Math.max(d,x)}!function(e,t){fv(e,(function(e){var n,r=e.gc,i=r.length/2;if(i>t){for(n=0;n<i;++n)delete e.data[r[n]];r.splice(0,i)}}))}(v,t);var k=m.indexOf(b),w=g.indexOf(x),S=function(e){return{width:m[e]||0,height:g[e]||0}};return{first:S(0),last:S(t-1),widest:S(k),highest:S(w),widths:m,heights:g}}},{key:"getLabelForValue",value:function(e){return e}},{key:"getPixelForValue",value:function(e,t){return NaN}},{key:"getValueForPixel",value:function(e){}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getPixelForDecimal",value:function(e){this._reversePixels&&(e=1-e);var t=this._startPixel+e*this._length;return qv(this._alignToPixels?Mm(this.chart,t,0):t,-32768,32767)}},{key:"getDecimalForPixel",value:function(e){var t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}},{key:"getBasePixel",value:function(){return this.getPixelForValue(this.getBaseValue())}},{key:"getBaseValue",value:function(){var e=this.min,t=this.max;return e<0&&t<0?t:e>0&&t>0?e:0}},{key:"getContext",value:function(e){var t=this.ticks||[];if(e>=0&&e<t.length){var n=t[e];return n.$context||(n.$context=function(e,t,n){return Qm(e,{tick:n,index:t,type:"tick"})}(this.getContext(),e,n))}return this.$context||(this.$context=Qm(this.chart.getContext(),{scale:this,type:"scale"}))}},{key:"_tickSize",value:function(){var e=this.options.ticks,t=Bv(this.labelRotation),n=Math.abs(Math.cos(t)),r=Math.abs(Math.sin(t)),i=this._getLabelSizes(),a=e.autoSkipPadding||0,o=i?i.widest.width+a:0,s=i?i.highest.height+a:0;return this.isHorizontal()?s*n>o*r?o/n:s/r:s*r<o*n?s/n:o/r}},{key:"_isVisible",value:function(){var e=this.options.display;return"auto"!==e?!!e:this.getMatchingVisibleMetas().length>0}},{key:"_computeGridLineItems",value:function(e){var t,n,r,i,a,o,s,l,u,c,f,d,h=this.axis,p=this.chart,v=this.options,m=v.grid,g=v.position,y=v.border,b=m.offset,x=this.isHorizontal(),k=this.ticks.length+(b?1:0),w=bb(m),S=[],_=y.setContext(this.getContext()),C=_.display?_.width:0,E=C/2,O=function(e){return Mm(p,e,C)};if("top"===g)t=O(this.bottom),o=this.bottom-w,l=t-E,c=O(e.top)+E,d=e.bottom;else if("bottom"===g)t=O(this.top),c=e.top,d=O(e.bottom)-E,o=t+E,l=this.top+w;else if("left"===g)t=O(this.right),a=this.right-w,s=t-E,u=O(e.left)+E,f=e.right;else if("right"===g)t=O(this.left),u=e.left,f=O(e.right)-E,a=t+E,s=this.left+w;else if("x"===h){if("center"===g)t=O((e.top+e.bottom)/2+.5);else if(av(g)){var P=Object.keys(g)[0],M=g[P];t=O(this.chart.scales[P].getPixelForValue(M))}c=e.top,d=e.bottom,l=(o=t+E)+w}else if("y"===h){if("center"===g)t=O((e.left+e.right)/2);else if(av(g)){var T=Object.keys(g)[0],j=g[T];t=O(this.chart.scales[T].getPixelForValue(j))}s=(a=t-E)-w,u=e.left,f=e.right}var R=lv(v.ticks.maxTicksLimit,k),A=Math.max(1,Math.ceil(k/R));for(n=0;n<k;n+=A){var N=this.getContext(n),D=m.setContext(N),L=y.setContext(N),I=D.lineWidth,z=D.color,F=L.dash||[],B=L.dashOffset,W=D.tickWidth,V=D.tickColor,Z=D.tickBorderDash||[],H=D.tickBorderDashOffset;void 0!==(r=yb(this,n,b))&&(i=Mm(p,r,I),x?a=s=u=f=i:o=l=c=d=i,S.push({tx1:a,ty1:o,tx2:s,ty2:l,x1:u,y1:c,x2:f,y2:d,width:I,color:z,borderDash:F,borderDashOffset:B,tickWidth:W,tickColor:V,tickBorderDash:Z,tickBorderDashOffset:H}))}return this._ticksLength=k,this._borderValue=t,S}},{key:"_computeLabelItems",value:function(e){var t,n,r,i,a,o,s,l,u,c,f,d=this.axis,h=this.options,p=h.position,v=h.ticks,m=this.isHorizontal(),g=this.ticks,y=v.align,b=v.crossAlign,x=v.padding,k=v.mirror,w=bb(h.grid),S=w+x,_=k?-x:S,C=-Bv(this.labelRotation),E=[],O="middle";if("top"===p)a=this.bottom-_,o=this._getXAxisLabelAlignment();else if("bottom"===p)a=this.top+_,o=this._getXAxisLabelAlignment();else if("left"===p){var P=this._getYAxisLabelAlignment(w);o=P.textAlign,i=P.x}else if("right"===p){var M=this._getYAxisLabelAlignment(w);o=M.textAlign,i=M.x}else if("x"===d){if("center"===p)a=(e.top+e.bottom)/2+S;else if(av(p)){var T=Object.keys(p)[0],j=p[T];a=this.chart.scales[T].getPixelForValue(j)+S}o=this._getXAxisLabelAlignment()}else if("y"===d){if("center"===p)i=(e.left+e.right)/2-S;else if(av(p)){var R=Object.keys(p)[0],A=p[R];i=this.chart.scales[R].getPixelForValue(A)}o=this._getYAxisLabelAlignment(w).textAlign}"y"===d&&("start"===y?O="top":"end"===y&&(O="bottom"));var N=this._getLabelSizes();for(t=0,n=g.length;t<n;++t){r=g[t].label;var D=v.setContext(this.getContext(t));s=this.getPixelForTick(t)+v.labelOffset,u=(l=this._resolveTickFontOptions(t)).lineHeight;var L=(c=iv(r)?r.length:1)/2,I=D.color,z=D.textStrokeColor,F=D.textStrokeWidth,B=o;m?(i=s,"inner"===o&&(B=t===n-1?this.options.reverse?"left":"right":0===t?this.options.reverse?"right":"left":"center"),f="top"===p?"near"===b||0!==C?-c*u+u/2:"center"===b?-N.highest.height/2-L*u+u:-N.highest.height+u/2:"near"===b||0!==C?u/2:"center"===b?N.highest.height/2-L*u:N.highest.height-c*u,k&&(f*=-1),0===C||D.showLabelBackdrop||(i+=u/2*Math.sin(C))):(a=s,f=(1-c)*u/2);var W=void 0;if(D.showLabelBackdrop){var V=Ym(D.backdropPadding),Z=N.heights[t],H=N.widths[t],$=f-V.top,U=0-V.left;switch(O){case"middle":$-=Z/2;break;case"bottom":$-=Z}switch(o){case"center":U-=H/2;break;case"right":U-=H}W={left:U,top:$,width:H+V.width,height:Z+V.height,color:D.backdropColor}}E.push({label:r,font:l,textOffset:f,options:{rotation:C,color:I,strokeColor:z,strokeWidth:F,textAlign:B,textBaseline:O,translation:[i,a],backdrop:W}})}return E}},{key:"_getXAxisLabelAlignment",value:function(){var e=this.options,t=e.position,n=e.ticks;if(-Bv(this.labelRotation))return"top"===t?"left":"right";var r="center";return"start"===n.align?r="left":"end"===n.align?r="right":"inner"===n.align&&(r="inner"),r}},{key:"_getYAxisLabelAlignment",value:function(e){var t,n,r=this.options,i=r.position,a=r.ticks,o=a.crossAlign,s=a.mirror,l=a.padding,u=e+l,c=this._getLabelSizes().widest.width;return"left"===i?s?(n=this.right+l,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n+=c)):(n=this.right-u,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n=this.left)):"right"===i?s?(n=this.left+l,"near"===o?t="right":"center"===o?(t="center",n-=c/2):(t="left",n-=c)):(n=this.left+u,"near"===o?t="left":"center"===o?(t="center",n+=c/2):(t="right",n=this.right)):t="right",{textAlign:t,x:n}}},{key:"_computeLabelArea",value:function(){if(!this.options.ticks.mirror){var e=this.chart,t=this.options.position;return"left"===t||"right"===t?{top:0,left:this.left,bottom:e.height,right:this.right}:"top"===t||"bottom"===t?{top:this.top,left:0,bottom:this.bottom,right:e.width}:void 0}}},{key:"drawBackground",value:function(){var e=this.ctx,t=this.options.backgroundColor,n=this.left,r=this.top,i=this.width,a=this.height;t&&(e.save(),e.fillStyle=t,e.fillRect(n,r,i,a),e.restore())}},{key:"getLineWidthForValue",value:function(e){var t=this.options.grid;if(!this._isVisible()||!t.display)return 0;var n=this.ticks.findIndex((function(t){return t.value===e}));return n>=0?t.setContext(this.getContext(n)).lineWidth:0}},{key:"drawGrid",value:function(e){var t,n,r=this.options.grid,i=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e)),o=function(e,t,n){n.width&&n.color&&(i.save(),i.lineWidth=n.width,i.strokeStyle=n.color,i.setLineDash(n.borderDash||[]),i.lineDashOffset=n.borderDashOffset,i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.stroke(),i.restore())};if(r.display)for(t=0,n=a.length;t<n;++t){var s=a[t];r.drawOnChartArea&&o({x:s.x1,y:s.y1},{x:s.x2,y:s.y2},s),r.drawTicks&&o({x:s.tx1,y:s.ty1},{x:s.tx2,y:s.ty2},{color:s.tickColor,width:s.tickWidth,borderDash:s.tickBorderDash,borderDashOffset:s.tickBorderDashOffset})}}},{key:"drawBorder",value:function(){var e=this.chart,t=this.ctx,n=this.options,r=n.border,i=n.grid,a=r.setContext(this.getContext()),o=r.display?a.width:0;if(o){var s,l,u,c,f=i.setContext(this.getContext(0)).lineWidth,d=this._borderValue;this.isHorizontal()?(s=Mm(e,this.left,o)-o/2,l=Mm(e,this.right,f)+f/2,u=c=d):(u=Mm(e,this.top,o)-o/2,c=Mm(e,this.bottom,f)+f/2,s=l=d),t.save(),t.lineWidth=a.width,t.strokeStyle=a.color,t.beginPath(),t.moveTo(s,u),t.lineTo(l,c),t.stroke(),t.restore()}}},{key:"drawLabels",value:function(e){if(this.options.ticks.display){var t=this.ctx,n=this._computeLabelArea();n&&Nm(t,n);var r,i=zc(this.getLabelItems(e));try{for(i.s();!(r=i.n()).done;){var a=r.value,o=a.options,s=a.font;zm(t,a.label,0,a.textOffset,s,o)}}catch(l){i.e(l)}finally{i.f()}n&&Dm(t)}}},{key:"drawTitle",value:function(){var e=this.ctx,t=this.options,n=t.position,r=t.title,i=t.reverse;if(r.display){var a=Gm(r.font),o=Ym(r.padding),s=r.align,l=a.lineHeight/2;"bottom"===n||"center"===n||av(n)?(l+=o.bottom,iv(r.text)&&(l+=a.lineHeight*(r.text.length-1))):l+=o.top;var u=function(e,t,n,r){var i,a,o,s=e.top,l=e.left,u=e.bottom,c=e.right,f=e.chart,d=f.chartArea,h=f.scales,p=0,v=u-s,m=c-l;if(e.isHorizontal()){if(a=am(r,l,c),av(n)){var g=Object.keys(n)[0],y=n[g];o=h[g].getPixelForValue(y)+v-t}else o="center"===n?(d.bottom+d.top)/2+v-t:vb(e,n,t);i=c-l}else{if(av(n)){var b=Object.keys(n)[0],x=n[b];a=h[b].getPixelForValue(x)-m+t}else a="center"===n?(d.left+d.right)/2-m+t:vb(e,n,t);o=am(r,u,s),p="left"===n?-jv:jv}return{titleX:a,titleY:o,maxWidth:i,rotation:p}}(this,l,n,s),c=u.titleX,f=u.titleY,d=u.maxWidth,h=u.rotation;zm(e,r.text,0,0,a,{color:r.color,maxWidth:d,rotation:h,textAlign:kb(s,n,i),textBaseline:"middle",translation:[c,f]})}}},{key:"draw",value:function(e){this._isVisible()&&(this.drawBackground(),this.drawGrid(e),this.drawBorder(),this.drawTitle(),this.drawLabels(e))}},{key:"_layers",value:function(){var e=this,t=this.options,r=t.ticks&&t.ticks.z||0,i=lv(t.grid&&t.grid.z,-1),a=lv(t.border&&t.border.z,0);return this._isVisible()&&this.draw===n.prototype.draw?[{z:i,draw:function(t){e.drawBackground(),e.drawGrid(t),e.drawTitle()}},{z:a,draw:function(){e.drawBorder()}},{z:r,draw:function(t){e.drawLabels(t)}}]:[{z:r,draw:function(t){e.draw(t)}}]}},{key:"getMatchingVisibleMetas",value:function(e){var t,n,r=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",a=[];for(t=0,n=r.length;t<n;++t){var o=r[t];o[i]!==this.id||e&&o.type!==e||a.push(o)}return a}},{key:"_resolveTickFontOptions",value:function(e){return Gm(this.options.ticks.setContext(this.getContext(e)).font)}},{key:"_maxDigits",value:function(){var e=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/e}}]),n}(db),Sb=function(){function e(t,n,r){kp(this,e),this.type=t,this.scope=n,this.override=r,this.items=Object.create(null)}return po(e,[{key:"isForType",value:function(e){return Object.prototype.isPrototypeOf.call(this.type.prototype,e.prototype)}},{key:"register",value:function(e){var t,n=Object.getPrototypeOf(e);(function(e){return"id"in e&&"defaults"in e})(n)&&(t=this.register(n));var r=this.items,i=e.id,a=this.scope+"."+i;if(!i)throw new Error("class does not have id: "+e);return i in r||(r[i]=e,function(e,t,n){var r=mv(Object.create(null),[n?Em.get(n):{},Em.get(t),e.defaults]);Em.set(t,r),e.defaultRoutes&&function(e,t){Object.keys(t).forEach((function(n){var r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");Em.route(a,i,l,s)}))}(t,e.defaultRoutes);e.descriptors&&Em.describe(t,e.descriptors)}(e,a,t),this.override&&Em.override(e.id,e.overrides)),a}},{key:"get",value:function(e){return this.items[e]}},{key:"unregister",value:function(e){var t=this.items,n=e.id,r=this.scope;n in t&&delete t[n],r&&n in Em[r]&&(delete Em[r][n],this.override&&delete km[n])}}]),e}();var _b=function(){function e(){kp(this,e),this.controllers=new Sb(uy,"datasets",!0),this.elements=new Sb(db,"elements"),this.plugins=new Sb(Object,"plugins"),this.scales=new Sb(wb,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}return po(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t)}},{key:"remove",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t)}},{key:"addControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.controllers)}},{key:"addElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.elements)}},{key:"addPlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.plugins)}},{key:"addScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("register",t,this.scales)}},{key:"getController",value:function(e){return this._get(e,this.controllers,"controller")}},{key:"getElement",value:function(e){return this._get(e,this.elements,"element")}},{key:"getPlugin",value:function(e){return this._get(e,this.plugins,"plugin")}},{key:"getScale",value:function(e){return this._get(e,this.scales,"scale")}},{key:"removeControllers",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.controllers)}},{key:"removeElements",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.elements)}},{key:"removePlugins",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.plugins)}},{key:"removeScales",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this._each("unregister",t,this.scales)}},{key:"_each",value:function(e,t,n){var r=this;(0,fl.Z)(t).forEach((function(t){var i=n||r._getRegistryForType(t);n||i.isForType(t)||i===r.plugins&&t.id?r._exec(e,i,t):fv(t,(function(t){var i=n||r._getRegistryForType(t);r._exec(e,i,t)}))}))}},{key:"_exec",value:function(e,t,n){var r=wv(e);cv(n["before"+r],[],n),t[e](n),cv(n["after"+r],[],n)}},{key:"_getRegistryForType",value:function(e){for(var t=0;t<this._typedRegistries.length;t++){var n=this._typedRegistries[t];if(n.isForType(e))return n}return this.plugins}},{key:"_get",value:function(e,t,n){var r=t.get(e);if(void 0===r)throw new Error('"'+e+'" is not a registered '+n+".");return r}}]),e}(),Cb=new _b,Eb=function(){function e(){kp(this,e),this._init=[]}return po(e,[{key:"notify",value:function(e,t,n,r){"beforeInit"===t&&(this._init=this._createDescriptors(e,!0),this._notify(this._init,e,"install"));var i=r?this._descriptors(e).filter(r):this._descriptors(e),a=this._notify(i,e,t,n);return"afterDestroy"===t&&(this._notify(i,e,"stop"),this._notify(this._init,e,"uninstall")),a}},{key:"_notify",value:function(e,t,n,r){r=r||{};var i,a=zc(e);try{for(a.s();!(i=a.n()).done;){var o=i.value,s=o.plugin;if(!1===cv(s[n],[t,r,o.options],s)&&r.cancelable)return!1}}catch(l){a.e(l)}finally{a.f()}return!0}},{key:"invalidate",value:function(){rv(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}},{key:"_descriptors",value:function(e){if(this._cache)return this._cache;var t=this._cache=this._createDescriptors(e);return this._notifyStateChanges(e),t}},{key:"_createDescriptors",value:function(e,t){var n=e&&e.config,r=lv(n.options&&n.options.plugins,{}),i=function(e){for(var t={},n=[],r=Object.keys(Cb.plugins.items),i=0;i<r.length;i++)n.push(Cb.getPlugin(r[i]));for(var a=e.plugins||[],o=0;o<a.length;o++){var s=a[o];-1===n.indexOf(s)&&(n.push(s),t[s.id]=!0)}return{plugins:n,localIds:t}}(n);return!1!==r||t?function(e,t,n,r){var i,a=t.plugins,o=t.localIds,s=[],l=e.getContext(),u=zc(a);try{for(u.s();!(i=u.n()).done;){var c=i.value,f=c.id,d=Ob(n[f],r);null!==d&&s.push({plugin:c,options:Pb(e.config,{plugin:c,local:o[f]},d,l)})}}catch(h){u.e(h)}finally{u.f()}return s}(e,i,r,t):[]}},{key:"_notifyStateChanges",value:function(e){var t=this._oldCache||[],n=this._cache,r=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.plugin.id===t.plugin.id}))}))};this._notify(r(t,n),e,"stop"),this._notify(r(n,t),e,"start")}}]),e}();function Ob(e,t){return t||!1!==e?!0===e?{}:e:null}function Pb(e,t,n,r){var i=t.plugin,a=t.local,o=e.pluginScopeKeys(i),s=e.getOptionScopes(n,o);return a&&i.defaults&&s.push(i.defaults),e.createResolver(s,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Mb(e,t){var n=Em.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Tb(e,t){if("x"===e||"y"===e||"r"===e)return e;if(e=t.axis||function(e){return"top"===e||"bottom"===e?"x":"left"===e||"right"===e?"y":void 0}(t.position)||e.length>1&&Tb(e[0].toLowerCase(),t),e)return e;throw new Error("Cannot determine type of '".concat(name,"' axis. Please provide 'axis' or 'position' option."))}function jb(e){var t=e.options||(e.options={});t.plugins=lv(t.plugins,{}),t.scales=function(e,t){var n=km[e.type]||{scales:{}},r=t.scales||{},i=Mb(e.type,t),a=Object.create(null);return Object.keys(r).forEach((function(e){var t=r[e];if(!av(t))return console.error("Invalid scale configuration for scale: ".concat(e));if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: ".concat(e));var o=Tb(e,t),s=function(e,t){return e===t?"_index_":"_value_"}(o,i),l=n.scales||{};a[e]=gv(Object.create(null),[{axis:o},t,l[o],l[s]])})),e.data.datasets.forEach((function(n){var i=n.type||e.type,o=n.indexAxis||Mb(i,t),s=(km[i]||{}).scales||{};Object.keys(s).forEach((function(e){var t=function(e,t){var n=e;return"_index_"===e?n=t:"_value_"===e&&(n="x"===t?"y":"x"),n}(e,o),i=n[t+"AxisID"]||t;a[i]=a[i]||Object.create(null),gv(a[i],[{axis:t},r[i],s[e]])}))})),Object.keys(a).forEach((function(e){var t=a[e];gv(t,[Em.scales[t.type],Em.scale])})),a}(e,t)}function Rb(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}var Ab=new Map,Nb=new Set;function Db(e,t){var n=Ab.get(e);return n||(n=t(),Ab.set(e,n),Nb.add(n)),n}var Lb=function(e,t,n){var r=kv(t,n);void 0!==r&&e.add(r)},Ib=function(){function e(t){kp(this,e),this._config=function(e){return(e=e||{}).data=Rb(e.data),jb(e),e}(t),this._scopeCache=new Map,this._resolverCache=new Map}return po(e,[{key:"platform",get:function(){return this._config.platform}},{key:"type",get:function(){return this._config.type},set:function(e){this._config.type=e}},{key:"data",get:function(){return this._config.data},set:function(e){this._config.data=Rb(e)}},{key:"options",get:function(){return this._config.options},set:function(e){this._config.options=e}},{key:"plugins",get:function(){return this._config.plugins}},{key:"update",value:function(){var e=this._config;this.clearCache(),jb(e)}},{key:"clearCache",value:function(){this._scopeCache.clear(),this._resolverCache.clear()}},{key:"datasetScopeKeys",value:function(e){return Db(e,(function(){return[["datasets.".concat(e),""]]}))}},{key:"datasetAnimationScopeKeys",value:function(e,t){return Db("".concat(e,".transition.").concat(t),(function(){return[["datasets.".concat(e,".transitions.").concat(t),"transitions.".concat(t)],["datasets.".concat(e),""]]}))}},{key:"datasetElementScopeKeys",value:function(e,t){return Db("".concat(e,"-").concat(t),(function(){return[["datasets.".concat(e,".elements.").concat(t),"datasets.".concat(e),"elements.".concat(t),""]]}))}},{key:"pluginScopeKeys",value:function(e){var t=e.id,n=this.type;return Db("".concat(n,"-plugin-").concat(t),(function(){return[["plugins.".concat(t)].concat((0,fl.Z)(e.additionalOptionScopes||[]))]}))}},{key:"_cachedScopes",value:function(e,t){var n=this._scopeCache,r=n.get(e);return r&&!t||(r=new Map,n.set(e,r)),r}},{key:"getOptionScopes",value:function(e,t,n){var r=this.options,i=this.type,a=this._cachedScopes(e,n),o=a.get(t);if(o)return o;var s=new Set;t.forEach((function(t){e&&(s.add(e),t.forEach((function(t){return Lb(s,e,t)}))),t.forEach((function(e){return Lb(s,r,e)})),t.forEach((function(e){return Lb(s,km[i]||{},e)})),t.forEach((function(e){return Lb(s,Em,e)})),t.forEach((function(e){return Lb(s,wm,e)}))}));var l=Array.from(s);return 0===l.length&&l.push(Object.create(null)),Nb.has(t)&&a.set(t,l),l}},{key:"chartOptionScopes",value:function(){var e=this.options,t=this.type;return[e,km[t]||{},Em.datasets[t]||{},{type:t},Em,wm]}},{key:"resolveNamedOptions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[""],i={$shared:!0},a=zb(this._resolverCache,e,r),o=a.resolver,s=a.subPrefixes,l=o;(function(e,t){var n,r=tg(e),i=r.isScriptable,a=r.isIndexable,o=zc(t);try{for(o.s();!(n=o.n()).done;){var s=n.value,l=i(s),u=a(s),c=(u||l)&&e[s];if(l&&(_v(c)||Fb(c))||u&&iv(c))return!0}}catch(f){o.e(f)}finally{o.f()}return!1})(o,t)&&(i.$shared=!1,l=eg(o,n=_v(n)?n():n,this.createResolver(e,n,s)));var u,c=zc(t);try{for(c.s();!(u=c.n()).done;){var f=u.value;i[f]=l[f]}}catch(d){c.e(d)}finally{c.f()}return i}},{key:"createResolver",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[""],r=arguments.length>3?arguments[3]:void 0,i=zb(this._resolverCache,e,n).resolver;return av(t)?eg(i,t,void 0,r):i}}]),e}();function zb(e,t,n){var r=e.get(t);r||(r=new Map,e.set(t,r));var i=n.join(),a=r.get(i);a||(a={resolver:Jm(t,n),subPrefixes:n.filter((function(e){return!e.toLowerCase().includes("hover")}))},r.set(i,a));return a}var Fb=function(e){return av(e)&&Object.getOwnPropertyNames(e).reduce((function(t,n){return t||_v(e[n])}),!1)};var Bb=["top","bottom","left","right","chartArea"];function Wb(e,t){return"top"===e||"bottom"===e||-1===Bb.indexOf(e)&&"x"===t}function Vb(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Zb(e){var t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),cv(n&&n.onComplete,[e],t)}function Hb(e){var t=e.chart,n=t.options.animation;cv(n&&n.onProgress,[e],t)}function $b(e){return xg()&&"string"===typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var Ub={},Kb=function(e){var t=$b(e);return Object.values(Ub).filter((function(e){return e.canvas===t})).pop()};function qb(e,t,n){for(var r=0,i=Object.keys(e);r<i.length;r++){var a=i[r],o=+a;if(o>=t){var s=e[a];delete e[a],(n>0||o>t)&&(e[o+n]=s)}}}var Yb=function(){function e(t,n){var r=this;kp(this,e);var i=this.config=new Ib(n),a=$b(t),o=Kb(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");var s=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function(e){return!xg()||"undefined"!==typeof OffscreenCanvas&&e instanceof OffscreenCanvas?Gy:fb}(a)),this.platform.updateConfig(i);var l=this.platform.acquireContext(a,s.aspectRatio),u=l&&l.canvas,c=u&&u.height,f=u&&u.width;this.id=nv(),this.ctx=l,this.canvas=u,this.width=f,this.height=c,this._options=s,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Eb,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){var n;return function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return t?(clearTimeout(n),n=setTimeout(e,t,i)):e.apply(this,i),t}}((function(e){return r.update(e)}),s.resizeDelay||0),this._dataChanges=[],Ub[this.id]=this,l&&u?(Kg.listen(this,"complete",Zb),Kg.listen(this,"progress",Hb),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}return po(e,[{key:"aspectRatio",get:function(){var e=this.options,t=e.aspectRatio,n=e.maintainAspectRatio,r=this.width,i=this.height,a=this._aspectRatio;return rv(t)?n&&a?a:i?r/i:null:t}},{key:"data",get:function(){return this.config.data},set:function(e){this.config.data=e}},{key:"options",get:function(){return this._options},set:function(e){this.config.options=e}},{key:"registry",get:function(){return Cb}},{key:"_initialize",value:function(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Tg(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}},{key:"clear",value:function(){return Tm(this.canvas,this.ctx),this}},{key:"stop",value:function(){return Kg.stop(this),this}},{key:"resize",value:function(e,t){Kg.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}},{key:"_resize",value:function(e,t){var n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,Tg(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),cv(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}},{key:"ensureScalesHaveIDs",value:function(){fv(this.options.scales||{},(function(e,t){e.id=t}))}},{key:"buildOrUpdateScales",value:function(){var e=this,t=this.options,n=t.scales,r=this.scales,i=Object.keys(r).reduce((function(e,t){return e[t]=!1,e}),{}),a=[];n&&(a=a.concat(Object.keys(n).map((function(e){var t=n[e],r=Tb(e,t),i="r"===r,a="x"===r;return{options:t,dposition:i?"chartArea":a?"bottom":"left",dtype:i?"radialLinear":a?"category":"linear"}})))),fv(a,(function(n){var a=n.options,o=a.id,s=Tb(o,a),l=lv(a.type,n.dtype);void 0!==a.position&&Wb(a.position,s)===Wb(n.dposition)||(a.position=n.dposition),i[o]=!0;var u=null;o in r&&r[o].type===l?u=r[o]:(u=new(Cb.getScale(l))({id:o,type:l,ctx:e.ctx,chart:e}),r[u.id]=u);u.init(a,t)})),fv(i,(function(e,t){e||delete r[t]})),fv(r,(function(t){qy.configure(e,t,t.options),qy.addBox(e,t)}))}},{key:"_updateMetasets",value:function(){var e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((function(e,t){return e.index-t.index})),n>t){for(var r=t;r<n;++r)this._destroyDatasetMeta(r);e.splice(t,n-t)}this._sortedMetasets=e.slice(0).sort(Vb("order","index"))}},{key:"_removeUnreferencedMetasets",value:function(){var e=this,t=this._metasets,n=this.data.datasets;t.length>n.length&&delete this._stacks,t.forEach((function(t,r){0===n.filter((function(e){return e===t._dataset})).length&&e._destroyDatasetMeta(r)}))}},{key:"buildOrUpdateControllers",value:function(){var e,t,n=[],r=this.data.datasets;for(this._removeUnreferencedMetasets(),e=0,t=r.length;e<t;e++){var i=r[e],a=this.getDatasetMeta(e),o=i.type||this.config.type;if(a.type&&a.type!==o&&(this._destroyDatasetMeta(e),a=this.getDatasetMeta(e)),a.type=o,a.indexAxis=i.indexAxis||Mb(o,this.options),a.order=i.order||0,a.index=e,a.label=""+i.label,a.visible=this.isDatasetVisible(e),a.controller)a.controller.updateIndex(e),a.controller.linkScales();else{var s=Cb.getController(o),l=Em.datasets[o],u=l.datasetElementType,c=l.dataElementType;Object.assign(s,{dataElementType:Cb.getElement(c),datasetElementType:u&&Cb.getElement(u)}),a.controller=new s(this,e),n.push(a.controller)}}return this._updateMetasets(),n}},{key:"_resetElements",value:function(){var e=this;fv(this.data.datasets,(function(t,n){e.getDatasetMeta(n).controller.reset()}),this)}},{key:"reset",value:function(){this._resetElements(),this.notifyPlugins("reset")}},{key:"update",value:function(e){var t=this.config;t.update();var n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1!==this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})){var i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");for(var a=0,o=0,s=this.data.datasets.length;o<s;o++){var l=this.getDatasetMeta(o).controller,u=!r&&-1===i.indexOf(l);l.buildOrUpdateElements(u),a=Math.max(+l.getMaxOverflow(),a)}a=this._minPadding=n.layout.autoPadding?a:0,this._updateLayout(a),r||fv(i,(function(e){e.reset()})),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(Vb("z","_idx"));var c=this._active,f=this._lastEvent;f?this._eventHandler(f,!0):c.length&&this._updateHoverStyles(c,c,!0),this.render()}}},{key:"_updateScales",value:function(){var e=this;fv(this.scales,(function(t){qy.removeBox(e,t)})),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}},{key:"_checkEventBindings",value:function(){var e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);Cv(t,n)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}},{key:"_updateHiddenIndices",value:function(){var e,t=this._hiddenIndices,n=zc(this._getUniformDataChanges()||[]);try{for(n.s();!(e=n.n()).done;){var r=e.value,i=r.method,a=r.start,o=r.count;qb(t,a,"_removeElements"===i?-o:o)}}catch(s){n.e(s)}finally{n.f()}}},{key:"_getUniformDataChanges",value:function(){var e=this._dataChanges;if(e&&e.length){this._dataChanges=[];for(var t=this.data.datasets.length,n=function(t){return new Set(e.filter((function(e){return e[0]===t})).map((function(e,t){return t+","+e.splice(1).join(",")})))},r=n(0),i=1;i<t;i++)if(!Cv(r,n(i)))return;return Array.from(r).map((function(e){return e.split(",")})).map((function(e){return{method:e[1],start:+e[2],count:+e[3]}}))}}},{key:"_updateLayout",value:function(e){var t=this;if(!1!==this.notifyPlugins("beforeLayout",{cancelable:!0})){qy.update(this,this.width,this.height,e);var n=this.chartArea,r=n.width<=0||n.height<=0;this._layers=[],fv(this.boxes,(function(e){var n;r&&"chartArea"===e.position||(e.configure&&e.configure(),(n=t._layers).push.apply(n,(0,fl.Z)(e._layers())))}),this),this._layers.forEach((function(e,t){e._idx=t})),this.notifyPlugins("afterLayout")}}},{key:"_updateDatasets",value:function(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(var t=0,n=this.data.datasets.length;t<n;++t)this.getDatasetMeta(t).controller.configure();for(var r=0,i=this.data.datasets.length;r<i;++r)this._updateDataset(r,_v(e)?e({datasetIndex:r}):e);this.notifyPlugins("afterDatasetsUpdate",{mode:e})}}},{key:"_updateDataset",value:function(e,t){var n=this.getDatasetMeta(e),r={meta:n,index:e,mode:t,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(n.controller._update(t),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}},{key:"render",value:function(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Kg.has(this)?this.attached&&!Kg.running(this)&&Kg.start(this):(this.draw(),Zb({chart:this})))}},{key:"draw",value:function(){var e;if(this._resizeBeforeDraw){var t=this._resizeBeforeDraw,n=t.width,r=t.height;this._resize(n,r),this._resizeBeforeDraw=null}if(this.clear(),!(this.width<=0||this.height<=0)&&!1!==this.notifyPlugins("beforeDraw",{cancelable:!0})){var i=this._layers;for(e=0;e<i.length&&i[e].z<=0;++e)i[e].draw(this.chartArea);for(this._drawDatasets();e<i.length;++e)i[e].draw(this.chartArea);this.notifyPlugins("afterDraw")}}},{key:"_getSortedDatasetMetas",value:function(e){var t,n,r=this._sortedMetasets,i=[];for(t=0,n=r.length;t<n;++t){var a=r[t];e&&!a.visible||i.push(a)}return i}},{key:"getSortedVisibleDatasetMetas",value:function(){return this._getSortedDatasetMetas(!0)}},{key:"_drawDatasets",value:function(){if(!1!==this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})){for(var e=this.getSortedVisibleDatasetMetas(),t=e.length-1;t>=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}}},{key:"_drawDataset",value:function(e){var t=this.ctx,n=e._clip,r=!n.disabled,i=function(e){var t=e.xScale,n=e.yScale;if(t&&n)return{left:t.left,right:t.right,top:n.top,bottom:n.bottom}}(e)||this.chartArea,a={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",a)&&(r&&Nm(t,{left:!1===n.left?0:i.left-n.left,right:!1===n.right?this.width:i.right+n.right,top:!1===n.top?0:i.top-n.top,bottom:!1===n.bottom?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&Dm(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}},{key:"isPointInArea",value:function(e){return Am(e,this.chartArea,this._minPadding)}},{key:"getElementsAtEventForMode",value:function(e,t,n,r){var i=Dy.modes[t];return"function"===typeof i?i(this,e,n,r):[]}},{key:"getDatasetMeta",value:function(e){var t=this.data.datasets[e],n=this._metasets,r=n.filter((function(e){return e&&e._dataset===t})).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}},{key:"getContext",value:function(){return this.$context||(this.$context=Qm(null,{chart:this,type:"chart"}))}},{key:"getVisibleDatasetCount",value:function(){return this.getSortedVisibleDatasetMetas().length}},{key:"isDatasetVisible",value:function(e){var t=this.data.datasets[e];if(!t)return!1;var n=this.getDatasetMeta(e);return"boolean"===typeof n.hidden?!n.hidden:!t.hidden}},{key:"setDatasetVisibility",value:function(e,t){this.getDatasetMeta(e).hidden=!t}},{key:"toggleDataVisibility",value:function(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}},{key:"getDataVisibility",value:function(e){return!this._hiddenIndices[e]}},{key:"_updateVisibility",value:function(e,t,n){var r=n?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);Sv(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update((function(t){return t.datasetIndex===e?r:void 0})))}},{key:"hide",value:function(e,t){this._updateVisibility(e,t,!1)}},{key:"show",value:function(e,t){this._updateVisibility(e,t,!0)}},{key:"_destroyDatasetMeta",value:function(e){var t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}},{key:"_stop",value:function(){var e,t;for(this.stop(),Kg.remove(this),e=0,t=this.data.datasets.length;e<t;++e)this._destroyDatasetMeta(e)}},{key:"destroy",value:function(){this.notifyPlugins("beforeDestroy");var e=this.canvas,t=this.ctx;this._stop(),this.config.clearCache(),e&&(this.unbindEvents(),Tm(e,t),this.platform.releaseContext(t),this.canvas=null,this.ctx=null),delete Ub[this.id],this.notifyPlugins("afterDestroy")}},{key:"toBase64Image",value:function(){var e;return(e=this.canvas).toDataURL.apply(e,arguments)}},{key:"bindEvents",value:function(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}},{key:"bindUserEvents",value:function(){var e=this,t=this._listeners,n=this.platform,r=function(t,n,r){t.offsetX=n,t.offsetY=r,e._eventHandler(t)};fv(this.options.events,(function(i){return function(r,i){n.addEventListener(e,r,i),t[r]=i}(i,r)}))}},{key:"bindResponsiveEvents",value:function(){var e=this;this._responsiveListeners||(this._responsiveListeners={});var t,n=this._responsiveListeners,r=this.platform,i=function(t,i){r.addEventListener(e,t,i),n[t]=i},a=function(t,i){n[t]&&(r.removeEventListener(e,t,i),delete n[t])},o=function(t,n){e.canvas&&e.resize(t,n)},s=function n(){a("attach",n),e.attached=!0,e.resize(),i("resize",o),i("detach",t)};t=function(){e.attached=!1,a("resize",o),e._stop(),e._resize(0,0),i("attach",s)},r.isAttached(this.canvas)?s():t()}},{key:"unbindEvents",value:function(){var e=this;fv(this._listeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._listeners={},fv(this._responsiveListeners,(function(t,n){e.platform.removeEventListener(e,n,t)})),this._responsiveListeners=void 0}},{key:"updateHoverStyle",value:function(e,t,n){var r,i,a,o=n?"set":"remove";for("dataset"===t&&this.getDatasetMeta(e[0].datasetIndex).controller["_"+o+"DatasetHoverStyle"](),i=0,a=e.length;i<a;++i){var s=(r=e[i])&&this.getDatasetMeta(r.datasetIndex).controller;s&&s[o+"HoverStyle"](r.element,r.datasetIndex,r.index)}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e){var t=this,n=this._active||[],r=e.map((function(e){var n=e.datasetIndex,r=e.index,i=t.getDatasetMeta(n);if(!i)throw new Error("No dataset found at index "+n);return{datasetIndex:n,element:i.data[r],index:r}}));!dv(r,n)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,n))}},{key:"notifyPlugins",value:function(e,t,n){return this._plugins.notify(this,e,t,n)}},{key:"isPluginEnabled",value:function(e){return 1===this._plugins._cache.filter((function(t){return t.plugin.id===e})).length}},{key:"_updateHoverStyles",value:function(e,t,n){var r=this.options.hover,i=function(e,t){return e.filter((function(e){return!t.some((function(t){return e.datasetIndex===t.datasetIndex&&e.index===t.index}))}))},a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}},{key:"_eventHandler",value:function(e,t){var n=this,r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},i=function(t){return(t.options.events||n.options.events).includes(e.native.type)};if(!1!==this.notifyPlugins("beforeEvent",r,i)){var a=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,i),(a||r.changed)&&this.render(),this}}},{key:"_handleEvent",value:function(e,t,n){var r=this._active,i=void 0===r?[]:r,a=this.options,o=t,s=this._getActiveElements(e,i,n,o),l=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),u=function(e,t,n,r){return n&&"mouseout"!==e.type?r?t:e:null}(e,this._lastEvent,n,l);n&&(this._lastEvent=null,cv(a.onHover,[e,s,this],this),l&&cv(a.onClick,[e,s,this],this));var c=!dv(s,i);return(c||t)&&(this._active=s,this._updateHoverStyles(s,i,t)),this._lastEvent=u,c}},{key:"_getActiveElements",value:function(e,t,n,r){if("mouseout"===e.type)return[];if(!n)return t;var i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}}],[{key:"register",value:function(){Cb.add.apply(Cb,arguments),Gb()}},{key:"unregister",value:function(){Cb.remove.apply(Cb,arguments),Gb()}}]),e}();function Gb(){return fv(Yb.instances,(function(e){return e._plugins.invalidate()}))}function Xb(e,t,n,r){var i=Um(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]),a=(n-t)/2,o=Math.min(a,r*t/2),s=function(e){var t=(n-Math.min(a,e))*r/2;return qv(e,0,Math.min(a,t))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:qv(i.innerStart,0,o),innerEnd:qv(i.innerEnd,0,o)}}function Qb(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Jb(e,t,n,r,i,a){var o=t.x,s=t.y,l=t.startAngle,u=t.pixelMargin,c=t.innerRadius,f=Math.max(t.outerRadius+r+n-u,0),d=c>0?c+r+n+u:0,h=0,p=i-l;if(r){var v=((c>0?c-r:0)+(f>0?f-r:0))/2;h=(p-(0!==v?p*v/(v+r):p))/2}var m=(p-Math.max(.001,p*f-n/Ev)/f)/2,g=l+m+h,y=i-m-h,b=Xb(t,d,f,y-g),x=b.outerStart,k=b.outerEnd,w=b.innerStart,S=b.innerEnd,_=f-x,C=f-k,E=g+x/_,O=y-k/C,P=d+w,M=d+S,T=g+w/P,j=y-S/M;if(e.beginPath(),a){var R=(E+O)/2;if(e.arc(o,s,f,E,R),e.arc(o,s,f,R,O),k>0){var A=Qb(C,O,o,s);e.arc(A.x,A.y,k,O,y+jv)}var N=Qb(M,y,o,s);if(e.lineTo(N.x,N.y),S>0){var D=Qb(M,j,o,s);e.arc(D.x,D.y,S,y+jv,j+Math.PI)}var L=(y-S/d+(g+w/d))/2;if(e.arc(o,s,d,y-S/d,L,!0),e.arc(o,s,d,L,g+w/d,!0),w>0){var I=Qb(P,T,o,s);e.arc(I.x,I.y,w,T+Math.PI,g-jv)}var z=Qb(_,g,o,s);if(e.lineTo(z.x,z.y),x>0){var F=Qb(_,E,o,s);e.arc(F.x,F.y,x,g-jv,E)}}else{e.moveTo(o,s);var B=Math.cos(E)*f+o,W=Math.sin(E)*f+s;e.lineTo(B,W);var V=Math.cos(O)*f+o,Z=Math.sin(O)*f+s;e.lineTo(V,Z)}e.closePath()}function ex(e,t,n,r,i){var a=t.fullCircles,o=t.startAngle,s=t.circumference,l=t.options,u=l.borderWidth,c=l.borderJoinStyle,f="inner"===l.borderAlign;if(u){f?(e.lineWidth=2*u,e.lineJoin=c||"round"):(e.lineWidth=u,e.lineJoin=c||"bevel");var d=t.endAngle;if(a){Jb(e,t,n,r,d,i);for(var h=0;h<a;++h)e.stroke();isNaN(s)||(d=o+(s%Ov||Ov))}f&&function(e,t,n){var r=t.startAngle,i=t.pixelMargin,a=t.x,o=t.y,s=t.outerRadius,l=t.innerRadius,u=i/s;e.beginPath(),e.arc(a,o,s,r-u,n+u),l>i?(u=i/l,e.arc(a,o,l,n+u,r-u,!0)):e.arc(a,o,i,n+jv,r-jv),e.closePath(),e.clip()}(e,t,d),a||(Jb(e,t,n,r,d,i),e.stroke())}}(0,Be.Z)(Yb,"defaults",Em),(0,Be.Z)(Yb,"instances",Ub),(0,Be.Z)(Yb,"overrides",km),(0,Be.Z)(Yb,"registry",Cb),(0,Be.Z)(Yb,"version","4.2.1"),(0,Be.Z)(Yb,"getChart",Kb);var tx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).options=void 0,r.circumference=void 0,r.startAngle=void 0,r.endAngle=void 0,r.innerRadius=void 0,r.outerRadius=void 0,r.pixelMargin=0,r.fullCircles=0,e&&Object.assign(go(r),e),r}return po(n,[{key:"inRange",value:function(e,t,n){var r=Zv(this.getProps(["x","y"],n),{x:e,y:t}),i=r.angle,a=r.distance,o=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),s=o.startAngle,l=o.endAngle,u=o.innerRadius,c=o.outerRadius,f=o.circumference,d=this.options.spacing/2,h=lv(f,l-s)>=Ov||Kv(i,s,l),p=Yv(a,u+d,c+d);return h&&p}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),n=t.x,r=t.y,i=t.startAngle,a=t.endAngle,o=t.innerRadius,s=t.outerRadius,l=this.options,u=l.offset,c=(i+a)/2,f=(o+s+l.spacing+u)/2;return{x:n+Math.cos(c)*f,y:r+Math.sin(c)*f}}},{key:"tooltipPosition",value:function(e){return this.getCenterPoint(e)}},{key:"draw",value:function(e){var t=this.options,n=this.circumference,r=(t.offset||0)/4,i=(t.spacing||0)/2,a=t.circular;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=n>Ov?Math.floor(n/Ov):0,!(0===n||this.innerRadius<0||this.outerRadius<0)){e.save();var o=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(o)*r,Math.sin(o)*r);var s=r*(1-Math.sin(Math.min(Ev,n||0)));e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor,function(e,t,n,r,i){var a=t.fullCircles,o=t.startAngle,s=t.circumference,l=t.endAngle;if(a){Jb(e,t,n,r,l,i);for(var u=0;u<a;++u)e.fill();isNaN(s)||(l=o+(s%Ov||Ov))}Jb(e,t,n,r,l,i),e.fill()}(e,this,s,i,a),ex(e,this,s,i,a),e.restore()}}}]),n}(db);function nx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;e.lineCap=lv(n.borderCapStyle,t.borderCapStyle),e.setLineDash(lv(n.borderDash,t.borderDash)),e.lineDashOffset=lv(n.borderDashOffset,t.borderDashOffset),e.lineJoin=lv(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=lv(n.borderWidth,t.borderWidth),e.strokeStyle=lv(n.borderColor,t.borderColor)}function rx(e,t,n){e.lineTo(n.x,n.y)}function ix(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.length,i=n.start,a=void 0===i?0:i,o=n.end,s=void 0===o?r-1:o,l=t.start,u=t.end,c=Math.max(a,l),f=Math.min(s,u),d=a<l&&s<l||a>u&&s>u;return{count:r,start:c,loop:t.loop,ilen:f<c&&!d?r+f-c:f-c}}function ax(e,t,n,r){var i,a,o,s=t.points,l=t.options,u=ix(s,n,r),c=u.count,f=u.start,d=u.loop,h=u.ilen,p=function(e){return e.stepped?Lm:e.tension||"monotone"===e.cubicInterpolationMode?Im:rx}(l),v=r||{},m=v.move,g=void 0===m||m,y=v.reverse;for(i=0;i<=h;++i)(a=s[(f+(y?h-i:i))%c]).skip||(g?(e.moveTo(a.x,a.y),g=!1):p(e,o,a,y,l.stepped),o=a);return d&&p(e,o,a=s[(f+(y?h:0))%c],y,l.stepped),!!d}function ox(e,t,n,r){var i,a,o,s,l,u,c=t.points,f=ix(c,n,r),d=f.count,h=f.start,p=f.ilen,v=r||{},m=v.move,g=void 0===m||m,y=v.reverse,b=0,x=0,k=function(e){return(h+(y?p-e:e))%d},w=function(){s!==l&&(e.lineTo(b,l),e.lineTo(b,s),e.lineTo(b,u))};for(g&&(a=c[k(0)],e.moveTo(a.x,a.y)),i=0;i<=p;++i)if(!(a=c[k(i)]).skip){var S=a.x,_=a.y,C=0|S;C===o?(_<s?s=_:_>l&&(l=_),b=(x*b+S)/++x):(w(),e.lineTo(S,_),o=C,x=0,s=l=_),u=_}w()}function sx(e){var t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&"monotone"!==t.cubicInterpolationMode&&!t.stepped&&!n?ox:ax}(0,Be.Z)(tx,"id","arc"),(0,Be.Z)(tx,"defaults",{borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),(0,Be.Z)(tx,"defaultRoutes",{backgroundColor:"backgroundColor"});var lx="function"===typeof Path2D;function ux(e,t,n,r){lx&&!t.options.segment?function(e,t,n,r){var i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),nx(e,t.options),e.stroke(i)}(e,t,n,r):function(e,t,n,r){var i,a=t.segments,o=t.options,s=sx(t),l=zc(a);try{for(l.s();!(i=l.n()).done;){var u=i.value;nx(e,o,u.style),e.beginPath(),s(e,t,u,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}}catch(c){l.e(c)}finally{l.f()}}(e,t,n,r)}var cx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).animated=!0,r.options=void 0,r._chart=void 0,r._loop=void 0,r._fullLoop=void 0,r._path=void 0,r._points=void 0,r._segments=void 0,r._decimated=!1,r._pointsUpdated=!1,r._datasetIndex=void 0,e&&Object.assign(go(r),e),r}return po(n,[{key:"updateControlPoints",value:function(e,t){var n=this.options;if((n.tension||"monotone"===n.cubicInterpolationMode)&&!n.stepped&&!this._pointsUpdated){var r=n.spanGaps?this._loop:this._fullLoop;bg(this._points,n,e,r,t),this._pointsUpdated=!0}}},{key:"points",get:function(){return this._points},set:function(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}},{key:"segments",get:function(){return this._segments||(this._segments=function(e,t){var n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];var a=!!e._loop,o=function(e,t,n,r){var i=0,a=t-1;if(n&&!r)for(;i<t&&!e[i].skip;)i++;for(;i<t&&e[i].skip;)i++;for(i%=t,n&&(a+=i);a>i&&e[a%t].skip;)a--;return{start:i,end:a%=t}}(n,i,a,r),s=o.start,l=o.end;return Zg(e,!0===r?[{start:s,end:l,loop:a}]:function(e,t,n,r){var i,a=e.length,o=[],s=t,l=e[t];for(i=t+1;i<=n;++i){var u=e[i%a];u.skip||u.stop?l.skip||(r=!1,o.push({start:t%a,end:(i-1)%a,loop:r}),t=s=u.stop?i:null):(s=i,l.skip&&(t=i)),l=u}return null!==s&&o.push({start:t%a,end:s%a,loop:r}),o}(n,s,l<s?l+i:l,!!e._fullLoop&&0===s&&l===i-1),n,t)}(this,this.options.segment))}},{key:"first",value:function(){var e=this.segments,t=this.points;return e.length&&t[e[0].start]}},{key:"last",value:function(){var e=this.segments,t=this.points,n=e.length;return n&&t[e[n-1].end]}},{key:"interpolate",value:function(e,t){var n=this.options,r=e[t],i=this.points,a=Vg(this,{property:t,start:r,end:r});if(a.length){var o,s,l=[],u=function(e){return e.stepped?Ng:e.tension||"monotone"===e.cubicInterpolationMode?Dg:Ag}(n);for(o=0,s=a.length;o<s;++o){var c=a[o],f=c.start,d=c.end,h=i[f],p=i[d];if(h!==p){var v=u(h,p,Math.abs((r-h[t])/(p[t]-h[t])),n.stepped);v[t]=e[t],l.push(v)}else l.push(h)}return 1===l.length?l[0]:l}}},{key:"pathSegment",value:function(e,t,n){return sx(this)(e,this,t,n)}},{key:"path",value:function(e,t,n){var r=this.segments,i=sx(this),a=this._loop;t=t||0,n=n||this.points.length-t;var o,s=zc(r);try{for(s.s();!(o=s.n()).done;){a&=i(e,this,o.value,{start:t,end:t+n-1})}}catch(l){s.e(l)}finally{s.f()}return!!a}},{key:"draw",value:function(e,t,n,r){var i=this.options||{};(this.points||[]).length&&i.borderWidth&&(e.save(),ux(e,this,n,r),e.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}]),n}(db);function fx(e,t,n,r){var i=e.options,a=e.getProps([n],r)[n];return Math.abs(t-a)<i.radius+i.hitRadius}(0,Be.Z)(cx,"id","line"),(0,Be.Z)(cx,"defaults",{borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0}),(0,Be.Z)(cx,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"}),(0,Be.Z)(cx,"descriptors",{_scriptable:!0,_indexable:function(e){return"borderDash"!==e&&"fill"!==e}});var dx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).options=void 0,r.parsed=void 0,r.skip=void 0,r.stop=void 0,e&&Object.assign(go(r),e),r}return po(n,[{key:"inRange",value:function(e,t,n){var r=this.options,i=this.getProps(["x","y"],n),a=i.x,o=i.y;return Math.pow(e-a,2)+Math.pow(t-o,2)<Math.pow(r.hitRadius+r.radius,2)}},{key:"inXRange",value:function(e,t){return fx(this,e,"x",t)}},{key:"inYRange",value:function(e,t){return fx(this,e,"y",t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y"],e);return{x:t.x,y:t.y}}},{key:"size",value:function(e){var t=(e=e||this.options||{}).radius||0;return 2*((t=Math.max(t,t&&e.hoverRadius||0))+(t&&e.borderWidth||0))}},{key:"draw",value:function(e,t){var n=this.options;this.skip||n.radius<.1||!Am(this,t,this.size(n)/2)||(e.strokeStyle=n.borderColor,e.lineWidth=n.borderWidth,e.fillStyle=n.backgroundColor,jm(e,n,this.x,this.y))}},{key:"getRange",value:function(){var e=this.options||{};return e.radius+e.hitRadius}}]),n}(db);function hx(e,t){var n,r,i,a,o,s=e.getProps(["x","y","base","width","height"],t),l=s.x,u=s.y,c=s.base,f=s.width,d=s.height;return e.horizontal?(o=d/2,n=Math.min(l,c),r=Math.max(l,c),i=u-o,a=u+o):(n=l-(o=f/2),r=l+o,i=Math.min(u,c),a=Math.max(u,c)),{left:n,top:i,right:r,bottom:a}}function px(e,t,n,r){return e?0:qv(t,n,r)}function vx(e){var t=hx(e),n=t.right-t.left,r=t.bottom-t.top,i=function(e,t,n){var r=e.options.borderWidth,i=e.borderSkipped,a=Km(r);return{t:px(i.top,a.top,0,n),r:px(i.right,a.right,0,t),b:px(i.bottom,a.bottom,0,n),l:px(i.left,a.left,0,t)}}(e,n/2,r/2),a=function(e,t,n){var r=e.getProps(["enableBorderRadius"]).enableBorderRadius,i=e.options.borderRadius,a=qm(i),o=Math.min(t,n),s=e.borderSkipped,l=r||av(i);return{topLeft:px(!l||s.top||s.left,a.topLeft,0,o),topRight:px(!l||s.top||s.right,a.topRight,0,o),bottomLeft:px(!l||s.bottom||s.left,a.bottomLeft,0,o),bottomRight:px(!l||s.bottom||s.right,a.bottomRight,0,o)}}(e,n/2,r/2);return{outer:{x:t.left,y:t.top,w:n,h:r,radius:a},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:r-i.t-i.b,radius:{topLeft:Math.max(0,a.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,a.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,a.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,a.bottomRight-Math.max(i.b,i.r))}}}}function mx(e,t,n,r){var i=null===t,a=null===n,o=e&&!(i&&a)&&hx(e,r);return o&&(i||Yv(t,o.left,o.right))&&(a||Yv(n,o.top,o.bottom))}function gx(e,t){e.rect(t.x,t.y,t.w,t.h)}function yx(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,a=(e.x+e.w!==n.x+n.w?t:0)-r,o=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+r,y:e.y+i,w:e.w+a,h:e.h+o,radius:e.radius}}(0,Be.Z)(dx,"id","point"),(0,Be.Z)(dx,"defaults",{borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0}),(0,Be.Z)(dx,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var bx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).options=void 0,r.horizontal=void 0,r.base=void 0,r.width=void 0,r.height=void 0,r.inflateAmount=void 0,e&&Object.assign(go(r),e),r}return po(n,[{key:"draw",value:function(e){var t,n=this.inflateAmount,r=this.options,i=r.borderColor,a=r.backgroundColor,o=vx(this),s=o.inner,l=o.outer,u=(t=l.radius).topLeft||t.topRight||t.bottomLeft||t.bottomRight?Wm:gx;e.save(),l.w===s.w&&l.h===s.h||(e.beginPath(),u(e,yx(l,n,s)),e.clip(),u(e,yx(s,-n,l)),e.fillStyle=i,e.fill("evenodd")),e.beginPath(),u(e,yx(s,n)),e.fillStyle=a,e.fill(),e.restore()}},{key:"inRange",value:function(e,t,n){return mx(this,e,t,n)}},{key:"inXRange",value:function(e,t){return mx(this,e,null,t)}},{key:"inYRange",value:function(e,t){return mx(this,null,e,t)}},{key:"getCenterPoint",value:function(e){var t=this.getProps(["x","y","base","horizontal"],e),n=t.x,r=t.y,i=t.base,a=t.horizontal;return{x:a?(n+i)/2:n,y:a?r:(r+i)/2}}},{key:"getRange",value:function(e){return"x"===e?this.width/2:this.height/2}}]),n}(db);(0,Be.Z)(bx,"id","bar"),(0,Be.Z)(bx,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),(0,Be.Z)(bx,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var xx=function(e,t){var n=e.boxHeight,r=void 0===n?t:n,i=e.boxWidth,a=void 0===i?t:i;return e.usePointStyle&&(r=Math.min(r,t),a=e.pointStyleWidth||Math.min(a,t)),{boxWidth:a,boxHeight:r,itemHeight:Math.max(t,r)}},kx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this))._added=!1,r.legendHitBoxes=[],r._hoveredItem=null,r.doughnutMode=!1,r.chart=e.chart,r.options=e.options,r.ctx=e.ctx,r.legendItems=void 0,r.columnSizes=void 0,r.lineWidths=void 0,r.maxHeight=void 0,r.maxWidth=void 0,r.top=void 0,r.bottom=void 0,r.left=void 0,r.right=void 0,r.height=void 0,r.width=void 0,r._margins=void 0,r.position=void 0,r.weight=void 0,r.fullSize=void 0,r}return po(n,[{key:"update",value:function(e,t,n){this.maxWidth=e,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}},{key:"setDimensions",value:function(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}},{key:"buildLabels",value:function(){var e=this,t=this.options.labels||{},n=cv(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter((function(n){return t.filter(n,e.chart.data)}))),t.sort&&(n=n.sort((function(n,r){return t.sort(n,r,e.chart.data)}))),this.options.reverse&&n.reverse(),this.legendItems=n}},{key:"fit",value:function(){var e=this.options,t=this.ctx;if(e.display){var n,r,i=e.labels,a=Gm(i.font),o=a.size,s=this._computeTitleHeight(),l=xx(i,o),u=l.boxWidth,c=l.itemHeight;t.font=a.string,this.isHorizontal()?(n=this.maxWidth,r=this._fitRows(s,o,u,c)+10):(r=this.maxHeight,n=this._fitCols(s,a,u,c)+10),this.width=Math.min(n,e.maxWidth||this.maxWidth),this.height=Math.min(r,e.maxHeight||this.maxHeight)}else this.width=this.height=0}},{key:"_fitRows",value:function(e,t,n,r){var i=this.ctx,a=this.maxWidth,o=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.lineWidths=[0],u=r+o,c=e;i.textAlign="left",i.textBaseline="middle";var f=-1,d=-u;return this.legendItems.forEach((function(e,h){var p=n+t/2+i.measureText(e.text).width;(0===h||l[l.length-1]+p+2*o>a)&&(c+=u,l[l.length-(h>0?0:1)]=0,d+=u,f++),s[h]={left:0,top:d,row:f,width:p,height:r},l[l.length-1]+=p+o})),c}},{key:"_fitCols",value:function(e,t,n,r){var i=this.ctx,a=this.maxHeight,o=this.options.labels.padding,s=this.legendHitBoxes=[],l=this.columnSizes=[],u=a-e,c=o,f=0,d=0,h=0,p=0;return this.legendItems.forEach((function(e,a){var v=function(e,t,n,r,i){var a=function(e,t,n,r){var i=e.text;i&&"string"!==typeof i&&(i=i.reduce((function(e,t){return e.length>t.length?e:t})));return t+n.size/2+r.measureText(i).width}(r,e,t,n),o=function(e,t,n){var r=e;"string"!==typeof t.text&&(r=wx(t,n));return r}(i,r,t.lineHeight);return{itemWidth:a,itemHeight:o}}(n,t,i,e,r),m=v.itemWidth,g=v.itemHeight;a>0&&d+g+2*o>u&&(c+=f+o,l.push({width:f,height:d}),h+=f+o,p++,f=d=0),s[a]={left:h,top:d,col:p,width:m,height:g},f=Math.max(f,m),d+=g+o})),c+=f,l.push({width:f,height:d}),c}},{key:"adjustHitBoxes",value:function(){if(this.options.display){var e=this._computeTitleHeight(),t=this.legendHitBoxes,n=this.options,r=n.align,i=n.labels.padding,a=Lg(n.rtl,this.left,this.width);if(this.isHorizontal()){var o,s=0,l=am(r,this.left+i,this.right-this.lineWidths[s]),u=zc(t);try{for(u.s();!(o=u.n()).done;){var c=o.value;s!==c.row&&(s=c.row,l=am(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+e+i,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+i}}catch(m){u.e(m)}finally{u.f()}}else{var f,d=0,h=am(r,this.top+e+i,this.bottom-this.columnSizes[d].height),p=zc(t);try{for(p.s();!(f=p.n()).done;){var v=f.value;v.col!==d&&(d=v.col,h=am(r,this.top+e+i,this.bottom-this.columnSizes[d].height)),v.top=h,v.left+=this.left+i,v.left=a.leftForLtr(a.x(v.left),v.width),h+=v.height+i}}catch(m){p.e(m)}finally{p.f()}}}}},{key:"isHorizontal",value:function(){return"top"===this.options.position||"bottom"===this.options.position}},{key:"draw",value:function(){if(this.options.display){var e=this.ctx;Nm(e,this),this._draw(),Dm(e)}}},{key:"_draw",value:function(){var e,t=this,n=this.options,r=this.columnSizes,i=this.lineWidths,a=this.ctx,o=n.align,s=n.labels,l=Em.color,u=Lg(n.rtl,this.left,this.width),c=Gm(s.font),f=s.padding,d=c.size,h=d/2;this.drawTitle(),a.textAlign=u.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=c.string;var p=xx(s,d),v=p.boxWidth,m=p.boxHeight,g=p.itemHeight,y=this.isHorizontal(),b=this._computeTitleHeight();e=y?{x:am(o,this.left+f,this.right-i[0]),y:this.top+f+b,line:0}:{x:this.left+f,y:am(o,this.top+b+f,this.bottom-r[0].height),line:0},Ig(this.ctx,n.textDirection);var x=g+f;this.legendItems.forEach((function(p,k){a.strokeStyle=p.fontColor,a.fillStyle=p.fontColor;var w=a.measureText(p.text).width,S=u.textAlign(p.textAlign||(p.textAlign=s.textAlign)),_=v+h+w,C=e.x,E=e.y;if(u.setWidth(t.width),y?k>0&&C+_+f>t.right&&(E=e.y+=x,e.line++,C=e.x=am(o,t.left+f,t.right-i[e.line])):k>0&&E+x>t.bottom&&(C=e.x=C+r[e.line].width+f,e.line++,E=e.y=am(o,t.top+b+f,t.bottom-r[e.line].height)),function(e,t,n){if(!(isNaN(v)||v<=0||isNaN(m)||m<0)){a.save();var r=lv(n.lineWidth,1);if(a.fillStyle=lv(n.fillStyle,l),a.lineCap=lv(n.lineCap,"butt"),a.lineDashOffset=lv(n.lineDashOffset,0),a.lineJoin=lv(n.lineJoin,"miter"),a.lineWidth=r,a.strokeStyle=lv(n.strokeStyle,l),a.setLineDash(lv(n.lineDash,[])),s.usePointStyle){var i={radius:m*Math.SQRT2/2,pointStyle:n.pointStyle,rotation:n.rotation,borderWidth:r},o=u.xPlus(e,v/2);Rm(a,i,o,t+h,s.pointStyleWidth&&v)}else{var c=t+Math.max((d-m)/2,0),f=u.leftForLtr(e,v),p=qm(n.borderRadius);a.beginPath(),Object.values(p).some((function(e){return 0!==e}))?Wm(a,{x:f,y:c,w:v,h:m,radius:p}):a.rect(f,c,v,m),a.fill(),0!==r&&a.stroke()}a.restore()}}(u.x(C),E,p),C=function(e,t,n,r){return e===(r?"left":"right")?n:"center"===e?(t+n)/2:t}(S,C+v+h,y?C+_:t.right,n.rtl),function(e,t,n){zm(a,n.text,e,t+g/2,c,{strikethrough:n.hidden,textAlign:u.textAlign(n.textAlign)})}(u.x(C),E,p),y)e.x+=_+f;else if("string"!==typeof p.text){var O=c.lineHeight;e.y+=wx(p,O)}else e.y+=x})),zg(this.ctx,n.textDirection)}},{key:"drawTitle",value:function(){var e=this.options,t=e.title,n=Gm(t.font),r=Ym(t.padding);if(t.display){var i,a=Lg(e.rtl,this.left,this.width),o=this.ctx,s=t.position,l=n.size/2,u=r.top+l,c=this.left,f=this.width;if(this.isHorizontal())f=Math.max.apply(Math,(0,fl.Z)(this.lineWidths)),i=this.top+u,c=am(e.align,c,this.right-f);else{var d=this.columnSizes.reduce((function(e,t){return Math.max(e,t.height)}),0);i=u+am(e.align,this.top,this.bottom-d-e.labels.padding-this._computeTitleHeight())}var h=am(s,c,c+f);o.textAlign=a.textAlign(im(s)),o.textBaseline="middle",o.strokeStyle=t.color,o.fillStyle=t.color,o.font=n.string,zm(o,t.text,h,i,n)}}},{key:"_computeTitleHeight",value:function(){var e=this.options.title,t=Gm(e.font),n=Ym(e.padding);return e.display?t.lineHeight+n.height:0}},{key:"_getLegendItemAt",value:function(e,t){var n,r,i;if(Yv(e,this.left,this.right)&&Yv(t,this.top,this.bottom))for(i=this.legendHitBoxes,n=0;n<i.length;++n)if(Yv(e,(r=i[n]).left,r.left+r.width)&&Yv(t,r.top,r.top+r.height))return this.legendItems[n];return null}},{key:"handleEvent",value:function(e){var t=this.options;if(function(e,t){if(("mousemove"===e||"mouseout"===e)&&(t.onHover||t.onLeave))return!0;if(t.onClick&&("click"===e||"mouseup"===e))return!0;return!1}(e.type,t)){var n=this._getLegendItemAt(e.x,e.y);if("mousemove"===e.type||"mouseout"===e.type){var r=this._hoveredItem,i=function(e,t){return null!==e&&null!==t&&e.datasetIndex===t.datasetIndex&&e.index===t.index}(r,n);r&&!i&&cv(t.onLeave,[e,r,this],this),this._hoveredItem=n,n&&!i&&cv(t.onHover,[e,n,this],this)}else n&&cv(t.onClick,[e,n,this],this)}}}]),n}(db);function wx(e,t){return t*(e.text?e.text.length+.5:0)}var Sx={id:"legend",_element:kx,start:function(e,t,n){var r=e.legend=new kx({ctx:e.ctx,options:n,chart:e});qy.configure(e,r,n),qy.addBox(e,r)},stop:function(e){qy.removeBox(e,e.legend),delete e.legend},beforeUpdate:function(e,t,n){var r=e.legend;qy.configure(e,r,n),r.options=n},afterUpdate:function(e){var t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent:function(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick:function(e,t,n){var r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:function(e){return e.chart.options.color},boxWidth:40,padding:10,generateLabels:function(e){var t=e.data.datasets,n=e.legend.options.labels,r=n.usePointStyle,i=n.pointStyle,a=n.textAlign,o=n.color,s=n.useBorderRadius,l=n.borderRadius;return e._getSortedDatasetMetas().map((function(e){var n=e.controller.getStyle(r?0:void 0),u=Ym(n.borderWidth);return{text:t[e.index].label,fillStyle:n.backgroundColor,fontColor:o,hidden:!e.visible,lineCap:n.borderCapStyle,lineDash:n.borderDash,lineDashOffset:n.borderDashOffset,lineJoin:n.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:n.borderColor,pointStyle:i||n.pointStyle,rotation:n.rotation,textAlign:a||n.textAlign,borderRadius:s&&(l||n.borderRadius),datasetIndex:e.index}}),this)}},title:{color:function(e){return e.chart.options.color},display:!1,position:"center",text:""}},descriptors:{_scriptable:function(e){return!e.startsWith("on")},labels:{_scriptable:function(e){return!["generateLabels","filter","sort"].includes(e)}}}};new WeakMap;var _x={average:function(e){if(!e.length)return!1;var t,n,r=0,i=0,a=0;for(t=0,n=e.length;t<n;++t){var o=e[t].element;if(o&&o.hasValue()){var s=o.tooltipPosition();r+=s.x,i+=s.y,++a}}return{x:r/a,y:i/a}},nearest:function(e,t){if(!e.length)return!1;var n,r,i,a=t.x,o=t.y,s=Number.POSITIVE_INFINITY;for(n=0,r=e.length;n<r;++n){var l=e[n].element;if(l&&l.hasValue()){var u=Hv(t,l.getCenterPoint());u<s&&(s=u,i=l)}}if(i){var c=i.tooltipPosition();a=c.x,o=c.y}return{x:a,y:o}}};function Cx(e,t){return t&&(iv(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Ex(e){return("string"===typeof e||e instanceof String)&&e.indexOf("\n")>-1?e.split("\n"):e}function Ox(e,t){var n=t.element,r=t.datasetIndex,i=t.index,a=e.getDatasetMeta(r).controller,o=a.getLabelAndValue(i),s=o.label,l=o.value;return{chart:e,label:s,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:l,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Px(e,t){var n=e.chart.ctx,r=e.body,i=e.footer,a=e.title,o=t.boxWidth,s=t.boxHeight,l=Gm(t.bodyFont),u=Gm(t.titleFont),c=Gm(t.footerFont),f=a.length,d=i.length,h=r.length,p=Ym(t.padding),v=p.height,m=0,g=r.reduce((function(e,t){return e+t.before.length+t.lines.length+t.after.length}),0);(g+=e.beforeBody.length+e.afterBody.length,f&&(v+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g)&&(v+=h*(t.displayColors?Math.max(s,l.lineHeight):l.lineHeight)+(g-h)*l.lineHeight+(g-1)*t.bodySpacing);d&&(v+=t.footerMarginTop+d*c.lineHeight+(d-1)*t.footerSpacing);var y=0,b=function(e){m=Math.max(m,n.measureText(e).width+y)};return n.save(),n.font=u.string,fv(e.title,b),n.font=l.string,fv(e.beforeBody.concat(e.afterBody),b),y=t.displayColors?o+2+t.boxPadding:0,fv(r,(function(e){fv(e.before,b),fv(e.lines,b),fv(e.after,b)})),y=0,n.font=c.string,fv(e.footer,b),n.restore(),{width:m+=p.width,height:v}}function Mx(e,t,n,r){var i=n.x,a=n.width,o=e.width,s=e.chartArea,l=s.left,u=s.right,c="center";return"center"===r?c=i<=(l+u)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),function(e,t,n,r){var i=r.x,a=r.width,o=n.caretSize+n.caretPadding;return"left"===e&&i+a+o>t.width||"right"===e&&i-a-o<0||void 0}(c,e,t,n)&&(c="center"),c}function Tx(e,t,n){var r=n.yAlign||t.yAlign||function(e,t){var n=t.y,r=t.height;return n<r/2?"top":n>e.height-r/2?"bottom":"center"}(e,n);return{xAlign:n.xAlign||t.xAlign||Mx(e,t,n,r),yAlign:r}}function jx(e,t,n,r){var i=e.caretSize,a=e.caretPadding,o=e.cornerRadius,s=n.xAlign,l=n.yAlign,u=i+a,c=qm(o),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight,v=function(e,t){var n=e.x,r=e.width;return"right"===t?n-=r:"center"===t&&(n-=r/2),n}(t,s),m=function(e,t,n){var r=e.y,i=e.height;return"top"===t?r+=n:r-="bottom"===t?i+n:i/2,r}(t,l,u);return"center"===l?"left"===s?v+=u:"right"===s&&(v-=u):"left"===s?v-=Math.max(f,h)+i:"right"===s&&(v+=Math.max(d,p)+i),{x:qv(v,0,r.width-t.width),y:qv(m,0,r.height-t.height)}}function Rx(e,t,n){var r=Ym(n.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-r.right:e.x+r.left}function Ax(e){return Cx([],Ex(e))}function Nx(e,t){var n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var Dx={beforeTitle:tv,title:function(e){if(e.length>0){var t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex<r)return n[t.dataIndex]}return""},afterTitle:tv,beforeBody:tv,beforeLabel:tv,label:function(e){if(this&&this.options&&"dataset"===this.options.mode)return e.label+": "+e.formattedValue||e.formattedValue;var t=e.dataset.label||"";t&&(t+=": ");var n=e.formattedValue;return rv(n)||(t+=n),t},labelColor:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:t.borderColor,backgroundColor:t.backgroundColor,borderWidth:t.borderWidth,borderDash:t.borderDash,borderDashOffset:t.borderDashOffset,borderRadius:0}},labelTextColor:function(){return this.options.bodyColor},labelPointStyle:function(e){var t=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:t.pointStyle,rotation:t.rotation}},afterLabel:tv,afterBody:tv,beforeFooter:tv,footer:tv,afterFooter:tv};function Lx(e,t,n,r){var i=e[t].call(n,r);return"undefined"===typeof i?Dx[t].call(n,r):i}var Ix=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this)).opacity=0,r._active=[],r._eventPosition=void 0,r._size=void 0,r._cachedAnimations=void 0,r._tooltipItems=[],r.$animations=void 0,r.$context=void 0,r.chart=e.chart,r.options=e.options,r.dataPoints=void 0,r.title=void 0,r.beforeBody=void 0,r.body=void 0,r.afterBody=void 0,r.footer=void 0,r.xAlign=void 0,r.yAlign=void 0,r.x=void 0,r.y=void 0,r.height=void 0,r.width=void 0,r.caretX=void 0,r.caretY=void 0,r.labelColors=void 0,r.labelPointStyles=void 0,r.labelTextColors=void 0,r}return po(n,[{key:"initialize",value:function(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}},{key:"_resolveAnimations",value:function(){var e=this._cachedAnimations;if(e)return e;var t=this.chart,n=this.options.setContext(this.getContext()),r=n.enabled&&t.options.animation&&n.animations,i=new Xg(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}},{key:"getContext",value:function(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,n=this._tooltipItems,Qm(e,{tooltip:t,tooltipItems:n,type:"tooltip"})));var e,t,n}},{key:"getTitle",value:function(e,t){var n=t.callbacks,r=Lx(n,"beforeTitle",this,e),i=Lx(n,"title",this,e),a=Lx(n,"afterTitle",this,e),o=[];return o=Cx(o,Ex(r)),o=Cx(o,Ex(i)),o=Cx(o,Ex(a))}},{key:"getBeforeBody",value:function(e,t){return Ax(Lx(t.callbacks,"beforeBody",this,e))}},{key:"getBody",value:function(e,t){var n=this,r=t.callbacks,i=[];return fv(e,(function(e){var t={before:[],lines:[],after:[]},a=Nx(r,e);Cx(t.before,Ex(Lx(a,"beforeLabel",n,e))),Cx(t.lines,Lx(a,"label",n,e)),Cx(t.after,Ex(Lx(a,"afterLabel",n,e))),i.push(t)})),i}},{key:"getAfterBody",value:function(e,t){return Ax(Lx(t.callbacks,"afterBody",this,e))}},{key:"getFooter",value:function(e,t){var n=t.callbacks,r=Lx(n,"beforeFooter",this,e),i=Lx(n,"footer",this,e),a=Lx(n,"afterFooter",this,e),o=[];return o=Cx(o,Ex(r)),o=Cx(o,Ex(i)),o=Cx(o,Ex(a))}},{key:"_createItems",value:function(e){var t,n,r=this,i=this._active,a=this.chart.data,o=[],s=[],l=[],u=[];for(t=0,n=i.length;t<n;++t)u.push(Ox(this.chart,i[t]));return e.filter&&(u=u.filter((function(t,n,r){return e.filter(t,n,r,a)}))),e.itemSort&&(u=u.sort((function(t,n){return e.itemSort(t,n,a)}))),fv(u,(function(t){var n=Nx(e.callbacks,t);o.push(Lx(n,"labelColor",r,t)),s.push(Lx(n,"labelPointStyle",r,t)),l.push(Lx(n,"labelTextColor",r,t))})),this.labelColors=o,this.labelPointStyles=s,this.labelTextColors=l,this.dataPoints=u,u}},{key:"update",value:function(e,t){var n,r=this.options.setContext(this.getContext()),i=this._active,a=[];if(i.length){var o=_x[r.position].call(this,i,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);var s=this._size=Px(this,r),l=Object.assign({},o,s),u=Tx(this.chart,r,l),c=jx(r,l,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,n={opacity:1,x:c.x,y:c.y,width:s.width,height:s.height,caretX:o.x,caretY:o.y}}else 0!==this.opacity&&(n={opacity:0});this._tooltipItems=a,this.$context=void 0,n&&this._resolveAnimations().update(this,n),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}},{key:"drawCaret",value:function(e,t,n,r){var i=this.getCaretPosition(e,n,r);t.lineTo(i.x1,i.y1),t.lineTo(i.x2,i.y2),t.lineTo(i.x3,i.y3)}},{key:"getCaretPosition",value:function(e,t,n){var r,i,a,o,s,l,u=this.xAlign,c=this.yAlign,f=n.caretSize,d=qm(n.cornerRadius),h=d.topLeft,p=d.topRight,v=d.bottomLeft,m=d.bottomRight,g=e.x,y=e.y,b=t.width,x=t.height;return"center"===c?(s=y+x/2,"left"===u?(i=(r=g)-f,o=s+f,l=s-f):(i=(r=g+b)+f,o=s-f,l=s+f),a=r):(i="left"===u?g+Math.max(h,v)+f:"right"===u?g+b-Math.max(p,m)-f:this.caretX,"top"===c?(s=(o=y)-f,r=i-f,a=i+f):(s=(o=y+x)+f,r=i+f,a=i-f),l=o),{x1:r,x2:i,x3:a,y1:o,y2:s,y3:l}}},{key:"drawTitle",value:function(e,t,n){var r,i,a,o=this.title,s=o.length;if(s){var l=Lg(n.rtl,this.x,this.width);for(e.x=Rx(this,n.titleAlign,n),t.textAlign=l.textAlign(n.titleAlign),t.textBaseline="middle",r=Gm(n.titleFont),i=n.titleSpacing,t.fillStyle=n.titleColor,t.font=r.string,a=0;a<s;++a)t.fillText(o[a],l.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+i,a+1===s&&(e.y+=n.titleMarginBottom-i)}}},{key:"_drawColorBox",value:function(e,t,n,r,i){var a=this.labelColors[n],o=this.labelPointStyles[n],s=i.boxHeight,l=i.boxWidth,u=i.boxPadding,c=Gm(i.bodyFont),f=Rx(this,"left",i),d=r.x(f),h=s<c.lineHeight?(c.lineHeight-s)/2:0,p=t.y+h;if(i.usePointStyle){var v={radius:Math.min(l,s)/2,pointStyle:o.pointStyle,rotation:o.rotation,borderWidth:1},m=r.leftForLtr(d,l)+l/2,g=p+s/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,jm(e,v,m,g),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,jm(e,v,m,g)}else{e.lineWidth=av(a.borderWidth)?Math.max.apply(Math,(0,fl.Z)(Object.values(a.borderWidth))):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;var y=r.leftForLtr(d,l-u),b=r.leftForLtr(r.xPlus(d,1),l-u-2),x=qm(a.borderRadius);Object.values(x).some((function(e){return 0!==e}))?(e.beginPath(),e.fillStyle=i.multiKeyBackground,Wm(e,{x:y,y:p,w:l,h:s,radius:x}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),Wm(e,{x:b,y:p+1,w:l-2,h:s-2,radius:x}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(y,p,l,s),e.strokeRect(y,p,l,s),e.fillStyle=a.backgroundColor,e.fillRect(b,p+1,l-2,s-2))}e.fillStyle=this.labelTextColors[n]}},{key:"drawBody",value:function(e,t,n){var r,i,a,o,s,l,u,c=this.body,f=n.bodySpacing,d=n.bodyAlign,h=n.displayColors,p=n.boxHeight,v=n.boxWidth,m=n.boxPadding,g=Gm(n.bodyFont),y=g.lineHeight,b=0,x=Lg(n.rtl,this.x,this.width),k=function(n){t.fillText(n,x.x(e.x+b),e.y+y/2),e.y+=y+f},w=x.textAlign(d);for(t.textAlign=d,t.textBaseline="middle",t.font=g.string,e.x=Rx(this,w,n),t.fillStyle=n.bodyColor,fv(this.beforeBody,k),b=h&&"right"!==w?"center"===d?v/2+m:v+2+m:0,o=0,l=c.length;o<l;++o){for(r=c[o],i=this.labelTextColors[o],t.fillStyle=i,fv(r.before,k),a=r.lines,h&&a.length&&(this._drawColorBox(t,e,o,x,n),y=Math.max(g.lineHeight,p)),s=0,u=a.length;s<u;++s)k(a[s]),y=g.lineHeight;fv(r.after,k)}b=0,y=g.lineHeight,fv(this.afterBody,k),e.y-=f}},{key:"drawFooter",value:function(e,t,n){var r,i,a=this.footer,o=a.length;if(o){var s=Lg(n.rtl,this.x,this.width);for(e.x=Rx(this,n.footerAlign,n),e.y+=n.footerMarginTop,t.textAlign=s.textAlign(n.footerAlign),t.textBaseline="middle",r=Gm(n.footerFont),t.fillStyle=n.footerColor,t.font=r.string,i=0;i<o;++i)t.fillText(a[i],s.x(e.x),e.y+r.lineHeight/2),e.y+=r.lineHeight+n.footerSpacing}}},{key:"drawBackground",value:function(e,t,n,r){var i=this.xAlign,a=this.yAlign,o=e.x,s=e.y,l=n.width,u=n.height,c=qm(r.cornerRadius),f=c.topLeft,d=c.topRight,h=c.bottomLeft,p=c.bottomRight;t.fillStyle=r.backgroundColor,t.strokeStyle=r.borderColor,t.lineWidth=r.borderWidth,t.beginPath(),t.moveTo(o+f,s),"top"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+l-d,s),t.quadraticCurveTo(o+l,s,o+l,s+d),"center"===a&&"right"===i&&this.drawCaret(e,t,n,r),t.lineTo(o+l,s+u-p),t.quadraticCurveTo(o+l,s+u,o+l-p,s+u),"bottom"===a&&this.drawCaret(e,t,n,r),t.lineTo(o+h,s+u),t.quadraticCurveTo(o,s+u,o,s+u-h),"center"===a&&"left"===i&&this.drawCaret(e,t,n,r),t.lineTo(o,s+f),t.quadraticCurveTo(o,s,o+f,s),t.closePath(),t.fill(),r.borderWidth>0&&t.stroke()}},{key:"_updateAnimationTarget",value:function(e){var t=this.chart,n=this.$animations,r=n&&n.x,i=n&&n.y;if(r||i){var a=_x[e.position].call(this,this._active,this._eventPosition);if(!a)return;var o=this._size=Px(this,e),s=Object.assign({},a,this._size),l=Tx(t,e,s),u=jx(e,s,l,t);r._to===u.x&&i._to===u.y||(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=o.width,this.height=o.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}},{key:"_willRender",value:function(){return!!this.opacity}},{key:"draw",value:function(e){var t=this.options.setContext(this.getContext()),n=this.opacity;if(n){this._updateAnimationTarget(t);var r={width:this.width,height:this.height},i={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;var a=Ym(t.padding),o=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&o&&(e.save(),e.globalAlpha=n,this.drawBackground(i,e,r,t),Ig(e,t.textDirection),i.y+=a.top,this.drawTitle(i,e,t),this.drawBody(i,e,t),this.drawFooter(i,e,t),zg(e,t.textDirection),e.restore())}}},{key:"getActiveElements",value:function(){return this._active||[]}},{key:"setActiveElements",value:function(e,t){var n=this,r=this._active,i=e.map((function(e){var t=e.datasetIndex,r=e.index,i=n.chart.getDatasetMeta(t);if(!i)throw new Error("Cannot find a dataset at index "+t);return{datasetIndex:t,element:i.data[r],index:r}})),a=!dv(r,i),o=this._positionChanged(i,t);(a||o)&&(this._active=i,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}},{key:"handleEvent",value:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;var r=this.options,i=this._active||[],a=this._getActiveElements(e,i,t,n),o=this._positionChanged(a,e),s=t||!dv(a,i)||o;return s&&(this._active=a,(r.enabled||r.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}},{key:"_getActiveElements",value:function(e,t,n,r){var i=this.options;if("mouseout"===e.type)return[];if(!r)return t;var a=this.chart.getElementsAtEventForMode(e,i.mode,i,n);return i.reverse&&a.reverse(),a}},{key:"_positionChanged",value:function(e,t){var n=this.caretX,r=this.caretY,i=this.options,a=_x[i.position].call(this,e,t);return!1!==a&&(n!==a.x||r!==a.y)}}]),n}(db);(0,Be.Z)(Ix,"positioners",_x);var zx={id:"tooltip",_element:Ix,positioners:_x,afterInit:function(e,t,n){n&&(e.tooltip=new Ix({chart:e,options:n}))},beforeUpdate:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset:function(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw:function(e){var t=e.tooltip;if(t&&t._willRender()){var n={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",dc(dc({},n),{},{cancelable:!0})))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent:function(e,t){if(e.tooltip){var n=t.replay;e.tooltip.handleEvent(t.event,n,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:function(e,t){return t.bodyFont.size},boxWidth:function(e,t){return t.bodyFont.size},multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Dx},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:function(e){return"filter"!==e&&"itemSort"!==e&&"external"!==e},_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Fx(e,t,n,r){var i=e.indexOf(t);return-1===i?function(e,t,n,r){return"string"===typeof t?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n}(e,t,n,r):i!==e.lastIndexOf(t)?n:i}function Bx(e){var t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var Wx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e))._startValue=void 0,r._valueRange=0,r._addedLabels=[],r}return po(n,[{key:"init",value:function(e){var t=this._addedLabels;if(t.length){var r,i=this.getLabels(),a=zc(t);try{for(a.s();!(r=a.n()).done;){var o=r.value,s=o.index,l=o.label;i[s]===l&&i.splice(s,1)}}catch(u){a.e(u)}finally{a.f()}this._addedLabels=[]}yp(gp(n.prototype),"init",this).call(this,e)}},{key:"parse",value:function(e,t){if(rv(e))return null;var n=this.getLabels();return function(e,t){return null===e?null:qv(Math.round(e),0,t)}(t=isFinite(t)&&n[t]===e?t:Fx(n,e,lv(t,e),this._addedLabels),n.length-1)}},{key:"determineDataLimits",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.getMinMax(!0),i=r.min,a=r.max;"ticks"===this.options.bounds&&(t||(i=0),n||(a=this.getLabels().length-1)),this.min=i,this.max=a}},{key:"buildTicks",value:function(){var e=this.min,t=this.max,n=this.options.offset,r=[],i=this.getLabels();i=0===e&&t===i.length-1?i:i.slice(e,t+1),this._valueRange=Math.max(i.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(var a=e;a<=t;a++)r.push({value:a});return r}},{key:"getLabelForValue",value:function(e){return Bx.call(this,e)}},{key:"configure",value:function(){yp(gp(n.prototype),"configure",this).call(this),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}},{key:"getPixelForValue",value:function(e){return"number"!==typeof e&&(e=this.parse(e)),null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getPixelForTick",value:function(e){var t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}},{key:"getValueForPixel",value:function(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}},{key:"getBasePixel",value:function(){return this.bottom}}]),n}(wb);function Vx(e,t){var n,r,i,a,o=[],s=e.bounds,l=e.step,u=e.min,c=e.max,f=e.precision,d=e.count,h=e.maxTicks,p=e.maxDigits,v=e.includeBounds,m=l||1,g=h-1,y=t.min,b=t.max,x=!rv(u),k=!rv(c),w=!rv(d),S=(b-y)/(p+1),_=Iv((b-y)/g/m)*m;if(_<1e-14&&!x&&!k)return[{value:y},{value:b}];(a=Math.ceil(b/_)-Math.floor(y/_))>g&&(_=Iv(a*_/g/m)*m),rv(f)||(n=Math.pow(10,f),_=Math.ceil(_*n)/n),"ticks"===s?(r=Math.floor(y/_)*_,i=Math.ceil(b/_)*_):(r=y,i=b),x&&k&&l&&function(e,t){var n=Math.round(e);return n-t<=e&&n+t>=e}((c-u)/l,_/1e3)?(_=(c-u)/(a=Math.round(Math.min((c-u)/_,h))),r=u,i=c):w?_=((i=k?c:i)-(r=x?u:r))/(a=d-1):a=Lv(a=(i-r)/_,Math.round(a),_/1e3)?Math.round(a):Math.ceil(a);var C=Math.max(Vv(_),Vv(r));n=Math.pow(10,rv(f)?C:f),r=Math.round(r*n)/n,i=Math.round(i*n)/n;var E=0;for(x&&(v&&r!==u?(o.push({value:u}),r<u&&E++,Lv(Math.round((r+E*_)*n)/n,u,Zx(u,S,e))&&E++):r<u&&E++);E<a;++E)o.push({value:Math.round((r+E*_)*n)/n});return k&&v&&i!==c?o.length&&Lv(o[o.length-1].value,c,Zx(c,S,e))?o[o.length-1].value=c:o.push({value:c}):k&&i!==c||o.push({value:i}),o}function Zx(e,t,n){var r=n.horizontal,i=Bv(n.minRotation),a=(r?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}(0,Be.Z)(Wx,"id","category"),(0,Be.Z)(Wx,"defaults",{ticks:{callback:Bx}});var Hx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._endValue=void 0,r._valueRange=0,r}return po(n,[{key:"parse",value:function(e,t){return rv(e)||("number"===typeof e||e instanceof Number)&&!isFinite(+e)?null:+e}},{key:"handleTickRangeOptions",value:function(){var e=this.options.beginAtZero,t=this.getUserBounds(),n=t.minDefined,r=t.maxDefined,i=this.min,a=this.max,o=function(e){return i=n?i:e},s=function(e){return a=r?a:e};if(e){var l=Dv(i),u=Dv(a);l<0&&u<0?s(0):l>0&&u>0&&o(0)}if(i===a){var c=0===a?1:Math.abs(.05*a);s(a+c),e||o(i-c)}this.min=i,this.max=a}},{key:"getTickLimit",value:function(){var e,t=this.options.ticks,n=t.maxTicksLimit,r=t.stepSize;return r?(e=Math.ceil(this.max/r)-Math.floor(this.min/r)+1)>1e3&&(console.warn("scales.".concat(this.id,".ticks.stepSize: ").concat(r," would result generating up to ").concat(e," ticks. Limiting to 1000.")),e=1e3):(e=this.computeTickLimit(),n=n||11),n&&(e=Math.min(n,e)),e}},{key:"computeTickLimit",value:function(){return Number.POSITIVE_INFINITY}},{key:"buildTicks",value:function(){var e=this.options,t=e.ticks,n=this.getTickLimit(),r=Vx({maxTicks:n=Math.max(2,n),bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&Fv(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}},{key:"configure",value:function(){var e=this.ticks,t=this.min,r=this.max;if(yp(gp(n.prototype),"configure",this).call(this),this.options.offset&&e.length){var i=(r-t)/Math.max(e.length-1,1)/2;t-=i,r+=i}this._startValue=t,this._endValue=r,this._valueRange=r-t}},{key:"getLabelForValue",value:function(e){return ym(e,this.chart.options.locale,this.options.ticks.format)}}]),n}(wb),$x=function(e){bp(n,e);var t=xp(n);function n(){return kp(this,n),t.apply(this,arguments)}return po(n,[{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=ov(t)?t:0,this.max=ov(n)?n:1,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){var e=this.isHorizontal(),t=e?this.width:this.height,n=Bv(this.options.ticks.minRotation),r=(e?Math.sin(n):Math.cos(n))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,i.lineHeight/r))}},{key:"getPixelForValue",value:function(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}]),n}(Hx);(0,Be.Z)($x,"id","linear"),(0,Be.Z)($x,"defaults",{ticks:{callback:xm.formatters.numeric}});var Ux=function(e){return Math.floor(Nv(e))},Kx=function(e,t){return Math.pow(10,Ux(e)+t)};function qx(e){return 1===e/Math.pow(10,Ux(e))}function Yx(e,t,n){var r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function Gx(e,t){var n=t.min,r=t.max;n=sv(e.min,n);for(var i=[],a=Ux(n),o=function(e,t){for(var n=Ux(t-e);Yx(e,t,n)>10;)n++;for(;Yx(e,t,n)<10;)n--;return Math.min(n,Ux(e))}(n,r),s=o<0?Math.pow(10,Math.abs(o)):1,l=Math.pow(10,o),u=a>o?Math.pow(10,a):0,c=Math.round((n-u)*s)/s,f=Math.floor((n-u)/l/10)*l*10,d=Math.floor((c-f)/Math.pow(10,o)),h=sv(e.min,Math.round((u+f+d*Math.pow(10,o))*s)/s);h<r;)i.push({value:h,major:qx(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(d=2,s=++o>=0?1:s),h=Math.round((u+f+d*Math.pow(10,o))*s)/s;var p=sv(e.max,h);return i.push({value:p,major:qx(p),significand:d}),i}var Xx=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e)).start=void 0,r.end=void 0,r._startValue=void 0,r._valueRange=0,r}return po(n,[{key:"parse",value:function(e,t){var n=Hx.prototype.parse.apply(this,[e,t]);if(0!==n)return ov(n)&&n>0?n:null;this._zero=!0}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!0),t=e.min,n=e.max;this.min=ov(t)?Math.max(0,t):null,this.max=ov(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ov(this._userMin)&&(this.min=t===Kx(this.min,0)?Kx(this.min,-1):Kx(this.min,0)),this.handleTickRangeOptions()}},{key:"handleTickRangeOptions",value:function(){var e=this.getUserBounds(),t=e.minDefined,n=e.maxDefined,r=this.min,i=this.max,a=function(e){return r=t?r:e},o=function(e){return i=n?i:e};r===i&&(r<=0?(a(1),o(10)):(a(Kx(r,-1)),o(Kx(i,1)))),r<=0&&a(Kx(i,-1)),i<=0&&o(Kx(r,1)),this.min=r,this.max=i}},{key:"buildTicks",value:function(){var e=this.options,t=Gx({min:this._userMin,max:this._userMax},this);return"ticks"===e.bounds&&Fv(t,this,"value"),e.reverse?(t.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),t}},{key:"getLabelForValue",value:function(e){return void 0===e?"0":ym(e,this.chart.options.locale,this.options.ticks.format)}},{key:"configure",value:function(){var e=this.min;yp(gp(n.prototype),"configure",this).call(this),this._startValue=Nv(e),this._valueRange=Nv(this.max)-Nv(e)}},{key:"getPixelForValue",value:function(e){return void 0!==e&&0!==e||(e=this.min),null===e||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Nv(e)-this._startValue)/this._valueRange)}},{key:"getValueForPixel",value:function(e){var t=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+t*this._valueRange)}}]),n}(wb);function Qx(e){var t=e.ticks;if(t.display&&e.display){var n=Ym(t.backdropPadding);return lv(t.font&&t.font.size,Em.font.size)+n.height}return 0}function Jx(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:e<r||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function ek(e){for(var t,n,r,i={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},a=Object.assign({},i),o=[],s=[],l=e._pointLabels.length,u=e.options.pointLabels,c=u.centerPointLabels?Ev/l:0,f=0;f<l;f++){var d=u.setContext(e.getPointLabelContext(f));s[f]=d.padding;var h=e.getPointPosition(f,e.drawingArea+s[f],c),p=Gm(d.font),v=(t=e.ctx,n=p,r=iv(r=e._pointLabels[f])?r:[r],{w:Pm(t,n.string,r),h:r.length*n.lineHeight});o[f]=v;var m=Uv(e.getIndexAngle(f)+c),g=Math.round(Wv(m));tk(a,i,m,Jx(g,h.x,v.w,0,180),Jx(g,h.y,v.h,90,270))}e.setCenterPoint(i.l-a.l,a.r-i.r,i.t-a.t,a.b-i.b),e._pointLabelItems=function(e,t,n){for(var r=[],i=e._pointLabels.length,a=e.options,o=Qx(a)/2,s=e.drawingArea,l=a.pointLabels.centerPointLabels?Ev/i:0,u=0;u<i;u++){var c=e.getPointPosition(u,s+o+n[u],l),f=Math.round(Wv(Uv(c.angle+jv))),d=t[u],h=ik(c.y,d.h,f),p=nk(f),v=rk(c.x,d.w,p);r.push({x:c.x,y:h,textAlign:p,left:v,top:h,right:v+d.w,bottom:h+d.h})}return r}(e,o,s)}function tk(e,t,n,r,i){var a=Math.abs(Math.sin(n)),o=Math.abs(Math.cos(n)),s=0,l=0;r.start<t.l?(s=(t.l-r.start)/a,e.l=Math.min(e.l,t.l-s)):r.end>t.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.start<t.t?(l=(t.t-i.start)/o,e.t=Math.min(e.t,t.t-l)):i.end>t.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function nk(e){return 0===e||180===e?"center":e<180?"left":"right"}function rk(e,t,n){return"right"===n?e-=t:"center"===n&&(e-=t/2),e}function ik(e,t,n){return 90===n||270===n?e-=t/2:(n>270||n<90)&&(e-=t),e}function ak(e,t,n,r){var i=e.ctx;if(n)i.arc(e.xCenter,e.yCenter,t,0,Ov);else{var a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(var o=1;o<r;o++)a=e.getPointPosition(o,t),i.lineTo(a.x,a.y)}}(0,Be.Z)(Xx,"id","logarithmic"),(0,Be.Z)(Xx,"defaults",{ticks:{callback:xm.formatters.logarithmic,major:{enabled:!0}}});var ok=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e)).xCenter=void 0,r.yCenter=void 0,r.drawingArea=void 0,r._pointLabels=[],r._pointLabelItems=[],r}return po(n,[{key:"setDimensions",value:function(){var e=this._padding=Ym(Qx(this.options)/2),t=this.width=this.maxWidth-e.width,n=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+t/2+e.left),this.yCenter=Math.floor(this.top+n/2+e.top),this.drawingArea=Math.floor(Math.min(t,n)/2)}},{key:"determineDataLimits",value:function(){var e=this.getMinMax(!1),t=e.min,n=e.max;this.min=ov(t)&&!isNaN(t)?t:0,this.max=ov(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}},{key:"computeTickLimit",value:function(){return Math.ceil(this.drawingArea/Qx(this.options))}},{key:"generateTickLabels",value:function(e){var t=this;Hx.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((function(e,n){var r=cv(t.options.pointLabels.callback,[e,n],t);return r||0===r?r:""})).filter((function(e,n){return t.chart.getDataVisibility(n)}))}},{key:"fit",value:function(){var e=this.options;e.display&&e.pointLabels.display?ek(this):this.setCenterPoint(0,0,0,0)}},{key:"setCenterPoint",value:function(e,t,n,r){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((n-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,n,r))}},{key:"getIndexAngle",value:function(e){return Uv(e*(Ov/(this._pointLabels.length||1))+Bv(this.options.startAngle||0))}},{key:"getDistanceFromCenterForValue",value:function(e){if(rv(e))return NaN;var t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}},{key:"getValueForDistanceFromCenter",value:function(e){if(rv(e))return NaN;var t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}},{key:"getPointLabelContext",value:function(e){var t=this._pointLabels||[];if(e>=0&&e<t.length){var n=t[e];return function(e,t,n){return Qm(e,{label:n,index:t,type:"pointLabel"})}(this.getContext(),e,n)}}},{key:"getPointPosition",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getIndexAngle(e)-jv+n;return{x:Math.cos(r)*t+this.xCenter,y:Math.sin(r)*t+this.yCenter,angle:r}}},{key:"getPointPositionForValue",value:function(e,t){return this.getPointPosition(e,this.getDistanceFromCenterForValue(t))}},{key:"getBasePosition",value:function(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}},{key:"getPointLabelPosition",value:function(e){var t=this._pointLabelItems[e];return{left:t.left,top:t.top,right:t.right,bottom:t.bottom}}},{key:"drawBackground",value:function(){var e=this.options,t=e.backgroundColor,n=e.grid.circular;if(t){var r=this.ctx;r.save(),r.beginPath(),ak(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=t,r.fill(),r.restore()}}},{key:"drawGrid",value:function(){var e,t,n,r=this,i=this.ctx,a=this.options,o=a.angleLines,s=a.grid,l=a.border,u=this._pointLabels.length;if(a.pointLabels.display&&function(e,t){for(var n=e.ctx,r=e.options.pointLabels,i=t-1;i>=0;i--){var a=r.setContext(e.getPointLabelContext(i)),o=Gm(a.font),s=e._pointLabelItems[i],l=s.x,u=s.y,c=s.textAlign,f=s.left,d=s.top,h=s.right,p=s.bottom,v=a.backdropColor;if(!rv(v)){var m=qm(a.borderRadius),g=Ym(a.backdropPadding);n.fillStyle=v;var y=f-g.left,b=d-g.top,x=h-f+g.width,k=p-d+g.height;Object.values(m).some((function(e){return 0!==e}))?(n.beginPath(),Wm(n,{x:y,y:b,w:x,h:k,radius:m}),n.fill()):n.fillRect(y,b,x,k)}zm(n,e._pointLabels[i],l,u+o.lineHeight/2,o,{color:a.color,textAlign:c,textBaseline:"middle"})}}(this,u),s.display&&this.ticks.forEach((function(e,n){if(0!==n){t=r.getDistanceFromCenterForValue(e.value);var i=r.getContext(n),a=s.setContext(i),o=l.setContext(i);!function(e,t,n,r,i){var a=e.ctx,o=t.circular,s=t.color,l=t.lineWidth;!o&&!r||!s||!l||n<0||(a.save(),a.strokeStyle=s,a.lineWidth=l,a.setLineDash(i.dash),a.lineDashOffset=i.dashOffset,a.beginPath(),ak(e,n,o,r),a.closePath(),a.stroke(),a.restore())}(r,a,t,u,o)}})),o.display){for(i.save(),e=u-1;e>=0;e--){var c=o.setContext(this.getPointLabelContext(e)),f=c.color,d=c.lineWidth;d&&f&&(i.lineWidth=d,i.strokeStyle=f,i.setLineDash(c.borderDash),i.lineDashOffset=c.borderDashOffset,t=this.getDistanceFromCenterForValue(a.ticks.reverse?this.min:this.max),n=this.getPointPosition(e,t),i.beginPath(),i.moveTo(this.xCenter,this.yCenter),i.lineTo(n.x,n.y),i.stroke())}i.restore()}}},{key:"drawBorder",value:function(){}},{key:"drawLabels",value:function(){var e=this,t=this.ctx,n=this.options,r=n.ticks;if(r.display){var i,a,o=this.getIndexAngle(0);t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(o),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((function(o,s){if(0!==s||n.reverse){var l=r.setContext(e.getContext(s)),u=Gm(l.font);if(i=e.getDistanceFromCenterForValue(e.ticks[s].value),l.showLabelBackdrop){t.font=u.string,a=t.measureText(o.label).width,t.fillStyle=l.backdropColor;var c=Ym(l.backdropPadding);t.fillRect(-a/2-c.left,-i-u.size/2-c.top,a+c.width,u.size+c.height)}zm(t,o.label,0,-i,u,{color:l.color})}})),t.restore()}}},{key:"drawTitle",value:function(){}}]),n}(Hx);(0,Be.Z)(ok,"id","radialLinear"),(0,Be.Z)(ok,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:xm.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:function(e){return e},padding:5,centerPointLabels:!1}}),(0,Be.Z)(ok,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),(0,Be.Z)(ok,"descriptors",{angleLines:{_fallback:"grid"}});var sk={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},lk=Object.keys(sk);function uk(e,t){return e-t}function ck(e,t){if(rv(t))return null;var n=e._adapter,r=e._parseOpts,i=r.parser,a=r.round,o=r.isoWeekday,s=t;return"function"===typeof i&&(s=i(s)),ov(s)||(s="string"===typeof i?n.parse(s,i):n.parse(s)),null===s?null:(a&&(s="week"!==a||!zv(o)&&!0!==o?n.startOf(s,a):n.startOf(s,"isoWeek",o)),+s)}function fk(e,t,n,r){for(var i=lk.length,a=lk.indexOf(e);a<i-1;++a){var o=sk[lk[a]],s=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((n-t)/(s*o.size))<=r)return lk[a]}return lk[i-1]}function dk(e,t,n){if(n){if(n.length){var r=Gv(n,t),i=r.lo,a=r.hi;e[n[i]>=t?n[i]:n[a]]=!0}}else e[t]=!0}function hk(e,t,n){var r,i,a=[],o={},s=t.length;for(r=0;r<s;++r)o[i=t[r]]=r,a.push({value:i,major:!1});return 0!==s&&n?function(e,t,n,r){var i,a,o=e._adapter,s=+o.startOf(t[0].value,r),l=t[t.length-1].value;for(i=s;i<=l;i=+o.add(i,1,r))(a=n[i])>=0&&(t[a].major=!0);return t}(e,a,o,n):a}var pk=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e))._cache={data:[],labels:[],all:[]},r._unit="day",r._majorUnit=void 0,r._offsets={},r._normalized=!1,r._parseOpts=void 0,r}return po(n,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.time||(e.time={}),i=this._adapter=new Py._date(e.adapters.date);i.init(t),gv(r.displayFormats,i.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},yp(gp(n.prototype),"init",this).call(this,e),this._normalized=t.normalized}},{key:"parse",value:function(e,t){return void 0===e?null:ck(this,e)}},{key:"beforeLayout",value:function(){yp(gp(n.prototype),"beforeLayout",this).call(this),this._cache={data:[],labels:[],all:[]}}},{key:"determineDataLimits",value:function(){var e=this.options,t=this._adapter,n=e.time.unit||"day",r=this.getUserBounds(),i=r.min,a=r.max,o=r.minDefined,s=r.maxDefined;function l(e){o||isNaN(e.min)||(i=Math.min(i,e.min)),s||isNaN(e.max)||(a=Math.max(a,e.max))}o&&s||(l(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||l(this.getMinMax(!1))),i=ov(i)&&!isNaN(i)?i:+t.startOf(Date.now(),n),a=ov(a)&&!isNaN(a)?a:+t.endOf(Date.now(),n)+1,this.min=Math.min(i,a-1),this.max=Math.max(i+1,a)}},{key:"_getLabelBounds",value:function(){var e=this.getLabelTimestamps(),t=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],n=e[e.length-1]),{min:t,max:n}}},{key:"buildTicks",value:function(){var e=this.options,t=e.time,n=e.ticks,r="labels"===n.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);var i=this.min,a=function(e,t,n){for(var r=0,i=e.length;r<i&&e[r]<t;)r++;for(;i>r&&e[i-1]>n;)i--;return r>0||i<e.length?e.slice(r,i):e}(r,i,this.max);return this._unit=t.unit||(n.autoSkip?fk(t.minUnit,this.min,this.max,this._getLabelCapacity(i)):function(e,t,n,r,i){for(var a=lk.length-1;a>=lk.indexOf(n);a--){var o=lk[a];if(sk[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return lk[n?lk.indexOf(n):0]}(this,a.length,t.minUnit,this.min,this.max)),this._majorUnit=n.major.enabled&&"year"!==this._unit?function(e){for(var t=lk.indexOf(e)+1,n=lk.length;t<n;++t)if(sk[lk[t]].common)return lk[t]}(this._unit):void 0,this.initOffsets(r),e.reverse&&a.reverse(),hk(this,a,this._majorUnit)}},{key:"afterAutoSkip",value:function(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map((function(e){return+e.value})))}},{key:"initOffsets",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=0,i=0;this.options.offset&&n.length&&(e=this.getDecimalForValue(n[0]),r=1===n.length?1-e:(this.getDecimalForValue(n[1])-e)/2,t=this.getDecimalForValue(n[n.length-1]),i=1===n.length?t:(t-this.getDecimalForValue(n[n.length-2]))/2);var a=n.length<3?.5:.25;r=qv(r,0,a),i=qv(i,0,a),this._offsets={start:r,end:i,factor:1/(r+1+i)}}},{key:"_generate",value:function(){var e,t,n=this._adapter,r=this.min,i=this.max,a=this.options,o=a.time,s=o.unit||fk(o.minUnit,r,i,this._getLabelCapacity(r)),l=lv(a.ticks.stepSize,1),u="week"===s&&o.isoWeekday,c=zv(u)||!0===u,f={},d=r;if(c&&(d=+n.startOf(d,"isoWeek",u)),d=+n.startOf(d,c?"day":s),n.diff(i,r,s)>1e5*l)throw new Error(r+" and "+i+" are too far apart with stepSize of "+l+" "+s);var h="data"===a.ticks.source&&this.getDataTimestamps();for(e=d,t=0;e<i;e=+n.add(e,l,s),t++)dk(f,e,h);return e!==i&&"ticks"!==a.bounds&&1!==t||dk(f,e,h),Object.keys(f).sort((function(e,t){return e-t})).map((function(e){return+e}))}},{key:"getLabelForValue",value:function(e){var t=this._adapter,n=this.options.time;return n.tooltipFormat?t.format(e,n.tooltipFormat):t.format(e,n.displayFormats.datetime)}},{key:"format",value:function(e,t){var n=this.options.time.displayFormats,r=this._unit,i=t||n[r];return this._adapter.format(e,i)}},{key:"_tickFormatFunction",value:function(e,t,n,r){var i=this.options,a=i.ticks.callback;if(a)return cv(a,[e,t,n],this);var o=i.time.displayFormats,s=this._unit,l=this._majorUnit,u=s&&o[s],c=l&&o[l],f=n[t],d=l&&c&&f&&f.major;return this._adapter.format(e,r||(d?c:u))}},{key:"generateTickLabels",value:function(e){var t,n,r;for(t=0,n=e.length;t<n;++t)(r=e[t]).label=this._tickFormatFunction(r.value,t,e)}},{key:"getDecimalForValue",value:function(e){return null===e?NaN:(e-this.min)/(this.max-this.min)}},{key:"getPixelForValue",value:function(e){var t=this._offsets,n=this.getDecimalForValue(e);return this.getPixelForDecimal((t.start+n)*t.factor)}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return this.min+n*(this.max-this.min)}},{key:"_getLabelSize",value:function(e){var t=this.options.ticks,n=this.ctx.measureText(e).width,r=Bv(this.isHorizontal()?t.maxRotation:t.minRotation),i=Math.cos(r),a=Math.sin(r),o=this._resolveTickFontOptions(0).size;return{w:n*i+o*a,h:n*a+o*i}}},{key:"_getLabelCapacity",value:function(e){var t=this.options.time,n=t.displayFormats,r=n[t.unit]||n.millisecond,i=this._tickFormatFunction(e,0,hk(this,[e],this._majorUnit),r),a=this._getLabelSize(i),o=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return o>0?o:1}},{key:"getDataTimestamps",value:function(){var e,t,n=this._cache.data||[];if(n.length)return n;var r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,t=r.length;e<t;++e)n=n.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(n)}},{key:"getLabelTimestamps",value:function(){var e,t,n=this._cache.labels||[];if(n.length)return n;var r=this.getLabels();for(e=0,t=r.length;e<t;++e)n.push(ck(this,r[e]));return this._cache.labels=this._normalized?n:this.normalize(n)}},{key:"normalize",value:function(e){return tm(e.sort(uk))}}]),n}(wb);function vk(e,t,n){var r,i,a,o,s=0,l=e.length-1;if(n){if(t>=e[s].pos&&t<=e[l].pos){var u=Xv(e,"pos",t);s=u.lo,l=u.hi}var c=e[s];r=c.pos,a=c.time;var f=e[l];i=f.pos,o=f.time}else{if(t>=e[s].time&&t<=e[l].time){var d=Xv(e,"time",t);s=d.lo,l=d.hi}var h=e[s];r=h.time,a=h.pos;var p=e[l];i=p.time,o=p.pos}var v=i-r;return v?a+(o-a)*(t-r)/v:a}(0,Be.Z)(pk,"id","time"),(0,Be.Z)(pk,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});var mk=function(e){bp(n,e);var t=xp(n);function n(e){var r;return kp(this,n),(r=t.call(this,e))._table=[],r._minPos=void 0,r._tableRange=void 0,r}return po(n,[{key:"initOffsets",value:function(){var e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=vk(t,this.min),this._tableRange=vk(t,this.max)-this._minPos,yp(gp(n.prototype),"initOffsets",this).call(this,e)}},{key:"buildLookupTable",value:function(e){var t,n,r,i,a,o=this.min,s=this.max,l=[],u=[];for(t=0,n=e.length;t<n;++t)(i=e[t])>=o&&i<=s&&l.push(i);if(l.length<2)return[{time:o,pos:0},{time:s,pos:1}];for(t=0,n=l.length;t<n;++t)a=l[t+1],r=l[t-1],i=l[t],Math.round((a+r)/2)!==i&&u.push({time:i,pos:t/(n-1)});return u}},{key:"_getTimestampsForTable",value:function(){var e=this._cache.all||[];if(e.length)return e;var t=this.getDataTimestamps(),n=this.getLabelTimestamps();return e=t.length&&n.length?this.normalize(t.concat(n)):t.length?t:n,e=this._cache.all=e}},{key:"getDecimalForValue",value:function(e){return(vk(this._table,e)-this._minPos)/this._tableRange}},{key:"getValueForPixel",value:function(e){var t=this._offsets,n=this.getDecimalForPixel(e)/t.factor-t.end;return vk(this._table,n*this._tableRange+this._minPos,!0)}}]),n}(pk);(0,Be.Z)(mk,"id","timeseries"),(0,Be.Z)(mk,"defaults",pk.defaults);var gk=["height","width","redraw","datasetIdKey","type","data","options","plugins","fallbackContent","updateMode"],yk="label";function bk(e,t){"function"===typeof e?e(t):e&&(e.current=t)}function xk(e,t){e.labels=t}function kk(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:yk,r=[];e.datasets=t.map((function(t){var i=e.datasets.find((function(e){return e[n]===t[n]}));return i&&t.data&&!r.includes(i)?(r.push(i),Object.assign(i,t),i):dc({},t)}))}function wk(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yk,n={labels:[],datasets:[]};return xk(n,e.labels),kk(n,e.datasets,t),n}function Sk(t,n){var r=t.height,i=void 0===r?150:r,a=t.width,o=void 0===a?300:a,s=t.redraw,l=void 0!==s&&s,u=t.datasetIdKey,c=t.type,f=t.data,d=t.options,h=t.plugins,p=void 0===h?[]:h,v=t.fallbackContent,m=t.updateMode,g=Ne(t,gk),y=(0,e.useRef)(null),b=(0,e.useRef)(),x=function(){y.current&&(b.current=new Yb(y.current,{type:c,data:wk(f,u),options:d&&dc({},d),plugins:p}),bk(n,b.current))},k=function(){bk(n,null),b.current&&(b.current.destroy(),b.current=null)};return(0,e.useEffect)((function(){!l&&b.current&&d&&function(e,t){var n=e.options;n&&t&&Object.assign(n,t)}(b.current,d)}),[l,d]),(0,e.useEffect)((function(){!l&&b.current&&xk(b.current.config.data,f.labels)}),[l,f.labels]),(0,e.useEffect)((function(){!l&&b.current&&f.datasets&&kk(b.current.config.data,f.datasets,u)}),[l,f.datasets]),(0,e.useEffect)((function(){b.current&&(l?(k(),setTimeout(x)):b.current.update(m))}),[l,d,f.labels,f.datasets,m]),(0,e.useEffect)((function(){b.current&&(k(),setTimeout(x))}),[c]),(0,e.useEffect)((function(){return x(),function(){return k()}}),[]),e.createElement("canvas",Object.assign({ref:y,role:"img",height:i,width:o},g),v)}var _k=(0,e.forwardRef)(Sk);function Ck(t,n){return Yb.register(n),(0,e.forwardRef)((function(n,r){return e.createElement(_k,Object.assign({},n,{ref:r,type:t}))}))}var Ek=Ck("doughnut",xy);function Ok(t){var n=(0,e.useState)(null),r=(0,mt.Z)(n,2),i=r[0],a=r[1];return(0,e.useEffect)((function(){function e(){return(e=so(ao().mark((function e(){return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{fetch("https://api.bb.gabefarrell.com/w/budget",{method:"GET",headers:{"x-session-key":ic()}}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error);else{var t={labels:Object.keys(e.expenses_by_category).length>0?Object.keys(e.expenses_by_category):["No income."],datasets:[{data:Object.values(e.expenses_by_category).map((function(e){return cc(e)})),label:"Category",backgroundColor:["#FFC857","#5C919B","#DB3A34","#F6A54F","#61B06E","#8166CC","#ED8146","#B0BC63","#5672C7","#E45E3D"],borderColor:["white"],borderWidth:2}]};a(t)}})).catch((function(e){console.log(e)}))}catch(t){console.error(t)}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),i?(0,vc.jsxs)("div",{className:"widget",children:[(0,vc.jsx)("h4",{children:"Expenses by Category"}),(0,vc.jsx)(Ek,{className:"w-100 h-auto",data:i,options:{plugins:{legend:{position:"right"}},responsive:!0}})]}):(0,vc.jsx)("p",{children:"Loading..."})}function Pk(t){var n=(0,e.useState)(null),r=(0,mt.Z)(n,2),i=r[0],a=r[1];return(0,e.useEffect)((function(){function e(){return(e=so(ao().mark((function e(){return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{fetch("https://api.bb.gabefarrell.com/w/income",{method:"GET",headers:{"x-session-key":ic()}}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error);else{var t={labels:Object.keys(e.income_by_category).length>0?Object.keys(e.income_by_category):["No income."],datasets:[{data:Object.values(e.income_by_category).map((function(e){return cc(e)})),label:"Total cost",backgroundColor:["#61B06E","#8166CC","#ED8146","#B0BC63","#5672C7","#E45E3D","#FFC857","#5C919B","#DB3A34","#F6A54F"],borderColor:["white"],borderWidth:2}]};a(t)}})).catch((function(e){console.log(e)}))}catch(t){console.error(t)}case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),i?(0,vc.jsxs)("div",{className:"widget",children:[(0,vc.jsx)("h4",{children:"Income by Category"}),(0,vc.jsx)(Ek,{className:"w-100 h-auto",data:i,options:{plugins:{legend:{position:"right"}},responsive:!0}})]}):(0,vc.jsx)("p",{children:"Loading..."})}Yb.register(tx,zx,Sx),Yb.register(tx,zx,Sx);var Mk=function(e){var t=e.text,n=e.placeholder,r=e.value,i=e.onInput;return(0,vc.jsxs)("div",{className:"input-group mb-4",children:[(0,vc.jsx)("label",{className:"input-group-text",children:t}),(0,vc.jsx)("input",{type:"number",className:"form-control",placeholder:n,value:r,onInput:i})]})},Tk=function(){var t=(0,e.useState)(0),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(""),c=(0,mt.Z)(u,2),f=c[0],d=c[1],h=(0,e.useState)(0),p=(0,mt.Z)(h,2),v=p[0],m=p[1],g=(0,e.useState)(0),y=(0,mt.Z)(g,2),b=y[0],x=y[1];return(0,e.useEffect)((function(){x(v*(12*f)-r)}),[v]),(0,vc.jsxs)("div",{className:"widget",children:[(0,vc.jsx)("h4",{className:"mb-5",children:"Loan Calculator"}),(0,vc.jsxs)("form",{onSubmit:function(e){return e.preventDefault()},children:[(0,vc.jsx)(Mk,{text:"Loan Amount $",placeholder:"",value:r,onInput:function(e){return i(e.target.value)}}),(0,vc.jsx)(Mk,{text:"Interest Rate %",placeholder:"",value:s,onInput:function(e){return l(e.target.value)}}),(0,vc.jsx)(Mk,{text:"Loan Duration in Years",placeholder:"",value:f,onInput:function(e){return d(e.target.value)}}),(0,vc.jsxs)("h4",{className:"alert alert-info fw-bold",children:["Monthly Payment: $",v.toFixed(2),(0,vc.jsxs)("h5",{className:"mt-4",children:["Principal Paid: $",r]}),(0,vc.jsxs)("h5",{children:["Interest Paid: $",b.toFixed(2)]})]}),(0,vc.jsx)("button",{type:"submit",className:"btn btn-primary btn-lg w-100 mt-3 center",onClick:function(){var e=function(e){return e/12/100};m(e(s*r)/(1-Math.pow(1+e(s),-12*f)))},children:"Calculate"})]})]})};function jk(){return(0,vc.jsx)(cp,{children:(0,vc.jsxs)("div",{className:"container-fluid",children:[(0,vc.jsxs)("div",{className:"row align-items-stretch",children:[(0,vc.jsx)("div",{className:"col-sm",children:(0,vc.jsx)(hp,{})}),(0,vc.jsx)("div",{className:"col-sm widget d-flex align-items-center justify-content-between",children:(0,vc.jsx)(mp,{})}),(0,vc.jsx)("div",{className:"col-sm"})]}),(0,vc.jsxs)("div",{className:"row mt-3",children:[(0,vc.jsx)("div",{className:"col",children:(0,vc.jsx)(vp,{})}),(0,vc.jsx)("div",{className:"col",children:(0,vc.jsx)(pp,{})})]}),(0,vc.jsxs)("div",{className:"row mt-3",children:[(0,vc.jsx)("div",{className:"col-12 col-md-12 col-lg-4",children:(0,vc.jsx)(Tk,{})}),(0,vc.jsx)("div",{className:"col-12 col-lg-4",children:(0,vc.jsx)(Ok,{})}),(0,vc.jsx)("div",{className:"col-12 col-lg-4",children:(0,vc.jsx)(Pk,{})})]})]})})}var Rk=n.p+"static/media/umass_lowell.adff7eaefc5d0aa6343d.jpeg",Ak=n.p+"static/media/river_hawk.175d1b2ee8b8ae31ab50.png",Nk=n.p+"static/media/budgethero1.ef97d4454cc11d5d60d0.png";function Dk(){return(0,vc.jsx)(vc.Fragment,{children:(0,vc.jsxs)("div",{className:"container overflow-auto",children:[(0,vc.jsx)("header",{children:(0,vc.jsx)("div",{className:"container h-100",children:(0,vc.jsx)("div",{className:"row h-100 align-items-center",children:(0,vc.jsxs)("div",{className:"mt-4 col-12 text-center",children:[(0,vc.jsx)("h1",{className:"fw-light",children:"About Us"}),(0,vc.jsx)("p",{className:"lead",children:"Budget Buddy"})]})})})}),(0,vc.jsx)("div",{className:"container h-100",children:(0,vc.jsx)("div",{className:"row h-100 align-items-center",children:(0,vc.jsx)("div",{className:"mt-4 col-12 text-center",children:(0,vc.jsx)("img",{className:"img-fluid col-8",src:Rk,alt:"uml campus"})})})}),(0,vc.jsx)("p",{className:"mt-5",children:"We're four computer science students from UMass Lowell. Our names are Daniel Quinonez, Jacob Veber, Gabe Herrera, and Chris Olaf."}),(0,vc.jsx)("p",{className:"mt-4",children:"Using Budget Buddy, we are hoping to help young people learn how to better take control of their finances. We know that it can be extremely difficult to balance bills and other expenses at the same time as being a full-time student, so we want to make it as easy as possible for students to quickly understand what their budget looks like. In addition, we want to help young people make plans to pay off any loans they have needed to take out if, for example, they are a college student. This way, we hope that the daunting task of managing debt while being a young adult with little or unstable income can be made easier."}),(0,vc.jsx)("p",{className:"mt-4 mb-5",children:"By helping the young demographic manage their way through debt, we are aiming to help them gain financial independence as soon as possible, so that they can live their lives post-graduation with the most opportunities. Also, and possibly most importantly, we hope that by using Budget Buddy, people gain an idea of how to effectively balance their budget. This way, they will be able to manage their money in a more effective way after they graduate and move into the professional world. We want young people to have an idea of how budgeting can work for them when they begin to make more money in their careers and begin to take on more debt in order to do things like buy a house."}),(0,vc.jsxs)("div",{className:"row mb-5",children:[(0,vc.jsx)("img",{src:Ak,className:"col-4",alt:"uml logo"}),(0,vc.jsx)("img",{src:Nk,className:"col-4 offset-4",alt:"budget hero"})]})]})})}function Lk(){return(0,vc.jsx)("h1",{children:"Privacy"})}var Ik=function(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(""),c=(0,mt.Z)(u,2),f=c[0],d=c[1],h=(0,e.useState)(""),p=(0,mt.Z)(h,2),v=(p[0],p[1]),m=(0,e.useState)(""),g=(0,mt.Z)(m,2),y=g[0],b=g[1],x=(0,e.useState)(""),k=(0,mt.Z)(x,2),w=k[0],S=k[1],_=(0,e.useState)(""),C=(0,mt.Z)(_,2),E=C[0],O=C[1],P=(0,e.useState)(""),M=(0,mt.Z)(P,2),T=M[0],j=M[1];(0,e.useEffect)((function(){function e(){return e=so(ao().mark((function e(){var t;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ac();case 2:t=e.sent,i(t);case 4:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]),(0,e.useEffect)((function(){function e(){return e=so(ao().mark((function e(){var t;return ao().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,sc();case 2:t=e.sent,O(t);case 4:case"end":return e.stop()}}),e)}))),e.apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);return function(){var e=document.querySelectorAll(".needs-validation");Array.from(e).forEach((function(e){e.addEventListener("submit",(function(t){e.checkValidity()||(t.preventDefault(),t.stopPropagation()),e.classList.add("was-validated")}),!1)}))}(),(0,vc.jsx)(vc.Fragment,{children:(0,vc.jsxs)("div",{className:"container overflow-auto",children:[(0,vc.jsx)("h4",{className:"mt-4 mb-4",children:"Profile Settings"}),(0,vc.jsx)("h5",{className:"mb-4",children:"Email and Name"}),(0,vc.jsxs)("form",{className:"needs-validation",onSubmit:function(e){e.preventDefault();var t="".concat(s," ").concat(f);v(t);var n=new FormData;n.append("name",t),fetch("https://api.bb.gabefarrell.com/auth/changename?name=".concat(t),{method:"POST",body:n,headers:{"x-session-key":ic()}}).then((function(e){e.ok?(alert("Name updated successfully!"),window.location.reload()):(alert("Name update failed!"),window.location.reload())}))},noValidate:!0,children:[(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"staticEmail",className:"col-2 col-form-label",children:"Email"}),(0,vc.jsx)("div",{className:"col-4",children:(0,vc.jsx)("input",{type:"text",readOnly:!0,className:"form-control-plaintext",id:"staticEmail",value:E})})]}),(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"currentName",className:"col-2 col-form-label",children:"Current Name"}),(0,vc.jsx)("div",{className:"col-4",children:(0,vc.jsx)("input",{type:"text",readOnly:!0,className:"form-control-plaintext",id:"currentName",value:r})})]}),(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"newFirstName",className:"col-2 col-form-label",children:"New First Name"}),(0,vc.jsxs)("div",{className:"col-4",children:[(0,vc.jsx)("input",{type:"text",className:"form-control",id:"newFirstName",placeholder:"Please enter a new first name",value:s,onChange:function(e){return l(e.target.value)},required:!0}),(0,vc.jsx)("div",{className:"invalid-feedback",children:"Please enter a new first name"})]})]}),(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"newLastName",className:"col-2 col-form-label",children:"New Last Name"}),(0,vc.jsxs)("div",{className:"col-4",children:[(0,vc.jsx)("input",{type:"text",className:"form-control",id:"newLastName",placeholder:"Please enter a new last name",value:f,onChange:function(e){return d(e.target.value)},required:!0}),(0,vc.jsx)("div",{className:"invalid-feedback",children:"Please enter a new last name"})]})]}),(0,vc.jsx)("div",{children:(0,vc.jsx)("button",{type:"submit",className:"btn btn-primary mb-5",id:"newNameButton",children:"Change Name"})})]}),(0,vc.jsx)("h5",{className:"mb-4",children:"Password"}),(0,vc.jsxs)("form",{className:"needs-validation",onSubmit:function(e){e.preventDefault();var t="".concat(y),n="".concat(w),r=new FormData;r.append("old",t),r.append("new",n),fetch("https://api.bb.gabefarrell.com/auth/changepassword?old=".concat(t,"&new=").concat(n),{method:"POST",body:r,headers:{"x-session-key":ic()}}).then((function(e){e.ok?(alert("Password updated successfully!"),window.location.reload()):(alert("Password update failed! Make sure you have entered your current password correctly"),window.location.reload())}))},noValidate:!0,children:[(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"currentPassword",className:"col-2 col-form-label",children:"Current Password"}),(0,vc.jsxs)("div",{className:"col-4",children:[(0,vc.jsx)("input",{type:"password",className:"form-control",id:"currentPassword",placeholder:"Please enter your current password",minLength:"8",value:y,onChange:function(e){return b(e.target.value)},required:!0}),(0,vc.jsx)("div",{className:"invalid-feedback",children:"Please enter your current password"})]})]}),(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"newPassword",className:"col-2 col-form-label",children:"New Password"}),(0,vc.jsxs)("div",{className:"col-4",children:[(0,vc.jsx)("input",{type:"password",className:"form-control",id:"newPassword",placeholder:"Please enter a new password",minLength:"8",value:w,onChange:function(e){return S(e.target.value)},required:!0}),(0,vc.jsxs)("div",{className:"invalid-feedback",children:["Please enter a new password",(0,vc.jsx)("br",{}),"Your new password must be at least 8 characters long"]})]})]}),(0,vc.jsx)("div",{children:(0,vc.jsx)("button",{type:"submit",className:"btn btn-primary mb-5",id:"newPasswordButton",children:"Change Password"})})]}),(0,vc.jsx)("h4",{className:"mb-4",children:"Account Settings"}),(0,vc.jsx)("h5",{className:"mb-4",children:"Delete Your Account"}),(0,vc.jsxs)("form",{className:"needs-validation",onSubmit:function(e){e.preventDefault();var t="".concat(T),n=new FormData;n.append("password",t),fetch("https://api.bb.gabefarrell.com/auth/deleteaccount?password=".concat(t),{method:"POST",body:n,headers:{"x-session-key":ic()}}).then((function(e){e.ok?(alert("Account deleted successfully!"),uc()):(alert("Account could not be delete. Make sure you have entered your current password correctly"),window.location.reload())}))},noValidate:!0,children:[(0,vc.jsxs)("div",{className:"row mb-3",children:[(0,vc.jsx)("label",{htmlFor:"deleteAccount",className:"col-2 col-form-label",children:"Current Password"}),(0,vc.jsxs)("div",{className:"col-4",children:[(0,vc.jsx)("input",{type:"password",className:"form-control",id:"deleteAccount",placeholder:"Please enter your current password",minLength:"8",value:T,onChange:function(e){return j(e.target.value)},required:!0}),(0,vc.jsx)("div",{className:"invalid-feedback",children:"Please enter your current password in order to delete your account"})]})]}),(0,vc.jsx)("div",{children:(0,vc.jsx)("button",{type:"submit",className:"btn btn-danger",id:"deleteAccountButton",children:"Delete Account"})}),(0,vc.jsx)("div",{className:"mt-2 mb-5 fw-bold",children:"CAUTION: This will delete your account. All account and profile data will be completely erased."})]})]})})};function zk(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(null),c=(0,mt.Z)(u,2),f=c[0],d=c[1];return(0,vc.jsx)("div",{className:"auth-wrapper",children:(0,vc.jsx)("div",{className:"auth-inner",children:(0,vc.jsxs)("form",{id:"form",onSubmit:function(e){e.preventDefault();var t=new FormData;t.append("email",r),t.append("password",s),fetch("https://api.bb.gabefarrell.com/auth/login?email=".concat(r,"&password=").concat(s),{method:"POST",body:t}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error),d(e.error);else{var t=e.session;document.cookie="session=".concat(t,"; path=/;"),window.location.href="/dashboard"}console.log(e)})).catch((function(e){console.error(e)}))},children:[(0,vc.jsx)("h3",{children:"Sign In"}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"Email address"}),(0,vc.jsx)("input",{type:"email",className:"form-control",placeholder:"Enter email",value:r,onChange:function(e){return i(e.target.value)},required:!0})]}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"Password"}),(0,vc.jsx)("input",{type:"password",className:"form-control",placeholder:"Enter password",value:s,onChange:function(e){return l(e.target.value)},required:!0})]}),(0,vc.jsx)("div",{className:"mb-3",children:(0,vc.jsxs)("div",{className:"custom-control custom-checkbox",children:[(0,vc.jsx)("input",{type:"checkbox",className:"custom-control-input",id:"customCheck1"}),(0,vc.jsx)("label",{id:"remember-me",className:"custom-control-label",htmlFor:"customCheck1",children:"Remember me"})]})}),(0,vc.jsx)("div",{className:"d-grid",children:(0,vc.jsx)("button",{type:"submit",className:"btn btn-primary mb-3",children:"Submit"})}),f&&(0,vc.jsx)("div",{className:"alert alert-danger p-2 mb-1",children:f}),(0,vc.jsxs)("p",{className:"forgot-password",children:["Don't have an account? ",(0,vc.jsx)("a",{href:"/signup",children:"sign up"})]})]})})})}function Fk(){var t=(0,e.useState)(""),n=(0,mt.Z)(t,2),r=n[0],i=n[1],a=(0,e.useState)(""),o=(0,mt.Z)(a,2),s=o[0],l=o[1],u=(0,e.useState)(""),c=(0,mt.Z)(u,2),f=(c[0],c[1]),d=(0,e.useState)(""),h=(0,mt.Z)(d,2),p=h[0],v=h[1],m=(0,e.useState)(""),g=(0,mt.Z)(m,2),y=g[0],b=g[1],x=(0,e.useState)(null),k=(0,mt.Z)(x,2),w=k[0],S=k[1];return(0,vc.jsx)("div",{className:"auth-wrapper",children:(0,vc.jsx)("div",{className:"auth-inner",children:(0,vc.jsxs)("form",{id:"form",onSubmit:function(e){e.preventDefault();var t="".concat(r," ").concat(s);f(t);var n=new FormData;n.append("name",t),n.append("email",p),n.append("password",y),fetch("https://api.bb.gabefarrell.com/auth/createaccount?name=".concat(t,"&email=").concat(p,"&password=").concat(y),{method:"POST",body:n}).then((function(e){return e.json()})).then((function(e){if(200!=e.status)console.log(e.error),S(e.error);else{var t=e.session;document.cookie="session=".concat(t,"; path=/;"),window.location.href="/dashboard"}console.log(e)})).catch((function(e){console.error(e),S(e)}))},children:[(0,vc.jsx)("h3",{children:"Sign Up"}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"First name"}),(0,vc.jsx)("input",{type:"text",className:"form-control",placeholder:"First Name",value:r,onChange:function(e){return i(e.target.value)},required:!0})]}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"Last name"}),(0,vc.jsx)("input",{type:"text",className:"form-control",placeholder:"Last name",value:s,onChange:function(e){return l(e.target.value)},required:!0})]}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"Email address"}),(0,vc.jsx)("input",{type:"email",className:"form-control",placeholder:"Enter email",value:p,onChange:function(e){return v(e.target.value)},required:!0})]}),(0,vc.jsxs)("div",{className:"mb-3",children:[(0,vc.jsx)("label",{children:"Password"}),(0,vc.jsx)("input",{type:"password",className:"form-control",placeholder:"Enter password",value:y,onChange:function(e){return b(e.target.value)},required:!0})]}),(0,vc.jsxs)("div",{className:"d-grid",children:[(0,vc.jsx)("button",{type:"submit",className:"btn btn-primary mb-3",children:"Sign Up"}),w&&(0,vc.jsx)("div",{className:"alert alert-danger p-2 mb-1",children:w})]}),(0,vc.jsxs)("p",{className:"forgot-password text-right",children:["Already registered? ",(0,vc.jsx)("a",{href:"/login",children:"log in"})]})]})})})}function Bk(){return(0,vc.jsx)("h1",{children:"Contact Us"})}var Wk=n.p+"static/media/budgethero1.ef97d4454cc11d5d60d0.png",Vk=n.p+"static/media/money1.900d2433a99d49f20ade.png",Zk=n.p+"static/media/money2.4e0a9f8da499f5fe72a1.png",Hk=n.p+"static/media/money3.8859e70f73221654d7ed.png",$k=["bsPrefix","fluid","as","className"],Uk=e.forwardRef((function(e,t){var n=e.bsPrefix,r=e.fluid,i=void 0!==r&&r,a=e.as,o=void 0===a?"div":a,s=e.className,l=Ne(e,$k),u=yc(n,"container"),c="string"===typeof i?"-".concat(i):"-fluid";return(0,vc.jsx)(o,dc(dc({ref:t},l),{},{className:pc()(s,i?"".concat(u).concat(c):u)}))}));Uk.displayName="Container";var Kk=Uk,qk=["bsPrefix","className","as"],Yk=e.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.as,a=void 0===i?"div":i,o=Ne(e,qk),s=yc(n,"row"),l=bc(),u=xc(),c="".concat(s,"-cols"),f=[];return l.forEach((function(e){var t,n=o[e];delete o[e],t=null!=n&&"object"===typeof n?n.cols:n;var r=e!==u?"-".concat(e):"";null!=t&&f.push("".concat(c).concat(r,"-").concat(t))})),(0,vc.jsx)(a,dc(dc({ref:t},o),{},{className:pc().apply(void 0,[r,s].concat(f))}))}));Yk.displayName="Row";var Gk=Yk,Xk=["as","bsPrefix","className"],Qk=["className"];var Jk=e.forwardRef((function(e,t){var n=function(e){var t=e.as,n=e.bsPrefix,r=e.className,i=Ne(e,Xk);n=yc(n,"col");var a=bc(),o=xc(),s=[],l=[];return a.forEach((function(e){var t,r,a,u=i[e];delete i[e],"object"===typeof u&&null!=u?(t=u.span,r=u.offset,a=u.order):t=u;var c=e!==o?"-".concat(e):"";t&&s.push(!0===t?"".concat(n).concat(c):"".concat(n).concat(c,"-").concat(t)),null!=a&&l.push("order".concat(c,"-").concat(a)),null!=r&&l.push("offset".concat(c,"-").concat(r))})),[dc(dc({},i),{},{className:pc().apply(void 0,[r].concat(s,l))}),{as:t,bsPrefix:n,spans:s}]}(e),r=(0,mt.Z)(n,2),i=r[0],a=i.className,o=Ne(i,Qk),s=r[1],l=s.as,u=void 0===l?"div":l,c=s.bsPrefix,f=s.spans;return(0,vc.jsx)(u,dc(dc({},o),{},{ref:t,className:pc()(a,!f.length&&c)}))}));Jk.displayName="Col";var ew=Jk,tw=n(2007),nw=n.n(tw),rw=["bsPrefix","className","fluid","rounded","roundedCircle","thumbnail"],iw=(nw().string,nw().bool,nw().bool,nw().bool,nw().bool,e.forwardRef((function(e,t){var n=e.bsPrefix,r=e.className,i=e.fluid,a=void 0!==i&&i,o=e.rounded,s=void 0!==o&&o,l=e.roundedCircle,u=void 0!==l&&l,c=e.thumbnail,f=void 0!==c&&c,d=Ne(e,rw);return n=yc(n,"img"),(0,vc.jsx)("img",dc(dc({ref:t},d),{},{className:pc()(r,a&&"".concat(n,"-fluid"),s&&"rounded",u&&"rounded-circle",f&&"".concat(n,"-thumbnail"))}))})));iw.displayName="Image";var aw=iw;function ow(){return(0,vc.jsxs)("div",{children:[(0,vc.jsx)(Kk,{className:"mt-4 mb-5",children:(0,vc.jsxs)(Gk,{className:"d-flex justify-content-between",children:[(0,vc.jsxs)(ew,{md:6,className:"justify-contents-left",children:[(0,vc.jsx)("h1",{className:"mb-3",style:{fontSize:"calc(24px + 2vw)",fontWeight:"bold"},children:"Start Building Your Wealth"}),(0,vc.jsx)("p",{className:"mb-4",children:"BudgetBuddy\u2019s top notch budgeting tools will help you start building wealth, no matter your income or debt."}),(0,vc.jsx)(Eh,{className:"mx-0 mb-4",variant:"outline-success",href:"/signup",children:"Get Started"})]}),(0,vc.jsx)(ew,{className:"d-flex",md:4,children:(0,vc.jsx)(aw,{className:"align-self-end w-100",src:Wk,fluid:!0})})]})}),(0,vc.jsxs)(Kk,{className:"text-center",children:[(0,vc.jsxs)(Gk,{className:"mb-4",children:[(0,vc.jsx)(ew,{md:4,children:(0,vc.jsxs)("div",{className:"mx-auto",style:{maxWidth:"180px"},children:[(0,vc.jsx)(aw,{src:Vk,fluid:!0}),(0,vc.jsx)("h6",{children:"Track Your Spending"}),(0,vc.jsx)("p",{children:"Keep track of how much you spend on any number of spending categories."})]})}),(0,vc.jsx)(ew,{md:4,children:(0,vc.jsxs)("div",{className:"mx-auto",style:{maxWidth:"180px"},children:[(0,vc.jsx)(aw,{src:Zk,fluid:!0}),(0,vc.jsx)("h6",{children:"Plan Your Income"}),(0,vc.jsx)("p",{children:"Map out your income into savings categories to manage your money faster and easier than ever."})]})}),(0,vc.jsx)(ew,{md:4,children:(0,vc.jsxs)("div",{className:"mx-auto",style:{maxWidth:"180px"},children:[(0,vc.jsx)(aw,{src:Hk,fluid:!0}),(0,vc.jsx)("h6",{children:"See Your Wealth Grow"}),(0,vc.jsx)("p",{children:"Use BudgetBuddy\u2019s widgets to visualize your wealth growing and debt shrinking."})]})})]}),(0,vc.jsx)(Eh,{className:"mx-auto",variant:"outline-success",href:"/signup",children:"Create an account for free"})]})]})}function sw(){return(0,vc.jsx)("h1",{children:"Error"})}function lw(){var e;switch(window.location.pathname){case"/":e=rc()?jk:ow;break;case"/dashboard":e=jk;break;case"/about-us":e=Dk;break;case"/privacy":e=Lk;break;case"/settings":e=Ik;break;case"/contact-us":e=Bk;break;case"/welcome":e=ow;break;case"/login":e=zk;break;case"/signup":e=Fk;break;default:e=sw}return(0,vc.jsxs)("div",{className:"full-page",children:[(0,vc.jsx)(Gh,{}),rc()?(0,vc.jsx)(io,{children:(0,vc.jsxs)("div",{className:"main-body",children:[(0,vc.jsx)(op,{}),(0,vc.jsx)("div",{className:"page-display",children:(0,vc.jsx)(e,{})})]})}):(0,vc.jsx)(e,{})]})}function uw(){return(0,vc.jsx)("div",{className:"app",children:(0,vc.jsx)(Me,{theme:Dt,children:(0,vc.jsx)(lw,{})})})}i(),(0,r.s)(document.getElementById("root")).render((0,vc.jsx)(uw,{}))}()}();
//# sourceMappingURL=main.205e7457.js.map