@clary-so/measure 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.postcssrc +5 -0
- package/CHANGELOG.md +81 -0
- package/LICENSE +21 -0
- package/dist/__tests__/measure.test.d.ts +1 -0
- package/dist/__tests__/measure.test.js +152 -0
- package/dist/__tests__/measure.test.js.map +1 -0
- package/dist/__tests__/server/ServerApp.test.d.ts +1 -0
- package/dist/__tests__/server/ServerApp.test.js +49 -0
- package/dist/__tests__/server/ServerApp.test.js.map +1 -0
- package/dist/__tests__/utils/removeCLIColors.d.ts +1 -0
- package/dist/__tests__/utils/removeCLIColors.js +10 -0
- package/dist/__tests__/utils/removeCLIColors.js.map +1 -0
- package/dist/__tests__/webapp/socket.test.d.ts +1 -0
- package/dist/__tests__/webapp/socket.test.js +73 -0
- package/dist/__tests__/webapp/socket.test.js.map +1 -0
- package/dist/common/useLogSocketEvents.d.ts +3 -0
- package/dist/common/useLogSocketEvents.js +18 -0
- package/dist/common/useLogSocketEvents.js.map +1 -0
- package/dist/index.87c99d25.js +88 -0
- package/dist/index.87c99d25.js.map +1 -0
- package/dist/index.html +1 -0
- package/dist/server/ServerApp.d.ts +10 -0
- package/dist/server/ServerApp.js +131 -0
- package/dist/server/ServerApp.js.map +1 -0
- package/dist/server/ServerSocketConnectionApp.d.ts +6 -0
- package/dist/server/ServerSocketConnectionApp.js +105 -0
- package/dist/server/ServerSocketConnectionApp.js.map +1 -0
- package/dist/server/bin.d.ts +2 -0
- package/dist/server/bin.js +63 -0
- package/dist/server/bin.js.map +1 -0
- package/dist/server/components/HostAndPortInfo.d.ts +4 -0
- package/dist/server/components/HostAndPortInfo.js +14 -0
- package/dist/server/components/HostAndPortInfo.js.map +1 -0
- package/dist/server/constants.d.ts +2 -0
- package/dist/server/constants.js +12 -0
- package/dist/server/constants.js.map +1 -0
- package/dist/server/socket/socketInterface.d.ts +37 -0
- package/dist/server/socket/socketInterface.js +17 -0
- package/dist/server/socket/socketInterface.js.map +1 -0
- package/dist/server/socket/socketState.d.ts +5 -0
- package/dist/server/socket/socketState.js +47 -0
- package/dist/server/socket/socketState.js.map +1 -0
- package/dist/server/useBundleIdControls.d.ts +2 -0
- package/dist/server/useBundleIdControls.js +33 -0
- package/dist/server/useBundleIdControls.js.map +1 -0
- package/dist/webapp/MeasureWebApp.d.ts +2 -0
- package/dist/webapp/MeasureWebApp.js +29 -0
- package/dist/webapp/MeasureWebApp.js.map +1 -0
- package/dist/webapp/components/AppBar.d.ts +4 -0
- package/dist/webapp/components/AppBar.js +19 -0
- package/dist/webapp/components/AppBar.js.map +1 -0
- package/dist/webapp/components/BundleIdSelector.d.ts +6 -0
- package/dist/webapp/components/BundleIdSelector.js +20 -0
- package/dist/webapp/components/BundleIdSelector.js.map +1 -0
- package/dist/webapp/components/SocketState.d.ts +2 -0
- package/dist/webapp/components/SocketState.js +95 -0
- package/dist/webapp/components/SocketState.js.map +1 -0
- package/dist/webapp/components/StartButton.d.ts +6 -0
- package/dist/webapp/components/StartButton.js +12 -0
- package/dist/webapp/components/StartButton.js.map +1 -0
- package/dist/webapp/components/TextField.d.ts +5 -0
- package/dist/webapp/components/TextField.js +81 -0
- package/dist/webapp/components/TextField.js.map +1 -0
- package/dist/webapp/socket.d.ts +3 -0
- package/dist/webapp/socket.js +8 -0
- package/dist/webapp/socket.js.map +1 -0
- package/dist/webapp/useMeasures.d.ts +10 -0
- package/dist/webapp/useMeasures.js +38 -0
- package/dist/webapp/useMeasures.js.map +1 -0
- package/package.json +48 -0
- package/src/__tests__/__snapshots__/measure.test.tsx.snap +4389 -0
- package/src/__tests__/measure.test.tsx +141 -0
- package/src/__tests__/server/ServerApp.test.ts +49 -0
- package/src/__tests__/utils/removeCLIColors.ts +5 -0
- package/src/__tests__/webapp/socket.test.ts +37 -0
- package/src/common/types/index.d.ts +3 -0
- package/src/common/useLogSocketEvents.ts +17 -0
- package/src/server/ServerApp.tsx +103 -0
- package/src/server/ServerSocketConnectionApp.tsx +82 -0
- package/src/server/bin.tsx +23 -0
- package/src/server/components/HostAndPortInfo.tsx +11 -0
- package/src/server/constants.ts +8 -0
- package/src/server/socket/socketInterface.ts +53 -0
- package/src/server/socket/socketState.ts +66 -0
- package/src/server/useBundleIdControls.ts +38 -0
- package/src/webapp/MeasureWebApp.tsx +43 -0
- package/src/webapp/components/AppBar.tsx +19 -0
- package/src/webapp/components/BundleIdSelector.tsx +26 -0
- package/src/webapp/components/SocketState.tsx +79 -0
- package/src/webapp/components/StartButton.tsx +22 -0
- package/src/webapp/components/TextField.tsx +54 -0
- package/src/webapp/globals.d.ts +9 -0
- package/src/webapp/index.html +30 -0
- package/src/webapp/index.js +9 -0
- package/src/webapp/socket.ts +12 -0
- package/src/webapp/useMeasures.ts +36 -0
- package/tailwind.config.js +7 -0
- package/tsconfig.json +8 -0
- package/tsconfig.tsbuildinfo +1 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
let e,t;function r(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}var n=globalThis;function i(e){Object.defineProperty(e,"__esModule",{value:!0,configurable:!0})}function a(e,t){return Object.keys(t).forEach(function(r){"default"===r||"__esModule"===r||Object.prototype.hasOwnProperty.call(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}),e}function o(e){return e&&e.__esModule?e.default:e}var s={},l={},u=n.parcelRequire94c2;null==u&&((u=function(e){if(e in s)return s[e].exports;if(e in l){var t=l[e];delete l[e];var r={id:e,exports:{}};return s[e]=r,t.call(r.exports,r,r.exports),r.exports}var n=Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}).register=function(e,t){l[e]=t},n.parcelRequire94c2=u);var c=u.register;c("1b2ls",function(e,t){r(e.exports,"Fragment",()=>n,e=>n=e),r(e.exports,"jsx",()=>i,e=>i=e),r(e.exports,"jsxs",()=>a,e=>a=e);var n,i,a,o=u("acw62"),s=Symbol.for("react.element"),l=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,d=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function f(e,t,r){var n,i={},a=null,o=null;for(n in void 0!==r&&(a=""+r),void 0!==t.key&&(a=""+t.key),void 0!==t.ref&&(o=t.ref),t)c.call(t,n)&&!h.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:s,type:e,key:a,ref:o,props:i,_owner:d.current}}n=l,i=f,a=f}),c("acw62",function(e,t){e.exports=u("2pUnB")}),c("2pUnB",function(e,t){r(e.exports,"Children",()=>n,e=>n=e),r(e.exports,"Component",()=>i,e=>i=e),r(e.exports,"Fragment",()=>a,e=>a=e),r(e.exports,"Profiler",()=>o,e=>o=e),r(e.exports,"PureComponent",()=>s,e=>s=e),r(e.exports,"StrictMode",()=>l,e=>l=e),r(e.exports,"Suspense",()=>u,e=>u=e),r(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",()=>c,e=>c=e),r(e.exports,"act",()=>d,e=>d=e),r(e.exports,"cloneElement",()=>h,e=>h=e),r(e.exports,"createContext",()=>f,e=>f=e),r(e.exports,"createElement",()=>p,e=>p=e),r(e.exports,"createFactory",()=>g,e=>g=e),r(e.exports,"createRef",()=>m,e=>m=e),r(e.exports,"forwardRef",()=>v,e=>v=e),r(e.exports,"isValidElement",()=>b,e=>b=e),r(e.exports,"lazy",()=>x,e=>x=e),r(e.exports,"memo",()=>y,e=>y=e),r(e.exports,"startTransition",()=>w,e=>w=e),r(e.exports,"unstable_act",()=>k,e=>k=e),r(e.exports,"useCallback",()=>S,e=>S=e),r(e.exports,"useContext",()=>C,e=>C=e),r(e.exports,"useDebugValue",()=>A,e=>A=e),r(e.exports,"useDeferredValue",()=>E,e=>E=e),r(e.exports,"useEffect",()=>_,e=>_=e),r(e.exports,"useId",()=>T,e=>T=e),r(e.exports,"useImperativeHandle",()=>P,e=>P=e),r(e.exports,"useInsertionEffect",()=>O,e=>O=e),r(e.exports,"useLayoutEffect",()=>M,e=>M=e),r(e.exports,"useMemo",()=>I,e=>I=e),r(e.exports,"useReducer",()=>L,e=>L=e),r(e.exports,"useRef",()=>R,e=>R=e),r(e.exports,"useState",()=>N,e=>N=e),r(e.exports,"useSyncExternalStore",()=>z,e=>z=e),r(e.exports,"useTransition",()=>D,e=>D=e),r(e.exports,"version",()=>F,e=>F=e);var n,i,a,o,s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E,_,T,P,O,M,I,L,R,N,z,D,F,B=Symbol.for("react.element"),W=Symbol.for("react.portal"),H=Symbol.for("react.fragment"),X=Symbol.for("react.strict_mode"),Y=Symbol.for("react.profiler"),U=Symbol.for("react.provider"),V=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),$=Symbol.for("react.suspense"),q=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),K=Symbol.iterator,Q={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,ee={};function et(e,t,r){this.props=e,this.context=t,this.refs=ee,this.updater=r||Q}function er(){}function en(e,t,r){this.props=e,this.context=t,this.refs=ee,this.updater=r||Q}et.prototype.isReactComponent={},et.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")},et.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},er.prototype=et.prototype;var ei=en.prototype=new er;ei.constructor=en,J(ei,et.prototype),ei.isPureReactComponent=!0;var ea=Array.isArray,eo=Object.prototype.hasOwnProperty,es={current:null},el={key:!0,ref:!0,__self:!0,__source:!0};function eu(e,t,r){var n,i={},a=null,o=null;if(null!=t)for(n in void 0!==t.ref&&(o=t.ref),void 0!==t.key&&(a=""+t.key),t)eo.call(t,n)&&!el.hasOwnProperty(n)&&(i[n]=t[n]);var s=arguments.length-2;if(1===s)i.children=r;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===i[n]&&(i[n]=s[n]);return{$$typeof:B,type:e,key:a,ref:o,props:i,_owner:es.current}}function ec(e){return"object"==typeof e&&null!==e&&e.$$typeof===B}var ed=/\/+/g;function eh(e,t){var r,n;return"object"==typeof e&&null!==e&&null!=e.key?(r=""+e.key,n={"=":"=0",":":"=2"},"$"+r.replace(/[=:]/g,function(e){return n[e]})):t.toString(36)}function ef(e,t,r){if(null==e)return e;var n=[],i=0;return function e(t,r,n,i,a){var o,s,l,u=typeof t;("undefined"===u||"boolean"===u)&&(t=null);var c=!1;if(null===t)c=!0;else switch(u){case"string":case"number":c=!0;break;case"object":switch(t.$$typeof){case B:case W:c=!0}}if(c)return a=a(c=t),t=""===i?"."+eh(c,0):i,ea(a)?(n="",null!=t&&(n=t.replace(ed,"$&/")+"/"),e(a,r,n,"",function(e){return e})):null!=a&&(ec(a)&&(o=a,s=n+(!a.key||c&&c.key===a.key?"":(""+a.key).replace(ed,"$&/")+"/")+t,a={$$typeof:B,type:o.type,key:s,ref:o.ref,props:o.props,_owner:o._owner}),r.push(a)),1;if(c=0,i=""===i?".":i+":",ea(t))for(var d=0;d<t.length;d++){var h=i+eh(u=t[d],d);c+=e(u,r,n,h,a)}else if("function"==typeof(h=null===(l=t)||"object"!=typeof l?null:"function"==typeof(l=K&&l[K]||l["@@iterator"])?l:null))for(t=h.call(t),d=0;!(u=t.next()).done;)h=i+eh(u=u.value,d++),c+=e(u,r,n,h,a);else if("object"===u)throw Error("Objects are not valid as a React child (found: "+("[object Object]"===(r=String(t))?"object with keys {"+Object.keys(t).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.");return c}(e,n,"","",function(e){return t.call(r,e,i++)}),n}function ep(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 eg={current:null},em={transition:null};function ev(){throw Error("act(...) is not supported in production builds of React.")}n={map:ef,forEach:function(e,t,r){ef(e,function(){t.apply(this,arguments)},r)},count:function(e){var t=0;return ef(e,function(){t++}),t},toArray:function(e){return ef(e,function(e){return e})||[]},only:function(e){if(!ec(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},i=et,a=H,o=Y,s=en,l=X,u=$,c={ReactCurrentDispatcher:eg,ReactCurrentBatchConfig:em,ReactCurrentOwner:es},d=ev,h=function(e,t,r){if(null==e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var n=J({},e.props),i=e.key,a=e.ref,o=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,o=es.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)eo.call(t,l)&&!el.hasOwnProperty(l)&&(n[l]=void 0===t[l]&&void 0!==s?s[l]:t[l])}var l=arguments.length-2;if(1===l)n.children=r;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];n.children=s}return{$$typeof:B,type:e.type,key:i,ref:a,props:n,_owner:o}},f=function(e){return(e={$$typeof:V,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:U,_context:e},e.Consumer=e},p=eu,g=function(e){var t=eu.bind(null,e);return t.type=e,t},m=function(){return{current:null}},v=function(e){return{$$typeof:G,render:e}},b=ec,x=function(e){return{$$typeof:Z,_payload:{_status:-1,_result:e},_init:ep}},y=function(e,t){return{$$typeof:q,type:e,compare:void 0===t?null:t}},w=function(e){var t=em.transition;em.transition={};try{e()}finally{em.transition=t}},k=ev,S=function(e,t){return eg.current.useCallback(e,t)},C=function(e){return eg.current.useContext(e)},A=function(){},E=function(e){return eg.current.useDeferredValue(e)},_=function(e,t){return eg.current.useEffect(e,t)},T=function(){return eg.current.useId()},P=function(e,t,r){return eg.current.useImperativeHandle(e,t,r)},O=function(e,t){return eg.current.useInsertionEffect(e,t)},M=function(e,t){return eg.current.useLayoutEffect(e,t)},I=function(e,t){return eg.current.useMemo(e,t)},L=function(e,t,r){return eg.current.useReducer(e,t,r)},R=function(e){return eg.current.useRef(e)},N=function(e){return eg.current.useState(e)},z=function(e,t,r){return eg.current.useSyncExternalStore(e,t,r)},D=function(){return eg.current.useTransition()},F="18.3.1"}),c("Xw6Mv",function(e,t){r(e.exports,"__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED",()=>Y,e=>Y=e),r(e.exports,"createPortal",()=>U,e=>U=e),r(e.exports,"createRoot",()=>V,e=>V=e),r(e.exports,"findDOMNode",()=>G,e=>G=e),r(e.exports,"flushSync",()=>$,e=>$=e),r(e.exports,"hydrate",()=>q,e=>q=e),r(e.exports,"hydrateRoot",()=>Z,e=>Z=e),r(e.exports,"render",()=>K,e=>K=e),r(e.exports,"unmountComponentAtNode",()=>Q,e=>Q=e),r(e.exports,"unstable_batchedUpdates",()=>J,e=>J=e),r(e.exports,"unstable_renderSubtreeIntoContainer",()=>ee,e=>ee=e),r(e.exports,"version",()=>et,e=>et=e);var n,i,a,o,s,l,c=u("acw62"),d=u("jN4Ph");function h(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);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 f=new Set,p={};function g(e,t){m(e,t),m(e+"Capture",t)}function m(e,t){for(p[e]=t,e=0;e<t.length;e++)f.add(t[e])}var v=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),b=Object.prototype.hasOwnProperty,x=/^[: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]*$/,y={},w={};function k(e,t,r,n,i,a,o){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=i,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var S={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){S[e]=new k(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];S[t]=new k(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){S[e]=new k(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){S[e]=new k(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){S[e]=new k(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){S[e]=new k(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){S[e]=new k(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){S[e]=new k(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){S[e]=new k(e,5,!1,e.toLowerCase(),null,!1,!1)});var C=/[\-:]([a-z])/g;function A(e){return e[1].toUpperCase()}function E(e,t,r,n){var i,a=S.hasOwnProperty(t)?S[t]:null;(null!==a?0!==a.type:n||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,r,n){if(null==t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":if(n)return!1;if(null!==r)return!r.acceptsBooleans;return"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e;default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.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,r,a,n)&&(r=null),n||null===a?(i=t,(!!b.call(w,i)||!b.call(y,i)&&(x.test(i)?w[i]=!0:(y[i]=!0,!1)))&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r))):a.mustUseProperty?e[a.propertyName]=null===r?3!==a.type&&"":r:(t=a.attributeName,n=a.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(a=a.type)||4===a&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}"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(C,A);S[t]=new k(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(C,A);S[t]=new k(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(C,A);S[t]=new k(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!1,!1)}),S.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){S[e]=new k(e,1,!1,e.toLowerCase(),null,!0,!0)});var _=c.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,T=Symbol.for("react.element"),P=Symbol.for("react.portal"),O=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),I=Symbol.for("react.profiler"),L=Symbol.for("react.provider"),R=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),B=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var W=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var H=Symbol.iterator;function X(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=H&&e[H]||e["@@iterator"])?e:null}var Y,U,V,G,$,q,Z,K,Q,J,ee,et,er,en=Object.assign;function ei(e){if(void 0===er)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);er=t&&t[1]||""}return"\n"+er+e}var ea=!1;function eo(e,t){if(!e||ea)return"";ea=!0;var r=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(e){var n=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){n=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){n=e}e()}}catch(t){if(t&&n&&"string"==typeof t.stack){for(var i=t.stack.split("\n"),a=n.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{ea=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?ei(e):""}function es(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function el(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function eu(e){e._valueTracker||(e._valueTracker=function(e){var t=el(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==r&&"function"==typeof r.get&&"function"==typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ec(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=el(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function ed(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function eh(e,t){var r=t.checked;return en({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function ef(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=es(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function ep(e,t){null!=(t=t.checked)&&E(e,"checked",t,!1)}function eg(e,t){ep(e,t);var r=es(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n){e.removeAttribute("value");return}t.hasOwnProperty("value")?ev(e,t.type,r):t.hasOwnProperty("defaultValue")&&ev(e,t.type,es(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function em(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function ev(e,t,r){("number"!==t||ed(e.ownerDocument)!==e)&&(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var eb=Array.isArray;function ex(e,t,r,n){if(e=e.options,t){t={};for(var i=0;i<r.length;i++)t["$"+r[i]]=!0;for(r=0;r<e.length;r++)i=t.hasOwnProperty("$"+e[r].value),e[r].selected!==i&&(e[r].selected=i),i&&n&&(e[r].defaultSelected=!0)}else{for(i=0,r=""+es(r),t=null;i<e.length;i++){if(e[i].value===r){e[i].selected=!0,n&&(e[i].defaultSelected=!0);return}null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function ey(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(h(91));return en({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ew(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(h(92));if(eb(r)){if(1<r.length)throw Error(h(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:es(r)}}function ek(e,t){var r=es(t.value),n=es(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function eS(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function eC(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 eA(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?eC(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var eE,e_,eT=(eE=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((e_=e_||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=e_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,r,n){MSApp.execUnsafeLocalFunction(function(){return eE(e,t,r,n)})}:eE);function eP(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType){r.nodeValue=t;return}}e.textContent=t}var eO={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},eM=["Webkit","ms","Moz","O"];function eI(e,t,r){return null==t||"boolean"==typeof t||""===t?"":r||"number"!=typeof t||0===t||eO.hasOwnProperty(e)&&eO[e]?(""+t).trim():t+"px"}function eL(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),i=eI(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,i):e[r]=i}}Object.keys(eO).forEach(function(e){eM.forEach(function(t){eO[t=t+e.charAt(0).toUpperCase()+e.substring(1)]=eO[e]})});var eR=en({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 eN(e,t){if(t){if(eR[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(h(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(h(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(h(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(h(62))}}function ez(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 eD=null;function eF(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var eB=null,ej=null,eW=null;function eH(e){if(e=nZ(e)){if("function"!=typeof eB)throw Error(h(280));var t=e.stateNode;t&&(t=nQ(t),eB(e.stateNode,e.type,t))}}function eX(e){ej?eW?eW.push(e):eW=[e]:ej=e}function eY(){if(ej){var e=ej,t=eW;if(eW=ej=null,eH(e),t)for(e=0;e<t.length;e++)eH(t[e])}}function eU(e,t){return e(t)}function eV(){}var eG=!1;function e$(e,t,r){if(eG)return e(t,r);eG=!0;try{return eU(e,t,r)}finally{eG=!1,(null!==ej||null!==eW)&&(eV(),eY())}}function eq(e,t){var r=e.stateNode;if(null===r)return null;var n=nQ(r);if(null===n)return null;switch(r=n[t],t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break;default:e=!1}if(e)return null;if(r&&"function"!=typeof r)throw Error(h(231,t,typeof r));return r}var eZ=!1;if(v)try{var eK={};Object.defineProperty(eK,"passive",{get:function(){eZ=!0}}),window.addEventListener("test",eK,eK),window.removeEventListener("test",eK,eK)}catch(e){eZ=!1}function eQ(e,t,r,n,i,a,o,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(r,u)}catch(e){this.onError(e)}}var eJ=!1,e0=null,e1=!1,e2=null,e5={onError:function(e){eJ=!0,e0=e}};function e3(e,t,r,n,i,a,o,s,l){eJ=!1,e0=null,eQ.apply(e5,arguments)}function e4(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do 0!=(4098&(t=e).flags)&&(r=t.return),e=t.return;while(e)}return 3===t.tag?r:null}function e6(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 e8(e){if(e4(e)!==e)throw Error(h(188))}function e9(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=e4(e)))throw Error(h(188));return t!==e?null:e}for(var r=e,n=t;;){var i=r.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(n=i.return)){r=n;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===r)return e8(i),e;if(a===n)return e8(i),t;a=a.sibling}throw Error(h(188))}if(r.return!==n.return)r=i,n=a;else{for(var o=!1,s=i.child;s;){if(s===r){o=!0,r=i,n=a;break}if(s===n){o=!0,n=i,r=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===r){o=!0,r=a,n=i;break}if(s===n){o=!0,n=a,r=i;break}s=s.sibling}if(!o)throw Error(h(189))}}if(r.alternate!==n)throw Error(h(190))}if(3!==r.tag)throw Error(h(188));return r.stateNode.current===r?e:t}(e))?function e(t){if(5===t.tag||6===t.tag)return t;for(t=t.child;null!==t;){var r=e(t);if(null!==r)return r;t=t.sibling}return null}(e):null}var e7=d.unstable_scheduleCallback,te=d.unstable_cancelCallback,tt=d.unstable_shouldYield,tr=d.unstable_requestPaint,tn=d.unstable_now,ti=d.unstable_getCurrentPriorityLevel,ta=d.unstable_ImmediatePriority,to=d.unstable_UserBlockingPriority,ts=d.unstable_NormalPriority,tl=d.unstable_LowPriority,tu=d.unstable_IdlePriority,tc=null,td=null,th=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(tf(e)/tp|0)|0},tf=Math.log,tp=Math.LN2,tg=64,tm=4194304;function tv(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 0x1000000:case 0x2000000:case 0x4000000:return 0x7c00000&e;case 0x8000000:return 0x8000000;case 0x10000000:return 0x10000000;case 0x20000000:return 0x20000000;case 0x40000000:return 0x40000000;default:return e}}function tb(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,i=e.suspendedLanes,a=e.pingedLanes,o=0xfffffff&r;if(0!==o){var s=o&~i;0!==s?n=tv(s):0!=(a&=o)&&(n=tv(a))}else 0!=(o=r&~i)?n=tv(o):0!==a&&(n=tv(a));if(0===n)return 0;if(0!==t&&t!==n&&0==(t&i)&&((i=n&-n)>=(a=t&-t)||16===i&&0!=(4194240&a)))return t;if(0!=(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)i=1<<(r=31-th(t)),n|=e[r],t&=~i;return n}function tx(e){return 0!=(e=-0x40000001&e.pendingLanes)?e:0x40000000&e?0x40000000:0}function ty(){var e=tg;return 0==(4194240&(tg<<=1))&&(tg=64),e}function tw(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function tk(e,t,r){e.pendingLanes|=t,0x20000000!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-th(t)]=r}function tS(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-th(r),i=1<<n;i&t|e[n]&t&&(e[n]|=t),r&=~i}}var tC=0;function tA(e){return 1<(e&=-e)?4<e?0!=(0xfffffff&e)?16:0x20000000:4:1}var tE,t_,tT,tP,tO,tM=!1,tI=[],tL=null,tR=null,tN=null,tz=new Map,tD=new Map,tF=[],tB="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 tj(e,t){switch(e){case"focusin":case"focusout":tL=null;break;case"dragenter":case"dragleave":tR=null;break;case"mouseover":case"mouseout":tN=null;break;case"pointerover":case"pointerout":tz.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":tD.delete(t.pointerId)}}function tW(e,t,r,n,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:a,targetContainers:[i]},null!==t&&null!==(t=nZ(t))&&t_(t)):(e.eventSystemFlags|=n,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i)),e}function tH(e){var t=nq(e.target);if(null!==t){var r=e4(t);if(null!==r){if(13===(t=r.tag)){if(null!==(t=e6(r))){e.blockedOn=t,tO(e.priority,function(){tT(r)});return}}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated){e.blockedOn=3===r.tag?r.stateNode.containerInfo:null;return}}}e.blockedOn=null}function tX(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=t0(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=nZ(r))&&t_(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);eD=n,r.target.dispatchEvent(n),eD=null,t.shift()}return!0}function tY(e,t,r){tX(e)&&r.delete(t)}function tU(){tM=!1,null!==tL&&tX(tL)&&(tL=null),null!==tR&&tX(tR)&&(tR=null),null!==tN&&tX(tN)&&(tN=null),tz.forEach(tY),tD.forEach(tY)}function tV(e,t){e.blockedOn===t&&(e.blockedOn=null,tM||(tM=!0,d.unstable_scheduleCallback(d.unstable_NormalPriority,tU)))}function tG(e){function t(t){return tV(t,e)}if(0<tI.length){tV(tI[0],e);for(var r=1;r<tI.length;r++){var n=tI[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==tL&&tV(tL,e),null!==tR&&tV(tR,e),null!==tN&&tV(tN,e),tz.forEach(t),tD.forEach(t),r=0;r<tF.length;r++)(n=tF[r]).blockedOn===e&&(n.blockedOn=null);for(;0<tF.length&&null===(r=tF[0]).blockedOn;)tH(r),null===r.blockedOn&&tF.shift()}var t$=_.ReactCurrentBatchConfig,tq=!0;function tZ(e,t,r,n){var i=tC,a=t$.transition;t$.transition=null;try{tC=1,tQ(e,t,r,n)}finally{tC=i,t$.transition=a}}function tK(e,t,r,n){var i=tC,a=t$.transition;t$.transition=null;try{tC=4,tQ(e,t,r,n)}finally{tC=i,t$.transition=a}}function tQ(e,t,r,n){if(tq){var i=t0(e,t,r,n);if(null===i)nw(e,t,n,tJ,r),tj(e,n);else if(function(e,t,r,n,i){switch(t){case"focusin":return tL=tW(tL,e,t,r,n,i),!0;case"dragenter":return tR=tW(tR,e,t,r,n,i),!0;case"mouseover":return tN=tW(tN,e,t,r,n,i),!0;case"pointerover":var a=i.pointerId;return tz.set(a,tW(tz.get(a)||null,e,t,r,n,i)),!0;case"gotpointercapture":return a=i.pointerId,tD.set(a,tW(tD.get(a)||null,e,t,r,n,i)),!0}return!1}(i,e,t,r,n))n.stopPropagation();else if(tj(e,n),4&t&&-1<tB.indexOf(e)){for(;null!==i;){var a=nZ(i);if(null!==a&&tE(a),null===(a=t0(e,t,r,n))&&nw(e,t,n,tJ,r),a===i)break;i=a}null!==i&&n.stopPropagation()}else nw(e,t,n,null,r)}}var tJ=null;function t0(e,t,r,n){if(tJ=null,null!==(e=nq(e=eF(n)))){if(null===(t=e4(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=e6(t)))return e;e=null}else if(3===r){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return tJ=e,null}function t1(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(ti()){case ta:return 1;case to:return 4;case ts:case tl:return 16;case tu:return 0x20000000;default:return 16}default:return 16}}var t2=null,t5=null,t3=null;function t4(){if(t3)return t3;var e,t,r=t5,n=r.length,i="value"in t2?t2.value:t2.textContent,a=i.length;for(e=0;e<n&&r[e]===i[e];e++);var o=n-e;for(t=1;t<=o&&r[n-t]===i[a-t];t++);return t3=i.slice(e,1<t?1-t:void 0)}function t6(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 t8(){return!0}function t9(){return!1}function t7(e){function t(t,r,n,i,a){for(var o in this._reactName=t,this._targetInst=n,this.type=r,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)?t8:t9,this.isPropagationStopped=t9,this}return en(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=t8)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=t8)},persist:function(){},isPersistent:t8}),t}var re,rt,rr,rn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ri=t7(rn),ra=en({},rn,{view:0,detail:0}),ro=t7(ra),rs=en({},ra,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rb,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!==rr&&(rr&&"mousemove"===e.type?(re=e.screenX-rr.screenX,rt=e.screenY-rr.screenY):rt=re=0,rr=e),re)},movementY:function(e){return"movementY"in e?e.movementY:rt}}),rl=t7(rs),ru=t7(en({},rs,{dataTransfer:0})),rc=t7(en({},ra,{relatedTarget:0})),rd=t7(en({},rn,{animationName:0,elapsedTime:0,pseudoElement:0})),rh=t7(en({},rn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),rf=t7(en({},rn,{data:0})),rp={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rg={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"},rm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rv(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=rm[e])&&!!t[e]}function rb(){return rv}var rx=t7(en({},ra,{key:function(e){if(e.key){var t=rp[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=t6(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?rg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rb,charCode:function(e){return"keypress"===e.type?t6(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?t6(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),ry=t7(en({},rs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rw=t7(en({},ra,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rb})),rk=t7(en({},rn,{propertyName:0,elapsedTime:0,pseudoElement:0})),rS=t7(en({},rs,{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})),rC=[9,13,27,32],rA=v&&"CompositionEvent"in window,rE=null;v&&"documentMode"in document&&(rE=document.documentMode);var r_=v&&"TextEvent"in window&&!rE,rT=v&&(!rA||rE&&8<rE&&11>=rE),rP=!1;function rO(e,t){switch(e){case"keyup":return -1!==rC.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rM(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var rI=!1,rL={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 rR(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!rL[e.type]:"textarea"===t}function rN(e,t,r,n){eX(n),0<(t=nS(t,"onChange")).length&&(r=new ri("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var rz=null,rD=null;function rF(e){ng(e,0)}function rB(e){if(ec(nK(e)))return e}function rj(e,t){if("change"===e)return t}var rW=!1;if(v){if(v){var rH="oninput"in document;if(!rH){var rX=document.createElement("div");rX.setAttribute("oninput","return;"),rH="function"==typeof rX.oninput}n=rH}else n=!1;rW=n&&(!document.documentMode||9<document.documentMode)}function rY(){rz&&(rz.detachEvent("onpropertychange",rU),rD=rz=null)}function rU(e){if("value"===e.propertyName&&rB(rD)){var t=[];rN(t,rD,e,eF(e)),e$(rF,t)}}function rV(e,t,r){"focusin"===e?(rY(),rz=t,rD=r,rz.attachEvent("onpropertychange",rU)):"focusout"===e&&rY()}function rG(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return rB(rD)}function r$(e,t){if("click"===e)return rB(t)}function rq(e,t){if("input"===e||"change"===e)return rB(t)}var rZ="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function rK(e,t){if(rZ(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var i=r[n];if(!b.call(t,i)||!rZ(e[i],t[i]))return!1}return!0}function rQ(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function rJ(e,t){var r,n=rQ(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rQ(n)}}function r0(){for(var e=window,t=ed();t instanceof e.HTMLIFrameElement;){try{var r="string"==typeof t.contentWindow.location.href}catch(e){r=!1}if(r)e=t.contentWindow;else break;t=ed(e.document)}return t}function r1(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)}var r2=v&&"documentMode"in document&&11>=document.documentMode,r5=null,r3=null,r4=null,r6=!1;function r8(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;r6||null==r5||r5!==ed(n)||(n="selectionStart"in(n=r5)&&r1(n)?{start:n.selectionStart,end:n.selectionEnd}:{anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},r4&&rK(r4,n)||(r4=n,0<(n=nS(r3,"onSelect")).length&&(t=new ri("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=r5)))}function r9(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var r7={animationend:r9("Animation","AnimationEnd"),animationiteration:r9("Animation","AnimationIteration"),animationstart:r9("Animation","AnimationStart"),transitionend:r9("Transition","TransitionEnd")},ne={},nt={};function nr(e){if(ne[e])return ne[e];if(!r7[e])return e;var t,r=r7[e];for(t in r)if(r.hasOwnProperty(t)&&t in nt)return ne[e]=r[t];return e}v&&(nt=document.createElement("div").style,"AnimationEvent"in window||(delete r7.animationend.animation,delete r7.animationiteration.animation,delete r7.animationstart.animation),"TransitionEvent"in window||delete r7.transitionend.transition);var nn=nr("animationend"),ni=nr("animationiteration"),na=nr("animationstart"),no=nr("transitionend"),ns=new Map,nl="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 nu(e,t){ns.set(e,t),g(t,[e])}for(var nc=0;nc<nl.length;nc++){var nd=nl[nc];nu(nd.toLowerCase(),"on"+(nd[0].toUpperCase()+nd.slice(1)))}nu(nn,"onAnimationEnd"),nu(ni,"onAnimationIteration"),nu(na,"onAnimationStart"),nu("dblclick","onDoubleClick"),nu("focusin","onFocus"),nu("focusout","onBlur"),nu(no,"onTransitionEnd"),m("onMouseEnter",["mouseout","mouseover"]),m("onMouseLeave",["mouseout","mouseover"]),m("onPointerEnter",["pointerout","pointerover"]),m("onPointerLeave",["pointerout","pointerover"]),g("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),g("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),g("onBeforeInput",["compositionend","keypress","textInput","paste"]),g("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),g("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var nh="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(" "),nf=new Set("cancel close invalid load scroll toggle".split(" ").concat(nh));function np(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,i,a,o,s,l){if(e3.apply(this,arguments),eJ){if(eJ){var u=e0;eJ=!1,e0=null}else throw Error(h(198));e1||(e1=!0,e2=u)}}(n,t,void 0,e),e.currentTarget=null}function ng(e,t){t=0!=(4&t);for(var r=0;r<e.length;r++){var n=e[r],i=n.event;n=n.listeners;e:{var a=void 0;if(t)for(var o=n.length-1;0<=o;o--){var s=n[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;np(i,s,u),a=l}else for(o=0;o<n.length;o++){if(l=(s=n[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;np(i,s,u),a=l}}}if(e1)throw e=e2,e1=!1,e2=null,e}function nm(e,t){var r=t[nV];void 0===r&&(r=t[nV]=new Set);var n=e+"__bubble";r.has(n)||(ny(t,e,2,!1),r.add(n))}function nv(e,t,r){var n=0;t&&(n|=4),ny(r,e,n,t)}var nb="_reactListening"+Math.random().toString(36).slice(2);function nx(e){if(!e[nb]){e[nb]=!0,f.forEach(function(t){"selectionchange"!==t&&(nf.has(t)||nv(t,!1,e),nv(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[nb]||(t[nb]=!0,nv("selectionchange",!1,t))}}function ny(e,t,r,n){switch(t1(t)){case 1:var i=tZ;break;case 4:i=tK;break;default:i=tQ}r=i.bind(null,t,r,e),i=void 0,eZ&&("touchstart"===t||"touchmove"===t||"wheel"===t)&&(i=!0),n?void 0!==i?e.addEventListener(t,r,{capture:!0,passive:i}):e.addEventListener(t,r,!0):void 0!==i?e.addEventListener(t,r,{passive:i}):e.addEventListener(t,r,!1)}function nw(e,t,r,n,i){var a=n;if(0==(1&t)&&0==(2&t)&&null!==n)e:for(;;){if(null===n)return;var o=n.tag;if(3===o||4===o){var s=n.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===o)for(o=n.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=nq(s)))return;if(5===(l=o.tag)||6===l){n=a=o;continue e}s=s.parentNode}}n=n.return}e$(function(){var n=a,i=eF(r),o=[];e:{var s=ns.get(e);if(void 0!==s){var l=ri,u=e;switch(e){case"keypress":if(0===t6(r))break e;case"keydown":case"keyup":l=rx;break;case"focusin":u="focus",l=rc;break;case"focusout":u="blur",l=rc;break;case"beforeblur":case"afterblur":l=rc;break;case"click":if(2===r.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=rl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=ru;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=rw;break;case nn:case ni:case na:l=rd;break;case no:l=rk;break;case"scroll":l=ro;break;case"wheel":l=rS;break;case"copy":case"cut":case"paste":l=rh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=ry}var c=0!=(4&t),d=!c&&"scroll"===e,h=c?null!==s?s+"Capture":null:s;c=[];for(var f,p=n;null!==p;){var g=(f=p).stateNode;if(5===f.tag&&null!==g&&(f=g,null!==h&&null!=(g=eq(p,h))&&c.push(nk(p,g,f))),d)break;p=p.return}0<c.length&&(s=new l(s,u,null,r,i),o.push({event:s,listeners:c}))}}if(0==(7&t)){if(s="mouseover"===e||"pointerover"===e,l="mouseout"===e||"pointerout"===e,!(s&&r!==eD&&(u=r.relatedTarget||r.fromElement)&&(nq(u)||u[nU]))&&(l||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,l?(u=r.relatedTarget||r.toElement,l=n,null!==(u=u?nq(u):null)&&(d=e4(u),u!==d||5!==u.tag&&6!==u.tag)&&(u=null)):(l=null,u=n),l!==u)){if(c=rl,g="onMouseLeave",h="onMouseEnter",p="mouse",("pointerout"===e||"pointerover"===e)&&(c=ry,g="onPointerLeave",h="onPointerEnter",p="pointer"),d=null==l?s:nK(l),f=null==u?s:nK(u),(s=new c(g,p+"leave",l,r,i)).target=d,s.relatedTarget=f,g=null,nq(i)===n&&((c=new c(h,p+"enter",u,r,i)).target=f,c.relatedTarget=d,g=c),d=g,l&&u)t:{for(c=l,h=u,p=0,f=c;f;f=nC(f))p++;for(f=0,g=h;g;g=nC(g))f++;for(;0<p-f;)c=nC(c),p--;for(;0<f-p;)h=nC(h),f--;for(;p--;){if(c===h||null!==h&&c===h.alternate)break t;c=nC(c),h=nC(h)}c=null}else c=null;null!==l&&nA(o,s,l,c,!1),null!==u&&null!==d&&nA(o,d,u,c,!0)}e:{if("select"===(l=(s=n?nK(n):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m,v=rj;else if(rR(s)){if(rW)v=rq;else{v=rG;var b=rV}}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(v=r$);if(v&&(v=v(e,n))){rN(o,v,r,i);break e}b&&b(e,s,n),"focusout"===e&&(b=s._wrapperState)&&b.controlled&&"number"===s.type&&ev(s,"number",s.value)}switch(b=n?nK(n):window,e){case"focusin":(rR(b)||"true"===b.contentEditable)&&(r5=b,r3=n,r4=null);break;case"focusout":r4=r3=r5=null;break;case"mousedown":r6=!0;break;case"contextmenu":case"mouseup":case"dragend":r6=!1,r8(o,r,i);break;case"selectionchange":if(r2)break;case"keydown":case"keyup":r8(o,r,i)}if(rA)t:{switch(e){case"compositionstart":var x="onCompositionStart";break t;case"compositionend":x="onCompositionEnd";break t;case"compositionupdate":x="onCompositionUpdate";break t}x=void 0}else rI?rO(e,r)&&(x="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(x="onCompositionStart");x&&(rT&&"ko"!==r.locale&&(rI||"onCompositionStart"!==x?"onCompositionEnd"===x&&rI&&(m=t4()):(t5="value"in(t2=i)?t2.value:t2.textContent,rI=!0)),0<(b=nS(n,x)).length&&(x=new rf(x,e,null,r,i),o.push({event:x,listeners:b}),m?x.data=m:null!==(m=rM(r))&&(x.data=m))),(m=r_?function(e,t){switch(e){case"compositionend":return rM(t);case"keypress":if(32!==t.which)return null;return rP=!0," ";case"textInput":return" "===(e=t.data)&&rP?null:e;default:return null}}(e,r):function(e,t){if(rI)return"compositionend"===e||!rA&&rO(e,t)?(e=t4(),t3=t5=t2=null,rI=!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 rT&&"ko"!==t.locale?null:t.data}}(e,r))&&0<(n=nS(n,"onBeforeInput")).length&&(i=new rf("onBeforeInput","beforeinput",null,r,i),o.push({event:i,listeners:n}),i.data=m)}ng(o,t)})}function nk(e,t,r){return{instance:e,listener:t,currentTarget:r}}function nS(e,t){for(var r=t+"Capture",n=[];null!==e;){var i=e,a=i.stateNode;5===i.tag&&null!==a&&(i=a,null!=(a=eq(e,r))&&n.unshift(nk(e,a,i)),null!=(a=eq(e,t))&&n.push(nk(e,a,i))),e=e.return}return n}function nC(e){if(null===e)return null;do e=e.return;while(e&&5!==e.tag)return e||null}function nA(e,t,r,n,i){for(var a=t._reactName,o=[];null!==r&&r!==n;){var s=r,l=s.alternate,u=s.stateNode;if(null!==l&&l===n)break;5===s.tag&&null!==u&&(s=u,i?null!=(l=eq(r,a))&&o.unshift(nk(r,l,s)):i||null!=(l=eq(r,a))&&o.push(nk(r,l,s))),r=r.return}0!==o.length&&e.push({event:t,listeners:o})}var nE=/\r\n?/g,n_=/\u0000|\uFFFD/g;function nT(e){return("string"==typeof e?e:""+e).replace(nE,"\n").replace(n_,"")}function nP(e,t,r){if(t=nT(t),nT(e)!==t&&r)throw Error(h(425))}function nO(){}var nM=null,nI=null;function nL(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 nR="function"==typeof setTimeout?setTimeout:void 0,nN="function"==typeof clearTimeout?clearTimeout:void 0,nz="function"==typeof Promise?Promise:void 0,nD="function"==typeof queueMicrotask?queueMicrotask:void 0!==nz?function(e){return nz.resolve(null).then(e).catch(nF)}:nR;function nF(e){setTimeout(function(){throw e})}function nB(e,t){var r=t,n=0;do{var i=r.nextSibling;if(e.removeChild(r),i&&8===i.nodeType){if("/$"===(r=i.data)){if(0===n){e.removeChild(i),tG(t);return}n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++}r=i}while(r)tG(t)}function nj(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 nW(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var nH=Math.random().toString(36).slice(2),nX="__reactFiber$"+nH,nY="__reactProps$"+nH,nU="__reactContainer$"+nH,nV="__reactEvents$"+nH,nG="__reactListeners$"+nH,n$="__reactHandles$"+nH;function nq(e){var t=e[nX];if(t)return t;for(var r=e.parentNode;r;){if(t=r[nU]||r[nX]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=nW(e);null!==e;){if(r=e[nX])return r;e=nW(e)}return t}r=(e=r).parentNode}return null}function nZ(e){return(e=e[nX]||e[nU])&&(5===e.tag||6===e.tag||13===e.tag||3===e.tag)?e:null}function nK(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(h(33))}function nQ(e){return e[nY]||null}var nJ=[],n0=-1;function n1(e){return{current:e}}function n2(e){0>n0||(e.current=nJ[n0],nJ[n0]=null,n0--)}function n5(e,t){nJ[++n0]=e.current,e.current=t}var n3={},n4=n1(n3),n6=n1(!1),n8=n3;function n9(e,t){var r=e.type.contextTypes;if(!r)return n3;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in r)a[i]=t[i];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=a),a}function n7(e){return null!=(e=e.childContextTypes)}function ie(){n2(n6),n2(n4)}function it(e,t,r){if(n4.current!==n3)throw Error(h(168));n5(n4,t),n5(n6,r)}function ir(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!=typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in t))throw Error(h(108,function(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 function e(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case O:return"Fragment";case P:return"Portal";case I:return"Profiler";case M:return"StrictMode";case z:return"Suspense";case D:return"SuspenseList"}if("object"==typeof t)switch(t.$$typeof){case R:return(t.displayName||"Context")+".Consumer";case L:return(t._context.displayName||"Context")+".Provider";case N:var r=t.render;return(t=t.displayName)||(t=""!==(t=r.displayName||r.name||"")?"ForwardRef("+t+")":"ForwardRef"),t;case F:return null!==(r=t.displayName||null)?r:e(t.type)||"Memo";case B:r=t._payload,t=t._init;try{return e(t(r))}catch(e){}}return null}(t);case 8:return t===M?"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}(e)||"Unknown",i));return en({},r,n)}function ii(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||n3,n8=n4.current,n5(n4,e),n5(n6,n6.current),!0}function ia(e,t,r){var n=e.stateNode;if(!n)throw Error(h(169));r?(e=ir(e,t,n8),n.__reactInternalMemoizedMergedChildContext=e,n2(n6),n2(n4),n5(n4,e)):n2(n6),n5(n6,r)}var io=null,is=!1,il=!1;function iu(e){null===io?io=[e]:io.push(e)}function ic(){if(!il&&null!==io){il=!0;var e=0,t=tC;try{var r=io;for(tC=1;e<r.length;e++){var n=r[e];do n=n(!0);while(null!==n)}io=null,is=!1}catch(t){throw null!==io&&(io=io.slice(e+1)),e7(ta,ic),t}finally{tC=t,il=!1}}return null}var id=[],ih=0,ip=null,ig=0,im=[],iv=0,ib=null,ix=1,iy="";function iw(e,t){id[ih++]=ig,id[ih++]=ip,ip=e,ig=t}function ik(e,t,r){im[iv++]=ix,im[iv++]=iy,im[iv++]=ib,ib=e;var n=ix;e=iy;var i=32-th(n)-1;n&=~(1<<i),r+=1;var a=32-th(t)+i;if(30<a){var o=i-i%5;a=(n&(1<<o)-1).toString(32),n>>=o,i-=o,ix=1<<32-th(t)+i|r<<i|n,iy=a+e}else ix=1<<a|r<<i|n,iy=e}function iS(e){null!==e.return&&(iw(e,1),ik(e,1,0))}function iC(e){for(;e===ip;)ip=id[--ih],id[ih]=null,ig=id[--ih],id[ih]=null;for(;e===ib;)ib=im[--iv],im[iv]=null,iy=im[--iv],im[iv]=null,ix=im[--iv],im[iv]=null}var iA=null,iE=null,i_=!1,iT=null;function iP(e,t){var r=s9(5,null,null,0);r.elementType="DELETED",r.stateNode=t,r.return=e,null===(t=e.deletions)?(e.deletions=[r],e.flags|=16):t.push(r)}function iO(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,iA=e,iE=nj(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,iA=e,iE=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==ib?{id:ix,overflow:iy}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:0x40000000},(r=s9(18,null,null,0)).stateNode=t,r.return=e,e.child=r,iA=e,iE=null,!0);default:return!1}}function iM(e){return 0!=(1&e.mode)&&0==(128&e.flags)}function iI(e){if(i_){var t=iE;if(t){var r=t;if(!iO(e,t)){if(iM(e))throw Error(h(418));t=nj(r.nextSibling);var n=iA;t&&iO(e,t)?iP(n,r):(e.flags=-4097&e.flags|2,i_=!1,iA=e)}}else{if(iM(e))throw Error(h(418));e.flags=-4097&e.flags|2,i_=!1,iA=e}}}function iL(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;iA=e}function iR(e){if(e!==iA)return!1;if(!i_)return iL(e),i_=!0,!1;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!nL(e.type,e.memoizedProps)),t&&(t=iE)){if(iM(e))throw iN(),Error(h(418));for(;t;)iP(e,t),t=nj(t.nextSibling)}if(iL(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(h(317));e:{for(t=0,e=e.nextSibling;e;){if(8===e.nodeType){var t,r=e.data;if("/$"===r){if(0===t){iE=nj(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}iE=null}}else iE=iA?nj(e.stateNode.nextSibling):null;return!0}function iN(){for(var e=iE;e;)e=nj(e.nextSibling)}function iz(){iE=iA=null,i_=!1}function iD(e){null===iT?iT=[e]:iT.push(e)}var iF=_.ReactCurrentBatchConfig;function iB(e,t,r){if(null!==(e=r.ref)&&"function"!=typeof e&&"object"!=typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(h(309));var n=r.stateNode}if(!n)throw Error(h(147,e));var i=n,a=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===a?t.ref:((t=function(e){var t=i.refs;null===e?delete t[a]:t[a]=e})._stringRef=a,t)}if("string"!=typeof e)throw Error(h(284));if(!r._owner)throw Error(h(290,e))}return e}function ij(e,t){throw Error(h(31,"[object Object]"===(e=Object.prototype.toString.call(t))?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function iW(e){return(0,e._init)(e._payload)}function iH(e){function t(t,r){if(e){var n=t.deletions;null===n?(t.deletions=[r],t.flags|=16):n.push(r)}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(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=le(e,t)).index=0,e.sibling=null,e}function a(t,r,n){return(t.index=n,e)?null!==(n=t.alternate)?(n=n.index)<r?(t.flags|=2,r):n:(t.flags|=2,r):(t.flags|=1048576,r)}function o(t){return e&&null===t.alternate&&(t.flags|=2),t}function s(e,t,r,n){return null===t||6!==t.tag?(t=li(r,e.mode,n)).return=e:(t=i(t,r)).return=e,t}function l(e,t,r,n){var a=r.type;return a===O?c(e,t,r.props.children,n,r.key):(null!==t&&(t.elementType===a||"object"==typeof a&&null!==a&&a.$$typeof===B&&iW(a)===t.type)?(n=i(t,r.props)).ref=iB(e,t,r):(n=lt(r.type,r.key,r.props,null,e.mode,n)).ref=iB(e,t,r),n.return=e,n)}function u(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?(t=la(r,e.mode,n)).return=e:(t=i(t,r.children||[])).return=e,t}function c(e,t,r,n,a){return null===t||7!==t.tag?(t=lr(r,e.mode,n,a)).return=e:(t=i(t,r)).return=e,t}function d(e,t,r){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=li(""+t,e.mode,r)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case T:return(r=lt(t.type,t.key,t.props,null,e.mode,r)).ref=iB(e,null,t),r.return=e,r;case P:return(t=la(t,e.mode,r)).return=e,t;case B:return d(e,(0,t._init)(t._payload),r)}if(eb(t)||X(t))return(t=lr(t,e.mode,r,null)).return=e,t;ij(e,t)}return null}function f(e,t,r,n){var i=null!==t?t.key:null;if("string"==typeof r&&""!==r||"number"==typeof r)return null!==i?null:s(e,t,""+r,n);if("object"==typeof r&&null!==r){switch(r.$$typeof){case T:return r.key===i?l(e,t,r,n):null;case P:return r.key===i?u(e,t,r,n):null;case B:return f(e,t,(i=r._init)(r._payload),n)}if(eb(r)||X(r))return null!==i?null:c(e,t,r,n,null);ij(e,r)}return null}function p(e,t,r,n,i){if("string"==typeof n&&""!==n||"number"==typeof n)return s(t,e=e.get(r)||null,""+n,i);if("object"==typeof n&&null!==n){switch(n.$$typeof){case T:return l(t,e=e.get(null===n.key?r:n.key)||null,n,i);case P:return u(t,e=e.get(null===n.key?r:n.key)||null,n,i);case B:return p(e,t,r,(0,n._init)(n._payload),i)}if(eb(n)||X(n))return c(t,e=e.get(r)||null,n,i,null);ij(t,n)}return null}return function s(l,u,c,g){if("object"==typeof c&&null!==c&&c.type===O&&null===c.key&&(c=c.props.children),"object"==typeof c&&null!==c){switch(c.$$typeof){case T:e:{for(var m=c.key,v=u;null!==v;){if(v.key===m){if((m=c.type)===O){if(7===v.tag){r(l,v.sibling),(u=i(v,c.props.children)).return=l,l=u;break e}}else if(v.elementType===m||"object"==typeof m&&null!==m&&m.$$typeof===B&&iW(m)===v.type){r(l,v.sibling),(u=i(v,c.props)).ref=iB(l,v,c),u.return=l,l=u;break e}r(l,v);break}t(l,v),v=v.sibling}c.type===O?((u=lr(c.props.children,l.mode,g,c.key)).return=l,l=u):((g=lt(c.type,c.key,c.props,null,l.mode,g)).ref=iB(l,u,c),g.return=l,l=g)}return o(l);case P:e:{for(v=c.key;null!==u;){if(u.key===v){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){r(l,u.sibling),(u=i(u,c.children||[])).return=l,l=u;break e}r(l,u);break}t(l,u),u=u.sibling}(u=la(c,l.mode,g)).return=l,l=u}return o(l);case B:return s(l,u,(v=c._init)(c._payload),g)}if(eb(c))return function(i,o,s,l){for(var u=null,c=null,h=o,g=o=0,m=null;null!==h&&g<s.length;g++){h.index>g?(m=h,h=null):m=h.sibling;var v=f(i,h,s[g],l);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&t(i,h),o=a(v,o,g),null===c?u=v:c.sibling=v,c=v,h=m}if(g===s.length)return r(i,h),i_&&iw(i,g),u;if(null===h){for(;g<s.length;g++)null!==(h=d(i,s[g],l))&&(o=a(h,o,g),null===c?u=h:c.sibling=h,c=h);return i_&&iw(i,g),u}for(h=n(i,h);g<s.length;g++)null!==(m=p(h,i,g,s[g],l))&&(e&&null!==m.alternate&&h.delete(null===m.key?g:m.key),o=a(m,o,g),null===c?u=m:c.sibling=m,c=m);return e&&h.forEach(function(e){return t(i,e)}),i_&&iw(i,g),u}(l,u,c,g);if(X(c))return function(i,o,s,l){var u=X(s);if("function"!=typeof u)throw Error(h(150));if(null==(s=u.call(s)))throw Error(h(151));for(var c=u=null,g=o,m=o=0,v=null,b=s.next();null!==g&&!b.done;m++,b=s.next()){g.index>m?(v=g,g=null):v=g.sibling;var x=f(i,g,b.value,l);if(null===x){null===g&&(g=v);break}e&&g&&null===x.alternate&&t(i,g),o=a(x,o,m),null===c?u=x:c.sibling=x,c=x,g=v}if(b.done)return r(i,g),i_&&iw(i,m),u;if(null===g){for(;!b.done;m++,b=s.next())null!==(b=d(i,b.value,l))&&(o=a(b,o,m),null===c?u=b:c.sibling=b,c=b);return i_&&iw(i,m),u}for(g=n(i,g);!b.done;m++,b=s.next())null!==(b=p(g,i,m,b.value,l))&&(e&&null!==b.alternate&&g.delete(null===b.key?m:b.key),o=a(b,o,m),null===c?u=b:c.sibling=b,c=b);return e&&g.forEach(function(e){return t(i,e)}),i_&&iw(i,m),u}(l,u,c,g);ij(l,c)}return"string"==typeof c&&""!==c||"number"==typeof c?(c=""+c,null!==u&&6===u.tag?(r(l,u.sibling),(u=i(u,c)).return=l):(r(l,u),(u=li(c,l.mode,g)).return=l),o(l=u)):r(l,u)}}var iX=iH(!0),iY=iH(!1),iU=n1(null),iV=null,iG=null,i$=null;function iq(){i$=iG=iV=null}function iZ(e){var t=iU.current;n2(iU),e._currentValue=t}function iK(e,t,r){for(;null!==e;){var n=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==n&&(n.childLanes|=t)):null!==n&&(n.childLanes&t)!==t&&(n.childLanes|=t),e===r)break;e=e.return}}function iQ(e,t){iV=e,i$=iG=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!=(e.lanes&t)&&(ow=!0),e.firstContext=null)}function iJ(e){var t=e._currentValue;if(i$!==e){if(e={context:e,memoizedValue:t,next:null},null===iG){if(null===iV)throw Error(h(308));iG=e,iV.dependencies={lanes:0,firstContext:e}}else iG=iG.next=e}return t}var i0=null;function i1(e){null===i0?i0=[e]:i0.push(e)}function i2(e,t,r,n){var i=t.interleaved;return null===i?(r.next=r,i1(t)):(r.next=i.next,i.next=r),t.interleaved=r,i5(e,n)}function i5(e,t){e.lanes|=t;var r=e.alternate;for(null!==r&&(r.lanes|=t),r=e,e=e.return;null!==e;)e.childLanes|=t,null!==(r=e.alternate)&&(r.childLanes|=t),r=e,e=e.return;return 3===r.tag?r.stateNode:null}var i3=!1;function i4(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function i6(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 i8(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function i9(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!=(2&sl)){var i=n.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),n.pending=t,i5(e,r)}return null===(i=n.interleaved)?(t.next=t,i1(n)):(t.next=i.next,i.next=t),n.interleaved=t,i5(e,r)}function i7(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!=(4194240&r))){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,tS(e,r)}}function ae(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var i=null,a=null;if(null!==(r=r.firstBaseUpdate)){do{var o={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===a?i=a=o:a=a.next=o,r=r.next}while(null!==r)null===a?i=a=t:a=a.next=t}else i=a=t;r={baseState:n.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:n.shared,effects:n.effects},e.updateQueue=r;return}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function at(e,t,r,n){var i=e.updateQueue;i3=!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 d=i.baseState;for(o=0,c=u=l=null,s=a;;){var h=s.lane,f=s.eventTime;if((n&h)===h){null!==c&&(c=c.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,g=s;switch(h=t,f=r,g.tag){case 1:if("function"==typeof(p=g.payload)){d=p.call(f,d,h);break e}d=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null==(h="function"==typeof(p=g.payload)?p.call(f,d,h):p))break e;d=en({},d,h);break e;case 2:i3=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=i.effects)?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=f,l=d):c=c.next=f,o|=h;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}if(null===c&&(l=d),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);sm|=o,e.lanes=o,e.memoizedState=d}}function ar(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],i=n.callback;if(null!==i){if(n.callback=null,n=r,"function"!=typeof i)throw Error(h(191,i));i.call(n)}}}var an={},ai=n1(an),aa=n1(an),ao=n1(an);function as(e){if(e===an)throw Error(h(174));return e}function al(e,t){switch(n5(ao,t),n5(aa,e),n5(ai,an),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:eA(null,"");break;default:t=eA(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}n2(ai),n5(ai,t)}function au(){n2(ai),n2(aa),n2(ao)}function ac(e){as(ao.current);var t=as(ai.current),r=eA(t,e.type);t!==r&&(n5(aa,e),n5(ai,r))}function ad(e){aa.current===e&&(n2(ai),n2(aa))}var ah=n1(0);function af(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.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 ap=[];function ag(){for(var e=0;e<ap.length;e++)ap[e]._workInProgressVersionPrimary=null;ap.length=0}var am=_.ReactCurrentDispatcher,av=_.ReactCurrentBatchConfig,ab=0,ax=null,ay=null,aw=null,ak=!1,aS=!1,aC=0,aA=0;function aE(){throw Error(h(321))}function a_(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!rZ(e[r],t[r]))return!1;return!0}function aT(e,t,r,n,i,a){if(ab=a,ax=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,am.current=null===e||null===e.memoizedState?ot:or,e=r(n,i),aS){a=0;do{if(aS=!1,aC=0,25<=a)throw Error(h(301));a+=1,aw=ay=null,t.updateQueue=null,am.current=on,e=r(n,i)}while(aS)}if(am.current=oe,t=null!==ay&&null!==ay.next,ab=0,aw=ay=ax=null,ak=!1,t)throw Error(h(300));return e}function aP(){var e=0!==aC;return aC=0,e}function aO(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===aw?ax.memoizedState=aw=e:aw=aw.next=e,aw}function aM(){if(null===ay){var e=ax.alternate;e=null!==e?e.memoizedState:null}else e=ay.next;var t=null===aw?ax.memoizedState:aw.next;if(null!==t)aw=t,ay=e;else{if(null===e)throw Error(h(310));e={memoizedState:(ay=e).memoizedState,baseState:ay.baseState,baseQueue:ay.baseQueue,queue:ay.queue,next:null},null===aw?ax.memoizedState=aw=e:aw=aw.next=e}return aw}function aI(e,t){return"function"==typeof t?t(e):t}function aL(e){var t=aM(),r=t.queue;if(null===r)throw Error(h(311));r.lastRenderedReducer=e;var n=ay,i=n.baseQueue,a=r.pending;if(null!==a){if(null!==i){var o=i.next;i.next=a.next,a.next=o}n.baseQueue=i=a,r.pending=null}if(null!==i){a=i.next,n=n.baseState;var s=o=null,l=null,u=a;do{var c=u.lane;if((ab&c)===c)null!==l&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),n=u.hasEagerState?u.eagerState:e(n,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===l?(s=l=d,o=n):l=l.next=d,ax.lanes|=c,sm|=c}u=u.next}while(null!==u&&u!==a)null===l?o=n:l.next=s,rZ(n,t.memoizedState)||(ow=!0),t.memoizedState=n,t.baseState=o,t.baseQueue=l,r.lastRenderedState=n}if(null!==(e=r.interleaved)){i=e;do a=i.lane,ax.lanes|=a,sm|=a,i=i.next;while(i!==e)}else null===i&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function aR(e){var t=aM(),r=t.queue;if(null===r)throw Error(h(311));r.lastRenderedReducer=e;var n=r.dispatch,i=r.pending,a=t.memoizedState;if(null!==i){r.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i)rZ(a,t.memoizedState)||(ow=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function aN(){}function az(e,t){var r=ax,n=aM(),i=t(),a=!rZ(n.memoizedState,i);if(a&&(n.memoizedState=i,ow=!0),n=n.queue,a$(aB.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==aw&&1&aw.memoizedState.tag){if(r.flags|=2048,aX(9,aF.bind(null,r,n,i,t),void 0,null),null===su)throw Error(h(349));0!=(30&ab)||aD(r,t,i)}return i}function aD(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=ax.updateQueue)?(t={lastEffect:null,stores:null},ax.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function aF(e,t,r,n){t.value=r,t.getSnapshot=n,aj(t)&&aW(e)}function aB(e,t,r){return r(function(){aj(t)&&aW(e)})}function aj(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!rZ(e,r)}catch(e){return!0}}function aW(e){var t=i5(e,1);null!==t&&sz(t,e,1,-1)}function aH(e){var t=aO();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:aI,lastRenderedState:e},t.queue=e,e=e.dispatch=a6.bind(null,ax,e),[t.memoizedState,e]}function aX(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=ax.updateQueue)?(t={lastEffect:null,stores:null},ax.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function aY(){return aM().memoizedState}function aU(e,t,r,n){var i=aO();ax.flags|=e,i.memoizedState=aX(1|t,r,void 0,void 0===n?null:n)}function aV(e,t,r,n){var i=aM();n=void 0===n?null:n;var a=void 0;if(null!==ay){var o=ay.memoizedState;if(a=o.destroy,null!==n&&a_(n,o.deps)){i.memoizedState=aX(t,r,a,n);return}}ax.flags|=e,i.memoizedState=aX(1|t,r,a,n)}function aG(e,t){return aU(8390656,8,e,t)}function a$(e,t){return aV(2048,8,e,t)}function aq(e,t){return aV(4,2,e,t)}function aZ(e,t){return aV(4,4,e,t)}function aK(e,t){return"function"==typeof t?(t(e=e()),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function aQ(e,t,r){return r=null!=r?r.concat([e]):null,aV(4,4,aK.bind(null,t,e),r)}function aJ(){}function a0(e,t){var r=aM();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&a_(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function a1(e,t){var r=aM();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&a_(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function a2(e,t,r){return 0==(21&ab)?(e.baseState&&(e.baseState=!1,ow=!0),e.memoizedState=r):(rZ(r,t)||(r=ty(),ax.lanes|=r,sm|=r,e.baseState=!0),t)}function a5(e,t){var r=tC;tC=0!==r&&4>r?r:4,e(!0);var n=av.transition;av.transition={};try{e(!1),t()}finally{tC=r,av.transition=n}}function a3(){return aM().memoizedState}function a4(e,t,r){var n=sN(e);r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},a8(e)?a9(t,r):null!==(r=i2(e,t,r,n))&&(sz(r,e,n,sR()),a7(r,t,n))}function a6(e,t,r){var n=sN(e),i={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(a8(e))a9(t,i);else{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,r);if(i.hasEagerState=!0,i.eagerState=s,rZ(s,o)){var l=t.interleaved;null===l?(i.next=i,i1(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch(e){}finally{}null!==(r=i2(e,t,i,n))&&(sz(r,e,n,i=sR()),a7(r,t,n))}}function a8(e){var t=e.alternate;return e===ax||null!==t&&t===ax}function a9(e,t){aS=ak=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function a7(e,t,r){if(0!=(4194240&r)){var n=t.lanes;n&=e.pendingLanes,r|=n,t.lanes=r,tS(e,r)}}var oe={readContext:iJ,useCallback:aE,useContext:aE,useEffect:aE,useImperativeHandle:aE,useInsertionEffect:aE,useLayoutEffect:aE,useMemo:aE,useReducer:aE,useRef:aE,useState:aE,useDebugValue:aE,useDeferredValue:aE,useTransition:aE,useMutableSource:aE,useSyncExternalStore:aE,useId:aE,unstable_isNewReconciler:!1},ot={readContext:iJ,useCallback:function(e,t){return aO().memoizedState=[e,void 0===t?null:t],e},useContext:iJ,useEffect:aG,useImperativeHandle:function(e,t,r){return r=null!=r?r.concat([e]):null,aU(4194308,4,aK.bind(null,t,e),r)},useLayoutEffect:function(e,t){return aU(4194308,4,e,t)},useInsertionEffect:function(e,t){return aU(4,2,e,t)},useMemo:function(e,t){var r=aO();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=aO();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},n.queue=e,e=e.dispatch=a4.bind(null,ax,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},aO().memoizedState=e},useState:aH,useDebugValue:aJ,useDeferredValue:function(e){return aO().memoizedState=e},useTransition:function(){var e=aH(!1),t=e[0];return e=a5.bind(null,e[1]),aO().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=ax,i=aO();if(i_){if(void 0===r)throw Error(h(407));r=r()}else{if(r=t(),null===su)throw Error(h(349));0!=(30&ab)||aD(n,t,r)}i.memoizedState=r;var a={value:r,getSnapshot:t};return i.queue=a,aG(aB.bind(null,n,a,e),[e]),n.flags|=2048,aX(9,aF.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=aO(),t=su.identifierPrefix;if(i_){var r=iy,n=ix;t=":"+t+"R"+(r=(n&~(1<<32-th(n)-1)).toString(32)+r),0<(r=aC++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=aA++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},or={readContext:iJ,useCallback:a0,useContext:iJ,useEffect:a$,useImperativeHandle:aQ,useInsertionEffect:aq,useLayoutEffect:aZ,useMemo:a1,useReducer:aL,useRef:aY,useState:function(){return aL(aI)},useDebugValue:aJ,useDeferredValue:function(e){return a2(aM(),ay.memoizedState,e)},useTransition:function(){return[aL(aI)[0],aM().memoizedState]},useMutableSource:aN,useSyncExternalStore:az,useId:a3,unstable_isNewReconciler:!1},on={readContext:iJ,useCallback:a0,useContext:iJ,useEffect:a$,useImperativeHandle:aQ,useInsertionEffect:aq,useLayoutEffect:aZ,useMemo:a1,useReducer:aR,useRef:aY,useState:function(){return aR(aI)},useDebugValue:aJ,useDeferredValue:function(e){var t=aM();return null===ay?t.memoizedState=e:a2(t,ay.memoizedState,e)},useTransition:function(){return[aR(aI)[0],aM().memoizedState]},useMutableSource:aN,useSyncExternalStore:az,useId:a3,unstable_isNewReconciler:!1};function oi(e,t){if(e&&e.defaultProps)for(var r in t=en({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}function oa(e,t,r,n){r=null==(r=r(n,t=e.memoizedState))?t:en({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var oo={isMounted:function(e){return!!(e=e._reactInternals)&&e4(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=sR(),i=sN(e),a=i8(n,i);a.payload=t,null!=r&&(a.callback=r),null!==(t=i9(e,a,i))&&(sz(t,e,i,n),i7(t,e,i))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=sR(),i=sN(e),a=i8(n,i);a.tag=1,a.payload=t,null!=r&&(a.callback=r),null!==(t=i9(e,a,i))&&(sz(t,e,i,n),i7(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=sR(),n=sN(e),i=i8(r,n);i.tag=2,null!=t&&(i.callback=t),null!==(t=i9(e,i,n))&&(sz(t,e,n,r),i7(t,e,n))}};function os(e,t,r,n,i,a,o){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,a,o):!t.prototype||!t.prototype.isPureReactComponent||!rK(r,n)||!rK(i,a)}function ol(e,t,r){var n=!1,i=n3,a=t.contextType;return"object"==typeof a&&null!==a?a=iJ(a):(i=n7(t)?n8:n4.current,a=(n=null!=(n=t.contextTypes))?n9(e,i):n3),t=new t(r,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=oo,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function ou(e,t,r,n){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&oo.enqueueReplaceState(t,t.state,null)}function oc(e,t,r,n){var i=e.stateNode;i.props=r,i.state=e.memoizedState,i.refs={},i4(e);var a=t.contextType;"object"==typeof a&&null!==a?i.context=iJ(a):(a=n7(t)?n8:n4.current,i.context=n9(e,a)),i.state=e.memoizedState,"function"==typeof(a=t.getDerivedStateFromProps)&&(oa(e,t,a,r),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&&oo.enqueueReplaceState(i,i.state,null),at(e,r,i,n),i.state=e.memoizedState),"function"==typeof i.componentDidMount&&(e.flags|=4194308)}function od(e,t){try{var r="",n=t;do r+=function(e){switch(e.tag){case 5:return ei(e.type);case 16:return ei("Lazy");case 13:return ei("Suspense");case 19:return ei("SuspenseList");case 0:case 2:case 15:return e=eo(e.type,!1);case 11:return e=eo(e.type.render,!1);case 1:return e=eo(e.type,!0);default:return""}}(n),n=n.return;while(n)var i=r}catch(e){i="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:i,digest:null}}function oh(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function of(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var op="function"==typeof WeakMap?WeakMap:Map;function og(e,t,r){(r=i8(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){sC||(sC=!0,sA=n),of(e,t)},r}function om(e,t,r){(r=i8(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"==typeof n){var i=t.value;r.payload=function(){return n(i)},r.callback=function(){of(e,t)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(r.callback=function(){of(e,t),"function"!=typeof n&&(null===sE?sE=new Set([this]):sE.add(this));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}function ov(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new op;var i=new Set;n.set(t,i)}else void 0===(i=n.get(t))&&(i=new Set,n.set(t,i));i.has(r)||(i.add(r),e=s5.bind(null,e,t,r),t.then(e,e))}function ob(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 ox(e,t,r,n,i){return 0==(1&e.mode)?e===t?e.flags|=65536:(e.flags|=128,r.flags|=131072,r.flags&=-52805,1===r.tag&&(null===r.alternate?r.tag=17:((t=i8(-1,1)).tag=2,i9(r,t,1))),r.lanes|=1):(e.flags|=65536,e.lanes=i),e}var oy=_.ReactCurrentOwner,ow=!1;function ok(e,t,r,n){t.child=null===e?iY(t,null,r,n):iX(t,e.child,r,n)}function oS(e,t,r,n,i){r=r.render;var a=t.ref;return(iQ(t,i),n=aT(e,t,r,n,a,i),r=aP(),null===e||ow)?(i_&&r&&iS(t),t.flags|=1,ok(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oH(e,t,i))}function oC(e,t,r,n,i){if(null===e){var a=r.type;return"function"!=typeof a||s7(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=lt(r.type,null,n,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,oA(e,t,a,n,i))}if(a=e.child,0==(e.lanes&i)){var o=a.memoizedProps;if((r=null!==(r=r.compare)?r:rK)(o,n)&&e.ref===t.ref)return oH(e,t,i)}return t.flags|=1,(e=le(a,n)).ref=t.ref,e.return=t,t.child=e}function oA(e,t,r,n,i){if(null!==e){var a=e.memoizedProps;if(rK(a,n)&&e.ref===t.ref){if(ow=!1,t.pendingProps=n=a,0==(e.lanes&i))return t.lanes=e.lanes,oH(e,t,i);0!=(131072&e.flags)&&(ow=!0)}}return oT(e,t,r,n,i)}function oE(e,t,r){var n=t.pendingProps,i=n.children,a=null!==e?e.memoizedState:null;if("hidden"===n.mode){if(0==(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n5(sf,sh),sh|=r;else{if(0==(0x40000000&r))return e=null!==a?a.baseLanes|r:r,t.lanes=t.childLanes=0x40000000,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,n5(sf,sh),sh|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==a?a.baseLanes:r,n5(sf,sh),sh|=n}}else null!==a?(n=a.baseLanes|r,t.memoizedState=null):n=r,n5(sf,sh),sh|=n;return ok(e,t,i,r),t.child}function o_(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function oT(e,t,r,n,i){var a=n7(r)?n8:n4.current;return(a=n9(t,a),iQ(t,i),r=aT(e,t,r,n,a,i),n=aP(),null===e||ow)?(i_&&n&&iS(t),t.flags|=1,ok(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,oH(e,t,i))}function oP(e,t,r,n,i){if(n7(r)){var a=!0;ii(t)}else a=!1;if(iQ(t,i),null===t.stateNode)oW(e,t),ol(t,r,n),oc(t,r,n,i),n=!0;else if(null===e){var o=t.stateNode,s=t.memoizedProps;o.props=s;var l=o.context,u=r.contextType;u="object"==typeof u&&null!==u?iJ(u):n9(t,u=n7(r)?n8:n4.current);var c=r.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof o.getSnapshotBeforeUpdate;d||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==n||l!==u)&&ou(t,o,n,u),i3=!1;var h=t.memoizedState;o.state=h,at(t,n,o,i),l=t.memoizedState,s!==n||h!==l||n6.current||i3?("function"==typeof c&&(oa(t,r,c,n),l=t.memoizedState),(s=i3||os(t,r,s,n,h,l,u))?(d||"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=n,t.memoizedState=l),o.props=n,o.state=l,o.context=u,n=s):("function"==typeof o.componentDidMount&&(t.flags|=4194308),n=!1)}else{o=t.stateNode,i6(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:oi(t.type,s),o.props=u,d=t.pendingProps,h=o.context,l="object"==typeof(l=r.contextType)&&null!==l?iJ(l):n9(t,l=n7(r)?n8:n4.current);var f=r.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(s!==d||h!==l)&&ou(t,o,n,l),i3=!1,h=t.memoizedState,o.state=h,at(t,n,o,i);var p=t.memoizedState;s!==d||h!==p||n6.current||i3?("function"==typeof f&&(oa(t,r,f,n),p=t.memoizedState),(u=i3||os(t,r,u,n,h,p,l)||!1)?(c||"function"!=typeof o.UNSAFE_componentWillUpdate&&"function"!=typeof o.componentWillUpdate||("function"==typeof o.componentWillUpdate&&o.componentWillUpdate(n,p,l),"function"==typeof o.UNSAFE_componentWillUpdate&&o.UNSAFE_componentWillUpdate(n,p,l)),"function"==typeof o.componentDidUpdate&&(t.flags|=4),"function"==typeof o.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=p),o.props=n,o.state=p,o.context=l,n=u):("function"!=typeof o.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!=typeof o.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),n=!1)}return oO(e,t,r,n,a,i)}function oO(e,t,r,n,i,a){o_(e,t);var o=0!=(128&t.flags);if(!n&&!o)return i&&ia(t,r,!1),oH(e,t,a);n=t.stateNode,oy.current=t;var s=o&&"function"!=typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&o?(t.child=iX(t,e.child,null,a),t.child=iX(t,null,s,a)):ok(e,t,s,a),t.memoizedState=n.state,i&&ia(t,r,!0),t.child}function oM(e){var t=e.stateNode;t.pendingContext?it(e,t.pendingContext,t.pendingContext!==t.context):t.context&&it(e,t.context,!1),al(e,t.containerInfo)}function oI(e,t,r,n,i){return iz(),iD(i),t.flags|=256,ok(e,t,r,n),t.child}var oL={dehydrated:null,treeContext:null,retryLane:0};function oR(e){return{baseLanes:e,cachePool:null,transitions:null}}function oN(e,t,r){var n,i=t.pendingProps,a=ah.current,o=!1,s=0!=(128&t.flags);if((n=s)||(n=(null===e||null!==e.memoizedState)&&0!=(2&a)),n?(o=!0,t.flags&=-129):(null===e||null!==e.memoizedState)&&(a|=1),n5(ah,1&a),null===e)return(iI(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated))?(0==(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=0x40000000,null):(s=i.children,e=i.fallback,o?(i=t.mode,o=t.child,s={mode:"hidden",children:s},0==(1&i)&&null!==o?(o.childLanes=0,o.pendingProps=s):o=ln(s,i,0,null),e=lr(e,i,r,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=oR(r),t.memoizedState=oL,e):oz(t,s));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,i,a,o){if(r)return 256&t.flags?(t.flags&=-257,oD(e,t,o,n=oh(Error(h(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,i=t.mode,n=ln({mode:"visible",children:n.children},i,0,null),a=lr(a,i,o,null),a.flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!=(1&t.mode)&&iX(t,e.child,null,o),t.child.memoizedState=oR(o),t.memoizedState=oL,a);if(0==(1&t.mode))return oD(e,t,o,null);if("$!"===i.data){if(n=i.nextSibling&&i.nextSibling.dataset)var s=n.dgst;return n=s,oD(e,t,o,n=oh(a=Error(h(419)),n,void 0))}if(s=0!=(o&e.childLanes),ow||s){if(null!==(n=su)){switch(o&-o){case 4:i=2;break;case 16:i=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 0x1000000:case 0x2000000:case 0x4000000:i=32;break;case 0x20000000:i=0x10000000;break;default:i=0}0!==(i=0!=(i&(n.suspendedLanes|o))?0:i)&&i!==a.retryLane&&(a.retryLane=i,i5(e,i),sz(n,e,i,-1))}return sq(),oD(e,t,o,n=oh(Error(h(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=s4.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,iE=nj(i.nextSibling),iA=t,i_=!0,iT=null,null!==e&&(im[iv++]=ix,im[iv++]=iy,im[iv++]=ib,ix=e.id,iy=e.overflow,ib=t),t=oz(t,n.children),t.flags|=4096,t)}(e,t,s,i,n,a,r);if(o){o=i.fallback,s=t.mode,n=(a=e.child).sibling;var l={mode:"hidden",children:i.children};return 0==(1&s)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=l,t.deletions=null):(i=le(a,l)).subtreeFlags=0xe00000&a.subtreeFlags,null!==n?o=le(n,o):(o=lr(o,s,r,null),o.flags|=2),o.return=t,i.return=t,i.sibling=o,t.child=i,i=o,o=t.child,s=null===(s=e.child.memoizedState)?oR(r):{baseLanes:s.baseLanes|r,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~r,t.memoizedState=oL,i}return e=(o=e.child).sibling,i=le(o,{mode:"visible",children:i.children}),0==(1&t.mode)&&(i.lanes=r),i.return=t,i.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=i,t.memoizedState=null,i}function oz(e,t){return(t=ln({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function oD(e,t,r,n){return null!==n&&iD(n),iX(t,e.child,null,r),e=oz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function oF(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),iK(e.return,t,r)}function oB(e,t,r,n,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailMode=i)}function oj(e,t,r){var n=t.pendingProps,i=n.revealOrder,a=n.tail;if(ok(e,t,n.children,r),0!=(2&(n=ah.current)))n=1&n|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&&oF(e,r,t);else if(19===e.tag)oF(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(n5(ah,n),0==(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(i=null,r=t.child;null!==r;)null!==(e=r.alternate)&&null===af(e)&&(i=r),r=r.sibling;null===(r=i)?(i=t.child,t.child=null):(i=r.sibling,r.sibling=null),oB(t,!1,i,r,a);break;case"backwards":for(r=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===af(e)){t.child=i;break}e=i.sibling,i.sibling=r,r=i,i=e}oB(t,!0,r,null,a);break;case"together":oB(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function oW(e,t){0==(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function oH(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),sm|=t.lanes,0==(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(h(153));if(null!==t.child){for(r=le(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=le(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function oX(e,t){if(!i_)switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function oY(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=0xe00000&i.subtreeFlags,n|=0xe00000&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)r|=i.lanes|i.childLanes,n|=i.subtreeFlags,n|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}i=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},a=function(){},o=function(e,t,r,n){var i=e.memoizedProps;if(i!==n){e=t.stateNode,as(ai.current);var a,o=null;switch(r){case"input":i=eh(e,i),n=eh(e,n),o=[];break;case"select":i=en({},i,{value:void 0}),n=en({},n,{value:void 0}),o=[];break;case"textarea":i=ey(e,i),n=ey(e,n),o=[];break;default:"function"!=typeof i.onClick&&"function"==typeof n.onClick&&(e.onclick=nO)}for(u in eN(r,n),r=null,i)if(!n.hasOwnProperty(u)&&i.hasOwnProperty(u)&&null!=i[u]){if("style"===u){var s=i[u];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(p.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null))}for(u in n){var l=n[u];if(s=null!=i?i[u]:void 0,n.hasOwnProperty(u)&&l!==s&&(null!=l||null!=s)){if("style"===u){if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(o||(o=[]),o.push(u,r)),r=l}else"dangerouslySetInnerHTML"===u?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(o=o||[]).push(u,l)):"children"===u?"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(u,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(p.hasOwnProperty(u)?(null!=l&&"onScroll"===u&&nm("scroll",e),o||s===l||(o=[])):(o=o||[]).push(u,l))}}r&&(o=o||[]).push("style",r);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},s=function(e,t,r,n){r!==n&&(t.flags|=4)};var oU=!1,oV=!1,oG="function"==typeof WeakSet?WeakSet:Set,o$=null;function oq(e,t){var r=e.ref;if(null!==r){if("function"==typeof r)try{r(null)}catch(r){s2(e,t,r)}else r.current=null}}function oZ(e,t,r){try{r()}catch(r){s2(e,t,r)}}var oK=!1;function oQ(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var i=n=n.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,void 0!==a&&oZ(t,r,a)}i=i.next}while(i!==n)}}function oJ(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function o0(e){var t=e.ref;if(null!==t){var r=e.stateNode;e.tag,e=r,"function"==typeof t?t(e):t.current=e}}function o1(e){return 5===e.tag||3===e.tag||4===e.tag}function o2(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||o1(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||null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}var o5=null,o3=!1;function o4(e,t,r){for(r=r.child;null!==r;)o6(e,t,r),r=r.sibling}function o6(e,t,r){if(td&&"function"==typeof td.onCommitFiberUnmount)try{td.onCommitFiberUnmount(tc,r)}catch(e){}switch(r.tag){case 5:oV||oq(r,t);case 6:var n=o5,i=o3;o5=null,o4(e,t,r),o5=n,o3=i,null!==o5&&(o3?(e=o5,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):o5.removeChild(r.stateNode));break;case 18:null!==o5&&(o3?(e=o5,r=r.stateNode,8===e.nodeType?nB(e.parentNode,r):1===e.nodeType&&nB(e,r),tG(e)):nB(o5,r.stateNode));break;case 4:n=o5,i=o3,o5=r.stateNode.containerInfo,o3=!0,o4(e,t,r),o5=n,o3=i;break;case 0:case 11:case 14:case 15:if(!oV&&null!==(n=r.updateQueue)&&null!==(n=n.lastEffect)){i=n=n.next;do{var a=i,o=a.destroy;a=a.tag,void 0!==o&&(0!=(2&a)?oZ(r,t,o):0!=(4&a)&&oZ(r,t,o)),i=i.next}while(i!==n)}o4(e,t,r);break;case 1:if(!oV&&(oq(r,t),"function"==typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(e){s2(r,t,e)}o4(e,t,r);break;case 21:default:o4(e,t,r);break;case 22:1&r.mode?(oV=(n=oV)||null!==r.memoizedState,o4(e,t,r),oV=n):o4(e,t,r)}}function o8(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new oG),t.forEach(function(t){var n=s6.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))})}}function o9(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var i=r[n];try{var a=t,o=a;e:for(;null!==o;){switch(o.tag){case 5:o5=o.stateNode,o3=!1;break e;case 3:case 4:o5=o.stateNode.containerInfo,o3=!0;break e}o=o.return}if(null===o5)throw Error(h(160));o6(e,a,i),o5=null,o3=!1;var s=i.alternate;null!==s&&(s.return=null),i.return=null}catch(e){s2(i,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)o7(t,e),t=t.sibling}function o7(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(o9(t,e),se(e),4&n){try{oQ(3,e,e.return),oJ(3,e)}catch(t){s2(e,e.return,t)}try{oQ(5,e,e.return)}catch(t){s2(e,e.return,t)}}break;case 1:o9(t,e),se(e),512&n&&null!==r&&oq(r,r.return);break;case 5:if(o9(t,e),se(e),512&n&&null!==r&&oq(r,r.return),32&e.flags){var i=e.stateNode;try{eP(i,"")}catch(t){s2(e,e.return,t)}}if(4&n&&null!=(i=e.stateNode)){var a=e.memoizedProps,o=null!==r?r.memoizedProps:a,s=e.type,l=e.updateQueue;if(e.updateQueue=null,null!==l)try{"input"===s&&"radio"===a.type&&null!=a.name&&ep(i,a),ez(s,o);var u=ez(s,a);for(o=0;o<l.length;o+=2){var c=l[o],d=l[o+1];"style"===c?eL(i,d):"dangerouslySetInnerHTML"===c?eT(i,d):"children"===c?eP(i,d):E(i,c,d,u)}switch(s){case"input":eg(i,a);break;case"textarea":ek(i,a);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var p=a.value;null!=p?ex(i,!!a.multiple,p,!1):!!a.multiple!==f&&(null!=a.defaultValue?ex(i,!!a.multiple,a.defaultValue,!0):ex(i,!!a.multiple,a.multiple?[]:"",!1))}i[nY]=a}catch(t){s2(e,e.return,t)}}break;case 6:if(o9(t,e),se(e),4&n){if(null===e.stateNode)throw Error(h(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(t){s2(e,e.return,t)}}break;case 3:if(o9(t,e),se(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{tG(t.containerInfo)}catch(t){s2(e,e.return,t)}break;case 4:default:o9(t,e),se(e);break;case 13:o9(t,e),se(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,a&&(null===i.alternate||null===i.alternate.memoizedState)&&(sw=tn())),4&n&&o8(e);break;case 22:if(c=null!==r&&null!==r.memoizedState,1&e.mode?(oV=(u=oV)||c,o9(t,e),oV=u):o9(t,e),se(e),8192&n){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&0!=(1&e.mode))for(o$=e,c=e.child;null!==c;){for(d=o$=c;null!==o$;){switch(p=(f=o$).child,f.tag){case 0:case 11:case 14:case 15:oQ(4,f,f.return);break;case 1:oq(f,f.return);var g=f.stateNode;if("function"==typeof g.componentWillUnmount){n=f,r=f.return;try{t=n,g.props=t.memoizedProps,g.state=t.memoizedState,g.componentWillUnmount()}catch(e){s2(n,r,e)}}break;case 5:oq(f,f.return);break;case 22:if(null!==f.memoizedState){sr(d);continue}}null!==p?(p.return=f,o$=p):sr(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{i=d.stateNode,u?(a=i.style,"function"==typeof a.setProperty?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,o=null!=(l=d.memoizedProps.style)&&l.hasOwnProperty("display")?l.display:null,s.style.display=eI("display",o))}catch(t){s2(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){s2(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:o9(t,e),se(e),4&n&&o8(e);case 21:}}function se(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(o1(r)){var n=r;break e}r=r.return}throw Error(h(160))}switch(n.tag){case 5:var i=n.stateNode;32&n.flags&&(eP(i,""),n.flags&=-33);var a=o2(e);!function e(t,r,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,r?n.insertBefore(t,r):n.appendChild(t);else if(4!==i&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,a,i);break;case 3:case 4:var o=n.stateNode.containerInfo,s=o2(e);!function e(t,r,n){var i=t.tag;if(5===i||6===i)t=t.stateNode,r?8===n.nodeType?n.parentNode.insertBefore(t,r):n.insertBefore(t,r):(8===n.nodeType?(r=n.parentNode).insertBefore(t,n):(r=n).appendChild(t),null!=(n=n._reactRootContainer)||null!==r.onclick||(r.onclick=nO));else if(4!==i&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,s,o);break;default:throw Error(h(161))}}catch(t){s2(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function st(e){for(;null!==o$;){var t=o$;if(0!=(8772&t.flags)){var r=t.alternate;try{if(0!=(8772&t.flags))switch(t.tag){case 0:case 11:case 15:oV||oJ(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!oV){if(null===r)n.componentDidMount();else{var i=t.elementType===t.type?r.memoizedProps:oi(t.type,r.memoizedProps);n.componentDidUpdate(i,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}}var a=t.updateQueue;null!==a&&ar(t,a,n);break;case 3:var o=t.updateQueue;if(null!==o){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}ar(t,o,r)}break;case 5:var s=t.stateNode;if(null===r&&4&t.flags){r=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&tG(d)}}}break;default:throw Error(h(163))}oV||512&t.flags&&o0(t)}catch(e){s2(t,t.return,e)}}if(t===e){o$=null;break}if(null!==(r=t.sibling)){r.return=t.return,o$=r;break}o$=t.return}}function sr(e){for(;null!==o$;){var t=o$;if(t===e){o$=null;break}var r=t.sibling;if(null!==r){r.return=t.return,o$=r;break}o$=t.return}}function sn(e){for(;null!==o$;){var t=o$;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{oJ(4,t)}catch(e){s2(t,r,e)}break;case 1:var n=t.stateNode;if("function"==typeof n.componentDidMount){var i=t.return;try{n.componentDidMount()}catch(e){s2(t,i,e)}}var a=t.return;try{o0(t)}catch(e){s2(t,a,e)}break;case 5:var o=t.return;try{o0(t)}catch(e){s2(t,o,e)}}}catch(e){s2(t,t.return,e)}if(t===e){o$=null;break}var s=t.sibling;if(null!==s){s.return=t.return,o$=s;break}o$=t.return}}var si=Math.ceil,sa=_.ReactCurrentDispatcher,so=_.ReactCurrentOwner,ss=_.ReactCurrentBatchConfig,sl=0,su=null,sc=null,sd=0,sh=0,sf=n1(0),sp=0,sg=null,sm=0,sv=0,sb=0,sx=null,sy=null,sw=0,sk=1/0,sS=null,sC=!1,sA=null,sE=null,s_=!1,sT=null,sP=0,sO=0,sM=null,sI=-1,sL=0;function sR(){return 0!=(6&sl)?tn():-1!==sI?sI:sI=tn()}function sN(e){return 0==(1&e.mode)?1:0!=(2&sl)&&0!==sd?sd&-sd:null!==iF.transition?(0===sL&&(sL=ty()),sL):0!==(e=tC)?e:e=void 0===(e=window.event)?16:t1(e.type)}function sz(e,t,r,n){if(50<sO)throw sO=0,sM=null,Error(h(185));tk(e,r,n),(0==(2&sl)||e!==su)&&(e===su&&(0==(2&sl)&&(sv|=r),4===sp&&sW(e,sd)),sD(e,n),1===r&&0===sl&&0==(1&t.mode)&&(sk=tn()+500,is&&ic()))}function sD(e,t){var r,n=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-th(a),s=1<<o,l=i[o];-1===l?(0==(s&r)||0!=(s&n))&&(i[o]=function(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}}(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}}(e,t);var i=tb(e,e===su?sd:0);if(0===i)null!==n&&te(n),e.callbackNode=null,e.callbackPriority=0;else if(t=i&-i,e.callbackPriority!==t){if(null!=n&&te(n),1===t)0===e.tag?(r=sH.bind(null,e),is=!0,iu(r)):iu(sH.bind(null,e)),nD(function(){0==(6&sl)&&ic()}),n=null;else{switch(tA(i)){case 1:n=ta;break;case 4:n=to;break;case 16:default:n=ts;break;case 0x20000000:n=tu}n=e7(n,sF.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function sF(e,t){if(sI=-1,sL=0,0!=(6&sl))throw Error(h(327));var r=e.callbackNode;if(s0()&&e.callbackNode!==r)return null;var n=tb(e,e===su?sd:0);if(0===n)return null;if(0!=(30&n)||0!=(n&e.expiredLanes)||t)t=sZ(e,n);else{t=n;var i=sl;sl|=2;var a=s$();for((su!==e||sd!==t)&&(sS=null,sk=tn()+500,sV(e,t));;)try{(function(){for(;null!==sc&&!tt();)sK(sc)})();break}catch(t){sG(e,t)}iq(),sa.current=a,sl=i,null!==sc?t=0:(su=null,sd=0,t=sp)}if(0!==t){if(2===t&&0!==(i=tx(e))&&(n=i,t=sB(e,i)),1===t)throw r=sg,sV(e,0),sW(e,n),sD(e,tn()),r;if(6===t)sW(e,n);else{if(i=e.current.alternate,0==(30&n)&&!function(e){for(var t=e;;){if(16384&t.flags){var r=t.updateQueue;if(null!==r&&null!==(r=r.stores))for(var n=0;n<r.length;n++){var i=r[n],a=i.getSnapshot;i=i.value;try{if(!rZ(a(),i))return!1}catch(e){return!1}}}if(r=t.child,16384&t.subtreeFlags&&null!==r)r.return=t,t=r;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=sZ(e,n))&&0!==(a=tx(e))&&(n=a,t=sB(e,a)),1===t))throw r=sg,sV(e,0),sW(e,n),sD(e,tn()),r;switch(e.finishedWork=i,e.finishedLanes=n,t){case 0:case 1:throw Error(h(345));case 2:case 5:sJ(e,sy,sS);break;case 3:if(sW(e,n),(0x7c00000&n)===n&&10<(t=sw+500-tn())){if(0!==tb(e,0))break;if(((i=e.suspendedLanes)&n)!==n){sR(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=nR(sJ.bind(null,e,sy,sS),t);break}sJ(e,sy,sS);break;case 4:if(sW(e,n),(4194240&n)===n)break;for(i=-1,t=e.eventTimes;0<n;){var o=31-th(n);a=1<<o,(o=t[o])>i&&(i=o),n&=~a}if(n=i,10<(n=(120>(n=tn()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*si(n/1960))-n)){e.timeoutHandle=nR(sJ.bind(null,e,sy,sS),n);break}sJ(e,sy,sS);break;default:throw Error(h(329))}}}return sD(e,tn()),e.callbackNode===r?sF.bind(null,e):null}function sB(e,t){var r=sx;return e.current.memoizedState.isDehydrated&&(sV(e,t).flags|=256),2!==(e=sZ(e,t))&&(t=sy,sy=r,null!==t&&sj(t)),e}function sj(e){null===sy?sy=e:sy.push.apply(sy,e)}function sW(e,t){for(t&=~sb,t&=~sv,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-th(t),n=1<<r;e[r]=-1,t&=~n}}function sH(e){if(0!=(6&sl))throw Error(h(327));s0();var t=tb(e,0);if(0==(1&t))return sD(e,tn()),null;var r=sZ(e,t);if(0!==e.tag&&2===r){var n=tx(e);0!==n&&(t=n,r=sB(e,n))}if(1===r)throw r=sg,sV(e,0),sW(e,t),sD(e,tn()),r;if(6===r)throw Error(h(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,sJ(e,sy,sS),sD(e,tn()),null}function sX(e,t){var r=sl;sl|=1;try{return e(t)}finally{0===(sl=r)&&(sk=tn()+500,is&&ic())}}function sY(e){null!==sT&&0===sT.tag&&0==(6&sl)&&s0();var t=sl;sl|=1;var r=ss.transition,n=tC;try{if(ss.transition=null,tC=1,e)return e()}finally{tC=n,ss.transition=r,0==(6&(sl=t))&&ic()}}function sU(){sh=sf.current,n2(sf)}function sV(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,nN(r)),null!==sc)for(r=sc.return;null!==r;){var n=r;switch(iC(n),n.tag){case 1:null!=(n=n.type.childContextTypes)&&ie();break;case 3:au(),n2(n6),n2(n4),ag();break;case 5:ad(n);break;case 4:au();break;case 13:case 19:n2(ah);break;case 10:iZ(n.type._context);break;case 22:case 23:sU()}r=r.return}if(su=e,sc=e=le(e.current,null),sd=sh=t,sp=0,sg=null,sb=sv=sm=0,sy=sx=null,null!==i0){for(t=0;t<i0.length;t++)if(null!==(n=(r=i0[t]).interleaved)){r.interleaved=null;var i=n.next,a=r.pending;if(null!==a){var o=a.next;a.next=i,n.next=o}r.pending=n}i0=null}return e}function sG(e,t){for(;;){var r=sc;try{if(iq(),am.current=oe,ak){for(var n=ax.memoizedState;null!==n;){var i=n.queue;null!==i&&(i.pending=null),n=n.next}ak=!1}if(ab=0,aw=ay=ax=null,aS=!1,aC=0,so.current=null,null===r||null===r.return){sp=1,sg=t,sc=null;break}e:{var a=e,o=r.return,s=r,l=t;if(t=sd,s.flags|=32768,null!==l&&"object"==typeof l&&"function"==typeof l.then){var u=l,c=s,d=c.tag;if(0==(1&c.mode)&&(0===d||11===d||15===d)){var f=c.alternate;f?(c.updateQueue=f.updateQueue,c.memoizedState=f.memoizedState,c.lanes=f.lanes):(c.updateQueue=null,c.memoizedState=null)}var p=ob(o);if(null!==p){p.flags&=-257,ox(p,o,s,a,t),1&p.mode&&ov(a,u,t),t=p,l=u;var g=t.updateQueue;if(null===g){var m=new Set;m.add(l),t.updateQueue=m}else g.add(l);break e}if(0==(1&t)){ov(a,u,t),sq();break e}l=Error(h(426))}else if(i_&&1&s.mode){var v=ob(o);if(null!==v){0==(65536&v.flags)&&(v.flags|=256),ox(v,o,s,a,t),iD(od(l,s));break e}}a=l=od(l,s),4!==sp&&(sp=2),null===sx?sx=[a]:sx.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t;var b=og(a,l,t);ae(a,b);break e;case 1:s=l;var x=a.type,y=a.stateNode;if(0==(128&a.flags)&&("function"==typeof x.getDerivedStateFromError||null!==y&&"function"==typeof y.componentDidCatch&&(null===sE||!sE.has(y)))){a.flags|=65536,t&=-t,a.lanes|=t;var w=om(a,s,t);ae(a,w);break e}}a=a.return}while(null!==a)}sQ(r)}catch(e){t=e,sc===r&&null!==r&&(sc=r=r.return);continue}break}}function s$(){var e=sa.current;return sa.current=oe,null===e?oe:e}function sq(){(0===sp||3===sp||2===sp)&&(sp=4),null===su||0==(0xfffffff&sm)&&0==(0xfffffff&sv)||sW(su,sd)}function sZ(e,t){var r=sl;sl|=2;var n=s$();for((su!==e||sd!==t)&&(sS=null,sV(e,t));;)try{(function(){for(;null!==sc;)sK(sc)})();break}catch(t){sG(e,t)}if(iq(),sl=r,sa.current=n,null!==sc)throw Error(h(261));return su=null,sd=0,sp}function sK(e){var t=l(e.alternate,e,sh);e.memoizedProps=e.pendingProps,null===t?sQ(e):sc=t,so.current=null}function sQ(e){var t=e;do{var r=t.alternate;if(e=t.return,0==(32768&t.flags)){if(null!==(r=function(e,t,r){var n=t.pendingProps;switch(iC(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oY(t),null;case 1:case 17:return n7(t.type)&&ie(),oY(t),null;case 3:return n=t.stateNode,au(),n2(n6),n2(n4),ag(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(null===e||null===e.child)&&(iR(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0==(256&t.flags)||(t.flags|=1024,null!==iT&&(sj(iT),iT=null))),a(e,t),oY(t),null;case 5:ad(t);var l=as(ao.current);if(r=t.type,null!==e&&null!=t.stateNode)o(e,t,r,n,l),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(h(166));return oY(t),null}if(e=as(ai.current),iR(t)){n=t.stateNode,r=t.type;var u=t.memoizedProps;switch(n[nX]=t,n[nY]=u,e=0!=(1&t.mode),r){case"dialog":nm("cancel",n),nm("close",n);break;case"iframe":case"object":case"embed":nm("load",n);break;case"video":case"audio":for(l=0;l<nh.length;l++)nm(nh[l],n);break;case"source":nm("error",n);break;case"img":case"image":case"link":nm("error",n),nm("load",n);break;case"details":nm("toggle",n);break;case"input":ef(n,u),nm("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!u.multiple},nm("invalid",n);break;case"textarea":ew(n,u),nm("invalid",n)}for(var c in eN(r,u),l=null,u)if(u.hasOwnProperty(c)){var d=u[c];"children"===c?"string"==typeof d?n.textContent!==d&&(!0!==u.suppressHydrationWarning&&nP(n.textContent,d,e),l=["children",d]):"number"==typeof d&&n.textContent!==""+d&&(!0!==u.suppressHydrationWarning&&nP(n.textContent,d,e),l=["children",""+d]):p.hasOwnProperty(c)&&null!=d&&"onScroll"===c&&nm("scroll",n)}switch(r){case"input":eu(n),em(n,u,!0);break;case"textarea":eu(n),eS(n);break;case"select":case"option":break;default:"function"==typeof u.onClick&&(n.onclick=nO)}n=l,t.updateQueue=n,null!==n&&(t.flags|=4)}else{c=9===l.nodeType?l:l.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=eC(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=c.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof n.is?e=c.createElement(r,{is:n.is}):(e=c.createElement(r),"select"===r&&(c=e,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):e=c.createElementNS(e,r),e[nX]=t,e[nY]=n,i(e,t,!1,!1),t.stateNode=e;e:{switch(c=ez(r,n),r){case"dialog":nm("cancel",e),nm("close",e),l=n;break;case"iframe":case"object":case"embed":nm("load",e),l=n;break;case"video":case"audio":for(l=0;l<nh.length;l++)nm(nh[l],e);l=n;break;case"source":nm("error",e),l=n;break;case"img":case"image":case"link":nm("error",e),nm("load",e),l=n;break;case"details":nm("toggle",e),l=n;break;case"input":ef(e,n),l=eh(e,n),nm("invalid",e);break;case"option":default:l=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},l=en({},n,{value:void 0}),nm("invalid",e);break;case"textarea":ew(e,n),l=ey(e,n),nm("invalid",e)}for(u in eN(r,l),d=l)if(d.hasOwnProperty(u)){var f=d[u];"style"===u?eL(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&eT(e,f):"children"===u?"string"==typeof f?("textarea"!==r||""!==f)&&eP(e,f):"number"==typeof f&&eP(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(p.hasOwnProperty(u)?null!=f&&"onScroll"===u&&nm("scroll",e):null!=f&&E(e,u,f,c))}switch(r){case"input":eu(e),em(e,n,!1);break;case"textarea":eu(e),eS(e);break;case"option":null!=n.value&&e.setAttribute("value",""+es(n.value));break;case"select":e.multiple=!!n.multiple,null!=(u=n.value)?ex(e,!!n.multiple,u,!1):null!=n.defaultValue&&ex(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof l.onClick&&(e.onclick=nO)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return oY(t),null;case 6:if(e&&null!=t.stateNode)s(e,t,e.memoizedProps,n);else{if("string"!=typeof n&&null===t.stateNode)throw Error(h(166));if(r=as(ao.current),as(ai.current),iR(t)){if(n=t.stateNode,r=t.memoizedProps,n[nX]=t,(u=n.nodeValue!==r)&&null!==(e=iA))switch(e.tag){case 3:nP(n.nodeValue,r,0!=(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&nP(n.nodeValue,r,0!=(1&e.mode))}u&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[nX]=t,t.stateNode=n}return oY(t),null;case 13:if(n2(ah),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i_&&null!==iE&&0!=(1&t.mode)&&0==(128&t.flags))iN(),iz(),t.flags|=98560,u=!1;else if(u=iR(t),null!==n&&null!==n.dehydrated){if(null===e){if(!u)throw Error(h(318));if(!(u=null!==(u=t.memoizedState)?u.dehydrated:null))throw Error(h(317));u[nX]=t}else iz(),0==(128&t.flags)&&(t.memoizedState=null),t.flags|=4;oY(t),u=!1}else null!==iT&&(sj(iT),iT=null),u=!0;if(!u)return 65536&t.flags?t:null}if(0!=(128&t.flags))return t.lanes=r,t;return(n=null!==n)!=(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!=(1&t.mode)&&(null===e||0!=(1&ah.current)?0===sp&&(sp=3):sq())),null!==t.updateQueue&&(t.flags|=4),oY(t),null;case 4:return au(),a(e,t),null===e&&nx(t.stateNode.containerInfo),oY(t),null;case 10:return iZ(t.type._context),oY(t),null;case 19:if(n2(ah),null===(u=t.memoizedState))return oY(t),null;if(n=0!=(128&t.flags),null===(c=u.rendering)){if(n)oX(u,!1);else{if(0!==sp||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(c=af(e))){for(t.flags|=128,oX(u,!1),null!==(n=c.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)u=r,e=n,u.flags&=0xe00002,null===(c=u.alternate)?(u.childLanes=0,u.lanes=e,u.child=null,u.subtreeFlags=0,u.memoizedProps=null,u.memoizedState=null,u.updateQueue=null,u.dependencies=null,u.stateNode=null):(u.childLanes=c.childLanes,u.lanes=c.lanes,u.child=c.child,u.subtreeFlags=0,u.deletions=null,u.memoizedProps=c.memoizedProps,u.memoizedState=c.memoizedState,u.updateQueue=c.updateQueue,u.type=c.type,e=c.dependencies,u.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return n5(ah,1&ah.current|2),t.child}e=e.sibling}null!==u.tail&&tn()>sk&&(t.flags|=128,n=!0,oX(u,!1),t.lanes=4194304)}}else{if(!n){if(null!==(e=af(c))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),oX(u,!0),null===u.tail&&"hidden"===u.tailMode&&!c.alternate&&!i_)return oY(t),null}else 2*tn()-u.renderingStartTime>sk&&0x40000000!==r&&(t.flags|=128,n=!0,oX(u,!1),t.lanes=4194304)}u.isBackwards?(c.sibling=t.child,t.child=c):(null!==(r=u.last)?r.sibling=c:t.child=c,u.last=c)}if(null!==u.tail)return t=u.tail,u.rendering=t,u.tail=t.sibling,u.renderingStartTime=tn(),t.sibling=null,r=ah.current,n5(ah,n?1&r|2:1&r),t;return oY(t),null;case 22:case 23:return sU(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!=(1&t.mode)?0!=(0x40000000&sh)&&(oY(t),6&t.subtreeFlags&&(t.flags|=8192)):oY(t),null;case 24:case 25:return null}throw Error(h(156,t.tag))}(r,t,sh))){sc=r;return}}else{if(null!==(r=function(e,t){switch(iC(t),t.tag){case 1:return n7(t.type)&&ie(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return au(),n2(n6),n2(n4),ag(),0!=(65536&(e=t.flags))&&0==(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ad(t),null;case 13:if(n2(ah),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(h(340));iz()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return n2(ah),null;case 4:return au(),null;case 10:return iZ(t.type._context),null;case 22:case 23:return sU(),null;default:return null}}(r,t))){r.flags&=32767,sc=r;return}if(null!==e)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{sp=6,sc=null;return}}if(null!==(t=t.sibling)){sc=t;return}sc=t=e}while(null!==t)0===sp&&(sp=5)}function sJ(e,t,r){var n=tC,i=ss.transition;try{ss.transition=null,tC=1,function(e,t,r,n){do s0();while(null!==sT)if(0!=(6&sl))throw Error(h(327));r=e.finishedWork;var i=e.finishedLanes;if(null!==r){if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(h(177));e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(function(e,t){var r=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 n=e.eventTimes;for(e=e.expirationTimes;0<r;){var i=31-th(r),a=1<<i;t[i]=0,n[i]=-1,e[i]=-1,r&=~a}}(e,a),e===su&&(sc=su=null,sd=0),0==(2064&r.subtreeFlags)&&0==(2064&r.flags)||s_||(s_=!0,o=ts,s=function(){return s0(),null},e7(o,s)),a=0!=(15990&r.flags),0!=(15990&r.subtreeFlags)||a){a=ss.transition,ss.transition=null;var o,s,l,u,c,d=tC;tC=1;var f=sl;sl|=4,so.current=null,function(e,t){if(nM=tq,r1(e=r0())){if("selectionStart"in e)var r={start:e.selectionStart,end:e.selectionEnd};else e:{var n=(r=(r=e.ownerDocument)&&r.defaultView||window).getSelection&&r.getSelection();if(n&&0!==n.rangeCount){r=n.anchorNode;var i,a=n.anchorOffset,o=n.focusNode;n=n.focusOffset;try{r.nodeType,o.nodeType}catch(e){r=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(;f!==r||0!==a&&3!==f.nodeType||(l=s+a),f!==o||0!==n&&3!==f.nodeType||(u=s+n),3===f.nodeType&&(s+=f.nodeValue.length),null!==(i=f.firstChild);)p=f,f=i;for(;;){if(f===e)break t;if(p===r&&++c===a&&(l=s),p===o&&++d===n&&(u=s),null!==(i=f.nextSibling))break;p=(f=p).parentNode}f=i}r=-1===l||-1===u?null:{start:l,end:u}}else r=null}r=r||{start:0,end:0}}else r=null;for(nI={focusedElem:e,selectionRange:r},tq=!1,o$=t;null!==o$;)if(e=(t=o$).child,0!=(1028&t.subtreeFlags)&&null!==e)e.return=t,o$=e;else for(;null!==o$;){t=o$;try{var g=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!==g){var m=g.memoizedProps,v=g.memoizedState,b=t.stateNode,x=b.getSnapshotBeforeUpdate(t.elementType===t.type?m:oi(t.type,m),v);b.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(h(163))}}catch(e){s2(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,o$=e;break}o$=t.return}g=oK,oK=!1}(e,r),o7(r,e),function(e){var t=r0(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&function e(t,r){return!!t&&!!r&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(r.ownerDocument.documentElement,r)){if(null!==n&&r1(r)){if(t=n.start,void 0===(e=n.end)&&(e=t),"selectionStart"in r)r.selectionStart=t,r.selectionEnd=Math.min(e,r.value.length);else if((e=(t=r.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=r.textContent.length,a=Math.min(n.start,i);n=void 0===n.end?a:Math.min(n.end,i),!e.extend&&a>n&&(i=n,n=a,a=i),i=rJ(r,a);var o=rJ(r,n);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>n?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=r;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof r.focus&&r.focus(),r=0;r<t.length;r++)(e=t[r]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}(nI),tq=!!nM,nI=nM=null,e.current=r,l=r,u=e,c=i,o$=l,function e(t,r,n){for(var i=0!=(1&t.mode);null!==o$;){var a=o$,o=a.child;if(22===a.tag&&i){var s=null!==a.memoizedState||oU;if(!s){var l=a.alternate,u=null!==l&&null!==l.memoizedState||oV;l=oU;var c=oV;if(oU=s,(oV=u)&&!c)for(o$=a;null!==o$;)u=(s=o$).child,22===s.tag&&null!==s.memoizedState?sn(a):null!==u?(u.return=s,o$=u):sn(a);for(;null!==o;)o$=o,e(o,r,n),o=o.sibling;o$=a,oU=l,oV=c}st(t,r,n)}else 0!=(8772&a.subtreeFlags)&&null!==o?(o.return=a,o$=o):st(t,r,n)}}(l,u,c),tr(),sl=f,tC=d,ss.transition=a}else e.current=r;if(s_&&(s_=!1,sT=e,sP=i),0===(a=e.pendingLanes)&&(sE=null),function(e){if(td&&"function"==typeof td.onCommitFiberRoot)try{td.onCommitFiberRoot(tc,e,void 0,128==(128&e.current.flags))}catch(e){}}(r.stateNode,n),sD(e,tn()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)n((i=t[r]).value,{componentStack:i.stack,digest:i.digest});if(sC)throw sC=!1,e=sA,sA=null,e;0!=(1&sP)&&0!==e.tag&&s0(),0!=(1&(a=e.pendingLanes))?e===sM?sO++:(sO=0,sM=e):sO=0,ic()}}(e,t,r,n)}finally{ss.transition=i,tC=n}return null}function s0(){if(null!==sT){var e=tA(sP),t=ss.transition,r=tC;try{if(ss.transition=null,tC=16>e?16:e,null===sT)var n=!1;else{if(e=sT,sT=null,sP=0,0!=(6&sl))throw Error(h(331));var i=sl;for(sl|=4,o$=e.current;null!==o$;){var a=o$,o=a.child;if(0!=(16&o$.flags)){var s=a.deletions;if(null!==s){for(var l=0;l<s.length;l++){var u=s[l];for(o$=u;null!==o$;){var c=o$;switch(c.tag){case 0:case 11:case 15:oQ(8,c,a)}var d=c.child;if(null!==d)d.return=c,o$=d;else for(;null!==o$;){var f=(c=o$).sibling,p=c.return;if(function e(t){var r=t.alternate;null!==r&&(t.alternate=null,e(r)),t.child=null,t.deletions=null,t.sibling=null,5===t.tag&&null!==(r=t.stateNode)&&(delete r[nX],delete r[nY],delete r[nV],delete r[nG],delete r[n$]),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}(c),c===u){o$=null;break}if(null!==f){f.return=p,o$=f;break}o$=p}}}var g=a.alternate;if(null!==g){var m=g.child;if(null!==m){g.child=null;do{var v=m.sibling;m.sibling=null,m=v}while(null!==m)}}o$=a}}if(0!=(2064&a.subtreeFlags)&&null!==o)o.return=a,o$=o;else for(;null!==o$;){if(a=o$,0!=(2048&a.flags))switch(a.tag){case 0:case 11:case 15:oQ(9,a,a.return)}var b=a.sibling;if(null!==b){b.return=a.return,o$=b;break}o$=a.return}}var x=e.current;for(o$=x;null!==o$;){var y=(o=o$).child;if(0!=(2064&o.subtreeFlags)&&null!==y)y.return=o,o$=y;else for(o=x;null!==o$;){if(s=o$,0!=(2048&s.flags))try{switch(s.tag){case 0:case 11:case 15:oJ(9,s)}}catch(e){s2(s,s.return,e)}if(s===o){o$=null;break}var w=s.sibling;if(null!==w){w.return=s.return,o$=w;break}o$=s.return}}if(sl=i,ic(),td&&"function"==typeof td.onPostCommitFiberRoot)try{td.onPostCommitFiberRoot(tc,e)}catch(e){}n=!0}return n}finally{tC=r,ss.transition=t}}return!1}function s1(e,t,r){t=og(e,t=od(r,t),1),e=i9(e,t,1),t=sR(),null!==e&&(tk(e,1,t),sD(e,t))}function s2(e,t,r){if(3===e.tag)s1(e,e,r);else for(;null!==t;){if(3===t.tag){s1(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof n.componentDidCatch&&(null===sE||!sE.has(n))){e=om(t,e=od(r,e),1),t=i9(t,e,1),e=sR(),null!==t&&(tk(t,1,e),sD(t,e));break}}t=t.return}}function s5(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=sR(),e.pingedLanes|=e.suspendedLanes&r,su===e&&(sd&r)===r&&(4===sp||3===sp&&(0x7c00000&sd)===sd&&500>tn()-sw?sV(e,0):sb|=r),sD(e,t)}function s3(e,t){0===t&&(0==(1&e.mode)?t=1:(t=tm,0==(0x7c00000&(tm<<=1))&&(tm=4194304)));var r=sR();null!==(e=i5(e,t))&&(tk(e,t,r),sD(e,r))}function s4(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),s3(e,r)}function s6(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,i=e.memoizedState;null!==i&&(r=i.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(h(314))}null!==n&&n.delete(t),s3(e,r)}function s8(e,t,r,n){this.tag=e,this.key=r,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=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function s9(e,t,r,n){return new s8(e,t,r,n)}function s7(e){return!(!(e=e.prototype)||!e.isReactComponent)}function le(e,t){var r=e.alternate;return null===r?((r=s9(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.type=e.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=0xe00000&e.flags,r.childLanes=e.childLanes,r.lanes=e.lanes,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function lt(e,t,r,n,i,a){var o=2;if(n=e,"function"==typeof e)s7(e)&&(o=1);else if("string"==typeof e)o=5;else e:switch(e){case O:return lr(r.children,i,a,t);case M:o=8,i|=8;break;case I:return(e=s9(12,r,t,2|i)).elementType=I,e.lanes=a,e;case z:return(e=s9(13,r,t,i)).elementType=z,e.lanes=a,e;case D:return(e=s9(19,r,t,i)).elementType=D,e.lanes=a,e;case W:return ln(r,i,a,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case L:o=10;break e;case R:o=9;break e;case N:o=11;break e;case F:o=14;break e;case B:o=16,n=null;break e}throw Error(h(130,null==e?e:typeof e,""))}return(t=s9(o,r,t,i)).elementType=e,t.type=n,t.lanes=a,t}function lr(e,t,r,n){return(e=s9(7,e,n,t)).lanes=r,e}function ln(e,t,r,n){return(e=s9(22,e,n,t)).elementType=W,e.lanes=r,e.stateNode={isHidden:!1},e}function li(e,t,r){return(e=s9(6,e,null,t)).lanes=r,e}function la(e,t,r){return(t=s9(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function lo(e,t,r,n,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=tw(0),this.expirationTimes=tw(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tw(0),this.identifierPrefix=n,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function ls(e,t,r,n,i,a,o,s,l){return e=new lo(e,t,r,s,l),1===t?(t=1,!0===a&&(t|=8)):t=0,a=s9(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},i4(a),e}function ll(e){if(!e)return n3;e=e._reactInternals;e:{if(e4(e)!==e||1!==e.tag)throw Error(h(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(n7(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t)throw Error(h(171))}if(1===e.tag){var r=e.type;if(n7(r))return ir(e,r,t)}return t}function lu(e,t,r,n,i,a,o,s,l){return(e=ls(r,n,!0,e,i,a,o,s,l)).context=ll(null),r=e.current,(a=i8(n=sR(),i=sN(r))).callback=null!=t?t:null,i9(r,a,i),e.current.lanes=i,tk(e,i,n),sD(e,n),e}function lc(e,t,r,n){var i=t.current,a=sR(),o=sN(i);return r=ll(r),null===t.context?t.context=r:t.pendingContext=r,(t=i8(a,o)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=i9(i,t,o))&&(sz(e,i,o,a),i7(e,i,o)),o}function ld(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function lh(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function lf(e,t){lh(e,t),(e=e.alternate)&&lh(e,t)}l=function(e,t,r){if(null!==e){if(e.memoizedProps!==t.pendingProps||n6.current)ow=!0;else{if(0==(e.lanes&r)&&0==(128&t.flags))return ow=!1,function(e,t,r){switch(t.tag){case 3:oM(t),iz();break;case 5:ac(t);break;case 1:n7(t.type)&&ii(t);break;case 4:al(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,i=t.memoizedProps.value;n5(iU,n._currentValue),n._currentValue=i;break;case 13:if(null!==(n=t.memoizedState)){if(null!==n.dehydrated)return n5(ah,1&ah.current),t.flags|=128,null;if(0!=(r&t.child.childLanes))return oN(e,t,r);return n5(ah,1&ah.current),null!==(e=oH(e,t,r))?e.sibling:null}n5(ah,1&ah.current);break;case 19:if(n=0!=(r&t.childLanes),0!=(128&e.flags)){if(n)return oj(e,t,r);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),n5(ah,ah.current),!n)return null;break;case 22:case 23:return t.lanes=0,oE(e,t,r)}return oH(e,t,r)}(e,t,r);ow=0!=(131072&e.flags)}}else ow=!1,i_&&0!=(1048576&t.flags)&&ik(t,ig,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;oW(e,t),e=t.pendingProps;var i=n9(t,n4.current);iQ(t,r),i=aT(null,t,n,e,i,r);var a=aP();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,n7(n)?(a=!0,ii(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,i4(t),i.updater=oo,t.stateNode=i,i._reactInternals=t,oc(t,n,e,r),t=oO(null,t,n,!0,a,r)):(t.tag=0,i_&&a&&iS(t),ok(null,t,i,r),t=t.child),t;case 16:n=t.elementType;e:{switch(oW(e,t),e=t.pendingProps,n=(i=n._init)(n._payload),t.type=n,i=t.tag=function(e){if("function"==typeof e)return s7(e)?1:0;if(null!=e){if((e=e.$$typeof)===N)return 11;if(e===F)return 14}return 2}(n),e=oi(n,e),i){case 0:t=oT(null,t,n,e,r);break e;case 1:t=oP(null,t,n,e,r);break e;case 11:t=oS(null,t,n,e,r);break e;case 14:t=oC(null,t,n,oi(n.type,e),r);break e}throw Error(h(306,n,""))}return t;case 0:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oi(n,i),oT(e,t,n,i,r);case 1:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oi(n,i),oP(e,t,n,i,r);case 3:e:{if(oM(t),null===e)throw Error(h(387));n=t.pendingProps,i=(a=t.memoizedState).element,i6(e,t),at(t,n,null,r);var o=t.memoizedState;if(n=o.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){i=od(Error(h(423)),t),t=oI(e,t,n,r,i);break e}if(n!==i){i=od(Error(h(424)),t),t=oI(e,t,n,r,i);break e}for(iE=nj(t.stateNode.containerInfo.firstChild),iA=t,i_=!0,iT=null,r=iY(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(iz(),n===i){t=oH(e,t,r);break e}ok(e,t,n,r)}t=t.child}return t;case 5:return ac(t),null===e&&iI(t),n=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,o=i.children,nL(n,i)?o=null:null!==a&&nL(n,a)&&(t.flags|=32),o_(e,t),ok(e,t,o,r),t.child;case 6:return null===e&&iI(t),null;case 13:return oN(e,t,r);case 4:return al(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=iX(t,null,n,r):ok(e,t,n,r),t.child;case 11:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oi(n,i),oS(e,t,n,i,r);case 7:return ok(e,t,t.pendingProps,r),t.child;case 8:case 12:return ok(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,n5(iU,n._currentValue),n._currentValue=o,null!==a){if(rZ(a.value,o)){if(a.children===i.children&&!n6.current){t=oH(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var s=a.dependencies;if(null!==s){o=a.child;for(var l=s.firstContext;null!==l;){if(l.context===n){if(1===a.tag){(l=i8(-1,r&-r)).tag=2;var u=a.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=r,null!==(l=a.alternate)&&(l.lanes|=r),iK(a.return,r,t),s.lanes|=r;break}l=l.next}}else if(10===a.tag)o=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(o=a.return))throw Error(h(341));o.lanes|=r,null!==(s=o.alternate)&&(s.lanes|=r),iK(o,r,t),o=a.sibling}else o=a.child;if(null!==o)o.return=a;else for(o=a;null!==o;){if(o===t){o=null;break}if(null!==(a=o.sibling)){a.return=o.return,o=a;break}o=o.return}a=o}}ok(e,t,i.children,r),t=t.child}return t;case 9:return i=t.type,n=t.pendingProps.children,iQ(t,r),n=n(i=iJ(i)),t.flags|=1,ok(e,t,n,r),t.child;case 14:return i=oi(n=t.type,t.pendingProps),i=oi(n.type,i),oC(e,t,n,i,r);case 15:return oA(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,i=t.pendingProps,i=t.elementType===n?i:oi(n,i),oW(e,t),t.tag=1,n7(n)?(e=!0,ii(t)):e=!1,iQ(t,r),ol(t,n,i),oc(t,n,i,r),oO(null,t,n,!0,e,r);case 19:return oj(e,t,r);case 22:return oE(e,t,r)}throw Error(h(156,t.tag))};var lp="function"==typeof reportError?reportError:function(e){console.error(e)};function lg(e){this._internalRoot=e}function lm(e){this._internalRoot=e}function lv(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function lb(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function lx(){}function ly(e,t,r,n,i){var a=r._reactRootContainer;if(a){var o=a;if("function"==typeof i){var s=i;i=function(){var e=ld(o);s.call(e)}}lc(t,o,e,i)}else o=function(e,t,r,n,i){if(i){if("function"==typeof n){var a=n;n=function(){var e=ld(o);a.call(e)}}var o=lu(t,n,e,0,null,!1,!1,"",lx);return e._reactRootContainer=o,e[nU]=o.current,nx(8===e.nodeType?e.parentNode:e),sY(),o}for(;i=e.lastChild;)e.removeChild(i);if("function"==typeof n){var s=n;n=function(){var e=ld(l);s.call(e)}}var l=ls(e,0,!1,null,null,!1,!1,"",lx);return e._reactRootContainer=l,e[nU]=l.current,nx(8===e.nodeType?e.parentNode:e),sY(function(){lc(t,l,r,n)}),l}(r,t,e,i,n);return ld(o)}lm.prototype.render=lg.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(h(409));lc(e,t,null,null)},lm.prototype.unmount=lg.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;sY(function(){lc(null,e,null,null)}),t[nU]=null}},lm.prototype.unstable_scheduleHydration=function(e){if(e){var t=tP();e={blockedOn:null,target:e,priority:t};for(var r=0;r<tF.length&&0!==t&&t<tF[r].priority;r++);tF.splice(r,0,e),0===r&&tH(e)}},tE=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=tv(t.pendingLanes);0!==r&&(tS(t,1|r),sD(t,tn()),0==(6&sl)&&(sk=tn()+500,ic()))}break;case 13:sY(function(){var t=i5(e,1);null!==t&&sz(t,e,1,sR())}),lf(e,1)}},t_=function(e){if(13===e.tag){var t=i5(e,0x8000000);null!==t&&sz(t,e,0x8000000,sR()),lf(e,0x8000000)}},tT=function(e){if(13===e.tag){var t=sN(e),r=i5(e,t);null!==r&&sz(r,e,t,sR()),lf(e,t)}},tP=function(){return tC},tO=function(e,t){var r=tC;try{return tC=e,t()}finally{tC=r}},eB=function(e,t,r){switch(t){case"input":if(eg(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var i=nQ(n);if(!i)throw Error(h(90));ec(n),eg(n,i)}}}break;case"textarea":ek(e,r);break;case"select":null!=(t=r.value)&&ex(e,!!r.multiple,t,!1)}},eU=sX,eV=sY;var lw={findFiberByHostInstance:nq,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},lk={bundleType:lw.bundleType,version:lw.version,rendererPackageName:lw.rendererPackageName,rendererConfig:lw.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:_.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=e9(e))?null:e.stateNode},findFiberByHostInstance:lw.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var lS=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!lS.isDisabled&&lS.supportsFiber)try{tc=lS.inject(lk),td=lS}catch(e){}}Y={usingClientEntryPoint:!1,Events:[nZ,nK,nQ,eX,eY,sX]},U=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!lv(t))throw Error(h(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:P,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},V=function(e,t){if(!lv(e))throw Error(h(299));var r=!1,n="",i=lp;return null!=t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=ls(e,1,!1,null,null,r,!1,n,i),e[nU]=t.current,nx(8===e.nodeType?e.parentNode:e),new lg(t)},G=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(h(188));throw Error(h(268,e=Object.keys(e).join(",")))}return e=null===(e=e9(t))?null:e.stateNode},$=function(e){return sY(e)},q=function(e,t,r){if(!lb(t))throw Error(h(200));return ly(null,e,t,!0,r)},Z=function(e,t,r){if(!lv(e))throw Error(h(405));var n=null!=r&&r.hydratedSources||null,i=!1,a="",o=lp;if(null!=r&&(!0===r.unstable_strictMode&&(i=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(o=r.onRecoverableError)),t=lu(t,null,e,1,null!=r?r:null,i,!1,a,o),e[nU]=t.current,nx(e),n)for(e=0;e<n.length;e++)i=(i=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,i]:t.mutableSourceEagerHydrationData.push(r,i);return new lm(t)},K=function(e,t,r){if(!lb(t))throw Error(h(200));return ly(null,e,t,!1,r)},Q=function(e){if(!lb(e))throw Error(h(40));return!!e._reactRootContainer&&(sY(function(){ly(null,null,e,!1,function(){e._reactRootContainer=null,e[nU]=null})}),!0)},J=sX,ee=function(e,t,r,n){if(!lb(r))throw Error(h(200));if(null==e||void 0===e._reactInternals)throw Error(h(38));return ly(e,t,r,!1,n)},et="18.3.1-next-f1338f8080-20240426"}),c("jN4Ph",function(e,t){e.exports=u("2ZUhe")}),c("2ZUhe",function(e,t){function n(e,t){var r=e.length;for(e.push(t);0<r;){var n=r-1>>>1,i=e[n];if(0<o(i,t))e[n]=t,e[r]=i,r=n;else break}}function i(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;for(var n=0,i=e.length,a=i>>>1;n<a;){var s=2*(n+1)-1,l=e[s],u=s+1,c=e[u];if(0>o(l,r))u<i&&0>o(c,l)?(e[n]=c,e[u]=r,n=u):(e[n]=l,e[s]=r,n=s);else if(u<i&&0>o(c,r))e[n]=c,e[u]=r,n=u;else break}}return t}function o(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if(r(e.exports,"unstable_now",()=>s,e=>s=e),r(e.exports,"unstable_IdlePriority",()=>l,e=>l=e),r(e.exports,"unstable_ImmediatePriority",()=>u,e=>u=e),r(e.exports,"unstable_LowPriority",()=>c,e=>c=e),r(e.exports,"unstable_NormalPriority",()=>d,e=>d=e),r(e.exports,"unstable_Profiling",()=>h,e=>h=e),r(e.exports,"unstable_UserBlockingPriority",()=>f,e=>f=e),r(e.exports,"unstable_cancelCallback",()=>p,e=>p=e),r(e.exports,"unstable_continueExecution",()=>g,e=>g=e),r(e.exports,"unstable_forceFrameRate",()=>m,e=>m=e),r(e.exports,"unstable_getCurrentPriorityLevel",()=>v,e=>v=e),r(e.exports,"unstable_getFirstCallbackNode",()=>b,e=>b=e),r(e.exports,"unstable_next",()=>x,e=>x=e),r(e.exports,"unstable_pauseExecution",()=>y,e=>y=e),r(e.exports,"unstable_requestPaint",()=>w,e=>w=e),r(e.exports,"unstable_runWithPriority",()=>k,e=>k=e),r(e.exports,"unstable_scheduleCallback",()=>S,e=>S=e),r(e.exports,"unstable_shouldYield",()=>C,e=>C=e),r(e.exports,"unstable_wrapCallback",()=>A,e=>A=e),"object"==typeof performance&&"function"==typeof performance.now){var s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E,_=performance;s=function(){return _.now()}}else{var T=Date,P=T.now();s=function(){return T.now()-P}}var O=[],M=[],I=1,L=null,R=3,N=!1,z=!1,D=!1,F="function"==typeof setTimeout?setTimeout:null,B="function"==typeof clearTimeout?clearTimeout:null,W="undefined"!=typeof setImmediate?setImmediate:null;function H(e){for(var t=i(M);null!==t;){if(null===t.callback)a(M);else if(t.startTime<=e)a(M),t.sortIndex=t.expirationTime,n(O,t);else break;t=i(M)}}function X(e){if(D=!1,H(e),!z){if(null!==i(O))z=!0,ee(Y);else{var t=i(M);null!==t&&et(X,t.startTime-e)}}}function Y(e,t){z=!1,D&&(D=!1,B(G),G=-1),N=!0;var r=R;try{for(H(t),L=i(O);null!==L&&(!(L.expirationTime>t)||e&&!Z());){var n=L.callback;if("function"==typeof n){L.callback=null,R=L.priorityLevel;var o=n(L.expirationTime<=t);t=s(),"function"==typeof o?L.callback=o:L===i(O)&&a(O),H(t)}else a(O);L=i(O)}if(null!==L)var l=!0;else{var u=i(M);null!==u&&et(X,u.startTime-t),l=!1}return l}finally{L=null,R=r,N=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var U=!1,V=null,G=-1,$=5,q=-1;function Z(){return!(s()-q<$)}function K(){if(null!==V){var e=s();q=e;var t=!0;try{t=V(!0,e)}finally{t?E():(U=!1,V=null)}}else U=!1}if("function"==typeof W)E=function(){W(K)};else if("undefined"!=typeof MessageChannel){var Q=new MessageChannel,J=Q.port2;Q.port1.onmessage=K,E=function(){J.postMessage(null)}}else E=function(){F(K,0)};function ee(e){V=e,U||(U=!0,E())}function et(e,t){G=F(function(){e(s())},t)}l=5,u=1,c=4,d=3,h=null,f=2,p=function(e){e.callback=null},g=function(){z||N||(z=!0,ee(Y))},m=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"):$=0<e?Math.floor(1e3/e):5},v=function(){return R},b=function(){return i(O)},x=function(e){switch(R){case 1:case 2:case 3:var t=3;break;default:t=R}var r=R;R=t;try{return e()}finally{R=r}},y=function(){},w=function(){},k=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=R;R=e;try{return t()}finally{R=r}},S=function(e,t,r){var a=s();switch(r="object"==typeof r&&null!==r&&"number"==typeof(r=r.delay)&&0<r?a+r:a,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=0x3fffffff;break;case 4:o=1e4;break;default:o=5e3}return o=r+o,e={id:I++,callback:t,priorityLevel:e,startTime:r,expirationTime:o,sortIndex:-1},r>a?(e.sortIndex=r,n(M,e),null===i(O)&&e===i(M)&&(D?(B(G),G=-1):D=!0,et(X,r-a))):(e.sortIndex=o,n(O,e),z||N||(z=!0,ee(Y))),e},C=Z,A=function(e){var t=R;return function(){var r=R;R=t;try{return e.apply(this,arguments)}finally{R=r}}}}),c("l2OiA",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.averageTestCaseResult=e.exports.averageHighCpuUsage=e.exports.averageIterations=void 0,e.exports.average=o;var r=u("eBeAh"),n=u("f1q41"),i=u("aGtkM");let a=e=>Array(e).fill(null).map((e,t)=>t);function o(e){if(0===e.length)return;let t=0;for(let r of e){if(void 0===r)return;t+=r}return t/e.length}let s=e=>{let t=e.reduce((e,t)=>(Object.keys(t).forEach(r=>{e[r]=e[r]||0,e[r]+=t[r]}),e),{});return(0,n.mapValues)(t,t=>t/e.length)},l=e=>{let t=e.flatMap(e=>{var t;return null!==(t=e.tpn)&&void 0!==t?t:[]});return Object.assign(Object.assign({cpu:{perCore:{},perName:s(e.map(e=>e.cpu.perName))},ram:o(e.map(e=>e.ram)),fps:o(e.map(e=>e.fps))},t.length>0?{tpn:t}:{}),{time:r.POLLING_INTERVAL})};e.exports.averageIterations=e=>({measures:a(e.length>0?Math.min(...e.map(e=>e.measures.length)):0).map(t=>l(e.map(e=>e.measures[t]))),time:o(e.map(e=>e.time)),status:"SUCCESS"}),e.exports.averageHighCpuUsage=(e,t=90)=>s(e.map(e=>(0,i.getHighCpuUsage)(e.measures,t))),e.exports.averageTestCaseResult=t=>{let r=(0,e.exports.averageIterations)(t.iterations);return Object.assign(Object.assign({},t),{average:r,averageHighCpuUsage:(0,e.exports.averageHighCpuUsage)(t.iterations)})}}),c("eBeAh",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ThreadNames=e.exports.POLLING_INTERVAL=void 0,e.exports.POLLING_INTERVAL=500,e.exports.ThreadNames={ANDROID:{UI:"UI Thread"},IOS:{UI:"Main Thread"},FLUTTER:{UI:"1.ui",RASTER:"1.raster",IO:"1.io"},RN:{JS_ANDROID:"mqt_js",JS_BRIDGELESS_ANDROID:"mqt_v_js",OLD_BRIDGE:"mqt_native_modu",JS_IOS:"com.facebook.react.JavaScript"}}}),c("f1q41",function(e,t){(function(){var r,i="Expected a function",a="__lodash_hash_undefined__",o="__lodash_placeholder__",s=1/0,l=0/0,u=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",d="[object Array]",h="[object Boolean]",f="[object Date]",p="[object Error]",g="[object Function]",m="[object GeneratorFunction]",v="[object Map]",b="[object Number]",x="[object Object]",y="[object Promise]",w="[object RegExp]",k="[object Set]",S="[object String]",C="[object Symbol]",A="[object WeakMap]",E="[object ArrayBuffer]",_="[object DataView]",T="[object Float32Array]",P="[object Float64Array]",O="[object Int8Array]",M="[object Int16Array]",I="[object Int32Array]",L="[object Uint8Array]",R="[object Uint8ClampedArray]",N="[object Uint16Array]",z="[object Uint32Array]",D=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,B=/(__e\(.*?\)|\b__t\)) \+\n'';/g,W=/&(?:amp|lt|gt|quot|#39);/g,H=/[&<>"']/g,X=RegExp(W.source),Y=RegExp(H.source),U=/<%-([\s\S]+?)%>/g,V=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,Z=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,K=/[\\^$.*+?()[\]{}|]/g,Q=RegExp(K.source),J=/^\s+/,ee=/\s/,et=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,er=/\{\n\/\* \[wrapped with (.+)\] \*/,en=/,? & /,ei=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ea=/[()=,{}\[\]\/\s]/,eo=/\\(\\)?/g,es=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,el=/\w*$/,eu=/^[-+]0x[0-9a-f]+$/i,ec=/^0b[01]+$/i,ed=/^\[object .+?Constructor\]$/,eh=/^0o[0-7]+$/i,ef=/^(?:0|[1-9]\d*)$/,ep=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eg=/($^)/,em=/['\n\r\u2028\u2029\\]/g,ev="\ud800-\udfff",eb="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",ex="\\u2700-\\u27bf",ey="a-z\\xdf-\\xf6\\xf8-\\xff",ew="A-Z\\xc0-\\xd6\\xd8-\\xde",ek="\\ufe0e\\ufe0f",eS="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",eC="['’]",eA="["+eS+"]",eE="["+eb+"]",e_="["+ey+"]",eT="[^"+ev+eS+"\\d+"+ex+ey+ew+"]",eP="\ud83c[\udffb-\udfff]",eO="[^"+ev+"]",eM="(?:\ud83c[\udde6-\uddff]){2}",eI="[\ud800-\udbff][\udc00-\udfff]",eL="["+ew+"]",eR="\\u200d",eN="(?:"+e_+"|"+eT+")",ez="(?:"+eL+"|"+eT+")",eD="(?:"+eC+"(?:d|ll|m|re|s|t|ve))?",eF="(?:"+eC+"(?:D|LL|M|RE|S|T|VE))?",eB="(?:"+eE+"|"+eP+")?",ej="["+ek+"]?",eW="(?:"+eR+"(?:"+[eO,eM,eI].join("|")+")"+ej+eB+")*",eH=ej+eB+eW,eX="(?:"+["["+ex+"]",eM,eI].join("|")+")"+eH,eY="(?:"+[eO+eE+"?",eE,eM,eI,"["+ev+"]"].join("|")+")",eU=RegExp(eC,"g"),eV=RegExp(eE,"g"),eG=RegExp(eP+"(?="+eP+")|"+eY+eH,"g"),e$=RegExp([eL+"?"+e_+"+"+eD+"(?="+[eA,eL,"$"].join("|")+")",ez+"+"+eF+"(?="+[eA,eL+eN,"$"].join("|")+")",eL+"?"+eN+"+"+eD,eL+"+"+eF,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",eX].join("|"),"g"),eq=RegExp("["+eR+ev+eb+ek+"]"),eZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eK=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],eQ=-1,eJ={};eJ[T]=eJ[P]=eJ[O]=eJ[M]=eJ[I]=eJ[L]=eJ[R]=eJ[N]=eJ[z]=!0,eJ[c]=eJ[d]=eJ[E]=eJ[h]=eJ[_]=eJ[f]=eJ[p]=eJ[g]=eJ[v]=eJ[b]=eJ[x]=eJ[w]=eJ[k]=eJ[S]=eJ[A]=!1;var e0={};e0[c]=e0[d]=e0[E]=e0[_]=e0[h]=e0[f]=e0[T]=e0[P]=e0[O]=e0[M]=e0[I]=e0[v]=e0[b]=e0[x]=e0[w]=e0[k]=e0[S]=e0[C]=e0[L]=e0[R]=e0[N]=e0[z]=!0,e0[p]=e0[g]=e0[A]=!1;var e1={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},e2=parseFloat,e5=parseInt,e3="object"==typeof n&&n&&n.Object===Object&&n,e4="object"==typeof self&&self&&self.Object===Object&&self,e6=e3||e4||Function("return this")(),e8=t&&!t.nodeType&&t,e9=e8&&e&&!e.nodeType&&e,e7=e9&&e9.exports===e8,te=e7&&e3.process,tt=function(){try{var e=e9&&e9.require&&e9.require("util").types;if(e)return e;return te&&te.binding&&te.binding("util")}catch(e){}}(),tr=tt&&tt.isArrayBuffer,tn=tt&&tt.isDate,ti=tt&&tt.isMap,ta=tt&&tt.isRegExp,to=tt&&tt.isSet,ts=tt&&tt.isTypedArray;function tl(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function tu(e,t,r,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var o=e[i];t(n,o,r(o),e)}return n}function tc(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function td(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}function th(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}function tf(e,t){return!!(null==e?0:e.length)&&tS(e,t,0)>-1}function tp(e,t,r){for(var n=-1,i=null==e?0:e.length;++n<i;)if(r(t,e[n]))return!0;return!1}function tg(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}function tm(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function tv(e,t,r,n){var i=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++i]);++i<a;)r=t(r,e[i],i,e);return r}function tb(e,t,r,n){var i=null==e?0:e.length;for(n&&i&&(r=e[--i]);i--;)r=t(r,e[i],i,e);return r}function tx(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var ty=t_("length");function tw(e,t,r){var n;return r(e,function(e,r,i){if(t(e,r,i))return n=r,!1}),n}function tk(e,t,r,n){for(var i=e.length,a=r+(n?1:-1);n?a--:++a<i;)if(t(e[a],a,e))return a;return -1}function tS(e,t,r){return t==t?function(e,t,r){for(var n=r-1,i=e.length;++n<i;)if(e[n]===t)return n;return -1}(e,t,r):tk(e,tA,r)}function tC(e,t,r,n){for(var i=r-1,a=e.length;++i<a;)if(n(e[i],t))return i;return -1}function tA(e){return e!=e}function tE(e,t){var r=null==e?0:e.length;return r?tO(e,t)/r:l}function t_(e){return function(t){return null==t?r:t[e]}}function tT(e){return function(t){return null==e?r:e[t]}}function tP(e,t,r,n,i){return i(e,function(e,i,a){r=n?(n=!1,e):t(r,e,i,a)}),r}function tO(e,t){for(var n,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==r&&(n=n===r?o:n+o)}return n}function tM(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function tI(e){return e?e.slice(0,t$(e)+1).replace(J,""):e}function tL(e){return function(t){return e(t)}}function tR(e,t){return tg(t,function(t){return e[t]})}function tN(e,t){return e.has(t)}function tz(e,t){for(var r=-1,n=e.length;++r<n&&tS(t,e[r],0)>-1;);return r}function tD(e,t){for(var r=e.length;r--&&tS(t,e[r],0)>-1;);return r}var tF=tT({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tB=tT({"&":"&","<":"<",">":">",'"':""","'":"'"});function tj(e){return"\\"+e1[e]}function tW(e){return eq.test(e)}function tH(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function tX(e,t){return function(r){return e(t(r))}}function tY(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var s=e[r];(s===t||s===o)&&(e[r]=o,a[i++]=r)}return a}function tU(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}function tV(e){return tW(e)?function(e){for(var t=eG.lastIndex=0;eG.test(e);)++t;return t}(e):ty(e)}function tG(e){return tW(e)?e.match(eG)||[]:e.split("")}function t$(e){for(var t=e.length;t--&&ee.test(e.charAt(t)););return t}var tq=tT({"&":"&","<":"<",">":">",""":'"',"'":"'"}),tZ=function e(t){var n,ee,ev,eb,ex=(t=null==t?e6:tZ.defaults(e6.Object(),t,tZ.pick(e6,eK))).Array,ey=t.Date,ew=t.Error,ek=t.Function,eS=t.Math,eC=t.Object,eA=t.RegExp,eE=t.String,e_=t.TypeError,eT=ex.prototype,eP=ek.prototype,eO=eC.prototype,eM=t["__core-js_shared__"],eI=eP.toString,eL=eO.hasOwnProperty,eR=0,eN=(n=/[^.]+$/.exec(eM&&eM.keys&&eM.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",ez=eO.toString,eD=eI.call(eC),eF=e6._,eB=eA("^"+eI.call(eL).replace(K,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ej=e7?t.Buffer:r,eW=t.Symbol,eH=t.Uint8Array,eX=ej?ej.allocUnsafe:r,eY=tX(eC.getPrototypeOf,eC),eG=eC.create,eq=eO.propertyIsEnumerable,e1=eT.splice,e3=eW?eW.isConcatSpreadable:r,e4=eW?eW.iterator:r,e8=eW?eW.toStringTag:r,e9=function(){try{var e=ig(eC,"defineProperty");return e({},"",{}),e}catch(e){}}(),te=t.clearTimeout!==e6.clearTimeout&&t.clearTimeout,tt=ey&&ey.now!==e6.Date.now&&ey.now,ty=t.setTimeout!==e6.setTimeout&&t.setTimeout,tT=eS.ceil,tK=eS.floor,tQ=eC.getOwnPropertySymbols,tJ=ej?ej.isBuffer:r,t0=t.isFinite,t1=eT.join,t2=tX(eC.keys,eC),t5=eS.max,t3=eS.min,t4=ey.now,t6=t.parseInt,t8=eS.random,t9=eT.reverse,t7=ig(t,"DataView"),re=ig(t,"Map"),rt=ig(t,"Promise"),rr=ig(t,"Set"),rn=ig(t,"WeakMap"),ri=ig(eC,"create"),ra=rn&&new rn,ro={},rs=ij(t7),rl=ij(re),ru=ij(rt),rc=ij(rr),rd=ij(rn),rh=eW?eW.prototype:r,rf=rh?rh.valueOf:r,rp=rh?rh.toString:r;function rg(e){if(aG(e)&&!az(e)&&!(e instanceof rx)){if(e instanceof rb)return e;if(eL.call(e,"__wrapped__"))return iW(e)}return new rb(e)}var rm=function(){function e(){}return function(t){if(!aV(t))return{};if(eG)return eG(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function rv(){}function rb(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function rx(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function ry(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rw(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rk(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function rS(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new rk;++t<r;)this.add(e[t])}function rC(e){var t=this.__data__=new rw(e);this.size=t.size}function rA(e,t){var r=az(e),n=!r&&aN(e),i=!r&&!n&&aj(e),a=!r&&!n&&!i&&a1(e),o=r||n||i||a,s=o?tM(e.length,eE):[],l=s.length;for(var u in e)(t||eL.call(e,u))&&!(o&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||ik(u,l)))&&s.push(u);return s}function rE(e){var t=e.length;return t?e[nc(0,t-1)]:r}function r_(e,t,n){(n===r||aI(e[t],n))&&(n!==r||t in e)||rI(e,t,n)}function rT(e,t,n){var i=e[t];eL.call(e,t)&&aI(i,n)&&(n!==r||t in e)||rI(e,t,n)}function rP(e,t){for(var r=e.length;r--;)if(aI(e[r][0],t))return r;return -1}function rO(e,t,r,n){return rB(e,function(e,i,a){t(n,e,r(e),a)}),n}function rM(e,t){return e&&nH(t,of(t),e)}function rI(e,t,r){"__proto__"==t&&e9?e9(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function rL(e,t){for(var n=-1,i=t.length,a=ex(i),o=null==e;++n<i;)a[n]=o?r:ol(e,t[n]);return a}function rR(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function rN(e,t,n,i,a,o){var s,l=1&t,u=2&t,d=4&t;if(n&&(s=a?n(e,i,a,o):n(e)),s!==r)return s;if(!aV(e))return e;var p=az(e);if(p){if(y=e.length,A=new e.constructor(y),y&&"string"==typeof e[0]&&eL.call(e,"index")&&(A.index=e.index,A.input=e.input),s=A,!l)return nW(e,s)}else{var y,A,D,F,B,W=ib(e),H=W==g||W==m;if(aj(e))return nN(e,l);if(W==x||W==c||H&&!a){if(s=u||H?{}:iy(e),!l)return u?(D=(B=s)&&nH(e,op(e),B),nH(e,iv(e),D)):(F=rM(s,e),nH(e,im(e),F))}else{if(!e0[W])return a?e:{};s=function(e,t,r){var n,i,a=e.constructor;switch(t){case E:return nz(e);case h:case f:return new a(+e);case _:return n=r?nz(e.buffer):e.buffer,new e.constructor(n,e.byteOffset,e.byteLength);case T:case P:case O:case M:case I:case L:case R:case N:case z:return nD(e,r);case v:return new a;case b:case S:return new a(e);case w:return(i=new e.constructor(e.source,el.exec(e))).lastIndex=e.lastIndex,i;case k:return new a;case C:return rf?eC(rf.call(e)):{}}}(e,W,l)}}o||(o=new rC);var X=o.get(e);if(X)return X;o.set(e,s),aQ(e)?e.forEach(function(r){s.add(rN(r,t,n,r,e,o))}):a$(e)&&e.forEach(function(r,i){s.set(i,rN(r,t,n,i,e,o))});var Y=d?u?is:io:u?op:of,U=p?r:Y(e);return tc(U||e,function(r,i){U&&(r=e[i=r]),rT(s,i,rN(r,t,n,i,e,o))}),s}function rz(e,t,n){var i=n.length;if(null==e)return!i;for(e=eC(e);i--;){var a=n[i],o=t[a],s=e[a];if(s===r&&!(a in e)||!o(s))return!1}return!0}function rD(e,t,n){if("function"!=typeof e)throw new e_(i);return iL(function(){e.apply(r,n)},t)}function rF(e,t,r,n){var i=-1,a=tf,o=!0,s=e.length,l=[],u=t.length;if(!s)return l;r&&(t=tg(t,tL(r))),n?(a=tp,o=!1):t.length>=200&&(a=tN,o=!1,t=new rS(t));r:for(;++i<s;){var c=e[i],d=null==r?c:r(c);if(c=n||0!==c?c:0,o&&d==d){for(var h=u;h--;)if(t[h]===d)continue r;l.push(c)}else a(t,d,n)||l.push(c)}return l}rg.templateSettings={escape:U,evaluate:V,interpolate:G,variable:"",imports:{_:rg}},rg.prototype=rv.prototype,rg.prototype.constructor=rg,rb.prototype=rm(rv.prototype),rb.prototype.constructor=rb,rx.prototype=rm(rv.prototype),rx.prototype.constructor=rx,ry.prototype.clear=function(){this.__data__=ri?ri(null):{},this.size=0},ry.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ry.prototype.get=function(e){var t=this.__data__;if(ri){var n=t[e];return n===a?r:n}return eL.call(t,e)?t[e]:r},ry.prototype.has=function(e){var t=this.__data__;return ri?t[e]!==r:eL.call(t,e)},ry.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=ri&&t===r?a:t,this},rw.prototype.clear=function(){this.__data__=[],this.size=0},rw.prototype.delete=function(e){var t=this.__data__,r=rP(t,e);return!(r<0)&&(r==t.length-1?t.pop():e1.call(t,r,1),--this.size,!0)},rw.prototype.get=function(e){var t=this.__data__,n=rP(t,e);return n<0?r:t[n][1]},rw.prototype.has=function(e){return rP(this.__data__,e)>-1},rw.prototype.set=function(e,t){var r=this.__data__,n=rP(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},rk.prototype.clear=function(){this.size=0,this.__data__={hash:new ry,map:new(re||rw),string:new ry}},rk.prototype.delete=function(e){var t=ih(this,e).delete(e);return this.size-=t?1:0,t},rk.prototype.get=function(e){return ih(this,e).get(e)},rk.prototype.has=function(e){return ih(this,e).has(e)},rk.prototype.set=function(e,t){var r=ih(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},rS.prototype.add=rS.prototype.push=function(e){return this.__data__.set(e,a),this},rS.prototype.has=function(e){return this.__data__.has(e)},rC.prototype.clear=function(){this.__data__=new rw,this.size=0},rC.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},rC.prototype.get=function(e){return this.__data__.get(e)},rC.prototype.has=function(e){return this.__data__.has(e)},rC.prototype.set=function(e,t){var r=this.__data__;if(r instanceof rw){var n=r.__data__;if(!re||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new rk(n)}return r.set(e,t),this.size=r.size,this};var rB=nU(rG),rj=nU(r$,!0);function rW(e,t){var r=!0;return rB(e,function(e,n,i){return r=!!t(e,n,i)}),r}function rH(e,t,n){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(null!=s&&(l===r?s==s&&!a0(s):n(s,l)))var l=s,u=o}return u}function rX(e,t){var r=[];return rB(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}function rY(e,t,r,n,i){var a=-1,o=e.length;for(r||(r=iw),i||(i=[]);++a<o;){var s=e[a];t>0&&r(s)?t>1?rY(s,t-1,r,n,i):tm(i,s):n||(i[i.length]=s)}return i}var rU=nV(),rV=nV(!0);function rG(e,t){return e&&rU(e,t,of)}function r$(e,t){return e&&rV(e,t,of)}function rq(e,t){return th(t,function(t){return aX(e[t])})}function rZ(e,t){t=nI(t,e);for(var n=0,i=t.length;null!=e&&n<i;)e=e[iB(t[n++])];return n&&n==i?e:r}function rK(e,t,r){var n=t(e);return az(e)?n:tm(n,r(e))}function rQ(e){return null==e?e===r?"[object Undefined]":"[object Null]":e8&&e8 in eC(e)?function(e){var t=eL.call(e,e8),n=e[e8];try{e[e8]=r;var i=!0}catch(e){}var a=ez.call(e);return i&&(t?e[e8]=n:delete e[e8]),a}(e):ez.call(e)}function rJ(e,t){return e>t}function r0(e,t){return null!=e&&eL.call(e,t)}function r1(e,t){return null!=e&&t in eC(e)}function r2(e,t,n){for(var i=n?tp:tf,a=e[0].length,o=e.length,s=o,l=ex(o),u=1/0,c=[];s--;){var d=e[s];s&&t&&(d=tg(d,tL(t))),u=t3(d.length,u),l[s]=!n&&(t||a>=120&&d.length>=120)?new rS(s&&d):r}d=e[0];var h=-1,f=l[0];r:for(;++h<a&&c.length<u;){var p=d[h],g=t?t(p):p;if(p=n||0!==p?p:0,!(f?tN(f,g):i(c,g,n))){for(s=o;--s;){var m=l[s];if(!(m?tN(m,g):i(e[s],g,n)))continue r}f&&f.push(g),c.push(p)}}return c}function r5(e,t,n){t=nI(t,e);var i=null==(e=iO(e,t))?e:e[iB(iQ(t))];return null==i?r:tl(i,e,n)}function r3(e){return aG(e)&&rQ(e)==c}function r4(e,t,n,i,a){return e===t||(null!=e&&null!=t&&(aG(e)||aG(t))?function(e,t,n,i,a,o){var s=az(e),l=az(t),u=s?d:ib(e),g=l?d:ib(t);u=u==c?x:u,g=g==c?x:g;var m=u==x,y=g==x,A=u==g;if(A&&aj(e)){if(!aj(t))return!1;s=!0,m=!1}if(A&&!m)return o||(o=new rC),s||a1(e)?ii(e,t,n,i,a,o):function(e,t,r,n,i,a,o){switch(r){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case E:if(e.byteLength!=t.byteLength||!a(new eH(e),new eH(t)))break;return!0;case h:case f:case b:return aI(+e,+t);case p:return e.name==t.name&&e.message==t.message;case w:case S:return e==t+"";case v:var s=tH;case k:var l=1&n;if(s||(s=tU),e.size!=t.size&&!l)break;var u=o.get(e);if(u)return u==t;n|=2,o.set(e,t);var c=ii(s(e),s(t),n,i,a,o);return o.delete(e),c;case C:if(rf)return rf.call(e)==rf.call(t)}return!1}(e,t,u,n,i,a,o);if(!(1&n)){var T=m&&eL.call(e,"__wrapped__"),P=y&&eL.call(t,"__wrapped__");if(T||P){var O=T?e.value():e,M=P?t.value():t;return o||(o=new rC),a(O,M,n,i,o)}}return!!A&&(o||(o=new rC),function(e,t,n,i,a,o){var s=1&n,l=io(e),u=l.length;if(u!=io(t).length&&!s)return!1;for(var c=u;c--;){var d=l[c];if(!(s?d in t:eL.call(t,d)))return!1}var h=o.get(e),f=o.get(t);if(h&&f)return h==t&&f==e;var p=!0;o.set(e,t),o.set(t,e);for(var g=s;++c<u;){var m=e[d=l[c]],v=t[d];if(i)var b=s?i(v,m,d,t,e,o):i(m,v,d,e,t,o);if(!(b===r?m===v||a(m,v,n,i,o):b)){p=!1;break}g||(g="constructor"==d)}if(p&&!g){var x=e.constructor,y=t.constructor;x!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof x&&x instanceof x&&"function"==typeof y&&y instanceof y)&&(p=!1)}return o.delete(e),o.delete(t),p}(e,t,n,i,a,o))}(e,t,n,i,r4,a):e!=e&&t!=t)}function r6(e,t,n,i){var a=n.length,o=a,s=!i;if(null==e)return!o;for(e=eC(e);a--;){var l=n[a];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<o;){var u=(l=n[a])[0],c=e[u],d=l[1];if(s&&l[2]){if(c===r&&!(u in e))return!1}else{var h=new rC;if(i)var f=i(c,d,u,e,t,h);if(!(f===r?r4(d,c,3,i,h):f))return!1}}return!0}function r8(e){return!(!aV(e)||eN&&eN in e)&&(aX(e)?eB:ed).test(ij(e))}function r9(e){return"function"==typeof e?e:null==e?oB:"object"==typeof e?az(e)?nn(e[0],e[1]):nr(e):o$(e)}function r7(e){if(!i_(e))return t2(e);var t=[];for(var r in eC(e))eL.call(e,r)&&"constructor"!=r&&t.push(r);return t}function ne(e,t){return e<t}function nt(e,t){var r=-1,n=aF(e)?ex(e.length):[];return rB(e,function(e,i,a){n[++r]=t(e,i,a)}),n}function nr(e){var t=ip(e);return 1==t.length&&t[0][2]?iT(t[0][0],t[0][1]):function(r){return r===e||r6(r,e,t)}}function nn(e,t){var n;return iC(e)&&(n=t)==n&&!aV(n)?iT(iB(e),t):function(n){var i=ol(n,e);return i===r&&i===t?ou(n,e):r4(t,i,3)}}function ni(e,t,n,i,a){e!==t&&rU(t,function(o,s){if(a||(a=new rC),aV(o))(function(e,t,n,i,a,o,s){var l=iM(e,n),u=iM(t,n),c=s.get(u);if(c){r_(e,n,c);return}var d=o?o(l,u,n+"",e,t,s):r,h=d===r;if(h){var f=az(u),p=!f&&aj(u),g=!f&&!p&&a1(u);d=u,f||p||g?az(l)?d=l:aB(l)?d=nW(l):p?(h=!1,d=nN(u,!0)):g?(h=!1,d=nD(u,!0)):d=[]:aZ(u)||aN(u)?(d=l,aN(l)?d=a7(l):(!aV(l)||aX(l))&&(d=iy(u))):h=!1}h&&(s.set(u,d),a(d,u,i,o,s),s.delete(u)),r_(e,n,d)})(e,t,s,n,ni,i,a);else{var l=i?i(iM(e,s),o,s+"",e,t,a):r;l===r&&(l=o),r_(e,s,l)}},op)}function na(e,t){var n=e.length;if(n)return ik(t+=t<0?n:0,n)?e[t]:r}function no(e,t,r){t=t.length?tg(t,function(e){return az(e)?function(t){return rZ(t,1===e.length?e[0]:e)}:e}):[oB];var n=-1;return t=tg(t,tL(id())),function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(nt(e,function(e,r,i){return{criteria:tg(t,function(t){return t(e)}),index:++n,value:e}}),function(e,t){return function(e,t,r){for(var n=-1,i=e.criteria,a=t.criteria,o=i.length,s=r.length;++n<o;){var l=nF(i[n],a[n]);if(l){if(n>=s)return l;return l*("desc"==r[n]?-1:1)}}return e.index-t.index}(e,t,r)})}function ns(e,t,r){for(var n=-1,i=t.length,a={};++n<i;){var o=t[n],s=rZ(e,o);r(s,o)&&nf(a,nI(o,e),s)}return a}function nl(e,t,r,n){var i=n?tC:tS,a=-1,o=t.length,s=e;for(e===t&&(t=nW(t)),r&&(s=tg(e,tL(r)));++a<o;)for(var l=0,u=t[a],c=r?r(u):u;(l=i(s,c,l,n))>-1;)s!==e&&e1.call(s,l,1),e1.call(e,l,1);return e}function nu(e,t){for(var r=e?t.length:0,n=r-1;r--;){var i=t[r];if(r==n||i!==a){var a=i;ik(i)?e1.call(e,i,1):nC(e,i)}}return e}function nc(e,t){return e+tK(t8()*(t-e+1))}function nd(e,t){var r="";if(!e||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=e),(t=tK(t/2))&&(e+=e);while(t)return r}function nh(e,t){return iR(iP(e,t,oB),e+"")}function nf(e,t,n,i){if(!aV(e))return e;t=nI(t,e);for(var a=-1,o=t.length,s=o-1,l=e;null!=l&&++a<o;){var u=iB(t[a]),c=n;if("__proto__"===u||"constructor"===u||"prototype"===u)break;if(a!=s){var d=l[u];(c=i?i(d,u,l):r)===r&&(c=aV(d)?d:ik(t[a+1])?[]:{})}rT(l,u,c),l=l[u]}return e}var np=ra?function(e,t){return ra.set(e,t),e}:oB,ng=e9?function(e,t){return e9(e,"toString",{configurable:!0,enumerable:!1,value:oz(t),writable:!0})}:oB;function nm(e,t,r){var n=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=ex(i);++n<i;)a[n]=e[n+t];return a}function nv(e,t){var r;return rB(e,function(e,n,i){return!(r=t(e,n,i))}),!!r}function nb(e,t,r){var n=0,i=null==e?n:e.length;if("number"==typeof t&&t==t&&i<=0x7fffffff){for(;n<i;){var a=n+i>>>1,o=e[a];null!==o&&!a0(o)&&(r?o<=t:o<t)?n=a+1:i=a}return i}return nx(e,t,oB,r)}function nx(e,t,n,i){var a=0,o=null==e?0:e.length;if(0===o)return 0;for(var s=(t=n(t))!=t,l=null===t,u=a0(t),c=t===r;a<o;){var d=tK((a+o)/2),h=n(e[d]),f=h!==r,p=null===h,g=h==h,m=a0(h);if(s)var v=i||g;else v=c?g&&(i||f):l?g&&f&&(i||!p):u?g&&f&&!p&&(i||!m):!p&&!m&&(i?h<=t:h<t);v?a=d+1:o=d}return t3(o,0xfffffffe)}function ny(e,t){for(var r=-1,n=e.length,i=0,a=[];++r<n;){var o=e[r],s=t?t(o):o;if(!r||!aI(s,l)){var l=s;a[i++]=0===o?0:o}}return a}function nw(e){return"number"==typeof e?e:a0(e)?l:+e}function nk(e){if("string"==typeof e)return e;if(az(e))return tg(e,nk)+"";if(a0(e))return rp?rp.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}function nS(e,t,r){var n=-1,i=tf,a=e.length,o=!0,s=[],l=s;if(r)o=!1,i=tp;else if(a>=200){var u=t?null:n8(e);if(u)return tU(u);o=!1,i=tN,l=new rS}else l=t?[]:s;r:for(;++n<a;){var c=e[n],d=t?t(c):c;if(c=r||0!==c?c:0,o&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue r;t&&l.push(d),s.push(c)}else i(l,d,r)||(l!==s&&l.push(d),s.push(c))}return s}function nC(e,t){return t=nI(t,e),null==(e=iO(e,t))||delete e[iB(iQ(t))]}function nA(e,t,r,n){return nf(e,t,r(rZ(e,t)),n)}function nE(e,t,r,n){for(var i=e.length,a=n?i:-1;(n?a--:++a<i)&&t(e[a],a,e););return r?nm(e,n?0:a,n?a+1:i):nm(e,n?a+1:0,n?i:a)}function n_(e,t){var r=e;return r instanceof rx&&(r=r.value()),tv(t,function(e,t){return t.func.apply(t.thisArg,tm([e],t.args))},r)}function nT(e,t,r){var n=e.length;if(n<2)return n?nS(e[0]):[];for(var i=-1,a=ex(n);++i<n;)for(var o=e[i],s=-1;++s<n;)s!=i&&(a[i]=rF(a[i]||o,e[s],t,r));return nS(rY(a,1),t,r)}function nP(e,t,n){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var l=i<o?t[i]:r;n(s,e[i],l)}return s}function nO(e){return aB(e)?e:[]}function nM(e){return"function"==typeof e?e:oB}function nI(e,t){return az(e)?e:iC(e,t)?[e]:iF(oe(e))}function nL(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:nm(e,t,n)}var nR=te||function(e){return e6.clearTimeout(e)};function nN(e,t){if(t)return e.slice();var r=e.length,n=eX?eX(r):new e.constructor(r);return e.copy(n),n}function nz(e){var t=new e.constructor(e.byteLength);return new eH(t).set(new eH(e)),t}function nD(e,t){var r=t?nz(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function nF(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,o=a0(e),s=t!==r,l=null===t,u=t==t,c=a0(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!u)return -1}return 0}function nB(e,t,r,n){for(var i=-1,a=e.length,o=r.length,s=-1,l=t.length,u=t5(a-o,0),c=ex(l+u),d=!n;++s<l;)c[s]=t[s];for(;++i<o;)(d||i<a)&&(c[r[i]]=e[i]);for(;u--;)c[s++]=e[i++];return c}function nj(e,t,r,n){for(var i=-1,a=e.length,o=-1,s=r.length,l=-1,u=t.length,c=t5(a-s,0),d=ex(c+u),h=!n;++i<c;)d[i]=e[i];for(var f=i;++l<u;)d[f+l]=t[l];for(;++o<s;)(h||i<a)&&(d[f+r[o]]=e[i++]);return d}function nW(e,t){var r=-1,n=e.length;for(t||(t=ex(n));++r<n;)t[r]=e[r];return t}function nH(e,t,n,i){var a=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var l=t[o],u=i?i(n[l],e[l],l,n,e):r;u===r&&(u=e[l]),a?rI(n,l,u):rT(n,l,u)}return n}function nX(e,t){return function(r,n){var i=az(r)?tu:rO,a=t?t():{};return i(r,e,id(n,2),a)}}function nY(e){return nh(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:r,s=a>2?n[2]:r;for(o=e.length>3&&"function"==typeof o?(a--,o):r,s&&iS(n[0],n[1],s)&&(o=a<3?r:o,a=1),t=eC(t);++i<a;){var l=n[i];l&&e(t,l,i,o)}return t})}function nU(e,t){return function(r,n){if(null==r)return r;if(!aF(r))return e(r,n);for(var i=r.length,a=t?i:-1,o=eC(r);(t?a--:++a<i)&&!1!==n(o[a],a,o););return r}}function nV(e){return function(t,r,n){for(var i=-1,a=eC(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}function nG(e){return function(t){var n=tW(t=oe(t))?tG(t):r,i=n?n[0]:t.charAt(0),a=n?nL(n,1).join(""):t.slice(1);return i[e]()+a}}function n$(e){return function(t){return tv(oL(oA(t).replace(eU,"")),e,"")}}function nq(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=rm(e.prototype),n=e.apply(r,t);return aV(n)?n:r}}function nZ(e){return function(t,n,i){var a=eC(t);if(!aF(t)){var o=id(n,3);t=of(t),n=function(e){return o(a[e],e,a)}}var s=e(t,n,i);return s>-1?a[o?t[s]:s]:r}}function nK(e){return ia(function(t){var n=t.length,a=n,o=rb.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if("function"!=typeof s)throw new e_(i);if(o&&!l&&"wrapper"==iu(s))var l=new rb([],!0)}for(a=l?a:n;++a<n;){var u=iu(s=t[a]),c="wrapper"==u?il(s):r;l=c&&iA(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[iu(c[0])].apply(l,c[3]):1==s.length&&iA(s)?l[u]():l.thru(s)}return function(){var e=arguments,r=e[0];if(l&&1==e.length&&az(r))return l.plant(r).value();for(var i=0,a=n?t[i].apply(this,e):r;++i<n;)a=t[i].call(this,a);return a}})}function nQ(e,t,n,i,a,o,s,l,u,c){var d=128&t,h=1&t,f=2&t,p=24&t,g=512&t,m=f?r:nq(e);return function v(){for(var b=arguments.length,x=ex(b),y=b;y--;)x[y]=arguments[y];if(p)var w=ic(v),k=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(x,w);if(i&&(x=nB(x,i,a,p)),o&&(x=nj(x,o,s,p)),b-=k,p&&b<c){var S=tY(x,w);return n4(e,t,nQ,v.placeholder,n,x,S,l,u,c-b)}var C=h?n:this,A=f?C[e]:e;return b=x.length,l?x=function(e,t){for(var n=e.length,i=t3(t.length,n),a=nW(e);i--;){var o=t[i];e[i]=ik(o,n)?a[o]:r}return e}(x,l):g&&b>1&&x.reverse(),d&&u<b&&(x.length=u),this&&this!==e6&&this instanceof v&&(A=m||nq(A)),A.apply(C,x)}}function nJ(e,t){return function(r,n){var i,a;return i=t(n),a={},rG(r,function(t,r,n){e(a,i(t),r,n)}),a}}function n0(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=nk(n),i=nk(i)):(n=nw(n),i=nw(i)),a=e(n,i)}return a}}function n1(e){return ia(function(t){return t=tg(t,tL(id())),nh(function(r){var n=this;return e(t,function(e){return tl(e,n,r)})})})}function n2(e,t){var n=(t=t===r?" ":nk(t)).length;if(n<2)return n?nd(t,e):t;var i=nd(t,tT(e/tV(t)));return tW(t)?nL(tG(i),0,e).join(""):i.slice(0,e)}function n5(e){return function(t,n,i){return i&&"number"!=typeof i&&iS(t,n,i)&&(n=i=r),t=a4(t),n===r?(n=t,t=0):n=a4(n),i=i===r?t<n?1:-1:a4(i),function(e,t,r,n){for(var i=-1,a=t5(tT((t-e)/(r||1)),0),o=ex(a);a--;)o[n?a:++i]=e,e+=r;return o}(t,n,i,e)}}function n3(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=a9(t),r=a9(r)),e(t,r)}}function n4(e,t,n,i,a,o,s,l,u,c){var d=8&t,h=d?s:r,f=d?r:s,p=d?o:r,g=d?r:o;t|=d?32:64,4&(t&=~(d?64:32))||(t&=-4);var m=[e,t,a,p,h,g,f,l,u,c],v=n.apply(r,m);return iA(e)&&iI(v,m),v.placeholder=i,iN(v,e,t)}function n6(e){var t=eS[e];return function(e,r){if(e=a9(e),(r=null==r?0:t3(a6(r),292))&&t0(e)){var n=(oe(e)+"e").split("e");return+((n=(oe(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var n8=rr&&1/tU(new rr([,-0]))[1]==s?function(e){return new rr(e)}:oY;function n9(e){return function(t){var r,n,i=ib(t);return i==v?tH(t):i==k?(r=-1,n=Array(t.size),t.forEach(function(e){n[++r]=[e,e]}),n):tg(e(t),function(e){return[e,t[e]]})}}function n7(e,t,n,a,s,l,u,c){var d=2&t;if(!d&&"function"!=typeof e)throw new e_(i);var h=a?a.length:0;if(h||(t&=-97,a=s=r),u=u===r?u:t5(a6(u),0),c=c===r?c:a6(c),h-=s?s.length:0,64&t){var f=a,p=s;a=s=r}var g=d?r:il(e),m=[e,t,n,a,s,f,p,l,u,c];if(g&&function(e,t){var r=e[1],n=t[1],i=r|n,a=i<131,s=128==n&&8==r||128==n&&256==r&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(a||s){1&n&&(e[2]=t[2],i|=1&r?0:4);var l=t[3];if(l){var u=e[3];e[3]=u?nB(u,l,t[4]):l,e[4]=u?tY(e[3],o):t[4]}(l=t[5])&&(u=e[5],e[5]=u?nj(u,l,t[6]):l,e[6]=u?tY(e[5],o):t[6]),(l=t[7])&&(e[7]=l),128&n&&(e[8]=null==e[8]?t[8]:t3(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}}(m,g),e=m[0],t=m[1],n=m[2],a=m[3],s=m[4],(c=m[9]=m[9]===r?d?0:e.length:t5(m[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?(v=e,b=t,x=c,y=nq(v),I=function e(){for(var t=arguments.length,n=ex(t),i=t,a=ic(e);i--;)n[i]=arguments[i];var o=t<3&&n[0]!==a&&n[t-1]!==a?[]:tY(n,a);return(t-=o.length)<x?n4(v,b,nQ,e.placeholder,r,n,o,r,r,x-t):tl(this&&this!==e6&&this instanceof e?y:v,this,n)}):32!=t&&33!=t||s.length?I=nQ.apply(r,m):(w=e,k=t,S=n,C=a,A=1&k,E=nq(w),I=function e(){for(var t=-1,r=arguments.length,n=-1,i=C.length,a=ex(i+r),o=this&&this!==e6&&this instanceof e?E:w;++n<i;)a[n]=C[n];for(;r--;)a[n++]=arguments[++t];return tl(o,A?S:this,a)});else var v,b,x,y,w,k,S,C,A,E,_,T,P,O,M,I=(_=e,T=t,P=n,O=1&T,M=nq(_),function e(){return(this&&this!==e6&&this instanceof e?M:_).apply(O?P:this,arguments)});return iN((g?np:iI)(I,m),e,t)}function ie(e,t,n,i){return e===r||aI(e,eO[n])&&!eL.call(i,n)?t:e}function it(e,t,n,i,a,o){return aV(e)&&aV(t)&&(o.set(t,e),ni(e,t,r,it,o),o.delete(t)),e}function ir(e){return aZ(e)?r:e}function ii(e,t,n,i,a,o){var s=1&n,l=e.length,u=t.length;if(l!=u&&!(s&&u>l))return!1;var c=o.get(e),d=o.get(t);if(c&&d)return c==t&&d==e;var h=-1,f=!0,p=2&n?new rS:r;for(o.set(e,t),o.set(t,e);++h<l;){var g=e[h],m=t[h];if(i)var v=s?i(m,g,h,t,e,o):i(g,m,h,e,t,o);if(v!==r){if(v)continue;f=!1;break}if(p){if(!tx(t,function(e,t){if(!tN(p,t)&&(g===e||a(g,e,n,i,o)))return p.push(t)})){f=!1;break}}else if(!(g===m||a(g,m,n,i,o))){f=!1;break}}return o.delete(e),o.delete(t),f}function ia(e){return iR(iP(e,r,iG),e+"")}function io(e){return rK(e,of,im)}function is(e){return rK(e,op,iv)}var il=ra?function(e){return ra.get(e)}:oY;function iu(e){for(var t=e.name+"",r=ro[t],n=eL.call(ro,t)?r.length:0;n--;){var i=r[n],a=i.func;if(null==a||a==e)return i.name}return t}function ic(e){return(eL.call(rg,"placeholder")?rg:e).placeholder}function id(){var e=rg.iteratee||oj;return e=e===oj?r9:e,arguments.length?e(arguments[0],arguments[1]):e}function ih(e,t){var r,n=e.__data__;return("string"==(r=typeof t)||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t)?n["string"==typeof t?"string":"hash"]:n.map}function ip(e){for(var t=of(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,i==i&&!aV(i)]}return t}function ig(e,t){var n=null==e?r:e[t];return r8(n)?n:r}var im=tQ?function(e){return null==e?[]:th(tQ(e=eC(e)),function(t){return eq.call(e,t)})}:oK,iv=tQ?function(e){for(var t=[];e;)tm(t,im(e)),e=eY(e);return t}:oK,ib=rQ;function ix(e,t,r){t=nI(t,e);for(var n=-1,i=t.length,a=!1;++n<i;){var o=iB(t[n]);if(!(a=null!=e&&r(e,o)))break;e=e[o]}return a||++n!=i?a:!!(i=null==e?0:e.length)&&aU(i)&&ik(o,i)&&(az(e)||aN(e))}function iy(e){return"function"!=typeof e.constructor||i_(e)?{}:rm(eY(e))}function iw(e){return az(e)||aN(e)||!!(e3&&e&&e[e3])}function ik(e,t){var r=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&ef.test(e))&&e>-1&&e%1==0&&e<t}function iS(e,t,r){if(!aV(r))return!1;var n=typeof t;return("number"==n?!!(aF(r)&&ik(t,r.length)):"string"==n&&t in r)&&aI(r[t],e)}function iC(e,t){if(az(e))return!1;var r=typeof e;return!!("number"==r||"symbol"==r||"boolean"==r||null==e||a0(e))||q.test(e)||!$.test(e)||null!=t&&e in eC(t)}function iA(e){var t=iu(e),r=rg[t];if("function"!=typeof r||!(t in rx.prototype))return!1;if(e===r)return!0;var n=il(r);return!!n&&e===n[0]}(t7&&ib(new t7(new ArrayBuffer(1)))!=_||re&&ib(new re)!=v||rt&&ib(rt.resolve())!=y||rr&&ib(new rr)!=k||rn&&ib(new rn)!=A)&&(ib=function(e){var t=rQ(e),n=t==x?e.constructor:r,i=n?ij(n):"";if(i)switch(i){case rs:return _;case rl:return v;case ru:return y;case rc:return k;case rd:return A}return t});var iE=eM?aX:oQ;function i_(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||eO)}function iT(e,t){return function(n){return null!=n&&n[e]===t&&(t!==r||e in eC(n))}}function iP(e,t,n){return t=t5(t===r?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=t5(r.length-t,0),o=ex(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=ex(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),tl(e,this,s)}}function iO(e,t){return t.length<2?e:rZ(e,nm(t,0,-1))}function iM(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var iI=iz(np),iL=ty||function(e,t){return e6.setTimeout(e,t)},iR=iz(ng);function iN(e,t,r){var n,i,a=t+"";return iR(e,function(e,t){var r=t.length;if(!r)return e;var n=r-1;return t[n]=(r>1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(et,"{\n/* [wrapped with "+t+"] */\n")}(a,(n=(i=a.match(er))?i[1].split(en):[],tc(u,function(e){var t="_."+e[0];r&e[1]&&!tf(n,t)&&n.push(t)}),n.sort())))}function iz(e){var t=0,n=0;return function(){var i=t4(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function iD(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var o=nc(n,a),s=e[o];e[o]=e[n],e[n]=s}return e.length=t,e}var iF=(ev=(ee=aE(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Z,function(e,r,n,i){t.push(n?i.replace(eo,"$1"):r||e)}),t},function(e){return 500===ev.size&&ev.clear(),e})).cache,ee);function iB(e){if("string"==typeof e||a0(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function ij(e){if(null!=e){try{return eI.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function iW(e){if(e instanceof rx)return e.clone();var t=new rb(e.__wrapped__,e.__chain__);return t.__actions__=nW(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var iH=nh(function(e,t){return aB(e)?rF(e,rY(t,1,aB,!0)):[]}),iX=nh(function(e,t){var n=iQ(t);return aB(n)&&(n=r),aB(e)?rF(e,rY(t,1,aB,!0),id(n,2)):[]}),iY=nh(function(e,t){var n=iQ(t);return aB(n)&&(n=r),aB(e)?rF(e,rY(t,1,aB,!0),r,n):[]});function iU(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:a6(r);return i<0&&(i=t5(n+i,0)),tk(e,id(t,3),i)}function iV(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var a=i-1;return n!==r&&(a=a6(n),a=n<0?t5(i+a,0):t3(a,i-1)),tk(e,id(t,3),a,!0)}function iG(e){return(null==e?0:e.length)?rY(e,1):[]}function i$(e){return e&&e.length?e[0]:r}var iq=nh(function(e){var t=tg(e,nO);return t.length&&t[0]===e[0]?r2(t):[]}),iZ=nh(function(e){var t=iQ(e),n=tg(e,nO);return t===iQ(n)?t=r:n.pop(),n.length&&n[0]===e[0]?r2(n,id(t,2)):[]}),iK=nh(function(e){var t=iQ(e),n=tg(e,nO);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?r2(n,r,t):[]});function iQ(e){var t=null==e?0:e.length;return t?e[t-1]:r}var iJ=nh(i0);function i0(e,t){return e&&e.length&&t&&t.length?nl(e,t):e}var i1=ia(function(e,t){var r=null==e?0:e.length,n=rL(e,t);return nu(e,tg(t,function(e){return ik(e,r)?+e:e}).sort(nF)),n});function i2(e){return null==e?e:t9.call(e)}var i5=nh(function(e){return nS(rY(e,1,aB,!0))}),i3=nh(function(e){var t=iQ(e);return aB(t)&&(t=r),nS(rY(e,1,aB,!0),id(t,2))}),i4=nh(function(e){var t=iQ(e);return t="function"==typeof t?t:r,nS(rY(e,1,aB,!0),r,t)});function i6(e){if(!(e&&e.length))return[];var t=0;return e=th(e,function(e){if(aB(e))return t=t5(e.length,t),!0}),tM(t,function(t){return tg(e,t_(t))})}function i8(e,t){if(!(e&&e.length))return[];var n=i6(e);return null==t?n:tg(n,function(e){return tl(t,r,e)})}var i9=nh(function(e,t){return aB(e)?rF(e,t):[]}),i7=nh(function(e){return nT(th(e,aB))}),ae=nh(function(e){var t=iQ(e);return aB(t)&&(t=r),nT(th(e,aB),id(t,2))}),at=nh(function(e){var t=iQ(e);return t="function"==typeof t?t:r,nT(th(e,aB),r,t)}),ar=nh(i6),an=nh(function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,i8(e,n)});function ai(e){var t=rg(e);return t.__chain__=!0,t}function aa(e,t){return t(e)}var ao=ia(function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return rL(t,e)};return!(t>1)&&!this.__actions__.length&&i instanceof rx&&ik(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:aa,args:[a],thisArg:r}),new rb(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(r),e})):this.thru(a)}),as=nX(function(e,t,r){eL.call(e,r)?++e[r]:rI(e,r,1)}),al=nZ(iU),au=nZ(iV);function ac(e,t){return(az(e)?tc:rB)(e,id(t,3))}function ad(e,t){return(az(e)?function(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}:rj)(e,id(t,3))}var ah=nX(function(e,t,r){eL.call(e,r)?e[r].push(t):rI(e,r,[t])}),af=nh(function(e,t,r){var n=-1,i="function"==typeof t,a=aF(e)?ex(e.length):[];return rB(e,function(e){a[++n]=i?tl(t,e,r):r5(e,t,r)}),a}),ap=nX(function(e,t,r){rI(e,r,t)});function ag(e,t){return(az(e)?tg:nt)(e,id(t,3))}var am=nX(function(e,t,r){e[r?0:1].push(t)},function(){return[[],[]]}),av=nh(function(e,t){if(null==e)return[];var r=t.length;return r>1&&iS(e,t[0],t[1])?t=[]:r>2&&iS(t[0],t[1],t[2])&&(t=[t[0]]),no(e,rY(t,1),[])}),ab=tt||function(){return e6.Date.now()};function ax(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,n7(e,128,r,r,r,r,t)}function ay(e,t){var n;if("function"!=typeof t)throw new e_(i);return e=a6(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var aw=nh(function(e,t,r){var n=1;if(r.length){var i=tY(r,ic(aw));n|=32}return n7(e,n,t,r,i)}),ak=nh(function(e,t,r){var n=3;if(r.length){var i=tY(r,ic(ak));n|=32}return n7(t,n,e,r,i)});function aS(e,t,n){var a,o,s,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new e_(i);function g(t){var n=a,i=o;return a=o=r,d=t,l=e.apply(i,n)}function m(e){var n=e-c,i=e-d;return c===r||n>=t||n<0||f&&i>=s}function v(){var e,r,n,i=ab();if(m(i))return b(i);u=iL(v,(e=i-c,r=i-d,n=t-e,f?t3(n,s-r):n))}function b(e){return(u=r,p&&a)?g(e):(a=o=r,l)}function x(){var e,n=ab(),i=m(n);if(a=arguments,o=this,c=n,i){if(u===r)return d=e=c,u=iL(v,t),h?g(e):l;if(f)return nR(u),u=iL(v,t),g(c)}return u===r&&(u=iL(v,t)),l}return t=a9(t)||0,aV(n)&&(h=!!n.leading,s=(f="maxWait"in n)?t5(a9(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),x.cancel=function(){u!==r&&nR(u),d=0,a=c=o=u=r},x.flush=function(){return u===r?l:b(ab())},x}var aC=nh(function(e,t){return rD(e,1,t)}),aA=nh(function(e,t,r){return rD(e,a9(t)||0,r)});function aE(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new e_(i);var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,n);return r.cache=a.set(i,o)||a,o};return r.cache=new(aE.Cache||rk),r}function a_(e){if("function"!=typeof e)throw new e_(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}aE.Cache=rk;var aT=nh(function(e,t){var r=(t=1==t.length&&az(t[0])?tg(t[0],tL(id())):tg(rY(t,1),tL(id()))).length;return nh(function(n){for(var i=-1,a=t3(n.length,r);++i<a;)n[i]=t[i].call(this,n[i]);return tl(e,this,n)})}),aP=nh(function(e,t){var n=tY(t,ic(aP));return n7(e,32,r,t,n)}),aO=nh(function(e,t){var n=tY(t,ic(aO));return n7(e,64,r,t,n)}),aM=ia(function(e,t){return n7(e,256,r,r,r,t)});function aI(e,t){return e===t||e!=e&&t!=t}var aL=n3(rJ),aR=n3(function(e,t){return e>=t}),aN=r3(function(){return arguments}())?r3:function(e){return aG(e)&&eL.call(e,"callee")&&!eq.call(e,"callee")},az=ex.isArray,aD=tr?tL(tr):function(e){return aG(e)&&rQ(e)==E};function aF(e){return null!=e&&aU(e.length)&&!aX(e)}function aB(e){return aG(e)&&aF(e)}var aj=tJ||oQ,aW=tn?tL(tn):function(e){return aG(e)&&rQ(e)==f};function aH(e){if(!aG(e))return!1;var t=rQ(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!aZ(e)}function aX(e){if(!aV(e))return!1;var t=rQ(e);return t==g||t==m||"[object AsyncFunction]"==t||"[object Proxy]"==t}function aY(e){return"number"==typeof e&&e==a6(e)}function aU(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}function aV(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function aG(e){return null!=e&&"object"==typeof e}var a$=ti?tL(ti):function(e){return aG(e)&&ib(e)==v};function aq(e){return"number"==typeof e||aG(e)&&rQ(e)==b}function aZ(e){if(!aG(e)||rQ(e)!=x)return!1;var t=eY(e);if(null===t)return!0;var r=eL.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eI.call(r)==eD}var aK=ta?tL(ta):function(e){return aG(e)&&rQ(e)==w},aQ=to?tL(to):function(e){return aG(e)&&ib(e)==k};function aJ(e){return"string"==typeof e||!az(e)&&aG(e)&&rQ(e)==S}function a0(e){return"symbol"==typeof e||aG(e)&&rQ(e)==C}var a1=ts?tL(ts):function(e){return aG(e)&&aU(e.length)&&!!eJ[rQ(e)]},a2=n3(ne),a5=n3(function(e,t){return e<=t});function a3(e){if(!e)return[];if(aF(e))return aJ(e)?tG(e):nW(e);if(e4&&e[e4])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[e4]());var t=ib(e);return(t==v?tH:t==k?tU:ok)(e)}function a4(e){return e?(e=a9(e))===s||e===-s?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}function a6(e){var t=a4(e),r=t%1;return t==t?r?t-r:t:0}function a8(e){return e?rR(a6(e),0,0xffffffff):0}function a9(e){if("number"==typeof e)return e;if(a0(e))return l;if(aV(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=aV(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=tI(e);var r=ec.test(e);return r||eh.test(e)?e5(e.slice(2),r?2:8):eu.test(e)?l:+e}function a7(e){return nH(e,op(e))}function oe(e){return null==e?"":nk(e)}var ot=nY(function(e,t){if(i_(t)||aF(t)){nH(t,of(t),e);return}for(var r in t)eL.call(t,r)&&rT(e,r,t[r])}),or=nY(function(e,t){nH(t,op(t),e)}),on=nY(function(e,t,r,n){nH(t,op(t),e,n)}),oi=nY(function(e,t,r,n){nH(t,of(t),e,n)}),oa=ia(rL),oo=nh(function(e,t){e=eC(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&iS(t[0],t[1],a)&&(i=1);++n<i;)for(var o=t[n],s=op(o),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===r||aI(d,eO[c])&&!eL.call(e,c))&&(e[c]=o[c])}return e}),os=nh(function(e){return e.push(r,it),tl(om,r,e)});function ol(e,t,n){var i=null==e?r:rZ(e,t);return i===r?n:i}function ou(e,t){return null!=e&&ix(e,t,r1)}var oc=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ez.call(t)),e[t]=r},oz(oB)),od=nJ(function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=ez.call(t)),eL.call(e,t)?e[t].push(r):e[t]=[r]},id),oh=nh(r5);function of(e){return aF(e)?rA(e):r7(e)}function op(e){return aF(e)?rA(e,!0):function(e){if(!aV(e))return function(e){var t=[];if(null!=e)for(var r in eC(e))t.push(r);return t}(e);var t=i_(e),r=[];for(var n in e)"constructor"==n&&(t||!eL.call(e,n))||r.push(n);return r}(e)}var og=nY(function(e,t,r){ni(e,t,r)}),om=nY(function(e,t,r,n){ni(e,t,r,n)}),ov=ia(function(e,t){var r={};if(null==e)return r;var n=!1;t=tg(t,function(t){return t=nI(t,e),n||(n=t.length>1),t}),nH(e,is(e),r),n&&(r=rN(r,7,ir));for(var i=t.length;i--;)nC(r,t[i]);return r}),ob=ia(function(e,t){return null==e?{}:ns(e,t,function(t,r){return ou(e,r)})});function ox(e,t){if(null==e)return{};var r=tg(is(e),function(e){return[e]});return t=id(t),ns(e,r,function(e,r){return t(e,r[0])})}var oy=n9(of),ow=n9(op);function ok(e){return null==e?[]:tR(e,of(e))}var oS=n$(function(e,t,r){return t=t.toLowerCase(),e+(r?oC(t):t)});function oC(e){return oI(oe(e).toLowerCase())}function oA(e){return(e=oe(e))&&e.replace(ep,tF).replace(eV,"")}var oE=n$(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),o_=n$(function(e,t,r){return e+(r?" ":"")+t.toLowerCase()}),oT=nG("toLowerCase"),oP=n$(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}),oO=n$(function(e,t,r){return e+(r?" ":"")+oI(t)}),oM=n$(function(e,t,r){return e+(r?" ":"")+t.toUpperCase()}),oI=nG("toUpperCase");function oL(e,t,n){if(e=oe(e),(t=n?r:t)===r){var i;return(i=e,eZ.test(i))?e.match(e$)||[]:e.match(ei)||[]}return e.match(t)||[]}var oR=nh(function(e,t){try{return tl(e,r,t)}catch(e){return aH(e)?e:new ew(e)}}),oN=ia(function(e,t){return tc(t,function(t){rI(e,t=iB(t),aw(e[t],e))}),e});function oz(e){return function(){return e}}var oD=nK(),oF=nK(!0);function oB(e){return e}function oj(e){return r9("function"==typeof e?e:rN(e,1))}var oW=nh(function(e,t){return function(r){return r5(r,e,t)}}),oH=nh(function(e,t){return function(r){return r5(e,r,t)}});function oX(e,t,r){var n=of(t),i=rq(t,n);null!=r||aV(t)&&(i.length||!n.length)||(r=t,t=e,e=this,i=rq(t,of(t)));var a=!(aV(r)&&"chain"in r)||!!r.chain,o=aX(e);return tc(i,function(r){var n=t[r];e[r]=n,o&&(e.prototype[r]=function(){var t=this.__chain__;if(a||t){var r=e(this.__wrapped__);return(r.__actions__=nW(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,tm([this.value()],arguments))})}),e}function oY(){}var oU=n1(tg),oV=n1(td),oG=n1(tx);function o$(e){return iC(e)?t_(iB(e)):function(t){return rZ(t,e)}}var oq=n5(),oZ=n5(!0);function oK(){return[]}function oQ(){return!1}var oJ=n0(function(e,t){return e+t},0),o0=n6("ceil"),o1=n0(function(e,t){return e/t},1),o2=n6("floor"),o5=n0(function(e,t){return e*t},1),o3=n6("round"),o4=n0(function(e,t){return e-t},0);return rg.after=function(e,t){if("function"!=typeof t)throw new e_(i);return e=a6(e),function(){if(--e<1)return t.apply(this,arguments)}},rg.ary=ax,rg.assign=ot,rg.assignIn=or,rg.assignInWith=on,rg.assignWith=oi,rg.at=oa,rg.before=ay,rg.bind=aw,rg.bindAll=oN,rg.bindKey=ak,rg.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return az(e)?e:[e]},rg.chain=ai,rg.chunk=function(e,t,n){t=(n?iS(e,t,n):t===r)?1:t5(a6(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ex(tT(i/t));a<i;)s[o++]=nm(e,a,a+=t);return s},rg.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,i=[];++t<r;){var a=e[t];a&&(i[n++]=a)}return i},rg.concat=function(){var e=arguments.length;if(!e)return[];for(var t=ex(e-1),r=arguments[0],n=e;n--;)t[n-1]=arguments[n];return tm(az(r)?nW(r):[r],rY(t,1))},rg.cond=function(e){var t=null==e?0:e.length,r=id();return e=t?tg(e,function(e){if("function"!=typeof e[1])throw new e_(i);return[r(e[0]),e[1]]}):[],nh(function(r){for(var n=-1;++n<t;){var i=e[n];if(tl(i[0],this,r))return tl(i[1],this,r)}})},rg.conforms=function(e){var t,r;return r=of(t=rN(e,1)),function(e){return rz(e,t,r)}},rg.constant=oz,rg.countBy=as,rg.create=function(e,t){var r=rm(e);return null==t?r:rM(r,t)},rg.curry=function e(t,n,i){n=i?r:n;var a=n7(t,8,r,r,r,r,r,n);return a.placeholder=e.placeholder,a},rg.curryRight=function e(t,n,i){n=i?r:n;var a=n7(t,16,r,r,r,r,r,n);return a.placeholder=e.placeholder,a},rg.debounce=aS,rg.defaults=oo,rg.defaultsDeep=os,rg.defer=aC,rg.delay=aA,rg.difference=iH,rg.differenceBy=iX,rg.differenceWith=iY,rg.drop=function(e,t,n){var i=null==e?0:e.length;return i?nm(e,(t=n||t===r?1:a6(t))<0?0:t,i):[]},rg.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?nm(e,0,(t=i-(t=n||t===r?1:a6(t)))<0?0:t):[]},rg.dropRightWhile=function(e,t){return e&&e.length?nE(e,id(t,3),!0,!0):[]},rg.dropWhile=function(e,t){return e&&e.length?nE(e,id(t,3),!0):[]},rg.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&iS(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=a6(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:a6(i))<0&&(i+=a),i=n>i?0:a8(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},rg.filter=function(e,t){return(az(e)?th:rX)(e,id(t,3))},rg.flatMap=function(e,t){return rY(ag(e,t),1)},rg.flatMapDeep=function(e,t){return rY(ag(e,t),s)},rg.flatMapDepth=function(e,t,n){return n=n===r?1:a6(n),rY(ag(e,t),n)},rg.flatten=iG,rg.flattenDeep=function(e){return(null==e?0:e.length)?rY(e,s):[]},rg.flattenDepth=function(e,t){return(null==e?0:e.length)?rY(e,t=t===r?1:a6(t)):[]},rg.flip=function(e){return n7(e,512)},rg.flow=oD,rg.flowRight=oF,rg.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var i=e[t];n[i[0]]=i[1]}return n},rg.functions=function(e){return null==e?[]:rq(e,of(e))},rg.functionsIn=function(e){return null==e?[]:rq(e,op(e))},rg.groupBy=ah,rg.initial=function(e){return(null==e?0:e.length)?nm(e,0,-1):[]},rg.intersection=iq,rg.intersectionBy=iZ,rg.intersectionWith=iK,rg.invert=oc,rg.invertBy=od,rg.invokeMap=af,rg.iteratee=oj,rg.keyBy=ap,rg.keys=of,rg.keysIn=op,rg.map=ag,rg.mapKeys=function(e,t){var r={};return t=id(t,3),rG(e,function(e,n,i){rI(r,t(e,n,i),e)}),r},rg.mapValues=function(e,t){var r={};return t=id(t,3),rG(e,function(e,n,i){rI(r,n,t(e,n,i))}),r},rg.matches=function(e){return nr(rN(e,1))},rg.matchesProperty=function(e,t){return nn(e,rN(t,1))},rg.memoize=aE,rg.merge=og,rg.mergeWith=om,rg.method=oW,rg.methodOf=oH,rg.mixin=oX,rg.negate=a_,rg.nthArg=function(e){return e=a6(e),nh(function(t){return na(t,e)})},rg.omit=ov,rg.omitBy=function(e,t){return ox(e,a_(id(t)))},rg.once=function(e){return ay(2,e)},rg.orderBy=function(e,t,n,i){return null==e?[]:(az(t)||(t=null==t?[]:[t]),az(n=i?r:n)||(n=null==n?[]:[n]),no(e,t,n))},rg.over=oU,rg.overArgs=aT,rg.overEvery=oV,rg.overSome=oG,rg.partial=aP,rg.partialRight=aO,rg.partition=am,rg.pick=ob,rg.pickBy=ox,rg.property=o$,rg.propertyOf=function(e){return function(t){return null==e?r:rZ(e,t)}},rg.pull=iJ,rg.pullAll=i0,rg.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?nl(e,t,id(r,2)):e},rg.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?nl(e,t,r,n):e},rg.pullAt=i1,rg.range=oq,rg.rangeRight=oZ,rg.rearg=aM,rg.reject=function(e,t){return(az(e)?th:rX)(e,a_(id(t,3)))},rg.remove=function(e,t){var r=[];if(!(e&&e.length))return r;var n=-1,i=[],a=e.length;for(t=id(t,3);++n<a;){var o=e[n];t(o,n,e)&&(r.push(o),i.push(n))}return nu(e,i),r},rg.rest=function(e,t){if("function"!=typeof e)throw new e_(i);return nh(e,t=t===r?t:a6(t))},rg.reverse=i2,rg.sampleSize=function(e,t,n){return t=(n?iS(e,t,n):t===r)?1:a6(t),(az(e)?function(e,t){return iD(nW(e),rR(t,0,e.length))}:function(e,t){var r=ok(e);return iD(r,rR(t,0,r.length))})(e,t)},rg.set=function(e,t,r){return null==e?e:nf(e,t,r)},rg.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nf(e,t,n,i)},rg.shuffle=function(e){return(az(e)?function(e){return iD(nW(e))}:function(e){return iD(ok(e))})(e)},rg.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&iS(e,t,n)?(t=0,n=i):(t=null==t?0:a6(t),n=n===r?i:a6(n)),nm(e,t,n)):[]},rg.sortBy=av,rg.sortedUniq=function(e){return e&&e.length?ny(e):[]},rg.sortedUniqBy=function(e,t){return e&&e.length?ny(e,id(t,2)):[]},rg.split=function(e,t,n){return(n&&"number"!=typeof n&&iS(e,t,n)&&(t=n=r),n=n===r?0xffffffff:n>>>0)?(e=oe(e))&&("string"==typeof t||null!=t&&!aK(t))&&!(t=nk(t))&&tW(e)?nL(tG(e),0,n):e.split(t,n):[]},rg.spread=function(e,t){if("function"!=typeof e)throw new e_(i);return t=null==t?0:t5(a6(t),0),nh(function(r){var n=r[t],i=nL(r,0,t);return n&&tm(i,n),tl(e,this,i)})},rg.tail=function(e){var t=null==e?0:e.length;return t?nm(e,1,t):[]},rg.take=function(e,t,n){return e&&e.length?nm(e,0,(t=n||t===r?1:a6(t))<0?0:t):[]},rg.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?nm(e,(t=i-(t=n||t===r?1:a6(t)))<0?0:t,i):[]},rg.takeRightWhile=function(e,t){return e&&e.length?nE(e,id(t,3),!1,!0):[]},rg.takeWhile=function(e,t){return e&&e.length?nE(e,id(t,3)):[]},rg.tap=function(e,t){return t(e),e},rg.throttle=function(e,t,r){var n=!0,a=!0;if("function"!=typeof e)throw new e_(i);return aV(r)&&(n="leading"in r?!!r.leading:n,a="trailing"in r?!!r.trailing:a),aS(e,t,{leading:n,maxWait:t,trailing:a})},rg.thru=aa,rg.toArray=a3,rg.toPairs=oy,rg.toPairsIn=ow,rg.toPath=function(e){return az(e)?tg(e,iB):a0(e)?[e]:nW(iF(oe(e)))},rg.toPlainObject=a7,rg.transform=function(e,t,r){var n=az(e),i=n||aj(e)||a1(e);if(t=id(t,4),null==r){var a=e&&e.constructor;r=i?n?new a:[]:aV(e)&&aX(a)?rm(eY(e)):{}}return(i?tc:rG)(e,function(e,n,i){return t(r,e,n,i)}),r},rg.unary=function(e){return ax(e,1)},rg.union=i5,rg.unionBy=i3,rg.unionWith=i4,rg.uniq=function(e){return e&&e.length?nS(e):[]},rg.uniqBy=function(e,t){return e&&e.length?nS(e,id(t,2)):[]},rg.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?nS(e,r,t):[]},rg.unset=function(e,t){return null==e||nC(e,t)},rg.unzip=i6,rg.unzipWith=i8,rg.update=function(e,t,r){return null==e?e:nA(e,t,nM(r))},rg.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:nA(e,t,nM(n),i)},rg.values=ok,rg.valuesIn=function(e){return null==e?[]:tR(e,op(e))},rg.without=i9,rg.words=oL,rg.wrap=function(e,t){return aP(nM(t),e)},rg.xor=i7,rg.xorBy=ae,rg.xorWith=at,rg.zip=ar,rg.zipObject=function(e,t){return nP(e||[],t||[],rT)},rg.zipObjectDeep=function(e,t){return nP(e||[],t||[],nf)},rg.zipWith=an,rg.entries=oy,rg.entriesIn=ow,rg.extend=or,rg.extendWith=on,oX(rg,rg),rg.add=oJ,rg.attempt=oR,rg.camelCase=oS,rg.capitalize=oC,rg.ceil=o0,rg.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=a9(n))==n?n:0),t!==r&&(t=(t=a9(t))==t?t:0),rR(a9(e),t,n)},rg.clone=function(e){return rN(e,4)},rg.cloneDeep=function(e){return rN(e,5)},rg.cloneDeepWith=function(e,t){return rN(e,5,t="function"==typeof t?t:r)},rg.cloneWith=function(e,t){return rN(e,4,t="function"==typeof t?t:r)},rg.conformsTo=function(e,t){return null==t||rz(e,t,of(t))},rg.deburr=oA,rg.defaultTo=function(e,t){return null==e||e!=e?t:e},rg.divide=o1,rg.endsWith=function(e,t,n){e=oe(e),t=nk(t);var i=e.length,a=n=n===r?i:rR(a6(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},rg.eq=aI,rg.escape=function(e){return(e=oe(e))&&Y.test(e)?e.replace(H,tB):e},rg.escapeRegExp=function(e){return(e=oe(e))&&Q.test(e)?e.replace(K,"\\$&"):e},rg.every=function(e,t,n){var i=az(e)?td:rW;return n&&iS(e,t,n)&&(t=r),i(e,id(t,3))},rg.find=al,rg.findIndex=iU,rg.findKey=function(e,t){return tw(e,id(t,3),rG)},rg.findLast=au,rg.findLastIndex=iV,rg.findLastKey=function(e,t){return tw(e,id(t,3),r$)},rg.floor=o2,rg.forEach=ac,rg.forEachRight=ad,rg.forIn=function(e,t){return null==e?e:rU(e,id(t,3),op)},rg.forInRight=function(e,t){return null==e?e:rV(e,id(t,3),op)},rg.forOwn=function(e,t){return e&&rG(e,id(t,3))},rg.forOwnRight=function(e,t){return e&&r$(e,id(t,3))},rg.get=ol,rg.gt=aL,rg.gte=aR,rg.has=function(e,t){return null!=e&&ix(e,t,r0)},rg.hasIn=ou,rg.head=i$,rg.identity=oB,rg.includes=function(e,t,r,n){e=aF(e)?e:ok(e),r=r&&!n?a6(r):0;var i=e.length;return r<0&&(r=t5(i+r,0)),aJ(e)?r<=i&&e.indexOf(t,r)>-1:!!i&&tS(e,t,r)>-1},rg.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return -1;var i=null==r?0:a6(r);return i<0&&(i=t5(n+i,0)),tS(e,t,i)},rg.inRange=function(e,t,n){var i,a,o;return t=a4(t),n===r?(n=t,t=0):n=a4(n),(i=e=a9(e))>=t3(a=t,o=n)&&i<t5(a,o)},rg.invoke=oh,rg.isArguments=aN,rg.isArray=az,rg.isArrayBuffer=aD,rg.isArrayLike=aF,rg.isArrayLikeObject=aB,rg.isBoolean=function(e){return!0===e||!1===e||aG(e)&&rQ(e)==h},rg.isBuffer=aj,rg.isDate=aW,rg.isElement=function(e){return aG(e)&&1===e.nodeType&&!aZ(e)},rg.isEmpty=function(e){if(null==e)return!0;if(aF(e)&&(az(e)||"string"==typeof e||"function"==typeof e.splice||aj(e)||a1(e)||aN(e)))return!e.length;var t=ib(e);if(t==v||t==k)return!e.size;if(i_(e))return!r7(e).length;for(var r in e)if(eL.call(e,r))return!1;return!0},rg.isEqual=function(e,t){return r4(e,t)},rg.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?r4(e,t,r,n):!!i},rg.isError=aH,rg.isFinite=function(e){return"number"==typeof e&&t0(e)},rg.isFunction=aX,rg.isInteger=aY,rg.isLength=aU,rg.isMap=a$,rg.isMatch=function(e,t){return e===t||r6(e,t,ip(t))},rg.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,r6(e,t,ip(t),n)},rg.isNaN=function(e){return aq(e)&&e!=+e},rg.isNative=function(e){if(iE(e))throw new ew("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r8(e)},rg.isNil=function(e){return null==e},rg.isNull=function(e){return null===e},rg.isNumber=aq,rg.isObject=aV,rg.isObjectLike=aG,rg.isPlainObject=aZ,rg.isRegExp=aK,rg.isSafeInteger=function(e){return aY(e)&&e>=-0x1fffffffffffff&&e<=0x1fffffffffffff},rg.isSet=aQ,rg.isString=aJ,rg.isSymbol=a0,rg.isTypedArray=a1,rg.isUndefined=function(e){return e===r},rg.isWeakMap=function(e){return aG(e)&&ib(e)==A},rg.isWeakSet=function(e){return aG(e)&&"[object WeakSet]"==rQ(e)},rg.join=function(e,t){return null==e?"":t1.call(e,t)},rg.kebabCase=oE,rg.last=iQ,rg.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return -1;var a=i;return n!==r&&(a=(a=a6(n))<0?t5(i+a,0):t3(a,i-1)),t==t?function(e,t,r){for(var n=r+1;n--&&e[n]!==t;);return n}(e,t,a):tk(e,tA,a,!0)},rg.lowerCase=o_,rg.lowerFirst=oT,rg.lt=a2,rg.lte=a5,rg.max=function(e){return e&&e.length?rH(e,oB,rJ):r},rg.maxBy=function(e,t){return e&&e.length?rH(e,id(t,2),rJ):r},rg.mean=function(e){return tE(e,oB)},rg.meanBy=function(e,t){return tE(e,id(t,2))},rg.min=function(e){return e&&e.length?rH(e,oB,ne):r},rg.minBy=function(e,t){return e&&e.length?rH(e,id(t,2),ne):r},rg.stubArray=oK,rg.stubFalse=oQ,rg.stubObject=function(){return{}},rg.stubString=function(){return""},rg.stubTrue=function(){return!0},rg.multiply=o5,rg.nth=function(e,t){return e&&e.length?na(e,a6(t)):r},rg.noConflict=function(){return e6._===this&&(e6._=eF),this},rg.noop=oY,rg.now=ab,rg.pad=function(e,t,r){e=oe(e);var n=(t=a6(t))?tV(e):0;if(!t||n>=t)return e;var i=(t-n)/2;return n2(tK(i),r)+e+n2(tT(i),r)},rg.padEnd=function(e,t,r){e=oe(e);var n=(t=a6(t))?tV(e):0;return t&&n<t?e+n2(t-n,r):e},rg.padStart=function(e,t,r){e=oe(e);var n=(t=a6(t))?tV(e):0;return t&&n<t?n2(t-n,r)+e:e},rg.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),t6(oe(e).replace(J,""),t||0)},rg.random=function(e,t,n){if(n&&"boolean"!=typeof n&&iS(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=a4(e),t===r?(t=e,e=0):t=a4(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=t8();return t3(e+a*(t-e+e2("1e-"+((a+"").length-1))),t)}return nc(e,t)},rg.reduce=function(e,t,r){var n=az(e)?tv:tP,i=arguments.length<3;return n(e,id(t,4),r,i,rB)},rg.reduceRight=function(e,t,r){var n=az(e)?tb:tP,i=arguments.length<3;return n(e,id(t,4),r,i,rj)},rg.repeat=function(e,t,n){return t=(n?iS(e,t,n):t===r)?1:a6(t),nd(oe(e),t)},rg.replace=function(){var e=arguments,t=oe(e[0]);return e.length<3?t:t.replace(e[1],e[2])},rg.result=function(e,t,n){t=nI(t,e);var i=-1,a=t.length;for(a||(a=1,e=r);++i<a;){var o=null==e?r:e[iB(t[i])];o===r&&(i=a,o=n),e=aX(o)?o.call(e):o}return e},rg.round=o3,rg.runInContext=e,rg.sample=function(e){return(az(e)?rE:function(e){return rE(ok(e))})(e)},rg.size=function(e){if(null==e)return 0;if(aF(e))return aJ(e)?tV(e):e.length;var t=ib(e);return t==v||t==k?e.size:r7(e).length},rg.snakeCase=oP,rg.some=function(e,t,n){var i=az(e)?tx:nv;return n&&iS(e,t,n)&&(t=r),i(e,id(t,3))},rg.sortedIndex=function(e,t){return nb(e,t)},rg.sortedIndexBy=function(e,t,r){return nx(e,t,id(r,2))},rg.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=nb(e,t);if(n<r&&aI(e[n],t))return n}return -1},rg.sortedLastIndex=function(e,t){return nb(e,t,!0)},rg.sortedLastIndexBy=function(e,t,r){return nx(e,t,id(r,2),!0)},rg.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=nb(e,t,!0)-1;if(aI(e[r],t))return r}return -1},rg.startCase=oO,rg.startsWith=function(e,t,r){return e=oe(e),r=null==r?0:rR(a6(r),0,e.length),t=nk(t),e.slice(r,r+t.length)==t},rg.subtract=o4,rg.sum=function(e){return e&&e.length?tO(e,oB):0},rg.sumBy=function(e,t){return e&&e.length?tO(e,id(t,2)):0},rg.template=function(e,t,n){var i=rg.templateSettings;n&&iS(e,t,n)&&(t=r),e=oe(e),t=on({},t,i,ie);var a,o,s=on({},t.imports,i.imports,ie),l=of(s),u=tR(s,l),c=0,d=t.interpolate||eg,h="__p += '",f=eA((t.escape||eg).source+"|"+d.source+"|"+(d===G?es:eg).source+"|"+(t.evaluate||eg).source+"|$","g"),p="//# sourceURL="+(eL.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++eQ+"]")+"\n";e.replace(f,function(t,r,n,i,s,l){return n||(n=i),h+=e.slice(c,l).replace(em,tj),r&&(a=!0,h+="' +\n__e("+r+") +\n'"),s&&(o=!0,h+="';\n"+s+";\n__p += '"),n&&(h+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=l+t.length,t}),h+="';\n";var g=eL.call(t,"variable")&&t.variable;if(g){if(ea.test(g))throw new ew("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(o?h.replace(D,""):h).replace(F,"$1").replace(B,"$1;"),h="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(o?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var m=oR(function(){return ek(l,p+"return "+h).apply(r,u)});if(m.source=h,aH(m))throw m;return m},rg.times=function(e,t){if((e=a6(e))<1||e>0x1fffffffffffff)return[];var r=0xffffffff,n=t3(e,0xffffffff);t=id(t),e-=0xffffffff;for(var i=tM(n,t);++r<e;)t(r);return i},rg.toFinite=a4,rg.toInteger=a6,rg.toLength=a8,rg.toLower=function(e){return oe(e).toLowerCase()},rg.toNumber=a9,rg.toSafeInteger=function(e){return e?rR(a6(e),-0x1fffffffffffff,0x1fffffffffffff):0===e?e:0},rg.toString=oe,rg.toUpper=function(e){return oe(e).toUpperCase()},rg.trim=function(e,t,n){if((e=oe(e))&&(n||t===r))return tI(e);if(!e||!(t=nk(t)))return e;var i=tG(e),a=tG(t),o=tz(i,a),s=tD(i,a)+1;return nL(i,o,s).join("")},rg.trimEnd=function(e,t,n){if((e=oe(e))&&(n||t===r))return e.slice(0,t$(e)+1);if(!e||!(t=nk(t)))return e;var i=tG(e),a=tD(i,tG(t))+1;return nL(i,0,a).join("")},rg.trimStart=function(e,t,n){if((e=oe(e))&&(n||t===r))return e.replace(J,"");if(!e||!(t=nk(t)))return e;var i=tG(e),a=tz(i,tG(t));return nL(i,a).join("")},rg.truncate=function(e,t){var n=30,i="...";if(aV(t)){var a="separator"in t?t.separator:a;n="length"in t?a6(t.length):n,i="omission"in t?nk(t.omission):i}var o=(e=oe(e)).length;if(tW(e)){var s=tG(e);o=s.length}if(n>=o)return e;var l=n-tV(i);if(l<1)return i;var u=s?nL(s,0,l).join(""):e.slice(0,l);if(a===r)return u+i;if(s&&(l+=u.length-l),aK(a)){if(e.slice(l).search(a)){var c,d=u;for(a.global||(a=eA(a.source,oe(el.exec(a))+"g")),a.lastIndex=0;c=a.exec(d);)var h=c.index;u=u.slice(0,h===r?l:h)}}else if(e.indexOf(nk(a),l)!=l){var f=u.lastIndexOf(a);f>-1&&(u=u.slice(0,f))}return u+i},rg.unescape=function(e){return(e=oe(e))&&X.test(e)?e.replace(W,tq):e},rg.uniqueId=function(e){var t=++eR;return oe(e)+t},rg.upperCase=oM,rg.upperFirst=oI,rg.each=ac,rg.eachRight=ad,rg.first=i$,oX(rg,(eb={},rG(rg,function(e,t){eL.call(rg.prototype,t)||(eb[t]=e)}),eb),{chain:!1}),rg.VERSION="4.17.21",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){rg[e].placeholder=rg}),tc(["drop","take"],function(e,t){rx.prototype[e]=function(n){n=n===r?1:t5(a6(n),0);var i=this.__filtered__&&!t?new rx(this):this.clone();return i.__filtered__?i.__takeCount__=t3(n,i.__takeCount__):i.__views__.push({size:t3(n,0xffffffff),type:e+(i.__dir__<0?"Right":"")}),i},rx.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tc(["filter","map","takeWhile"],function(e,t){var r=t+1,n=1==r||3==r;rx.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:id(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}}),tc(["head","last"],function(e,t){var r="take"+(t?"Right":"");rx.prototype[e]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(e,t){var r="drop"+(t?"":"Right");rx.prototype[e]=function(){return this.__filtered__?new rx(this):this[r](1)}}),rx.prototype.compact=function(){return this.filter(oB)},rx.prototype.find=function(e){return this.filter(e).head()},rx.prototype.findLast=function(e){return this.reverse().find(e)},rx.prototype.invokeMap=nh(function(e,t){return"function"==typeof e?new rx(this):this.map(function(r){return r5(r,e,t)})}),rx.prototype.reject=function(e){return this.filter(a_(id(e)))},rx.prototype.slice=function(e,t){e=a6(e);var n=this;return n.__filtered__&&(e>0||t<0)?new rx(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=a6(t))<0?n.dropRight(-t):n.take(t-e)),n)},rx.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},rx.prototype.toArray=function(){return this.take(0xffffffff)},rG(rx.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=rg[i?"take"+("last"==t?"Right":""):t],o=i||/^find/.test(t);a&&(rg.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,l=t instanceof rx,u=s[0],c=l||az(t),d=function(e){var t=a.apply(rg,tm([e],s));return i&&h?t[0]:t};c&&n&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=o&&!h,g=l&&!f;if(!o&&c){t=g?t:new rx(this);var m=e.apply(t,s);return m.__actions__.push({func:aa,args:[d],thisArg:r}),new rb(m,h)}return p&&g?e.apply(this,s):(m=this.thru(d),p?i?m.value()[0]:m.value():m)})}),tc(["pop","push","shift","sort","splice","unshift"],function(e){var t=eT[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);rg.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var i=this.value();return t.apply(az(i)?i:[],e)}return this[r](function(r){return t.apply(az(r)?r:[],e)})}}),rG(rx.prototype,function(e,t){var r=rg[t];if(r){var n=r.name+"";eL.call(ro,n)||(ro[n]=[]),ro[n].push({name:t,func:r})}}),ro[nQ(r,2).name]=[{name:"wrapper",func:r}],rx.prototype.clone=function(){var e=new rx(this.__wrapped__);return e.__actions__=nW(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=nW(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=nW(this.__views__),e},rx.prototype.reverse=function(){if(this.__filtered__){var e=new rx(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e},rx.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=az(e),n=t<0,i=r?e.length:0,a=function(e,t,r){for(var n=-1,i=r.length;++n<i;){var a=r[n],o=a.size;switch(a.type){case"drop":e+=o;break;case"dropRight":t-=o;break;case"take":t=t3(t,e+o);break;case"takeRight":e=t5(e,t-o)}}return{start:e,end:t}}(0,i,this.__views__),o=a.start,s=a.end,l=s-o,u=n?s:o-1,c=this.__iteratees__,d=c.length,h=0,f=t3(l,this.__takeCount__);if(!r||!n&&i==l&&f==l)return n_(e,this.__actions__);var p=[];r:for(;l--&&h<f;){for(var g=-1,m=e[u+=t];++g<d;){var v=c[g],b=v.iteratee,x=v.type,y=b(m);if(2==x)m=y;else if(!y){if(1==x)continue r;break r}}p[h++]=m}return p},rg.prototype.at=ao,rg.prototype.chain=function(){return ai(this)},rg.prototype.commit=function(){return new rb(this.value(),this.__chain__)},rg.prototype.next=function(){this.__values__===r&&(this.__values__=a3(this.value()));var e=this.__index__>=this.__values__.length,t=e?r:this.__values__[this.__index__++];return{done:e,value:t}},rg.prototype.plant=function(e){for(var t,n=this;n instanceof rv;){var i=iW(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},rg.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof rx){var t=e;return this.__actions__.length&&(t=new rx(this)),(t=t.reverse()).__actions__.push({func:aa,args:[i2],thisArg:r}),new rb(t,this.__chain__)}return this.thru(i2)},rg.prototype.toJSON=rg.prototype.valueOf=rg.prototype.value=function(){return n_(this.__wrapped__,this.__actions__)},rg.prototype.first=rg.prototype.head,e4&&(rg.prototype[e4]=function(){return this}),rg}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(e6._=tZ,define(function(){return tZ})):e9?((e9.exports=tZ)._=tZ,e8._=tZ):e6._=tZ}).call(this)}),c("aGtkM",function(e,t){var r=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.canComputeHighCpuUsage=e.exports.getHighCpuStats=e.exports.getAverageTotalHighCPUUsage=e.exports.getHighCpuUsage=void 0;var n=u("eBeAh");let i=r(u("f1q41"));var a=u("kRe4d"),o=u("fhQEn"),s=u("bHkVK");e.exports.getHighCpuUsage=(e,t=90)=>(0,i.default)(e).map(e=>e.cpu).map(({perName:e})=>Object.keys(e).map(t=>({processName:t,cpuUsage:e[t]}))).flatten().filter(e=>e.cpuUsage>t).groupBy(e=>e.processName).mapValues(e=>e.length*n.POLLING_INTERVAL).value(),e.exports.getAverageTotalHighCPUUsage=e=>Object.keys(e).reduce((t,r)=>t+e[r],0);let l=t=>{let r={};t.forEach(t=>{let n=(0,e.exports.getHighCpuUsage)(t.measures);Object.keys(n).forEach(e=>{r[e]||(r[e]=[]),r[e].push(n[e])})});let n={};return Object.keys(r).forEach(e=>{let t=r[e],i=t.reduce((e,t)=>e+t,0)/t.length,l=(0,o.getStandardDeviation)({values:t,average:i});n[e]={minMaxRange:(0,a.getMinMax)(t),deviationRange:l.deviationRange,variationCoefficient:(0,s.variationCoefficient)(i,l.deviation)}}),n};e.exports.getHighCpuStats=(t,r)=>{let n=(0,e.exports.getAverageTotalHighCPUUsage)(r),i=t.map(t=>(0,e.exports.getAverageTotalHighCPUUsage)((0,e.exports.getHighCpuUsage)(t.measures))),u=(0,o.getStandardDeviation)({values:i,average:n});return{threads:l(t),minMaxRange:(0,a.getMinMax)(i),deviationRange:u.deviationRange,variationCoefficient:(0,s.variationCoefficient)(n,u.deviation)}},e.exports.canComputeHighCpuUsage=e=>{if(0===e.average.measures.length)return!0;let t=Object.keys(e.average.measures[e.average.measures.length-1].cpu.perName);return 1!==t.length||"Total"!==t[0]}}),c("kRe4d",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getMinMax=void 0;var r=u("9o5aC");e.exports.getMinMax=e=>{let t=[Math.min(...e),Math.max(...e)].map(r.roundToDecimal);return[t[0],t[1]]}}),c("9o5aC",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.roundToDecimal=void 0,e.exports.roundToDecimal=(e,t=1)=>{let r=Math.pow(10,t);return Math.round(e*r)/r}}),c("fhQEn",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getStandardDeviation=void 0;var r=u("9o5aC");e.exports.getStandardDeviation=({values:e,average:t})=>{let n=Math.sqrt(e.reduce((e,r)=>{let n=r-t;return e+n*n},0)/e.length),i=[t-n,t+n].map(r.roundToDecimal);return{deviation:n,deviationRange:[i[0],i[1]]}}}),c("bHkVK",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.variationCoefficient=void 0;var r=u("9o5aC");e.exports.variationCoefficient=(e,t)=>e>0?(0,r.roundToDecimal)(t/e*100):0}),c("3o6tv",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getScore=void 0;var r=u("eBeAh"),n=u("f1q41"),i=u("l2OiA"),a=u("gn3nd"),o=u("3Flq6"),s=u("aGtkM");let l=e=>Math.min(Math.max(0,-.31666666666667*e+116),100);e.exports.getScore=e=>{var t,u;let c=(0,o.getAverageFPSUsage)(e.average.measures),d=(0,a.getAverageCpuUsage)(e.average.measures),h=Object.keys(e.averageHighCpuUsage).reduce((t,r)=>t+e.averageHighCpuUsage[r],0),f=[l(d)];if(void 0!==c){let r=100*c/(null!==(u=null===(t=null==e?void 0:e.specs)||void 0===t?void 0:t.refreshRate)&&void 0!==u?u:60);f.push(r)}let p=e.average.measures.length*r.POLLING_INTERVAL,g=(0,s.canComputeHighCpuUsage)(e)?h/p:0;return(0,n.round)(Math.max(0,(0,i.average)(f)*(1-g)),0)}}),c("gn3nd",function(e,t){var r,n=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e.exports&&e.exports.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a=r(e),o=0;o<a.length;o++)"default"!==a[o]&&n(t,e,a[o]);return i(t,e),t});Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getThreadsStats=e.exports.getCpuStats=e.exports.getMinMaxCPU=e.exports.getStandardDeviationCPU=e.exports.getAverageCpuUsage=e.exports.getAverageCpuUsagePerProcess=void 0;let o=a(u("f1q41"));var s=u("kRe4d"),l=u("fhQEn"),c=u("bHkVK");let d=e=>(0,o.default)(e).map(e=>e.cpu).map(({perName:e})=>Object.keys(e).map(t=>({processName:t,cpuUsage:e[t]}))).flatten().groupBy(e=>e.processName).map((t,r)=>({processName:r,cpuUsage:o.default.sumBy(t,e=>e.cpuUsage)/e.length})).orderBy(e=>e.cpuUsage,"desc").value();e.exports.getAverageCpuUsagePerProcess=e=>d(e).map(e=>Object.assign(Object.assign({},e),{cpuUsage:(0,o.round)(e.cpuUsage,1)})),e.exports.getAverageCpuUsage=e=>d(e).reduce((e,{cpuUsage:t})=>e+t,0),e.exports.getStandardDeviationCPU=(t,r)=>{let n=t.map(t=>(0,e.exports.getAverageCpuUsage)(t.measures));return(0,l.getStandardDeviation)({values:n,average:r})},e.exports.getMinMaxCPU=t=>{let r=t.map(t=>(0,e.exports.getAverageCpuUsage)(t.measures));return(0,s.getMinMax)(r)},e.exports.getCpuStats=(t,r)=>{let n=(0,e.exports.getStandardDeviationCPU)(t,r);return{minMaxRange:(0,e.exports.getMinMaxCPU)(t),deviationRange:n.deviationRange,variationCoefficient:(0,c.variationCoefficient)(r,n.deviation)}},e.exports.getThreadsStats=e=>{let t={};e.forEach(e=>{d(e.measures).forEach(e=>{t[e.processName]||(t[e.processName]=[]),t[e.processName].push(e.cpuUsage)})});let r={};return Object.keys(t).forEach(e=>{let n=t[e],i=n.reduce((e,t)=>e+t,0)/n.length,a=(0,l.getStandardDeviation)({values:n,average:i});r[e]={minMaxRange:(0,s.getMinMax)(n),deviationRange:a.deviationRange,variationCoefficient:(0,c.variationCoefficient)(i,a.deviation)}}),r}}),c("3Flq6",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getFpsStats=e.exports.getStandardDeviationFPS=e.exports.getAverageFPSUsage=void 0;var r=u("kRe4d"),n=u("fhQEn"),i=u("l2OiA"),a=u("bHkVK");e.exports.getAverageFPSUsage=e=>(0,i.average)(e.map(e=>e.fps)),e.exports.getStandardDeviationFPS=(t,r)=>{let i=[];return t.forEach(t=>{let r=(0,e.exports.getAverageFPSUsage)(t.measures);r&&i.push(r)}),(0,n.getStandardDeviation)({values:i,average:r})};let o=t=>{let n=[];return t.forEach(t=>{let r=(0,e.exports.getAverageFPSUsage)(t.measures);r&&n.push(r)}),(0,r.getMinMax)(n)};e.exports.getFpsStats=(t,r)=>{if(!r)return;let n=(0,e.exports.getStandardDeviationFPS)(t,r);return{minMaxRange:o(t),deviationRange:n.deviationRange,variationCoefficient:(0,a.variationCoefficient)(r,n.deviation)}}}),c("fLrBH",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.Report=void 0;var r=u("9o5aC"),n=u("l2OiA"),i=u("3o6tv"),a=u("gn3nd"),o=u("3Flq6"),s=u("aGtkM"),l=u("axKOu"),c=u("41cxj"),d=u("grT6J");class h{constructor(e){this.result=h.filterSuccessfulIterations(e),this.averagedResult=(0,n.averageTestCaseResult)(this.result),this.averageMetrics=h.getAverageMetrics(this.averagedResult)}static getAverageMetrics(e){let t=(0,r.roundToDecimal)(e.average.time,0),n=(0,o.getAverageFPSUsage)(e.average.measures),i=(0,r.roundToDecimal)((0,a.getAverageCpuUsage)(e.average.measures),1),u=(0,r.roundToDecimal)((0,s.getAverageTotalHighCPUUsage)(e.averageHighCpuUsage)/1e3,1),c=(0,l.getAverageRAMUsage)(e.average.measures);return{runtime:t,fps:n?(0,r.roundToDecimal)(n,1):void 0,cpu:i,totalHighCpuTime:u,ram:c?(0,r.roundToDecimal)(c,1):void 0,averageNavigationTime:(0,d.getAverageNavigationTime)(e.average.measures),averageCpuUsagePerProcess:(0,a.getAverageCpuUsagePerProcess)(e.average.measures)}}static filterSuccessfulIterations(e){return Object.assign(Object.assign({},e),{iterations:"SUCCESS"===e.status?e.iterations.filter(e=>"SUCCESS"===e.status):e.iterations})}get name(){return this.result.name}get status(){return this.result.status}get score(){var e;return null!==(e=this.averagedResult.score)&&void 0!==e?e:(0,i.getScore)(this.averagedResult)}getIterationCount(){return this.result.iterations.length}hasMeasures(){var e;return(null===(e=this.result.iterations[0])||void 0===e?void 0:e.measures.length)>0}hasVideos(){var e;return!!(null===(e=this.result.iterations[0])||void 0===e?void 0:e.videoInfos)}selectIteration(e){return new h(Object.assign(Object.assign({},this.result),{iterations:[this.result.iterations[e]]}))}getAveragedResult(){return this.averagedResult}getAverageMetrics(){return this.averageMetrics}getStats(){let e=this.result.iterations;return{cpu:(0,a.getCpuStats)(e,this.averageMetrics.cpu),fps:(0,o.getFpsStats)(e,this.averageMetrics.fps),highCpu:(0,s.getHighCpuStats)(e,this.averagedResult.averageHighCpuUsage),ram:(0,l.getRamStats)(e,this.averageMetrics.ram),runtime:(0,c.getRuntimeStats)(e,this.averageMetrics.runtime),threads:(0,a.getThreadsStats)(e)}}getRefreshRate(){var e,t;return null!==(t=null===(e=this.result.specs)||void 0===e?void 0:e.refreshRate)&&void 0!==t?t:60}}e.exports.Report=h}),c("axKOu",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getRamStats=e.exports.getAverageRAMUsage=void 0;var r=u("kRe4d"),n=u("fhQEn"),i=u("l2OiA"),a=u("bHkVK");e.exports.getAverageRAMUsage=e=>(0,i.average)(e.map(e=>e.ram)),e.exports.getRamStats=(t,i)=>{if(!i)return;let o=[];t.forEach(t=>{let r=(0,e.exports.getAverageRAMUsage)(t.measures);r&&o.push(r)});let s=(0,n.getStandardDeviation)({values:o,average:i});return{minMaxRange:(0,r.getMinMax)(o),deviationRange:s.deviationRange,variationCoefficient:(0,a.variationCoefficient)(i,s.deviation)}}}),c("41cxj",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getRuntimeStats=void 0;var r=u("kRe4d"),n=u("fhQEn"),i=u("bHkVK");e.exports.getRuntimeStats=(e,t)=>{let a=e.map(e=>e.time),o=(0,n.getStandardDeviation)({values:a,average:t});return{minMaxRange:(0,r.getMinMax)(a),deviationRange:o.deviationRange,variationCoefficient:(0,i.variationCoefficient)(t,o.deviation)}}}),c("grT6J",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.getNavigationStats=e.exports.getSlowestNavigations=e.exports.getAverageNavigationTime=void 0;let r=e=>e.flatMap(e=>{var t;return null!==(t=e.tpn)&&void 0!==t?t:[]});e.exports.getAverageNavigationTime=e=>{let t=r(e);if(0!==t.length)return t.reduce((e,t)=>e+t.duration,0)/t.length},e.exports.getSlowestNavigations=(e,t=5)=>[...r(e)].sort((e,t)=>t.duration-e.duration).slice(0,t),e.exports.getNavigationStats=e=>{let t={};for(let n of e)for(let e of r(n.measures)){let r=`${e.from} -> ${e.to}`;t[r]||(t[r]=[]),t[r].push(e.duration)}let n={};for(let[e,r]of Object.entries(t)){let t=r.reduce((e,t)=>e+t,0);n[e]={average:t/r.length,min:Math.min(...r),max:Math.max(...r),count:r.length}}return n}}),c("hwG3t",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.sanitizeProcessName=void 0,e.exports.sanitizeProcessName=e=>"("===e[0]?e.slice(1,e.length-(")"===e[e.length-1]?1:0)):e}),c("gRWcN",function(e,t){var r,n=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=e.exports&&e.exports.__importStar||(r=function(e){return(r=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a=r(e),o=0;o<a.length;o++)"default"!==a[o]&&n(t,e,a[o]);return i(t,e),t}),o=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=function({rows:e,selected:t,setSelected:r,headCells:n}){let[i,a]=s.useState("desc"),[o,l]=s.useState(n[1].id),u=(e,n)=>{let i=t.indexOf(n),a=[];-1===i?a=a.concat(t,n):0===i?a=a.concat(t.slice(1)):i===t.length-1?a=a.concat(t.slice(0,-1)):i>0&&(a=a.concat(t.slice(0,i),t.slice(i+1))),r(a)},p=e=>-1!==t.indexOf(e);return s.createElement(f.default,{sx:{maxHeight:400}},s.createElement(c.default,{stickyHeader:!0,size:"small"},s.createElement(k,{headCells:n,numSelected:t.length,order:i,orderBy:o,onSelectAllClick:t=>{if(t.target.checked){r(e.map(e=>e.name));return}r([])},onRequestSort:(e,t)=>{a(o===t&&"asc"===i?"desc":"asc"),l(t)},rowCount:e.length}),s.createElement(d.default,null,(function(e,t){let r=e.map((e,t)=>[e,t]);return r.sort((e,r)=>{let n=t(e[0],r[0]);return 0!==n?n:e[1]-r[1]}),r.map(e=>e[0])})(e,"desc"===i?(e,t)=>w(e,t,o):(e,t)=>-w(e,t,o)).map((e,t)=>{let r=p(e.name),i=`enhanced-table-checkbox-${t}`;return s.createElement(g.default,{hover:!0,onClick:t=>u(t,e.name),role:"checkbox","aria-checked":r,tabIndex:-1,key:e.name,selected:r},s.createElement(h.default,{padding:"checkbox",className:"!text-neutral-300 border-b-neutral-500"},s.createElement(v.default,{color:"primary",checked:r,inputProps:{"aria-labelledby":i},className:"!text-neutral-300"})),s.createElement(h.default,{component:"th",id:i,scope:"row",padding:"none",className:"!text-neutral-300 border-b-neutral-500"},(0,x.sanitizeProcessName)(e.name)),n.slice(1).map(t=>s.createElement(h.default,{align:"right",key:t.id,className:"!text-neutral-300 border-b-neutral-500"},e[t.id])))}))))};let s=a(u("acw62")),l=o(u("e5o5x")),c=o(u("bGe9g")),d=o(u("5hLrb")),h=o(u("hjoMW")),f=o(u("12YAp")),p=o(u("g2Lhl")),g=o(u("7IILB")),m=o(u("Zain6")),v=o(u("aGDqy"));var b=u("4JEKO"),x=u("jHhct"),y=u("idOT2");function w(e,t,r){return t[r]<e[r]?-1:t[r]>e[r]?1:0}function k(e){let{order:t,orderBy:r,onRequestSort:n}=e,i=e=>t=>{n(t,e)};return s.createElement(p.default,null,s.createElement(g.default,null,s.createElement(h.default,{padding:"checkbox",className:"!text-neutral-300 !bg-dark-charcoal"}),e.headCells.map(e=>s.createElement(h.default,{key:e.id,align:e.numeric?"right":"left",padding:e.disablePadding?"none":"normal",sortDirection:r===e.id&&t,className:"!text-neutral-300 !bg-dark-charcoal"},s.createElement(m.default,{active:r===e.id,direction:r===e.id?t:"asc",onClick:i(e.id),className:"!text-neutral-300 ",style:{color:"white",fontWeight:r===e.id?700:400},IconComponent:({className:e})=>s.createElement(y.ArrowDownIcon,{className:e})},e.label,r===e.id?s.createElement(l.default,{component:"span",sx:b.default},"desc"===t?"sorted descending":"sorted ascending"):null)))))}}),c("e5o5x",function(e,t){i(e.exports),r(e.exports,"default",()=>u("03mUs").default),r(e.exports,"boxClasses",()=>u("hOwN9").default),u("03mUs");var n=u("hOwN9");a(e.exports,n)}),c("03mUs",function(e,t){r(e.exports,"default",()=>c);var n=u("fP77M"),i=u("bnost"),a=u("ijOKP"),o=u("4jPsi"),s=u("hOwN9");let l=(0,a.default)();var c=(0,n.default)({themeId:o.default,defaultTheme:l,defaultClassName:s.default.root,generateClassName:i.default.generate})}),c("fP77M",function(e,t){r(e.exports,"default",()=>p);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("bOOlK"),l=u("9dZwz"),c=u("hcz0Q"),d=u("7HKeb"),h=u("ayMG0");let f=["className","component"];function p(e={}){let{themeId:t,defaultTheme:r,defaultClassName:u="MuiBox-root",generateClassName:g}=e,m=(0,s.default)("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(l.default);return /*#__PURE__*/a.forwardRef(function(e,a){let s=(0,d.default)(r),l=(0,c.default)(e),{className:p,component:v="div"}=l,b=(0,i.default)(l,f);return/*#__PURE__*/(0,h.jsx)(m,(0,n.default)({as:v,ref:a,className:(0,o.default)(p,g?g(u):u),theme:t&&s[t]||s},b))})}}),c("8nd05",function(e,t){r(e.exports,"default",()=>n);function n(){return(n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}}),c("1En50",function(e,t){r(e.exports,"default",()=>n);function n(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}}),c("9QePP",function(e,t){r(e.exports,"default",()=>n);var n=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}}),c("bOOlK",function(e,t){i(e.exports),r(e.exports,"default",()=>a),r(e.exports,"internal_processStyles",()=>o),r(e.exports,"ThemeContext",()=>u("l7wW1").T),r(e.exports,"keyframes",()=>u("jjlaj").keyframes),r(e.exports,"css",()=>u("jjlaj").css),r(e.exports,"StyledEngineProvider",()=>u("2BuCw").default),r(e.exports,"GlobalStyles",()=>u("bBbjn").default);/**
|
|
2
|
+
* @mui/styled-engine v5.16.8
|
|
3
|
+
*
|
|
4
|
+
* @license MIT
|
|
5
|
+
* This source code is licensed under the MIT license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/var n=u("5rflj");function a(e,t){return(0,n.default)(e,t)}u("jjlaj"),u("l7wW1"),u("2BuCw"),u("bBbjn");let o=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}}),c("5rflj",function(e,t){i(e.exports),r(e.exports,"default",()=>a);var n=u("dAzjV");u("3p9rK"),u("acw62"),u("gd942"),u("8ajhZ"),u("8rteH"),u("2lACw");var a=(0,n.default).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){a[e]=a(e)})}),c("dAzjV",function(e,t){r(e.exports,"default",()=>v);var n=u("8nd05"),i=u("acw62"),a=u("gd942");u("jjlaj");var o=u("l7wW1"),s=u("8ajhZ"),l=u("8rteH"),c=u("2lACw"),d=a.default,h=function(e){return"theme"!==e},f=function(e){return"string"==typeof e&&e.charCodeAt(0)>96?d:h},p=function(e,t,r){var n;if(t){var i=t.shouldForwardProp;n=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return"function"!=typeof n&&r&&(n=e.__emotion_forwardProp),n},g="undefined"!=typeof document,m=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;(0,s.registerStyles)(t,r,n);var a=(0,c.useInsertionEffectAlwaysWithSyncFallback)(function(){return(0,s.insertStyles)(t,r,n)});if(!g&&void 0!==a){for(var o,l=r.name,u=r.next;void 0!==u;)l+=" "+u.name,u=u.next;return /*#__PURE__*/i.createElement("style",((o={})["data-emotion"]=t.key+" "+l,o.dangerouslySetInnerHTML={__html:a},o.nonce=t.sheet.nonce,o))}return null},v=function e(t,r){var a,u,c=t.__emotion_real===t,d=c&&t.__emotion_base||t;void 0!==r&&(a=r.label,u=r.target);var h=p(t,r,c),g=h||f(d),v=!g("as");return function(){var b=arguments,x=c&&void 0!==t.__emotion_styles?t.__emotion_styles.slice(0):[];if(void 0!==a&&x.push("label:"+a+";"),null==b[0]||void 0===b[0].raw)x.push.apply(x,b);else{x.push(b[0][0]);for(var y=b.length,w=1;w<y;w++)x.push(b[w],b[0][w])}var k=(0,o.w)(function(e,t,r){var n=v&&e.as||d,a="",c=[],p=e;if(null==e.theme){for(var b in p={},e)p[b]=e[b];p.theme=i.useContext(o.T)}"string"==typeof e.className?a=(0,s.getRegisteredStyles)(t.registered,c,e.className):null!=e.className&&(a=e.className+" ");var y=(0,l.serializeStyles)(x.concat(c),t.registered,p);a+=t.key+"-"+y.name,void 0!==u&&(a+=" "+u);var w=v&&void 0===h?f(n):g,k={};for(var S in e)(!v||"as"!==S)&&w(S)&&(k[S]=e[S]);return k.className=a,r&&(k.ref=r),/*#__PURE__*/i.createElement(i.Fragment,null,/*#__PURE__*/i.createElement(m,{cache:t,serialized:y,isStringTag:"string"==typeof n}),/*#__PURE__*/i.createElement(n,k))});return k.displayName=void 0!==a?a:"Styled("+("string"==typeof d?d:d.displayName||d.name||"Component")+")",k.defaultProps=t.defaultProps,k.__emotion_real=k,k.__emotion_base=d,k.__emotion_styles=x,k.__emotion_forwardProp=h,Object.defineProperty(k,"toString",{value:function(){return"."+u}}),k.withComponent=function(t,i){return e(t,(0,n.default)({},r,i,{shouldForwardProp:p(k,i,!0)})).apply(void 0,x)},k}}}),c("gd942",function(e,t){r(e.exports,"default",()=>a);var n=u("9ffXE"),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|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,a=/* #__PURE__ */(0,n.default)(function(e){return i.test(e)||111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&91>e.charCodeAt(2)})}),c("9ffXE",function(e,t){r(e.exports,"default",()=>n);function n(e){var t=Object.create(null);return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}}),c("jjlaj",function(e,t){r(e.exports,"Global",()=>l),r(e.exports,"css",()=>c),r(e.exports,"keyframes",()=>d),r(e.exports,"ThemeContext",()=>u("l7wW1").T),r(e.exports,"withEmotionCache",()=>u("l7wW1").w);var n=u("l7wW1"),i=u("acw62"),a=u("8ajhZ"),o=u("2lACw"),s=u("8rteH");u("a9M6v"),u("3p9rK"),u("iq6RI"),u("9ORqK");var l=/* #__PURE__ */(0,n.w)(function(e,t){var r=e.styles,l=(0,s.serializeStyles)([r],void 0,i.useContext(n.T));if(!n.i){for(var u,c=l.name,d=l.styles,h=l.next;void 0!==h;)c+=" "+h.name,d+=h.styles,h=h.next;var f=!0===t.compat,p=t.insert("",{name:c,styles:d},t.sheet,f);return f?null:/*#__PURE__*/i.createElement("style",((u={})["data-emotion"]=t.key+"-global "+c,u.dangerouslySetInnerHTML={__html:p},u.nonce=t.sheet.nonce,u))}var g=i.useRef();return(0,o.useInsertionEffectWithLayoutFallback)(function(){var e=t.key+"-global",r=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),n=!1,i=document.querySelector('style[data-emotion="'+e+" "+l.name+'"]');return t.sheet.tags.length&&(r.before=t.sheet.tags[0]),null!==i&&(n=!0,i.setAttribute("data-emotion",e),r.hydrate([i])),g.current=[r,n],function(){r.flush()}},[t]),(0,o.useInsertionEffectWithLayoutFallback)(function(){var e=g.current,r=e[0];if(e[1]){e[1]=!1;return}if(void 0!==l.next&&(0,a.insertStyles)(t,l.next,!0),r.tags.length){var n=r.tags[r.tags.length-1].nextElementSibling;r.before=n,r.flush()}t.insert("",l,r,!1)},[t,l.name]),null});function c(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,s.serializeStyles)(t)}var d=function(){var e=c.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}}),c("l7wW1",function(e,t){r(e.exports,"a",()=>l),r(e.exports,"i",()=>c),r(e.exports,"C",()=>h),r(e.exports,"w",()=>f),r(e.exports,"T",()=>p),r(e.exports,"h",()=>g),r(e.exports,"c",()=>v),r(e.exports,"E",()=>x);var n=u("acw62"),i=u("a9M6v");u("8nd05"),u("iq6RI"),u("apDLo");var a=u("8ajhZ"),o=u("8rteH"),s=u("2lACw"),l=!1,c="undefined"!=typeof document,d=/* #__PURE__ */n.createContext("undefined"!=typeof HTMLElement?/* #__PURE__ */(0,i.default)({key:"css"}):null),h=d.Provider,f=function(e){return/*#__PURE__*/(0,n.forwardRef)(function(t,r){return e(t,(0,n.useContext)(d),r)})};c||(f=function(e){return function(t){var r=(0,n.useContext)(d);return null===r?(r=(0,i.default)({key:"css"}),/*#__PURE__*/n.createElement(d.Provider,{value:r},e(t,r))):e(t,r)}});var p=/* #__PURE__ */n.createContext({}),g={}.hasOwnProperty,m="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",v=function(e,t){var r={};for(var n in t)g.call(t,n)&&(r[n]=t[n]);return r[m]=e,r},b=function(e){var t=e.cache,r=e.serialized,i=e.isStringTag;(0,a.registerStyles)(t,r,i);var o=(0,s.useInsertionEffectAlwaysWithSyncFallback)(function(){return(0,a.insertStyles)(t,r,i)});if(!c&&void 0!==o){for(var l,u=r.name,d=r.next;void 0!==d;)u+=" "+d.name,d=d.next;return /*#__PURE__*/n.createElement("style",((l={})["data-emotion"]=t.key+" "+u,l.dangerouslySetInnerHTML={__html:o},l.nonce=t.sheet.nonce,l))}return null},x=/* #__PURE__ */f(function(e,t,r){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var s=e[m],u=[i],c="";"string"==typeof e.className?c=(0,a.getRegisteredStyles)(t.registered,u,e.className):null!=e.className&&(c=e.className+" ");var d=(0,o.serializeStyles)(u,void 0,n.useContext(p));c+=t.key+"-"+d.name;var h={};for(var f in e)g.call(e,f)&&"css"!==f&&f!==m&&!l&&(h[f]=e[f]);return h.className=c,r&&(h.ref=r),/*#__PURE__*/n.createElement(n.Fragment,null,/*#__PURE__*/n.createElement(b,{cache:t,serialized:d,isStringTag:"string"==typeof s}),/*#__PURE__*/n.createElement(s,h))})}),c("a9M6v",function(e,t){r(e.exports,"default",()=>m);var n=u("jmRmf"),i=u("fm8kz"),a=u("iq6RI"),o=u("9ffXE"),s="undefined"!=typeof document,l=function(e,t,r){for(var n=0,a=0;n=a,a=(0,i.peek)(),38===n&&12===a&&(t[r]=1),!(0,i.token)(a);)(0,i.next)();return(0,i.slice)(e,i.position)},c=function(e,t){var r=-1,n=44;do switch((0,i.token)(n)){case 0:38===n&&12===(0,i.peek)()&&(t[r]=1),e[r]+=l(i.position-1,t,r);break;case 2:e[r]+=(0,i.delimit)(n);break;case 4:if(44===n){e[++r]=58===(0,i.peek)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,i.from)(n)}while(n=(0,i.next)())return e},d=/* #__PURE__ */new WeakMap,h=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||d.get(r))&&!n){d.set(e,!0);for(var a=[],o=(0,i.dealloc)(c((0,i.alloc)(t),a)),s=r.props,l=0,u=0;l<o.length;l++)for(var h=0;h<s.length;h++,u++)e.props[u]=a[l]?o[l].replace(/&\f/g,s[h]):s[h]+" "+o[l]}}},f=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},p=s?void 0:(0,a.default)(function(){return(0,o.default)(function(){var e={};return function(t){return e[t]}})}),g=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case i.DECLARATION:e.return=function e(t,r){switch((0,i.hash)(t,r)){case 5103:return i.WEBKIT+"print-"+t+t;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 i.WEBKIT+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i.WEBKIT+t+i.MOZ+t+i.MS+t+t;case 6828:case 4268:return i.WEBKIT+t+i.MS+t+t;case 6165:return i.WEBKIT+t+i.MS+"flex-"+t+t;case 5187:return i.WEBKIT+t+(0,i.replace)(t,/(\w+).+(:[^]+)/,i.WEBKIT+"box-$1$2"+i.MS+"flex-$1$2")+t;case 5443:return i.WEBKIT+t+i.MS+"flex-item-"+(0,i.replace)(t,/flex-|-self/,"")+t;case 4675:return i.WEBKIT+t+i.MS+"flex-line-pack"+(0,i.replace)(t,/align-content|flex-|-self/,"")+t;case 5548:return i.WEBKIT+t+i.MS+(0,i.replace)(t,"shrink","negative")+t;case 5292:return i.WEBKIT+t+i.MS+(0,i.replace)(t,"basis","preferred-size")+t;case 6060:return i.WEBKIT+"box-"+(0,i.replace)(t,"-grow","")+i.WEBKIT+t+i.MS+(0,i.replace)(t,"grow","positive")+t;case 4554:return i.WEBKIT+(0,i.replace)(t,/([^-])(transform)/g,"$1"+i.WEBKIT+"$2")+t;case 6187:return(0,i.replace)((0,i.replace)((0,i.replace)(t,/(zoom-|grab)/,i.WEBKIT+"$1"),/(image-set)/,i.WEBKIT+"$1"),t,"")+t;case 5495:case 3959:return(0,i.replace)(t,/(image-set\([^]*)/,i.WEBKIT+"$1$`$1");case 4968:return(0,i.replace)((0,i.replace)(t,/(.+:)(flex-)?(.*)/,i.WEBKIT+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.WEBKIT+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.replace)(t,/(.+)-inline(.+)/,i.WEBKIT+"$1$2")+t;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((0,i.strlen)(t)-1-r>6)switch((0,i.charat)(t,r+1)){case 109:if(45!==(0,i.charat)(t,r+4))break;case 102:return(0,i.replace)(t,/(.+:)(.+)-([^]+)/,"$1"+i.WEBKIT+"$2-$3$1"+i.MOZ+(108==(0,i.charat)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.indexof)(t,"stretch")?e((0,i.replace)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.charat)(t,r+1))break;case 6444:switch((0,i.charat)(t,(0,i.strlen)(t)-3-(~(0,i.indexof)(t,"!important")&&10))){case 107:return(0,i.replace)(t,":",":"+i.WEBKIT)+t;case 101:return(0,i.replace)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.WEBKIT+(45===(0,i.charat)(t,14)?"inline-":"")+"box$3$1"+i.WEBKIT+"$2$3$1"+i.MS+"$2box$3")+t}break;case 5936:switch((0,i.charat)(t,r+11)){case 114:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return i.WEBKIT+t+i.MS+t+t}return t}(e.value,e.length);break;case i.KEYFRAMES:return(0,i.serialize)([(0,i.copy)(e,{value:(0,i.replace)(e.value,"@","@"+i.WEBKIT)})],n);case i.RULESET:if(e.length)return(0,i.combine)(e.props,function(t){switch((0,i.match)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,i.serialize)([(0,i.copy)(e,{props:[(0,i.replace)(t,/:(read-\w+)/,":"+i.MOZ+"$1")]})],n);case"::placeholder":return(0,i.serialize)([(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,":"+i.WEBKIT+"input-$1")]}),(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,":"+i.MOZ+"$1")]}),(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,i.MS+"input-$1")]})],n)}return""})}}],m=function(e){var t=e.key;if(s&&"css"===t){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var a=e.stylisPlugins||g,o={},l=[];s&&(c=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)o[t[r]]=!0;l.push(e)}));var u=[h,f];if(s){var c,d,m,v=[i.stringify,(0,i.rulesheet)(function(e){m.insert(e)})],b=(0,i.middleware)(u.concat(a,v));d=function(e,t,r,n){var a;m=r,a=e?e+"{"+t.styles+"}":t.styles,(0,i.serialize)((0,i.compile)(a),b),n&&(S.inserted[t.name]=!0)}}else{var x=[i.stringify],y=(0,i.middleware)(u.concat(a,x)),w=p(a)(t),k=function(e,t){var r,n=t.name;return void 0===w[n]&&(w[n]=(r=e?e+"{"+t.styles+"}":t.styles,(0,i.serialize)((0,i.compile)(r),y))),w[n]};d=function(e,t,r,n){var i=t.name,a=k(e,t);return void 0===S.compat?(n&&(S.inserted[i]=!0),a):n?void(S.inserted[i]=a):a}}var S={key:t,sheet:new n.StyleSheet({key:t,container:c,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:d};return S.sheet.hydrate(l),S}}),c("jmRmf",function(e,t){r(e.exports,"StyleSheet",()=>n);var n=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=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]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){var t;return null==(t=e.parentNode)?void 0:t.removeChild(e)}),this.tags=[],this.ctr=0},e}()}),c("fm8kz",function(e,t){r(e.exports,"MS",()=>n),r(e.exports,"MOZ",()=>i),r(e.exports,"WEBKIT",()=>a),r(e.exports,"RULESET",()=>s),r(e.exports,"DECLARATION",()=>l),r(e.exports,"KEYFRAMES",()=>u),r(e.exports,"from",()=>d),r(e.exports,"hash",()=>f),r(e.exports,"charat",()=>v),r(e.exports,"match",()=>p),r(e.exports,"replace",()=>g),r(e.exports,"indexof",()=>m),r(e.exports,"strlen",()=>x),r(e.exports,"combine",()=>w),r(e.exports,"position",()=>A),r(e.exports,"copy",()=>P),r(e.exports,"next",()=>O),r(e.exports,"peek",()=>M),r(e.exports,"slice",()=>I),r(e.exports,"token",()=>L),r(e.exports,"alloc",()=>R),r(e.exports,"dealloc",()=>N),r(e.exports,"delimit",()=>z),r(e.exports,"compile",()=>D),r(e.exports,"serialize",()=>W),r(e.exports,"stringify",()=>H),r(e.exports,"middleware",()=>X),r(e.exports,"rulesheet",()=>Y);var n="-ms-",i="-moz-",a="-webkit-",o="comm",s="rule",l="decl",u="@keyframes",c=Math.abs,d=String.fromCharCode,h=Object.assign;function f(e,t){return 45^v(e,0)?(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3):0}function p(e,t){return(e=t.exec(e))?e[0]:e}function g(e,t,r){return e.replace(t,r)}function m(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function b(e,t,r){return e.slice(t,r)}function x(e){return e.length}function y(e,t){return t.push(e),e}function w(e,t){return e.map(t).join("")}var k=1,S=1,C=0,A=0,E=0,_="";function T(e,t,r,n,i,a,o){return{value:e,root:t,parent:r,type:n,props:i,children:a,line:k,column:S,length:o,return:""}}function P(e,t){return h(T("",null,null,"",null,null,0),e,{length:-e.length},t)}function O(){return E=A<C?v(_,A++):0,S++,10===E&&(S=1,k++),E}function M(){return v(_,A)}function I(e,t){return b(_,e,t)}function L(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 R(e){return k=S=1,C=x(_=e),A=0,[]}function N(e){return _="",e}function z(e){return I(A-1,function e(t){for(;O();)switch(E){case t:return A;case 34:case 39:34!==t&&39!==t&&e(E);break;case 40:41===t&&e(t);break;case 92:O()}return A}(91===e?e+2:40===e?e+1:e)).trim()}function D(e){return N(function e(t,r,n,i,a,s,l,u,c){for(var h,f=0,p=0,w=l,C=0,P=0,R=0,N=1,D=1,W=1,H=0,X="",Y=a,U=s,V=i,G=X;D;)switch(R=H,H=O()){case 40:if(108!=R&&58==v(G,w-1)){-1!=m(G+=g(z(H),"&","&\f"),"&\f")&&(W=-1);break}case 34:case 39:case 91:G+=z(H);break;case 9:case 10:case 13:case 32:G+=function(e){for(;E=M();)if(E<33)O();else break;return L(e)>2||L(E)>3?"":" "}(R);break;case 92:G+=function(e,t){for(;--t&&O()&&!(E<48)&&!(E>102)&&(!(E>57)||!(E<65))&&(!(E>70)||!(E<97)););return I(e,A+(t<6&&32==M()&&32==O()))}(A-1,7);continue;case 47:switch(M()){case 42:case 47:y(T(h=function(e,t){for(;O();)if(e+E===57)break;else if(e+E===84&&47===M())break;return"/*"+I(t,A-1)+"*"+d(47===e?e:O())}(O(),A),r,n,o,d(E),b(h,2,-2),0),c);break;default:G+="/"}break;case 123*N:u[f++]=x(G)*W;case 125*N:case 59:case 0:switch(H){case 0:case 125:D=0;case 59+p:-1==W&&(G=g(G,/\f/g,"")),P>0&&x(G)-w&&y(P>32?B(G+";",i,n,w-1):B(g(G," ","")+";",i,n,w-2),c);break;case 59:G+=";";default:if(y(V=F(G,r,n,f,p,a,u,X,Y=[],U=[],w),s),123===H){if(0===p)e(G,r,V,V,Y,s,w,u,U);else switch(99===C&&110===v(G,3)?100:C){case 100:case 108:case 109:case 115:e(t,V,V,i&&y(F(t,V,V,0,0,a,u,X,a,Y=[],w),U),a,U,w,u,i?Y:U);break;default:e(G,V,V,V,[""],U,0,u,U)}}}f=p=P=0,N=W=1,X=G="",w=l;break;case 58:w=1+x(G),P=R;default:if(N<1){if(123==H)--N;else if(125==H&&0==N++&&125==(E=A>0?v(_,--A):0,S--,10===E&&(S=1,k--),E))continue}switch(G+=d(H),H*N){case 38:W=p>0?1:(G+="\f",-1);break;case 44:u[f++]=(x(G)-1)*W,W=1;break;case 64:45===M()&&(G+=z(O())),C=M(),p=w=x(X=G+=function(e){for(;!L(M());)O();return I(e,A)}(A)),H++;break;case 45:45===R&&2==x(G)&&(N=0)}}return s}("",null,null,null,[""],e=R(e),0,[0],e))}function F(e,t,r,n,i,a,o,l,u,d,h){for(var f=i-1,p=0===i?a:[""],m=p.length,v=0,x=0,y=0;v<n;++v)for(var w=0,k=b(e,f+1,f=c(x=o[v])),S=e;w<m;++w)(S=(x>0?p[w]+" "+k:g(k,/&\f/g,p[w])).trim())&&(u[y++]=S);return T(e,t,r,0===i?s:l,u,d,h)}function B(e,t,r,n){return T(e,t,r,l,b(e,0,n),b(e,n+1,-1),n)}function W(e,t){for(var r="",n=e.length,i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function H(e,t,r,n){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case l:return e.return=e.return||e.value;case o:return"";case u:return e.return=e.value+"{"+W(e.children,n)+"}";case s:e.value=e.props.join(",")}return x(r=W(e.children,n))?e.return=e.value+"{"+r+"}":""}function X(e){var t=e.length;return function(r,n,i,a){for(var o="",s=0;s<t;s++)o+=e[s](r,n,i,a)||"";return o}}function Y(e){return function(t){!t.root&&(t=t.return)&&e(t)}}}),c("iq6RI",function(e,t){r(e.exports,"default",()=>n);var n=function(e){var t=new WeakMap;return function(r){if(t.has(r))return t.get(r);var n=e(r);return t.set(r,n),n}}}),c("apDLo",function(e,t){r(e.exports,"default",()=>i);var n=u("9ORqK"),i=function(e,t){return /*@__PURE__*/o(n)(e,t)}}),c("9ORqK",function(e,t){var r=u("2qzd6"),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function s(e){return r.isMemo(e)?a:o[e.$$typeof]||n}o[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[r.Memo]=a;var l=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,h=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var a=f(r);a&&a!==p&&e(t,a,n)}var o=c(r);d&&(o=o.concat(d(r)));for(var u=s(t),g=s(r),m=0;m<o.length;++m){var v=o[m];if(!i[v]&&!(n&&n[v])&&!(g&&g[v])&&!(u&&u[v])){var b=h(r,v);try{l(t,v,b)}catch(e){}}}}return t}}),c("2qzd6",function(e,t){e.exports=u("dNL7g")}),c("dNL7g",function(e,t){r(e.exports,"AsyncMode",()=>n,e=>n=e),r(e.exports,"ConcurrentMode",()=>i,e=>i=e),r(e.exports,"ContextConsumer",()=>a,e=>a=e),r(e.exports,"ContextProvider",()=>o,e=>o=e),r(e.exports,"Element",()=>s,e=>s=e),r(e.exports,"ForwardRef",()=>l,e=>l=e),r(e.exports,"Fragment",()=>u,e=>u=e),r(e.exports,"Lazy",()=>c,e=>c=e),r(e.exports,"Memo",()=>d,e=>d=e),r(e.exports,"Portal",()=>h,e=>h=e),r(e.exports,"Profiler",()=>f,e=>f=e),r(e.exports,"StrictMode",()=>p,e=>p=e),r(e.exports,"Suspense",()=>g,e=>g=e),r(e.exports,"isAsyncMode",()=>m,e=>m=e),r(e.exports,"isConcurrentMode",()=>v,e=>v=e),r(e.exports,"isContextConsumer",()=>b,e=>b=e),r(e.exports,"isContextProvider",()=>x,e=>x=e),r(e.exports,"isElement",()=>y,e=>y=e),r(e.exports,"isForwardRef",()=>w,e=>w=e),r(e.exports,"isFragment",()=>k,e=>k=e),r(e.exports,"isLazy",()=>S,e=>S=e),r(e.exports,"isMemo",()=>C,e=>C=e),r(e.exports,"isPortal",()=>A,e=>A=e),r(e.exports,"isProfiler",()=>E,e=>E=e),r(e.exports,"isStrictMode",()=>_,e=>_=e),r(e.exports,"isSuspense",()=>T,e=>T=e),r(e.exports,"isValidElementType",()=>P,e=>P=e),r(e.exports,"typeOf",()=>O,e=>O=e);var n,i,a,o,s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E,_,T,P,O,M="function"==typeof Symbol&&Symbol.for,I=M?Symbol.for("react.element"):60103,L=M?Symbol.for("react.portal"):60106,R=M?Symbol.for("react.fragment"):60107,N=M?Symbol.for("react.strict_mode"):60108,z=M?Symbol.for("react.profiler"):60114,D=M?Symbol.for("react.provider"):60109,F=M?Symbol.for("react.context"):60110,B=M?Symbol.for("react.async_mode"):60111,W=M?Symbol.for("react.concurrent_mode"):60111,H=M?Symbol.for("react.forward_ref"):60112,X=M?Symbol.for("react.suspense"):60113,Y=M?Symbol.for("react.suspense_list"):60120,U=M?Symbol.for("react.memo"):60115,V=M?Symbol.for("react.lazy"):60116,G=M?Symbol.for("react.block"):60121,$=M?Symbol.for("react.fundamental"):60117,q=M?Symbol.for("react.responder"):60118,Z=M?Symbol.for("react.scope"):60119;function K(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case I:switch(e=e.type){case B:case W:case R:case z:case N:case X:return e;default:switch(e=e&&e.$$typeof){case F:case H:case V:case U:case D:return e;default:return t}}case L:return t}}}function Q(e){return K(e)===W}n=B,i=W,a=F,o=D,s=I,l=H,u=R,c=V,d=U,h=L,f=z,p=N,g=X,m=function(e){return Q(e)||K(e)===B},v=Q,b=function(e){return K(e)===F},x=function(e){return K(e)===D},y=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===I},w=function(e){return K(e)===H},k=function(e){return K(e)===R},S=function(e){return K(e)===V},C=function(e){return K(e)===U},A=function(e){return K(e)===L},E=function(e){return K(e)===z},_=function(e){return K(e)===N},T=function(e){return K(e)===X},P=function(e){return"string"==typeof e||"function"==typeof e||e===R||e===W||e===z||e===N||e===X||e===Y||"object"==typeof e&&null!==e&&(e.$$typeof===V||e.$$typeof===U||e.$$typeof===D||e.$$typeof===F||e.$$typeof===H||e.$$typeof===$||e.$$typeof===q||e.$$typeof===Z||e.$$typeof===G)},O=K}),c("8ajhZ",function(e,t){r(e.exports,"getRegisteredStyles",()=>i),r(e.exports,"registerStyles",()=>a),r(e.exports,"insertStyles",()=>o);var n="undefined"!=typeof document;function i(e,t,r){var n="";return r.split(" ").forEach(function(r){void 0!==e[r]?t.push(e[r]+";"):n+=r+" "}),n}var a=function(e,t,r){var i=e.key+"-"+t.name;(!1===r||!1===n&&void 0!==e.compat)&&void 0===e.registered[i]&&(e.registered[i]=t.styles)},o=function(e,t,r){a(e,t,r);var i=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var o="",s=t;do{var l=e.insert(t===s?"."+i:"",s,e.sheet,!0);n||void 0===l||(o+=l),s=s.next}while(void 0!==s)if(!n&&0!==o.length)return o}}}),c("8rteH",function(e,t){r(e.exports,"serializeStyles",()=>m);var n,i=u("4EiWM"),a=u("cEIH4"),o=u("9ffXE"),s=/[A-Z]|^ms/g,l=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(e){return 45===e.charCodeAt(1)},d=function(e){return null!=e&&"boolean"!=typeof e},h=/* #__PURE__ */(0,o.default)(function(e){return c(e)?e:e.replace(s,"-$&").toLowerCase()}),f=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(l,function(e,t,r){return n={name:t,styles:r,next:n},t})}return 1===a.default[e]||c(e)||"number"!=typeof t||0===t?t:t+"px"};function p(e,t,r){if(null==r)return"";if(void 0!==r.__emotion_styles)return r;switch(typeof r){case"boolean":return"";case"object":if(1===r.anim)return n={name:r.name,styles:r.styles,next:n},r.name;if(void 0!==r.styles){var i=r.next;if(void 0!==i)for(;void 0!==i;)n={name:i.name,styles:i.styles,next:n},i=i.next;return r.styles+";"}return function(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=p(e,t,r[i])+";";else for(var a in r){var o=r[a];if("object"!=typeof o)null!=t&&void 0!==t[o]?n+=a+"{"+t[o]+"}":d(o)&&(n+=h(a)+":"+f(a,o)+";");else if(Array.isArray(o)&&"string"==typeof o[0]&&(null==t||void 0===t[o[0]]))for(var s=0;s<o.length;s++)d(o[s])&&(n+=h(a)+":"+f(a,o[s])+";");else{var l=p(e,t,o);switch(a){case"animation":case"animationName":n+=h(a)+":"+l+";";break;default:n+=a+"{"+l+"}"}}}return n}(e,t,r);case"function":if(void 0!==e){var a=n,o=r(e);return n=a,p(e,t,o)}}if(null==t)return r;var s=t[r];return void 0!==s?s:r}var g=/label:\s*([^\s;\n{]+)\s*(;|$)/g;function m(e,t,r){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var a,o=!0,s="";n=void 0;var l=e[0];null==l||void 0===l.raw?(o=!1,s+=p(r,t,l)):s+=l[0];for(var u=1;u<e.length;u++)s+=p(r,t,e[u]),o&&(s+=l[u]);g.lastIndex=0;for(var c="";null!==(a=g.exec(s));)c+="-"+a[1];return{name:(0,i.default)(s)+c,styles:s,next:n}}}),c("4EiWM",function(e,t){r(e.exports,"default",()=>n);function n(e){for(var t,r=0,n=0,i=e.length;i>=4;++n,i-=4)t=(65535&(t=255&e.charCodeAt(n)|(255&e.charCodeAt(++n))<<8|(255&e.charCodeAt(++n))<<16|(255&e.charCodeAt(++n))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,r=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&r)*0x5bd1e995+((r>>>16)*59797<<16);switch(i){case 3:r^=(255&e.charCodeAt(n+2))<<16;case 2:r^=(255&e.charCodeAt(n+1))<<8;case 1:r^=255&e.charCodeAt(n),r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16)}return r^=r>>>13,(((r=(65535&r)*0x5bd1e995+((r>>>16)*59797<<16))^r>>>15)>>>0).toString(36)}}),c("cEIH4",function(e,t){r(e.exports,"default",()=>n);var n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale: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("2lACw",function(e,t){r(e.exports,"useInsertionEffectAlwaysWithSyncFallback",()=>o),r(e.exports,"useInsertionEffectWithLayoutFallback",()=>s);var n=u("acw62"),i="undefined"!=typeof document,a=!!n.useInsertionEffect&&n.useInsertionEffect,o=i&&a||function(e){return e()},s=a||n.useLayoutEffect}),c("3p9rK",function(e,t){function r(){return e.exports=r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,r.apply(this,arguments)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports}),c("2BuCw",function(e,t){let n;r(e.exports,"default",()=>s),u("acw62");var i=u("l7wW1"),a=u("2XSvg"),o=u("ayMG0");function s(e){let{injectFirst:t,children:r}=e;return t&&n?/*#__PURE__*/(0,o.jsx)(i.C,{value:n,children:r}):r}"object"==typeof document&&(n=(0,a.default)({key:"css",prepend:!0}))}),c("2XSvg",function(e,t){r(e.exports,"default",()=>h);var n=u("1Skp1"),i=u("fm8kz");u("QnMGU"),u("gP9xJ");var a=function(e,t,r){for(var n=0,a=0;n=a,a=(0,i.peek)(),38===n&&12===a&&(t[r]=1),!(0,i.token)(a);)(0,i.next)();return(0,i.slice)(e,i.position)},o=function(e,t){var r=-1,n=44;do switch((0,i.token)(n)){case 0:38===n&&12===(0,i.peek)()&&(t[r]=1),e[r]+=a(i.position-1,t,r);break;case 2:e[r]+=(0,i.delimit)(n);break;case 4:if(44===n){e[++r]=58===(0,i.peek)()?"&\f":"",t[r]=e[r].length;break}default:e[r]+=(0,i.from)(n)}while(n=(0,i.next)())return e},s=/* #__PURE__ */new WeakMap,l=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;"rule"!==r.type;)if(!(r=r.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||s.get(r))&&!n){s.set(e,!0);for(var a=[],l=(0,i.dealloc)(o((0,i.alloc)(t),a)),u=r.props,c=0,d=0;c<l.length;c++)for(var h=0;h<u.length;h++,d++)e.props[d]=a[c]?l[c].replace(/&\f/g,u[h]):u[h]+" "+l[c]}}},c=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}},d=[function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case i.DECLARATION:e.return=function e(t,r){switch((0,i.hash)(t,r)){case 5103:return i.WEBKIT+"print-"+t+t;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 i.WEBKIT+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return i.WEBKIT+t+i.MOZ+t+i.MS+t+t;case 6828:case 4268:return i.WEBKIT+t+i.MS+t+t;case 6165:return i.WEBKIT+t+i.MS+"flex-"+t+t;case 5187:return i.WEBKIT+t+(0,i.replace)(t,/(\w+).+(:[^]+)/,i.WEBKIT+"box-$1$2"+i.MS+"flex-$1$2")+t;case 5443:return i.WEBKIT+t+i.MS+"flex-item-"+(0,i.replace)(t,/flex-|-self/,"")+t;case 4675:return i.WEBKIT+t+i.MS+"flex-line-pack"+(0,i.replace)(t,/align-content|flex-|-self/,"")+t;case 5548:return i.WEBKIT+t+i.MS+(0,i.replace)(t,"shrink","negative")+t;case 5292:return i.WEBKIT+t+i.MS+(0,i.replace)(t,"basis","preferred-size")+t;case 6060:return i.WEBKIT+"box-"+(0,i.replace)(t,"-grow","")+i.WEBKIT+t+i.MS+(0,i.replace)(t,"grow","positive")+t;case 4554:return i.WEBKIT+(0,i.replace)(t,/([^-])(transform)/g,"$1"+i.WEBKIT+"$2")+t;case 6187:return(0,i.replace)((0,i.replace)((0,i.replace)(t,/(zoom-|grab)/,i.WEBKIT+"$1"),/(image-set)/,i.WEBKIT+"$1"),t,"")+t;case 5495:case 3959:return(0,i.replace)(t,/(image-set\([^]*)/,i.WEBKIT+"$1$`$1");case 4968:return(0,i.replace)((0,i.replace)(t,/(.+:)(flex-)?(.*)/,i.WEBKIT+"box-pack:$3"+i.MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+i.WEBKIT+t+t;case 4095:case 3583:case 4068:case 2532:return(0,i.replace)(t,/(.+)-inline(.+)/,i.WEBKIT+"$1$2")+t;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((0,i.strlen)(t)-1-r>6)switch((0,i.charat)(t,r+1)){case 109:if(45!==(0,i.charat)(t,r+4))break;case 102:return(0,i.replace)(t,/(.+:)(.+)-([^]+)/,"$1"+i.WEBKIT+"$2-$3$1"+i.MOZ+(108==(0,i.charat)(t,r+3)?"$3":"$2-$3"))+t;case 115:return~(0,i.indexof)(t,"stretch")?e((0,i.replace)(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(115!==(0,i.charat)(t,r+1))break;case 6444:switch((0,i.charat)(t,(0,i.strlen)(t)-3-(~(0,i.indexof)(t,"!important")&&10))){case 107:return(0,i.replace)(t,":",":"+i.WEBKIT)+t;case 101:return(0,i.replace)(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+i.WEBKIT+(45===(0,i.charat)(t,14)?"inline-":"")+"box$3$1"+i.WEBKIT+"$2$3$1"+i.MS+"$2box$3")+t}break;case 5936:switch((0,i.charat)(t,r+11)){case 114:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return i.WEBKIT+t+i.MS+(0,i.replace)(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return i.WEBKIT+t+i.MS+t+t}return t}(e.value,e.length);break;case i.KEYFRAMES:return(0,i.serialize)([(0,i.copy)(e,{value:(0,i.replace)(e.value,"@","@"+i.WEBKIT)})],n);case i.RULESET:if(e.length)return(0,i.combine)(e.props,function(t){switch((0,i.match)(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return(0,i.serialize)([(0,i.copy)(e,{props:[(0,i.replace)(t,/:(read-\w+)/,":"+i.MOZ+"$1")]})],n);case"::placeholder":return(0,i.serialize)([(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,":"+i.WEBKIT+"input-$1")]}),(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,":"+i.MOZ+"$1")]}),(0,i.copy)(e,{props:[(0,i.replace)(t,/:(plac\w+)/,i.MS+"input-$1")]})],n)}return""})}}],h=function(e){var t,r,a,o=e.key;if("css"===o){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))})}var u=e.stylisPlugins||d,h={},f=[];t=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(e){for(var t=e.getAttribute("data-emotion").split(" "),r=1;r<t.length;r++)h[t[r]]=!0;f.push(e)});var p=[i.stringify,(0,i.rulesheet)(function(e){a.insert(e)})],g=(0,i.middleware)([l,c].concat(u,p));r=function(e,t,r,n){var o;a=r,o=e?e+"{"+t.styles+"}":t.styles,(0,i.serialize)((0,i.compile)(o),g),n&&(m.inserted[t.name]=!0)};var m={key:o,sheet:new n.StyleSheet({key:o,container:t,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:h,registered:{},insert:r};return m.sheet.hydrate(f),m}}),c("1Skp1",function(e,t){r(e.exports,"StyleSheet",()=>n);var n=/*#__PURE__*/function(){function e(e){var t=this;this._insertTag=function(e){var r;r=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,r),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){if(this.ctr%(this.isSpeedy?65e3:1)==0){var t;this._insertTag(((t=document.createElement("style")).setAttribute("data-emotion",this.key),void 0!==this.nonce&&t.setAttribute("nonce",this.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t))}var r=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]}(r);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else r.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}()}),c("QnMGU",function(e,t){}),c("gP9xJ",function(e,t){}),c("ayMG0",function(e,t){e.exports=u("1b2ls")}),c("bBbjn",function(e,t){r(e.exports,"default",()=>a),u("acw62");var n=u("jjlaj"),i=u("ayMG0");function a(e){let{styles:t,defaultTheme:r={}}=e,a="function"==typeof t?e=>t(null==e||0===Object.keys(e).length?r:e):t;return/*#__PURE__*/(0,i.jsx)(n.Global,{styles:a})}}),c("9dZwz",function(e,t){r(e.exports,"unstable_createStyleFunctionSx",()=>l),r(e.exports,"default",()=>d);var n=u("gxvzd"),i=u("aFh0N"),a=u("k0igC"),o=u("3OJTQ"),s=u("kOOck");function l(){function e(e,t,r,i){let s={[e]:t,theme:r},l=i[e];if(!l)return{[e]:t};let{cssProperty:u=e,themeKey:c,transform:d,style:h}=l;if(null==t)return null;if("typography"===c&&"inherit"===t)return{[e]:t};let f=(0,a.getPath)(r,c)||{};return h?h(s):(0,o.handleBreakpoints)(s,t,t=>{let r=(0,a.getStyleValue)(f,d,t);return(t===r&&"string"==typeof t&&(r=(0,a.getStyleValue)(f,d,`${e}${"default"===t?"":(0,n.default)(t)}`,t)),!1===u)?r:{[u]:r}})}return function t(r){var n;let{sx:a,theme:l={}}=r||{};if(!a)return null;let u=null!=(n=l.unstable_sxConfig)?n:s.default;function c(r){let n=r;if("function"==typeof r)n=r(l);else if("object"!=typeof r)return r;if(!n)return null;let a=(0,o.createEmptyBreakpointObject)(l.breakpoints),s=Object.keys(a),c=a;return Object.keys(n).forEach(r=>{var a;let s="function"==typeof(a=n[r])?a(l):a;if(null!=s){if("object"==typeof s){if(u[r])c=(0,i.default)(c,e(r,s,l,u));else{let e=(0,o.handleBreakpoints)({theme:l},s,e=>({[r]:e}));(function(...e){let t=new Set(e.reduce((e,t)=>e.concat(Object.keys(t)),[]));return e.every(e=>t.size===Object.keys(e).length)})(e,s)?c[r]=t({sx:s,theme:l}):c=(0,i.default)(c,e)}}else c=(0,i.default)(c,e(r,s,l,u))}}),(0,o.removeUnusedBreakpoints)(s,c)}return Array.isArray(a)?a.map(c):c(a)}}let c=l();c.filterProps=["sx"];var d=c}),c("gxvzd",function(e,t){r(e.exports,"default",()=>i);var n=u("cpmCj");function i(e){if("string"!=typeof e)throw Error((0,n.default)(7));return e.charAt(0).toUpperCase()+e.slice(1)}}),c("cpmCj",function(e,t){r(e.exports,"default",()=>n);function n(e){let t="https://mui.com/production-error/?code="+e;for(let e=1;e<arguments.length;e+=1)t+="&args[]="+encodeURIComponent(arguments[e]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}}),c("aFh0N",function(e,t){r(e.exports,"default",()=>i);var n=u("3z1Ay"),i=function(e,t){return t?(0,n.default)(e,t,{clone:!1}):e}}),c("3z1Ay",function(e,t){r(e.exports,"isPlainObject",()=>a),r(e.exports,"default",()=>function e(t,r,o={clone:!0}){let s=o.clone?(0,n.default)({},t):t;return a(t)&&a(r)&&Object.keys(r).forEach(n=>{/*#__PURE__*/i.isValidElement(r[n])?s[n]=r[n]:a(r[n])&&Object.prototype.hasOwnProperty.call(t,n)&&a(t[n])?s[n]=e(t[n],r[n],o):o.clone?s[n]=a(r[n])?function e(t){if(/*#__PURE__*/i.isValidElement(t)||!a(t))return t;let r={};return Object.keys(t).forEach(n=>{r[n]=e(t[n])}),r}(r[n]):r[n]:s[n]=r[n]}),s});var n=u("8nd05"),i=u("acw62");function a(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}}),c("k0igC",function(e,t){r(e.exports,"getPath",()=>a),r(e.exports,"getStyleValue",()=>o),r(e.exports,"default",()=>s);var n=u("gxvzd"),i=u("3OJTQ");function a(e,t,r=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&r){let r=`vars.${t}`.split(".").reduce((e,t)=>e&&e[t]?e[t]:null,e);if(null!=r)return r}return t.split(".").reduce((e,t)=>e&&null!=e[t]?e[t]:null,e)}function o(e,t,r,n=r){let i;return i="function"==typeof e?e(r):Array.isArray(e)?e[r]||n:a(e,r)||n,t&&(i=t(i,n,e)),i}var s=function(e){let{prop:t,cssProperty:r=e.prop,themeKey:s,transform:l}=e,u=e=>{if(null==e[t])return null;let u=e[t],c=a(e.theme,s)||{};return(0,i.handleBreakpoints)(e,u,e=>{let i=o(c,l,e);return(e===i&&"string"==typeof e&&(i=o(c,l,`${t}${"default"===e?"":(0,n.default)(e)}`,e)),!1===r)?i:{[r]:i}})};return u.propTypes={},u.filterProps=[t],u}}),c("3OJTQ",function(e,t){r(e.exports,"values",()=>n),r(e.exports,"handleBreakpoints",()=>a),r(e.exports,"createEmptyBreakpointObject",()=>o),r(e.exports,"removeUnusedBreakpoints",()=>s),u("8nd05"),u("3z1Ay"),u("aFh0N");let n={xs:0,sm:600,md:900,lg:1200,xl:1536},i={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${n[e]}px)`};function a(e,t,r){let a=e.theme||{};if(Array.isArray(t)){let e=a.breakpoints||i;return t.reduce((n,i,a)=>(n[e.up(e.keys[a])]=r(t[a]),n),{})}if("object"==typeof t){let e=a.breakpoints||i;return Object.keys(t).reduce((i,a)=>(-1!==Object.keys(e.values||n).indexOf(a)?i[e.up(a)]=r(t[a],a):i[a]=t[a],i),{})}return r(t)}function o(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce((t,r)=>(t[e.up(r)]={},t),{}))||{}}function s(e,t){return e.reduce((e,t)=>{let r=e[t];return r&&0!==Object.keys(r).length||delete e[t],e},t)}}),c("kOOck",function(e,t){r(e.exports,"default",()=>l);var n=u("cKRCq"),i=u("jxD4j"),a=u("nZvud"),o=u("8ru1G"),s=u("imjyU"),l={border:{themeKey:"borders",transform:i.borderTransform},borderTop:{themeKey:"borders",transform:i.borderTransform},borderRight:{themeKey:"borders",transform:i.borderTransform},borderBottom:{themeKey:"borders",transform:i.borderTransform},borderLeft:{themeKey:"borders",transform:i.borderTransform},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:i.borderTransform},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:i.borderRadius},color:{themeKey:"palette",transform:o.paletteTransform},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:o.paletteTransform},backgroundColor:{themeKey:"palette",transform:o.paletteTransform},p:{style:n.padding},pt:{style:n.padding},pr:{style:n.padding},pb:{style:n.padding},pl:{style:n.padding},px:{style:n.padding},py:{style:n.padding},padding:{style:n.padding},paddingTop:{style:n.padding},paddingRight:{style:n.padding},paddingBottom:{style:n.padding},paddingLeft:{style:n.padding},paddingX:{style:n.padding},paddingY:{style:n.padding},paddingInline:{style:n.padding},paddingInlineStart:{style:n.padding},paddingInlineEnd:{style:n.padding},paddingBlock:{style:n.padding},paddingBlockStart:{style:n.padding},paddingBlockEnd:{style:n.padding},m:{style:n.margin},mt:{style:n.margin},mr:{style:n.margin},mb:{style:n.margin},ml:{style:n.margin},mx:{style:n.margin},my:{style:n.margin},margin:{style:n.margin},marginTop:{style:n.margin},marginRight:{style:n.margin},marginBottom:{style:n.margin},marginLeft:{style:n.margin},marginX:{style:n.margin},marginY:{style:n.margin},marginInline:{style:n.margin},marginInlineStart:{style:n.margin},marginInlineEnd:{style:n.margin},marginBlock:{style:n.margin},marginBlockStart:{style:n.margin},marginBlockEnd:{style:n.margin},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:a.gap},rowGap:{style:a.rowGap},columnGap:{style:a.columnGap},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:s.sizingTransform},maxWidth:{style:s.maxWidth},minWidth:{transform:s.sizingTransform},height:{transform:s.sizingTransform},maxHeight:{transform:s.sizingTransform},minHeight:{transform:s.sizingTransform},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}}}),c("cKRCq",function(e,t){r(e.exports,"createUnaryUnit",()=>g),r(e.exports,"createUnarySpacing",()=>m),r(e.exports,"getValue",()=>v),r(e.exports,"margin",()=>x),r(e.exports,"padding",()=>y);var n=u("3OJTQ"),i=u("k0igC"),a=u("aFh0N"),o=u("hsAPr");let s={m:"margin",p:"padding"},l={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},c={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},d=(0,o.default)(e=>{if(e.length>2){if(!c[e])return[e];e=c[e]}let[t,r]=e.split(""),n=s[t],i=l[r]||"";return Array.isArray(i)?i.map(e=>n+e):[n+i]}),h=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],f=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],p=[...h,...f];function g(e,t,r,n){var a;let o=null!=(a=(0,i.getPath)(e,t,!1))?a:r;return"number"==typeof o?e=>"string"==typeof e?e:o*e:Array.isArray(o)?e=>"string"==typeof e?e:o[e]:"function"==typeof o?o:()=>void 0}function m(e){return g(e,"spacing",8,"spacing")}function v(e,t){if("string"==typeof t||null==t)return t;let r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:`-${r}`}function b(e,t){let r=m(e.theme);return Object.keys(e).map(i=>(function(e,t,r,i){var a;if(-1===t.indexOf(r))return null;let o=(a=d(r),e=>a.reduce((t,r)=>(t[r]=v(i,e),t),{})),s=e[r];return(0,n.handleBreakpoints)(e,s,o)})(e,t,i,r)).reduce(a.default,{})}function x(e){return b(e,h)}function y(e){return b(e,f)}function w(e){return b(e,p)}x.propTypes={},x.filterProps=h,y.propTypes={},y.filterProps=f,w.propTypes={},w.filterProps=p}),c("hsAPr",function(e,t){r(e.exports,"default",()=>n);function n(e){let t={};return r=>(void 0===t[r]&&(t[r]=e(r)),t[r])}}),c("jxD4j",function(e,t){r(e.exports,"borderTransform",()=>s),r(e.exports,"borderRadius",()=>k);var n=u("k0igC"),i=u("gojsU"),a=u("cKRCq"),o=u("3OJTQ");function s(e){return"number"!=typeof e?e:`${e}px solid`}function l(e,t){return(0,n.default)({prop:e,themeKey:"borders",transform:t})}let c=l("border",s),d=l("borderTop",s),h=l("borderRight",s),f=l("borderBottom",s),p=l("borderLeft",s),g=l("borderColor"),m=l("borderTopColor"),v=l("borderRightColor"),b=l("borderBottomColor"),x=l("borderLeftColor"),y=l("outline",s),w=l("outlineColor"),k=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){let t=(0,a.createUnaryUnit)(e.theme,"shape.borderRadius",4,"borderRadius");return(0,o.handleBreakpoints)(e,e.borderRadius,e=>({borderRadius:(0,a.getValue)(t,e)}))}return null};k.propTypes={},k.filterProps=["borderRadius"],(0,i.default)(c,d,h,f,p,g,m,v,b,x,k,y,w)}),c("gojsU",function(e,t){r(e.exports,"default",()=>i);var n=u("aFh0N"),i=function(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(r=>{e[r]=t}),e),{}),r=e=>Object.keys(e).reduce((r,i)=>t[i]?(0,n.default)(r,t[i](e)):r,{});return r.propTypes={},r.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),r}}),c("nZvud",function(e,t){r(e.exports,"gap",()=>s),r(e.exports,"columnGap",()=>l),r(e.exports,"rowGap",()=>c);var n=u("k0igC"),i=u("gojsU"),a=u("cKRCq"),o=u("3OJTQ");let s=e=>{if(void 0!==e.gap&&null!==e.gap){let t=(0,a.createUnaryUnit)(e.theme,"spacing",8,"gap");return(0,o.handleBreakpoints)(e,e.gap,e=>({gap:(0,a.getValue)(t,e)}))}return null};s.propTypes={},s.filterProps=["gap"];let l=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){let t=(0,a.createUnaryUnit)(e.theme,"spacing",8,"columnGap");return(0,o.handleBreakpoints)(e,e.columnGap,e=>({columnGap:(0,a.getValue)(t,e)}))}return null};l.propTypes={},l.filterProps=["columnGap"];let c=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){let t=(0,a.createUnaryUnit)(e.theme,"spacing",8,"rowGap");return(0,o.handleBreakpoints)(e,e.rowGap,e=>({rowGap:(0,a.getValue)(t,e)}))}return null};c.propTypes={},c.filterProps=["rowGap"];let d=(0,n.default)({prop:"gridColumn"}),h=(0,n.default)({prop:"gridRow"}),f=(0,n.default)({prop:"gridAutoFlow"}),p=(0,n.default)({prop:"gridAutoColumns"}),g=(0,n.default)({prop:"gridAutoRows"}),m=(0,n.default)({prop:"gridTemplateColumns"}),v=(0,n.default)({prop:"gridTemplateRows"}),b=(0,n.default)({prop:"gridTemplateAreas"}),x=(0,n.default)({prop:"gridArea"});(0,i.default)(s,l,c,d,h,f,p,g,m,v,b,x)}),c("8ru1G",function(e,t){r(e.exports,"paletteTransform",()=>a);var n=u("k0igC"),i=u("gojsU");function a(e,t){return"grey"===t?t:e}let o=(0,n.default)({prop:"color",themeKey:"palette",transform:a}),s=(0,n.default)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:a}),l=(0,n.default)({prop:"backgroundColor",themeKey:"palette",transform:a});(0,i.default)(o,s,l)}),c("imjyU",function(e,t){r(e.exports,"sizingTransform",()=>o),r(e.exports,"maxWidth",()=>l);var n=u("k0igC"),i=u("gojsU"),a=u("3OJTQ");function o(e){return e<=1&&0!==e?`${100*e}%`:e}let s=(0,n.default)({prop:"width",transform:o}),l=e=>void 0!==e.maxWidth&&null!==e.maxWidth?(0,a.handleBreakpoints)(e,e.maxWidth,t=>{var r,n;let i=(null==(r=e.theme)||null==(r=r.breakpoints)||null==(r=r.values)?void 0:r[t])||a.values[t];return i?(null==(n=e.theme)||null==(n=n.breakpoints)?void 0:n.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:o(t)}}):null;l.filterProps=["maxWidth"];let c=(0,n.default)({prop:"minWidth",transform:o}),d=(0,n.default)({prop:"height",transform:o}),h=(0,n.default)({prop:"maxHeight",transform:o}),f=(0,n.default)({prop:"minHeight",transform:o});(0,n.default)({prop:"size",cssProperty:"width",transform:o}),(0,n.default)({prop:"size",cssProperty:"height",transform:o});let p=(0,n.default)({prop:"boxSizing"});(0,i.default)(s,l,c,d,h,f,p)}),c("hcz0Q",function(e,t){r(e.exports,"default",()=>c);var n=u("8nd05"),i=u("1En50"),a=u("3z1Ay"),o=u("kOOck");let s=["sx"],l=e=>{var t,r;let n={systemProps:{},otherProps:{}},i=null!=(t=null==e||null==(r=e.theme)?void 0:r.unstable_sxConfig)?t:o.default;return Object.keys(e).forEach(t=>{i[t]?n.systemProps[t]=e[t]:n.otherProps[t]=e[t]}),n};function c(e){let t;let{sx:r}=e,{systemProps:o,otherProps:u}=l((0,i.default)(e,s));return t=Array.isArray(r)?[o,...r]:"function"==typeof r?(...e)=>{let t=r(...e);return(0,a.isPlainObject)(t)?(0,n.default)({},o,t):o}:(0,n.default)({},o,r),(0,n.default)({},u,{sx:t})}}),c("7HKeb",function(e,t){r(e.exports,"default",()=>o);var n=u("6o2lr"),i=u("2HliV");let a=(0,n.default)();var o=function(e=a){return(0,i.default)(e)}}),c("6o2lr",function(e,t){r(e.exports,"default",()=>p);var n=u("8nd05"),i=u("1En50"),a=u("3z1Ay"),o=u("dLM8u"),s=u("bVuw0"),l=u("2GcsG"),c=u("9dZwz"),d=u("kOOck"),h=u("2UDLz");let f=["breakpoints","palette","spacing","shape"];var p=function(e={},...t){let{breakpoints:r={},palette:u={},spacing:p,shape:g={}}=e,m=(0,i.default)(e,f),v=(0,o.default)(r),b=(0,l.default)(p),x=(0,a.default)({breakpoints:v,direction:"ltr",components:{},palette:(0,n.default)({mode:"light"},u),spacing:b,shape:(0,n.default)({},s.default,g)},m);return x.applyStyles=h.default,(x=t.reduce((e,t)=>(0,a.default)(e,t),x)).unstable_sxConfig=(0,n.default)({},d.default,null==m?void 0:m.unstable_sxConfig),x.unstable_sx=function(e){return(0,c.default)({sx:e,theme:this})},x}}),c("dLM8u",function(e,t){r(e.exports,"default",()=>s);var n=u("1En50"),i=u("8nd05");let a=["values","unit","step"],o=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>(0,i.default)({},e,{[t.key]:t.val}),{})};function s(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:s=5}=e,l=(0,n.default)(e,a),u=o(t),c=Object.keys(u);function d(e){let n="number"==typeof t[e]?t[e]:e;return`@media (min-width:${n}${r})`}function h(e){let n="number"==typeof t[e]?t[e]:e;return`@media (max-width:${n-s/100}${r})`}function f(e,n){let i=c.indexOf(n);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${r}) and (max-width:${(-1!==i&&"number"==typeof t[c[i]]?t[c[i]]:n)-s/100}${r})`}return(0,i.default)({keys:c,values:u,up:d,down:h,between:f,only:function(e){return c.indexOf(e)+1<c.length?f(e,c[c.indexOf(e)+1]):d(e)},not:function(e){let t=c.indexOf(e);return 0===t?d(c[1]):t===c.length-1?h(c[t]):f(e,c[c.indexOf(e)+1]).replace("@media","@media not all and")},unit:r},l)}}),c("bVuw0",function(e,t){r(e.exports,"default",()=>n);var n={borderRadius:4}}),c("2GcsG",function(e,t){r(e.exports,"default",()=>i);var n=u("cKRCq");function i(e=8){if(e.mui)return e;let t=(0,n.createUnarySpacing)({spacing:e}),r=(...e)=>(0===e.length?[1]:e).map(e=>{let r=t(e);return"number"==typeof r?`${r}px`:r}).join(" ");return r.mui=!0,r}}),c("2UDLz",function(e,t){r(e.exports,"default",()=>n);function n(e,t){return this.vars&&"function"==typeof this.getColorSchemeSelector?{[this.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:this.palette.mode===e?t:{}}}),c("2HliV",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62");u("jjlaj");var i=u("l7wW1"),a=function(e=null){let t=n.useContext(i.T);return t&&0!==Object.keys(t).length?t:e}}),c("bnost",function(e,t){let n;r(e.exports,"default",()=>a);let i=e=>e;var a=(n=i,{configure(e){n=e},generate:e=>n(e),reset(){n=i}})}),c("ijOKP",function(e,t){r(e.exports,"default",()=>b);var n=u("8nd05"),i=u("1En50"),a=u("cpmCj"),o=u("3z1Ay"),s=u("9dZwz"),l=u("kOOck"),c=u("6o2lr"),d=u("6plKN"),h=u("4Gk6P"),f=u("d6q8u"),p=u("jtCFx"),g=u("bmoVh"),m=u("lhXgK");let v=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];var b=function(e={},...t){let{mixins:r={},palette:u={},transitions:b={},typography:x={}}=e,y=(0,i.default)(e,v);if(e.vars)throw Error((0,a.default)(18));let w=(0,h.default)(u),k=(0,c.default)(e),S=(0,o.default)(k,{mixins:(0,d.default)(k.breakpoints,r),palette:w,shadows:(0,p.default).slice(),typography:(0,f.default)(w,x),transitions:(0,g.default)(b),zIndex:(0,n.default)({},m.default)});return S=(0,o.default)(S,y),(S=t.reduce((e,t)=>(0,o.default)(e,t),S)).unstable_sxConfig=(0,n.default)({},l.default,null==y?void 0:y.unstable_sxConfig),S.unstable_sx=function(e){return(0,s.default)({sx:e,theme:this})},S}}),c("6plKN",function(e,t){r(e.exports,"default",()=>i);var n=u("8nd05");function i(e,t){return(0,n.default)({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}}),c("4Gk6P",function(e,t){r(e.exports,"default",()=>w);var n=u("8nd05"),i=u("1En50"),a=u("cpmCj"),o=u("3z1Ay"),s=u("kSnzZ"),l=u("dzxhF"),c=u("eU5ou"),d=u("kSXRh"),h=u("ln9F4"),f=u("dMYym"),p=u("bKnBV"),g=u("iDVue"),m=u("e4nxq");let v=["mode","contrastThreshold","tonalOffset"],b={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:l.default.white,default:l.default.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}},x={text:{primary:l.default.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:l.default.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 y(e,t,r,n){let i=n.light||n,a=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,s.lighten)(e.main,i):"dark"===t&&(e.dark=(0,s.darken)(e.main,a)))}function w(e){let{mode:t="light",contrastThreshold:r=3,tonalOffset:u=.2}=e,w=(0,i.default)(e,v),k=e.primary||function(e="light"){return"dark"===e?{main:p.default[200],light:p.default[50],dark:p.default[400]}:{main:p.default[700],light:p.default[400],dark:p.default[800]}}(t),S=e.secondary||function(e="light"){return"dark"===e?{main:d.default[200],light:d.default[50],dark:d.default[400]}:{main:d.default[500],light:d.default[300],dark:d.default[700]}}(t),C=e.error||function(e="light"){return"dark"===e?{main:h.default[500],light:h.default[300],dark:h.default[700]}:{main:h.default[700],light:h.default[400],dark:h.default[800]}}(t),A=e.info||function(e="light"){return"dark"===e?{main:g.default[400],light:g.default[300],dark:g.default[700]}:{main:g.default[700],light:g.default[500],dark:g.default[900]}}(t),E=e.success||function(e="light"){return"dark"===e?{main:m.default[400],light:m.default[300],dark:m.default[700]}:{main:m.default[800],light:m.default[500],dark:m.default[900]}}(t),_=e.warning||function(e="light"){return"dark"===e?{main:f.default[400],light:f.default[300],dark:f.default[700]}:{main:"#ed6c02",light:f.default[500],dark:f.default[900]}}(t);function T(e){return(0,s.getContrastRatio)(e,x.text.primary)>=r?x.text.primary:b.text.primary}let P=({color:e,name:t,mainShade:r=500,lightShade:i=300,darkShade:o=700})=>{if(!(e=(0,n.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.hasOwnProperty("main"))throw Error((0,a.default)(11,t?` (${t})`:"",r));if("string"!=typeof e.main)throw Error((0,a.default)(12,t?` (${t})`:"",JSON.stringify(e.main)));return y(e,"light",i,u),y(e,"dark",o,u),e.contrastText||(e.contrastText=T(e.main)),e};return(0,o.default)((0,n.default)({common:(0,n.default)({},l.default),mode:t,primary:P({color:k,name:"primary"}),secondary:P({color:S,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:P({color:C,name:"error"}),warning:P({color:_,name:"warning"}),info:P({color:A,name:"info"}),success:P({color:E,name:"success"}),grey:c.default,contrastThreshold:r,getContrastText:T,augmentColor:P,tonalOffset:u},{dark:x,light:b}[t]),w)}}),c("kSnzZ",function(e,t){var r=u("1jnue");Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.alpha=f,e.exports.blend=function(e,t,r,n=1){let i=(e,t)=>Math.round((e**(1/n)*(1-r)+t**(1/n)*r)**n),a=s(e),o=s(t);return c({type:"rgb",values:[i(a.values[0],o.values[0]),i(a.values[1],o.values[1]),i(a.values[2],o.values[2])]})},e.exports.colorChannel=void 0,e.exports.darken=p,e.exports.decomposeColor=s,e.exports.emphasize=m,e.exports.getContrastRatio=function(e,t){let r=h(e),n=h(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},e.exports.getLuminance=h,e.exports.hexToRgb=o,e.exports.hslToRgb=d,e.exports.lighten=g,e.exports.private_safeAlpha=function(e,t,r){try{return f(e,t)}catch(t){return e}},e.exports.private_safeColorChannel=void 0,e.exports.private_safeDarken=function(e,t,r){try{return p(e,t)}catch(t){return e}},e.exports.private_safeEmphasize=function(e,t,r){try{return m(e,t)}catch(t){return e}},e.exports.private_safeLighten=function(e,t,r){try{return g(e,t)}catch(t){return e}},e.exports.recomposeColor=c,e.exports.rgbToHex=function(e){if(0===e.indexOf("#"))return e;let{values:t}=s(e);return`#${t.map((e,t)=>(function(e){let t=e.toString(16);return 1===t.length?`0${t}`:t})(3===t?Math.round(255*e):e)).join("")}`};var n=r(u("dsPLe")),i=r(u("lYE9x"));function a(e,t=0,r=1){return(0,i.default)(e,t,r)}function o(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}function s(e){let t;if(e.type)return e;if("#"===e.charAt(0))return s(o(e));let r=e.indexOf("("),i=e.substring(0,r);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,n.default)(9,e));let a=e.substring(r+1,e.length-1);if("color"===i){if(t=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(t))throw Error((0,n.default)(10,t))}else a=a.split(",");return{type:i,values:a=a.map(e=>parseFloat(e)),colorSpace:t}}let l=e=>{let t=s(e);return t.values.slice(0,3).map((e,r)=>-1!==t.type.indexOf("hsl")&&0!==r?`${e}%`:e).join(" ")};function c(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}function d(e){let{values:t}=e=s(e),r=t[0],n=t[1]/100,i=t[2]/100,a=n*Math.min(i,1-i),o=(e,t=(e+r/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),l="rgb",u=[Math.round(255*o(0)),Math.round(255*o(8)),Math.round(255*o(4))];return"hsla"===e.type&&(l+="a",u.push(t[3])),c({type:l,values:u})}function h(e){let t="hsl"===(e=s(e)).type||"hsla"===e.type?s(d(e)).values:e.values;return Number((.2126*(t=t.map(t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)))[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function f(e,t){return e=s(e),t=a(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,c(e)}function p(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-t;return c(e)}function g(e,t){if(e=s(e),t=a(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(-1!==e.type.indexOf("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return c(e)}function m(e,t=.15){return h(e)>.5?p(e,t):g(e,t)}e.exports.colorChannel=l,e.exports.private_safeColorChannel=(e,t)=>{try{return l(e)}catch(t){return e}}}),c("1jnue",function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}),c("dsPLe",function(e,t){i(e.exports),r(e.exports,"default",()=>u("cpmCj").default),u("cpmCj")}),c("lYE9x",function(e,t){i(e.exports),r(e.exports,"default",()=>u("1jJMI").default),u("1jJMI")}),c("1jJMI",function(e,t){r(e.exports,"default",()=>n);var n=function(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}}),c("dzxhF",function(e,t){r(e.exports,"default",()=>n);var n={black:"#000",white:"#fff"}}),c("eU5ou",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("kSXRh",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("ln9F4",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("dMYym",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("bKnBV",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("iDVue",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("e4nxq",function(e,t){r(e.exports,"default",()=>n);var n={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"}}),c("d6q8u",function(e,t){r(e.exports,"default",()=>c);var n=u("8nd05"),i=u("1En50"),a=u("3z1Ay");let o=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"],s={textTransform:"uppercase"},l='"Roboto", "Helvetica", "Arial", sans-serif';function c(e,t){let r="function"==typeof t?t(e):t,{fontFamily:u=l,fontSize:c=14,fontWeightLight:d=300,fontWeightRegular:h=400,fontWeightMedium:f=500,fontWeightBold:p=700,htmlFontSize:g=16,allVariants:m,pxToRem:v}=r,b=(0,i.default)(r,o),x=c/14,y=v||(e=>`${e/g*x}rem`),w=(e,t,r,i,a)=>(0,n.default)({fontFamily:u,fontWeight:e,fontSize:y(t),lineHeight:r},u===l?{letterSpacing:`${Math.round(i/t*1e5)/1e5}em`}:{},a,m),k={h1:w(d,96,1.167,-1.5),h2:w(d,60,1.2,-.5),h3:w(h,48,1.167,0),h4:w(h,34,1.235,.25),h5:w(h,24,1.334,0),h6:w(f,20,1.6,.15),subtitle1:w(h,16,1.75,.15),subtitle2:w(f,14,1.57,.1),body1:w(h,16,1.5,.15),body2:w(h,14,1.43,.15),button:w(f,14,1.75,.4,s),caption:w(h,12,1.66,.4),overline:w(h,12,2.66,1,s),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return(0,a.default)((0,n.default)({htmlFontSize:g,pxToRem:y,fontFamily:u,fontSize:c,fontWeightLight:d,fontWeightRegular:h,fontWeightMedium:f,fontWeightBold:p},k),b,{clone:!1})}}),c("jtCFx",function(e,t){function n(...e){return`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2),${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14),${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`}r(e.exports,"default",()=>i);var i=["none",n(0,2,1,-1,0,1,1,0,0,1,3,0),n(0,3,1,-2,0,2,2,0,0,1,5,0),n(0,3,3,-2,0,3,4,0,0,1,8,0),n(0,2,4,-1,0,4,5,0,0,1,10,0),n(0,3,5,-1,0,5,8,0,0,1,14,0),n(0,3,5,-1,0,6,10,0,0,1,18,0),n(0,4,5,-2,0,7,10,1,0,2,16,1),n(0,5,5,-3,0,8,10,1,0,3,14,2),n(0,5,6,-3,0,9,12,1,0,3,16,2),n(0,6,6,-3,0,10,14,1,0,4,18,3),n(0,6,7,-4,0,11,15,1,0,4,20,3),n(0,7,8,-4,0,12,17,2,0,5,22,4),n(0,7,8,-4,0,13,19,2,0,5,24,4),n(0,7,9,-4,0,14,21,2,0,5,26,4),n(0,8,9,-5,0,15,22,2,0,6,28,5),n(0,8,10,-5,0,16,24,2,0,6,30,5),n(0,8,11,-5,0,17,26,2,0,6,32,5),n(0,9,11,-5,0,18,28,2,0,7,34,6),n(0,9,12,-6,0,19,29,2,0,7,36,6),n(0,10,13,-6,0,20,31,3,0,8,38,7),n(0,10,13,-6,0,21,33,3,0,8,40,7),n(0,10,14,-6,0,22,35,3,0,8,42,7),n(0,11,14,-7,0,23,36,3,0,9,44,8),n(0,11,15,-7,0,24,38,3,0,9,46,8)]}),c("bmoVh",function(e,t){r(e.exports,"default",()=>d);var n=u("1En50"),i=u("8nd05");let a=["duration","easing","delay"],o={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)"},s={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function l(e){return`${Math.round(e)}ms`}function c(e){if(!e)return 0;let t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function d(e){let t=(0,i.default)({},o,e.easing),r=(0,i.default)({},s,e.duration);return(0,i.default)({getAutoHeightDuration:c,create:(e=["all"],i={})=>{let{duration:o=r.standard,easing:s=t.easeInOut,delay:u=0}=i;return(0,n.default)(i,a),(Array.isArray(e)?e:[e]).map(e=>`${e} ${"string"==typeof o?o:l(o)} ${s} ${"string"==typeof u?u:l(u)}`).join(",")}},e,{easing:t,duration:r})}}),c("lhXgK",function(e,t){r(e.exports,"default",()=>n);var n={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}),c("4jPsi",function(e,t){r(e.exports,"default",()=>n);var n="$$material"}),c("hOwN9",function(e,t){i(e.exports),r(e.exports,"default",()=>n);var n=(0,u("beCSm").default)("MuiBox",["root"])}),c("beCSm",function(e,t){r(e.exports,"default",()=>i);var n=u("4Cod0");function i(e,t,r="Mui"){let a={};return t.forEach(t=>{a[t]=(0,n.default)(e,t,r)}),a}}),c("4Cod0",function(e,t){r(e.exports,"default",()=>a);var n=u("bnost");let i={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function a(e,t,r="Mui"){let o=i[t];return o?`${r}-${o}`:`${(0,n.default).generate(e)}-${t}`}}),c("bGe9g",function(e,t){i(e.exports),r(e.exports,"default",()=>u("30hyv").default),r(e.exports,"tableClasses",()=>u("5kXxI").default),u("30hyv");var n=u("5kXxI");a(e.exports,n)}),c("30hyv",function(e,t){r(e.exports,"default",()=>b);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("jWrFr"),c=u("1iOpW"),d=u("d8seH"),h=u("5kXxI"),f=u("ayMG0");let p=["className","component","padding","size","stickyHeader"],g=e=>{let{classes:t,stickyHeader:r}=e;return(0,s.default)({root:["root",r&&"stickyHeader"]},h.getTableUtilityClass,t)},m=(0,d.default)("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,i.default)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":(0,i.default)({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),v="table";var b=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiTable"}),{className:s,component:u=v,padding:d="normal",size:h="medium",stickyHeader:b=!1}=r,x=(0,n.default)(r,p),y=(0,i.default)({},r,{component:u,padding:d,size:h,stickyHeader:b}),w=g(y),k=a.useMemo(()=>({padding:d,size:h,stickyHeader:b}),[d,h,b]);return/*#__PURE__*/(0,f.jsx)(l.default.Provider,{value:k,children:/*#__PURE__*/(0,f.jsx)(m,(0,i.default)({as:u,role:u===v?null:"table",ref:t,className:(0,o.default)(w.root,s),ownerState:y},x))})})}),c("8Indx",function(e,t){r(e.exports,"default",()=>n);function n(e,t,r){let n={};return Object.keys(e).forEach(i=>{n[i]=e[i].reduce((e,n)=>{if(n){let i=t(n);""!==i&&e.push(i),r&&r[n]&&e.push(r[n])}return e},[]).join(" ")}),n}}),c("jWrFr",function(e,t){r(e.exports,"default",()=>n);var n=/*#__PURE__*/u("acw62").createContext()}),c("1iOpW",function(e,t){r(e.exports,"useDefaultProps",()=>i),u("8nd05"),u("acw62");var n=u("aMyfV");function i(e){return(0,n.useDefaultProps)(e)}u("ayMG0")}),c("aMyfV",function(e,t){r(e.exports,"useDefaultProps",()=>s),r(e.exports,"default",()=>l);var n=u("acw62"),i=u("4FZD0"),a=u("ayMG0");let o=/*#__PURE__*/n.createContext(void 0);function s({props:e,name:t}){return function(e){let{theme:t,name:r,props:n}=e;if(!t||!t.components||!t.components[r])return n;let a=t.components[r];return a.defaultProps?(0,i.default)(a.defaultProps,n):a.styleOverrides||a.variants?n:(0,i.default)(a,n)}({props:e,name:t,theme:{components:n.useContext(o)}})}var l=function({value:e,children:t}){return/*#__PURE__*/(0,a.jsx)(o.Provider,{value:e,children:t})}}),c("4FZD0",function(e,t){r(e.exports,"default",()=>function e(t,r){let i=(0,n.default)({},r);return Object.keys(t).forEach(a=>{if(a.toString().match(/^(components|slots)$/))i[a]=(0,n.default)({},t[a],i[a]);else if(a.toString().match(/^(componentsProps|slotProps)$/)){let o=t[a]||{},s=r[a];i[a]={},s&&Object.keys(s)?o&&Object.keys(o)?(i[a]=(0,n.default)({},s),Object.keys(o).forEach(t=>{i[a][t]=e(o[t],s[t])})):i[a]=s:i[a]=o}else void 0===i[a]&&(i[a]=t[a])}),i});var n=u("8nd05")}),c("d8seH",function(e,t){r(e.exports,"default",()=>l),r(e.exports,"rootShouldForwardProp",()=>u("8Uq77").default);var n=u("bpUvK"),i=u("jR9F1"),a=u("4jPsi"),s=u("8Uq77"),l=/*@__PURE__*/o(n)({themeId:a.default,defaultTheme:i.default,rootShouldForwardProp:s.default})}),c("bpUvK",function(e,t){var r=u("1jnue");Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=function(e={}){let{themeId:t,defaultTheme:r=g,rootShouldForwardProp:s=p,slotShouldForwardProp:u=p}=e,c=e=>(0,l.default)((0,n.default)({},e,{theme:v((0,n.default)({},e,{defaultTheme:r,themeId:t}))}));return c.__mui_systemSx=!0,(e,l={})=>{var d;let f;(0,a.internal_processStyles)(e,e=>e.filter(e=>!(null!=e&&e.__mui_systemSx)));let{name:g,slot:x,skipVariantsResolver:y,skipSx:w,overridesResolver:k=(d=m(x))?(e,t)=>t[d]:null}=l,S=(0,i.default)(l,h),C=void 0!==y?y:x&&"Root"!==x&&"root"!==x||!1,A=w||!1,E=p;"Root"===x||"root"===x?E=s:x?E=u:"string"==typeof e&&e.charCodeAt(0)>96&&(E=void 0);let _=(0,a.default)(e,(0,n.default)({shouldForwardProp:E,label:f},S)),T=e=>"function"==typeof e&&e.__emotion_real!==e||(0,o.isPlainObject)(e)?i=>b(e,(0,n.default)({},i,{theme:v({theme:i.theme,defaultTheme:r,themeId:t})})):e,P=(i,...a)=>{let o=T(i),s=a?a.map(T):[];g&&k&&s.push(e=>{let i=v((0,n.default)({},e,{defaultTheme:r,themeId:t}));if(!i.components||!i.components[g]||!i.components[g].styleOverrides)return null;let a=i.components[g].styleOverrides,o={};return Object.entries(a).forEach(([t,r])=>{o[t]=b(r,(0,n.default)({},e,{theme:i}))}),k(e,o)}),g&&!C&&s.push(e=>{var i;let a=v((0,n.default)({},e,{defaultTheme:r,themeId:t}));return b({variants:null==a||null==(i=a.components)||null==(i=i[g])?void 0:i.variants},(0,n.default)({},e,{theme:a}))}),A||s.push(c);let l=s.length-a.length;if(Array.isArray(i)&&l>0){let e=Array(l).fill("");(o=[...i,...e]).raw=[...i.raw,...e]}let u=_(o,...s);return e.muiName&&(u.muiName=e.muiName),u};return _.withConfig&&(P.withConfig=_.withConfig),P}},e.exports.shouldForwardProp=p,e.exports.systemDefaultTheme=void 0;var n=r(u("3p9rK")),i=r(u("c05no")),a=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(void 0);if(r&&r.has(e))return r.get(e);var n={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=i?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}(u("bOOlK")),o=u("3z1Ay");r(u("2A1GY")),r(u("eQufN"));var s=r(u("5QV4f")),l=r(u("2bwhi"));let c=["ownerState"],d=["variants"],h=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function p(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}let g=e.exports.systemDefaultTheme=(0,s.default)(),m=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function v({defaultTheme:e,theme:t,themeId:r}){return 0===Object.keys(t).length?e:t[r]||t}function b(e,t){let{ownerState:r}=t,a=(0,i.default)(t,c),o="function"==typeof e?e((0,n.default)({ownerState:r},a)):e;if(Array.isArray(o))return o.flatMap(e=>b(e,(0,n.default)({ownerState:r},a)));if(o&&"object"==typeof o&&Array.isArray(o.variants)){let{variants:e=[]}=o,t=(0,i.default)(o,d);return e.forEach(e=>{let i=!0;"function"==typeof e.props?i=e.props((0,n.default)({ownerState:r},a,r)):Object.keys(e.props).forEach(t=>{(null==r?void 0:r[t])!==e.props[t]&&a[t]!==e.props[t]&&(i=!1)}),i&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,n.default)({ownerState:r},a,r)):e.style))}),t}return o}}),c("c05no",function(e,t){e.exports=function(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i},e.exports.__esModule=!0,e.exports.default=e.exports}),c("2A1GY",function(e,t){i(e.exports),r(e.exports,"default",()=>u("gxvzd").default),u("gxvzd")}),c("eQufN",function(e,t){i(e.exports),r(e.exports,"default",()=>u("eWm0o").default);var n=u("eWm0o");a(e.exports,n)}),c("eWm0o",function(e,t){i(e.exports),r(e.exports,"getFunctionName",()=>o),r(e.exports,"default",()=>c);var n=u("4jPKB");let a=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function o(e){let t=`${e}`.match(a);return t&&t[1]||""}function s(e,t=""){return e.displayName||e.name||o(e)||t}function l(e,t,r){let n=s(t);return e.displayName||(""!==n?`${r}(${n})`:r)}function c(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return s(e,"Component");if("object"==typeof e)switch(e.$$typeof){case n.ForwardRef:return l(e,e.render,"ForwardRef");case n.Memo:return l(e,e.type,"memo")}}}}),c("4jPKB",function(e,t){e.exports=u("9cCWX")}),c("9cCWX",function(e,t){r(e.exports,"ContextConsumer",()=>n,e=>n=e),r(e.exports,"ContextProvider",()=>i,e=>i=e),r(e.exports,"Element",()=>a,e=>a=e),r(e.exports,"ForwardRef",()=>o,e=>o=e),r(e.exports,"Fragment",()=>s,e=>s=e),r(e.exports,"Lazy",()=>l,e=>l=e),r(e.exports,"Memo",()=>u,e=>u=e),r(e.exports,"Portal",()=>c,e=>c=e),r(e.exports,"Profiler",()=>d,e=>d=e),r(e.exports,"StrictMode",()=>h,e=>h=e),r(e.exports,"Suspense",()=>f,e=>f=e),r(e.exports,"SuspenseList",()=>p,e=>p=e),r(e.exports,"isAsyncMode",()=>g,e=>g=e),r(e.exports,"isConcurrentMode",()=>m,e=>m=e),r(e.exports,"isContextConsumer",()=>v,e=>v=e),r(e.exports,"isContextProvider",()=>b,e=>b=e),r(e.exports,"isElement",()=>x,e=>x=e),r(e.exports,"isForwardRef",()=>y,e=>y=e),r(e.exports,"isFragment",()=>w,e=>w=e),r(e.exports,"isLazy",()=>k,e=>k=e),r(e.exports,"isMemo",()=>S,e=>S=e),r(e.exports,"isPortal",()=>C,e=>C=e),r(e.exports,"isProfiler",()=>A,e=>A=e),r(e.exports,"isStrictMode",()=>E,e=>E=e),r(e.exports,"isSuspense",()=>_,e=>_=e),r(e.exports,"isSuspenseList",()=>T,e=>T=e),r(e.exports,"isValidElementType",()=>P,e=>P=e),r(e.exports,"typeOf",()=>O,e=>O=e);var n,i,a,o,s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E,_,T,P,O,M,I=Symbol.for("react.element"),L=Symbol.for("react.portal"),R=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),D=Symbol.for("react.provider"),F=Symbol.for("react.context"),B=Symbol.for("react.server_context"),W=Symbol.for("react.forward_ref"),H=Symbol.for("react.suspense"),X=Symbol.for("react.suspense_list"),Y=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),V=Symbol.for("react.offscreen");function G(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case I:switch(e=e.type){case R:case z:case N:case H:case X:return e;default:switch(e=e&&e.$$typeof){case B:case F:case W:case U:case Y:case D:return e;default:return t}}case L:return t}}}M=Symbol.for("react.module.reference"),n=F,i=D,a=I,o=W,s=R,l=U,u=Y,c=L,d=z,h=N,f=H,p=X,g=function(){return!1},m=function(){return!1},v=function(e){return G(e)===F},b=function(e){return G(e)===D},x=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===I},y=function(e){return G(e)===W},w=function(e){return G(e)===R},k=function(e){return G(e)===U},S=function(e){return G(e)===Y},C=function(e){return G(e)===L},A=function(e){return G(e)===z},E=function(e){return G(e)===N},_=function(e){return G(e)===H},T=function(e){return G(e)===X},P=function(e){return"string"==typeof e||"function"==typeof e||e===R||e===z||e===N||e===H||e===X||e===V||"object"==typeof e&&null!==e&&(e.$$typeof===U||e.$$typeof===Y||e.$$typeof===D||e.$$typeof===F||e.$$typeof===W||e.$$typeof===M||void 0!==e.getModuleId)},O=G}),c("5QV4f",function(e,t){i(e.exports),r(e.exports,"default",()=>u("6o2lr").default),r(e.exports,"private_createBreakpoints",()=>u("dLM8u").default),r(e.exports,"unstable_applyStyles",()=>u("2UDLz").default),u("6o2lr"),u("dLM8u"),u("2UDLz")}),c("2bwhi",function(e,t){i(e.exports),r(e.exports,"default",()=>u("9dZwz").default),r(e.exports,"unstable_createStyleFunctionSx",()=>u("9dZwz").unstable_createStyleFunctionSx),r(e.exports,"extendSxProp",()=>u("hcz0Q").default),r(e.exports,"unstable_defaultSxConfig",()=>u("kOOck").default),u("9dZwz"),u("hcz0Q"),u("kOOck")}),c("jR9F1",function(e,t){r(e.exports,"default",()=>n);var n=(0,u("ijOKP").default)()}),c("8Uq77",function(e,t){r(e.exports,"default",()=>i);var n=u("PJRTc"),i=e=>(0,n.default)(e)&&"classes"!==e}),c("PJRTc",function(e,t){r(e.exports,"default",()=>n);var n=function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}}),c("5kXxI",function(e,t){i(e.exports),r(e.exports,"getTableUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTable",e)}var s=(0,n.default)("MuiTable",["root","stickyHeader"])}),c("5hLrb",function(e,t){i(e.exports),r(e.exports,"default",()=>u("QpuKB").default),r(e.exports,"tableBodyClasses",()=>u("dfSTK").default),u("QpuKB");var n=u("dfSTK");a(e.exports,n)}),c("QpuKB",function(e,t){r(e.exports,"default",()=>x);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("RbMj7"),c=u("1iOpW"),d=u("d8seH"),h=u("dfSTK"),f=u("ayMG0");let p=["className","component"],g=e=>{let{classes:t}=e;return(0,s.default)({root:["root"]},h.getTableBodyUtilityClass,t)},m=(0,d.default)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),v={variant:"body"},b="tbody";var x=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiTableBody"}),{className:a,component:s=b}=r,u=(0,i.default)(r,p),d=(0,n.default)({},r,{component:s}),h=g(d);return/*#__PURE__*/(0,f.jsx)(l.default.Provider,{value:v,children:/*#__PURE__*/(0,f.jsx)(m,(0,n.default)({className:(0,o.default)(h.root,a),as:s,ref:t,role:s===b?null:"rowgroup",ownerState:d},u))})})}),c("RbMj7",function(e,t){r(e.exports,"default",()=>n);var n=/*#__PURE__*/u("acw62").createContext()}),c("dfSTK",function(e,t){i(e.exports),r(e.exports,"getTableBodyUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableBody",e)}var s=(0,n.default)("MuiTableBody",["root"])}),c("hjoMW",function(e,t){i(e.exports),r(e.exports,"default",()=>u("elyLx").default),r(e.exports,"tableCellClasses",()=>u("ev9nI").default),u("elyLx");var n=u("ev9nI");a(e.exports,n)}),c("elyLx",function(e,t){r(e.exports,"default",()=>y);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("jTnBY"),d=u("jWrFr"),h=u("RbMj7"),f=u("1iOpW"),p=u("d8seH"),g=u("ev9nI"),m=u("ayMG0");let v=["align","className","component","padding","scope","size","sortDirection","variant"],b=e=>{let{classes:t,variant:r,align:n,padding:i,size:a,stickyHeader:o}=e,l={root:["root",r,o&&"stickyHeader","inherit"!==n&&`align${(0,c.default)(n)}`,"normal"!==i&&`padding${(0,c.default)(i)}`,`size${(0,c.default)(a)}`]};return(0,s.default)(l,g.getTableCellUtilityClass,t)},x=(0,p.default)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`size${(0,c.default)(r.size)}`],"normal"!==r.padding&&t[`padding${(0,c.default)(r.padding)}`],"inherit"!==r.align&&t[`align${(0,c.default)(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>(0,i.default)({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
8
|
+
${"light"===e.palette.mode?(0,l.lighten)((0,l.alpha)(e.palette.divider,1),.88):(0,l.darken)((0,l.alpha)(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${g.default.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}));var y=/*#__PURE__*/a.forwardRef(function(e,t){let r;let s=(0,f.useDefaultProps)({props:e,name:"MuiTableCell"}),{align:l="inherit",className:u,component:c,padding:p,scope:g,size:y,sortDirection:w,variant:k}=s,S=(0,n.default)(s,v),C=a.useContext(d.default),A=a.useContext(h.default),E=A&&"head"===A.variant,_=g;"td"===(r=c||(E?"th":"td"))?_=void 0:!_&&E&&(_="col");let T=k||A&&A.variant,P=(0,i.default)({},s,{align:l,component:r,padding:p||(C&&C.padding?C.padding:"normal"),size:y||(C&&C.size?C.size:"medium"),sortDirection:w,stickyHeader:"head"===T&&C&&C.stickyHeader,variant:T}),O=b(P),M=null;return w&&(M="asc"===w?"ascending":"descending"),/*#__PURE__*/(0,m.jsx)(x,(0,i.default)({as:r,ref:t,className:(0,o.default)(O.root,u),"aria-sort":M,scope:_,ownerState:P},S))})}),c("jTnBY",function(e,t){r(e.exports,"default",()=>n);var n=u("gxvzd").default}),c("ev9nI",function(e,t){i(e.exports),r(e.exports,"getTableCellUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableCell",e)}var s=(0,n.default)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"])}),c("12YAp",function(e,t){i(e.exports),r(e.exports,"default",()=>u("81yMd").default),r(e.exports,"tableContainerClasses",()=>u("lNHXc").default),u("81yMd");var n=u("lNHXc");a(e.exports,n)}),c("81yMd",function(e,t){r(e.exports,"default",()=>m);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("1iOpW"),c=u("d8seH"),d=u("lNHXc"),h=u("ayMG0");let f=["className","component"],p=e=>{let{classes:t}=e;return(0,s.default)({root:["root"]},d.getTableContainerUtilityClass,t)},g=(0,c.default)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"});var m=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,l.useDefaultProps)({props:e,name:"MuiTableContainer"}),{className:a,component:s="div"}=r,u=(0,i.default)(r,f),c=(0,n.default)({},r,{component:s}),d=p(c);return/*#__PURE__*/(0,h.jsx)(g,(0,n.default)({ref:t,as:s,className:(0,o.default)(d.root,a),ownerState:c},u))})}),c("lNHXc",function(e,t){i(e.exports),r(e.exports,"getTableContainerUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableContainer",e)}var s=(0,n.default)("MuiTableContainer",["root"])}),c("g2Lhl",function(e,t){i(e.exports),r(e.exports,"default",()=>u("hjXJ8").default),r(e.exports,"tableHeadClasses",()=>u("hMbPk").default),u("hjXJ8");var n=u("hMbPk");a(e.exports,n)}),c("hjXJ8",function(e,t){r(e.exports,"default",()=>x);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("RbMj7"),c=u("1iOpW"),d=u("d8seH"),h=u("hMbPk"),f=u("ayMG0");let p=["className","component"],g=e=>{let{classes:t}=e;return(0,s.default)({root:["root"]},h.getTableHeadUtilityClass,t)},m=(0,d.default)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),v={variant:"head"},b="thead";var x=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiTableHead"}),{className:a,component:s=b}=r,u=(0,i.default)(r,p),d=(0,n.default)({},r,{component:s}),h=g(d);return/*#__PURE__*/(0,f.jsx)(l.default.Provider,{value:v,children:/*#__PURE__*/(0,f.jsx)(m,(0,n.default)({as:s,className:(0,o.default)(h.root,a),ref:t,role:s===b?null:"rowgroup",ownerState:d},u))})})}),c("hMbPk",function(e,t){i(e.exports),r(e.exports,"getTableHeadUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableHead",e)}var s=(0,n.default)("MuiTableHead",["root"])}),c("7IILB",function(e,t){i(e.exports),r(e.exports,"default",()=>u("2XjE0").default),r(e.exports,"tableRowClasses",()=>u("4iLi6").default),u("2XjE0");var n=u("4iLi6");a(e.exports,n)}),c("2XjE0",function(e,t){r(e.exports,"default",()=>b);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("RbMj7"),d=u("1iOpW"),h=u("d8seH"),f=u("4iLi6"),p=u("ayMG0");let g=["className","component","hover","selected"],m=e=>{let{classes:t,selected:r,hover:n,head:i,footer:a}=e;return(0,s.default)({root:["root",r&&"selected",n&&"hover",i&&"head",a&&"footer"]},f.getTableRowUtilityClass,t)},v=(0,h.default)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${f.default.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${f.default.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}));var b=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiTableRow"}),{className:s,component:l="tr",hover:u=!1,selected:h=!1}=r,f=(0,i.default)(r,g),b=a.useContext(c.default),x=(0,n.default)({},r,{component:l,hover:u,selected:h,head:b&&"head"===b.variant,footer:b&&"footer"===b.variant}),y=m(x);return/*#__PURE__*/(0,p.jsx)(v,(0,n.default)({as:l,ref:t,className:(0,o.default)(y.root,s),role:"tr"===l?null:"row",ownerState:x},f))})}),c("4iLi6",function(e,t){i(e.exports),r(e.exports,"getTableRowUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableRow",e)}var s=(0,n.default)("MuiTableRow",["root","selected","hover","head","footer"])}),c("Zain6",function(e,t){i(e.exports),r(e.exports,"default",()=>u("gjoVE").default),r(e.exports,"tableSortLabelClasses",()=>u("9NhvM").default),u("gjoVE");var n=u("9NhvM");a(e.exports,n)}),c("gjoVE",function(e,t){r(e.exports,"default",()=>y);var n=u("1En50"),i=u("8nd05"),a=u("8Indx"),o=u("9QePP"),s=u("acw62"),l=u("6n0Ko"),c=u("5egRk"),d=u("d8seH"),h=u("1iOpW"),f=u("jTnBY"),p=u("9NhvM"),g=u("ayMG0");let m=["active","children","className","direction","hideSortIcon","IconComponent"],v=e=>{let{classes:t,direction:r,active:n}=e,i={root:["root",n&&"active"],icon:["icon",`iconDirection${(0,f.default)(r)}`]};return(0,a.default)(i,p.getTableSortLabelUtilityClass,t)},b=(0,d.default)(l.default,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.active&&t.active]}})(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${p.default.icon}`]:{opacity:.5}},[`&.${p.default.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${p.default.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}})),x=(0,d.default)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.icon,t[`iconDirection${(0,f.default)(r.direction)}`]]}})(({theme:e,ownerState:t})=>(0,i.default)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"}));var y=/*#__PURE__*/s.forwardRef(function(e,t){let r=(0,h.useDefaultProps)({props:e,name:"MuiTableSortLabel"}),{active:a=!1,children:s,className:l,direction:u="asc",hideSortIcon:d=!1,IconComponent:f=c.default}=r,p=(0,n.default)(r,m),y=(0,i.default)({},r,{active:a,direction:u,hideSortIcon:d,IconComponent:f}),w=v(y);return/*#__PURE__*/(0,g.jsxs)(b,(0,i.default)({className:(0,o.default)(w.root,l),component:"span",disableRipple:!0,ownerState:y,ref:t},p,{children:[s,d&&!a?null:/*#__PURE__*/(0,g.jsx)(x,{as:f,className:(0,o.default)(w.icon),ownerState:y})]}))})}),c("6n0Ko",function(e,t){r(e.exports,"default",()=>y);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("d8seH"),c=u("1iOpW"),d=u("9Rgf1"),h=u("4o7uD"),f=u("cllwi"),p=u("brF9L"),g=u("5JO1P"),m=u("ayMG0");let v=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],b=e=>{let{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:i}=e,a=(0,s.default)({root:["root",t&&"disabled",r&&"focusVisible"]},g.getButtonBaseUtilityClass,i);return r&&n&&(a.root+=` ${n}`),a},x=(0,l.default)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${g.default.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}});var y=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiButtonBase"}),{action:s,centerRipple:l=!1,children:u,className:g,component:y="button",disabled:w=!1,disableRipple:k=!1,disableTouchRipple:S=!1,focusRipple:C=!1,LinkComponent:A="a",onBlur:E,onClick:_,onContextMenu:T,onDragLeave:P,onFocus:O,onFocusVisible:M,onKeyDown:I,onKeyUp:L,onMouseDown:R,onMouseLeave:N,onMouseUp:z,onTouchEnd:D,onTouchMove:F,onTouchStart:B,tabIndex:W=0,TouchRippleProps:H,touchRippleRef:X,type:Y}=r,U=(0,i.default)(r,v),V=a.useRef(null),G=a.useRef(null),$=(0,d.default)(G,X),{isFocusVisibleRef:q,onFocus:Z,onBlur:K,ref:Q}=(0,f.default)(),[J,ee]=a.useState(!1);w&&J&&ee(!1),a.useImperativeHandle(s,()=>({focusVisible:()=>{ee(!0),V.current.focus()}}),[]);let[et,er]=a.useState(!1);a.useEffect(()=>{er(!0)},[]);let en=et&&!k&&!w;function ei(e,t,r=S){return(0,h.default)(n=>(t&&t(n),!r&&G.current&&G.current[e](n),!0))}a.useEffect(()=>{J&&C&&!k&&et&&G.current.pulsate()},[k,C,J,et]);let ea=ei("start",R),eo=ei("stop",T),es=ei("stop",P),el=ei("stop",z),eu=ei("stop",e=>{J&&e.preventDefault(),N&&N(e)}),ec=ei("start",B),ed=ei("stop",D),eh=ei("stop",F),ef=ei("stop",e=>{K(e),!1===q.current&&ee(!1),E&&E(e)},!1),ep=(0,h.default)(e=>{V.current||(V.current=e.currentTarget),Z(e),!0===q.current&&(ee(!0),M&&M(e)),O&&O(e)}),eg=()=>{let e=V.current;return y&&"button"!==y&&!("A"===e.tagName&&e.href)},em=a.useRef(!1),ev=(0,h.default)(e=>{C&&!em.current&&J&&G.current&&" "===e.key&&(em.current=!0,G.current.stop(e,()=>{G.current.start(e)})),e.target===e.currentTarget&&eg()&&" "===e.key&&e.preventDefault(),I&&I(e),e.target===e.currentTarget&&eg()&&"Enter"===e.key&&!w&&(e.preventDefault(),_&&_(e))}),eb=(0,h.default)(e=>{C&&" "===e.key&&G.current&&J&&!e.defaultPrevented&&(em.current=!1,G.current.stop(e,()=>{G.current.pulsate(e)})),L&&L(e),_&&e.target===e.currentTarget&&eg()&&" "===e.key&&!e.defaultPrevented&&_(e)}),ex=y;"button"===ex&&(U.href||U.to)&&(ex=A);let ey={};"button"===ex?(ey.type=void 0===Y?"button":Y,ey.disabled=w):(U.href||U.to||(ey.role="button"),w&&(ey["aria-disabled"]=w));let ew=(0,d.default)(t,Q,V),ek=(0,n.default)({},r,{centerRipple:l,component:y,disabled:w,disableRipple:k,disableTouchRipple:S,focusRipple:C,tabIndex:W,focusVisible:J}),eS=b(ek);return/*#__PURE__*/(0,m.jsxs)(x,(0,n.default)({as:ex,className:(0,o.default)(eS.root,g),ownerState:ek,onBlur:ef,onClick:_,onContextMenu:eo,onFocus:ep,onKeyDown:ev,onKeyUp:eb,onMouseDown:ea,onMouseLeave:eu,onMouseUp:el,onDragLeave:es,onTouchEnd:ed,onTouchMove:eh,onTouchStart:ec,ref:ew,tabIndex:w?-1:W,type:Y},ey,U,{children:[u,en?/*#__PURE__*/(0,m.jsx)(p.default,(0,n.default)({ref:$,center:l},H)):null]}))})}),c("9Rgf1",function(e,t){r(e.exports,"default",()=>n);var n=u("3qSdM").default}),c("3qSdM",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62"),i=u("hervl");function a(...e){return n.useMemo(()=>e.every(e=>null==e)?null:t=>{e.forEach(e=>{(0,i.default)(e,t)})},e)}}),c("hervl",function(e,t){r(e.exports,"default",()=>n);function n(e,t){"function"==typeof e?e(t):e&&(e.current=t)}}),c("4o7uD",function(e,t){r(e.exports,"default",()=>n);var n=u("13KXh").default}),c("13KXh",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62"),i=u("eEJPp"),a=function(e){let t=n.useRef(e);return(0,i.default)(()=>{t.current=e}),n.useRef((...e)=>(0,t.current)(...e)).current}}),c("eEJPp",function(e,t){r(e.exports,"default",()=>i);var n=u("acw62"),i="undefined"!=typeof window?n.useLayoutEffect:n.useEffect}),c("cllwi",function(e,t){r(e.exports,"default",()=>n);var n=u("1SuLX").default}),c("1SuLX",function(e,t){r(e.exports,"default",()=>f);var n=u("acw62"),i=u("lHOu3");let a=!0,o=!1,s=new i.Timeout,l={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 c(e){e.metaKey||e.altKey||e.ctrlKey||(a=!0)}function d(){a=!1}function h(){"hidden"===this.visibilityState&&o&&(a=!0)}function f(){let e=n.useCallback(e=>{if(null!=e){var t;(t=e.ownerDocument).addEventListener("keydown",c,!0),t.addEventListener("mousedown",d,!0),t.addEventListener("pointerdown",d,!0),t.addEventListener("touchstart",d,!0),t.addEventListener("visibilitychange",h,!0)}},[]),t=n.useRef(!1);return{isFocusVisibleRef:t,onFocus:function(e){return!!function(e){let{target:t}=e;try{return t.matches(":focus-visible")}catch(e){}return a||function(e){let{type:t,tagName:r}=e;return"INPUT"===r&&!!l[t]&&!e.readOnly||"TEXTAREA"===r&&!e.readOnly||!!e.isContentEditable}(t)}(e)&&(t.current=!0,!0)},onBlur:function(){return!!t.current&&(o=!0,s.start(100,()=>{o=!1}),t.current=!1,!0)},ref:e}}}),c("lHOu3",function(e,t){r(e.exports,"Timeout",()=>a),r(e.exports,"default",()=>o);var n=u("iYIN2"),i=u("dOphX");class a{constructor(){this.currentId=null,this.clear=()=>{null!==this.currentId&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new a}start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}}function o(){let e=(0,n.default)(a.create).current;return(0,i.default)(e.disposeEffect),e}}),c("iYIN2",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62");let i={};function a(e,t){let r=n.useRef(i);return r.current===i&&(r.current=e(t)),r}}),c("dOphX",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62");let i=[];function a(e){n.useEffect(e,i)}}),c("brF9L",function(e,t){r(e.exports,"default",()=>_);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("jEvxL"),s=u("9QePP"),l=u("jjlaj"),c=u("lHOu3"),d=u("d8seH"),h=u("1iOpW"),f=u("hruNq"),p=u("a4Mf7"),g=u("ayMG0");let m=["center","classes","className"],v=e=>e,b,x,y,w,k=(0,l.keyframes)(b||(b=v`
|
|
9
|
+
0% {
|
|
10
|
+
transform: scale(0);
|
|
11
|
+
opacity: 0.1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
100% {
|
|
15
|
+
transform: scale(1);
|
|
16
|
+
opacity: 0.3;
|
|
17
|
+
}
|
|
18
|
+
`)),S=(0,l.keyframes)(x||(x=v`
|
|
19
|
+
0% {
|
|
20
|
+
opacity: 1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
100% {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
`)),C=(0,l.keyframes)(y||(y=v`
|
|
27
|
+
0% {
|
|
28
|
+
transform: scale(1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
50% {
|
|
32
|
+
transform: scale(0.92);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
100% {
|
|
36
|
+
transform: scale(1);
|
|
37
|
+
}
|
|
38
|
+
`)),A=(0,d.default)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),E=(0,d.default)(f.default,{name:"MuiTouchRipple",slot:"Ripple"})(w||(w=v`
|
|
39
|
+
opacity: 0;
|
|
40
|
+
position: absolute;
|
|
41
|
+
|
|
42
|
+
&.${0} {
|
|
43
|
+
opacity: 0.3;
|
|
44
|
+
transform: scale(1);
|
|
45
|
+
animation-name: ${0};
|
|
46
|
+
animation-duration: ${0}ms;
|
|
47
|
+
animation-timing-function: ${0};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&.${0} {
|
|
51
|
+
animation-duration: ${0}ms;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& .${0} {
|
|
55
|
+
opacity: 1;
|
|
56
|
+
display: block;
|
|
57
|
+
width: 100%;
|
|
58
|
+
height: 100%;
|
|
59
|
+
border-radius: 50%;
|
|
60
|
+
background-color: currentColor;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& .${0} {
|
|
64
|
+
opacity: 0;
|
|
65
|
+
animation-name: ${0};
|
|
66
|
+
animation-duration: ${0}ms;
|
|
67
|
+
animation-timing-function: ${0};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& .${0} {
|
|
71
|
+
position: absolute;
|
|
72
|
+
/* @noflip */
|
|
73
|
+
left: 0px;
|
|
74
|
+
top: 0;
|
|
75
|
+
animation-name: ${0};
|
|
76
|
+
animation-duration: 2500ms;
|
|
77
|
+
animation-timing-function: ${0};
|
|
78
|
+
animation-iteration-count: infinite;
|
|
79
|
+
animation-delay: 200ms;
|
|
80
|
+
}
|
|
81
|
+
`),p.default.rippleVisible,k,550,({theme:e})=>e.transitions.easing.easeInOut,p.default.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,p.default.child,p.default.childLeaving,S,550,({theme:e})=>e.transitions.easing.easeInOut,p.default.childPulsate,C,({theme:e})=>e.transitions.easing.easeInOut);var _=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,h.useDefaultProps)({props:e,name:"MuiTouchRipple"}),{center:l=!1,classes:u={},className:d}=r,f=(0,i.default)(r,m),[v,b]=a.useState([]),x=a.useRef(0),y=a.useRef(null);a.useEffect(()=>{y.current&&(y.current(),y.current=null)},[v]);let w=a.useRef(!1),k=(0,c.default)(),S=a.useRef(null),C=a.useRef(null),_=a.useCallback(e=>{let{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;b(e=>[...e,/*#__PURE__*/(0,g.jsx)(E,{classes:{ripple:(0,s.default)(u.ripple,p.default.ripple),rippleVisible:(0,s.default)(u.rippleVisible,p.default.rippleVisible),ripplePulsate:(0,s.default)(u.ripplePulsate,p.default.ripplePulsate),child:(0,s.default)(u.child,p.default.child),childLeaving:(0,s.default)(u.childLeaving,p.default.childLeaving),childPulsate:(0,s.default)(u.childPulsate,p.default.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},x.current)]),x.current+=1,y.current=a},[u]),T=a.useCallback((e={},t={},r=()=>{})=>{let n,i,a;let{pulsate:o=!1,center:s=l||t.pulsate,fakeElement:u=!1}=t;if((null==e?void 0:e.type)==="mousedown"&&w.current){w.current=!1;return}(null==e?void 0:e.type)==="touchstart"&&(w.current=!0);let c=u?null:C.current,d=c?c.getBoundingClientRect():{width:0,height:0,left:0,top:0};if(!s&&void 0!==e&&(0!==e.clientX||0!==e.clientY)&&(e.clientX||e.touches)){let{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;n=Math.round(t-d.left),i=Math.round(r-d.top)}else n=Math.round(d.width/2),i=Math.round(d.height/2);s?(a=Math.sqrt((2*d.width**2+d.height**2)/3))%2==0&&(a+=1):a=Math.sqrt((2*Math.max(Math.abs((c?c.clientWidth:0)-n),n)+2)**2+(2*Math.max(Math.abs((c?c.clientHeight:0)-i),i)+2)**2),null!=e&&e.touches?null===S.current&&(S.current=()=>{_({pulsate:o,rippleX:n,rippleY:i,rippleSize:a,cb:r})},k.start(80,()=>{S.current&&(S.current(),S.current=null)})):_({pulsate:o,rippleX:n,rippleY:i,rippleSize:a,cb:r})},[l,_,k]),P=a.useCallback(()=>{T({},{pulsate:!0})},[T]),O=a.useCallback((e,t)=>{if(k.clear(),(null==e?void 0:e.type)==="touchend"&&S.current){S.current(),S.current=null,k.start(0,()=>{O(e,t)});return}S.current=null,b(e=>e.length>0?e.slice(1):e),y.current=t},[k]);return a.useImperativeHandle(t,()=>({pulsate:P,start:T,stop:O}),[P,T,O]),/*#__PURE__*/(0,g.jsx)(A,(0,n.default)({className:(0,s.default)(p.default.root,u.root,d),ref:C},f,{children:/*#__PURE__*/(0,g.jsx)(o.default,{component:null,exit:!0,children:v})}))})}),c("jEvxL",function(e,t){r(e.exports,"default",()=>p);var n=u("1En50"),i=u("8nd05"),a=u("hDpcU"),s=u("g7ajw"),l=u("acw62"),c=u("6xlZQ"),d=u("n2pn1"),h=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},f=/*#__PURE__*/function(e){function t(t,r){var n,i=(n=e.call(this,t,r)||this).handleExited.bind((0,a.default)(n));return n.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},n}(0,s.default)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var r=t.children,n=t.handleExited;return{children:t.firstRender?(0,d.getInitialChildMapping)(e,n):(0,d.getNextChildMapping)(e,r,n),firstRender:!1}},r.handleExited=function(e,t){var r=(0,d.getChildMapping)(this.props.children);e.key in r||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var r=(0,i.default)({},t.children);return delete r[e.key],{children:r}}))},r.render=function(){var e=this.props,t=e.component,r=e.childFactory,i=(0,n.default)(e,["component","childFactory"]),a=this.state.contextValue,s=h(this.state.children).map(r);return(delete i.appear,delete i.enter,delete i.exit,null===t)?/*#__PURE__*//*@__PURE__*/o(l).createElement(c.default.Provider,{value:a},s):/*#__PURE__*//*@__PURE__*/o(l).createElement(c.default.Provider,{value:a},/*#__PURE__*//*@__PURE__*/o(l).createElement(t,i,s))},t}(/*@__PURE__*/o(l).Component);f.propTypes={},f.defaultProps={component:"div",childFactory:function(e){return e}};var p=f}),c("hDpcU",function(e,t){r(e.exports,"default",()=>n);function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}}),c("g7ajw",function(e,t){r(e.exports,"default",()=>i);var n=u("VFVve");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.default)(e,t)}}),c("VFVve",function(e,t){r(e.exports,"default",()=>n);function n(e,t){return(n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}}),c("6xlZQ",function(e,t){r(e.exports,"default",()=>n);var n=/*@__PURE__*/o(u("acw62")).createContext(null)}),c("n2pn1",function(e,t){r(e.exports,"getChildMapping",()=>i),r(e.exports,"getInitialChildMapping",()=>o),r(e.exports,"getNextChildMapping",()=>s);var n=u("acw62");function i(e,t){var r=Object.create(null);return e&&(0,n.Children).map(e,function(e){return e}).forEach(function(e){r[e.key]=t&&(0,n.isValidElement)(e)?t(e):e}),r}function a(e,t,r){return null!=r[t]?r[t]:e.props[t]}function o(e,t){return i(e.children,function(r){return(0,n.cloneElement)(r,{onExited:t.bind(null,r),in:!0,appear:a(r,"appear",e),enter:a(r,"enter",e),exit:a(r,"exit",e)})})}function s(e,t,r){var o=i(e.children),s=function(e,t){function r(r){return r in t?t[r]:e[r]}e=e||{},t=t||{};var n,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(n=0;n<i[l].length;n++){var u=i[l][n];s[i[l][n]]=r(u)}s[l]=r(l)}for(n=0;n<a.length;n++)s[a[n]]=r(a[n]);return s}(t,o);return Object.keys(s).forEach(function(i){var l=s[i];if((0,n.isValidElement)(l)){var u=i in t,c=i in o,d=t[i],h=(0,n.isValidElement)(d)&&!d.props.in;c&&(!u||h)?s[i]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:!0,exit:a(l,"exit",e),enter:a(l,"enter",e)}):c||!u||h?c&&u&&(0,n.isValidElement)(d)&&(s[i]=(0,n.cloneElement)(l,{onExited:r.bind(null,l),in:d.props.in,exit:a(l,"exit",e),enter:a(l,"enter",e)})):s[i]=(0,n.cloneElement)(l,{in:!1})}}),s}}),c("hruNq",function(e,t){r(e.exports,"default",()=>o);var n=u("acw62"),i=u("9QePP"),a=u("ayMG0"),o=function(e){let{className:t,classes:r,pulsate:o=!1,rippleX:s,rippleY:l,rippleSize:u,in:c,onExited:d,timeout:h}=e,[f,p]=n.useState(!1),g=(0,i.default)(t,r.ripple,r.rippleVisible,o&&r.ripplePulsate),m=(0,i.default)(r.child,f&&r.childLeaving,o&&r.childPulsate);return c||f||p(!0),n.useEffect(()=>{if(!c&&null!=d){let e=setTimeout(d,h);return()=>{clearTimeout(e)}}},[d,c,h]),/*#__PURE__*/(0,a.jsx)("span",{className:g,style:{width:u,height:u,top:-(u/2)+l,left:-(u/2)+s},children:/*#__PURE__*/(0,a.jsx)("span",{className:m})})}}),c("a4Mf7",function(e,t){r(e.exports,"default",()=>i);var n=u("beCSm");u("4Cod0");var i=(0,n.default)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"])}),c("5JO1P",function(e,t){r(e.exports,"getButtonBaseUtilityClass",()=>a),r(e.exports,"default",()=>o);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiButtonBase",e)}var o=(0,n.default)("MuiButtonBase",["root","disabled","focusVisible"])}),c("5egRk",function(e,t){r(e.exports,"default",()=>a),u("acw62");var n=u("bbT5Q"),i=u("ayMG0"),a=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward")}),c("bbT5Q",function(e,t){r(e.exports,"default",()=>s);var n=u("8nd05"),i=u("acw62"),a=u("3ErGR"),o=u("ayMG0");function s(e,t){function r(r,i){return/*#__PURE__*/(0,o.jsx)(a.default,(0,n.default)({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return r.muiName=a.default.muiName,/*#__PURE__*/i.memo(/*#__PURE__*/i.forwardRef(r))}}),c("3ErGR",function(e,t){r(e.exports,"default",()=>b);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("jTnBY"),c=u("1iOpW"),d=u("d8seH"),h=u("aiIP4"),f=u("ayMG0");let p=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],g=e=>{let{color:t,fontSize:r,classes:n}=e,i={root:["root","inherit"!==t&&`color${(0,l.default)(t)}`,`fontSize${(0,l.default)(r)}`]};return(0,s.default)(i,h.getSvgIconUtilityClass,n)},m=(0,d.default)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"inherit"!==r.color&&t[`color${(0,l.default)(r.color)}`],t[`fontSize${(0,l.default)(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,i,a,o,s,l,u,c,d,h,f,p;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:null==(r=e.transitions)||null==(n=r.create)?void 0:n.call(r,"fill",{duration:null==(i=e.transitions)||null==(i=i.duration)?void 0:i.shorter}),fontSize:({inherit:"inherit",small:(null==(a=e.typography)||null==(o=a.pxToRem)?void 0:o.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(l=s.pxToRem)?void 0:l.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(c=u.pxToRem)?void 0:c.call(u,35))||"2.1875rem"})[t.fontSize],color:null!=(d=null==(h=(e.vars||e).palette)||null==(h=h[t.color])?void 0:h.main)?d:({action:null==(f=(e.vars||e).palette)||null==(f=f.action)?void 0:f.active,disabled:null==(p=(e.vars||e).palette)||null==(p=p.action)?void 0:p.disabled,inherit:void 0})[t.color]}}),v=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiSvgIcon"}),{children:s,className:l,color:u="inherit",component:d="svg",fontSize:h="medium",htmlColor:v,inheritViewBox:b=!1,titleAccess:x,viewBox:y="0 0 24 24"}=r,w=(0,i.default)(r,p),k=/*#__PURE__*/a.isValidElement(s)&&"svg"===s.type,S=(0,n.default)({},r,{color:u,component:d,fontSize:h,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:y,hasSvgAsChild:k}),C={};b||(C.viewBox=y);let A=g(S);return/*#__PURE__*/(0,f.jsxs)(m,(0,n.default)({as:d,className:(0,o.default)(A.root,l),focusable:"false",color:v,"aria-hidden":!x||void 0,role:x?"img":void 0,ref:t},C,w,k&&s.props,{ownerState:S,children:[k?s.props.children:s,x?/*#__PURE__*/(0,f.jsx)("title",{children:x}):null]}))});v.muiName="SvgIcon";var b=v}),c("aiIP4",function(e,t){r(e.exports,"getSvgIconUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiSvgIcon",e)}(0,n.default)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"])}),c("9NhvM",function(e,t){i(e.exports),r(e.exports,"getTableSortLabelUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiTableSortLabel",e)}var s=(0,n.default)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"])}),c("aGDqy",function(e,t){i(e.exports),r(e.exports,"default",()=>u("1Aijw").default),r(e.exports,"checkboxClasses",()=>u("9s7Sp").default),u("1Aijw");var n=u("9s7Sp");a(e.exports,n)}),c("1Aijw",function(e,t){r(e.exports,"default",()=>E);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("kVqvD"),d=u("1yHUZ"),h=u("etWmn"),f=u("2rW38"),p=u("jTnBY"),g=u("1iOpW"),m=u("d8seH"),v=u("8Uq77"),b=u("9s7Sp"),x=u("ayMG0");let y=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],w=e=>{let{classes:t,indeterminate:r,color:n,size:a}=e,o={root:["root",r&&"indeterminate",`color${(0,p.default)(n)}`,`size${(0,p.default)(a)}`]},l=(0,s.default)(o,b.getCheckboxUtilityClass,t);return(0,i.default)({},t,l)},k=(0,m.default)(c.default,{shouldForwardProp:e=>(0,v.default)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${(0,p.default)(r.size)}`],"default"!==r.color&&t[`color${(0,p.default)(r.color)}`]]}})(({theme:e,ownerState:t})=>(0,i.default)({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.alpha)("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${b.default.checked}, &.${b.default.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${b.default.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),S=/*#__PURE__*/(0,x.jsx)(h.default,{}),C=/*#__PURE__*/(0,x.jsx)(d.default,{}),A=/*#__PURE__*/(0,x.jsx)(f.default,{});var E=/*#__PURE__*/a.forwardRef(function(e,t){var r,s;let l=(0,g.useDefaultProps)({props:e,name:"MuiCheckbox"}),{checkedIcon:u=S,color:c="primary",icon:d=C,indeterminate:h=!1,indeterminateIcon:f=A,inputProps:p,size:m="medium",className:v}=l,b=(0,n.default)(l,y),E=h?f:d,_=h?f:u,T=(0,i.default)({},l,{color:c,indeterminate:h,size:m}),P=w(T);return/*#__PURE__*/(0,x.jsx)(k,(0,i.default)({type:"checkbox",inputProps:(0,i.default)({"data-indeterminate":h},p),icon:/*#__PURE__*/a.cloneElement(E,{fontSize:null!=(r=E.props.fontSize)?r:m}),checkedIcon:/*#__PURE__*/a.cloneElement(_,{fontSize:null!=(s=_.props.fontSize)?s:m}),ownerState:T,ref:t,className:(0,o.default)(P.root,v)},b,{classes:P}))})}),c("kVqvD",function(e,t){r(e.exports,"default",()=>w);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("jTnBY"),c=u("d8seH"),d=u("8Uq77"),h=u("3yddg"),f=u("cJQfW"),p=u("6n0Ko"),g=u("bxhip"),m=u("ayMG0");let v=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],b=e=>{let{classes:t,checked:r,disabled:n,edge:i}=e,a={root:["root",r&&"checked",n&&"disabled",i&&`edge${(0,l.default)(i)}`],input:["input"]};return(0,s.default)(a,g.getSwitchBaseUtilityClass,t)},x=(0,c.default)(p.default)(({ownerState:e})=>(0,i.default)({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),y=(0,c.default)("input",{shouldForwardProp:d.default})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1});var w=/*#__PURE__*/a.forwardRef(function(e,t){let{autoFocus:r,checked:a,checkedIcon:s,className:l,defaultChecked:u,disabled:c,disableFocusRipple:d=!1,edge:p=!1,icon:g,id:w,inputProps:k,inputRef:S,name:C,onBlur:A,onChange:E,onFocus:_,readOnly:T,required:P=!1,tabIndex:O,type:M,value:I}=e,L=(0,n.default)(e,v),[R,N]=(0,h.default)({controlled:a,default:!!u,name:"SwitchBase",state:"checked"}),z=(0,f.default)(),D=c;z&&void 0===D&&(D=z.disabled);let F="checkbox"===M||"radio"===M,B=(0,i.default)({},e,{checked:R,disabled:D,disableFocusRipple:d,edge:p}),W=b(B);return/*#__PURE__*/(0,m.jsxs)(x,(0,i.default)({component:"span",className:(0,o.default)(W.root,l),centerRipple:!0,focusRipple:!d,disabled:D,tabIndex:null,role:void 0,onFocus:e=>{_&&_(e),z&&z.onFocus&&z.onFocus(e)},onBlur:e=>{A&&A(e),z&&z.onBlur&&z.onBlur(e)},ownerState:B,ref:t},L,{children:[/*#__PURE__*/(0,m.jsx)(y,(0,i.default)({autoFocus:r,checked:a,defaultChecked:u,className:W.input,disabled:D,id:F?w:void 0,name:C,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;let t=e.target.checked;N(t),E&&E(e,t)},readOnly:T,ref:S,required:P,ownerState:B,tabIndex:O,type:M},"checkbox"===M&&void 0===I?{}:{value:I},k)),R?s:g]}))})}),c("3yddg",function(e,t){r(e.exports,"default",()=>n);var n=u("agZ85").default}),c("agZ85",function(e,t){r(e.exports,"default",()=>i);var n=u("acw62");function i({controlled:e,default:t,name:r,state:i="value"}){let{current:a}=n.useRef(void 0!==e),[o,s]=n.useState(t),l=n.useCallback(e=>{a||s(e)},[]);return[a?e:o,l]}}),c("cJQfW",function(e,t){r(e.exports,"default",()=>a);var n=u("acw62"),i=u("blr6C");function a(){return n.useContext(i.default)}}),c("blr6C",function(e,t){r(e.exports,"default",()=>n);var n=/*#__PURE__*/u("acw62").createContext(void 0)}),c("bxhip",function(e,t){r(e.exports,"getSwitchBaseUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("PrivateSwitchBase",e)}(0,n.default)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"])}),c("1yHUZ",function(e,t){r(e.exports,"default",()=>a),u("acw62");var n=u("bbT5Q"),i=u("ayMG0"),a=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank")}),c("etWmn",function(e,t){r(e.exports,"default",()=>a),u("acw62");var n=u("bbT5Q"),i=u("ayMG0"),a=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox")}),c("2rW38",function(e,t){r(e.exports,"default",()=>a),u("acw62");var n=u("bbT5Q"),i=u("ayMG0"),a=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox")}),c("9s7Sp",function(e,t){i(e.exports),r(e.exports,"getCheckboxUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiCheckbox",e)}var s=(0,n.default)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"])}),c("4JEKO",function(e,t){r(e.exports,"default",()=>n);var n={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"}}),c("jHhct",function(e,t){var r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.canComputeHighCpuUsage=void 0,n(u("l2OiA"),e.exports),n(u("3o6tv"),e.exports),n(u("fLrBH"),e.exports),n(u("hwG3t"),e.exports),n(u("9o5aC"),e.exports),n(u("gn3nd"),e.exports),n(u("axKOu"),e.exports),n(u("3Flq6"),e.exports);var i=u("aGtkM");Object.defineProperty(e.exports,"canComputeHighCpuUsage",{enumerable:!0,get:function(){return i.canComputeHighCpuUsage}}),n(u("grT6J"),e.exports)}),c("idOT2",function(e,t){var r=e.exports&&e.exports.__rest||function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)0>t.indexOf(n[i])&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r},n=e.exports&&e.exports.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.ArrowDownIcon=void 0;let i=n(u("acw62"));e.exports.ArrowDownIcon=e=>{var{size:t=24}=e,n=r(e,["size"]);return i.default.createElement("svg",Object.assign({width:t,height:t,fill:"none",viewBox:"0 0 24 24"},n),i.default.createElement("path",{className:"stroke-white",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"1.5",d:"m8.5 10 4 4 4-4"}))}}),c("hOzOt",function(e,t){var r=u("kZO5c");function n(){}function i(){}i.resetWarningCache=n,e.exports=function(){function e(e,t,n,i,a,o){if(o!==r){var s=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 a={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:i,resetWarningCache:n};return a.PropTypes=a,a}}),c("kZO5c",function(e,t){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"}),c("3r6bj",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0});var 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},n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=c(u("fIdQt")),o=u("acw62"),s=c(o),l=c(u("c9Z8w"));function c(e){return e&&e.__esModule?e:{default:e}}window.ApexCharts=a.default;var d=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e);var r=function(e,t){if(e)return t&&("object"==typeof t||"function"==typeof t)?t:e;throw ReferenceError("this hasn't been initialised - super() hasn't been called")}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return s.default.createRef?r.chartRef=s.default.createRef():r.setRef=function(e){return r.chartRef=e},r.chart=null,r}return function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(e,o.Component),i(e,[{key:"render",value:function(){var e=function(e,t){var r,n={};for(r in e)0<=t.indexOf(r)||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return s.default.createElement("div",n({ref:s.default.createRef?this.chartRef:this.setRef},e))}},{key:"componentDidMount",value:function(){var e=s.default.createRef?this.chartRef.current:this.chartRef;this.chart=new a.default(e,this.getConfig()),this.chart.render()}},{key:"getConfig",value:function(){var e=this.props,t=e.type,r=e.height,n=e.width,i=e.series,e=e.options;return this.extend(e,{chart:{type:t,height:r,width:n},series:i})}},{key:"isObject",value:function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&!Array.isArray(e)&&null!=e}},{key:"extend",value:function(e,t){var r=this,n=("function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t}),Object.assign({},e));return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(i){var a,o;r.isObject(t[i])&&i in e?n[i]=r.extend(e[i],t[i]):Object.assign(n,(a={},o=t[i],i in a?Object.defineProperty(a,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):a[i]=o,a))}),n}},{key:"componentDidUpdate",value:function(e){if(!this.chart)return null;var t=this.props,r=t.options,n=t.series,i=t.height,t=t.width,a=JSON.stringify(e.options),o=JSON.stringify(e.series),r=JSON.stringify(r),s=JSON.stringify(n);a===r&&o===s&&i===e.height&&t===e.width||(o!==s&&a===r&&i===e.height&&t===e.width?this.chart.updateSeries(n):this.chart.updateOptions(this.getConfig()))}},{key:"componentWillUnmount",value:function(){this.chart&&"function"==typeof this.chart.destroy&&this.chart.destroy()}}]),e}();(e.exports.default=d).propTypes={type:l.default.string.isRequired,width:l.default.oneOfType([l.default.string,l.default.number]),height:l.default.oneOfType([l.default.string,l.default.number]),series:l.default.array.isRequired,options:l.default.object.isRequired},d.defaultProps={type:"line",width:"100%",height:"auto"}}),c("fIdQt",function(e,t){function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function n(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,b(n.key),n)}}function o(e,t,r){return t&&a(e.prototype,t),r&&a(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function s(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=y(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,i=function(){};return{s:i,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:i}}throw 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(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw a}}}}function l(e){var t=h();return function(){var r,i=c(e);return r=t?Reflect.construct(i,arguments,c(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return n(e)}(this,r)}}function u(e,t,r){return(t=b(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e,t){if("function"!=typeof t&&null!==t)throw 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&&g(e,t)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach(function(t){u(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,a,o,s=[],l=!0,u=!1;try{if(a=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=a.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||y(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||y(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function x(e){return(x="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})(e)}function y(e,t){if(e){if("string"==typeof e)return r(e,t);var n=({}).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)?r(e,t):void 0}}var w=function(){function e(){i(this,e)}return o(e,[{key:"shadeRGBColor",value:function(e,t){var r=t.split(","),n=e<0?0:255,i=e<0?-1*e:e,a=parseInt(r[0].slice(4),10),o=parseInt(r[1],10),s=parseInt(r[2],10);return"rgb("+(Math.round((n-a)*i)+a)+","+(Math.round((n-o)*i)+o)+","+(Math.round((n-s)*i)+s)+")"}},{key:"shadeHexColor",value:function(e,t){var r=parseInt(t.slice(1),16),n=e<0?0:255,i=e<0?-1*e:e,a=r>>16,o=r>>8&255,s=255&r;return"#"+(0x1000000+65536*(Math.round((n-a)*i)+a)+256*(Math.round((n-o)*i)+o)+(Math.round((n-s)*i)+s)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,r){return e.isColorHex(r)?this.shadeHexColor(t,r):this.shadeRGBColor(t,r)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===x(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"listToArray",value:function(e){var t,r=[];for(t=0;t<e.length;t++)r[t]=e[t];return r}},{key:"extend",value:function(e,t){var r=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(null!=n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t});var n=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(i){r.isObject(t[i])&&i in e?n[i]=r.extend(e[i],t[i]):Object.assign(n,u({},i,t[i]))}),n}},{key:"extendArray",value:function(t,r){var n=[];return t.map(function(t){n.push(e.extend(r,t))}),t=n}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(t){if(e.is("Array",t)){for(var r=[],n=0;n<t.length;n++)r[n]=this.clone(t[n]);return r}if(e.is("Null",t))return null;if(e.is("Date",t))return t;if("object"===x(t)){var i={};for(var a in t)t.hasOwnProperty(a)&&(i[a]=this.clone(t[a]));return i}return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){var t=String(e).split(/[eE]/);if(1===t.length)return t[0];var r="",n=t[0].replace(".",""),i=Number(t[1])+1;if(i<0){for(r=(e<0?"-":"")+"0.";i++;)r+="0";return r+n.replace(/^-/,"")}for(i-=n.length;i--;)r+="0";return n+r}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),r=e.clientHeight,n=e.clientWidth;return r-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[n-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),r]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(e,t){return Array.isArray(t)&&(t=t.reduce(function(e,t){return e.length>t.length?e:t})),e.length>t.length?e:t},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var r=e.replace("#","");r=r.match(RegExp("(.{"+r.length/3+"})","g"));for(var n=0;n<r.length;n++)r[n]=parseInt(1===r[n].length?r[n]+r[n]:r[n],16);return void 0!==t&&r.push(t),"rgba("+r.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var r=[],n=2*Math.PI/t,i=0;i<t;i++){var a={};a.x=e*Math.sin(i*n),a.y=-e*Math.cos(i*n),r.push(a)}return r}},{key:"polarToCartesian",value:function(e,t,r,n){var i=(n-90)*Math.PI/180;return{x:e+r*Math.cos(i),y:t+r*Math.sin(i)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return e.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,r){if(r>=e.length)for(var n=r-e.length+1;n--;)e.push(void 0);return e.splice(r,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e.style.key=t[r])}},{key:"preciseAddition",value:function(e,t){var r=Math.pow(10,Math.max((String(e).split(".")[1]||"").length,(String(t).split(".")[1]||"").length));return(Math.round(e*r)+Math.round(t*r))/r}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"isFirefox",value:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,n=Math.pow(10,r-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*n),t=Math.round(Math.abs(t)*n);t;){var i=t;t=e%t,e=i}return e/n}},{key:"getPrimeFactors",value:function(e){for(var t=[],r=2;e>=2;)e%r==0?(t.push(r),e/=r):r++;return t}},{key:"mod",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,n=Math.pow(10,r-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*n))%(t=Math.round(Math.abs(t)*n))/n}}]),e}(),k=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.setEasingFunctions()}return o(e,[{key:"setEasingFunctions",value:function(){var e;if(!this.w.globals.easing){switch(this.w.config.chart.animations.easing){case"linear":e="-";break;case"easein":e="<";break;case"easeout":e=">";break;case"easeinout":default:e="<>";break;case"swing":e=function(e){return(e-=1)*e*(2.70158*e+1.70158)+1};break;case"bounce":e=function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375};break;case"elastic":e=function(e){return!!e===e?e:Math.pow(2,-10*e)*Math.sin(2*Math.PI*(e-.075)/.3)+1}}this.w.globals.easing=e}}},{key:"animateLine",value:function(e,t,r,n){e.attr(t).animate(n).attr(r)}},{key:"animateMarker",value:function(e,t,r,n){e.attr({opacity:0}).animate(t,r).attr({opacity:1}).afterAll(function(){n()})}},{key:"animateRect",value:function(e,t,r,n,i){e.attr(t).animate(n).attr(r).afterAll(function(){return i()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,r=e.realIndex,n=e.j,i=e.fill,a=e.pathFrom,o=e.pathTo,s=e.speed,l=e.delay,u=this.w,c=0;u.config.chart.animations.animateGradually.enabled&&(c=u.config.chart.animations.animateGradually.delay),u.config.chart.animations.dynamicAnimation.enabled&&u.globals.dataChanged&&"bar"!==u.config.chart.type&&(c=0),this.morphSVG(t,r,n,"line"!==u.config.chart.type||u.globals.comboCharts?i:"stroke",a,o,s,l*c)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,r,n,i,a,o,s){var l=this,u=this.w;i||(i=e.attr("pathFrom")),a||(a=e.attr("pathTo"));var c=function(e){return"radar"===u.config.chart.type&&(o=1),"M 0 ".concat(u.globals.gridHeight)};(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=c()),(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=c()),u.globals.shouldAnimate||(o=1),e.plot(i).animate(1,u.globals.easing,s).plot(i).animate(o,u.globals.easing,s).plot(a).afterAll(function(){w.isNumber(r)?r===u.globals.series[u.globals.maxValsInArrayIndex].length-2&&u.globals.shouldAnimate&&l.animationCompleted(e):"none"!==n&&u.globals.shouldAnimate&&(!u.globals.comboCharts&&t===u.globals.series.length-1||u.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()})}}]),e}(),S=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getDefaultFilter",value:function(e,t){var r=this.w;e.unfilter(!0),(new window.SVG.Filter).size("120%","180%","-5%","-40%"),"none"!==r.config.states.normal.filter?this.applyFilter(e,t,r.config.states.normal.filter.type,r.config.states.normal.filter.value):r.config.chart.dropShadow.enabled&&this.dropShadow(e,r.config.chart.dropShadow,t)}},{key:"addNormalFilter",value:function(e,t){var r=this.w;r.config.chart.dropShadow.enabled&&!e.node.classList.contains("apexcharts-marker")&&this.dropShadow(e,r.config.chart.dropShadow,t)}},{key:"addLightenFilter",value:function(e,t,r){var n=this,i=this.w,a=r.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(e){var r=i.config.chart.dropShadow;(r.enabled?n.addShadow(e,t,r):e).componentTransfer({rgb:{type:"linear",slope:1.5,intercept:a}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"addDarkenFilter",value:function(e,t,r){var n=this,i=this.w,a=r.intensity;e.unfilter(!0),new window.SVG.Filter,e.filter(function(e){var r=i.config.chart.dropShadow;(r.enabled?n.addShadow(e,t,r):e).componentTransfer({rgb:{type:"linear",slope:a}})}),e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)}},{key:"applyFilter",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;switch(r){case"none":this.addNormalFilter(e,t);break;case"lighten":this.addLightenFilter(e,t,{intensity:n});break;case"darken":this.addDarkenFilter(e,t,{intensity:n})}}},{key:"addShadow",value:function(e,t,r){var n,i=this.w,a=r.blur,o=r.top,s=r.left,l=r.color,u=r.opacity;if((null===(n=i.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.length)>0&&-1===i.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;var c=e.flood(Array.isArray(l)?l[t]:l,u).composite(e.sourceAlpha,"in").offset(s,o).gaussianBlur(a).merge(e.source);return e.blend(e.source,c)}},{key:"dropShadow",value:function(e,t){var r,n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=t.top,o=t.left,s=t.blur,l=t.color,u=t.opacity,c=t.noUserSpaceOnUse,d=this.w;return e.unfilter(!0),w.isMsEdge()&&"radialBar"===d.config.chart.type||(null===(r=d.config.chart.dropShadow.enabledOnSeries)||void 0===r?void 0:r.length)>0&&-1===(null===(n=d.config.chart.dropShadow.enabledOnSeries)||void 0===n?void 0:n.indexOf(i))||(l=Array.isArray(l)?l[i]:l,e.filter(function(e){var t=null;t=w.isSafari()||w.isFirefox()||w.isMsEdge()?e.flood(l,u).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s):e.flood(l,u).composite(e.sourceAlpha,"in").offset(o,a).gaussianBlur(s).merge(e.source),e.blend(e.source,t)}),c||e.filterer.node.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(e.filterer.node)),e}},{key:"setSelectionFilter",value:function(e,t,r){var n=this.w;if(void 0!==n.globals.selectedDataPoints[t]&&n.globals.selectedDataPoints[t].indexOf(r)>-1){e.node.setAttribute("selected",!0);var i=n.config.states.active.filter;"none"!==i&&this.applyFilter(e,t,i.type,i.value)}}},{key:"_scaleFilterSize",value:function(e){!function(t){for(var r in t)t.hasOwnProperty(r)&&e.setAttribute(r,t[r])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),C=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"roundPathCorners",value:function(e,t){function r(e,t,r){var i=t.x-e.x,a=t.y-e.y;return n(e,t,Math.min(1,r/Math.sqrt(i*i+a*a)))}function n(e,t,r){return{x:e.x+(t.x-e.x)*r,y:e.y+(t.y-e.y)*r}}function i(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function a(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var o=e.split(/[,\s]/).reduce(function(e,t){var r=t.match("([a-zA-Z])(.+)");return r?(e.push(r[1]),e.push(r[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),s=[];if(o.length>1){var l=a(o[0]),u=null;"Z"==o[o.length-1][0]&&o[0].length>2&&(u=["L",l.x,l.y],o[o.length-1]=u),s.push(o[0]);for(var c=1;c<o.length;c++){var d=s[s.length-1],h=o[c],f=h==u?o[1]:o[c+1];if(f&&d&&d.length>2&&"L"==h[0]&&f.length>2&&"L"==f[0]){var p,g,m=a(d),v=a(h),b=a(f);p=r(v,m,t),g=r(v,b,t),i(h,p),h.origPoint=v,s.push(h);var x=n(p,v,.5),y=n(v,g,.5),w=["C",x.x,x.y,y.x,y.y,g.x,g.y];w.origPoint=v,s.push(w)}else s.push(h)}if(u){var k=a(s[s.length-1]);s.push(["Z"]),i(s[0],k)}}else s=o;return s.reduce(function(e,t){return e+t.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,r,n){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:r,y2:n,stroke:i,"stroke-dasharray":a,"stroke-width":o,"stroke-linecap":s})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,c=this.w.globals.dom.Paper.rect();return c.attr({x:e,y:t,width:r>0?r:0,height:n>0?n:0,rx:i,ry:i,opacity:o,"stroke-width":null!==s?s:0,stroke:null!==l?l:"none","stroke-dasharray":u}),c.node.setAttribute("fill",a),c}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:n,stroke:t,"stroke-width":r})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var r=this.w.globals.dom.Paper.circle(2*e);return null!==t&&r.attr(t),r}},{key:"drawPath",value:function(e){var t=e.d,r=void 0===t?"":t,n=e.stroke,i=e.strokeWidth,a=e.fill,o=e.fillOpacity,s=e.strokeOpacity,l=e.classes,u=e.strokeLinecap,c=void 0===u?null:u,d=e.strokeDashArray,h=this.w;return null===c&&(c=h.config.stroke.lineCap),(r.indexOf("undefined")>-1||r.indexOf("NaN")>-1)&&(r="M 0 ".concat(h.globals.gridHeight)),h.globals.dom.Paper.path(r).attr({fill:a,"fill-opacity":void 0===o?1:o,stroke:void 0===n?"#a8a8a8":n,"stroke-opacity":void 0===s?1:s,"stroke-linecap":c,"stroke-width":void 0===i?1:i,"stroke-dasharray":void 0===d?0:d,class:l})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=null;return null===r?n=[" L",e,t].join(" "):"H"===r?n=[" H",e].join(" "):"V"===r&&(n=[" V",t].join(" ")),n}},{key:"curve",value:function(e,t,r,n,i,a){return["C",e,t,r,n,i,a].join(" ")}},{key:"quadraticCurve",value:function(e,t,r,n){return["Q",e,t,r,n].join(" ")}},{key:"arc",value:function(e,t,r,n,i,a,o){var s="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(s="a"),[s,e,t,r,n,i,a,o].join(" ")}},{key:"renderPaths",value:function(e){var t,r=e.j,n=e.realIndex,i=e.pathFrom,a=e.pathTo,o=e.stroke,s=e.strokeWidth,l=e.strokeLinecap,u=e.fill,c=e.animationDelay,d=e.initialSpeed,h=e.dataChangeSpeed,f=e.className,g=e.chartType,m=e.shouldClipToGrid,v=e.bindEventsOnPaths,b=e.drawShadow,x=this.w,y=new S(this.ctx),w=new k(this.ctx),C=this.w.config.chart.animations.enabled,A=C&&this.w.config.chart.animations.dynamicAnimation.enabled,E=!!(C&&!x.globals.resized||A&&x.globals.dataChanged&&x.globals.shouldAnimate);E?t=i:(t=a,x.globals.animationEnded=!0);var _=x.config.stroke.dashArray,T=0;T=Array.isArray(_)?_[n]:x.config.stroke.dashArray;var P=this.drawPath({d:t,stroke:o,strokeWidth:s,fill:u,fillOpacity:1,classes:f,strokeLinecap:l,strokeDashArray:T});if(P.attr("index",n),(void 0===m||m)&&("bar"===g&&!x.globals.isHorizontal||x.globals.comboCharts?P.attr({"clip-path":"url(#gridRectBarMask".concat(x.globals.cuid,")")}):P.attr({"clip-path":"url(#gridRectMask".concat(x.globals.cuid,")")})),"none"!==x.config.states.normal.filter.type)y.getDefaultFilter(P,n);else if(x.config.chart.dropShadow.enabled&&(void 0===b||b)){var O=x.config.chart.dropShadow;y.dropShadow(P,O,n)}(void 0===v||v)&&(P.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,P)),P.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,P)),P.node.addEventListener("mousedown",this.pathMouseDown.bind(this,P))),P.attr({pathTo:a,pathFrom:i});var M={el:P,j:r,realIndex:n,pathFrom:i,pathTo:a,fill:u,strokeWidth:s,delay:c};return!C||x.globals.resized||x.globals.dataChanged?!x.globals.resized&&x.globals.dataChanged||w.showDelayedElements():w.animatePathsGradually(p(p({},M),{},{speed:d})),x.globals.dataChanged&&A&&E&&w.animatePathsGradually(p(p({},M),{},{speed:h})),P}},{key:"drawPattern",value:function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,r,function(a){"horizontalLines"===e?a.line(0,0,r,0).stroke({color:n,width:i+1}):"verticalLines"===e?a.line(0,0,0,t).stroke({color:n,width:i+1}):"slantedLines"===e?a.line(0,0,t,r).stroke({color:n,width:i}):"squares"===e?a.rect(t,r).fill("none").stroke({color:n,width:i}):"circles"===e&&a.circle(t).fill("none").stroke({color:n,width:i})})}},{key:"drawGradient",value:function(e,t,r,n,i){var a,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,c=this.w;t.length<9&&0===t.indexOf("#")&&(t=w.hexToRgba(t,n)),r.length<9&&0===r.indexOf("#")&&(r=w.hexToRgba(r,i));var d=0,h=1,f=1,p=null;null!==s&&(d=void 0!==s[0]?s[0]/100:0,h=void 0!==s[1]?s[1]/100:1,f=void 0!==s[2]?s[2]/100:1,p=void 0!==s[3]?s[3]/100:null);var g=!("donut"!==c.config.chart.type&&"pie"!==c.config.chart.type&&"polarArea"!==c.config.chart.type&&"bubble"!==c.config.chart.type);if(a=null===l||0===l.length?c.globals.dom.Paper.gradient(g?"radial":"linear",function(e){e.at(d,t,n),e.at(h,r,i),e.at(f,r,i),null!==p&&e.at(p,t,n)}):c.globals.dom.Paper.gradient(g?"radial":"linear",function(e){(Array.isArray(l[u])?l[u]:l).forEach(function(t){e.at(t.offset/100,t.color,t.opacity)})}),g){var m=c.globals.gridWidth/2,v=c.globals.gridHeight/2;"bubble"!==c.config.chart.type?a.attr({gradientUnits:"userSpaceOnUse",cx:m,cy:v,r:o}):a.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?a.from(0,0).to(0,1):"diagonal"===e?a.from(0,0).to(1,1):"horizontal"===e?a.from(0,1).to(1,1):"diagonal2"===e&&a.from(1,0).to(0,1);return a}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,r=e.maxWidth,n=e.fontSize,i=e.fontFamily,a=this.getTextRects(t,n,i),o=Math.floor(r/(a.width/t.length));return r<a.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,r=e.x,n=e.y,i=e.text,a=e.textAnchor,o=e.fontSize,s=e.fontFamily,l=e.fontWeight,u=e.foreColor,c=e.opacity,d=e.maxWidth,h=e.cssClass,f=e.isPlainText,g=e.dominantBaseline,m=this.w;void 0===i&&(i="");var v=i;a||(a="start"),u&&u.length||(u=m.config.chart.foreColor),s=s||m.config.chart.fontFamily,l=l||"regular";var b,x={maxWidth:d,fontSize:o=o||"11px",fontFamily:s};return Array.isArray(i)?b=m.globals.dom.Paper.text(function(e){for(var r=0;r<i.length;r++)v=i[r],d&&(v=t.getTextBasedOnMaxWidth(p({text:i[r]},x))),0===r?e.tspan(v):e.tspan(v).newLine()}):(d&&(v=this.getTextBasedOnMaxWidth(p({text:i},x))),b=void 0===f||f?m.globals.dom.Paper.plain(i):m.globals.dom.Paper.text(function(e){return e.tspan(v)})),b.attr({x:r,y:n,"text-anchor":a,"dominant-baseline":void 0===g?"auto":g,"font-size":o,"font-family":s,"font-weight":l,fill:u,class:"apexcharts-text "+(void 0===h?"":h)}),b.node.style.fontFamily=s,b.node.style.opacity=c,b}},{key:"getMarkerPath",value:function(e,t,r,n){var i="";switch(r){case"cross":i="M ".concat(e-(n/=1.4)," ").concat(t-n," L ").concat(e+n," ").concat(t+n," M ").concat(e-n," ").concat(t+n," L ").concat(e+n," ").concat(t-n);break;case"plus":i="M ".concat(e-(n/=1.12)," ").concat(t," L ").concat(e+n," ").concat(t," M ").concat(e," ").concat(t-n," L ").concat(e," ").concat(t+n);break;case"star":case"sparkle":var a=5;n*=1.15,"sparkle"===r&&(n/=1.1,a=4);for(var o=Math.PI/a,s=0;s<=2*a;s++){var l=s*o,u=s%2==0?n:n/2;i+=(0===s?"M":"L")+(e+u*Math.sin(l))+","+(t-u*Math.cos(l))}i+="Z";break;case"triangle":i="M ".concat(e," ").concat(t-n," \n L ").concat(e+n," ").concat(t+n," \n L ").concat(e-n," ").concat(t+n," \n Z");break;case"square":case"rect":i="M ".concat(e-(n/=1.125)," ").concat(t-n," \n L ").concat(e+n," ").concat(t-n," \n L ").concat(e+n," ").concat(t+n," \n L ").concat(e-n," ").concat(t+n," \n Z");break;case"diamond":n*=1.05,i="M ".concat(e," ").concat(t-n," \n L ").concat(e+n," ").concat(t," \n L ").concat(e," ").concat(t+n," \n L ").concat(e-n," ").concat(t," \n Z");break;case"line":i="M ".concat(e-(n/=1.1)," ").concat(t," \n L ").concat(e+n," ").concat(t);break;default:n*=2,i="M ".concat(e,", ").concat(t," \n m -").concat(n/2,", 0 \n a ").concat(n/2,",").concat(n/2," 0 1,0 ").concat(n,",0 \n a ").concat(n/2,",").concat(n/2," 0 1,0 -").concat(n,",0")}return i}},{key:"drawMarkerShape",value:function(e,t,r,n,i){var a=this.drawPath({d:this.getMarkerPath(e,t,r,n,i),stroke:i.pointStrokeColor,strokeDashArray:i.pointStrokeDashArray,strokeWidth:i.pointStrokeWidth,fill:i.pointFillColor,fillOpacity:i.pointFillOpacity,strokeOpacity:i.pointStrokeOpacity});return a.attr({cx:e,cy:t,shape:i.shape,class:i.class?i.class:""}),a}},{key:"drawMarker",value:function(e,t,r){e=e||0;var n=r.pSize||0;return w.isNumber(t)||(n=0,t=0),this.drawMarkerShape(e,t,null==r?void 0:r.shape,n,p(p({},r),"line"===r.shape||"plus"===r.shape||"cross"===r.shape?{pointStrokeColor:r.pointFillColor,pointStrokeOpacity:r.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var r=this.w,n=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);if("function"==typeof r.config.chart.events.dataPointMouseEnter&&r.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:r}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:r}]),("none"===r.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==r.config.states.hover.filter.type&&!r.globals.isTouchDevice){var o=r.config.states.hover.filter;n.applyFilter(e,i,o.type,o.value)}}},{key:"pathMouseLeave",value:function(e,t){var r=this.w,n=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10);"function"==typeof r.config.chart.events.dataPointMouseLeave&&r.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:r}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:i,dataPointIndex:a,w:r}]),"none"!==r.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==r.config.states.hover.filter.type&&n.getDefaultFilter(e,i)}},{key:"pathMouseDown",value:function(e,t){var r=this.w,n=new S(this.ctx),i=parseInt(e.node.getAttribute("index"),10),a=parseInt(e.node.getAttribute("j"),10),o="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),r.globals.selectedDataPoints[i].indexOf(a)>-1){var s=r.globals.selectedDataPoints[i].indexOf(a);r.globals.selectedDataPoints[i].splice(s,1)}}else{if(!r.config.states.active.allowMultipleDataPointsSelection&&r.globals.selectedDataPoints.length>0){r.globals.selectedDataPoints=[];var l=r.globals.dom.Paper.select(".apexcharts-series path").members,u=r.globals.dom.Paper.select(".apexcharts-series circle, .apexcharts-series rect").members,c=function(e){Array.prototype.forEach.call(e,function(e){e.node.setAttribute("selected","false"),n.getDefaultFilter(e,i)})};c(l),c(u)}e.node.setAttribute("selected","true"),o="true",void 0===r.globals.selectedDataPoints[i]&&(r.globals.selectedDataPoints[i]=[]),r.globals.selectedDataPoints[i].push(a)}if("true"===o){var d=r.config.states.active.filter;if("none"!==d)n.applyFilter(e,i,d.type,d.value);else if("none"!==r.config.states.hover.filter&&!r.globals.isTouchDevice){var h=r.config.states.hover.filter;n.applyFilter(e,i,h.type,h.value)}}else"none"!==r.config.states.active.filter.type&&("none"===r.config.states.hover.filter.type||r.globals.isTouchDevice?n.getDefaultFilter(e,i):(h=r.config.states.hover.filter,n.applyFilter(e,i,h.type,h.value)));"function"==typeof r.config.chart.events.dataPointSelection&&r.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:r.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:r}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:r.globals.selectedDataPoints,seriesIndex:i,dataPointIndex:a,w:r}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,r,n){var i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],a=this.w,o=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:r,foreColor:"#fff",opacity:0});n&&o.attr("transform",n),a.globals.dom.Paper.add(o);var s=o.bbox();return i||(s=o.node.getBoundingClientRect()),o.remove(),{width:s.width,height:s.height}}},{key:"placeTextWithEllipsis",value:function(e,t,r){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=r/1.1)){for(var n=t.length-3;n>0;n-=3)if(e.getSubStringLength(0,n)<=r/1.1)return void(e.textContent=t.substring(0,n)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setAttribute(r,t[r])}}]),e}(),A=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,r=[];if(0===t.globals.series.length)return r;for(var n=0;n<t.globals.series[t.globals.maxValsInArrayIndex].length;n++){for(var i=0,a=0;a<t.globals.series.length;a++)void 0!==t.globals.series[a][n]&&-1===e.indexOf(a)&&(i+=t.globals.series[a][n]);r.push(i)}return r}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce(function(e,t){return e+t},0):this.w.globals.series[e].reduce(function(e,t){return e+t},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,r=[];return t.globals.seriesGroups.forEach(function(n){var i=[];t.config.series.forEach(function(e,r){n.indexOf(t.globals.seriesNames[r])>-1&&i.push(r)});var a=t.globals.series.map(function(e,t){return -1===i.indexOf(t)?t:-1}).filter(function(e){return -1!==e});r.push(e.getStackedSeriesTotals(a))}),r}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,r=[],n=[],i=[],a=e.series.length>t.yaxis.length||t.yaxis.some(function(e){return Array.isArray(e.seriesName)});t.series.forEach(function(e,t){i.push(t),n.push(null)}),t.yaxis.forEach(function(e,t){r[t]=[]});var o=[];t.yaxis.forEach(function(e,n){var s=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach(function(e){t.series.forEach(function(t,o){if(t.name===e){var l=o;n===o||a?!a||i.indexOf(o)>-1?r[n].push([n,o]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(r[o].push([o,n]),l=n),s=!0,-1!==(l=i.indexOf(l))&&i.splice(l,1)}})})}s||o.push(n)}),r=r.map(function(e,t){var r=[];return e.forEach(function(e){n[e[1]]=e[0],r.push(e[1])}),r});for(var s=t.yaxis.length-1,l=0;l<o.length&&(r[s=o[l]]=[],i);l++){var u=i[0];i.shift(),r[s].push(u),n[u]=s}i.forEach(function(e){r[s].push(e),n[e]=s}),e.seriesYAxisMap=r.map(function(e){return e}),e.seriesYAxisReverseMap=n.map(function(e){return e}),e.seriesYAxisMap.forEach(function(e,r){e.forEach(function(e){t.series[e]&&void 0===t.series[e].group&&(t.series[e].group="apexcharts-axis-".concat(r.toString()))})})}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter(function(e){return null!==e}):this.w.config.series[e].data.filter(function(e){return null!==e})).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(e,t,r){return e===r[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,r=e.slice();return t.config.xaxis.convertedCatToNumeric&&(r=e.map(function(e,r){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)})),r}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(e){return e.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(e){return e.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(e){t=Math.max(t,e)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(e){t=Math.max(t,e.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(e,t){var r=0;if(Array.isArray(e))for(var n=0;n<e.length;n++)r+=e[n];else r+=e;return r})}},{key:"getSeriesTotalsXRange",value:function(e,t){var r=this.w;return r.globals.series.map(function(n,i){for(var a=0,o=0;o<n.length;o++)r.globals.seriesX[i][o]>e&&r.globals.seriesX[i][o]<t&&(a+=n[o]);return a})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,r){var n=[];if(Array.isArray(t))for(var i=0;i<t.length;i++){var a=e.globals.stackedSeriesTotals[i],o=0;a&&(o=100*t[i]/a),n.push(o)}else{var s=100*t/e.globals.seriesTotals.reduce(function(e,t){return e+t},0);n.push(s)}return n})}},{key:"getCalculatedRatios",value:function(){var e,t,r,n=this,i=this.w,a=i.globals,o=[],s=0,l=[],u=.1,c=0;if(a.yRange=[],a.isMultipleYAxis)for(var d=0;d<a.minYArr.length;d++)a.yRange.push(Math.abs(a.minYArr[d]-a.maxYArr[d])),l.push(0);else a.yRange.push(Math.abs(a.minY-a.maxY));a.xRange=Math.abs(a.maxX-a.minX),a.zRange=Math.abs(a.maxZ-a.minZ);for(var h=0;h<a.yRange.length;h++)o.push(a.yRange[h]/a.gridHeight);if(t=a.xRange/a.gridWidth,e=a.yRange/a.gridWidth,r=a.xRange/a.gridHeight,(s=a.zRange/a.gridHeight*16)||(s=1),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(a.hasNegs=!0),i.globals.seriesYAxisReverseMap.length>0){var f=function(e,t){var r=i.config.yaxis[i.globals.seriesYAxisReverseMap[t]],a=e<0?-1:1;return e=Math.abs(e),r.logarithmic&&(e=n.getBaseLog(r.logBase,e)),-a*e/o[t]};if(a.isMultipleYAxis){l=[];for(var p=0;p<o.length;p++)l.push(f(a.minYArr[p],p))}else(l=[]).push(f(a.minY,0)),a.minY!==Number.MIN_VALUE&&0!==Math.abs(a.minY)&&(u=-a.minY/e,c=a.minX/t)}else(l=[]).push(0),u=0,c=0;return{yRatio:o,invertedYRatio:e,zRatio:s,xRatio:t,invertedXRatio:r,baseLineInvertedY:u,baseLineY:l,baseLineX:c}}},{key:"getLogSeries",value:function(e){var t=this,r=this.w;return r.globals.seriesLog=e.map(function(e,n){var i=r.globals.seriesYAxisReverseMap[n];return r.config.yaxis[i]&&r.config.yaxis[i].logarithmic?e.map(function(e){return null===e?null:t.getLogVal(r.config.yaxis[i].logBase,e,n)}):e}),r.globals.invalidLogScale?e:r.globals.seriesLog}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,r){if(t<=0)return 0;var n=this.w,i=0===n.globals.minYArr[r]?-1:this.getBaseLog(e,n.globals.minYArr[r]),a=(0===n.globals.maxYArr[r]?0:this.getBaseLog(e,n.globals.maxYArr[r]))-i;return t<1?t/a:(this.getBaseLog(e,t)-i)/a}},{key:"getLogYRatios",value:function(e){var t=this,r=this.w,n=this.w.globals;return n.yLogRatio=e.slice(),n.logYRange=n.yRange.map(function(e,i){var a=r.globals.seriesYAxisReverseMap[i];if(r.config.yaxis[a]&&t.w.config.yaxis[a].logarithmic){var o,s=-Number.MAX_VALUE,l=Number.MIN_VALUE;return n.seriesLog.forEach(function(e,t){e.forEach(function(e){r.config.yaxis[t]&&r.config.yaxis[t].logarithmic&&(s=Math.max(e,s),l=Math.min(e,l))})}),o=Math.pow(n.yRange[i],Math.abs(l-s)/n.yRange[i]),n.yLogRatio[i]=o/n.gridHeight,o}}),n.invalidLogScale?e.slice():n.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,r,n){var i=this.w,a=[];return e.series.length>0&&t.forEach(function(t){var o=[],s=[];e.i.forEach(function(r,n){i.config.series[r].group===t&&(o.push(e.series[n]),s.push(r))}),o.length>0&&a.push(n.draw(o,r,s))}),a}}],[{key:"checkComboSeries",value:function(e,t){var r=!1,n=0,i=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach(function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||n++,void 0!==e.type&&e.type!==t&&i++}),i>0&&(r=!0),{comboBarCount:n,comboCharts:r}}},{key:"extendArrayProps",value:function(e,t,r){var n,i,a,o,s,l;return null!==(n=t)&&void 0!==n&&n.yaxis&&(t=e.extendYAxis(t,r)),null!==(i=t)&&void 0!==i&&i.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(a=t)&&void 0!==a&&null!==(o=a.annotations)&&void 0!==o&&o.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(l=s.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),E=function(){function e(t){i(this,e),this.w=t.w,this.annoCtx=t}return o(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.w;if("vertical"===e.label.orientation){var n=r.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(null!==t?t:0,"']"));if(null!==n){var i=n.getBoundingClientRect();n.setAttribute("x",parseFloat(n.getAttribute("x"))-i.height+4);var a="top"===e.label.position?i.width:-i.width;n.setAttribute("y",parseFloat(n.getAttribute("y"))+a);var o=this.annoCtx.graphics.rotateAroundCenter(n),s=o.x,l=o.y;n.setAttribute("transform","rotate(-90 ".concat(s," ").concat(l,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var r=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var n=r.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),i=e.getBoundingClientRect(),a=t.label.style.padding,o=a.left,s=a.right,l=a.top,u=a.bottom;if("vertical"===t.label.orientation){var c=[o,s,l,u];l=c[0],u=c[1],o=c[2],s=c[3]}var d=i.left-n.left-o,h=i.top-n.top-l,f=this.annoCtx.graphics.drawRect(d-r.globals.barPadForNumericAxis,h,i.width+o+s,i.height+l+u,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&f.node.classList.add(t.id),f}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,r=function(r,n,i){var a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(n,"']"));if(a){var o=a.parentNode,s=e.addBackgroundToAnno(a,r);s&&(o.insertBefore(s.node,a),r.label.mouseEnter&&s.node.addEventListener("mouseenter",r.label.mouseEnter.bind(e,r)),r.label.mouseLeave&&s.node.addEventListener("mouseleave",r.label.mouseLeave.bind(e,r)),r.label.click&&s.node.addEventListener("click",r.label.click.bind(e,r)))}};t.config.annotations.xaxis.forEach(function(e,t){return r(e,t,"xaxis")}),t.config.annotations.yaxis.forEach(function(e,t){return r(e,t,"yaxis")}),t.config.annotations.points.forEach(function(e,t){return r(e,t,"point")})}},{key:"getY1Y2",value:function(e,t){var r,n=this.w,i="y1"===e?t.y:t.y2,a=!1;if(this.annoCtx.invertAxis){var o=n.config.xaxis.convertedCatToNumeric?n.globals.categoryLabels:n.globals.labels,s=o.indexOf(i),l=n.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(s+1,")"));r=l?parseFloat(l.getAttribute("y")):(n.globals.gridHeight/o.length-1)*(s+1)-n.globals.barHeight,void 0!==t.seriesIndex&&n.globals.barHeight&&(r-=n.globals.barHeight/2*(n.globals.series.length-1)-n.globals.barHeight*t.seriesIndex)}else{var u,c=n.globals.seriesYAxisMap[t.yAxisIndex][0],d=n.config.yaxis[t.yAxisIndex].logarithmic?new A(this.annoCtx.ctx).getLogVal(n.config.yaxis[t.yAxisIndex].logBase,i,c)/n.globals.yLogRatio[c]:(i-n.globals.minYArr[c])/(n.globals.yRange[c]/n.globals.gridHeight);r=n.globals.gridHeight-Math.min(Math.max(d,0),n.globals.gridHeight),a=d>n.globals.gridHeight||d<0,t.marker&&(void 0===t.y||null===t.y)&&(r=0),null!==(u=n.config.yaxis[t.yAxisIndex])&&void 0!==u&&u.reversed&&(r=d)}return"string"==typeof i&&i.includes("px")&&(r=parseFloat(i)),{yP:r,clipped:a}}},{key:"getX1X2",value:function(e,t){var r=this.w,n="x1"===e?t.x:t.x2,i=this.annoCtx.invertAxis?r.globals.minY:r.globals.minX,a=this.annoCtx.invertAxis?r.globals.maxY:r.globals.maxX,o=this.annoCtx.invertAxis?r.globals.yRange[0]:r.globals.xRange,s=!1,l=this.annoCtx.inversedReversedAxis?(a-n)/(o/r.globals.gridWidth):(n-i)/(o/r.globals.gridWidth);return"category"!==r.config.xaxis.type&&!r.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||r.globals.dataFormatXNumeric||r.config.chart.sparkline.enabled||(l=this.getStringX(n)),"string"==typeof n&&n.includes("px")&&(l=parseFloat(n)),null==n&&t.marker&&(l=r.globals.gridWidth),void 0!==t.seriesIndex&&r.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=r.globals.barWidth/2*(r.globals.series.length-1)-r.globals.barWidth*t.seriesIndex),l>r.globals.gridWidth?(l=r.globals.gridWidth,s=!0):l<0&&(l=0,s=!0),{x:l,clipped:s}}},{key:"getStringX",value:function(e){var t=this.w,r=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var n=t.globals.labels.map(function(e){return Array.isArray(e)?e.join(" "):e}).indexOf(e),i=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(n+1,")"));return i&&(r=parseFloat(i.getAttribute("x"))),r}}]),e}(),_=function(){function e(t){i(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new E(this.annoCtx)}return o(e,[{key:"addXaxisAnnotation",value:function(e,t,r){var n,i=this.w,a=this.helpers.getX1X2("x1",e),o=a.x,s=a.clipped,l=!0,u=e.label.text,c=e.strokeDashArray;if(w.isNumber(o)){if(null===e.x2||void 0===e.x2){if(!s){var d=this.annoCtx.graphics.drawLine(o+e.offsetX,0+e.offsetY,o+e.offsetX,i.globals.gridHeight+e.offsetY,e.borderColor,c,e.borderWidth);t.appendChild(d.node),e.id&&d.node.classList.add(e.id)}}else{var h=this.helpers.getX1X2("x2",e);if(n=h.x,l=h.clipped,!s||!l){if(n<o){var f=o;o=n,n=f}var p=this.annoCtx.graphics.drawRect(o+e.offsetX,0+e.offsetY,n-o,i.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,c);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(!s||!l){var g=this.annoCtx.graphics.getTextRects(u,parseFloat(e.label.style.fontSize)),m="top"===e.label.position?4:"center"===e.label.position?i.globals.gridHeight/2+("vertical"===e.label.orientation?g.width/2:0):i.globals.gridHeight,v=this.annoCtx.graphics.drawText({x:o+e.label.offsetX,y:m+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?g.width/2-12:-g.width/2:0),text:u,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});v.attr({rel:r}),t.appendChild(v.node),this.annoCtx.helpers.setOrientations(e,r)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(t,n){e.addXaxisAnnotation(t,r.node,n)}),r}}]),e}(),T=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return o(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return new Date(this.w.config.xaxis.labels.datetimeUTC?new Date(e).toUTCString():e)}},{key:"parseDate",value:function(e){if(!isNaN(Date.parse(e)))return this.getTimeStamp(e);var t=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(t)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var r=this.w.globals.locale,n=this.w.config.xaxis.labels.datetimeUTC,i=["\0"].concat(v(r.months)),a=["\x01"].concat(v(r.shortMonths)),o=["\x02"].concat(v(r.days)),s=["\x03"].concat(v(r.shortDays));function l(e,t){var r=e+"";for(t=t||2;r.length<t;)r="0"+r;return r}var u=n?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+u)).replace(/(^|[^\\])yy/g,"$1"+u.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+u);var c=(n?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+i[0])).replace(/(^|[^\\])MMM/g,"$1"+a[0])).replace(/(^|[^\\])MM/g,"$1"+l(c))).replace(/(^|[^\\])M/g,"$1"+c);var d=n?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0])).replace(/(^|[^\\])ddd/g,"$1"+s[0])).replace(/(^|[^\\])dd/g,"$1"+l(d))).replace(/(^|[^\\])d/g,"$1"+d);var h=n?e.getUTCHours():e.getHours(),f=h>12?h-12:0===h?12:h;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(h))).replace(/(^|[^\\])H/g,"$1"+h)).replace(/(^|[^\\])hh+/g,"$1"+l(f))).replace(/(^|[^\\])h/g,"$1"+f);var p=n?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var g=n?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(g))).replace(/(^|[^\\])s/g,"$1"+g);var m=n?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(m,3)),m=Math.round(m/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(m)),m=Math.round(m/10);var b=h<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+m)).replace(/(^|[^\\])TT+/g,"$1"+b)).replace(/(^|[^\\])T/g,"$1"+b.charAt(0));var x=b.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+x)).replace(/(^|[^\\])t/g,"$1"+x.charAt(0));var y=-e.getTimezoneOffset(),w=n||!y?"Z":y>0?"+":"-";if(!n){var k=(y=Math.abs(y))%60;w+=l(Math.floor(y/60))+":"+l(k)}t=t.replace(/(^|[^\\])K/g,"$1"+w);var S=(n?e.getUTCDay():e.getDay())+1;return t=(t=(t=(t=(t=t.replace(RegExp(o[0],"g"),o[S])).replace(RegExp(s[0],"g"),s[S])).replace(RegExp(i[0],"g"),i[c])).replace(RegExp(a[0],"g"),a[c])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,r){var n=this.w;void 0!==n.config.xaxis.min&&(e=n.config.xaxis.min),void 0!==n.config.xaxis.max&&(t=n.config.xaxis.max);var i=this.getDate(e),a=this.getDate(t),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" "),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(o[6],10),maxMillisecond:parseInt(s[6],10),minSecond:parseInt(o[5],10),maxSecond:parseInt(s[5],10),minMinute:parseInt(o[4],10),maxMinute:parseInt(s[4],10),minHour:parseInt(o[3],10),maxHour:parseInt(s[3],10),minDate:parseInt(o[2],10),maxDate:parseInt(s[2],10),minMonth:parseInt(o[1],10)-1,maxMonth:parseInt(s[1],10)-1,minYear:parseInt(o[0],10),maxYear:parseInt(s[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,r){return this.determineDaysOfMonths(e,t)-r}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,r){var n=this.daysCntOfYear[t]+r;return t>1&&this.isLeapYear()&&n++,n}},{key:"determineDaysOfMonths",value:function(e,t){var r=30;switch(e=w.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(r=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:r=31}return r}}]),e}(),P=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return o(e,[{key:"xLabelFormat",value:function(e,t,r,n){var i=this.w;if("datetime"===i.config.xaxis.type&&void 0===i.config.xaxis.labels.formatter&&void 0===i.config.tooltip.x.formatter){var a=new T(this.ctx);return a.formatDate(a.getDate(t),i.config.tooltip.x.format)}return e(t,r,n)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(e){return e}):e}},{key:"defaultYFormatter",value:function(e,t,r){var n=this.w;if(w.isNumber(e)){if(0!==n.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:n.globals.yValueDecimal);else{var i=e.toFixed(0);e=e==i?i:e.toFixed(1)}}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(w.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(w.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var r=t.globals.maxX-t.globals.minX;return r>0&&r<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(r,n){void 0!==r.labels.formatter?t.globals.yLabelFormatters[n]=r.labels.formatter:t.globals.yLabelFormatters[n]=function(i){return t.globals.xyCharts?Array.isArray(i)?i.map(function(t){return e.defaultYFormatter(t,r,n)}):e.defaultYFormatter(i,r,n):i}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(e,t){return e.length>t.length?e:t},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),O=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getLabel",value:function(e,t,r,n){var i,a,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],u=this.w,c=void 0===e[n]?"":e[n],d=c,h=u.globals.xLabelFormatter,f=u.config.xaxis.labels.formatter,p=!1,g=new P(this.ctx);l&&(d=g.xLabelFormat(h,c,c,{i:n,dateFormatter:new T(this.ctx).formatDate,w:u}),void 0!==f&&(d=f(c,e[n],{i:n,dateFormatter:new T(this.ctx).formatDate,w:u}))),t.length>0?(i=t[n].unit,a=null,t.forEach(function(e){"month"===e.unit?a="year":"day"===e.unit?a="month":"hour"===e.unit?a="day":"minute"===e.unit&&(a="hour")}),p=a===i,r=t[n].position,d=t[n].value):"datetime"===u.config.xaxis.type&&void 0===f&&(d=""),void 0===d&&(d=""),d=Array.isArray(d)?d:d.toString();var m=new C(this.ctx),v={};v=u.globals.rotateXLabels&&l?m.getTextRects(d,parseInt(s,10),null,"rotate(".concat(u.config.xaxis.labels.rotate," 0 0)"),!1):m.getTextRects(d,parseInt(s,10));var b=!u.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(d)&&("NaN"===String(d)||o.indexOf(d)>=0&&b)&&(d=""),{x:r,text:d,textRect:v,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,r){var n=this.w,i=n.config.xaxis.tickAmount;return"dataPoints"===i&&(i=Math.round(n.globals.gridWidth/120)),i>r||e%Math.round(r/(i+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,r,n,i){var a=this.w;if(0===e&&a.globals.skipFirstTimelinelabel&&(t.text=""),e===r-1&&a.globals.skipLastTimelinelabel&&(t.text=""),a.config.xaxis.labels.hideOverlappingLabels&&n.length>0){var o=i[i.length-1];t.x<o.textRect.width/(a.globals.rotateXLabels?Math.abs(a.config.xaxis.labels.rotate)/12:1.01)+o.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var r=this.w;return r.config.yaxis[e]&&r.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(e){return -1===t.collapsedSeriesIndices.indexOf(e)})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,r=t.globals,n=t.config.yaxis;return r.series.length>n.length||n.some(function(e){return Array.isArray(e.seriesName)})?e:r.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,r=t.config.yaxis[e];if(!r.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!r.showForNullSeries){var n=t.globals.seriesYAxisMap[e],i=new A(this.ctx);return n.every(function(e){return i.isSeriesNull(e)})}return!1}},{key:"getYAxisForeColor",value:function(e,t){var r=this.w;return Array.isArray(e)&&r.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,r.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,r,n,i,a,o){var s=this.w,l=new C(this.ctx),u=s.globals.translateY+s.config.yaxis[i].labels.offsetY;if(s.globals.isBarHorizontal?u=0:"heatmap"===s.config.chart.type&&(u+=a/2),n.show&&t>0){!0===s.config.yaxis[i].opposite&&(e+=n.width);for(var c=t;c>=0;c--){var d=l.drawLine(e+r.offsetX-n.width+n.offsetX,u+n.offsetY,e+r.offsetX+n.offsetX,u+n.offsetY,n.color);o.add(d),u+=a}}}}]),e}(),M=function(){function e(t){i(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new E(this.annoCtx),this.axesUtils=new O(this.annoCtx)}return o(e,[{key:"addYaxisAnnotation",value:function(e,t,r){var n,i=this.w,a=e.strokeDashArray,o=this.helpers.getY1Y2("y1",e),s=o.yP,l=o.clipped,u=!0,c=!1,d=e.label.text;if(null===e.y2||void 0===e.y2){if(!l){c=!0;var h=this.annoCtx.graphics.drawLine(0+e.offsetX,s+e.offsetY,this._getYAxisAnnotationWidth(e),s+e.offsetY,e.borderColor,a,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{if(n=(o=this.helpers.getY1Y2("y2",e)).yP,u=o.clipped,n>s){var f=s;s=n,n=f}if(!l||!u){c=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,n+e.offsetY,this._getYAxisAnnotationWidth(e),s-n,0,e.fillColor,e.opacity,1,e.borderColor,a);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(i.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(c){var g="right"===e.label.position?i.globals.gridWidth:"center"===e.label.position?i.globals.gridWidth/2:0,m=this.annoCtx.graphics.drawText({x:g+e.label.offsetX,y:(null!=n?n:s)+e.label.offsetY-3,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:r}),t.appendChild(m.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(t,n){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,r.node,n)}),r}}]),e}(),I=function(){function e(t){i(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new E(this.annoCtx)}return o(e,[{key:"addPointAnnotation",value:function(e,t,r){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var n=this.helpers.getX1X2("x1",e),i=n.x,a=n.clipped,o=(n=this.helpers.getY1Y2("y1",e)).yP,s=n.clipped;if(w.isNumber(i)&&!s&&!a){var l={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},u=this.annoCtx.graphics.drawMarker(i+e.marker.offsetX,o+e.marker.offsetY,l);t.appendChild(u.node);var c=e.label.text?e.label.text:"",d=this.annoCtx.graphics.drawText({x:i+e.label.offsetX,y:o+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:c,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(d.attr({rel:r}),t.appendChild(d.node),e.customSVG.SVG){var h=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});h.attr({transform:"translate(".concat(i+e.customSVG.offsetX,", ").concat(o+e.customSVG.offsetY,")")}),h.node.innerHTML=e.customSVG.SVG,t.appendChild(h.node)}if(e.image.path){var f=e.image.width?e.image.width:20,p=e.image.height?e.image.height:20;u=this.annoCtx.addImage({x:i+e.image.offsetX-f/2,y:o+e.image.offsetY-p/2,width:f,height:p,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&u.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&u.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&u.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,r=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(t,n){e.addPointAnnotation(t,r.node,n)}),r}}]),e}(),L={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},R=function(){function e(){i(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return o(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,easing:"easeinout",speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[L],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.35},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},plotOptions:{line:{isSlopeChart:!1},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(e,t){return e+t},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(e,t){return e+t},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.45}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{normal:{filter:{type:"none",value:0}},hover:{filter:{type:"lighten",value:.1}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken",value:.5}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.4}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),N=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.graphics=new C(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new E(this),this.xAxisAnnotations=new _(this),this.yAxisAnnotations=new M(this),this.pointsAnnotations=new I(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return o(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),r=this.xAxisAnnotations.drawXAxisAnnotations(),n=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,a=[t,r,n],o=[r.node,t.node,n.node],s=0;s<3;s++)e.globals.dom.elGraphical.add(a[s]),!i||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&o[s].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[s],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,r){e.addImage(t,r)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,r){e.addText(t,r)})}},{key:"addXaxisAnnotation",value:function(e,t,r){this.xAxisAnnotations.addXaxisAnnotation(e,t,r)}},{key:"addYaxisAnnotation",value:function(e,t,r){this.yAxisAnnotations.addYaxisAnnotation(e,t,r)}},{key:"addPointAnnotation",value:function(e,t,r){this.pointsAnnotations.addPointAnnotation(e,t,r)}},{key:"addText",value:function(e,t){var r=e.x,n=e.y,i=e.text,a=e.textAnchor,o=e.foreColor,s=e.fontSize,l=e.fontFamily,u=e.fontWeight,c=e.cssClass,d=e.backgroundColor,h=e.borderWidth,f=e.strokeDashArray,p=e.borderRadius,g=e.borderColor,m=e.appendTo,v=e.paddingLeft,b=void 0===v?4:v,x=e.paddingRight,y=e.paddingBottom,w=e.paddingTop,k=void 0===w?2:w,S=this.w,C=this.graphics.drawText({x:r,y:n,text:i,textAnchor:a||"start",fontSize:s||"12px",fontWeight:u||"regular",fontFamily:l||S.config.chart.fontFamily,foreColor:o||S.config.chart.foreColor,cssClass:c}),A=S.globals.dom.baseEl.querySelector(void 0===m?".apexcharts-svg":m);A&&A.appendChild(C.node);var E=C.bbox();if(i){var _=this.graphics.drawRect(E.x-b,E.y-k,E.width+b+(void 0===x?4:x),E.height+(void 0===y?2:y)+k,p,d||"transparent",1,h,g,f);A.insertBefore(_.node,C.node)}}},{key:"addImage",value:function(e,t){var r=this.w,n=e.path,i=e.x,a=e.y,o=e.width,s=e.height,l=e.appendTo,u=r.globals.dom.Paper.image(n);u.size(void 0===o?20:o,void 0===s?20:s).move(void 0===i?0:i,void 0===a?0:a);var c=r.globals.dom.baseEl.querySelector(void 0===l?".apexcharts-svg":l);return c&&c.appendChild(u.node),u}},{key:"addXaxisAnnotationExternal",value:function(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"xaxis",contextMethod:r.addXaxisAnnotation}),r}},{key:"addYaxisAnnotationExternal",value:function(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"yaxis",contextMethod:r.addYaxisAnnotation}),r}},{key:"addPointAnnotationExternal",value:function(e,t,r){return void 0===this.invertAxis&&(this.invertAxis=r.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"point",contextMethod:r.addPointAnnotation}),r}},{key:"addAnnotationExternal",value:function(e){var t=e.params,r=e.pushToMemory,n=e.context,i=e.type,a=e.contextMethod,o=n.w,s=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations")),l=s.childNodes.length+1,u=new R,c=Object.assign({},"xaxis"===i?u.xAxisAnnotation:"yaxis"===i?u.yAxisAnnotation:u.pointAnnotation),d=w.extend(c,t);switch(i){case"xaxis":this.addXaxisAnnotation(d,s,l);break;case"yaxis":this.addYaxisAnnotation(d,s,l);break;case"point":this.addPointAnnotation(d,s,l)}var h=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(i,"-annotations .apexcharts-").concat(i,"-annotation-label[rel='").concat(l,"']")),f=this.helpers.addBackgroundToAnno(h,d);return f&&s.insertBefore(f.node,h),r&&o.globals.memory.methodsToExec.push({context:n,id:d.id?d.id:w.randomId(),method:a,label:"addAnnotation",params:t}),n}},{key:"clearAnnotations",value:function(e){for(var t=e.w,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),n=t.globals.memory.methodsToExec.length-1;n>=0;n--)"addText"!==t.globals.memory.methodsToExec[n].label&&"addAnnotation"!==t.globals.memory.methodsToExec[n].label||t.globals.memory.methodsToExec.splice(n,1);r=w.listToArray(r),Array.prototype.forEach.call(r,function(e){for(;e.firstChild;)e.removeChild(e.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var r=e.w,n=r.globals.dom.baseEl.querySelectorAll(".".concat(t));n&&(r.globals.memory.methodsToExec.map(function(e,n){e.id===t&&r.globals.memory.methodsToExec.splice(n,1)}),Array.prototype.forEach.call(n,function(e){e.parentElement.removeChild(e)}))}}]),e}(),z=function(e){var t,r=e.isTimeline,n=e.ctx,i=e.seriesIndex,a=e.dataPointIndex,o=e.y1,s=e.y2,l=e.w,u=l.globals.seriesRangeStart[i][a],c=l.globals.seriesRangeEnd[i][a],d=l.globals.labels[a],h=l.config.series[i].name?l.config.series[i].name:"",f=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,g={w:l,seriesIndex:i,dataPointIndex:a,start:u,end:c};"function"==typeof p&&(h=p(h,g)),null!==(t=l.config.series[i].data[a])&&void 0!==t&&t.x&&(d=l.config.series[i].data[a].x),r||"datetime"===l.config.xaxis.type&&(d=new P(n).xLabelFormat(l.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new T(n).formatDate,w:l})),"function"==typeof f&&(d=f(d,g)),Number.isFinite(o)&&Number.isFinite(s)&&(u=o,c=s);var m="",v="",b=l.globals.colors[i];if(void 0===l.config.tooltip.x.formatter){if("datetime"===l.config.xaxis.type){var x=new T(n);m=x.formatDate(x.getDate(u),l.config.tooltip.x.format),v=x.formatDate(x.getDate(c),l.config.tooltip.x.format)}else m=u,v=c}else m=l.config.tooltip.x.formatter(u),v=l.config.tooltip.x.formatter(c);return{start:u,end:c,startVal:m,endVal:v,ylabel:d,color:b,seriesName:h}},D=function(e){var t=e.color,r=e.seriesName,n=e.ylabel,i=e.start,a=e.end,o=e.seriesIndex,s=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(o);i=l.yLbFormatter(i),a=l.yLbFormatter(a);var u=l.yLbFormatter(e.w.globals.series[o][s]),c='<span class="value start-value">\n '.concat(i,'\n </span> <span class="separator">-</span> <span class="value end-value">\n ').concat(a,"\n </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(r||"")+'</span></div><div> <span class="category">'+n+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[o].type||"rangeBar"===e.w.config.series[o].type?c:"<span>".concat(u,"</span>"):c)+" </div></div>"},F=function(){function e(t){i(this,e),this.opts=t}return o(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{chart:{animations:{easing:"swing"}},dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),w.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var r=t.w.config.series[t.seriesIndex].name;return null!==e?r+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1,animations:{easing:"swing"}},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"round"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),p(p({},this.bar()),{},{chart:{animations:{easing:"linear",speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1,colors:["#333"]},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var r=t.seriesIndex,n=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,r,n,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var r=t.seriesIndex,n=t.dataPointIndex,i=t.w;return e._getBoxTooltip(i,r,n,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var r=t.seriesIndex,n=t.dataPointIndex,i=t.w,a=function(){var e=i.globals.seriesRangeStart[r][n];return i.globals.seriesRangeEnd[r][n]-e};return i.globals.comboCharts?"rangeBar"===i.config.series[r].type||"rangeArea"===i.config.series[r].type?a():e:a()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){var t,r,n,i,a,o,s,l,u,c,d,h;return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?(r=(t=z(p(p({},e),{},{isTimeline:!0}))).color,n=t.seriesName,i=t.ylabel,a=t.startVal,o=t.endVal,D(p(p({},e),{},{color:r,seriesName:n,ylabel:i,start:a,end:o}))):(l=(s=z(e)).color,u=s.seriesName,c=s.ylabel,d=s.start,h=s.end,D(p(p({},e),{},{color:l,seriesName:u,ylabel:c,start:d,end:h})))}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,r;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(r=e.plotOptions.bar)&&void 0!==r&&r.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){var t,r,n,i,a,o;return r=(t=z(e)).color,n=t.seriesName,i=t.ylabel,a=t.start,o=t.end,D(p(p({},e),{},{color:r,seriesName:n,ylabel:i,start:a,end:o}))}}}}},{key:"brush",value:function(e){return w.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(t,r){e.yaxis[r].min=0,e.yaxis[r].max=100}),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return p(p({},e),{},{plotOptions:p(p({},e.plotOptions),{},{bar:p(p({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,r){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return w.isNumber(e)?Math.floor(e):e};var n=e.xaxis.labels.formatter,i=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return r&&r.length&&(i=r.map(function(e){return Array.isArray(e)?e:String(e)})),i&&i.length&&(e.xaxis.labels.formatter=function(e){return w.isNumber(e)?n(i[Math.floor(e)-1]):n(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,r,n,i){var a=e.globals.seriesCandleO[t][r],o=e.globals.seriesCandleH[t][r],s=e.globals.seriesCandleM[t][r],l=e.globals.seriesCandleL[t][r],u=e.globals.seriesCandleC[t][r];return e.config.series[t].type&&e.config.series[t].type!==i?'<div class="apexcharts-custom-tooltip">\n '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][r],"</strong>\n </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(n[0],': <span class="value">')+a+"</span></div>"+"<div>".concat(n[1],': <span class="value">')+o+"</span></div>"+(s?"<div>".concat(n[2],': <span class="value">')+s+"</span></div>":"")+"<div>".concat(n[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(n[4],': <span class="value">')+u+"</span></div></div>"}}]),e}(),B=function(){function e(t){i(this,e),this.opts=t}return o(e,[{key:"init",value:function(e){var t=e.responsiveOverride,r=this.opts,n=new R,i=new F(r);this.chartType=r.chart.type,r=this.extendYAxis(r),r=this.extendAnnotations(r);var a=n.init(),o={};if(r&&"object"===x(r)){var s,l,u,c,d,h,f,p,g,m,v={};v=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(r.chart.type)?i[r.chart.type]():i.line(),null!==(s=r.plotOptions)&&void 0!==s&&null!==(l=s.bar)&&void 0!==l&&l.isFunnel&&(v=i.funnel()),r.chart.stacked&&"bar"===r.chart.type&&(v=i.stackedBars()),null!==(u=r.chart.brush)&&void 0!==u&&u.enabled&&(v=i.brush(v)),null!==(c=r.plotOptions)&&void 0!==c&&null!==(d=c.line)&&void 0!==d&&d.isSlopeChart&&(v=i.slope()),r.chart.stacked&&"100%"===r.chart.stackType&&(r=i.stacked100(r)),null!==(h=r.plotOptions)&&void 0!==h&&null!==(f=h.bar)&&void 0!==f&&f.isDumbbell&&(r=i.dumbbell(r)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(r),r.xaxis=r.xaxis||window.Apex.xaxis||{},t||(r.xaxis.convertedCatToNumeric=!1),(null!==(p=(r=this.checkForCatToNumericXAxis(this.chartType,v,r)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(g=window.Apex.chart)&&void 0!==g&&null!==(m=g.sparkline)&&void 0!==m&&m.enabled)&&(v=i.sparkline(v)),o=w.extend(a,v)}var b=w.extend(o,window.Apex);return a=w.extend(b,r),a=this.handleUserInputErrors(a)}},{key:"checkForCatToNumericXAxis",value:function(e,t,r){var n,i,a=new F(r),o=("bar"===e||"boxPlot"===e)&&(null===(n=r.plotOptions)||void 0===n||null===(i=n.bar)||void 0===i?void 0:i.horizontal),s="datetime"!==r.xaxis.type&&"numeric"!==r.xaxis.type,l=r.xaxis.tickPlacement?r.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return o||"pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e||!s||"between"===l||(r=a.convertCatToNumeric(r)),r}},{key:"extendYAxis",value:function(e,t){var r=new R;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=w.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[w.extend(r.yAxis,e.yaxis)]:e.yaxis=w.extendArray(e.yaxis,r.yAxis);var n=!1;e.yaxis.forEach(function(e){e.logarithmic&&(n=!0)});var i=e.series;return t&&!i&&(i=t.config.series),n&&i.length!==e.yaxis.length&&i.length&&(e.yaxis=i.map(function(t,n){if(t.name||(i[n].name="series-".concat(n+1)),e.yaxis[n])return e.yaxis[n].seriesName=i[n].name,e.yaxis[n];var a=w.extend(r.yAxis,e.yaxis[0]);return a.show=!1,a})),n&&i.length>1&&i.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new R;return e.annotations.yaxis=w.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new R;return e.annotations.xaxis=w.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new R;return e.annotations.points=w.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){if(e.tooltip.shared&&e.tooltip.intersect)throw Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===e.chart.type&&e.plotOptions.bar.horizontal){if(e.yaxis.length>1)throw Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");e.yaxis[0].reversed&&(e.yaxis[0].opposite=!0),e.xaxis.tooltip.enabled=!1,e.yaxis[0].tooltip.enabled=!1,e.chart.zoom.enabled=!1}return"bar"!==e.chart.type&&"rangeBar"!==e.chart.type||e.tooltip.shared&&"barWidth"===e.xaxis.crosshairs.width&&e.series.length>1&&(e.xaxis.crosshairs.width="tickWidth"),"candlestick"!==e.chart.type&&"boxPlot"!==e.chart.type||e.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(e.chart.type," chart is not supported.")),e.yaxis[0].reversed=!1),e}}]),e}(),W=function(){function e(){i(this,e)}return o(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,easing:null,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=w.extend({},e),t.initialSeries=w.clone(e.series),t.lastXAxis=w.clone(t.initialConfig.xaxis),t.lastYAxis=w.clone(t.initialConfig.yaxis),t}}]),e}(),H=function(){function e(t){i(this,e),this.opts=t}return o(e,[{key:"init",value:function(){var e=new B(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new W).init(e)}}}]),e}(),X=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return o(e,[{key:"clippedImgArea",value:function(e){var t=this.w,r=t.config,n=parseInt(t.globals.gridWidth,10),i=parseInt(t.globals.gridHeight,10),a=n>i?n:i,o=e.image,s=0,l=0;void 0===e.width&&void 0===e.height?void 0!==r.fill.image.width&&void 0!==r.fill.image.height?(s=r.fill.image.width+1,l=r.fill.image.height):(s=a+1,l=a):(s=e.width,l=e.height);var u=document.createElementNS(t.globals.SVGNS,"pattern");C.setAttrs(u,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:s+"px",height:l+"px"});var c=document.createElementNS(t.globals.SVGNS,"image");u.appendChild(c),c.setAttributeNS(window.SVG.xlink,"href",o),C.setAttrs(c,{x:0,y:0,preserveAspectRatio:"none",width:s+"px",height:l+"px"}),c.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(u)}},{key:"getSeriesIndex",value:function(e){var t=this.w,r=t.config.chart.type;return("bar"===r||"rangeBar"===r)&&t.config.plotOptions.bar.distributed||"heatmap"===r||"treemap"===r?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"fillPath",value:function(e){var t=this.w;this.opts=e;var r,n,i,a=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var o=this.getFillColors()[this.seriesIndex];void 0!==t.globals.seriesColors[this.seriesIndex]&&(o=t.globals.seriesColors[this.seriesIndex]),"function"==typeof o&&(o=o({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:t}));var s=e.fillType?e.fillType:this.getFillType(this.seriesIndex),l=Array.isArray(a.fill.opacity)?a.fill.opacity[this.seriesIndex]:a.fill.opacity;e.color&&(o=e.color),o||(o="#fff",console.warn("undefined color - ApexCharts"));var u=o;if(-1===o.indexOf("rgb")?o.length<9&&(u=w.hexToRgba(o,l)):o.indexOf("rgba")>-1&&(l=w.getOpacityFromRGBA(o)),e.opacity&&(l=e.opacity),"pattern"===s&&(n=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:n,fillColor:o,fillOpacity:l,defaultColor:u})),"gradient"===s&&(i=this.handleGradientFill({fillConfig:e.fillConfig,fillColor:o,fillOpacity:l,i:this.seriesIndex})),"image"===s){var c=a.fill.image.src,d=e.patternID?e.patternID:"",h="pattern".concat(t.globals.cuid).concat(e.seriesNumber+1).concat(d);-1===this.patternIDs.indexOf(h)&&(this.clippedImgArea({opacity:l,image:Array.isArray(c)?e.seriesNumber<c.length?c[e.seriesNumber]:c[0]:c,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:h}),this.patternIDs.push(h)),r="url(#".concat(h,")")}else r="gradient"===s?i:"pattern"===s?n:u;return e.solid&&(r=u),r}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,r=this.opts,n=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?n=e.globals.stroke.colors:n.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?n=e.globals.fill.colors:n.push(e.globals.fill.colors),void 0!==r.fillColors&&(n=[],Array.isArray(r.fillColors)?n=r.fillColors.slice():n.push(r.fillColors)),n}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,r=(e.patternFill,e.fillColor),n=e.fillOpacity,i=e.defaultColor,a=this.w.config.fill;t&&(a=t);var o=this.opts,s=new C(this.ctx),l=Array.isArray(a.pattern.strokeWidth)?a.pattern.strokeWidth[this.seriesIndex]:a.pattern.strokeWidth;return Array.isArray(a.pattern.style)?void 0!==a.pattern.style[o.seriesNumber]?s.drawPattern(a.pattern.style[o.seriesNumber],a.pattern.width,a.pattern.height,r,l,n):i:s.drawPattern(a.pattern.style,a.pattern.width,a.pattern.height,r,l,n)}},{key:"handleGradientFill",value:function(e){var t=e.fillColor,r=e.fillOpacity,n=e.fillConfig,i=e.i,a=this.w.config.fill;n&&(a=p(p({},a),n));var o,s=this.opts,l=new C(this.ctx),u=new w,c=a.gradient.type,d=t,h=void 0===a.gradient.opacityFrom?r:Array.isArray(a.gradient.opacityFrom)?a.gradient.opacityFrom[i]:a.gradient.opacityFrom;d.indexOf("rgba")>-1&&(h=w.getOpacityFromRGBA(d));var f=void 0===a.gradient.opacityTo?r:Array.isArray(a.gradient.opacityTo)?a.gradient.opacityTo[i]:a.gradient.opacityTo;if(void 0===a.gradient.gradientToColors||0===a.gradient.gradientToColors.length)o="dark"===a.gradient.shade?u.shadeColor(-1*parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?w.rgb2hex(t):t):u.shadeColor(parseFloat(a.gradient.shadeIntensity),t.indexOf("rgb")>-1?w.rgb2hex(t):t);else if(a.gradient.gradientToColors[s.seriesNumber]){var g=a.gradient.gradientToColors[s.seriesNumber];o=g,g.indexOf("rgba")>-1&&(f=w.getOpacityFromRGBA(g))}else o=t;if(a.gradient.gradientFrom&&(d=a.gradient.gradientFrom),a.gradient.gradientTo&&(o=a.gradient.gradientTo),a.gradient.inverseColors){var m=d;d=o,o=m}return d.indexOf("rgb")>-1&&(d=w.rgb2hex(d)),o.indexOf("rgb")>-1&&(o=w.rgb2hex(o)),l.drawGradient(c,d,o,h,f,s.size,a.gradient.stops,a.gradient.colorStops,i)}}]),e}(),Y=function(){function e(t,r){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(t){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e,t,r,n){var i,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=this.w,s=null,l=new C(this.ctx),u=o.config.markers.discrete&&o.config.markers.discrete.length;if((o.globals.markers.size[t]>0||a||u)&&(s=l.group({class:a||u?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(o.globals.cuid,")")),Array.isArray(e.x))for(var c=0;c<e.x.length;c++){var d=r;1===r&&0===c&&(d=0),1===r&&1===c&&(d=1);var h="apexcharts-marker";if("line"!==o.config.chart.type&&"area"!==o.config.chart.type||o.globals.comboCharts||o.config.tooltip.intersect||(h+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||a||u){w.isNumber(e.y[c])?h+=" w".concat(w.randomId()):h="apexcharts-nullpoint";var f=this.getMarkerConfig({cssClass:h,seriesIndex:t,dataPointIndex:d});o.config.series[t].data[d]&&(o.config.series[t].data[d].fillColor&&(f.pointFillColor=o.config.series[t].data[d].fillColor),o.config.series[t].data[d].strokeColor&&(f.pointStrokeColor=o.config.series[t].data[d].strokeColor)),void 0!==n&&(f.pSize=n),(e.x[c]<-o.globals.markers.largestSize||e.x[c]>o.globals.gridWidth+o.globals.markers.largestSize||e.y[c]<-o.globals.markers.largestSize||e.y[c]>o.globals.gridHeight+o.globals.markers.largestSize)&&(f.pSize=0),(i=l.drawMarker(e.x[c],e.y[c],f)).attr("rel",d),i.attr("j",d),i.attr("index",t),i.node.setAttribute("default-marker-size",f.pSize),new S(this.ctx).setSelectionFilter(i,t,d),this.addEvents(i),s&&s.add(i)}else void 0===o.globals.pointsArray[t]&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([e.x[c],e.y[c]])}return s}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,r=e.seriesIndex,n=e.dataPointIndex,i=void 0===n?null:n,a=e.radius,o=void 0===a?null:a,s=e.size,l=void 0===s?null:s,u=e.strokeWidth,c=void 0===u?null:u,d=this.w,h=this.getMarkerStyle(r),f=null===l?d.globals.markers.size[r]:l,p=d.config.markers;return null!==i&&p.discrete.length&&p.discrete.map(function(e){e.seriesIndex===r&&e.dataPointIndex===i&&(h.pointStrokeColor=e.strokeColor,h.pointFillColor=e.fillColor,f=e.size,h.pointShape=e.shape)}),{pSize:null===o?f:o,pRadius:null!==o?o:p.radius,pointStrokeWidth:null!==c?c:Array.isArray(p.strokeWidth)?p.strokeWidth[r]:p.strokeWidth,pointStrokeColor:h.pointStrokeColor,pointFillColor:h.pointFillColor,shape:h.pointShape||(Array.isArray(p.shape)?p.shape[r]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[r]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[r]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[r]:p.fillOpacity,seriesIndex:r}}},{key:"addEvents",value:function(e){var t=this.w,r=new C(this.ctx);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",r.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,r=t.globals.markers.colors,n=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(n)?n[e]:n,pointFillColor:Array.isArray(r)?r[e]:r}}}]),e}(),U=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return o(e,[{key:"draw",value:function(e,t,r){var n=this.w,i=new C(this.ctx),a=r.realIndex,o=r.pointsPos,s=r.zRatio,l=r.elParent,u=i.group({class:"apexcharts-series-markers apexcharts-series-".concat(n.config.chart.type)});if(u.attr("clip-path","url(#gridRectMarkerMask".concat(n.globals.cuid,")")),Array.isArray(o.x))for(var c=0;c<o.x.length;c++){var d=t+1,h=!0;0===t&&0===c&&(d=0),0===t&&1===c&&(d=1);var f=n.globals.markers.size[a];if(s!==1/0){var p=n.config.plotOptions.bubble;f=n.globals.seriesZ[a][d],p.zScaling&&(f/=s),p.minBubbleRadius&&f<p.minBubbleRadius&&(f=p.minBubbleRadius),p.maxBubbleRadius&&f>p.maxBubbleRadius&&(f=p.maxBubbleRadius)}var g=o.x[c],m=o.y[c];if(f=f||0,null!==m&&void 0!==n.globals.series[a][d]||(h=!1),h){var v=this.drawPoint(g,m,f,a,d,t);u.add(v)}l.add(u)}}},{key:"drawPoint",value:function(e,t,r,n,i,a){var o=this.w,s=new k(this.ctx),l=new S(this.ctx),u=new X(this.ctx),c=new Y(this.ctx),d=new C(this.ctx),h=c.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:n,dataPointIndex:i,radius:"bubble"===o.config.chart.type||o.globals.comboCharts&&o.config.series[n]&&"bubble"===o.config.series[n].type?r:null}),f=u.fillPath({seriesNumber:n,dataPointIndex:i,color:h.pointFillColor,patternUnits:"objectBoundingBox",value:o.globals.series[n][a]}),p=d.drawMarker(e,t,h);if(o.config.series[n].data[i]&&o.config.series[n].data[i].fillColor&&(f=o.config.series[n].data[i].fillColor),p.attr({fill:f}),o.config.chart.dropShadow.enabled){var g=o.config.chart.dropShadow;l.dropShadow(p,g,n)}if(!this.initialAnim||o.globals.dataChanged||o.globals.resized)o.globals.animationEnded=!0;else{var m=o.config.chart.animations.speed;s.animateMarker(p,m,o.globals.easing,function(){window.setTimeout(function(){s.animationCompleted(p)},100)})}return p.attr({rel:i,j:i,index:n,"default-marker-size":h.pSize}),l.setSelectionFilter(p,n,i),c.addEvents(p),p.node.classList.add("apexcharts-marker"),p}},{key:"centerTextInBubble",value:function(e){return{y:e+=parseInt(this.w.config.dataLabels.style.fontSize,10)/4}}}]),e}(),V=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"dataLabelsCorrection",value:function(e,t,r,n,i,a,o){var s=this.w,l=!1,u=new C(this.ctx).getTextRects(r,o),c=u.width,d=u.height;t<0&&(t=0),t>s.globals.gridHeight+d&&(t=s.globals.gridHeight+d/2),void 0===s.globals.dataLabelsRects[n]&&(s.globals.dataLabelsRects[n]=[]),s.globals.dataLabelsRects[n].push({x:e,y:t,width:c,height:d});var h=s.globals.dataLabelsRects[n].length-2,f=void 0!==s.globals.lastDrawnDataLabelsIndexes[n]?s.globals.lastDrawnDataLabelsIndexes[n][s.globals.lastDrawnDataLabelsIndexes[n].length-1]:0;if(void 0!==s.globals.dataLabelsRects[n][h]){var p=s.globals.dataLabelsRects[n][f];(e>p.x+p.width||t>p.y+p.height||t+d<p.y||e+c<p.x)&&(l=!0)}return(0===i||a)&&(l=!0),{x:e,y:t,textRects:u,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,r=e.type,n=e.pos,i=e.i,a=e.j,o=e.isRangeStart,s=e.strokeWidth,l=void 0===s?2:s,u=this.w,c=new C(this.ctx),d=u.config.dataLabels,h=0,f=0,p=a,g=null;if(-1!==u.globals.collapsedSeriesIndices.indexOf(i)||!d.enabled||!Array.isArray(n.x))return g;g=c.group({class:"apexcharts-data-labels"});for(var m=0;m<n.x.length;m++)if(h=n.x[m]+d.offsetX,f=n.y[m]+d.offsetY+l,!isNaN(h)){1===a&&0===m&&(p=0),1===a&&1===m&&(p=1);var v=u.globals.series[i][p];"rangeArea"===r&&(v=o?u.globals.seriesRangeStart[i][p]:u.globals.seriesRangeEnd[i][p]);var b="",x=function(e){return u.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:i,dataPointIndex:p,w:u})};"bubble"===u.config.chart.type?(b=x(v=u.globals.seriesZ[i][p]),f=n.y[m],f=new U(this.ctx).centerTextInBubble(f,i,p).y):void 0!==v&&(b=x(v));var y=u.config.dataLabels.textAnchor;u.globals.isSlopeChart&&(y=0===p?"end":p===u.config.series[i].data.length-1?"start":"middle"),this.plotDataLabelsText({x:h,y:f,text:b,i:i,j:p,parent:g,offsetCorrection:!0,dataLabelsConfig:u.config.dataLabels,textAnchor:y})}return g}},{key:"plotDataLabelsText",value:function(e){var t=this.w,r=new C(this.ctx),n=e.x,i=e.y,a=e.i,o=e.j,s=e.text,l=e.textAnchor,u=e.fontSize,c=e.parent,d=e.dataLabelsConfig,h=e.color,f=e.alwaysDrawDataLabel,p=e.offsetCorrection,g=e.className,m=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&0>t.config.dataLabels.enabledOnSeries.indexOf(a))return m;var v={x:n,y:i,drawnextLabel:!0,textRects:null};p&&(v=this.dataLabelsCorrection(n,i,s,a,o,f,parseInt(d.style.fontSize,10))),t.globals.zoomed||(n=v.x,i=v.y),v.textRects&&(n<-20-v.textRects.width||n>t.globals.gridWidth+v.textRects.width+30)&&(s="");var b=t.globals.dataLabels.style.colors[a];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(b=t.globals.dataLabels.style.colors[o]),"function"==typeof b&&(b=b({series:t.globals.series,seriesIndex:a,dataPointIndex:o,w:t})),h&&(b=h);var x=d.offsetX,y=d.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(x=0,y=0),t.globals.isSlopeChart&&(0!==o&&(x=-2*d.offsetX+5),0!==o&&o!==t.config.series[a].data.length-1&&(x=0)),v.drawnextLabel){if((m=r.drawText({width:100,height:parseInt(d.style.fontSize,10),x:n+x,y:i+y,foreColor:b,textAnchor:l||d.textAnchor,text:s,fontSize:u||d.style.fontSize,fontFamily:d.style.fontFamily,fontWeight:d.style.fontWeight||"normal"})).attr({class:g||"apexcharts-datalabel",cx:n,cy:i}),d.dropShadow.enabled){var w=d.dropShadow;new S(this.ctx).dropShadow(m,w)}c.add(m),void 0===t.globals.lastDrawnDataLabelsIndexes[a]&&(t.globals.lastDrawnDataLabelsIndexes[a]=[]),t.globals.lastDrawnDataLabelsIndexes[a].push(o)}return m}},{key:"addBackgroundToDataLabel",value:function(e,t){var r=this.w,n=r.config.dataLabels.background,i=n.padding,a=n.padding/2,o=t.width,s=t.height,l=new C(this.ctx).drawRect(t.x-i,t.y-a/2,o+2*i,s+a,n.borderRadius,"transparent"!==r.config.chart.background&&r.config.chart.background?r.config.chart.background:"#fff",n.opacity,n.borderWidth,n.borderColor);return n.dropShadow.enabled&&new S(this.ctx).dropShadow(l,n.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),r=0;r<t.length;r++){var n=t[r],i=n.getBBox(),a=null;if(i.width&&i.height&&(a=this.addBackgroundToDataLabel(n,i)),a){n.parentNode.insertBefore(a.node,n);var o=n.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?a.attr({fill:o}):a.animate().attr({fill:o}),n.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),r=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),n=0;n<t.length;n++)r&&r.insertBefore(t[n],r.nextSibling)}}]),e}(),G=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return o(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(w.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),r=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:r}}},{key:"addCollapsedClassToSeries",value:function(e,t){var r=this.w;function n(r){for(var n=0;n<r.length;n++)r[n].index===t&&e.node.classList.add("apexcharts-series-collapsed")}n(r.globals.collapsedSeries),n(r.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w,i=w.clone(n.globals.initialSeries);n.globals.previousPaths=[],r?(n.globals.collapsedSeries=[],n.globals.ancillaryCollapsedSeries=[],n.globals.collapsedSeriesIndices=[],n.globals.ancillaryCollapsedSeriesIndices=[]):i=this.emptyCollapsedSeries(i),n.config.series=i,e&&(t&&(n.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(i,n.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,r=0;r<e.length;r++)t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(e[r].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,r=this.getSeriesByName(e),n=parseInt(null==r?void 0:r.getAttribute("data:realIndex"),10),i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),a=null,o=null,s=null;if(t.globals.axisCharts||"radialBar"===t.config.chart.type){if(t.globals.axisCharts){a=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(n,"']")),o=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(n,"']"));var l=t.globals.seriesYAxisReverseMap[n];s=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else a=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"']"))}else a=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(n+1,"'] path"));for(var u=0;u<i.length;u++)i[u].classList.add(this.legendInactiveClass);if(a)t.globals.axisCharts||a.parentNode.classList.remove(this.legendInactiveClass),a.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass),null!==s&&s.classList.remove(this.legendInactiveClass);else for(var c=0;c<i.length;c++)i[c].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var r=this.w;t||(t=e.target);var n=r.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){var i=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(r.globals.seriesNames[i])}else if("mouseout"===e.type)for(var a=0;a<n.length;a++)n[a].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var r=this,n=this.w,i=n.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),a=function(e){for(var t=0;t<i.length;t++)i[t].classList[e](r.legendInactiveClass)};if("mousemove"===e.type){var o=parseInt(t.getAttribute("rel"),10)-1;a("add");var s=n.config.plotOptions.heatmap.colorScale.ranges;!function(e,t){for(var n=0;n<i.length;n++){var a=Number(i[n].getAttribute("val"));a>=e.from&&(a<e.to||e.to===t&&a===t)&&i[n].classList.remove(r.legendInactiveClass)}}(s[o],s.reduce(function(e,t){return Math.max(e,t.to)},0))}else"mouseout"===e.type&&a("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=this.w,n=0;if(r.config.series.length>1){for(var i=r.config.series.map(function(e,n){return e.data&&e.data.length>0&&-1===r.globals.collapsedSeriesIndices.indexOf(n)&&(!r.globals.comboCharts||0===t.length||t.length&&t.indexOf(r.config.series[n].type)>-1)?n:-1}),a="asc"===e?0:i.length-1;"asc"===e?a<i.length:a>=0;"asc"===e?a++:a--)if(-1!==i[a]){n=i[a];break}}return n}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return"bar"===e.type||"column"===e.type?t:-1}).filter(function(e){return -1!==e}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(t){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(t,"-series .apexcharts-series")),n=0;n<r.length;n++)(function(t,r,n){for(var i=t[r].childNodes,a={type:n,paths:[],realIndex:t[r].getAttribute("data:realIndex")},o=0;o<i.length;o++)if(i[o].hasAttribute("pathTo")){var s=i[o].getAttribute("pathTo");a.paths.push({d:s})}e.globals.previousPaths.push(a)})(r,n,t)}),this.handlePrevBubbleScatterPaths("bubble"),this.handlePrevBubbleScatterPaths("scatter");var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(t.length>0)for(var r=0;r<t.length;r++)(function(t){for(var r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),n=[],i=function(e){var t=function(t){return r[e].getAttribute(t)},i={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};n.push({rect:i,color:r[e].getAttribute("color")})},a=0;a<r.length;a++)i(a);e.globals.previousPaths.push(n)})(r);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"handlePrevBubbleScatterPaths",value:function(e){var t=this.w,r=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series"));if(r.length>0)for(var n=0;n<r.length;n++){for(var i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e,"-series .apexcharts-series[data\\:realIndex='").concat(n,"'] circle")),a=[],o=0;o<i.length;o++)a.push({x:i[o].getAttribute("cx"),y:i[o].getAttribute("cy"),r:i[o].getAttribute("r")});t.globals.previousPaths.push(a)}}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,r=new C(this.ctx),n=e.globals.svgWidth/2,i=e.globals.svgHeight/2,a="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(n=10,a="start"):"right"===t.align&&(n=e.globals.svgWidth-10,a="end"),"top"===t.verticalAlign?i=50:"bottom"===t.verticalAlign&&(i=e.globals.svgHeight-50),n+=t.offsetX,i=i+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var o=r.drawText({x:n,y:i,text:t.text,textAnchor:a,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(o)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,r=0;r<e.length;r++)if(0===e[r].length)for(var n=0;n<e[t.globals.maxValsInArrayIndex].length;n++)e[r].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,r=this.filteredSeriesX(),n=0;n<r.length-1;n++)if(r[n][0]!==r[n+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(e){return e.length>0?e:[]})}}]),e}(),$=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new A(this.ctx)}return o(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new G(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new G(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var r=this.w.config,n=this.w.globals,i="boxPlot"===r.chart.type||"boxPlot"===r.series[t].type,a=0;a<e[t].data.length;a++)if(void 0!==e[t].data[a][1]&&(Array.isArray(e[t].data[a][1])&&4===e[t].data[a][1].length&&!i?this.twoDSeries.push(w.parseNumber(e[t].data[a][1][3])):e[t].data[a].length>=5?this.twoDSeries.push(w.parseNumber(e[t].data[a][4])):this.twoDSeries.push(w.parseNumber(e[t].data[a][1])),n.dataFormatXNumeric=!0),"datetime"===r.xaxis.type){var o=new Date(e[t].data[a][0]);o=new Date(o).getTime(),this.twoDSeriesX.push(o)}else this.twoDSeriesX.push(e[t].data[a][0]);for(var s=0;s<e[t].data.length;s++)void 0!==e[t].data[s][2]&&(this.threeDSeries.push(e[t].data[s][2]),n.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var r=this.w.config,n=this.w.globals,i=new T(this.ctx),a=t;n.collapsedSeriesIndices.indexOf(t)>-1&&(a=this.activeSeriesIndex);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o].y&&(Array.isArray(e[t].data[o].y)?this.twoDSeries.push(w.parseNumber(e[t].data[o].y[e[t].data[o].y.length-1])):this.twoDSeries.push(w.parseNumber(e[t].data[o].y))),void 0!==e[t].data[o].goals&&Array.isArray(e[t].data[o].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[o].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var s=0;s<e[a].data.length;s++){var l="string"==typeof e[a].data[s].x,u=Array.isArray(e[a].data[s].x),c=!u&&!!i.isValidDate(e[a].data[s].x);if(l||c){if(l||r.xaxis.convertedCatToNumeric){var d=n.isBarHorizontal&&n.isRangeData;"datetime"!==r.xaxis.type||d?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[a].data[s].x),isNaN(e[a].data[s].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[a].data[s].x||(n.isXNumeric=!0)):this.twoDSeriesX.push(i.parseDate(e[a].data[s].x))}else"datetime"===r.xaxis.type?this.twoDSeriesX.push(i.parseDate(e[a].data[s].x.toString())):(n.dataFormatXNumeric=!0,n.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[a].data[s].x)))}else u?this.fallbackToCategory=!0:(n.isXNumeric=!0,n.dataFormatXNumeric=!0),this.twoDSeriesX.push(e[a].data[s].x)}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var h=0;h<e[t].data.length;h++)this.threeDSeries.push(e[t].data[h].z);n.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var r=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(n=this.handleRangeDataFormat("xy",e,t)),r.seriesRangeStart.push(void 0===n.start?[]:n.start),r.seriesRangeEnd.push(void 0===n.end?[]:n.end),r.seriesRange.push(n.rangeUniques),r.seriesRange.forEach(function(e,t){e&&e.forEach(function(e,t){e.y.forEach(function(t,r){for(var n=0;n<e.y.length;n++)if(r!==n){var i=t.y1,a=t.y2,o=e.y[n].y1;i<=e.y[n].y2&&o<=a&&(0>e.overlaps.indexOf(t.rangeName)&&e.overlaps.push(t.rangeName),0>e.overlaps.indexOf(e.y[n].rangeName)&&e.overlaps.push(e.y[n].rangeName))}})})}),n}},{key:"handleCandleStickBoxData",value:function(e,t){var r=this.w.globals,n={};return this.isFormat2DArray()?n=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(n=this.handleCandleStickBoxDataFormat("xy",e,t)),r.seriesCandleO[t]=n.o,r.seriesCandleH[t]=n.h,r.seriesCandleM[t]=n.m,r.seriesCandleL[t]=n.l,r.seriesCandleC[t]=n.c,n}},{key:"handleRangeDataFormat",value:function(e,t,r){var n=[],i=[],a=t[r].data.filter(function(e,t,r){return t===r.findIndex(function(t){return t.x===e.x})}).map(function(e,t){return{x:e.x,overlaps:[],y:[]}});if("array"===e)for(var o=0;o<t[r].data.length;o++)Array.isArray(t[r].data[o])?(n.push(t[r].data[o][1][0]),i.push(t[r].data[o][1][1])):(n.push(t[r].data[o]),i.push(t[r].data[o]));else if("xy"===e)for(var s=0;s<t[r].data.length;s++)(function(e){var o=Array.isArray(t[r].data[e].y),s=w.randomId(),l=t[r].data[e].x,u={y1:o?t[r].data[e].y[0]:t[r].data[e].y,y2:o?t[r].data[e].y[1]:t[r].data[e].y,rangeName:s};t[r].data[e].rangeName=s;var c=a.findIndex(function(e){return e.x===l});a[c].y.push(u),n.push(u.y1),i.push(u.y2)})(s);return{start:n,end:i,rangeUniques:a}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,r){var n=this.w,i="boxPlot"===n.config.chart.type||"boxPlot"===n.config.series[r].type,a=[],o=[],s=[],l=[],u=[];if("array"===e){if(i&&6===t[r].data[0].length||!i&&5===t[r].data[0].length)for(var c=0;c<t[r].data.length;c++)a.push(t[r].data[c][1]),o.push(t[r].data[c][2]),i?(s.push(t[r].data[c][3]),l.push(t[r].data[c][4]),u.push(t[r].data[c][5])):(l.push(t[r].data[c][3]),u.push(t[r].data[c][4]));else for(var d=0;d<t[r].data.length;d++)Array.isArray(t[r].data[d][1])&&(a.push(t[r].data[d][1][0]),o.push(t[r].data[d][1][1]),i?(s.push(t[r].data[d][1][2]),l.push(t[r].data[d][1][3]),u.push(t[r].data[d][1][4])):(l.push(t[r].data[d][1][2]),u.push(t[r].data[d][1][3])))}else if("xy"===e)for(var h=0;h<t[r].data.length;h++)Array.isArray(t[r].data[h].y)&&(a.push(t[r].data[h].y[0]),o.push(t[r].data[h].y[1]),i?(s.push(t[r].data[h].y[2]),l.push(t[r].data[h].y[3]),u.push(t[r].data[h].y[4])):(l.push(t[r].data[h].y[2]),u.push(t[r].data[h].y[3])));return{o:a,h:o,m:s,l:l,c:u}}},{key:"parseDataAxisCharts",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,n=this.w.config,i=this.w.globals,a=new T(r),o=n.labels.length>0?n.labels.slice():n.xaxis.categories.slice();i.isRangeBar="rangeBar"===n.chart.type&&i.isBarHorizontal,i.hasXaxisGroups="category"===n.xaxis.type&&n.xaxis.group.groups.length>0,i.hasXaxisGroups&&(i.groups=n.xaxis.group.groups),e.forEach(function(e,t){void 0!==e.name?i.seriesNames.push(e.name):i.seriesNames.push("series-"+parseInt(t+1,10))}),this.coreUtils.setSeriesYAxisMappings();var s=[],l=v(new Set(n.series.map(function(e){return e.group})));n.series.forEach(function(e,t){var r=l.indexOf(e.group);s[r]||(s[r]=[]),s[r].push(i.seriesNames[t])}),i.seriesGroups=s;for(var u=0;u<e.length;u++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[u].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type&&"rangeBar"!==e[u].type&&"rangeArea"!==e[u].type||(i.isRangeData=!0,"rangeBar"!==n.chart.type&&"rangeArea"!==n.chart.type||this.handleRangeData(e,u)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,u):this.isFormatXY()&&this.handleFormatXY(e,u),"candlestick"!==n.chart.type&&"candlestick"!==e[u].type&&"boxPlot"!==n.chart.type&&"boxPlot"!==e[u].type||this.handleCandleStickBoxData(e,u),i.series.push(this.twoDSeries),i.labels.push(this.twoDSeriesX),i.seriesX.push(this.twoDSeriesX),i.seriesGoals=this.seriesGoals,u!==this.activeSeriesIndex||this.fallbackToCategory||(i.isXNumeric=!0);else{"datetime"===n.xaxis.type?(i.isXNumeric=!0,function(){for(var e=0;e<o.length;e++)if("string"==typeof o[e]){if(!a.isValidDate(o[e]))throw Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(a.parseDate(o[e]))}else t.twoDSeriesX.push(o[e])}(),i.seriesX.push(this.twoDSeriesX)):"numeric"===n.xaxis.type&&(i.isXNumeric=!0,o.length>0&&(this.twoDSeriesX=o,i.seriesX.push(this.twoDSeriesX))),i.labels.push(this.twoDSeriesX);var c=e[u].data.map(function(e){return w.parseNumber(e)});i.series.push(c)}i.seriesZ.push(this.threeDSeries),void 0!==e[u].color?i.seriesColors.push(e[u].color):i.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,r=this.w.config;t.series=e.slice(),t.seriesNames=r.labels.slice();for(var n=0;n<t.series.length;n++)void 0===t.seriesNames[n]&&t.seriesNames.push("series-"+(n+1));return this.w}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,r=this.w.globals;t.xaxis.categories.length>0?r.labels=t.xaxis.categories:t.labels.length>0?r.labels=t.labels.slice():this.fallbackToCategory?(r.labels=r.labels[0],r.seriesRange.length&&(r.seriesRange.map(function(e){e.forEach(function(e){0>r.labels.indexOf(e.x)&&e.x&&r.labels.push(e.x)})}),r.labels=Array.from(new Set(r.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new F(t).convertCatToNumericXaxis(t,this.ctx,r.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,r=this.w.config,n=[];if(t.axisCharts){if(t.series.length>0){if(this.isFormatXY())for(var i=r.series.map(function(e,t){return e.data.filter(function(e,t,r){return r.findIndex(function(t){return t.x===e.x})===t})}),a=i.reduce(function(e,t,r,n){return n[e].length>t.length?e:r},0),o=0;o<i[a].length;o++)n.push(o+1);else for(var s=0;s<t.series[t.maxValsInArrayIndex].length;s++)n.push(s+1)}t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(n);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===n.length){n=t.axisCharts?[]:t.series.map(function(e,t){return t+1});for(var u=0;u<e.length;u++)t.seriesX.push(n)}t.labels=n,r.xaxis.convertedCatToNumeric&&(t.categoryLabels=n.map(function(e){return r.xaxis.labels.formatter(e)})),t.noLabelsProvided=!0}},{key:"parseData",value:function(e){var t=this.w,r=t.config,n=t.globals;if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),n.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),r.chart.stacked){var i=new G(this.ctx);n.series=i.setNullSeriesToZeroValues(n.series)}this.coreUtils.getSeriesTotals(),n.axisCharts&&(n.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),n.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),n.dataFormatXNumeric||n.isXNumeric&&("numeric"!==r.xaxis.type||0!==r.labels.length||0!==r.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var a=this.coreUtils.getCategoryLabels(n.labels),o=0;o<a.length;o++)if(Array.isArray(a[o])){n.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(r,n){var i=0;r.forEach(function(t){-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&i++}),i>0&&i==r.length&&t.push(n)}),e.globals.ignoreYAxisIndexes=t.map(function(e){return e})}}]),e}(),q=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"scaleSvgNode",value:function(e,t){var r=parseFloat(e.getAttributeNS(null,"width")),n=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",r*t),e.setAttributeNS(null,"height",n*t),e.setAttributeNS(null,"viewBox","0 0 "+r+" "+n)}},{key:"getSvgString",value:function(){var e=this;return new Promise(function(t){var r=e.w,n=r.config.chart.toolbar.export.width,i=r.config.chart.toolbar.export.scale||n/r.globals.svgWidth;i||(i=1),e.w.globals.dom.Paper.svg();var a=e.w.globals.dom.Paper.node.cloneNode(!0);1!==i&&e.scaleSvgNode(a,i),e.convertImagesToBase64(a).then(function(){t((new XMLSerializer).serializeToString(a).replace(/ /g," "))})})}},{key:"convertImagesToBase64",value:function(e){var t=this;return Promise.all(Array.from(e.getElementsByTagName("image")).map(function(e){var r=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return r&&!r.startsWith("data:")?t.getBase64FromUrl(r).then(function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}).catch(function(e){console.error("Error converting image to base64:",e)}):Promise.resolve()}))}},{key:"getBase64FromUrl",value:function(e){return new Promise(function(t,r){var n=new Image;n.crossOrigin="Anonymous",n.onload=function(){var e=document.createElement("canvas");e.width=n.width,e.height=n.height,e.getContext("2d").drawImage(n,0,0),t(e.toDataURL())},n.onerror=r,n.src=e})}},{key:"cleanup",value:function(){var e=this.w,t=e.globals.dom.baseEl.getElementsByClassName("apexcharts-xcrosshairs"),r=e.globals.dom.baseEl.getElementsByClassName("apexcharts-ycrosshairs"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-zoom-rect, .apexcharts-selection-rect");Array.prototype.forEach.call(n,function(e){e.setAttribute("width",0)}),t&&t[0]&&(t[0].setAttribute("x",-500),t[0].setAttribute("x1",-500),t[0].setAttribute("x2",-500)),r&&r[0]&&(r[0].setAttribute("y",-100),r[0].setAttribute("y1",-100),r[0].setAttribute("y2",-100))}},{key:"svgUrl",value:function(){var e=this;return new Promise(function(t){e.cleanup(),e.getSvgString().then(function(e){var r=new Blob([e],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(r))})})}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(r){var n=t.w,i=e?e.scale||e.width/n.globals.svgWidth:1;t.cleanup();var a=document.createElement("canvas");a.width=n.globals.svgWidth*i,a.height=parseInt(n.globals.dom.elWrap.style.height,10)*i;var o="transparent"!==n.config.chart.background&&n.config.chart.background?n.config.chart.background:"#fff",s=a.getContext("2d");s.fillStyle=o,s.fillRect(0,0,a.width*i,a.height*i),t.getSvgString().then(function(e){var t="data:image/svg+xml,"+encodeURIComponent(e),n=new Image;n.crossOrigin="anonymous",n.onload=function(){(s.drawImage(n,0,0),a.msToBlob)?r({blob:a.msToBlob()}):r({imgURI:a.toDataURL("image/png")})},n.src=t})})}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then(function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,r=this.w.config.chart.toolbar.export.width;this.dataURI(t?{scale:t}:r?{width:r}:void 0).then(function(t){var r=t.imgURI,n=t.blob;n?navigator.msSaveOrOpenBlob(n,e.w.globals.chartID+".png"):e.triggerDownload(r,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,r=e.series,n=e.fileName,i=e.columnDelimiter,a=void 0===i?",":i,o=e.lineDelimiter,s=this.w;r||(r=s.config.series);var l,u,c=[],d=[],h="",f=s.globals.series.map(function(e,t){return -1===s.globals.collapsedSeriesIndices.indexOf(t)?e:[]}),p=function(e){return"function"==typeof s.config.chart.toolbar.export.csv.categoryFormatter?s.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===s.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():w.isNumber(e)?e:e.split(a).join("")},g=function(e){return"function"==typeof s.config.chart.toolbar.export.csv.valueFormatter?s.config.chart.toolbar.export.csv.valueFormatter(e):e},m=Math.max.apply(Math,v(r.map(function(e){return e.data?e.data.length:0}))),b=new $(this.ctx),x=new O(this.ctx),y=function(e){var r="";if(s.globals.axisCharts){if("category"===s.config.xaxis.type||s.config.xaxis.convertedCatToNumeric){if(s.globals.isBarHorizontal){var n=s.globals.yLabelFormatters[0],i=new G(t.ctx).getActiveConfigSeriesIndex();r=n(s.globals.labels[e],{seriesIndex:i,dataPointIndex:e,w:s})}else r=x.getLabel(s.globals.labels,s.globals.timescaleLabels,0,e).text}"datetime"===s.config.xaxis.type&&(s.config.xaxis.categories.length?r=s.config.xaxis.categories[e]:s.config.labels.length&&(r=s.config.labels[e]))}else r=s.config.labels[e];return null===r?"nullvalue":(Array.isArray(r)&&(r=r.join(" ")),w.isNumber(r)?r:r.split(a).join(""))},k=function(e,t){if(c.length&&0===t&&d.push(c.join(a)),e.data){e.data=e.data.length&&e.data||v(Array(m)).map(function(){return""});for(var n=0;n<e.data.length;n++){c=[];var i=y(n);if("nullvalue"!==i){if(i||(b.isFormatXY()?i=r[t].data[n].x:b.isFormat2DArray()&&(i=r[t].data[n]?r[t].data[n][0]:"")),0===t){c.push(p(i));for(var o=0;o<s.globals.series.length;o++){var l,u=b.isFormatXY()?null===(l=r[o].data[n])||void 0===l?void 0:l.y:f[o][n];c.push(g(u))}}("candlestick"===s.config.chart.type||e.type&&"candlestick"===e.type)&&(c.pop(),c.push(s.globals.seriesCandleO[t][n]),c.push(s.globals.seriesCandleH[t][n]),c.push(s.globals.seriesCandleL[t][n]),c.push(s.globals.seriesCandleC[t][n])),("boxPlot"===s.config.chart.type||e.type&&"boxPlot"===e.type)&&(c.pop(),c.push(s.globals.seriesCandleO[t][n]),c.push(s.globals.seriesCandleH[t][n]),c.push(s.globals.seriesCandleM[t][n]),c.push(s.globals.seriesCandleL[t][n]),c.push(s.globals.seriesCandleC[t][n])),"rangeBar"===s.config.chart.type&&(c.pop(),c.push(s.globals.seriesRangeStart[t][n]),c.push(s.globals.seriesRangeEnd[t][n])),c.length&&d.push(c.join(a))}}}};c.push(s.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===s.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===s.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===s.config.chart.type?(c.push("minimum"),c.push("maximum")):r.map(function(e,t){var r=(e.name?e.name:"series-".concat(t))+"";s.globals.axisCharts&&c.push(r.split(a).join("")?r.split(a).join(""):"series-".concat(t))}),s.globals.axisCharts||(c.push(s.config.chart.toolbar.export.csv.headerValue),d.push(c.join(a))),s.globals.allSeriesHasEqualX||!s.globals.axisCharts||s.config.xaxis.categories.length||s.config.labels.length?r.map(function(e,t){s.globals.axisCharts?k(e,t):((c=[]).push(p(s.globals.labels[t])),c.push(g(f[t])),d.push(c.join(a)))}):(l=new Set,u={},r.forEach(function(e,t){null==e||e.data.forEach(function(e){var n,i;if(b.isFormatXY())n=e.x,i=e.y;else{if(!b.isFormat2DArray())return;n=e[0],i=e[1]}u[n]||(u[n]=Array(r.length).fill("")),u[n][t]=g(i),l.add(n)})}),c.length&&d.push(c.join(a)),Array.from(l).sort().forEach(function(e){d.push([p(e),u[e].join(a)])})),h+=d.join(void 0===o?"\n":o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\uFEFF"+h),n||s.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,r){var n=document.createElement("a");n.href=e,n.download=(t||this.w.globals.chartID)+r,document.body.appendChild(n),n.click(),document.body.removeChild(n)}}]),e}(),Z=function(){function e(t,r){i(this,e),this.ctx=t,this.elgrid=r,this.w=t.w;var n=this.w;this.axesUtils=new O(t),this.xaxisLabels=n.globals.labels.slice(),n.globals.timescaleLabels.length>0&&!n.globals.isBarHorizontal&&(this.xaxisLabels=n.globals.timescaleLabels.slice()),n.config.xaxis.overwriteCategories&&(this.xaxisLabels=n.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===n.config.xaxis.position?this.offY=0:this.offY=n.globals.gridHeight,this.offY=this.offY+n.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.xaxisBorderWidth=n.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=n.config.yaxis[0].axisBorder.width.toString()),this.xaxisBorderWidth.indexOf("%")>-1?this.xaxisBorderWidth=n.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=n.config.xaxis.axisBorder.height,this.yaxis=n.config.yaxis[0]}return o(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new C(this.ctx),r=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),n=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});r.add(n);for(var i=[],a=0;a<this.xaxisLabels.length;a++)i.push(this.xaxisLabels[a]);if(this.drawXAxisLabelAndGroup(!0,t,n,i,e.globals.isXNumeric,function(e,t){return t}),e.globals.hasXaxisGroups){var o=e.globals.groups;i=[];for(var s=0;s<o.length;s++)i.push(o[s].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,n,i,!1,function(e,t){return o[e].cols*t},l)}if(void 0!==e.config.xaxis.title.text){var u=t.group({class:"apexcharts-xaxis-title"}),c=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});u.add(c),r.add(u)}if(e.config.xaxis.axisBorder.show){var d=e.globals.barPadForNumericAxis,h=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-d,this.offY,this.xaxisBorderWidth+d,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(h):r.add(h)}return r}},{key:"drawXAxisLabelAndGroup",value:function(e,t,r,n,i,a){var o,s=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},u=[],c=[],d=this.w,h=l.xaxisFontSize||this.xaxisFontSize,f=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,g=l.fontWeight||d.config.xaxis.labels.style.fontWeight,m=l.cssClass||d.config.xaxis.labels.style.cssClass,v=d.globals.padHorizontal,b=n.length,x="category"===d.config.xaxis.type?d.globals.dataPoints:b;if(0===x&&b>x&&(x=b),i){var y=x>1?x-1:x;o=d.globals.gridWidth/Math.min(y,b-1),v=v+a(0,o)/2+d.config.xaxis.labels.offsetX}else o=d.globals.gridWidth/x,v=v+a(0,o)+d.config.xaxis.labels.offsetX;for(var w=function(i){var l=v-a(i,o)/2+d.config.xaxis.labels.offsetX;0===i&&1===b&&o/2===v&&1===x&&(l=d.globals.gridWidth/2);var y=s.axesUtils.getLabel(n,d.globals.timescaleLabels,l,i,u,h,e),w=28;if(d.globals.rotateXLabels&&e&&(w=22),d.config.xaxis.title.text&&"top"===d.config.xaxis.position&&(w+=parseFloat(d.config.xaxis.title.style.fontSize)+2),e||(w=w+parseFloat(h)+(d.globals.xAxisLabelsHeight-d.globals.xAxisGroupLabelsHeight)+(d.globals.rotateXLabels?10:0)),y=void 0!==d.config.xaxis.tickAmount&&"dataPoints"!==d.config.xaxis.tickAmount&&"datetime"!==d.config.xaxis.type?s.axesUtils.checkLabelBasedOnTickamount(i,y,b):s.axesUtils.checkForOverflowingLabels(i,y,b,u,c),d.config.xaxis.labels.show){var k=t.drawText({x:y.x,y:s.offY+d.config.xaxis.labels.offsetY+w-("top"===d.config.xaxis.position?d.globals.xAxisHeight+d.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:g,fontSize:h,fontFamily:f,foreColor:Array.isArray(p)?e&&d.config.xaxis.convertedCatToNumeric?p[d.globals.minX+i-1]:p[i]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+m});if(r.add(k),k.on("click",function(e){if("function"==typeof d.config.chart.events.xAxisLabelClick){var t=Object.assign({},d,{labelIndex:i});d.config.chart.events.xAxisLabelClick(e,s.ctx,t)}}),e){var S=document.createElementNS(d.globals.SVGNS,"title");S.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,k.node.appendChild(S),""!==y.text&&(u.push(y.text),c.push(y))}}i<b-1&&(v+=a(i+1,o))},k=0;k<=b-1;k++)w(k)}},{key:"drawXaxisInversed",value:function(e){var t,r,n=this,i=this.w,a=new C(this.ctx),o=i.config.yaxis[0].opposite?i.globals.translateYAxisX[e]:0,s=a.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=a.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+o+", 0)"});s.add(l);var u=[];if(i.config.yaxis[e].show)for(var c=0;c<this.xaxisLabels.length;c++)u.push(this.xaxisLabels[c]);r=-(t=i.globals.gridHeight/u.length)/2.2;var d=i.globals.yLabelFormatters[0],h=i.config.yaxis[0].labels;if(h.show)for(var f=function(o){var s=void 0===u[o]?"":u[o];s=d(s,{seriesIndex:e,dataPointIndex:o,w:i});var c=n.axesUtils.getYAxisForeColor(h.style.colors,e),f=0;Array.isArray(s)&&(f=s.length/2*parseInt(h.style.fontSize,10));var p=h.offsetX-15,g="end";n.yaxis.opposite&&(g="start"),"left"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="start"):"center"===i.config.yaxis[0].labels.align?(p=h.offsetX,g="middle"):"right"===i.config.yaxis[0].labels.align&&(g="end");var m=a.drawText({x:p,y:r+t+h.offsetY-f,text:s,textAnchor:g,foreColor:Array.isArray(c)?c[o]:c,fontSize:h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+h.style.cssClass,maxWidth:h.maxWidth});l.add(m),m.on("click",function(e){if("function"==typeof i.config.chart.events.xAxisLabelClick){var t=Object.assign({},i,{labelIndex:o});i.config.chart.events.xAxisLabelClick(e,n.ctx,t)}});var v=document.createElementNS(i.globals.SVGNS,"title");if(v.textContent=Array.isArray(s)?s.join(" "):s,m.node.appendChild(v),0!==i.config.yaxis[e].labels.rotate){var b=a.rotateAroundCenter(m.node);m.node.setAttribute("transform","rotate(".concat(i.config.yaxis[e].labels.rotate," 0 ").concat(b.y,")"))}r+=t},p=0;p<=u.length-1;p++)f(p);if(void 0!==i.config.yaxis[0].title.text){var g=a.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+o+", 0)"}),m=a.drawText({x:i.config.yaxis[0].title.offsetX,y:i.globals.gridHeight/2+i.config.yaxis[0].title.offsetY,text:i.config.yaxis[0].title.text,textAnchor:"middle",foreColor:i.config.yaxis[0].title.style.color,fontSize:i.config.yaxis[0].title.style.fontSize,fontWeight:i.config.yaxis[0].title.style.fontWeight,fontFamily:i.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+i.config.yaxis[0].title.style.cssClass});g.add(m),s.add(g)}var v=0;this.isCategoryBarHorizontal&&i.config.yaxis[0].opposite&&(v=i.globals.gridWidth);var b=i.config.xaxis.axisBorder;if(b.show){var x=a.drawLine(i.globals.padHorizontal+b.offsetX+v,1+b.offsetY,i.globals.padHorizontal+b.offsetX+v,i.globals.gridHeight+b.offsetY,b.color,0);this.elgrid&&this.elgrid.elGridBorders&&i.config.grid.show?this.elgrid.elGridBorders.add(x):s.add(x)}return i.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(v,u.length,i.config.yaxis[0].axisBorder,i.config.yaxis[0].axisTicks,0,t,s),s}},{key:"drawXaxisTicks",value:function(e,t,r){var n=this.w;if(!(e<0||e-2>n.globals.gridWidth)){var i=this.offY+n.config.xaxis.axisTicks.offsetY;if(t=t+i+n.config.xaxis.axisTicks.height,"top"===n.config.xaxis.position&&(t=i-n.config.xaxis.axisTicks.height),n.config.xaxis.axisTicks.show){var a=new C(this.ctx).drawLine(e+n.config.xaxis.axisTicks.offsetX,i+n.config.xaxis.offsetY,e+n.config.xaxis.axisTicks.offsetX,t+n.config.xaxis.offsetY,n.config.xaxis.axisTicks.color);r.add(a),a.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],r=this.xaxisLabels.length,n=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var i=0;i<r;i++)n=this.xaxisLabels[i].position,t.push(n);else for(var a=0;a<r;a++){var o=r;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),n+=e.globals.gridWidth/o,t.push(n)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new C(this.ctx),r=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var o=0;o<n.length;o++){var s=t.rotateAroundCenter(n[o]);s.y=s.y-1,s.x=s.x+1,n[o].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(s.x," ").concat(s.y,")")),n[o].setAttribute("text-anchor","end"),r.setAttribute("transform","translate(0, ".concat(-10,")"));var l=n[o].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,function(r){t.placeTextWithEllipsis(r,r.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))})}else!function(){for(var r=e.globals.gridWidth/(e.globals.labels.length+1),i=0;i<n.length;i++){var a=n[i].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(a,function(e){t.placeTextWithEllipsis(e,e.textContent,r)})}}();if(i.length>0){var u=i[i.length-1].getBBox(),c=i[0].getBBox();u.x<-20&&i[i.length-1].parentNode.removeChild(i[i.length-1]),c.x+c.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&i[0].parentNode.removeChild(i[0]);for(var d=0;d<a.length;d++)t.placeTextWithEllipsis(a[d],a[d].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),K=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.xaxisLabels=r.globals.labels.slice(),this.axesUtils=new O(t),this.isRangeBar=r.globals.seriesRange.length&&r.globals.isBarHorizontal,r.globals.timescaleLabels.length>0&&(this.xaxisLabels=r.globals.timescaleLabels.slice())}return o(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,r=new C(this.ctx);e||(e=r.group({class:"apexcharts-grid"}));var n=r.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),i=r.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(i),e.add(n),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,r=new C(this.ctx),n=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,v(e.config.stroke.width)):e.config.stroke.width,i=function(e){var r=document.createElementNS(t.SVGNS,"clipPath");return r.setAttribute("id",e),r};t.dom.elGridRectMask=i("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=i("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=i("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=i("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=i("nonForecastMask".concat(t.cuid));var a=0,o=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(a=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),o=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=r.drawRect(0,0,t.gridWidth,t.gridHeight,0,"#fff"),t.dom.elGridRectBar=r.drawRect(-n/2-a-2,-n/2-2,t.gridWidth+n+o+a+4,t.gridHeight+n+4,0,"#fff");var s=e.globals.markers.largestSize;t.dom.elGridRectMarker=r.drawRect(-s,-s,t.gridWidth+2*s,t.gridHeight+2*s,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var l=t.dom.baseEl.querySelector("defs");l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,r=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===o-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:r,y1:n,x2:i,y2:a,xCount:o,parent:s});var u=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var c=l.globals.groups;if(c){for(var d=0,h=0;d<t&&h<c.length;h++)d+=c[h].cols;d===t&&(u=.6*l.globals.xAxisLabelsHeight)}}new Z(this.ctx).drawXaxisTicks(r,u,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,r=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.xCount,s=e.parent,l=this.w,u=s.node.classList.contains("apexcharts-gridlines-horizontal"),c=l.globals.barPadForNumericAxis,d=0===n&&0===a||0===r&&0===i||n===l.globals.gridHeight&&a===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===t||t===o-1),h=new C(this).drawLine(r-(u?c:0),n,i+(u?c:0),a,l.config.grid.borderColor,l.config.grid.strokeDashArray);h.node.classList.add("apexcharts-gridline"),d&&l.config.grid.show?this.elGridBorders.add(h):s.add(h)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,r=e.x1,n=e.y1,i=e.x2,a=e.y2,o=e.type,s=this.w,l=new C(this.ctx),u=s.globals.barPadForNumericAxis,c=s.config.grid[o].colors[t],d=l.drawRect(r-("row"===o?u:0),n,i+("row"===o?2*u:0),a,0,c,s.config.grid[o].opacity);this.elg.add(d),d.attr("clip-path","url(#gridRectMask".concat(s.globals.cuid,")")),d.node.classList.add("apexcharts-grid-".concat(o))}},{key:"_drawXYLines",value:function(e){var t=this,r=e.xCount,n=e.tickAmount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show){var a,o=i.globals.padHorizontal,s=i.globals.gridHeight;i.globals.timescaleLabels.length?function(e){for(var n=e.xC,i=e.x1,a=e.y1,o=e.x2,s=e.y2,l=0;l<n;l++)i=t.xaxisLabels[l].position,o=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:i,y1:a,x2:o,y2:s,xCount:r,parent:t.elgridLinesV})}({xC:r,x1:o,y1:0,x2:a,y2:s}):(i.globals.isXNumeric&&(r=i.globals.xAxisScale.result.length),function(e){for(var n=e.xC,a=e.x1,o=e.y1,s=e.x2,l=e.y2,u=0;u<n+(i.globals.isXNumeric?0:1);u++)0===u&&1===n&&1===i.globals.dataPoints&&(s=a=i.globals.gridWidth/2),t._drawGridLines({i:u,x1:a,y1:o,x2:s,y2:l,xCount:r,parent:t.elgridLinesV}),s=a+=i.globals.gridWidth/(i.globals.isXNumeric?n-1:n)}({xC:r,x1:o,y1:0,x2:a,y2:s}))}if(i.config.grid.yaxis.lines.show){var l=0,u=0,c=i.globals.gridWidth,d=n+1;this.isRangeBar&&(d=i.globals.labels.length);for(var h=0;h<d+(this.isRangeBar?1:0);h++)this._drawGridLine({i:h,xCount:d+(this.isRangeBar?1:0),x1:0,y1:l,x2:c,y2:u,parent:this.elgridLinesH}),u=l+=i.globals.gridHeight/(this.isRangeBar?d:n)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,r=this.w;if(r.config.grid.xaxis.lines.show||r.config.xaxis.axisTicks.show)for(var n,i=r.globals.padHorizontal,a=r.globals.gridHeight,o=0;o<t+1;o++)r.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:t+1,x1:i,y1:0,x2:n,y2:a,parent:this.elgridLinesV}),new Z(this.ctx).drawXaxisTicks(i,0,r.globals.dom.elGraphical),n=i+=r.globals.gridWidth/t;if(r.config.grid.yaxis.lines.show)for(var s=0,l=0,u=r.globals.gridWidth,c=0;c<r.globals.dataPoints+1;c++)this._drawGridLine({i:c,xCount:r.globals.dataPoints+1,x1:0,y1:s,x2:u,y2:l,parent:this.elgridLinesH}),l=s+=r.globals.gridHeight/r.globals.dataPoints}},{key:"renderGrid",value:function(){var e,t,r,n=this.w,i=n.globals,a=new C(this.ctx);this.elg=a.group({class:"apexcharts-grid"}),this.elgridLinesH=a.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=a.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=a.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),n.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var o=0;o<i.seriesYAxisMap.length&&i.ignoreYAxisIndexes.includes(o);)o++;o===i.seriesYAxisMap.length&&(o=0);var s,l=i.yAxisScale[o].result.length-1;return!i.isBarHorizontal||this.isRangeBar?(s=this.xaxisLabels.length,this.isRangeBar&&(l=i.labels.length,n.config.xaxis.tickAmount&&n.config.xaxis.labels.formatter&&(s=n.config.xaxis.tickAmount),(null===(e=i.yAxisScale)||void 0===e||null===(t=e[o])||void 0===t||null===(r=t.result)||void 0===r?void 0:r.length)>0&&"datetime"!==n.config.xaxis.type&&(s=i.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:s,tickAmount:l})):(s=l,l=i.xTickAmount,this._drawInvertedXYLines({xCount:s,tickAmount:l})),this.drawGridBands(s,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:i.gridWidth/s}}},{key:"drawGridBands",value:function(e,t){var r,n,i=this,a=this.w;if((null===(r=a.config.grid.row.colors)||void 0===r?void 0:r.length)>0&&function(e,r,n,o,s,l){for(var u=0,c=0;u<r;u++,c++)c>=a.config.grid.row.colors.length&&(c=0),i._drawGridBandRect({c:c,x1:0,y1:o,x2:s,y2:l,type:"row"}),o+=a.globals.gridHeight/t}(0,t,0,0,a.globals.gridWidth,a.globals.gridHeight/t),(null===(n=a.config.grid.column.colors)||void 0===n?void 0:n.length)>0){var o,s=a.globals.isBarHorizontal||"on"!==a.config.xaxis.tickPlacement||"category"!==a.config.xaxis.type&&!a.config.xaxis.convertedCatToNumeric?e:e-1;a.globals.isXNumeric&&(s=a.globals.xAxisScale.result.length-1);for(var l=a.globals.padHorizontal,u=a.globals.padHorizontal+a.globals.gridWidth/s,c=a.globals.gridHeight,d=0,h=0;d<e;d++,h++)h>=a.config.grid.column.colors.length&&(h=0),"datetime"===a.config.xaxis.type&&(l=this.xaxisLabels[d].position,u=((null===(o=this.xaxisLabels[d+1])||void 0===o?void 0:o.position)||a.globals.gridWidth)-this.xaxisLabels[d].position),this._drawGridBandRect({c:h,x1:l,y1:0,x2:u,y2:c,type:"column"}),l+=a.globals.gridWidth/s}}}]),e}(),Q=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.coreUtils=new A(this.ctx)}return o(e,[{key:"niceScale",value:function(e,t){var r,n,i,a,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=this.w,l=s.globals;l.isBarHorizontal?(r=s.config.xaxis,n=Math.max((l.svgWidth-100)/25,2)):(r=s.config.yaxis[o],n=Math.max((l.svgHeight-100)/15,2)),w.isNumber(n)||(n=10),i=void 0!==r.min&&null!==r.min,a=void 0!==r.max&&null!==r.min;var u=void 0!==r.stepSize&&null!==r.stepSize,c=void 0!==r.tickAmount&&null!==r.tickAmount,d=c?r.tickAmount:l.niceScaleDefaultTicks[Math.min(Math.round(n/2),l.niceScaleDefaultTicks.length-1)];if(l.isMultipleYAxis&&!c&&l.multiAxisTickAmount>0&&(d=l.multiAxisTickAmount,c=!0),d="dataPoints"===d?l.dataPoints-1:Math.abs(Math.round(d)),(e!==Number.MIN_VALUE||0!==t)&&(w.isNumber(e)||w.isNumber(t))&&(e!==Number.MIN_VALUE||t!==-Number.MAX_VALUE)||(e=w.isNumber(r.min)?r.min:0,t=w.isNumber(r.max)?r.max:e+d,l.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var h=t;t=e,e=h}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var f=[];d<1&&(d=1);var p=d,g=Math.abs(t-e);!i&&e>0&&e/g<.15&&(e=0,i=!0),!a&&t<0&&-t/g<.15&&(t=0,a=!0);var m=(g=Math.abs(t-e))/p,v=m,b=Math.floor(Math.log10(v)),x=Math.pow(10,b),y=Math.ceil(v/x);if(m=v=(y=l.niceScaleAllowedMagMsd[0===l.yValueDecimal?0:1][y])*x,l.isBarHorizontal&&r.stepSize&&"datetime"!==r.type?(m=r.stepSize,u=!0):u&&(m=r.stepSize),u&&r.forceNiceScale){var k=Math.floor(Math.log10(m));m*=Math.pow(10,b-k)}if(i&&a){var S=g/p;if(c){if(u){if(0!=w.mod(g,m)){var C=w.getGCD(m,S);m=S/C<10?C:S}else 0==w.mod(m,S)?m=S:(S=m,c=!1)}else m=S}else if(u)0==w.mod(g,m)?S=m:m=S;else if(0==w.mod(g,m))S=m;else{S=g/(p=Math.ceil(g/m));var A=w.getGCD(g,m);g/A<n&&(S=A),m=S}p=Math.round(g/m)}else{if(i||a){if(a){if(c)e=t-m*p;else{var E=e;Math.abs(t-(e=m*Math.floor(e/m)))/w.getGCD(g,m)>n&&(e=t-m*d,e+=m*Math.floor((E-e)/m))}}else if(i){if(c)t=e+m*p;else{var _=t;Math.abs((t=m*Math.ceil(t/m))-e)/w.getGCD(g,m)>n&&(t=e+m*d,t+=m*Math.ceil((_-t)/m))}}}else if(l.isMultipleYAxis&&c){var T=m*Math.floor(e/m),P=T+m*p;P<t&&(m*=2),P=t,g=Math.abs((t=(e=T)+m*p)-e),e>0&&e<Math.abs(P-t)&&(e=0,t=m*p),t<0&&-t<Math.abs(T-e)&&(t=0,e=-m*p)}else e=m*Math.floor(e/m),t=m*Math.ceil(t/m);g=Math.abs(t-e),m=w.getGCD(g,m),p=Math.round(g/m)}if(c||i||a||(p=Math.ceil((g-1e-11)/(m+1e-11)))>16&&w.getPrimeFactors(p).length<2&&p++,!c&&r.forceNiceScale&&0===l.yValueDecimal&&p>g&&(p=g,m=Math.round(g/p)),p>n&&(!c&&!u||r.forceNiceScale)){var O=w.getPrimeFactors(p),M=O.length-1,I=p;n:for(var L=0;L<M;L++)for(var R=0;R<=M-L;R++){for(var N=Math.min(R+L,M),z=I,D=1,F=R;F<=N;F++)D*=O[F];if((z/=D)<n){I=z;break n}}m=I===p?g:g/I,p=Math.round(g/m)}l.isMultipleYAxis&&0==l.multiAxisTickAmount&&0>l.ignoreYAxisIndexes.indexOf(o)&&(l.multiAxisTickAmount=p);var B=e-m,W=1e-11*m;do B+=m,f.push(w.stripNumber(B,7));while(t-B>W)return{result:f,niceMin:f[0],niceMax:f[f.length-1]}}},{key:"linearScale",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,a=Math.abs(t-e),o=[];if(e===t)return{result:o=[e],niceMin:o[0],niceMax:o[o.length-1]};"dataPoints"===(r=this._adjustTicksForSmallRange(r,n,a))&&(r=this.w.globals.dataPoints-1),i||(i=a/r),i=Math.round(10*(i+Number.EPSILON))/10,r===Number.MAX_VALUE&&(r=5,i=1);for(var s=e;r>=0;)o.push(s),s=w.preciseAddition(s,i),r-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));for(var n=[],i=Math.ceil(Math.log(t)/Math.log(r)+1),a=Math.floor(Math.log(e)/Math.log(r));a<i;a++)n.push(Math.pow(r,a));return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScale",value:function(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));for(var n=[],i=Math.log(t)/Math.log(r),a=Math.log(e)/Math.log(r),o=i-a,s=Math.round(o),l=o/s,u=0,c=a;u<s;u++,c+=l)n.push(Math.pow(r,c));return n.push(Math.pow(r,i)),{result:n,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,r){var n=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var i=Number(this.w.config.yaxis[t].labels.formatter(1));w.isNumber(i)&&0===this.w.globals.yValueDecimal&&(n=Math.ceil(r))}return n<e?n:e}},{key:"setYScaleForIndex",value:function(e,t,r){var n=this.w.globals,i=this.w.config,a=n.isBarHorizontal?i.xaxis:i.yaxis[e];void 0===n.yAxisScale[e]&&(n.yAxisScale[e]=[]);var o=Math.abs(r-t);a.logarithmic&&o<=5&&(n.invalidLogScale=!0),a.logarithmic&&o>5?(n.allSeriesCollapsed=!1,n.yAxisScale[e]=a.forceNiceScale?this.logarithmicScaleNice(t,r,a.logBase):this.logarithmicScale(t,r,a.logBase)):r!==-Number.MAX_VALUE&&w.isNumber(r)&&t!==Number.MAX_VALUE&&w.isNumber(t)?(n.allSeriesCollapsed=!1,n.yAxisScale[e]=this.niceScale(t,r,e)):n.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var r=this.w,n=r.globals,i=Math.abs(t-e);if(t!==-Number.MAX_VALUE&&w.isNumber(t)){var a=n.xTickAmount+1;i<10&&i>1&&(a=i),n.xAxisScale=this.linearScale(e,t,a,0,r.config.xaxis.stepSize)}else n.xAxisScale=this.linearScale(0,10,10);return n.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,r=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var n=r.seriesYAxisMap,i=r.minYArr,a=r.maxYArr;r.allSeriesCollapsed=!0,r.barGroups=[],n.forEach(function(n,o){var s=[];n.forEach(function(e){var r=t.series[e].group;0>s.indexOf(r)&&s.push(r)}),n.length>0?function(){var l,u,c=Number.MAX_VALUE,d=-Number.MAX_VALUE,h=c,f=d;if(t.chart.stacked)!function(){var e=Array(r.dataPoints).fill(0),i=[],a=[],p=[];s.forEach(function(){i.push(e.map(function(){return Number.MIN_VALUE})),a.push(e.map(function(){return Number.MIN_VALUE})),p.push(e.map(function(){return Number.MIN_VALUE}))});for(var g=0;g<n.length;g++)(function(e){!l&&t.series[n[e]].type&&(l=t.series[n[e]].type);var c=n[e];u=t.series[c].group?t.series[c].group:"axis-".concat(o),0>r.collapsedSeriesIndices.indexOf(c)&&0>r.ancillaryCollapsedSeriesIndices.indexOf(c)&&(r.allSeriesCollapsed=!1,s.forEach(function(e,n){if(t.series[c].group===e)for(var o=0;o<r.series[c].length;o++){var s=r.series[c][o];s>=0?a[n][o]+=s:p[n][o]+=s,i[n][o]+=s,h=Math.min(h,s),f=Math.max(f,s)}})),"bar"!==l&&"column"!==l||r.barGroups.push(u)})(g);l||(l=t.chart.type),"bar"===l||"column"===l?s.forEach(function(e,t){c=Math.min(c,Math.min.apply(null,p[t])),d=Math.max(d,Math.max.apply(null,a[t]))}):(s.forEach(function(e,t){h=Math.min(h,Math.min.apply(null,i[t])),f=Math.max(f,Math.max.apply(null,i[t]))}),c=h,d=f),c===Number.MIN_VALUE&&d===Number.MIN_VALUE&&(d=-Number.MAX_VALUE)}();else for(var p=0;p<n.length;p++){var g=n[p];c=Math.min(c,i[g]),d=Math.max(d,a[g]),0>r.collapsedSeriesIndices.indexOf(g)&&0>r.ancillaryCollapsedSeriesIndices.indexOf(g)&&(r.allSeriesCollapsed=!1)}void 0!==t.yaxis[o].min&&(c="function"==typeof t.yaxis[o].min?t.yaxis[o].min(c):t.yaxis[o].min),void 0!==t.yaxis[o].max&&(d="function"==typeof t.yaxis[o].max?t.yaxis[o].max(d):t.yaxis[o].max),r.barGroups=r.barGroups.filter(function(e,t,r){return r.indexOf(e)===t}),e.setYScaleForIndex(o,c,d),n.forEach(function(e){i[e]=r.yAxisScale[o].niceMin,a[e]=r.yAxisScale[o].niceMax})}():e.setYScaleForIndex(o,0,-Number.MAX_VALUE)})}}]),e}(),J=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.scales=new Q(t)}return o(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w.config,a=this.w.globals,o=-Number.MAX_VALUE,s=Number.MIN_VALUE;null===n&&(n=e+1);var l=a.series,u=l,c=l;"candlestick"===i.chart.type?(u=a.seriesCandleL,c=a.seriesCandleH):"boxPlot"===i.chart.type?(u=a.seriesCandleO,c=a.seriesCandleC):a.isRangeData&&(u=a.seriesRangeStart,c=a.seriesRangeEnd);var d=!1;if(a.seriesX.length>=n){var h,f=null===(h=a.brushSource)||void 0===h?void 0:h.w.config.chart.brush;(i.chart.zoom.enabled&&i.chart.zoom.autoScaleYaxis||null!=f&&f.enabled&&null!=f&&f.autoScaleYaxis)&&(d=!0)}for(var p=e;p<n;p++){a.dataPoints=Math.max(a.dataPoints,l[p].length);var g=i.series[p].type;a.categoryLabels.length&&(a.dataPoints=a.categoryLabels.filter(function(e){return void 0!==e}).length),a.labels.length&&"datetime"!==i.xaxis.type&&0!==a.series.reduce(function(e,t){return e+t.length},0)&&(a.dataPoints=Math.max(a.dataPoints,a.labels.length));var m=0,v=l[p].length-1;if(d){if(i.xaxis.min)for(;m<v&&a.seriesX[p][m]<i.xaxis.min;m++);if(i.xaxis.max)for(;v>m&&a.seriesX[p][v]>i.xaxis.max;v--);}for(var b=m;b<=v&&b<a.series[p].length;b++){var x=l[p][b];if(null!==x&&w.isNumber(x)){switch(void 0!==c[p][b]&&(o=Math.max(o,c[p][b]),t=Math.min(t,c[p][b])),void 0!==u[p][b]&&(t=Math.min(t,u[p][b]),r=Math.max(r,u[p][b])),g){case"candlestick":void 0!==a.seriesCandleC[p][b]&&(o=Math.max(o,a.seriesCandleH[p][b]),t=Math.min(t,a.seriesCandleL[p][b]));break;case"boxPlot":void 0!==a.seriesCandleC[p][b]&&(o=Math.max(o,a.seriesCandleC[p][b]),t=Math.min(t,a.seriesCandleO[p][b]))}g&&"candlestick"!==g&&"boxPlot"!==g&&"rangeArea"!==g&&"rangeBar"!==g&&(o=Math.max(o,a.series[p][b]),t=Math.min(t,a.series[p][b])),r=o,a.seriesGoals[p]&&a.seriesGoals[p][b]&&Array.isArray(a.seriesGoals[p][b])&&a.seriesGoals[p][b].forEach(function(e){s!==Number.MIN_VALUE&&(t=s=Math.min(s,e.value)),r=o=Math.max(o,e.value)}),w.isFloat(x)&&(x=w.noExponents(x),a.yValueDecimal=Math.max(a.yValueDecimal,x.toString().split(".")[1].length)),s>u[p][b]&&u[p][b]<0&&(s=u[p][b])}else a.hasNullValues=!0}"bar"!==g&&"column"!==g||(s<0&&o<0&&(o=0,r=Math.max(r,0)),s===Number.MIN_VALUE&&(s=0,t=Math.min(t,0)))}return"rangeBar"===i.chart.type&&a.seriesRangeStart.length&&a.isBarHorizontal&&(s=t),"bar"===i.chart.type&&(s<0&&o<0&&(o=0),s===Number.MIN_VALUE&&(s=0)),{minY:s,maxY:o,lowestY:t,highestY:r}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var r,n=Number.MAX_VALUE;if(e.isMultipleYAxis){n=Number.MAX_VALUE;for(var i=0;i<e.series.length;i++)r=this.getMinYMaxY(i),e.minYArr[i]=r.lowestY,e.maxYArr[i]=r.highestY,n=Math.min(n,r.lowestY)}return r=this.getMinYMaxY(0,n,null,e.series.length),"bar"===t.chart.type?(e.minY=r.minY,e.maxY=r.maxY):(e.minY=r.lowestY,e.maxY=r.highestY),n=r.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"!==t.chart.type&&"area"!==t.chart.type&&"scatter"!==t.chart.type&&"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type&&("rangeBar"!==t.chart.type||e.isBarHorizontal)?e.minY=e.minY!==Number.MIN_VALUE?Math.min(r.minY,e.minY):r.minY:e.minY===Number.MIN_VALUE&&n!==-Number.MAX_VALUE&&n!==e.maxY&&(e.minY=n),t.yaxis.forEach(function(t,r){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[r]=t.max:"function"==typeof t.max&&(e.maxYArr[r]=t.max(e.isMultipleYAxis?e.maxYArr[r]:e.maxY)),e.maxY=e.maxYArr[r]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[r]=t.min:"function"==typeof t.min&&(e.minYArr[r]=t.min(e.isMultipleYAxis?e.minYArr[r]===Number.MIN_VALUE?0:e.minYArr[r]:e.minY)),e.minY=e.minYArr[r])}),e.isBarHorizontal&&["min","max"].forEach(function(r){void 0!==t.xaxis[r]&&"number"==typeof t.xaxis[r]&&("min"===r?e.minY=t.xaxis[r]:e.maxY=t.xaxis[r])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=n):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(function(r){switch(r.type||t.chart.type){case"bar":case"column":e.barGroups.push(r.group);break;case"line":e.lineGroups.push(r.group);break;case"area":e.areaGroups.push(r.group)}}),e.barGroups=e.barGroups.filter(function(e,t,r){return r.indexOf(e)===t}),e.lineGroups=e.lineGroups.filter(function(e,t,r){return r.indexOf(e)===t}),e.areaGroups=e.areaGroups.filter(function(e,t,r){return r.indexOf(e)===t}),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,r="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var r=0;r<e.labels[t].length;r++)null!==e.labels[t][r]&&w.isNumber(e.labels[t][r])&&(e.maxX=Math.max(e.maxX,e.labels[t][r]),e.initialMaxX=Math.max(e.maxX,e.labels[t][r]),e.minX=Math.min(e.minX,e.labels[t][r]),e.initialMinX=Math.min(e.minX,e.labels[t][r]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var n=10;if(void 0===t.xaxis.tickAmount)n=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(n=e.dataPoints-1),n>e.dataPoints&&0!==e.dataPoints&&(n=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(e.series.length>1&&(n=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var i=e.maxX-e.minX;i<30&&(n=i-1)}}else n=t.xaxis.tickAmount;if(e.xTickAmount=n,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE){if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var a=[],o=e.minX-1;o<e.maxX;o++)a.push(o+1);e.xAxisScale={result:a,niceMin:a[0],niceMax:a[a.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX)}else e.xAxisScale=this.scales.linearScale(0,n,n,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,n-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());r&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ){for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var r=0;r<e.seriesZ[t].length;r++)null!==e.seriesZ[t][r]&&w.isNumber(e.seriesZ[t][r])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][r]),e.minZ=Math.min(e.minZ,e.seriesZ[t][r]))}}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var r=new T(this.ctx);if("datetime"===t.xaxis.type){var n=r.getDate(e.minX);t.xaxis.labels.datetimeUTC?n.setUTCDate(n.getUTCDate()-2):n.setDate(n.getDate()-2),e.minX=new Date(n).getTime();var i=r.getDate(e.maxX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()+2):i.setDate(i.getDate()+2),e.maxX=new Date(i).getTime()}else"numeric"!==t.xaxis.type&&("category"!==t.xaxis.type||e.noLabelsProvided)||(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,r){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var n=t.slice();n.sort(function(e,t){return e-t}),n.forEach(function(t,r){if(r>0){var i=t-n[r-1];i>0&&(e.minXDiff=Math.min(i,e.minXDiff))}}),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var r=t.seriesGroups;r.length||(r=[this.w.globals.seriesNames.map(function(e){return e})]);var n={},i={};r.forEach(function(r){n[r]=[],i[r]=[],e.w.config.series.map(function(e,n){return r.indexOf(t.seriesNames[n])>-1?n:null}).filter(function(e){return null!==e}).forEach(function(a){for(var o,s,l,u,c=0;c<t.series[t.maxValsInArrayIndex].length;c++)void 0===n[r][c]&&(n[r][c]=0,i[r][c]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(o=e.w.config.series)||void 0===o||null===(s=o[a])||void 0===s?void 0:s.type)||"column"===(null===(l=e.w.config.series)||void 0===l||null===(u=l[a])||void 0===u?void 0:u.type)))&&null!==t.series[a][c]&&w.isNumber(t.series[a][c])&&(t.series[a][c]>0?n[r][c]+=parseFloat(t.series[a][c])+1e-4:i[r][c]+=parseFloat(t.series[a][c]))})}),Object.entries(n).forEach(function(e){var r=m(e,1)[0];n[r].forEach(function(e,a){t.maxY=Math.max(t.maxY,n[r][a]),t.minY=Math.min(t.minY,i[r][a])})})}}}]),e}(),ee=function(){function e(t,r){i(this,e),this.ctx=t,this.elgrid=r,this.w=t.w;var n=this.w;this.xaxisFontSize=n.config.xaxis.labels.style.fontSize,this.axisFontFamily=n.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=n.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===n.config.chart.type&&n.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===n.config.xaxis.position?n.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new O(t)}return o(e,[{key:"drawYaxis",value:function(e){var t=this.w,r=new C(this.ctx),n=t.config.yaxis[e].labels.style,i=n.fontSize,a=n.fontFamily,o=n.fontWeight,s=r.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return s;var l=r.group({class:"apexcharts-yaxis-texts-g"});s.add(l);var u=t.globals.yAxisScale[e].result.length-1,c=t.globals.gridHeight/u,d=t.globals.yLabelFormatters[e],h=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var f=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?f=0:"heatmap"===t.config.chart.type&&(f-=c/2),f+=parseInt(i,10)/3;for(var p=u;p>=0;p--){var g=d(h[p],p,t),m=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(m*=-1);var v=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),b=this.axesUtils.getYAxisForeColor(n.colors,e),x=Array.isArray(b)?b[p]:b,y=w.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(e){return e.textContent}),k=r.drawText({x:m,y:f,text:y.includes(g)&&!t.config.yaxis[e].labels.showDuplicates?"":g,textAnchor:v,fontSize:i,fontFamily:a,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:x,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(n.cssClass)});l.add(k),this.addTooltip(k,g),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(r,k,firstLabel,t.config.yaxis[e].labels.rotate),f+=c}}return this.addYAxisTitle(r,s,e),this.addAxisBorder(r,s,e,u,c),s}},{key:"getTextAnchor",value:function(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var r=document.createElementNS(this.w.globals.SVGNS,"title");r.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(r)}},{key:"rotateLabel",value:function(e,t,r,n){var i=e.rotateAroundCenter(r.node),a=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(n," ").concat(i.x," ").concat(a.y,")"))}},{key:"addYAxisTitle",value:function(e,t,r){var n=this.w;if(void 0!==n.config.yaxis[r].title.text){var i=e.group({class:"apexcharts-yaxis-title"}),a=n.config.yaxis[r].opposite?n.globals.translateYAxisX[r]:0,o=e.drawText({x:a,y:n.globals.gridHeight/2+n.globals.translateY+n.config.yaxis[r].title.offsetY,text:n.config.yaxis[r].title.text,textAnchor:"end",foreColor:n.config.yaxis[r].title.style.color,fontSize:n.config.yaxis[r].title.style.fontSize,fontWeight:n.config.yaxis[r].title.style.fontWeight,fontFamily:n.config.yaxis[r].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(n.config.yaxis[r].title.style.cssClass)});i.add(o),t.add(i)}}},{key:"addAxisBorder",value:function(e,t,r,n,i){var a=this.w,o=a.config.yaxis[r].axisBorder,s=31+o.offsetX;if(a.config.yaxis[r].opposite&&(s=-31-o.offsetX),o.show){var l=e.drawLine(s,a.globals.translateY+o.offsetY-2,s,a.globals.gridHeight+a.globals.translateY+o.offsetY+2,o.color,0,o.width);t.add(l)}a.config.yaxis[r].axisTicks.show&&this.axesUtils.drawYAxisTicks(s,n,o,a.config.yaxis[r].axisTicks,r,i,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,r=new C(this.ctx),n=r.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=r.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});n.add(i);var a=t.globals.yAxisScale[e].result.length-1,o=t.globals.gridWidth/a+.1,s=o+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,u=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),c=t.globals.timescaleLabels;if(c.length>0&&(this.xaxisLabels=c.slice(),a=(u=c.slice()).length),t.config.xaxis.labels.show)for(var d=c.length?0:a;c.length?d<c.length:d>=0;c.length?d++:d--){var h=l(u[d],d,t),f=t.globals.gridWidth+t.globals.padHorizontal-(s-o+t.config.xaxis.labels.offsetX);if(c.length){var p=this.axesUtils.getLabel(u,c,f,d,this.drawnLabels,this.xaxisFontSize);f=p.x,h=p.text,this.drawnLabels.push(p.text),0===d&&t.globals.skipFirstTimelinelabel&&(h=""),d===u.length-1&&t.globals.skipLastTimelinelabel&&(h="")}var g=r.drawText({x:f,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:h,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(t.config.xaxis.labels.style.cssClass)});i.add(g),g.tspan(h),this.addTooltip(g,h),s+=o}return this.inversedYAxisTitleText(n),this.inversedYAxisBorder(n),n}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,r=new C(this.ctx),n=t.config.xaxis.axisBorder;if(n.show){var i=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(i-=15);var a=r.drawLine(t.globals.padHorizontal+i+n.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,n.color,0,n.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(a):e.add(a)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,r=new C(this.ctx);if(void 0!==t.config.xaxis.title.text){var n=r.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=r.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(t.config.xaxis.title.style.cssClass)});n.add(i),e.add(n)}}},{key:"yAxisTitleRotate",value:function(e,t){var r=this.w,n=new C(this.ctx),i=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),a=i?i.getBoundingClientRect():{width:0,height:0},o=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),s=o?o.getBoundingClientRect():{width:0,height:0};if(o){var l=this.xPaddingForYAxisTitle(e,a,s,t);o.setAttribute("x",l.xPos-(t?10:0));var u=n.rotateAroundCenter(o);o.setAttribute("transform","rotate(".concat(t?-1*r.config.yaxis[e].title.rotate:r.config.yaxis[e].title.rotate," ").concat(u.x," ").concat(u.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,r,n){var i=this.w,a=0,o=10;return void 0===i.config.yaxis[e].title.text||e<0?{xPos:a,padd:0}:(n?a=t.width+i.config.yaxis[e].title.offsetX+r.width/2+o/2:(a=-1*t.width+i.config.yaxis[e].title.offsetX+o/2+r.width/2,i.globals.isBarHorizontal&&(o=25,a=-1*t.width-i.config.yaxis[e].title.offsetX-o)),{xPos:a,padd:o})}},{key:"setYAxisXPosition",value:function(e,t){var r=this.w,n=0,i=0,a=18,o=1;r.config.yaxis.length>1&&(this.multipleYs=!0),r.config.yaxis.forEach(function(s,l){var u=r.globals.ignoreYAxisIndexes.includes(l)||!s.show||s.floating||0===e[l].width,c=e[l].width+t[l].width;s.opposite?r.globals.isBarHorizontal?(i=r.globals.gridWidth+r.globals.translateX-1,r.globals.translateYAxisX[l]=i-s.labels.offsetX):(i=r.globals.gridWidth+r.globals.translateX+o,u||(o+=c+20),r.globals.translateYAxisX[l]=i-s.labels.offsetX+20):(n=r.globals.translateX-a,u||(a+=c+20),r.globals.translateYAxisX[l]=n+s.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;w.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(t,r){var n=e.config.yaxis[r];if(n&&!n.floating&&void 0!==n.labels.align){var i=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-texts-g")),a=w.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(r,"'] .apexcharts-yaxis-label"))),o=i.getBoundingClientRect();a.forEach(function(e){e.setAttribute("text-anchor",n.labels.align)}),"left"!==n.labels.align||n.opposite?"center"===n.labels.align?i.setAttribute("transform","translate(".concat(o.width/2*(n.opposite?1:-1),", 0)")):"right"===n.labels.align&&n.opposite&&i.setAttribute("transform","translate(".concat(o.width,", 0)")):i.setAttribute("transform","translate(-".concat(o.width,", 0)"))}})}}]),e}(),et=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.documentEvent=w.bind(this.documentEvent,this)}return o(e,[{key:"addEventListener",value:function(e,t){var r=this.w;r.globals.events.hasOwnProperty(e)?r.globals.events[e].push(t):r.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var r=this.w;if(r.globals.events.hasOwnProperty(e)){var n=r.globals.events[e].indexOf(t);-1!==n&&r.globals.events[e].splice(n,1)}}},{key:"fireEvent",value:function(e,t){var r=this.w;if(r.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var n=r.globals.events[e],i=n.length,a=0;a<i;a++)n[a].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,r=this.ctx,n=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(e){n.addEventListener(e,function(e){var n=Object.assign({},t,{seriesIndex:t.globals.axisCharts?t.globals.capturedSeriesIndex:0,dataPointIndex:t.globals.capturedDataPointIndex});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,r,n):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,r,n):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,r,n),r.ctx.events.fireEvent("click",[e,r,n]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(r){t.globals.dom.baseEl.addEventListener(r,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,r=e.target.className;if("click"===e.type){var n=t.globals.dom.baseEl.querySelector(".apexcharts-menu");n&&n.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==r&&n.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),er=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var r=t.filter(function(t){return t.name===e})[0];if(!r)throw Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var n=w.extend(L,r);this.w.globals.locale=n.options}}]),e}(),en=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawAxis",value:function(e,t){var r,n,i=this,a=this.w.globals,o=this.w.config,s=new Z(this.ctx,t),l=new ee(this.ctx,t);a.axisCharts&&"radar"!==e&&(a.isBarHorizontal?(n=l.drawYaxisInversed(0),r=s.drawXaxisInversed(0),a.dom.elGraphical.add(r),a.dom.elGraphical.add(n)):(r=s.drawXaxis(),a.dom.elGraphical.add(r),o.yaxis.map(function(e,t){if(-1===a.ignoreYAxisIndexes.indexOf(t)&&(n=l.drawYaxis(t),a.dom.Paper.add(n),"back"===i.w.config.grid.position)){var r=a.dom.Paper.children()[1];r.remove(),a.dom.Paper.add(r)}})))}}]),e}(),ei=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new C(this.ctx),r=new S(this.ctx),n=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,a=e.config.xaxis.crosshairs.fill.type,o=n.colorFrom,s=n.colorTo,l=n.opacityFrom,u=n.opacityTo,c=n.stops,d=i.enabled,h=i.left,f=i.top,p=i.blur,g=i.color,m=i.opacity,v=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===a&&(v=t.drawGradient("vertical",o,s,l,u,null,c,null));var b=t.drawRect();1===e.config.xaxis.crosshairs.width&&(b=t.drawLine());var x=e.globals.gridHeight;(!w.isNumber(x)||x<0)&&(x=0);var y=e.config.xaxis.crosshairs.width;(!w.isNumber(y)||y<0)&&(y=0),b.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:x,width:y,height:x,fill:v,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),d&&(b=r.dropShadow(b,{left:h,top:f,blur:p,color:g,opacity:m})),e.globals.dom.elGraphical.add(b)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new C(this.ctx),r=e.config.yaxis[0].crosshairs,n=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var i=t.drawLine(-n,0,e.globals.gridWidth+n,0,r.stroke.color,r.stroke.dashArray,r.stroke.width);i.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(i)}var a=t.drawLine(-n,0,e.globals.gridWidth+n,0,r.stroke.color,0,0);a.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(a)}}]),e}(),ea=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,r=this.w,n=r.config;if(0!==n.responsive.length){var i=n.responsive.slice();i.sort(function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0}).reverse();var a=new B({}),o=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=i[0].breakpoint,o=window.innerWidth>0?window.innerWidth:screen.width;if(o>n){var s=w.clone(r.globals.initialConfig);s.series=w.clone(r.config.series);var l=A.extendArrayProps(a,s,r);e=w.extend(l,e),e=w.extend(r.config,e),t.overrideResponsiveOptions(e)}else for(var u=0;u<i.length;u++)o<i[u].breakpoint&&(e=A.extendArrayProps(a,i[u].options,r),e=w.extend(r.config,e),t.overrideResponsiveOptions(e))};if(e){var s=A.extendArrayProps(a,e,r);s=w.extend(r.config,s),o(s=w.extend(s,e))}else o({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new B(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),eo=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return o(e,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,r=e.plotOptions;return"treemap"===t.type&&r.treemap&&r.treemap.distributed||"heatmap"===t.type&&r.heatmap&&r.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,r=e.plotOptions;return r.bar&&r.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new w;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode));var r=v(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(r),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var n=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],n),this.applyDataLabelsColors(n),this.applyRadarPolygonsColors(),this.applyMarkersColors(n)}},{key:"getColors",value:function(e){var t=this,r=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,r.config.series.map(function(n,i){var a=e[i]||e[0];return"function"==typeof a?a({value:r.globals.axisCharts?r.globals.series[i][0]||0:r.globals.series[i],seriesIndex:i,dataPointIndex:i,w:t.w}):a})):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach(function(e,r){e&&(t[r]=e)})}},{key:"getMonochromeColors",value:function(e,t,r){var n=e.color,i=e.shadeIntensity,a=e.shadeTo,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,s=1/(o/i),l=0;return Array.from({length:o},function(){var e="dark"===a?r.shadeColor(-1*l,n):r.shadeColor(l,n);return l+=s,e})}},{key:"applyColorTypes",value:function(e,t){var r=this,n=this.w;e.forEach(function(e){n.globals[e].colors=void 0===n.config[e].colors?r.isColorFn?n.config.colors:t:n.config[e].colors.slice(),r.pushExtraColors(n.globals[e].colors)})}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#424242":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,i=t||n.globals.series.length;if(null===r&&(r=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===n.config.chart.type&&n.config.plotOptions.heatmap&&n.config.plotOptions.heatmap.colorScale.inverse),r&&n.globals.series.length&&(i=n.globals.series[n.globals.maxValsInArrayIndex].length*n.globals.series.length),e.length<i)for(var a=i-e.length,o=0;o<a;o++)e.push(e[o])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,r="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",n="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=n,e.theme.palette=r,e}},{key:"predefined",value:function(){var e={palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3f51b5","#03a9f4","#4caf50","#f9ce1d","#FF9800"],palette3:["#33b2df","#546E7A","#d4526e","#13d8aa","#A5978B"],palette4:["#4ecdc4","#c7f464","#81D4FA","#fd6a6a","#546E7A"],palette5:["#2b908f","#f9a3a4","#90ee7e","#fa4443","#69d2e7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"],default:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"]};return e[this.w.config.theme.palette]||e.default}}]),e}(),es=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,r="title"===e?t.config.title:t.config.subtitle,n=t.globals.svgWidth/2,i=r.offsetY,a="middle";if("left"===r.align?(n=10,a="start"):"right"===r.align&&(n=t.globals.svgWidth-10,a="end"),n+=r.offsetX,i=i+parseInt(r.style.fontSize,10)+r.margin/2,void 0!==r.text){var o=new C(this.ctx).drawText({x:n,y:i,text:r.text,textAnchor:a,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,fontWeight:r.style.fontWeight,foreColor:r.style.color,opacity:1});o.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(o)}}}]),e}(),el=function(){function e(t){i(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,r=0,n=0,i="title"===e?t.config.title.floating:t.config.subtitle.floating,a=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==a&&!i){var o=a.getBoundingClientRect();r=o.width,n=t.globals.axisCharts?o.height+5:o.height}return{width:r,height:n}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var r=Object.assign({},w.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:r.x,y:r.y,height:r.height,width:0===r.height?0:r.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,r=[];t.config.series.forEach(function(i,a){i.data.forEach(function(i,o){var s;s=t.globals.series[a][o],n=t.config.dataLabels.formatter(s,{ctx:e.dCtx.ctx,seriesIndex:a,dataPointIndex:o,w:t}),r.push(n)})});var n=w.getLargestStringFromArr(r),i=new C(this.dCtx.ctx),a=t.config.dataLabels.style,o=i.getTextRects(n,parseInt(a.fontSize),a.fontFamily);return{width:1.05*o.width,height:o.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var r=e;if(this.w.globals.isMultiLineX){var n=t.map(function(e,t){return Array.isArray(e)?e.length:1}),i=Math.max.apply(Math,v(n));r=t[n.indexOf(i)]}return r}}]),e}(),eu=function(){function e(t){i(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,r=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===r.length&&(r=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var n=this.getxAxisTimeScaleLabelsCoords();e={width:n.width,height:n.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var i=t.globals.xLabelFormatter,a=w.getLargestStringFromArr(r),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,r);t.globals.isBarHorizontal&&(o=a=t.globals.yAxisScale[0].result.reduce(function(e,t){return e.length>t.length?e:t},0));var s=new P(this.dCtx.ctx),l=a;a=s.xLabelFormat(i,a,l,{i:void 0,dateFormatter:new T(this.dCtx.ctx).formatDate,w:t}),o=s.xLabelFormat(i,o,l,{i:void 0,dateFormatter:new T(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===a||""===String(a).trim())&&(o=a="1");var u=new C(this.dCtx.ctx),c=u.getTextRects(a,t.config.xaxis.labels.style.fontSize),d=c;if(a!==o&&(d=u.getTextRects(o,t.config.xaxis.labels.style.fontSize)),(e={width:c.width>=d.width?c.width:d.width,height:c.height>=d.height?c.height:d.height}).width*r.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var h=function(e){return u.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};c=h(a),a!==o&&(d=h(o)),e.height=(c.height>d.height?c.height:d.height)/1.5,e.width=c.width>d.width?c.width:d.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var r,n=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,i=t.globals.groups.map(function(e){return e.title}),a=w.getLargestStringFromArr(i),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(a,i),s=new C(this.dCtx.ctx),l=s.getTextRects(a,n),u=l;return a!==o&&(u=s.getTextRects(o,n)),r={width:l.width>=u.width?l.width:u.width,height:l.height>=u.height?l.height:u.height},t.config.xaxis.labels.show||(r={width:0,height:0}),{width:r.width,height:r.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,r=0;if(void 0!==e.config.xaxis.title.text){var n=new C(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=n.width,r=n.height}return{width:t,height:r}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var r=this.dCtx.timescaleLabels.map(function(e){return e.value}),n=r.reduce(function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t},0);return 1.05*(e=new C(this.dCtx.ctx).getTextRects(n,t.config.xaxis.labels.style.fontSize)).width*r.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,r=this.w,n=r.globals,i=r.config,a=i.xaxis.type,o=e.width;n.skipLastTimelinelabel=!1,n.skipFirstTimelinelabel=!1;var s=r.config.yaxis[0].opposite&&r.globals.isBarHorizontal,l=function(e,s){i.yaxis.length>1&&-1!==n.collapsedSeriesIndices.indexOf(s)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var s=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+o/1.75-t.dCtx.yAxisWidthRight,u=s.position-o/1.75+t.dCtx.yAxisWidthLeft,c="right"===r.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>n.svgWidth-n.translateX-c&&(n.skipLastTimelinelabel=!0),u<-(e.show&&!e.floating||"bar"!==i.chart.type&&"candlestick"!==i.chart.type&&"rangeBar"!==i.chart.type&&"boxPlot"!==i.chart.type?10:o/1.75)&&(n.skipFirstTimelinelabel=!0)}else"datetime"===a?t.dCtx.gridPad.right<o&&!n.rotateXLabels&&(n.skipLastTimelinelabel=!0):"datetime"===a||!(t.dCtx.gridPad.right<o/2-t.dCtx.yAxisWidthRight)||n.rotateXLabels||r.config.xaxis.labels.trim||(t.dCtx.xPadRight=o/2+1)}(e)};i.yaxis.forEach(function(e,r){s?(t.dCtx.gridPad.left<o&&(t.dCtx.xPadLeft=o/2+1),t.dCtx.xPadRight=o/2+1):l(e,r)})}}]),e}(),ec=function(){function e(t){i(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,r=[],n=10,i=new O(this.dCtx.ctx);return t.config.yaxis.map(function(a,o){var s={seriesIndex:o,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[o],u=0;if(!i.isYAxisHidden(o)&&a.labels.show&&void 0!==a.labels.minWidth&&(u=a.labels.minWidth),!i.isYAxisHidden(o)&&a.labels.show&&l.result.length){var c=t.globals.yLabelFormatters[o],d=l.niceMin===Number.MIN_VALUE?0:l.niceMin,h=l.result.reduce(function(e,t){var r,n;return(null===(r=String(c(e,s)))||void 0===r?void 0:r.length)>(null===(n=String(c(t,s)))||void 0===n?void 0:n.length)?e:t},d),f=h=c(h,s);if(void 0!==h&&0!==h.length||(h=l.niceMax),t.globals.isBarHorizontal){n=0;var p=t.globals.labels.slice();h=c(h=w.getLargestStringFromArr(p),{seriesIndex:o,dataPointIndex:-1,w:t}),f=e.dCtx.dimHelpers.getLargestStringFromMultiArr(h,p)}var g=new C(e.dCtx.ctx),m="rotate(".concat(a.labels.rotate," 0 0)"),v=g.getTextRects(h,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1),b=v;h!==f&&(b=g.getTextRects(f,a.labels.style.fontSize,a.labels.style.fontFamily,m,!1)),r.push({width:(u>b.width||u>v.width?u:b.width>v.width?b.width:v.width)+n,height:b.height>v.height?b.height:v.height})}else r.push({width:0,height:0})}),r}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,r=[];return t.config.yaxis.map(function(t,n){if(t.show&&void 0!==t.title.text){var i=new C(e.dCtx.ctx),a="rotate(".concat(t.title.rotate," 0 0)"),o=i.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,a,!1);r.push({width:o.width,height:o.height})}else r.push({width:0,height:0})}),r}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,r=0,n=0,i=e.globals.yAxisScale.length>1?10:0,a=new O(this.dCtx.ctx),o=function(o,s){var l=e.config.yaxis[s].floating,u=0;o.width>0&&!l?(u=o.width+i,e.globals.ignoreYAxisIndexes.indexOf(s)>-1&&(u=u-o.width-i)):u=l||a.isYAxisHidden(s)?0:5,e.config.yaxis[s].opposite?n+=u:r+=u,t+=u};return e.globals.yLabelsCoords.map(function(e,t){o(e,t)}),e.globals.yTitleCoords.map(function(e,t){o(e,t)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=r,this.dCtx.yAxisWidthRight=n,t}}]),e}(),ed=function(){function e(t){i(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,r=t.config,n=t.globals;if(n.noData||n.collapsedSeries.length+n.ancillaryCollapsedSeries.length===r.series.length)return 0;var i=function(e){return["bar","rangeBar","candlestick","boxPlot"].includes(e)},a=r.chart.type,o=0,s=i(a)?r.series.length:1;n.comboBarCount>0&&(s=n.comboBarCount),n.collapsedSeries.forEach(function(e){i(e.type)&&(s-=1)}),r.chart.stacked&&(s=1);var l=i(a)||n.comboBarCount>0,u=Math.abs(n.initialMaxX-n.initialMinX);if(l&&n.isXNumeric&&!n.isBarHorizontal&&s>0&&0!==u){u<=3&&(u=n.dataPoints);var c=u/e,d=n.minXDiff&&n.minXDiff/c>0?n.minXDiff/c:0;d>e/2&&(d/=2),(o=d*parseInt(r.plotOptions.bar.columnWidth,10)/100)<1&&(o=1),n.barPadForNumericAxis=o}return o}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,r=t.globals,n=this.dCtx.isSparkline||!r.axisCharts?0:10;["title","subtitle"].forEach(function(i){void 0!==t.config[i].text?n+=t.config[i].margin:n+=e.dCtx.isSparkline||!r.axisCharts?0:5}),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||r.axisCharts||(n+=10);var i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),a=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");r.gridHeight-=i.height+a.height+n,r.translateY+=i.height+a.height+n}},{key:"setGridXPosForDualYAxis",value:function(e,t){var r=this.w,n=new O(this.dCtx.ctx);r.config.yaxis.forEach(function(i,a){-1!==r.globals.ignoreYAxisIndexes.indexOf(a)||i.floating||n.isYAxisHidden(a)||(i.opposite&&(r.globals.translateX-=t[a].width+e[a].width+parseInt(i.labels.style.fontSize,10)/1.2+12),r.globals.translateX<2&&(r.globals.translateX=2))})}}]),e}(),eh=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new el(this),this.dimYAxis=new ec(this),this.dimXAxis=new eu(this),this.dimGrid=new ed(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return o(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,r=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var n=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,v(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(t){var r=m(t,2),n=r[0],i=r[1];e.gridPad[n]=Math.max(i,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(n/2,this.gridPad.top),this.gridPad.bottom=Math.max(n/2,this.gridPad.bottom)),r.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),r.gridHeight=r.gridHeight-this.gridPad.top-this.gridPad.bottom,r.gridWidth=r.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var i=this.dimGrid.gridPadForColumnsInNumericAxis(r.gridWidth);r.gridWidth=r.gridWidth-2*i,r.translateX=r.translateX+this.gridPad.left+this.xPadLeft+(i>0?i:0),r.translateY=r.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,r=t.globals,n=this.dimYAxis.getyAxisLabelsCoords(),i=this.dimYAxis.getyAxisTitleCoords();r.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(e,r){t.globals.yLabelsCoords.push({width:n[r].width,index:r}),t.globals.yTitleCoords.push({width:i[r].width,index:r})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var a=this.dimXAxis.getxAxisLabelsCoords(),o=this.dimXAxis.getxAxisGroupLabelsCoords(),s=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(a,s,o),r.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,r.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(r.rotateXLabels=!1,r.translateXAxisY=-(parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*1)),r.translateXAxisY=r.translateXAxisY+t.config.xaxis.labels.offsetY,r.translateXAxisX=r.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,u=this.xAxisHeight;r.xAxisLabelsHeight=this.xAxisHeight-s.height,r.xAxisGroupLabelsHeight=r.xAxisLabelsHeight-a.height,r.xAxisLabelsWidth=this.xAxisWidth,r.xAxisHeight=this.xAxisHeight;var c=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,u=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,u=0,c=0),this.isSparkline||"treemap"===t.config.chart.type||this.dimXAxis.additionalPaddingXLabels(a);var d=function(){r.translateX=l+e.datalabelsCoords.width,r.gridHeight=r.svgHeight-e.lgRect.height-u-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),r.gridWidth=r.svgWidth-l-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(c=r.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":r.translateY=c,d();break;case"top":r.translateY=this.lgRect.height+c,d();break;case"left":r.translateY=c,r.translateX=this.lgRect.width+l+this.datalabelsCoords.width,r.gridHeight=r.svgHeight-u-12,r.gridWidth=r.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":r.translateY=c,r.translateX=l+this.datalabelsCoords.width,r.gridHeight=r.svgHeight-u-12,r.gridWidth=r.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(i,n),new ee(this.ctx).setYAxisXPosition(n,i)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,r=e.config,n=0;e.config.legend.show&&!e.config.legend.floating&&(n=20);var i="pie"===r.chart.type||"polarArea"===r.chart.type||"donut"===r.chart.type?"pie":"radialBar",a=r.plotOptions[i].offsetY,o=r.plotOptions[i].offsetX;if(!r.legend.show||r.legend.floating){t.gridHeight=t.svgHeight;var s=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(s,t.gridHeight),t.translateY=a,void(t.translateX=o+(t.svgWidth-t.gridWidth)/2)}switch(r.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=a-10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+a+10,t.translateX=o+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-n,t.gridHeight="auto"!==r.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+this.lgRect.width+n;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-n-5,t.gridHeight="auto"!==r.chart.height?t.svgHeight:t.gridWidth,t.translateY=a,t.translateX=o+10;break;default:throw Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,r){var n=this.w,i=n.globals.hasXaxisGroups?2:1,a=r.height+e.height+t.height,o=n.globals.isMultiLineX?1.2:n.globals.LINE_HEIGHT_RATIO,s=n.globals.rotateXLabels?22:10,l=n.globals.rotateXLabels&&"bottom"===n.config.legend.position?10:0;this.xAxisHeight=a*o+i*s+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>n.config.xaxis.labels.maxHeight&&(this.xAxisHeight=n.config.xaxis.labels.maxHeight),n.config.xaxis.labels.minHeight&&this.xAxisHeight<n.config.xaxis.labels.minHeight&&(this.xAxisHeight=n.config.xaxis.labels.minHeight),n.config.xaxis.floating&&(this.xAxisHeight=0);var u=0,c=0;n.config.yaxis.forEach(function(e){u+=e.labels.minWidth,c+=e.labels.maxWidth}),this.yAxisWidth<u&&(this.yAxisWidth=u),this.yAxisWidth>c&&(this.yAxisWidth=c)}}]),e}(),ef=function(){function e(t){i(this,e),this.w=t.w,this.lgCtx=t}return o(e,[{key:"getLegendStyles",value:function(){var e,t,r,n=document.createElement("style");n.setAttribute("type","text/css");var i=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(r=t.chart)||void 0===r?void 0:r.nonce)||this.w.config.chart.nonce;i&&n.setAttribute("nonce",i);var a=document.createTextNode("\n .apexcharts-flip-y {\n transform: scaleY(-1) translateY(-100%);\n transform-origin: top;\n transform-box: fill-box;\n }\n .apexcharts-flip-x {\n transform: scaleX(-1);\n transform-origin: center;\n transform-box: fill-box;\n }\n .apexcharts-legend {\n display: flex;\n overflow: auto;\n padding: 0 10px;\n }\n .apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n flex-wrap: wrap\n }\n .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n flex-direction: column;\n bottom: 0;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n justify-content: flex-start;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n justify-content: center;\n }\n .apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n justify-content: flex-end;\n }\n .apexcharts-legend-series {\n cursor: pointer;\n line-height: normal;\n display: flex;\n align-items: center;\n }\n .apexcharts-legend-text {\n position: relative;\n font-size: 14px;\n }\n .apexcharts-legend-text *, .apexcharts-legend-marker * {\n pointer-events: none;\n }\n .apexcharts-legend-marker {\n position: relative;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n margin-right: 1px;\n }\n\n .apexcharts-legend-series.apexcharts-no-click {\n cursor: auto;\n }\n .apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n display: none !important;\n }\n .apexcharts-inactive-legend {\n opacity: 0.45;\n }");return n.appendChild(a),n}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){this.w.globals.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var r=this,n=this.w;if(n.globals.axisCharts||"radialBar"===n.config.chart.type){n.globals.resized=!0;var i=null,a=null;(n.globals.risingSeries=[],a=n.globals.axisCharts?parseInt((i=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']"))).getAttribute("data:realIndex"),10):parseInt((i=n.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']"))).getAttribute("rel"),10)-1,t)?[{cs:n.globals.collapsedSeries,csi:n.globals.collapsedSeriesIndices},{cs:n.globals.ancillaryCollapsedSeries,csi:n.globals.ancillaryCollapsedSeriesIndices}].forEach(function(e){r.riseCollapsedSeries(e.cs,e.csi,a)}):this.hideSeries({seriesEl:i,realIndex:a})}else{var o=n.globals.dom.Paper.select(" .apexcharts-series[rel='".concat(e+1,"'] path")),s=n.config.chart.type;if("pie"===s||"polarArea"===s||"donut"===s){var l=n.config.plotOptions.pie.donut.labels;new C(this.lgCtx.ctx).pathMouseDown(o.members[0],null),this.lgCtx.ctx.pie.printDataLabelsInner(o.members[0].node,l)}o.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,r=this.w,n=r.globals,i=w.clone(r.config.series);if(n.axisCharts){var a=r.config.yaxis[n.seriesYAxisReverseMap[t]],o={index:t,data:i[t].data.slice(),type:i[t].type||r.config.chart.type};if(a&&a.show&&a.showAlways)0>n.ancillaryCollapsedSeriesIndices.indexOf(t)&&(n.ancillaryCollapsedSeries.push(o),n.ancillaryCollapsedSeriesIndices.push(t));else if(0>n.collapsedSeriesIndices.indexOf(t)){n.collapsedSeries.push(o),n.collapsedSeriesIndices.push(t);var s=n.risingSeries.indexOf(t);n.risingSeries.splice(s,1)}}else n.collapsedSeries.push({index:t,data:i[t]}),n.collapsedSeriesIndices.push(t);return n.allSeriesCollapsed=n.collapsedSeries.length+n.ancillaryCollapsedSeries.length===r.config.series.length,this._getSeriesBasedOnCollapsedState(i)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,r=e.realIndex,n=this.w,i=this.getSeriesAfterCollapsing({realIndex:r}),a=t.childNodes,o=0;o<a.length;o++)a[o].classList.contains("apexcharts-series-markers-wrap")&&(a[o].classList.contains("apexcharts-hide")?a[o].classList.remove("apexcharts-hide"):a[o].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(i,n.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,r){var n=this.w,i=w.clone(n.config.series);if(e.length>0){for(var a=0;a<e.length;a++)e[a].index===r&&(n.globals.axisCharts?i[r].data=e[a].data.slice():i[r]=e[a].data,i[r].hidden=!1,e.splice(a,1),t.splice(a,1),n.globals.risingSeries.push(r));i=this._getSeriesBasedOnCollapsedState(i),this.lgCtx.ctx.updateHelpers._updateSeries(i,n.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,r=0;return t.globals.axisCharts?e.forEach(function(n,i){0>t.globals.collapsedSeriesIndices.indexOf(i)&&0>t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)||(e[i].data=[],r++)}):e.forEach(function(n,i){0>!t.globals.collapsedSeriesIndices.indexOf(i)&&(e[i]=0,r++)}),t.globals.allSeriesCollapsed=r===e.length,e}}]),e}(),ep=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new ef(this)}return o(e,[{key:"init",value:function(){var e=this.w,t=e.globals,r=e.config,n=r.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(n||!t.axisCharts)&&r.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===r.legend.position||"top"===r.legend.position?this.legendAlignHorizontal():"right"!==r.legend.position&&"left"!==r.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,r=e.fillcolor,n=this.w,i=document.createElement("span");i.classList.add("apexcharts-legend-marker");var a=n.config.legend.markers.shape||n.config.markers.shape,o=a;Array.isArray(a)&&(o=a[t]);var s=Array.isArray(n.config.legend.markers.size)?parseFloat(n.config.legend.markers.size[t]):parseFloat(n.config.legend.markers.size),l=Array.isArray(n.config.legend.markers.offsetX)?parseFloat(n.config.legend.markers.offsetX[t]):parseFloat(n.config.legend.markers.offsetX),u=Array.isArray(n.config.legend.markers.offsetY)?parseFloat(n.config.legend.markers.offsetY[t]):parseFloat(n.config.legend.markers.offsetY),c=Array.isArray(n.config.legend.markers.strokeWidth)?parseFloat(n.config.legend.markers.strokeWidth[t]):parseFloat(n.config.legend.markers.strokeWidth),d=i.style;if(d.height=2*(s+c)+"px",d.width=2*(s+c)+"px",d.left=l+"px",d.top=u+"px",n.config.legend.markers.customHTML)d.background="transparent",d.color=r[t],Array.isArray(n.config.legend.markers.customHTML)?n.config.legend.markers.customHTML[t]&&(i.innerHTML=n.config.legend.markers.customHTML[t]()):i.innerHTML=n.config.legend.markers.customHTML();else{var h=new Y(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(o),seriesIndex:t,strokeWidth:c,size:s}),f=SVG(i).size("100%","100%"),g=new C(this.ctx).drawMarker(0,0,p(p({},h),{},{pointFillColor:Array.isArray(r)?r[t]:h.pointFillColor,shape:o}));SVG.select(".apexcharts-legend-marker.apexcharts-marker").members.forEach(function(e){e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"}),f.add(g)}return i}},{key:"drawLegends",value:function(){var e=this.w,t=e.config.legend.fontFamily,r=e.globals.seriesNames,n=e.config.legend.markers.fillColors?e.config.legend.markers.fillColors.slice():e.globals.colors.slice();if("heatmap"===e.config.chart.type){var i=e.config.plotOptions.heatmap.colorScale.ranges;r=i.map(function(e){return e.name?e.name:e.from+" - "+e.to}),n=i.map(function(e){return e.color})}else this.isBarsDistributed&&(r=e.globals.labels.slice());e.config.legend.customLegendItems.length&&(r=e.config.legend.customLegendItems);for(var a=e.globals.legendFormatter,o=e.config.legend.inverseOrder,s=o?r.length-1:0;o?s>=0:s<=r.length-1;o?s--:s++){var l,u=a(r[s],{seriesIndex:s,w:e}),c=!1,d=!1;if(e.globals.collapsedSeries.length>0)for(var h=0;h<e.globals.collapsedSeries.length;h++)e.globals.collapsedSeries[h].index===s&&(c=!0);if(e.globals.ancillaryCollapsedSeriesIndices.length>0)for(var f=0;f<e.globals.ancillaryCollapsedSeriesIndices.length;f++)e.globals.ancillaryCollapsedSeriesIndices[f]===s&&(d=!0);var p=this.createLegendMarker({i:s,fillcolor:n});C.setAttrs(p,{rel:s+1,"data:collapsed":c||d}),(c||d)&&p.classList.add("apexcharts-inactive-legend");var g=document.createElement("div"),m=document.createElement("span");m.classList.add("apexcharts-legend-text"),m.innerHTML=Array.isArray(u)?u.join(" "):u;var v=e.config.legend.labels.useSeriesColors?e.globals.colors[s]:Array.isArray(e.config.legend.labels.colors)?null===(l=e.config.legend.labels.colors)||void 0===l?void 0:l[s]:e.config.legend.labels.colors;v||(v=e.config.chart.foreColor),m.style.color=v,m.style.fontSize=parseFloat(e.config.legend.fontSize)+"px",m.style.fontWeight=e.config.legend.fontWeight,m.style.fontFamily=t||e.config.chart.fontFamily,C.setAttrs(m,{rel:s+1,i:s,"data:default-text":encodeURIComponent(u),"data:collapsed":c||d}),g.appendChild(p),g.appendChild(m);var b=new A(this.ctx);!e.config.legend.showForZeroSeries&&0===b.getSeriesTotalByIndex(s)&&b.seriesHaveSameValues(s)&&!b.isSeriesNull(s)&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&g.classList.add("apexcharts-hidden-zero-series"),e.config.legend.showForNullSeries||b.isSeriesNull(s)&&-1===e.globals.collapsedSeriesIndices.indexOf(s)&&-1===e.globals.ancillaryCollapsedSeriesIndices.indexOf(s)&&g.classList.add("apexcharts-hidden-null-series"),e.globals.dom.elLegendWrap.appendChild(g),e.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(e.config.legend.horizontalAlign)),e.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+e.config.legend.position),g.classList.add("apexcharts-legend-series"),g.style.margin="".concat(e.config.legend.itemMargin.vertical,"px ").concat(e.config.legend.itemMargin.horizontal,"px"),e.globals.dom.elLegendWrap.style.width=e.config.legend.width?e.config.legend.width+"px":"",e.globals.dom.elLegendWrap.style.height=e.config.legend.height?e.config.legend.height+"px":"",C.setAttrs(g,{rel:s+1,seriesName:w.escapeString(r[s]),"data:collapsed":c||d}),(c||d)&&g.classList.add("apexcharts-inactive-legend"),e.config.legend.onItemClick.toggleDataSeries||g.classList.add("apexcharts-no-click")}e.globals.dom.elWrap.addEventListener("click",this.onLegendClick,!0),e.config.legend.onItemHover.highlightDataSeries&&0===e.config.legend.customLegendItems.length&&(e.globals.dom.elWrap.addEventListener("mousemove",this.onLegendHovered,!0),e.globals.dom.elWrap.addEventListener("mouseout",this.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var r=this.w,n=r.globals.dom.elLegendWrap,i=n.clientHeight,a=0,o=0;if("bottom"===r.config.legend.position)o=r.globals.svgHeight-Math.min(i,r.globals.svgHeight/2)-5;else if("top"===r.config.legend.position){var s=new eh(this.ctx),l=s.dimHelpers.getTitleSubtitleCoords("title").height,u=s.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(l>0?l-10:0)+(u>0?u-10:0)}n.style.position="absolute",a=a+e+r.config.legend.offsetX,o=o+t+r.config.legend.offsetY,n.style.left=a+"px",n.style.top=o+"px","right"===r.config.legend.position&&(n.style.left="auto",n.style.right=25+r.config.legend.offsetX+"px"),["width","height"].forEach(function(e){n.style[e]&&(n.style[e]=parseInt(r.config.legend[e],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=new eh(this.ctx),r=t.dimHelpers.getTitleSubtitleCoords("title"),n=t.dimHelpers.getTitleSubtitleCoords("subtitle"),i=0;"top"===e.config.legend.position&&(i=r.height+n.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,i)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),r=0;"left"===e.config.legend.position&&(r=20),"right"===e.config.legend.position&&(r=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(r,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,r=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(r){var n=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,n,this.w]),new G(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&r&&new G(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var r=parseInt(e.target.getAttribute("rel"),10)-1,n="true"===e.target.getAttribute("data:collapsed"),i=this.w.config.chart.events.legendClick;"function"==typeof i&&i(this.ctx,r,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,r,this.w]);var a=this.w.config.legend.markers.onClick;"function"==typeof a&&e.target.classList.contains("apexcharts-legend-marker")&&(a(this.ctx,r,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,r,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(r,n)}}}]),e}(),eg=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=r.globals.minX,this.maxX=r.globals.maxX}return o(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,r=function(){return document.createElement("div")},n=r();if(n.setAttribute("class","apexcharts-toolbar"),n.style.top=t.config.chart.toolbar.offsetY+"px",n.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(n),this.elZoom=r(),this.elZoomIn=r(),this.elZoomOut=r(),this.elPan=r(),this.elSelection=r(),this.elZoomReset=r(),this.elMenuIcon=r(),this.elMenu=r(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var i=0;i<this.t.customIcons.length;i++)this.elCustomIcons.push(r());var a=[],o=function(r,n,i){var o=r.toLowerCase();e.t[o]&&t.config.chart.zoom.enabled&&a.push({el:n,icon:"string"==typeof e.t[o]?e.t[o]:i,title:e.localeValues[r],class:"apexcharts-".concat(o,"-icon")})};o("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),o("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var s=function(r){e.t[r]&&t.config.chart[r].enabled&&a.push({el:"zoom"===r?e.elZoom:e.elSelection,icon:"string"==typeof e.t[r]?e.t[r]:"zoom"===r?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n <path d="M0 0h24v24H0V0z" fill="none"/>\n <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M0 0h24v24H0z" fill="none"/>\n <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===r?"selectionZoom":"selection"],class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-".concat(r,"-icon")})};s("zoom"),s("selection"),this.t.pan&&t.config.chart.zoom.enabled&&a.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n <defs>\n <path d="M0 0h24v24H0z" id="a"/>\n </defs>\n <clipPath id="b">\n <use overflow="visible" xlink:href="#a"/>\n </clipPath>\n <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:t.globals.isTouchDevice?"apexcharts-element-hidden":"apexcharts-pan-icon"}),o("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&a.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)a.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});a.forEach(function(e,t){e.index&&w.moveIndexInArray(a,t,e.index)});for(var u=0;u<a.length;u++)C.setAttrs(a[u].el,{class:a[u].class,title:a[u].title}),a[u].el.innerHTML=a[u].icon,n.appendChild(a[u].el);this._createHamburgerMenu(n),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),C.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],r=0;r<t.length;r++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[r].innerHTML=t[r].title,C.setAttrs(this.elMenuItems[r],{class:"apexcharts-menu-item ".concat(t[r].name),title:t[r].title}),this.elMenu.appendChild(this.elMenuItems[r])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var r="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,n="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[n]=!t.w.globals[n],r.classList.contains(t.ctx.toolbar.selectedClass)?r.classList.remove(t.ctx.toolbar.selectedClass):r.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,r="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),r&&r.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(t){t&&t.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,r=(this.minX+t)/2,n=(this.maxX+t)/2,i=this._getNewMinXMaxX(r,n);e.globals.disableZoomIn||this.zoomUpdateOptions(i.minX,i.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&1e3>new Date(this.minX).getUTCFullYear())){var t=(this.minX+this.maxX)/2,r=this.minX-(t-this.minX),n=this.maxX-(t-this.maxX),i=this._getNewMinXMaxX(r,n);e.globals.disableZoomOut||this.zoomUpdateOptions(i.minX,i.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var r=this.w.config.xaxis.convertedCatToNumeric;return{minX:r?Math.floor(e):e,maxX:r?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var r=this.w;if(void 0!==e||void 0!==t){if(!(r.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=r.globals.dataPoints),t-e<2))){var n={min:e,max:t},i=this.getBeforeZoomRange(n);i&&(n=i.xaxis);var a={xaxis:n},o=w.clone(r.globals.initialConfig.yaxis);r.config.chart.group||(a.yaxis=o),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(a,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(n,o)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t})}},{key:"getBeforeZoomRange",value:function(e,t){var r=null;return"function"==typeof this.ev.beforeZoom&&(r=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),r}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,r=new q(this.ctx);switch(e){case"svg":r.exportToSVG(this.ctx);break;case"png":r.exportToPng(this.ctx);break;case"csv":r.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var r=t.config.chart.events.beforeResetZoom(e,t);r&&e.updateHelpers.revertDefaultAxisMinMax(r)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var n=e.ctx.series.emptyCollapsedSeries(w.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(n,t.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),em=function(e){d(r,eg);var t=l(r);function r(e){var n;return i(this,r),(n=t.call(this,e)).ctx=e,n.w=e.w,n.dragged=!1,n.graphics=new C(n.ctx),n.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],n.clientX=0,n.clientY=0,n.startX=0,n.endX=0,n.dragX=0,n.startY=0,n.endY=0,n.dragY=0,n.moveDirection="none",n.debounceTimer=null,n.debounceDelay=100,n.wheelDelay=400,n}return o(r,[{key:"init",value:function(e){var t=this,r=e.xyRatios,n=this.w,i=this;this.xyRatios=r,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=n.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),n.globals.dom.elGraphical.add(this.zoomRect),n.globals.dom.elGraphical.add(this.selectionRect),"x"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:n.globals.gridWidth,maxY:n.globals.gridHeight}).on("dragmove",this.selectionDragging.bind(this,"dragging")):"y"===n.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:n.globals.gridWidth}).on("dragmove",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=n.globals.dom.baseEl.querySelector("".concat(n.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(e){t.hoverArea.addEventListener(e,i.svgMouseEvents.bind(i,r),{capture:!1,passive:!0})}),n.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",i.mouseWheelEvent.bind(i),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var r=this.w,n=this.ctx.toolbar,i=r.globals.zoomEnabled?r.config.chart.zoom.type:r.config.chart.selection.type,a=r.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,n.enableZoomPanFromToolbar("pan"===a?"zoom":"pan")):this.shiftWasPressed&&(n.enableZoomPanFromToolbar(a),this.shiftWasPressed=!1),t.target){var o,s=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(o=t.target.parentNode.classList),!(s.contains("apexcharts-selection-rect")||s.contains("apexcharts-legend-marker")||s.contains("apexcharts-legend-text")||o&&o.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,this.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which){var l=this.gridRect.getBoundingClientRect();this.startX=this.clientX-l.left,this.startY=this.clientY-l.top,this.dragged=!1,this.w.globals.mousedown=!0}if(("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(this.dragged=!0,r.globals.panEnabled?(r.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:i,xyRatios:e})):(this.w.globals.mousedown&&r.globals.zoomEnabled||this.w.globals.mousedown&&r.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:i}))),"mouseup"===t.type||"touchend"===t.type||"mouseleave"===t.type){var u,c=null===(u=this.gridRect)||void 0===u?void 0:u.getBoundingClientRect();c&&this.w.globals.mousedown&&(this.endX=this.clientX-c.left,this.endY=this.clientY-c.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(r.globals.zoomEnabled||r.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:i}),r.globals.panEnabled&&r.config.xaxis.convertedCatToNumeric&&this.delayedPanScrolled()),r.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}this.makeSelectionRectDraggable()}}}},{key:"mouseWheelEvent",value:function(e){var t=this,r=this.w;e.preventDefault();var n=Date.now();n-r.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),r.globals.lastWheelExecution=n),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){n-r.globals.lastWheelExecution>t.wheelDelay&&(t.executeMouseWheelZoom(e),r.globals.lastWheelExecution=n)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(e){var t,r=this.w;this.minX=r.globals.isRangeBar?r.globals.minY:r.globals.minX,this.maxX=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;var n=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();if(n){var i,a,o,s=(e.clientX-n.left)/n.width,l=this.minX,u=this.maxX,c=u-l;if(e.deltaY<0){var d=l+s*c;a=d-(i=.5*c)/2,o=d+i/2}else a=l-(i=1.5*c)/2,o=u+i/2;if(!r.globals.isRangeBar){a=Math.max(a,r.globals.initialMinX),o=Math.min(o,r.globals.initialMaxX);var h=.01*(r.globals.initialMaxX-r.globals.initialMinX);if(o-a<h){var f=(a+o)/2;a=f-h/2,o=f+h/2}}var p=this._getNewMinXMaxX(a,o);isNaN(p.minX)||isNaN(p.maxX)||this.zoomUpdateOptions(p.minX,p.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var e=this.w;if(this.selectionRect){var t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&this.slDraggableRect.selectize({points:"l, r",pointSize:8,pointType:"rect"}).resize({constraint:{minX:0,minY:0,maxX:e.globals.gridWidth,maxY:e.globals.gridHeight}}).on("resizing",this.selectionDragging.bind(this,"resizing"))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled){if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(e.globals.selection);else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var r=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,n=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-r;e.globals.isRangeBar&&(r=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,n=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var i={x:r,y:0,width:n,height:e.globals.gridHeight,translateX:0,translateY:0,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}}},{key:"drawSelectionRect",value:function(e){var t=e.x,r=e.y,n=e.width,i=e.height,a=e.translateX,o=e.translateY,s=this.w,l=this.zoomRect,u=this.selectionRect;if(this.dragged||null!==s.globals.selection){var c={transform:"translate("+(void 0===a?0:a)+", "+(void 0===o?0:o)+")"};s.globals.zoomEnabled&&this.dragged&&(n<0&&(n=1),l.attr({x:t,y:r,width:n,height:i,fill:s.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":s.config.chart.zoom.zoomedArea.fill.opacity,stroke:s.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":s.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":s.config.chart.zoom.zoomedArea.stroke.opacity}),C.setAttrs(l.node,c)),s.globals.selectionEnabled&&(u.attr({x:t,y:r,width:n>0?n:0,height:i>0?i:0,fill:s.config.chart.selection.fill.color,"fill-opacity":s.config.chart.selection.fill.opacity,stroke:s.config.chart.selection.stroke.color,"stroke-width":s.config.chart.selection.stroke.width,"stroke-dasharray":s.config.chart.selection.stroke.dashArray,"stroke-opacity":s.config.chart.selection.stroke.opacity}),C.setAttrs(u.node,c))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t=e.context,r=e.zoomtype,n=this.w,i=this.gridRect.getBoundingClientRect(),a=t.startX-1,o=t.startY,s=!1,l=!1,u=t.clientX-i.left-a,c=t.clientY-i.top-o,d={};return Math.abs(u+a)>n.globals.gridWidth?u=n.globals.gridWidth-a:t.clientX-i.left<0&&(u=a),a>t.clientX-i.left&&(s=!0,u=Math.abs(u)),o>t.clientY-i.top&&(l=!0,c=Math.abs(c)),d="x"===r?{x:s?a-u:a,y:0,width:u,height:n.globals.gridHeight}:"y"===r?{x:0,y:l?o-c:o,width:n.globals.gridWidth,height:c}:{x:s?a-u:a,y:l?o-c:o,width:u,height:c},t.drawSelectionRect(d),t.selectionDragging("resizing"),d}},{key:"selectionDragging",value:function(e,t){var r=this,n=this.w,i=this.xyRatios,a=this.selectionRect,o=0;"resizing"===e&&(o=30);var s=function(e){return parseFloat(a.node.getAttribute(e))},l={x:s("x"),y:s("y"),width:s("width"),height:s("height")};n.globals.selection=l,"function"==typeof n.config.chart.events.selection&&n.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var e,t,o,s,l=r.gridRect.getBoundingClientRect(),u=a.node.getBoundingClientRect();n.globals.isRangeBar?(e=n.globals.yAxisScale[0].niceMin+(u.left-l.left)*i.invertedYRatio,t=n.globals.yAxisScale[0].niceMin+(u.right-l.left)*i.invertedYRatio,o=0,s=1):(e=n.globals.xAxisScale.niceMin+(u.left-l.left)*i.xRatio,t=n.globals.xAxisScale.niceMin+(u.right-l.left)*i.xRatio,o=n.globals.yAxisScale[0].niceMin+(l.bottom-u.bottom)*i.yRatio[0],s=n.globals.yAxisScale[0].niceMax-(u.top-l.top)*i.yRatio[0]);var c={xaxis:{min:e,max:t},yaxis:{min:o,max:s}};n.config.chart.events.selection(r.ctx,c),n.config.chart.brush.enabled&&void 0!==n.config.chart.events.brushScrolled&&n.config.chart.events.brushScrolled(r.ctx,c)},o))}},{key:"selectionDrawn",value:function(e){var t=e.context,r=e.zoomtype,n=this.w,i=this.xyRatios,a=this.ctx.toolbar;if(t.startX>t.endX){var o=t.startX;t.startX=t.endX,t.endX=o}if(t.startY>t.endY){var s=t.startY;t.startY=t.endY,t.endY=s}var l=void 0,u=void 0;n.globals.isRangeBar?(l=n.globals.yAxisScale[0].niceMin+t.startX*i.invertedYRatio,u=n.globals.yAxisScale[0].niceMin+t.endX*i.invertedYRatio):(l=n.globals.xAxisScale.niceMin+t.startX*i.xRatio,u=n.globals.xAxisScale.niceMin+t.endX*i.xRatio);var c=[],d=[];if(n.config.yaxis.forEach(function(e,r){var a=n.globals.seriesYAxisMap[r][0];c.push(n.globals.yAxisScale[r].niceMax-i.yRatio[a]*t.startY),d.push(n.globals.yAxisScale[r].niceMax-i.yRatio[a]*t.endY)}),t.dragged&&(t.dragX>10||t.dragY>10)&&l!==u){if(n.globals.zoomEnabled){var h=w.clone(n.globals.initialConfig.yaxis),f=w.clone(n.globals.initialConfig.xaxis);if(n.globals.zoomed=!0,n.config.xaxis.convertedCatToNumeric&&(l=Math.floor(l),u=Math.floor(u),l<1&&(l=1,u=n.globals.dataPoints),u-l<2&&(u=l+1)),"xy"!==r&&"x"!==r||(f={min:l,max:u}),"xy"!==r&&"y"!==r||h.forEach(function(e,t){h[t].min=d[t],h[t].max=c[t]}),a){var p=a.getBeforeZoomRange(f,h);p&&(f=p.xaxis?p.xaxis:f,h=p.yaxis?p.yaxis:h)}var g={xaxis:f};n.config.chart.group||(g.yaxis=h),t.ctx.updateHelpers._updateOptions(g,!1,t.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof n.config.chart.events.zoomed&&a.zoomCallback(f,h)}else if(n.globals.selectionEnabled){var m,v=null;m={min:l,max:u},"xy"!==r&&"y"!==r||(v=w.clone(n.config.yaxis)).forEach(function(e,t){v[t].min=d[t],v[t].max=c[t]}),n.globals.selection=t.selection,"function"==typeof n.config.chart.events.selection&&n.config.chart.events.selection(t.ctx,{xaxis:m,yaxis:v})}}}},{key:"panDragging",value:function(e){var t=e.context,r=this.w;if(void 0!==r.globals.lastClientPosition.x){var n=r.globals.lastClientPosition.x-t.clientX,i=r.globals.lastClientPosition.y-t.clientY;Math.abs(n)>Math.abs(i)&&n>0?this.moveDirection="left":Math.abs(n)>Math.abs(i)&&n<0?this.moveDirection="right":Math.abs(i)>Math.abs(n)&&i>0?this.moveDirection="up":Math.abs(i)>Math.abs(n)&&i<0&&(this.moveDirection="down")}r.globals.lastClientPosition={x:t.clientX,y:t.clientY};var a=r.globals.isRangeBar?r.globals.minY:r.globals.minX,o=r.globals.isRangeBar?r.globals.maxY:r.globals.maxX;r.config.xaxis.convertedCatToNumeric||t.panScrolled(a,o)}},{key:"delayedPanScrolled",value:function(){var e=this.w,t=e.globals.minX,r=e.globals.maxX,n=(e.globals.maxX-e.globals.minX)/2;"left"===this.moveDirection?(t=e.globals.minX+n,r=e.globals.maxX+n):"right"===this.moveDirection&&(t=e.globals.minX-n,r=e.globals.maxX-n),t=Math.floor(t),r=Math.floor(r),this.updateScrolledChart({xaxis:{min:t,max:r}},t,r)}},{key:"panScrolled",value:function(e,t){var r=this.w,n=this.xyRatios,i=w.clone(r.globals.initialConfig.yaxis),a=n.xRatio,o=r.globals.minX,s=r.globals.maxX;r.globals.isRangeBar&&(a=n.invertedYRatio,o=r.globals.minY,s=r.globals.maxY),"left"===this.moveDirection?(e=o+r.globals.gridWidth/15*a,t=s+r.globals.gridWidth/15*a):"right"===this.moveDirection&&(e=o-r.globals.gridWidth/15*a,t=s-r.globals.gridWidth/15*a),r.globals.isRangeBar||(e<r.globals.initialMinX||t>r.globals.initialMaxX)&&(e=o,t=s);var l={xaxis:{min:e,max:t}};r.config.chart.group||(l.yaxis=i),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,r){var n=this.w;this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof n.config.chart.events.scrolled&&n.config.chart.events.scrolled(this.ctx,{xaxis:{min:t,max:r}})}}]),r}(),ev=function(){function e(t){i(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return o(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,r=e.elGrid,n=e.clientX,i=e.clientY,a=this.w,o=r.getBoundingClientRect(),s=o.width,l=o.height,u=s/(a.globals.dataPoints-1),c=l/a.globals.dataPoints,d=this.hasBars();(a.globals.comboCharts||d)&&!a.config.xaxis.convertedCatToNumeric&&(u=s/a.globals.dataPoints);var h=n-o.left-a.globals.barPadForNumericAxis,f=i-o.top;h<0||f<0||h>s||f>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):a.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):a.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(h/u),g=Math.floor(f/c);d&&!a.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(h/u)-1);var m=null,v=null,b=a.globals.seriesXvalues.map(function(e){return e.filter(function(e){return w.isNumber(e)})}),x=a.globals.seriesYvalues.map(function(e){return e.filter(function(e){return w.isNumber(e)})});if(a.globals.isXNumeric){var y=this.ttCtx.getElGrid().getBoundingClientRect(),k=h*(y.width/s),S=f*(y.height/l);m=(v=this.closestInMultiArray(k,S,b,x)).index,p=v.j,null!==m&&(b=a.globals.seriesXvalues[m],p=(v=this.closestInArray(k,b)).index)}return a.globals.capturedSeriesIndex=null===m?-1:m,(!p||p<1)&&(p=0),a.globals.isBarHorizontal?a.globals.capturedDataPointIndex=g:a.globals.capturedDataPointIndex=p,{capturedSeries:m,j:a.globals.isBarHorizontal?g:p,hoverX:h,hoverY:f}}},{key:"closestInMultiArray",value:function(e,t,r,n){var i=this.w,a=0,o=null,s=-1;i.globals.series.length>1?a=this.getFirstActiveXArray(r):o=0;var l=Math.abs(e-r[a][0]);if(r.forEach(function(t){t.forEach(function(t,r){var n=Math.abs(e-t);n<=l&&(l=n,s=r)})}),-1!==s){var u=Math.abs(t-n[a][s]);o=a,n.forEach(function(e,r){var n=Math.abs(t-e[s]);n<=u&&(u=n,o=r)})}return{index:o,j:s}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,r=0,n=e.map(function(e,t){return e.length>0?t:-1}),i=0;i<n.length;i++)if(-1!==n[i]&&-1===t.globals.collapsedSeriesIndices.indexOf(i)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)){r=n[i];break}return r}},{key:"closestInArray",value:function(e,t){for(var r=t[0],n=null,i=Math.abs(e-r),a=0;a<t.length;a++){var o=Math.abs(e-t[a]);o<i&&(i=o,n=a)}return{index:n}}},{key:"isXoverlap",value:function(e){var t=[],r=this.w.globals.seriesX.filter(function(e){return void 0!==e[0]});if(r.length>0)for(var n=0;n<r.length-1;n++)void 0!==r[n][e]&&void 0!==r[n+1][e]&&r[n][e]!==r[n+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,r=0;r<t.length-1;r++)if(t[r].data.length!==t[r+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return v(e).reduce(function(e,t){return e+t.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");(e=v(e)).sort(function(e,t){var r=Number(e.getAttribute("data:realIndex")),n=Number(t.getAttribute("data:realIndex"));return n<r?1:n>r?-1:0});var t=[];return e.forEach(function(e){t.push(e.querySelector(".apexcharts-marker"))}),t}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var r=Number(e.getAttribute("cx")),n=Number(e.getAttribute("cy")),i=e.getAttribute("shape");return new C(this.ctx).getMarkerPath(r,n,i,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series, .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,r=t.config.markers.hover.size;return void 0===r&&(r=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),r}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,r=this.ttCtx;0===r.allTooltipSeriesGroups.length&&(r.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var n=r.allTooltipSeriesGroups,i=0;i<n.length;i++)"enable"===e?(n[i].classList.add("apexcharts-active"),n[i].style.display=t.config.tooltip.items.display):(n[i].classList.remove("apexcharts-active"),n[i].style.display="none")}}]),e}(),eb=function(){function e(t){i(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new ev(t)}return o(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,r=void 0===t||t,n=e.ttItems,i=e.i,a=void 0===i?0:i,o=e.j,s=void 0===o?null:o,l=e.y1,u=e.y2,c=e.e,d=this.w;void 0!==d.config.tooltip.custom?this.handleCustomTooltip({i:a,j:s,y1:l,y2:u,w:d}):this.toggleActiveInactiveSeries(r,a);var h=this.getValuesToPrint({i:a,j:s});this.printLabels({i:a,j:s,values:h,ttItems:n,shared:r,e:c});var f=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=f.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=f.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,r=this,n=e.i,i=e.j,a=e.values,o=e.ttItems,s=e.shared,l=e.e,u=this.w,c=[],d=function(e){return u.globals.seriesGoals[e]&&u.globals.seriesGoals[e][i]&&Array.isArray(u.globals.seriesGoals[e][i])},h=a.xVal,f=a.zVal,g=a.xAxisTTVal,m="",v=u.globals.colors[n];null!==i&&u.config.plotOptions.bar.distributed&&(v=u.globals.colors[i]);for(var b=0,x=u.globals.series.length-1;b<u.globals.series.length;b++,x--)(function(e,a){var b=r.getFormatters(n);m=r.getSeriesName({fn:b.yLbTitleFormatter,index:n,seriesIndex:n,j:i}),"treemap"===u.config.chart.type&&(m=b.yLbTitleFormatter(String(u.config.series[n].data[i].x),{series:u.globals.series,seriesIndex:n,dataPointIndex:i,w:u}));var x=u.config.tooltip.inverseOrder?a:e;if(u.globals.axisCharts){var y=function(e){var t,r,n,a;return u.globals.isRangeData?b.yLbFormatter(null===(t=u.globals.seriesRangeStart)||void 0===t||null===(r=t[e])||void 0===r?void 0:r[i],{series:u.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:i,w:u})+" - "+b.yLbFormatter(null===(n=u.globals.seriesRangeEnd)||void 0===n||null===(a=n[e])||void 0===a?void 0:a[i],{series:u.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:i,w:u}):b.yLbFormatter(u.globals.series[e][i],{series:u.globals.series,seriesIndex:e,dataPointIndex:i,w:u})};if(s)b=r.getFormatters(x),m=r.getSeriesName({fn:b.yLbTitleFormatter,index:x,seriesIndex:n,j:i}),v=u.globals.colors[x],t=y(x),d(x)&&(c=u.globals.seriesGoals[x][i].map(function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:x,dataPointIndex:i,w:u})}}));else{var w,k=null==l||null===(w=l.target)||void 0===w?void 0:w.getAttribute("fill");k&&(-1!==k.indexOf("url")?-1!==k.indexOf("Pattern")&&(v=u.globals.dom.baseEl.querySelector(k.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):v=k),t=y(n),d(n)&&Array.isArray(u.globals.seriesGoals[n][i])&&(c=u.globals.seriesGoals[n][i].map(function(e){return{attrs:e,val:b.yLbFormatter(e.value,{seriesIndex:n,dataPointIndex:i,w:u})}}))}}null===i&&(t=b.yLbFormatter(u.globals.series[n],p(p({},u),{},{seriesIndex:n,dataPointIndex:n}))),r.DOMHandling({i:n,t:x,j:i,ttItems:o,values:{val:t,goalVals:c,xVal:h,xAxisTTVal:g,zVal:f},seriesName:m,shared:s,pColor:v})})(b,x)}},{key:"getFormatters",value:function(e){var t,r=this.w,n=r.globals.yLabelFormatters[e];return void 0!==r.globals.ttVal?Array.isArray(r.globals.ttVal)?(n=r.globals.ttVal[e]&&r.globals.ttVal[e].formatter,t=r.globals.ttVal[e]&&r.globals.ttVal[e].title&&r.globals.ttVal[e].title.formatter):(n=r.globals.ttVal.formatter,"function"==typeof r.globals.ttVal.title.formatter&&(t=r.globals.ttVal.title.formatter)):t=r.config.tooltip.y.title.formatter,"function"!=typeof n&&(n=r.globals.yLabelFormatters[0]?r.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e}),{yLbFormatter:n,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,r=e.index,n=e.seriesIndex,i=e.j,a=this.w;return t(String(a.globals.seriesNames[r]),{series:a.globals.series,seriesIndex:n,dataPointIndex:i,w:a})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,r=e.j,n=e.ttItems,i=e.values,a=e.seriesName,o=e.shared,s=e.pColor,l=this.w,u=this.ttCtx,c=i.val,d=i.goalVals,h=i.xVal,f=i.xAxisTTVal,p=i.zVal,g=null;g=n[t].children,l.config.tooltip.fillSeriesColor&&(n[t].style.backgroundColor=s,g[0].style.display="none"),u.showTooltipTitle&&(null===u.tooltipTitle&&(u.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),u.tooltipTitle.innerHTML=h),u.isXAxisTooltipEnabled&&(u.xaxisTooltipText.innerHTML=""!==f?f:h);var m=n[t].querySelector(".apexcharts-tooltip-text-y-label");m&&(m.innerHTML=a||"");var v=n[t].querySelector(".apexcharts-tooltip-text-y-value");v&&(v.innerHTML=void 0!==c?c:""),g[0]&&g[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(s=l.config.tooltip.marker.fillColors[t]),g[0].style.backgroundColor=s),l.config.tooltip.marker.show||(g[0].style.display="none");var b=n[t].querySelector(".apexcharts-tooltip-text-goals-label"),x=n[t].querySelector(".apexcharts-tooltip-text-goals-value");if(d.length&&l.globals.seriesGoals[t]){var y=function(){var e="<div >",t="<div>";d.forEach(function(r,n){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(r.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(r.attrs.name,"</div>"),t+="<div>".concat(r.val,"</div>")}),b.innerHTML=e+"</div>",x.innerHTML=t+"</div>"};o?l.globals.seriesGoals[t][r]&&Array.isArray(l.globals.seriesGoals[t][r])?y():(b.innerHTML="",x.innerHTML=""):y()}else b.innerHTML="",x.innerHTML="";if(null!==p&&(n[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,n[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),o&&g[0]){if(l.config.tooltip.hideEmptySeries){var w=n[t].querySelector(".apexcharts-tooltip-marker"),k=n[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(c)?(w.style.display="none",k.style.display="none"):(w.style.display="block",k.style.display="block")}null==c||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(u.tConfig.enabledOnSeries)&&-1===u.tConfig.enabledOnSeries.indexOf(t)?g[0].parentNode.style.display="none":g[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(u.tConfig.enabledOnSeries)&&-1===u.tConfig.enabledOnSeries.indexOf(t)&&(g[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var r=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var n=r.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));n&&(n.classList.add("apexcharts-active"),n.style.display=r.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,r=e.j,n=this.w,i=this.ctx.series.filteredSeriesX(),a="",o="",s=null,l=null,u={series:n.globals.series,seriesIndex:t,dataPointIndex:r,w:n},c=n.globals.ttZFormatter;null===r?l=n.globals.series[t]:n.globals.isXNumeric&&"treemap"!==n.config.chart.type?(a=i[t][r],0===i[t].length&&(a=i[this.tooltipUtil.getFirstActiveXArray(i)][r])):a=new $(this.ctx).isFormatXY()?void 0!==n.config.series[t].data[r]?n.config.series[t].data[r].x:"":void 0!==n.globals.labels[r]?n.globals.labels[r]:"";var d=a;return a=n.globals.isXNumeric&&"datetime"===n.config.xaxis.type?new P(this.ctx).xLabelFormat(n.globals.ttKeyFormatter,d,d,{i:void 0,dateFormatter:new T(this.ctx).formatDate,w:this.w}):n.globals.isBarHorizontal?n.globals.yLabelFormatters[0](d,u):n.globals.xLabelFormatter(d,u),void 0!==n.config.tooltip.x.formatter&&(a=n.globals.ttKeyFormatter(d,u)),n.globals.seriesZ.length>0&&n.globals.seriesZ[t].length>0&&(s=c(n.globals.seriesZ[t][r],n)),o="function"==typeof n.config.xaxis.tooltip.formatter?n.globals.xaxisTooltipFormatter(d,u):a,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(a)?a.join(" "):a,xAxisTTVal:Array.isArray(o)?o.join(" "):o,zVal:s}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,r=e.j,n=e.y1,i=e.y2,a=e.w,o=this.ttCtx.getElTooltip(),s=a.config.tooltip.custom;Array.isArray(s)&&s[t]&&(s=s[t]),o.innerHTML=s({ctx:this.ctx,series:a.globals.series,seriesIndex:t,dataPointIndex:r,y1:n,y2:i,w:a})}}]),e}(),ex=function(){function e(t){i(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return o(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=this.ttCtx,n=this.w,i=r.getElXCrosshairs(),a=e-r.xcrosshairsWidth/2,o=n.globals.labels.slice().length;if(null!==t&&(a=n.globals.gridWidth/o*t),null===i||n.globals.isBarHorizontal||(i.setAttribute("x",a),i.setAttribute("x1",a),i.setAttribute("x2",a),i.setAttribute("y2",n.globals.gridHeight),i.classList.add("apexcharts-active")),a<0&&(a=0),a>n.globals.gridWidth&&(a=n.globals.gridWidth),r.isXAxisTooltipEnabled){var s=a;"tickWidth"!==n.config.xaxis.crosshairs.width&&"barWidth"!==n.config.xaxis.crosshairs.width||(s=a+r.xcrosshairsWidth/2),this.moveXAxisTooltip(s)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&C.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&C.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,r=this.ttCtx;if(null!==r.xaxisTooltip&&0!==r.xcrosshairsWidth){r.xaxisTooltip.classList.add("apexcharts-active");var n,i=r.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;isNaN(e-=r.xaxisTooltip.getBoundingClientRect().width/2)||(e+=t.globals.translateX,n=new C(this.ctx).getTextRects(r.xaxisTooltipText.innerHTML),r.xaxisTooltipText.style.minWidth=n.width+"px",r.xaxisTooltip.style.left=e+"px",r.xaxisTooltip.style.top=i+"px")}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,r=this.ttCtx;null===r.yaxisTTEls&&(r.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var n=parseInt(r.ycrosshairsHidden.getAttribute("y1"),10),i=t.globals.translateY+n,a=r.yaxisTTEls[e].getBoundingClientRect().height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=26),i-=a/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)?(r.yaxisTTEls[e].classList.add("apexcharts-active"),r.yaxisTTEls[e].style.top=i+"px",r.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):r.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.w,i=this.ttCtx,a=i.getElTooltip(),o=i.tooltipRect,s=null!==r?parseFloat(r):1,l=parseFloat(e)+s+5,u=parseFloat(t)+s/2;if(l>n.globals.gridWidth/2&&(l=l-o.ttWidth-s-10),l>n.globals.gridWidth-o.ttWidth-10&&(l=n.globals.gridWidth-o.ttWidth),l<-20&&(l=-20),n.config.tooltip.followCursor){var c=i.getElGrid().getBoundingClientRect();(l=i.e.clientX-c.left)>n.globals.gridWidth/2&&(l-=i.tooltipRect.ttWidth),(u=i.e.clientY+n.globals.translateY-c.top)>n.globals.gridHeight/2&&(u-=i.tooltipRect.ttHeight)}else n.globals.isBarHorizontal||o.ttHeight/2+u>n.globals.gridHeight&&(u=n.globals.gridHeight-o.ttHeight+n.globals.translateY);isNaN(l)||(l+=n.globals.translateX,a.style.left=l+"px",a.style.top=u+"px")}},{key:"moveMarkers",value:function(e,t){var r=this.w,n=this.ttCtx;if(r.globals.markers.size[e]>0)for(var i=r.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),a=0;a<i.length;a++)parseInt(i[a].getAttribute("rel"),10)===t&&(n.marker.resetPointsSize(),n.marker.enlargeCurrentPoint(t,i[a]));else n.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var r,n,i,a,o=this.w,s=this.ttCtx,l=new C(this.ctx),u=o.globals.pointsArray,c=s.tooltipUtil.getHoverMarkerSize(t),d=o.config.series[t].type;if(!d||"column"!==d&&"candlestick"!==d&&"boxPlot"!==d){i=null===(r=u[t][e])||void 0===r?void 0:r[0],a=(null===(n=u[t][e])||void 0===n?void 0:n[1])||0;var h=o.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(h&&a<o.globals.gridHeight&&a>0){var f=h.getAttribute("shape"),p=l.getMarkerPath(i,a,f,1.5*c);h.setAttribute("d",p)}this.moveXCrosshairs(i),s.fixedTooltip||this.moveTooltip(i,a,c)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,r=this.ttCtx,n=r.w,i=0,a=0,o=n.globals.pointsArray,s=new G(this.ctx),l=new C(this.ctx);t=s.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var u=r.tooltipUtil.getHoverMarkerSize(t);o[t]&&(i=o[t][e][0],a=o[t][e][1]);var c=r.tooltipUtil.getAllMarkers();if(null!==c)for(var d=0;d<n.globals.series.length;d++){var h=o[d];if(n.globals.comboCharts&&void 0===h&&c.splice(d,0,null),h&&h.length){var f=o[d][e][1],p=void 0;c[d].setAttribute("cx",i);var g=c[d].getAttribute("shape");if("rangeArea"===n.config.chart.type&&!n.globals.comboCharts){var m=e+n.globals.series[d].length;p=o[d][m][1],f-=Math.abs(f-p)/2}if(null!==f&&!isNaN(f)&&f<n.globals.gridHeight+u&&f+u>0){var v=l.getMarkerPath(i,f,g,u);c[d].setAttribute("d",v)}else c[d].setAttribute("d","")}}this.moveXCrosshairs(i),r.fixedTooltip||this.moveTooltip(i,a||n.globals.gridHeight,u)}},{key:"moveStickyTooltipOverBars",value:function(e,t){var r=this.w,n=this.ttCtx,i=r.globals.columnSeries?r.globals.columnSeries.length:r.globals.series.length,a=i>=2&&i%2==0?Math.floor(i/2):Math.floor(i/2)+1;r.globals.isBarHorizontal&&(a=new G(this.ctx).getActiveConfigSeriesIndex("desc")+1);var o=r.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(a,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(a,"'] path[j='").concat(e,"']"));o||"number"!=typeof t||(o=r.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var s=o?parseFloat(o.getAttribute("cx")):0,l=o?parseFloat(o.getAttribute("cy")):0,u=o?parseFloat(o.getAttribute("barWidth")):0,c=n.getElGrid().getBoundingClientRect(),d=o&&(o.classList.contains("apexcharts-candlestick-area")||o.classList.contains("apexcharts-boxPlot-area"));r.globals.isXNumeric?(o&&!d&&(s-=i%2!=0?u/2:0),o&&d&&r.globals.comboCharts&&(s-=u/2)):r.globals.isBarHorizontal||isNaN(s=n.xAxisTicksPositions[e-1]+n.dataPointsDividedWidth/2)&&(s=n.xAxisTicksPositions[e]-n.dataPointsDividedWidth/2),r.globals.isBarHorizontal?l-=n.tooltipRect.ttHeight:r.config.tooltip.followCursor?l=n.e.clientY-c.top-n.tooltipRect.ttHeight/2:l+n.tooltipRect.ttHeight+15>r.globals.gridHeight&&(l=r.globals.gridHeight),r.globals.isBarHorizontal||this.moveXCrosshairs(s),n.fixedTooltip||this.moveTooltip(s,l||r.globals.gridHeight)}}]),e}(),ey=function(){function e(t){i(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new ex(t)}return o(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new C(this.ctx),r=new Y(this.ctx),n=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");n=v(n),e.config.chart.stacked&&n.sort(function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))});for(var i=0;i<n.length;i++){var a=n[i].querySelector(".apexcharts-series-markers-wrap");if(null!==a){var o=void 0,s="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(s+=" no-pointer-events");var l=r.getMarkerConfig({cssClass:s,seriesIndex:Number(a.getAttribute("data:realIndex"))});(o=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var u=document.createElementNS(e.globals.SVGNS,"g");u.classList.add("apexcharts-series-markers"),u.appendChild(o.node),a.appendChild(u)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=this.w;"bubble"!==i.config.chart.type&&this.newPointSize(e,t);var a=t.getAttribute("cx"),o=t.getAttribute("cy");if(null!==r&&null!==n&&(a=r,o=n),this.tooltipPosition.moveXCrosshairs(a),!this.fixedTooltip){if("radar"===i.config.chart.type){var s=this.ttCtx.getElGrid().getBoundingClientRect();a=this.ttCtx.e.clientX-s.left}this.tooltipPosition.moveTooltip(a,o,i.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,r=this.ttCtx,n=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),i=t.config.markers.hover.size,a=0;a<n.length;a++){var o=n[a].getAttribute("rel"),s=n[a].getAttribute("index");if(void 0===i&&(i=t.globals.markers.size[s]+t.config.markers.hover.sizeOffset),e===parseInt(o,10)){this.newPointSize(e,n[a]);var l=n[a].getAttribute("cx"),u=n[a].getAttribute("cy");this.tooltipPosition.moveXCrosshairs(l),r.fixedTooltip||this.tooltipPosition.moveTooltip(l,u,i)}else this.oldPointSize(n[a])}}},{key:"newPointSize",value:function(e,t){var r=this.w,n=r.config.markers.hover.size,i=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==i.getAttribute("default-marker-size")){var a=parseInt(i.getAttribute("index"),10);void 0===n&&(n=r.globals.markers.size[a]+r.config.markers.hover.sizeOffset),n<0&&(n=0);var o=this.ttCtx.tooltipUtil.getPathFromPoint(t,n);t.setAttribute("d",o)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),r=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",r)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var r=parseFloat(e[t].getAttribute("default-marker-size"));if(w.isNumber(r)&&r>=0){var n=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],r);e[t].setAttribute("d",n)}else e[t].setAttribute("d","M0,0")}}}]),e}(),ew=function(){function e(t){i(this,e),this.w=t.w;var r=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&"rangeBar"===r.config.chart.type&&r.config.plotOptions.bar.rangeBarGroupRows}return o(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,r=e.opt,n=e.x,i=e.y,a=e.type,o=this.ttCtx,s=this.w;if(t.target.classList.contains("apexcharts-".concat(a,"-rect"))){var l=this.getAttr(t,"i"),u=this.getAttr(t,"j"),c=this.getAttr(t,"cx"),d=this.getAttr(t,"cy"),h=this.getAttr(t,"width"),f=this.getAttr(t,"height");if(o.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:l,j:u,shared:!1,e:t}),s.globals.capturedSeriesIndex=l,s.globals.capturedDataPointIndex=u,n=c+o.tooltipRect.ttWidth/2+h,i=d+o.tooltipRect.ttHeight/2-f/2,o.tooltipPosition.moveXCrosshairs(c+h/2),n>s.globals.gridWidth/2&&(n=c-o.tooltipRect.ttWidth/2+h),o.w.config.tooltip.followCursor){var p=s.globals.dom.elWrap.getBoundingClientRect();n=s.globals.clientX-p.left-(n>s.globals.gridWidth/2?o.tooltipRect.ttWidth:0),i=s.globals.clientY-p.top-(i>s.globals.gridHeight/2?o.tooltipRect.ttHeight:0)}}return{x:n,y:i}}},{key:"handleMarkerTooltip",value:function(e){var t,r,n=e.e,i=e.opt,a=e.x,o=e.y,s=this.w,l=this.ttCtx;if(n.target.classList.contains("apexcharts-marker")){var u=parseInt(i.paths.getAttribute("cx"),10),c=parseInt(i.paths.getAttribute("cy"),10),d=parseFloat(i.paths.getAttribute("val"));if(r=parseInt(i.paths.getAttribute("rel"),10),t=parseInt(i.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var h=w.findAncestor(i.paths,"apexcharts-series");h&&(t=parseInt(h.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:t,j:r,shared:!l.showOnIntersect&&s.config.tooltip.shared,e:n}),"mouseup"===n.type&&l.markerClick(n,t,r),s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=r,a=u,o=c+s.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var f=l.getElGrid().getBoundingClientRect();o=l.e.clientY+s.globals.translateY-f.top}d<0&&(o=c),l.marker.enlargeCurrentPoint(r,i.paths,a,o)}return{x:a,y:o}}},{key:"handleBarTooltip",value:function(e){var t,r,n=e.e,i=e.opt,a=this.w,o=this.ttCtx,s=o.getElTooltip(),l=0,u=0,c=0,d=this.getBarTooltipXY({e:n,opt:i});t=d.i;var h=d.j;a.globals.capturedSeriesIndex=t,a.globals.capturedDataPointIndex=h,a.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!a.config.tooltip.shared?(u=d.x,c=d.y,r=Array.isArray(a.config.stroke.width)?a.config.stroke.width[t]:a.config.stroke.width,l=u):a.globals.comboCharts||a.config.tooltip.shared||(l/=2),isNaN(c)&&(c=a.globals.svgHeight-o.tooltipRect.ttHeight);var f=parseInt(i.paths.parentNode.getAttribute("data:realIndex"),10);if(a.globals.isMultipleYAxis?a.config.yaxis[f]&&a.config.yaxis[f].reversed:a.config.yaxis[0].reversed,u+o.tooltipRect.ttWidth>a.globals.gridWidth?u-=o.tooltipRect.ttWidth:u<0&&(u=0),o.w.config.tooltip.followCursor){var p=o.getElGrid().getBoundingClientRect();c=o.e.clientY-p.top}null===o.tooltip&&(o.tooltip=a.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),a.config.tooltip.shared||(a.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(l+r/2):o.tooltipPosition.moveXCrosshairs(l)),!o.fixedTooltip&&(!a.config.tooltip.shared||a.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(c=c+a.globals.translateY-o.tooltipRect.ttHeight/2,s.style.left=u+a.globals.translateX+"px",s.style.top=c+"px")}},{key:"getBarTooltipXY",value:function(e){var t=this,r=e.e,n=e.opt,i=this.w,a=null,o=this.ttCtx,s=0,l=0,u=0,c=0,d=0,h=r.target.classList;if(h.contains("apexcharts-bar-area")||h.contains("apexcharts-candlestick-area")||h.contains("apexcharts-boxPlot-area")||h.contains("apexcharts-rangebar-area")){var f=r.target,p=f.getBoundingClientRect(),g=n.elGrid.getBoundingClientRect(),m=p.height;d=p.height;var v=p.width,b=parseInt(f.getAttribute("cx"),10),x=parseInt(f.getAttribute("cy"),10);c=parseFloat(f.getAttribute("barWidth"));var y="touchmove"===r.type?r.touches[0].clientX:r.clientX;a=parseInt(f.getAttribute("j"),10),s=parseInt(f.parentNode.getAttribute("rel"),10)-1;var w=f.getAttribute("data-range-y1"),k=f.getAttribute("data-range-y2");i.globals.comboCharts&&(s=parseInt(f.parentNode.getAttribute("data:realIndex"),10));var S=function(e){return i.globals.isXNumeric?b-v/2:t.isVerticalGroupedRangeBar?b+v/2:b-o.dataPointsDividedWidth+v/2},C=function(){return x-o.dataPointsDividedHeight+m/2-o.tooltipRect.ttHeight/2};o.tooltipLabels.drawSeriesTexts({ttItems:n.ttItems,i:s,j:a,y1:w?parseInt(w,10):null,y2:k?parseInt(k,10):null,shared:!o.showOnIntersect&&i.config.tooltip.shared,e:r}),i.config.tooltip.followCursor?i.globals.isBarHorizontal?(l=y-g.left+15,u=C()):(l=S(),u=r.clientY-g.top-o.tooltipRect.ttHeight/2-15):i.globals.isBarHorizontal?((l=b)<o.xyRatios.baseLineInvertedY&&(l=b-o.tooltipRect.ttWidth),u=C()):(l=S(),u=x)}return{x:l,y:u,barHeight:d,barWidth:c,i:s,j:a}}}]),e}(),ek=function(){function e(t){i(this,e),this.w=t.w,this.ttCtx=t}return o(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,r="bottom"===e.config.xaxis.position;t.xaxisOffY=r?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var n=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",(r?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top")+" apexcharts-theme-"+e.config.tooltip.theme),n.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,r=0;r<e.config.yaxis.length;r++){var n=e.config.yaxis[r].opposite||e.config.yaxis[r].crosshairs.opposite;t.yaxisOffX=n?e.globals.gridWidth+1:1;var i="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(r,n?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),a=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(r))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.yaxisTooltip),0===r&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[r]=document.createElement("div"),t.yaxisTooltipText[r].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[r]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,r=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var n=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==n&&"barWidth"===e.config.xaxis.crosshairs.width){var i=parseFloat(n.getAttribute("barWidth"));t.xcrosshairsWidth=i}else if("tickWidth"===e.config.xaxis.crosshairs.width){var a=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/a}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/o}else if("barWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==s){var l=parseFloat(s.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==r&&t.xcrosshairsWidth>0&&r.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,r){var n=this.ttCtx,i=this.w,a=i.globals,o=a.seriesYAxisMap[e];if(n.yaxisTooltips[e]&&o.length>0){var s=a.yLabelFormatters[e],l=n.getElGrid().getBoundingClientRect(),u=o[0],c=0;r.yRatio.length>1&&(c=u);var d=(t-l.top)*r.yRatio[c],h=a.maxYArr[u]-a.minYArr[u],f=a.minYArr[u]+(h-d);i.config.yaxis[e].reversed&&(f=a.maxYArr[u]-(h-d)),n.tooltipPosition.moveYCrosshairs(t-l.top),n.yaxisTooltipText[e].innerHTML=s(f),n.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),eS=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.tConfig=r.config.tooltip,this.tooltipUtil=new ev(this),this.tooltipLabels=new eb(this),this.tooltipPosition=new ex(this),this.marker=new ey(this),this.intersect=new ew(this),this.axesTooltip=new ek(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!r.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return o(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(e,r){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var r=document.createElement("div");if(r.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&r.classList.add(t.config.tooltip.cssClass),r.classList.add("apexcharts-theme-".concat(this.tConfig.theme)),t.globals.dom.elWrap.appendChild(r),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var n=new Z(this.ctx);this.xAxisTicksPositions=n.getXAxisTicksPositions()}if((t.globals.comboCharts||this.tConfig.intersect||"rangeBar"===t.config.chart.type)&&!this.tConfig.shared&&(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,r.appendChild(this.tooltipTitle));var i=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(i=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(i),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,r=this.w,n=[],i=this.getElTooltip(),a=0;a<e;a++)(function(a){var o=document.createElement("div");o.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(a)),o.style.order=r.config.tooltip.inverseOrder?e-a:a+1;var s=document.createElement("span");s.classList.add("apexcharts-tooltip-marker"),s.style.backgroundColor=r.globals.colors[a],o.appendChild(s);var l=document.createElement("div");l.classList.add("apexcharts-tooltip-text"),l.style.fontFamily=t.tConfig.style.fontFamily||r.config.chart.fontFamily,l.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(r);var n=document.createElement("span");n.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(n),l.appendChild(t)}),o.appendChild(l),i.appendChild(o),n.push(o)})(a);return n}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,r=this.getElTooltip(),n=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),i="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,a=e.globals.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());var s,l=[],u=[],c={hoverArea:a,elGrid:o,tooltipEl:r,tooltipY:l,tooltipX:u,ttItems:this.ttItems};if(e.globals.axisCharts&&(i?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):n?s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),s&&s.length))for(var d=0;d<s.length;d++)l.push(s[d].getAttribute("cy")),u.push(s[d].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||n&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([a],c);else if(n&&!e.globals.comboCharts||i&&this.showOnIntersect)this.addDatapointEventsListeners(c);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var h=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(h,c)}if(this.showOnIntersect){var f=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");f.length>0&&this.addPathsEventListeners(f,c),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(c)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),r=t.getBoundingClientRect(),n=r.width+10,i=r.height+10,a=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY,s=this.tConfig.fixed.position.toLowerCase();return s.indexOf("right")>-1&&(a=a+e.globals.svgWidth-n+10),s.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-i-10),t.style.left=a+"px",t.style.top=o+"px",{x:a,y:o,ttWidth:n,ttHeight:i}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var r=this,n=function(n){var i={paths:e[n],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(t){return e[n].addEventListener(t,r.onSeriesHover.bind(r,i),{capture:!1,passive:!0})})},i=0;i<e.length;i++)n(i)}},{key:"onSeriesHover",value:function(e,t){var r=this,n=Date.now()-this.lastHoverTime;n>=100?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){r.seriesHover(e,t)},100-n))}},{key:"seriesHover",value:function(e,t){var r=this;this.lastHoverTime=Date.now();var n=[],i=this.w;i.config.chart.group&&(n=this.ctx.getGroupedCharts()),i.globals.axisCharts&&(i.globals.minX===-1/0&&i.globals.maxX===1/0||0===i.globals.dataPoints)||(n.length?n.forEach(function(n){var i=r.getElTooltip(n),a={paths:e.paths,tooltipEl:i,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:n.w.globals.tooltip.ttItems};n.w.globals.minX===r.w.globals.minX&&n.w.globals.maxX===r.w.globals.maxX&&n.w.globals.tooltip.seriesHoverByContext({chartCtx:n,ttCtx:n.w.globals.tooltip,opt:a,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,r=e.ttCtx,n=e.opt,i=e.e,a=t.w,o=this.getElTooltip(t);o&&(r.tooltipRect={x:0,y:0,ttWidth:o.getBoundingClientRect().width,ttHeight:o.getBoundingClientRect().height},r.e=i,r.tooltipUtil.hasBars()&&!a.globals.comboCharts&&!r.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new G(t).toggleSeriesOnHover(i,i.target.parentNode),r.fixedTooltip&&r.drawFixedTooltipRect(),a.globals.axisCharts?r.axisChartsTooltips({e:i,opt:n,tooltipRect:r.tooltipRect}):r.nonAxisChartsTooltips({e:i,opt:n,tooltipRect:r.tooltipRect}))}},{key:"axisChartsTooltips",value:function(e){var t,r,n=e.e,i=e.opt,a=this.w,o=i.elGrid.getBoundingClientRect(),s="touchmove"===n.type?n.touches[0].clientX:n.clientX,l="touchmove"===n.type?n.touches[0].clientY:n.clientY;if(this.clientY=l,this.clientX=s,a.globals.capturedSeriesIndex=-1,a.globals.capturedDataPointIndex=-1,l<o.top||l>o.top+o.height)this.handleMouseOut(i);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){var u=parseInt(i.paths.getAttribute("index"),10);if(0>this.tConfig.enabledOnSeries.indexOf(u))return void this.handleMouseOut(i)}var c=this.getElTooltip(),d=this.getElXCrosshairs(),h=[];a.config.chart.group&&(h=this.ctx.getSyncedCharts());var f=a.globals.xyCharts||"bar"===a.config.chart.type&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===n.type||"touchmove"===n.type||"mouseup"===n.type){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.globals.series.length)return;null!==d&&d.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter(function(e){return!0===e});if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),f&&!this.showOnIntersect||h.length>1)this.handleStickyTooltip(n,s,l,i);else if("heatmap"===a.config.chart.type||"treemap"===a.config.chart.type){var g=this.intersect.handleHeatTreeTooltip({e:n,opt:i,x:t,y:r,type:a.config.chart.type});t=g.x,r=g.y,c.style.left=t+"px",c.style.top=r+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:n,opt:i}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:n,opt:i,x:t,y:r});if(this.yaxisTooltips.length)for(var m=0;m<a.config.yaxis.length;m++)this.axesTooltip.drawYaxisTooltipText(m,l,this.xyRatios);a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),i.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==n.type&&"touchend"!==n.type||this.handleMouseOut(i)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,r=e.opt,n=e.tooltipRect,i=this.w,a=r.paths.getAttribute("rel"),o=this.getElTooltip(),s=i.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){i.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),o.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:parseInt(a,10)-1,shared:!1});var l=i.globals.clientX-s.left-n.ttWidth/2,u=i.globals.clientY-s.top-n.ttHeight-10;if(o.style.left=l+"px",o.style.top=u+"px",i.config.legend.tooltipHoverFormatter){var c=a-1,d=(0,i.config.legend.tooltipHoverFormatter)(this.legendLabels[c].getAttribute("data:default-text"),{seriesIndex:c,dataPointIndex:c,w:i});this.legendLabels[c].innerHTML=d}}else"mouseout"!==t.type&&"touchend"!==t.type||(o.classList.remove("apexcharts-active"),i.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),i.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"handleStickyTooltip",value:function(e,t,r,n){var i=this.w,a=this.tooltipUtil.getNearestValues({context:this,hoverArea:n.hoverArea,elGrid:n.elGrid,clientX:t,clientY:r}),o=a.j,s=a.capturedSeries;i.globals.collapsedSeriesIndices.includes(s)&&(s=null);var l=n.elGrid.getBoundingClientRect();if(a.hoverX<0||a.hoverX>l.width)this.handleMouseOut(n);else if(null!==s)this.handleStickyCapturedSeries(e,s,n,o);else if(this.tooltipUtil.isXoverlap(o)||i.globals.isBarHorizontal){var u=i.globals.series.findIndex(function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)});this.create(e,this,u,o,n.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,r,n){var i=this.w;if(!this.tConfig.shared&&null===i.globals.series[t][n])return void this.handleMouseOut(r);if(void 0!==i.globals.series[t][n])this.tConfig.shared&&this.tooltipUtil.isXoverlap(n)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,n,r.ttItems):this.create(e,this,t,n,r.ttItems,!1);else if(this.tooltipUtil.isXoverlap(n)){var a=i.globals.series.findIndex(function(e,t){return!i.globals.collapsedSeriesIndices.includes(t)});this.create(e,this,a,n,r.ttItems)}}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new C(this.ctx),r=e.globals.dom.Paper.select(".apexcharts-bar-area"),n=0;n<r.length;n++)t.pathMouseLeave(r[n])}},{key:"handleMouseOut",value:function(e){var t=this.w,r=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==r&&r.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var n=0;n<this.yaxisTTEls.length;n++)this.yaxisTTEls[n].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})}},{key:"markerClick",value:function(e,t,r){var n=this.w;"function"==typeof n.config.chart.events.markerClick&&n.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:n}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:n}])}},{key:"create",value:function(e,t,r,n,i){var a,o,s,l,u,c,d,h,f,g,m,v,b,x,y,w,k=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,S=this.w;"mouseup"===e.type&&this.markerClick(e,r,n),null===k&&(k=this.tConfig.shared);var A=this.tooltipUtil.hasMarkers(r),E=this.tooltipUtil.getElBars();if(S.config.legend.tooltipHoverFormatter){var _=S.config.legend.tooltipHoverFormatter,T=Array.from(this.legendLabels);T.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)});for(var P=0;P<T.length;P++){var O=T[P],M=parseInt(O.getAttribute("i"),10),I=decodeURIComponent(O.getAttribute("data:default-text")),L=_(I,{seriesIndex:k?M:r,dataPointIndex:n,w:S});if(k)O.innerHTML=0>S.globals.collapsedSeriesIndices.indexOf(M)?L:I;else if(O.innerHTML=M===r?L:I,r===M)break}}var R=p(p({ttItems:i,i:r,j:n},void 0!==(null===(a=S.globals.seriesRange)||void 0===a||null===(o=a[r])||void 0===o||null===(s=o[n])||void 0===s||null===(l=s.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(u=S.globals.seriesRange)||void 0===u||null===(c=u[r])||void 0===c||null===(d=c[n])||void 0===d||null===(h=d.y[0])||void 0===h?void 0:h.y1}),void 0!==(null===(f=S.globals.seriesRange)||void 0===f||null===(g=f[r])||void 0===g||null===(m=g[n])||void 0===m||null===(v=m.y[0])||void 0===v?void 0:v.y2)&&{y2:null===(b=S.globals.seriesRange)||void 0===b||null===(x=b[r])||void 0===x||null===(y=x[n])||void 0===y||null===(w=y.y[0])||void 0===w?void 0:w.y2});if(k){if(t.tooltipLabels.drawSeriesTexts(p(p({},R),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),A)S.globals.markers.largestSize>0?t.marker.enlargePoints(n):t.tooltipPosition.moveDynamicPointsOnHover(n);else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(E),this.barSeriesHeight>0)){var N=new C(this.ctx),z=S.globals.dom.Paper.select(".apexcharts-bar-area[j='".concat(n,"']"));this.deactivateHoverFilter(),this.tooltipPosition.moveStickyTooltipOverBars(n,r);for(var D=0;D<z.length;D++)N.pathMouseEnter(z[D])}}else t.tooltipLabels.drawSeriesTexts(p({shared:!1},R)),this.tooltipUtil.hasBars()&&t.tooltipPosition.moveStickyTooltipOverBars(n,r),A&&t.tooltipPosition.moveMarkers(r,n)}}]),e}(),eC=function(){function e(t){i(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return o(e,[{key:"handleBarDataLabels",value:function(e){var t,r,n=e.x,i=e.y,a=e.y1,o=e.y2,s=e.i,l=e.j,u=e.realIndex,c=e.columnGroupIndex,d=e.series,h=e.barHeight,f=e.barWidth,g=e.barXPosition,m=e.barYPosition,v=e.visibleSeries,b=e.renderedPath,x=this.w,y=new C(this.barCtx.ctx),w=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[u]:this.barCtx.strokeWidth;x.globals.isXNumeric&&!x.globals.isBarHorizontal?(t=n+parseFloat(f*(v+1)),r=i+parseFloat(h*(v+1))-w):(t=n+parseFloat(f*v),r=i+parseFloat(h*v));var k,S=null,A=n,E=i,_={},T=x.config.dataLabels,P=this.barCtx.barOptions.dataLabels,O=this.barCtx.barOptions.dataLabels.total;void 0!==m&&this.barCtx.isRangeBar&&(r=m,E=m),void 0!==g&&this.barCtx.isVerticalGroupedRangeBar&&(t=g,A=g);var M=T.offsetX,I=T.offsetY,L={width:0,height:0};if(x.config.dataLabels.enabled){var R=x.globals.series[s][l];L=y.getTextRects(x.config.dataLabels.formatter?x.config.dataLabels.formatter(R,p(p({},x),{},{seriesIndex:s,dataPointIndex:l,w:x})):x.globals.yLabelFormatters[0](R),parseFloat(T.style.fontSize))}var N={x:n,y:i,i:s,j:l,realIndex:u,columnGroupIndex:c,renderedPath:b,bcx:t,bcy:r,barHeight:h,barWidth:f,textRects:L,strokeWidth:w,dataLabelsX:A,dataLabelsY:E,dataLabelsConfig:T,barDataLabelsConfig:P,barTotalDataLabelsConfig:O,offX:M,offY:I};return _=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(N):this.calculateColumnsDataLabelsPosition(N),b.attr({cy:_.bcy,cx:_.bcx,j:l,val:x.globals.series[s][l],barHeight:h,barWidth:f}),k=this.drawCalculatedDataLabels({x:_.dataLabelsX,y:_.dataLabelsY,val:this.barCtx.isRangeBar?[a,o]:"100%"===x.config.chart.stackType?d[u][l]:x.globals.series[u][l],i:u,j:l,barWidth:f,barHeight:h,textRects:L,dataLabelsConfig:T}),x.config.chart.stacked&&O.enabled&&(S=this.drawTotalDataLabels({x:_.totalDataLabelsX,y:_.totalDataLabelsY,barWidth:f,barHeight:h,realIndex:u,textAnchor:_.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:u,j:l}),dataLabelsConfig:T,barTotalDataLabelsConfig:O})),{dataLabels:k,totalDataLabels:S}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,r=e.j,n=this.w,i=this.barCtx.stackedSeriesTotals[r];return this.totalFormatter&&(i=this.totalFormatter(i,p(p({},n),{},{seriesIndex:t,dataPointIndex:r,w:n}))),i}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this.w,r=e.i,n=e.j,i=e.realIndex;e.columnGroupIndex;var a,o,s=e.y,l=e.bcx,u=e.barWidth,c=e.barHeight,d=e.textRects,h=e.dataLabelsX,f=e.dataLabelsY,p=e.dataLabelsConfig,g=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,v=e.strokeWidth,b=e.offX,x=e.offY,y=l;c=Math.abs(c);var w="vertical"===t.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:n}).zeroEncounters;l-=v/2;var S=t.globals.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?h+=u/2:(h=t.globals.isXNumeric?l-u/2+b:l-S+u/2+b,k>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(h-=u*k)),w&&(h=h+d.height/2-v/2-2);var A=t.globals.series[r][n]<0,E=s;switch(this.barCtx.isReversed&&(E=s+(A?c:-c)),g.position){case"center":f=w?A?E-c/2+x:E+c/2-x:A?E-c/2+d.height/2+x:E+c/2+d.height/2-x;break;case"bottom":f=w?A?E-c+x:E+c-x:A?E-c+d.height+v+x:E+c-d.height/2+v-x;break;case"top":f=w?A?E+x:E-x:A?E-d.height/2-x:E+d.height+x}if(this.barCtx.lastActiveBarSerieIndex===i&&m.enabled){var _=new C(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:i,j:n}),p.fontSize);a=A?E-_.height/2-x-m.offsetY+18:E+_.height+x+m.offsetY-18,o=y+(t.globals.isXNumeric?-u*t.globals.barGroups.length/2:t.globals.barGroups.length*u/2-(t.globals.barGroups.length-1)*u-S)+m.offsetX}return t.config.chart.stacked||(f<0?f=0+v:f+d.height/3>t.globals.gridHeight&&(f=t.globals.gridHeight-v)),{bcx:l,bcy:s,dataLabelsX:h,dataLabelsY:f,totalDataLabelsX:o,totalDataLabelsY:a,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this.w,r=e.x,n=e.i,i=e.j,a=e.realIndex,o=e.bcy,s=e.barHeight,l=e.barWidth,u=e.textRects,c=e.dataLabelsX,d=e.strokeWidth,h=e.dataLabelsConfig,f=e.barDataLabelsConfig,p=e.barTotalDataLabelsConfig,g=e.offX,m=e.offY,v=t.globals.gridHeight/t.globals.dataPoints;l=Math.abs(l);var b,x,y=o-(this.barCtx.isRangeBar?0:v)+s/2+u.height/2+m-3,w="start",k=t.globals.series[n][i]<0,S=r;switch(this.barCtx.isReversed&&(S=r+(k?-l:l),w=k?"start":"end"),f.position){case"center":c=k?S+l/2-g:Math.max(u.width/2,S-l/2)+g;break;case"bottom":c=k?S+l-d-g:S-l+d+g;break;case"top":c=k?S-d-g:S-d+g}if(this.barCtx.lastActiveBarSerieIndex===a&&p.enabled){var A=new C(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:a,j:i}),h.fontSize);k?(b=S-d-g-p.offsetX,w="end"):b=S+g+p.offsetX+(this.barCtx.isReversed?-(l+d):d),x=y-u.height/2+A.height/2+p.offsetY+d}return t.config.chart.stacked||("start"===h.textAnchor?c-u.width<0?c=k?u.width+d:d:c+u.width>t.globals.gridWidth&&(c=k?t.globals.gridWidth-d:t.globals.gridWidth-u.width-d):"middle"===h.textAnchor?c-u.width/2<0?c=u.width/2+d:c+u.width/2>t.globals.gridWidth&&(c=t.globals.gridWidth-u.width/2-d):"end"===h.textAnchor&&(c<1?c=u.width+d:c+1>t.globals.gridWidth&&(c=t.globals.gridWidth-u.width-d))),{bcx:r,bcy:o,dataLabelsX:c,dataLabelsY:y,totalDataLabelsX:b,totalDataLabelsY:x,totalDataLabelsAnchor:w}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,r=e.y,n=e.val,i=e.i,a=e.j,o=e.textRects,s=e.barHeight,l=e.barWidth,u=e.dataLabelsConfig,c=this.w,d="rotate(0)";"vertical"===c.config.plotOptions.bar.dataLabels.orientation&&(d="rotate(-90, ".concat(t,", ").concat(r,")"));var h=new V(this.barCtx.ctx),f=new C(this.barCtx.ctx),g=u.formatter,m=null,v=c.globals.collapsedSeriesIndices.indexOf(i)>-1;if(u.enabled&&!v){m=f.group({class:"apexcharts-data-labels",transform:d});var b="";void 0!==n&&(b=g(n,p(p({},c),{},{seriesIndex:i,dataPointIndex:a,w:c}))),!n&&c.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(b="");var x=c.globals.series[i][a]<0,y=c.config.plotOptions.bar.dataLabels.position;"vertical"===c.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(u.textAnchor=x?"end":"start"),"center"===y&&(u.textAnchor="middle"),"bottom"===y&&(u.textAnchor=x?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<f.getTextRects(b,parseFloat(u.style.fontSize)).width&&(b=""),c.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?o.width/1.6>Math.abs(l)&&(b=""):o.height/1.6>Math.abs(s)&&(b=""));var w=p({},u);this.barCtx.isHorizontal&&n<0&&("start"===u.textAnchor?w.textAnchor="end":"end"===u.textAnchor&&(w.textAnchor="start")),h.plotDataLabelsText({x:t,y:r,text:b,i:i,j:a,parent:m,dataLabelsConfig:w,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return m}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,r=e.y,n=e.val,i=e.realIndex,a=e.textAnchor,o=e.barTotalDataLabelsConfig;this.w;var s,l=new C(this.barCtx.ctx);return o.enabled&&void 0!==t&&void 0!==r&&this.barCtx.lastActiveBarSerieIndex===i&&(s=l.drawText({x:t,y:r,foreColor:o.style.color,text:n,textAnchor:a,fontFamily:o.style.fontFamily,fontSize:o.style.fontSize,fontWeight:o.style.fontWeight})),s}}]),e}(),eA=function(){function e(t){i(this,e),this.w=t.w,this.barCtx=t}return o(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var r=0;r<e.length;r++)if(e[r].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[r].length),t.globals.isXNumeric)for(var n=0;n<e[r].length;n++)t.globals.seriesX[r][n]>t.globals.minX&&t.globals.seriesX[r][n]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(){var e,t,r,n,i,a,o,s,l=this.w,u=l.globals.dataPoints;this.barCtx.isRangeBar&&(u=l.globals.labels.length);var c=this.barCtx.seriesLen;if(l.config.plotOptions.bar.rangeBarGroupRows&&(c=1),this.barCtx.isHorizontal)i=(r=l.globals.gridHeight/u)/c,l.globals.isXNumeric&&(i=(r=l.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),i=i*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(i=parseInt(this.barCtx.barOptions.barHeight,10)),s=this.barCtx.baseLineInvertedY+l.globals.padHorizontal+(this.barCtx.isReversed?l.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(s=l.globals.gridWidth/2),t=(r-i*this.barCtx.seriesLen)/2;else{if(n=l.globals.gridWidth/this.barCtx.visibleItems,l.config.xaxis.convertedCatToNumeric&&(n=l.globals.gridWidth/l.globals.dataPoints),a=n/c*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l.globals.isXNumeric){var d=this.barCtx.xRatio;l.globals.minXDiff&&.5!==l.globals.minXDiff&&l.globals.minXDiff/d>0&&(n=l.globals.minXDiff/d),(a=n/c*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(a=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(a=parseInt(this.barCtx.barOptions.columnWidth,10)),o=l.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?l.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),e=l.globals.padHorizontal+(n-a*this.barCtx.seriesLen)/2}return l.globals.barHeight=i,l.globals.barWidth=a,{x:e,y:t,yDivision:r,xDivision:n,barHeight:i,barWidth:a,zeroH:o,zeroW:s}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,t,r,n){var i,a,o,s,l,u=this.w,c=this.barCtx.ctx.fill,d=null,h=this.barCtx.barOptions.distributed?r:t;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(n){e[t][r]>=n.from&&e[t][r]<=n.to&&(d=n.color)}),null!==(i=u.config.series[t].data[r])&&void 0!==i&&i.fillColor&&(d=u.config.series[t].data[r].fillColor),c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:n,dataPointIndex:r,color:d,value:e[t][r],fillConfig:null===(a=u.config.series[t].data[r])||void 0===a?void 0:a.fill,fillType:null!==(o=u.config.series[t].data[r])&&void 0!==o&&null!==(s=o.fill)&&void 0!==s&&s.type?null===(l=u.config.series[t].data[r])||void 0===l?void 0:l.fill.type:Array.isArray(u.config.fill.type)?u.config.fill.type[n]:u.config.fill.type})}},{key:"getStrokeWidth",value:function(e,t,r){var n=0,i=this.w;return this.barCtx.series[e][t]?this.barCtx.isNullValue=!1:this.barCtx.isNullValue=!0,i.config.stroke.show&&(this.barCtx.isNullValue||(n=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[r]:this.barCtx.strokeWidth)),n}},{key:"createBorderRadiusArr",value:function(e){var t=this.w,r=!this.w.config.chart.stacked||"last"!==t.config.plotOptions.bar.borderRadiusWhenStacked||t.config.plotOptions.bar.borderRadius<=0,n=e.length,i=e[0].length,a=Array.from({length:n},function(){return Array(i).fill(r?"top":"none")});if(r)return a;for(var o=0;o<i;o++){for(var l=[],u=[],c=0,d=0;d<n;d++){var h=e[d][o];h>0?(l.push(d),c++):h<0&&(u.push(d),c++)}if(l.length>0&&0===u.length){if(1===l.length)a[l[0]][o]="both";else{var f,p=l[0],g=l[l.length-1],m=s(l);try{for(m.s();!(f=m.n()).done;){var v=f.value;a[v][o]=v===p?"bottom":v===g?"top":"none"}}catch(e){m.e(e)}finally{m.f()}}}else if(u.length>0&&0===l.length){if(1===u.length)a[u[0]][o]="both";else{var b,x=u[0],y=u[u.length-1],w=s(u);try{for(w.s();!(b=w.n()).done;){var k=b.value;a[k][o]=k===x?"bottom":k===y?"top":"none"}}catch(e){w.e(e)}finally{w.f()}}}else if(l.length>0&&u.length>0){var S,C=l[l.length-1],A=s(l);try{for(A.s();!(S=A.n()).done;){var E=S.value;a[E][o]=E===C?"top":"none"}}catch(e){A.e(e)}finally{A.f()}var _,T=u[u.length-1],P=s(u);try{for(P.s();!(_=P.n()).done;){var O=_.value;a[O][o]=O===T?"bottom":"none"}}catch(e){P.e(e)}finally{P.f()}}else 1===c&&(a[l[0]||u[0]][o]="both")}return a}},{key:"barBackground",value:function(e){var t=e.j,r=e.i,n=e.x1,i=e.x2,a=e.y1,o=e.y2,s=e.elSeries,l=this.w,u=new C(this.barCtx.ctx),c=new G(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&c===r){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var d=this.barCtx.barOptions.colors.backgroundBarColors[t],h=u.drawRect(void 0!==n?n:0,void 0!==a?a:0,void 0!==i?i:l.globals.gridWidth,void 0!==o?o:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,d,this.barCtx.barOptions.colors.backgroundBarOpacity);s.add(h),h.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,r=e.barWidth,n=e.barXPosition,i=e.y1,a=e.y2,o=e.strokeWidth,s=e.isReversed,l=e.series,u=e.seriesGroup,c=e.realIndex,d=e.i,h=e.j,f=e.w,p=new C(this.barCtx.ctx);(o=Array.isArray(o)?o[c]:o)||(o=0);var g=r,m=n;null!==(t=f.config.series[c].data[h])&&void 0!==t&&t.columnWidthOffset&&(m=n-f.config.series[c].data[h].columnWidthOffset/2,g=r+f.config.series[c].data[h].columnWidthOffset);var v=o/2,b=m+v,x=m+g-v,y=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001-v*y,a+=.001+v*y;var w=p.move(b,i),k=p.move(b,i),S=p.line(x,i);if(f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(c,h,!1)),w=w+p.line(b,a)+p.line(x,a)+S+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][h]?" Z":" z"),k=k+p.line(b,i)+S+S+S+S+S+p.line(b,i)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][h]?" Z":" z"),"none"!==this.arrBorderRadius[c][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var A=this.barCtx;(A=this.barCtx[u]).yArrj.push(a-v*y),A.yArrjF.push(Math.abs(i-a+o*y)),A.yArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"getBarpaths",value:function(e){var t,r=e.barYPosition,n=e.barHeight,i=e.x1,a=e.x2,o=e.strokeWidth,s=e.isReversed,l=e.series,u=e.seriesGroup,c=e.realIndex,d=e.i,h=e.j,f=e.w,p=new C(this.barCtx.ctx);(o=Array.isArray(o)?o[c]:o)||(o=0);var g=r,m=n;null!==(t=f.config.series[c].data[h])&&void 0!==t&&t.barHeightOffset&&(g=r-f.config.series[c].data[h].barHeightOffset/2,m=n+f.config.series[c].data[h].barHeightOffset);var v=o/2,b=g+v,x=g+m-v,y=(l[d][h]>=0?1:-1)*(s?-1:1);i+=.001+v*y,a+=.001-v*y;var w=p.move(i,b),k=p.move(i,b);f.globals.previousPaths.length>0&&(k=this.barCtx.getPreviousPath(c,h,!1));var S=p.line(i,x);if(w=w+p.line(a,b)+p.line(a,x)+S+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][h]?" Z":" z"),k=k+p.line(i,b)+S+S+S+S+S+p.line(i,b)+("around"===f.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[c][h]?" Z":" z"),"none"!==this.arrBorderRadius[c][h]&&(w=p.roundPathCorners(w,f.config.plotOptions.bar.borderRadius)),f.config.chart.stacked){var A=this.barCtx;(A=this.barCtx[u]).xArrj.push(a+v*y),A.xArrjF.push(Math.abs(i-a-o*y)),A.xArrjVal.push(this.barCtx.series[d][h])}return{pathTo:w,pathFrom:k}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,r=this.w,n=0;n<t.length;n++){for(var i=0,a=0;a<t[r.globals.maxValsInArrayIndex].length;a++)i+=t[n][a];0===i&&this.barCtx.zeroSerieses.push(n)}}},{key:"getXForValue",value:function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?t:null;return null!=e&&(r=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),r}},{key:"getYForValue",value:function(e,t,r){var n=!(arguments.length>3&&void 0!==arguments[3])||arguments[3]?t:null;return null!=e&&(n=t-e/this.barCtx.yRatio[r]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[r]:0)),n}},{key:"getGoalValues",value:function(e,t,r,n,i,a){var o=this,s=this.w,l=[],c=function(n,i){var s;l.push((u(s={},e,"x"===e?o.getXForValue(n,t,!1):o.getYForValue(n,r,a,!1)),u(s,"attrs",i),s))};if(s.globals.seriesGoals[n]&&s.globals.seriesGoals[n][i]&&Array.isArray(s.globals.seriesGoals[n][i])&&s.globals.seriesGoals[n][i].forEach(function(e){c(e.value,e)}),this.barCtx.barOptions.isDumbbell&&s.globals.seriesRange.length){var d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:s.globals.colors,h={strokeHeight:"x"===e?0:s.globals.markers.size[n],strokeWidth:"x"===e?s.globals.markers.size[n]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[n])?d[n][0]:d[n]};c(s.globals.seriesRangeStart[n][i],h),c(s.globals.seriesRangeEnd[n][i],p(p({},h),{},{strokeColor:Array.isArray(d[n])?d[n][1]:d[n]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,r=e.barYPosition,n=e.goalX,i=e.goalY,a=e.barWidth,o=e.barHeight,s=new C(this.barCtx.ctx),l=s.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var u=null;return this.barCtx.isHorizontal?Array.isArray(n)&&n.forEach(function(e){if(e.x>=-1&&e.x<=s.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:o/2,n=r+t+o/2;u=s.drawLine(e.x,n-2*t,e.x,n,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(u)}}):Array.isArray(i)&&i.forEach(function(e){if(e.y>=-1&&e.y<=s.w.globals.gridHeight+1){var r=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:a/2,n=t+r+a/2;u=s.drawLine(n-2*r,e.y,n,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(u)}}),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,r=e.currPaths,n=e.color,i=this.w,a=t.x,o=t.x1,s=t.barYPosition,l=r.x,u=r.x1,c=r.barYPosition,d=s+r.barHeight,h=new C(this.barCtx.ctx),f=new w,p=h.move(o,d)+h.line(a,d)+h.line(l,c)+h.line(u,c)+h.line(o,d)+("around"===i.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return h.drawPath({d:p,fill:f.shadeColor(.5,w.rgb2hex(n)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadows"})}},{key:"getZeroValueEncounters",value:function(e){var t,r=e.i,n=e.j,i=this.w,a=0,o=0;return(i.config.plotOptions.bar.horizontal?i.globals.series.map(function(e,t){return t}):(null===(t=i.globals.columnSeries)||void 0===t?void 0:t.i.map(function(e){return e}))||[]).forEach(function(e){var t=i.globals.seriesPercent[e][n];t&&a++,e<r&&0===t&&o++}),{nonZeroColumns:a,zeroEncounters:o}}},{key:"getGroupIndex",value:function(e){var t=this.w,r=t.globals.seriesGroups.findIndex(function(r){return r.indexOf(t.globals.seriesNames[e])>-1}),n=this.barCtx.columnGroupIndices,i=n.indexOf(r);return i<0&&(n.push(r),i=n.length-1),{groupIndex:r,columnGroupIndex:i}}}]),e}(),eE=function(){function e(t,r){i(this,e),this.ctx=t,this.w=t.w;var n=this.w;this.barOptions=n.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=n.config.stroke.width,this.isNullValue=!1,this.isRangeBar=n.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!n.globals.isBarHorizontal&&n.globals.seriesRange.length&&n.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=r,null!==this.xyRatios&&(this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.invertedXRatio=r.invertedXRatio,this.invertedYRatio=r.invertedYRatio,this.baseLineY=r.baseLineY,this.baseLineInvertedY=r.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var a=new G(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var o=a.getBarSeriesIndices(),s=new A(this.ctx);this.stackedSeriesTotals=s.getStackedSeriesTotals(this.w.config.series.map(function(e,t){return -1===o.indexOf(t)?t:-1}).filter(function(e){return -1!==e})),this.barHelpers=new eA(this)}return o(e,[{key:"draw",value:function(e,t){var r=this.w,n=new C(this.ctx),i=new A(this.ctx,r);e=i.getLogSeries(e),this.series=e,this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var a=n.group({class:"apexcharts-bar-series apexcharts-plot-series"});r.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var o=0,s=0;o<e.length;o++,s++){var l,u,c,d,h=void 0,f=void 0,g=[],m=[],v=r.globals.comboCharts?t[o]:o,b=this.barHelpers.getGroupIndex(v).columnGroupIndex,x=n.group({class:"apexcharts-series",rel:o+1,seriesName:w.escapeString(r.globals.seriesNames[v]),"data:realIndex":v});this.ctx.series.addCollapsedClassToSeries(x,v),e[o].length>0&&(this.visibleI=this.visibleI+1);var y=0,k=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[v],this.translationsIndex=v);var S=this.translationsIndex;this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed;var E=this.barHelpers.initialPositions();f=E.y,y=E.barHeight,u=E.yDivision,d=E.zeroW,h=E.x,k=E.barWidth,l=E.xDivision,c=E.zeroH,this.horizontal||m.push(h+k/2);var _=n.group({class:"apexcharts-datalabels","data:realIndex":v});r.globals.delayedElements.push({el:_.node}),_.node.classList.add("apexcharts-element-hidden");var T=n.group({class:"apexcharts-bar-goals-markers"}),P=n.group({class:"apexcharts-bar-shadows"});r.globals.delayedElements.push({el:P.node}),P.node.classList.add("apexcharts-element-hidden");for(var O=0;O<e[o].length;O++){var M=this.barHelpers.getStrokeWidth(o,O,v),I=null,L={indexes:{i:o,j:O,realIndex:v,translationsIndex:S,bc:s},x:h,y:f,strokeWidth:M,elSeries:x};this.isHorizontal?(I=this.drawBarPaths(p(p({},L),{},{barHeight:y,zeroW:d,yDivision:u})),k=this.series[o][O]/this.invertedYRatio):(I=this.drawColumnPaths(p(p({},L),{},{xDivision:l,barWidth:k,zeroH:c})),y=this.series[o][O]/this.yRatio[S]);var R=this.barHelpers.getPathFillColor(e,o,O,v);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&O>0){var N=this.barHelpers.drawBarShadow({color:"string"==typeof R&&-1===(null==R?void 0:R.indexOf("url"))?R:w.hexToRgba(r.globals.colors[o]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:I});N&&P.add(N)}this.pathArr.push(I);var z=this.barHelpers.drawGoalLine({barXPosition:I.barXPosition,barYPosition:I.barYPosition,goalX:I.goalX,goalY:I.goalY,barHeight:y,barWidth:k});z&&T.add(z),f=I.y,h=I.x,O>0&&m.push(h+k/2),g.push(f),this.renderSeries({realIndex:v,pathFill:R,j:O,i:o,columnGroupIndex:b,pathFrom:I.pathFrom,pathTo:I.pathTo,strokeWidth:M,elSeries:x,x:h,y:f,series:e,barHeight:Math.abs(I.barHeight?I.barHeight:y),barWidth:Math.abs(I.barWidth?I.barWidth:k),elDataLabelsWrap:_,elGoalsMarkers:T,elBarShadows:P,visibleSeries:this.visibleI,type:"bar"})}r.globals.seriesXvalues[v]=m,r.globals.seriesYvalues[v]=g,a.add(x)}return a}},{key:"renderSeries",value:function(e){var t=e.realIndex,r=e.pathFill,n=e.lineFill,i=e.j,a=e.i,o=e.columnGroupIndex,s=e.pathFrom,l=e.pathTo,u=e.strokeWidth,c=e.elSeries,d=e.x,h=e.y,f=e.y1,p=e.y2,g=e.series,m=e.barHeight,v=e.barWidth,b=e.barXPosition,x=e.barYPosition,y=e.elDataLabelsWrap,w=e.elGoalsMarkers,k=e.elBarShadows,A=e.visibleSeries,E=e.type,_=e.classes,T=this.w,P=new C(this.ctx);if(!n){var O,M,I="function"==typeof T.globals.stroke.colors[t]?Array.isArray(M=T.config.stroke.colors)&&M.length>0&&((O=M[t])||(O=""),"function"==typeof O)?O({value:T.globals.series[t][i],dataPointIndex:i,w:T}):O:T.globals.stroke.colors[t];n=this.barOptions.distributed?T.globals.stroke.colors[i]:I}T.config.series[a].data[i]&&T.config.series[a].data[i].strokeColor&&(n=T.config.series[a].data[i].strokeColor),this.isNullValue&&(r="none");var L=i/T.config.chart.animations.animateGradually.delay*(T.config.chart.animations.speed/T.globals.dataPoints)/2.4,R=P.renderPaths({i:a,j:i,realIndex:t,pathFrom:s,pathTo:l,stroke:n,strokeWidth:u,strokeLineCap:T.config.stroke.lineCap,fill:r,animationDelay:L,initialSpeed:T.config.chart.animations.speed,dataChangeSpeed:T.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(E,"-area ").concat(_),chartType:E});R.attr("clip-path","url(#gridRectBarMask".concat(T.globals.cuid,")"));var N=T.config.forecastDataPoints;N.count>0&&i>=T.globals.dataPoints-N.count&&(R.node.setAttribute("stroke-dasharray",N.dashArray),R.node.setAttribute("stroke-width",N.strokeWidth),R.node.setAttribute("fill-opacity",N.fillOpacity)),void 0!==f&&void 0!==p&&(R.attr("data-range-y1",f),R.attr("data-range-y2",p)),new S(this.ctx).setSelectionFilter(R,t,i),c.add(R);var z=new eC(this).handleBarDataLabels({x:d,y:h,y1:f,y2:p,i:a,j:i,series:g,realIndex:t,columnGroupIndex:o,barHeight:m,barWidth:v,barXPosition:b,barYPosition:x,renderedPath:R,visibleSeries:A});return null!==z.dataLabels&&y.add(z.dataLabels),z.totalDataLabels&&y.add(z.totalDataLabels),c.add(y),w&&c.add(w),k&&c.add(k),c}},{key:"drawBarPaths",value:function(e){var t,r=e.indexes,n=e.barHeight,i=e.strokeWidth,a=e.zeroW,o=e.x,s=e.y,l=e.yDivision,u=e.elSeries,c=this.w,d=r.i,h=r.j;if(c.globals.isXNumeric)t=(s=(c.globals.seriesX[d][h]-c.globals.minX)/this.invertedXRatio-n)+n*this.visibleI;else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var f=0,p=0;c.globals.seriesPercent.forEach(function(e,t){e[h]&&f++,t<d&&0===e[h]&&p++}),f>0&&(n=this.seriesLen*n/f),t=s+n*this.visibleI-n*p}else t=s+n*this.visibleI;this.isFunnel&&(a-=(this.barHelpers.getXForValue(this.series[d][h],a)-a)/2),o=this.barHelpers.getXForValue(this.series[d][h],a);var g=this.barHelpers.getBarpaths({barYPosition:t,barHeight:n,x1:a,x2:o,strokeWidth:i,isReversed:this.isReversed,series:this.series,realIndex:r.realIndex,i:d,j:h,w:c});return c.globals.isXNumeric||(s+=l),this.barHelpers.barBackground({j:h,i:d,y1:t-n*this.visibleI,y2:n*this.seriesLen,elSeries:u}),{pathTo:g.pathTo,pathFrom:g.pathFrom,x1:a,x:o,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,d,h),barYPosition:t,barHeight:n}}},{key:"drawColumnPaths",value:function(e){var t,r=e.indexes,n=e.x,i=e.y,a=e.xDivision,o=e.barWidth,s=e.zeroH,l=e.strokeWidth,u=e.elSeries,c=this.w,d=r.realIndex,h=r.translationsIndex,f=r.i,p=r.j,g=r.bc;if(c.globals.isXNumeric){var m=this.getBarXForNumericXAxis({x:n,j:p,realIndex:d,barWidth:o});n=m.x,t=m.barXPosition}else if(c.config.plotOptions.bar.hideZeroBarsWhenGrouped){var v=this.barHelpers.getZeroValueEncounters({i:f,j:p}),b=v.nonZeroColumns,x=v.zeroEncounters;b>0&&(o=this.seriesLen*o/b),t=n+o*this.visibleI-o*x}else t=n+o*this.visibleI;i=this.barHelpers.getYForValue(this.series[f][p],s,h);var y=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:o,y1:s,y2:i,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:d,i:f,j:p,w:c});return c.globals.isXNumeric||(n+=a),this.barHelpers.barBackground({bc:g,j:p,i:f,x1:t-l/2-o*this.visibleI,x2:o*this.seriesLen+l/2,elSeries:u}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:n,y:i,goalY:this.barHelpers.getGoalValues("y",null,s,f,p,h),barXPosition:t,barWidth:o}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,r=e.barWidth,n=e.realIndex,i=e.j,a=this.w,o=n;return a.globals.seriesX[n].length||(o=a.globals.maxValsInArrayIndex),a.globals.seriesX[o][i]&&(t=(a.globals.seriesX[o][i]-a.globals.minX)/this.xRatio-r*this.seriesLen/2),{barXPosition:t+r*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var r,n=this.w,i=0;i<n.globals.previousPaths.length;i++){var a=n.globals.previousPaths[i];a.paths&&a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==n.globals.previousPaths[i].paths[t]&&(r=n.globals.previousPaths[i].paths[t].d)}return r}}]),e}(),e_=function(e){d(r,eE);var t=l(r);function r(){return i(this,r),t.apply(this,arguments)}return o(r,[{key:"draw",value:function(e,t){var r=this,n=this.w;this.graphics=new C(this.ctx),this.bar=new eE(this.ctx,this.xyRatios);var i=new A(this.ctx,n);e=i.getLogSeries(e),this.yRatio=i.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===n.config.chart.stackType&&(e=n.globals.comboCharts?t.map(function(e){return n.globals.seriesPercent[e]}):n.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var a=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),o=0,s=0,l=0,u=0;l<e.length;l++,u++)(function(i,l){var u=void 0,c=void 0,d=void 0,h=void 0,f=n.globals.comboCharts?t[i]:i,g=r.barHelpers.getGroupIndex(f),m=g.groupIndex,v=g.columnGroupIndex;r.groupCtx=r[n.globals.seriesGroups[m]];var b=[],x=[],y=0;r.yRatio.length>1&&(r.yaxisIndex=n.globals.seriesYAxisReverseMap[f][0],y=f),r.isReversed=n.config.yaxis[r.yaxisIndex]&&n.config.yaxis[r.yaxisIndex].reversed;var k=r.graphics.group({class:"apexcharts-series",seriesName:w.escapeString(n.globals.seriesNames[f]),rel:i+1,"data:realIndex":f});r.ctx.series.addCollapsedClassToSeries(k,f);var S=r.graphics.group({class:"apexcharts-datalabels","data:realIndex":f}),C=r.graphics.group({class:"apexcharts-bar-goals-markers"}),A=0,E=0,_=r.initialPositions(o,s,u,c,d,h,y);s=_.y,A=_.barHeight,c=_.yDivision,h=_.zeroW,o=_.x,E=_.barWidth,u=_.xDivision,d=_.zeroH,n.globals.barHeight=A,n.globals.barWidth=E,r.barHelpers.initializeStackedXYVars(r),1===r.groupCtx.prevY.length&&r.groupCtx.prevY[0].every(function(e){return isNaN(e)})&&(r.groupCtx.prevY[0]=r.groupCtx.prevY[0].map(function(){return d}),r.groupCtx.prevYF[0]=r.groupCtx.prevYF[0].map(function(){return 0}));for(var T=0;T<n.globals.dataPoints;T++){var P=r.barHelpers.getStrokeWidth(i,T,f),O={indexes:{i:i,j:T,realIndex:f,translationsIndex:y,bc:l},strokeWidth:P,x:o,y:s,elSeries:k,columnGroupIndex:v,seriesGroup:n.globals.seriesGroups[m]},M=null;r.isHorizontal?(M=r.drawStackedBarPaths(p(p({},O),{},{zeroW:h,barHeight:A,yDivision:c})),E=r.series[i][T]/r.invertedYRatio):(M=r.drawStackedColumnPaths(p(p({},O),{},{xDivision:u,barWidth:E,zeroH:d})),A=r.series[i][T]/r.yRatio[y]);var I=r.barHelpers.drawGoalLine({barXPosition:M.barXPosition,barYPosition:M.barYPosition,goalX:M.goalX,goalY:M.goalY,barHeight:A,barWidth:E});I&&C.add(I),s=M.y,o=M.x,b.push(o),x.push(s);var L=r.barHelpers.getPathFillColor(e,i,T,f),R="";n.globals.isBarHorizontal?"bottom"===r.barHelpers.arrBorderRadius[f][T]&&n.globals.series[f][T]>0&&(R="apexcharts-flip-x"):"bottom"===r.barHelpers.arrBorderRadius[f][T]&&n.globals.series[f][T]>0&&(R="apexcharts-flip-y"),k=r.renderSeries({realIndex:f,pathFill:L,j:T,i:i,columnGroupIndex:v,pathFrom:M.pathFrom,pathTo:M.pathTo,strokeWidth:P,elSeries:k,x:o,y:s,series:e,barHeight:A,barWidth:E,elDataLabelsWrap:S,elGoalsMarkers:C,type:"bar",visibleSeries:v,classes:R})}n.globals.seriesXvalues[f]=b,n.globals.seriesYvalues[f]=x,r.groupCtx.prevY.push(r.groupCtx.yArrj),r.groupCtx.prevYF.push(r.groupCtx.yArrjF),r.groupCtx.prevYVal.push(r.groupCtx.yArrjVal),r.groupCtx.prevX.push(r.groupCtx.xArrj),r.groupCtx.prevXF.push(r.groupCtx.xArrjF),r.groupCtx.prevXVal.push(r.groupCtx.xArrjVal),a.add(k)})(l,u);return a}},{key:"initialPositions",value:function(e,t,r,n,i,a,o){var s,l,u=this.w;if(this.isHorizontal){n=u.globals.gridHeight/u.globals.dataPoints;var c=u.config.plotOptions.bar.barHeight;s=-1===String(c).indexOf("%")?parseInt(c,10):n*parseInt(c,10)/100,a=u.globals.padHorizontal+(this.isReversed?u.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(n-s)/2}else{l=r=u.globals.gridWidth/u.globals.dataPoints;var d=u.config.plotOptions.bar.columnWidth;u.globals.isXNumeric&&u.globals.dataPoints>1?l=(r=u.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(d).indexOf("%")?l=parseInt(d,10):l*=parseInt(d,10)/100,i=this.isReversed?this.baseLineY[o]:u.globals.gridHeight-this.baseLineY[o],e=u.globals.padHorizontal+(r-l)/2}var h=u.globals.barGroups.length||1;return{x:e,y:t,yDivision:n,xDivision:r,barHeight:s/h,barWidth:l/h,zeroH:i,zeroW:a}}},{key:"drawStackedBarPaths",value:function(e){for(var t,r,n=e.indexes,i=e.barHeight,a=e.strokeWidth,o=e.zeroW,s=e.x,l=e.y,u=e.columnGroupIndex,c=e.seriesGroup,d=e.yDivision,h=e.elSeries,f=this.w,p=l+u*i,g=n.i,m=n.j,v=n.realIndex,b=n.translationsIndex,x=0,y=0;y<this.groupCtx.prevXF.length;y++)x+=this.groupCtx.prevXF[y][m];if((t=c.indexOf(f.config.series[v].name))>0){var w=o;this.groupCtx.prevXVal[t-1][m]<0?w=this.series[g][m]>=0?this.groupCtx.prevX[t-1][m]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[t-1][m]:this.groupCtx.prevXVal[t-1][m]>=0&&(w=this.series[g][m]>=0?this.groupCtx.prevX[t-1][m]:this.groupCtx.prevX[t-1][m]-x+2*(this.isReversed?x:0)),r=w}else r=o;s=null===this.series[g][m]?r:r+this.series[g][m]/this.invertedYRatio-2*(this.isReversed?this.series[g][m]/this.invertedYRatio:0);var k=this.barHelpers.getBarpaths({barYPosition:p,barHeight:i,x1:r,x2:s,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:n.realIndex,seriesGroup:c,i:g,j:m,w:f});return this.barHelpers.barBackground({j:m,i:g,y1:p,y2:i,elSeries:h}),l+=d,{pathTo:k.pathTo,pathFrom:k.pathFrom,goalX:this.barHelpers.getGoalValues("x",o,null,g,m,b),barXPosition:r,barYPosition:p,x:s,y:l}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,r=e.x,n=e.y,i=e.xDivision,a=e.barWidth,o=e.zeroH,s=e.columnGroupIndex,l=e.seriesGroup,u=e.elSeries,c=this.w,d=t.i,h=t.j,f=t.bc,p=t.realIndex,g=t.translationsIndex;if(c.globals.isXNumeric){var m=c.globals.seriesX[p][h];m||(m=0),r=(m-c.globals.minX)/this.xRatio-a/2*c.globals.barGroups.length}for(var v,b=r+s*a,x=0,y=0;y<this.groupCtx.prevYF.length;y++)x+=isNaN(this.groupCtx.prevYF[y][h])?0:this.groupCtx.prevYF[y][h];var w=d;if(l&&(w=l.indexOf(c.globals.seriesNames[p])),w>0&&!c.globals.isXNumeric||w>0&&c.globals.isXNumeric&&c.globals.seriesX[p-1][h]===c.globals.seriesX[p][h]){var k,S,C,A,E,_,T=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[w-1]&&this.groupCtx.prevY[w-1].length){for(var P=1;P<T;P++)if(!isNaN(null===(k=this.groupCtx.prevY[w-P])||void 0===k?void 0:k[h])){_=this.groupCtx.prevY[w-P][h];break}}for(var O=1;O<T;O++){if((null===(S=this.groupCtx.prevYVal[w-O])||void 0===S?void 0:S[h])<0){E=this.series[d][h]>=0?_-x+2*(this.isReversed?x:0):_;break}if((null===(C=this.groupCtx.prevYVal[w-O])||void 0===C?void 0:C[h])>=0){E=this.series[d][h]>=0?_:_+x-2*(this.isReversed?x:0);break}}void 0===E&&(E=c.globals.gridHeight),v=null!==(A=this.groupCtx.prevYF[0])&&void 0!==A&&A.every(function(e){return 0===e})&&this.groupCtx.prevYF.slice(1,w).every(function(e){return e.every(function(e){return isNaN(e)})})?o:E}else v=o;n=this.series[d][h]?v-this.series[d][h]/this.yRatio[g]+2*(this.isReversed?this.series[d][h]/this.yRatio[g]:0):v;var M=this.barHelpers.getColumnPaths({barXPosition:b,barWidth:a,y1:v,y2:n,yRatio:this.yRatio[g],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:d,j:h,w:c});return this.barHelpers.barBackground({bc:f,j:h,i:d,x1:b,x2:a,elSeries:u}),{pathTo:M.pathTo,pathFrom:M.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,o,d,h),barXPosition:b,x:c.globals.isXNumeric?r:r+i,y:n}}}]),r}(),eT=function(e){d(r,eE);var t=l(r);function r(){return i(this,r),t.apply(this,arguments)}return o(r,[{key:"draw",value:function(e,t,r){var n=this,i=this.w,a=new C(this.ctx),o=i.globals.comboCharts?t:i.config.chart.type,s=new X(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal;var l=new A(this.ctx,i);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var u=a.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),c=function(t){n.isBoxPlot="boxPlot"===i.config.chart.type||"boxPlot"===i.config.series[t].type;var o,l,c,d,h=void 0,f=void 0,g=[],m=[],v=i.globals.comboCharts?r[t]:t,b=n.barHelpers.getGroupIndex(v).columnGroupIndex,x=a.group({class:"apexcharts-series",seriesName:w.escapeString(i.globals.seriesNames[v]),rel:t+1,"data:realIndex":v});n.ctx.series.addCollapsedClassToSeries(x,v),e[t].length>0&&(n.visibleI=n.visibleI+1);var y,k,S=0;n.yRatio.length>1&&(n.yaxisIndex=i.globals.seriesYAxisReverseMap[v][0],S=v);var C=n.barHelpers.initialPositions();f=C.y,y=C.barHeight,l=C.yDivision,d=C.zeroW,h=C.x,k=C.barWidth,o=C.xDivision,c=C.zeroH,m.push(h+k/2);for(var A=a.group({class:"apexcharts-datalabels","data:realIndex":v}),E=function(r){var a=n.barHelpers.getStrokeWidth(t,r,v),u=null,w={indexes:{i:t,j:r,realIndex:v,translationsIndex:S},x:h,y:f,strokeWidth:a,elSeries:x};f=(u=n.isHorizontal?n.drawHorizontalBoxPaths(p(p({},w),{},{yDivision:l,barHeight:y,zeroW:d})):n.drawVerticalBoxPaths(p(p({},w),{},{xDivision:o,barWidth:k,zeroH:c}))).y,h=u.x,r>0&&m.push(h+k/2),g.push(f),u.pathTo.forEach(function(o,l){var c=!n.isBoxPlot&&n.candlestickOptions.wick.useFillColor?u.color[l]:i.globals.stroke.colors[t],d=s.fillPath({seriesNumber:v,dataPointIndex:r,color:u.color[l],value:e[t][r]});n.renderSeries({realIndex:v,pathFill:d,lineFill:c,j:r,i:t,pathFrom:u.pathFrom,pathTo:o,strokeWidth:a,elSeries:x,x:h,y:f,series:e,columnGroupIndex:b,barHeight:y,barWidth:k,elDataLabelsWrap:A,visibleSeries:n.visibleI,type:i.config.chart.type})})},_=0;_<i.globals.dataPoints;_++)E(_);i.globals.seriesXvalues[v]=m,i.globals.seriesYvalues[v]=g,u.add(x)},d=0;d<e.length;d++)c(d);return u}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,r=e.x;e.y;var n=e.xDivision,i=e.barWidth,a=e.zeroH,o=e.strokeWidth,s=this.w,l=new C(this.ctx),u=t.i,c=t.j,d=!0,h=s.config.plotOptions.candlestick.colors.upward,f=s.config.plotOptions.candlestick.colors.downward,p="";this.isBoxPlot&&(p=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var g=this.yRatio[t.translationsIndex],m=t.realIndex,v=this.getOHLCValue(m,c),b=a,x=a;v.o>v.c&&(d=!1);var y=Math.min(v.o,v.c),w=Math.max(v.o,v.c),k=v.m;s.globals.isXNumeric&&(r=(s.globals.seriesX[m][c]-s.globals.minX)/this.xRatio-i/2);var S=r+i*this.visibleI;void 0===this.series[u][c]||null===this.series[u][c]?(y=a,w=a):(y=a-y/g,w=a-w/g,b=a-v.h/g,x=a-v.l/g,k=a-v.m/g);var A=l.move(S,a),E=l.move(S+i/2,y);return s.globals.previousPaths.length>0&&(E=this.getPreviousPath(m,c,!0)),A=this.isBoxPlot?[l.move(S,y)+l.line(S+i/2,y)+l.line(S+i/2,b)+l.line(S+i/4,b)+l.line(S+i-i/4,b)+l.line(S+i/2,b)+l.line(S+i/2,y)+l.line(S+i,y)+l.line(S+i,k)+l.line(S,k)+l.line(S,y+o/2),l.move(S,k)+l.line(S+i,k)+l.line(S+i,w)+l.line(S+i/2,w)+l.line(S+i/2,x)+l.line(S+i-i/4,x)+l.line(S+i/4,x)+l.line(S+i/2,x)+l.line(S+i/2,w)+l.line(S,w)+l.line(S,k)+"z"]:[l.move(S,w)+l.line(S+i/2,w)+l.line(S+i/2,b)+l.line(S+i/2,w)+l.line(S+i,w)+l.line(S+i,y)+l.line(S+i/2,y)+l.line(S+i/2,x)+l.line(S+i/2,y)+l.line(S,y)+l.line(S,w-o/2)],E+=l.move(S,y),s.globals.isXNumeric||(r+=n),{pathTo:A,pathFrom:E,x:r,y:w,barXPosition:S,color:this.isBoxPlot?p:d?[h]:[f]}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var r=e.y,n=e.yDivision,i=e.barHeight,a=e.zeroW,o=e.strokeWidth,s=this.w,l=new C(this.ctx),u=t.i,c=t.j,d=this.boxOptions.colors.lower;this.isBoxPlot&&(d=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var h=this.invertedYRatio,f=t.realIndex,p=this.getOHLCValue(f,c),g=a,m=a,v=Math.min(p.o,p.c),b=Math.max(p.o,p.c),x=p.m;s.globals.isXNumeric&&(r=(s.globals.seriesX[f][c]-s.globals.minX)/this.invertedXRatio-i/2);var y=r+i*this.visibleI;void 0===this.series[u][c]||null===this.series[u][c]?(v=a,b=a):(v=a+v/h,b=a+b/h,g=a+p.h/h,m=a+p.l/h,x=a+p.m/h);var w=l.move(a,y),k=l.move(v,y+i/2);return s.globals.previousPaths.length>0&&(k=this.getPreviousPath(f,c,!0)),w=[l.move(v,y)+l.line(v,y+i/2)+l.line(g,y+i/2)+l.line(g,y+i/2-i/4)+l.line(g,y+i/2+i/4)+l.line(g,y+i/2)+l.line(v,y+i/2)+l.line(v,y+i)+l.line(x,y+i)+l.line(x,y)+l.line(v+o/2,y),l.move(x,y)+l.line(x,y+i)+l.line(b,y+i)+l.line(b,y+i/2)+l.line(m,y+i/2)+l.line(m,y+i-i/4)+l.line(m,y+i/4)+l.line(m,y+i/2)+l.line(b,y+i/2)+l.line(b,y)+l.line(x,y)+"z"],k+=l.move(v,y),s.globals.isXNumeric||(r+=n),{pathTo:w,pathFrom:k,x:b,y:r,barYPosition:y,color:d}}},{key:"getOHLCValue",value:function(e,t){var r=this.w;return{o:this.isBoxPlot?r.globals.seriesCandleH[e][t]:r.globals.seriesCandleO[e][t],h:this.isBoxPlot?r.globals.seriesCandleO[e][t]:r.globals.seriesCandleH[e][t],m:r.globals.seriesCandleM[e][t],l:this.isBoxPlot?r.globals.seriesCandleC[e][t]:r.globals.seriesCandleL[e][t],c:this.isBoxPlot?r.globals.seriesCandleL[e][t]:r.globals.seriesCandleC[e][t]}}}]),r}(),eP=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,r=e.config.plotOptions[e.config.chart.type];return r.colorScale.ranges.length>0&&r.colorScale.ranges.map(function(e,r){e.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,r,n){var i=this.w,a=1,o=i.config.plotOptions[e].shadeIntensity,s=this.determineColor(e,t,r);i.globals.hasNegs||n?a=i.config.plotOptions[e].reverseNegativeShade?s.percent<0?s.percent/100*(1.25*o):(1-s.percent/100)*(1.25*o):s.percent<=0?1-(1+s.percent/100)*o:(1-s.percent/100)*o:(a=1-s.percent/100,"treemap"===e&&(a=(1-s.percent/100)*(1.25*o)));var l=s.color,u=new w;if(i.config.plotOptions[e].enableShades){if("dark"===this.w.config.theme.mode){var c=u.shadeColor(-1*a,s.color);l=w.hexToRgba(w.isColorHex(c)?c:w.rgb2hex(c),i.config.fill.opacity)}else{var d=u.shadeColor(a,s.color);l=w.hexToRgba(w.isColorHex(d)?d:w.rgb2hex(d),i.config.fill.opacity)}}return{color:l,colorProps:s}}},{key:"determineColor",value:function(e,t,r){var n=this.w,i=n.globals.series[t][r],a=n.config.plotOptions[e],o=a.colorScale.inverse?r:t;a.distributed&&"treemap"===n.config.chart.type&&(o=r);var s=n.globals.colors[o],l=null,u=Math.min.apply(Math,v(n.globals.series[t])),c=Math.max.apply(Math,v(n.globals.series[t]));a.distributed||"heatmap"!==e||(u=n.globals.minY,c=n.globals.maxY),void 0!==a.colorScale.min&&(u=a.colorScale.min<n.globals.minY?a.colorScale.min:n.globals.minY,c=a.colorScale.max>n.globals.maxY?a.colorScale.max:n.globals.maxY);var d=Math.abs(c)+Math.abs(u),h=100*i/(0===d?d-1e-6:d);return a.colorScale.ranges.length>0&&a.colorScale.ranges.map(function(e,t){if(i>=e.from&&i<=e.to){s=e.color,l=e.foreColor?e.foreColor:null,u=e.from;var r=Math.abs(c=e.to)+Math.abs(u);h=100*i/(0===r?r-1e-6:r)}}),{color:s,foreColor:l,percent:h}}},{key:"calculateDataLabels",value:function(e){var t=e.text,r=e.x,n=e.y,i=e.i,a=e.j,o=e.colorProps,s=e.fontSize,l=this.w.config.dataLabels,u=new C(this.ctx),c=new V(this.ctx),d=null;if(l.enabled){d=u.group({class:"apexcharts-data-labels"});var h=l.offsetX,f=l.offsetY,p=n+parseFloat(l.style.fontSize)/3+f;c.plotDataLabelsText({x:r+h,y:p,text:t,i:i,j:a,color:o.foreColor,parent:d,fontSize:s,dataLabelsConfig:l})}return d}},{key:"addListeners",value:function(e){var t=new C(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),eO=function(){function e(t,r){i(this,e),this.ctx=t,this.w=t.w,this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new eP(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return o(e,[{key:"draw",value:function(e){var t=this.w,r=new C(this.ctx),n=r.group({class:"apexcharts-heatmap"});n.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var i=t.globals.gridWidth/t.globals.dataPoints,a=t.globals.gridHeight/t.globals.series.length,o=0,s=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(s=!0,l.reverse());for(var u=s?0:l.length-1;s?u<l.length:u>=0;s?u++:u--){var c=r.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:w.escapeString(t.globals.seriesNames[u]),rel:u+1,"data:realIndex":u});if(this.ctx.series.addCollapsedClassToSeries(c,u),t.config.chart.dropShadow.enabled){var d=t.config.chart.dropShadow;new S(this.ctx).dropShadow(c,d,u)}for(var h=0,f=t.config.plotOptions.heatmap.shadeIntensity,p=0;p<l[u].length;p++){var g=this.helpers.getShadeColor(t.config.chart.type,u,p,this.negRange),m=g.color,v=g.colorProps;"image"===t.config.fill.type&&(m=new X(this.ctx).fillPath({seriesNumber:u,dataPointIndex:p,opacity:t.globals.hasNegs?v.percent<0?1-(1+v.percent/100):f+v.percent/100:v.percent/100,patternID:w.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:i,height:t.config.fill.image.height?t.config.fill.image.height:a}));var b=this.rectRadius,x=r.drawRect(h,o,i,a,b);if(x.attr({cx:h,cy:o}),x.node.classList.add("apexcharts-heatmap-rect"),c.add(x),x.attr({fill:m,i:u,index:u,j:p,val:e[u][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(x),t.config.chart.animations.enabled&&!t.globals.dataChanged){var y=1;t.globals.resized||(y=t.config.chart.animations.speed),this.animateHeatMap(x,h,o,i,a,y)}if(t.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){k=this.dynamicAnim.speed;var A=t.globals.previousPaths[u]&&t.globals.previousPaths[u][p]&&t.globals.previousPaths[u][p].color;A||(A="rgba(255, 255, 255, 0)"),this.animateHeatColor(x,w.isColorHex(A)?A:w.rgb2hex(A),w.isColorHex(m)?m:w.rgb2hex(m),k)}}var E=(0,t.config.dataLabels.formatter)(t.globals.series[u][p],{value:t.globals.series[u][p],seriesIndex:u,dataPointIndex:p,w:t}),_=this.helpers.calculateDataLabels({text:E,x:h+i/2,y:o+a/2,i:u,j:p,colorProps:v,series:l});null!==_&&c.add(_),h+=i}o+=a,n.add(c)}var T=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?T.unshift(""):T.push(""),t.globals.yAxisScale[0].result=T,n}},{key:"animateHeatMap",value:function(e,t,r,n,i,a){var o=new k(this.ctx);o.animateRect(e,{x:t+n/2,y:r+i/2,width:0,height:0},{x:t,y:r,width:n,height:i},a,function(){o.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,r,n){e.attr({fill:t}).animate(n).attr({fill:r})}}]),e}(),eM=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawYAxisTexts",value:function(e,t,r,n){var i=this.w,a=i.config.yaxis[0],o=i.globals.yLabelFormatters[0];return new C(this.ctx).drawText({x:e+a.labels.offsetX,y:t+a.labels.offsetY,text:o(n,r),textAnchor:"middle",fontSize:a.labels.style.fontSize,fontFamily:a.labels.style.fontFamily,foreColor:Array.isArray(a.labels.style.colors)?a.labels.style.colors[r]:a.labels.style.colors})}}]),e}(),eI=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==r.globals.stroke.colors?r.globals.stroke.colors:r.globals.colors,this.defaultSize=Math.min(r.globals.gridWidth,r.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=r.globals.gridWidth/2,"radialBar"===r.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(r.config.plotOptions.pie.endAngle-r.config.plotOptions.pie.startAngle),this.initialAngle=r.config.plotOptions.pie.startAngle%this.fullAngle,r.globals.radialSize=this.defaultSize/2.05-r.config.stroke.width-(r.config.chart.sparkline.enabled?0:r.config.chart.dropShadow.blur),this.donutSize=r.globals.radialSize*parseInt(r.config.plotOptions.pie.donut.size,10)/100;var n=r.config.plotOptions.pie.customScale,a=r.globals.gridWidth/2,o=r.globals.gridHeight/2;this.translateX=a-a*n,this.translateY=o-o*n,this.dataLabelsGroup=new C(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(n,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return o(e,[{key:"draw",value:function(e){var t=this,r=this.w,n=new C(this.ctx),i=n.group({class:"apexcharts-pie"});if(r.globals.noData)return i;for(var a=0,o=0;o<e.length;o++)a+=w.negToZero(e[o]);var s=[],l=n.group();0===a&&(a=1e-5),e.forEach(function(e){t.maxY=Math.max(t.maxY,e)}),r.config.yaxis[0].max&&(this.maxY=r.config.yaxis[0].max),"back"===r.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i);for(var u=0;u<e.length;u++){var c=this.fullAngle*w.negToZero(e[u])/a;s.push(c),"polarArea"===this.chartType?(s[u]=this.fullAngle/e.length,this.sliceSizes.push(r.globals.radialSize*e[u]/this.maxY)):this.sliceSizes.push(r.globals.radialSize)}if(r.globals.dataChanged){for(var d,h=0,f=0;f<r.globals.previousPaths.length;f++)h+=w.negToZero(r.globals.previousPaths[f]);for(var p=0;p<r.globals.previousPaths.length;p++)d=this.fullAngle*w.negToZero(r.globals.previousPaths[p])/h,this.prevSectorAngleArr.push(d)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var g=n.drawCircle(this.donutSize);g.attr({cx:this.centerX,cy:this.centerY,fill:r.config.plotOptions.pie.donut.background?r.config.plotOptions.pie.donut.background:"transparent"}),l.add(g)}var m=this.drawArcs(s,e);if(this.sliceLabels.forEach(function(e){m.add(e)}),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(r.config.plotOptions.pie.customScale,")")}),l.add(m),i.add(l),this.donutDataLabels.show){var v=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});i.add(v)}return"front"===r.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(i),i}},{key:"drawArcs",value:function(e,t){var r=this.w,n=new S(this.ctx),i=new C(this.ctx),a=new X(this.ctx),o=i.group({class:"apexcharts-slices"}),s=this.initialAngle,l=this.initialAngle,u=this.initialAngle,c=this.initialAngle;this.strokeWidth=r.config.stroke.show?r.config.stroke.width:0;for(var d=0;d<e.length;d++){var h=i.group({class:"apexcharts-series apexcharts-pie-series",seriesName:w.escapeString(r.globals.seriesNames[d]),rel:d+1,"data:realIndex":d});o.add(h),l=c,u=(s=u)+e[d],c=l+this.prevSectorAngleArr[d];var f=u<s?this.fullAngle+u-s:u-s,p=a.fillPath({seriesNumber:d,size:this.sliceSizes[d],value:t[d]}),g=this.getChangedPath(l,c),m=i.drawPath({d:g,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[d]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:r.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(d)});if(m.attr({index:0,j:d}),n.setSelectionFilter(m,0,d),r.config.chart.dropShadow.enabled){var v=r.config.chart.dropShadow;n.dropShadow(m,v,d)}this.addListeners(m,this.donutDataLabels),C.setAttrs(m.node,{"data:angle":f,"data:startAngle":s,"data:strokeWidth":this.strokeWidth,"data:value":t[d]});var b={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?b=w.polarToCartesian(this.centerX,this.centerY,r.globals.radialSize/1.25+r.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle):"donut"===this.chartType&&(b=w.polarToCartesian(this.centerX,this.centerY,(r.globals.radialSize+this.donutSize)/2+r.config.plotOptions.pie.dataLabels.offset,(s+f/2)%this.fullAngle)),h.add(m);var x=0;if(!this.initialAnim||r.globals.resized||r.globals.dataChanged?this.animBeginArr.push(0):(0==(x=f/this.fullAngle*r.config.chart.animations.speed)&&(x=1),this.animDur=x+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&r.globals.dataChanged?this.animatePaths(m,{size:this.sliceSizes[d],endAngle:u,startAngle:s,prevStartAngle:l,prevEndAngle:c,animateStartingPos:!0,i:d,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:r.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(m,{size:this.sliceSizes[d],endAngle:u,startAngle:s,i:d,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:x}),r.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&m.node.addEventListener("mouseup",this.pieClicked.bind(this,d)),void 0!==r.globals.selectedDataPoints[0]&&r.globals.selectedDataPoints[0].indexOf(d)>-1&&this.pieClicked(d),r.config.dataLabels.enabled){var y=b.x,k=b.y,A=100*f/this.fullAngle+"%";if(0!==f&&r.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[d]){var E=r.config.dataLabels.formatter;void 0!==E&&(A=E(r.globals.seriesPercent[d][0],{seriesIndex:d,w:r}));var _=r.globals.dataLabels.style.colors[d],T=i.group({class:"apexcharts-datalabels"}),P=i.drawText({x:y,y:k,text:A,textAnchor:"middle",fontSize:r.config.dataLabels.style.fontSize,fontFamily:r.config.dataLabels.style.fontFamily,fontWeight:r.config.dataLabels.style.fontWeight,foreColor:_});if(T.add(P),r.config.dataLabels.dropShadow.enabled){var O=r.config.dataLabels.dropShadow;n.dropShadow(P,O)}P.node.classList.add("apexcharts-pie-label"),r.config.chart.animations.animate&&!1===r.globals.resized&&(P.node.classList.add("apexcharts-pie-label-delay"),P.node.style.animationDelay=r.config.chart.animations.speed/940+"s"),this.sliceLabels.push(T)}}}return o}},{key:"addListeners",value:function(e,t){var r=new C(this.ctx);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var r=this.w,n=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,i=n,a=t.startAngle,o=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(a=t.prevEndAngle,i=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===r.config.series.length-1&&(n+o>this.fullAngle?t.endAngle=t.endAngle-(n+o):n+o<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(n+o)))),n===this.fullAngle&&(n=this.fullAngle-.01),this.animateArc(e,a,o,n,i,t)}},{key:"animateArc",value:function(e,t,r,n,i,a){var o,s=this,l=this.w,u=new k(this.ctx),c=a.size;(isNaN(t)||isNaN(i))&&(t=r,i=n,a.dur=0);var d=n,h=r,f=t<r?this.fullAngle+t-r:t-r;l.globals.dataChanged&&a.shouldSetPrevPaths&&a.prevEndAngle&&(o=s.getPiePath({me:s,startAngle:a.prevStartAngle,angle:a.prevEndAngle<a.prevStartAngle?this.fullAngle+a.prevEndAngle-a.prevStartAngle:a.prevEndAngle-a.prevStartAngle,size:c}),e.attr({d:o})),0!==a.dur?e.animate(a.dur,l.globals.easing,a.animBeginArr[a.i]).afterAll(function(){"pie"!==s.chartType&&"donut"!==s.chartType&&"polarArea"!==s.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":s.strokeWidth}),a.i===l.config.series.length-1&&u.animationCompleted(e)}).during(function(l){d=f+(n-f)*l,a.animateStartingPos&&(d=i+(n-i)*l,h=t-i+(r-(t-i))*l),o=s.getPiePath({me:s,startAngle:h,angle:d,size:c}),e.node.setAttribute("data:pathOrig",o),e.attr({d:o})}):(o=s.getPiePath({me:s,startAngle:h,angle:n,size:c}),a.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",o),e.attr({d:o,"stroke-width":s.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,r=this.w,n=this.sliceSizes[e]+(r.config.plotOptions.pie.expandOnClick?4:0),i=r.globals.dom.Paper.select(".apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(e)).members[0];if("true"!==i.attr("data:pieClicked")){var a=r.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(a,function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)}),r.globals.capturedDataPointIndex=e,i.attr("data:pieClicked","true");var o=parseInt(i.attr("data:startAngle"),10),s=parseInt(i.attr("data:angle"),10);t=this.getPiePath({me:this,startAngle:o,angle:s,size:n}),360!==s&&i.plot(t)}else{i.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(i.node,this.donutDataLabels);var l=i.attr("data:pathOrig");i.attr({d:l})}}},{key:"getChangedPath",value:function(e,t){var r="";return this.dynamicAnim&&this.w.globals.dataChanged&&(r=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),r}},{key:"getPiePath",value:function(e){var t,r=e.me,n=e.startAngle,i=e.angle,a=e.size,o=new C(this.ctx),s=Math.PI*(n-90)/180,l=i+n;Math.ceil(l)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(l=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(l)>this.fullAngle&&(l-=this.fullAngle);var u=Math.PI*(l-90)/180,c=r.centerX+a*Math.cos(s),d=r.centerY+a*Math.sin(s),h=r.centerX+a*Math.cos(u),f=r.centerY+a*Math.sin(u),p=w.polarToCartesian(r.centerX,r.centerY,r.donutSize,l),g=w.polarToCartesian(r.centerX,r.centerY,r.donutSize,n),m=i>180?1:0,v=["M",c,d,"A",a,a,0,m,1,h,f];return t="donut"===r.chartType?[].concat(v,["L",p.x,p.y,"A",r.donutSize,r.donutSize,0,m,0,g.x,g.y,"L",c,d,"z"]).join(" "):"pie"===r.chartType||"polarArea"===r.chartType?[].concat(v,["L",r.centerX,r.centerY,"L",c,d]).join(" "):[].concat(v).join(" "),o.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,r=new Q(this.ctx),n=new C(this.ctx),i=new eM(this.ctx),a=n.group(),o=n.group(),s=r.niceScale(0,Math.ceil(this.maxY),0),l=s.result.reverse(),u=s.result.length;this.maxY=s.niceMax;for(var c=t.globals.radialSize,d=c/(u-1),h=0;h<u-1;h++){var f=n.drawCircle(c);if(f.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=i.drawYAxisTexts(this.centerX,this.centerY-c+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,h,l[h]);o.add(p)}a.add(f),c-=d}this.drawSpokes(e),e.add(a),e.add(o)}},{key:"renderInnerDataLabels",value:function(e,t,r){var n=this.w,i=new C(this.ctx),a=t.total.show;e.node.innerHTML="",e.node.style.opacity=r.opacity;var o,s,l=r.centerX,u=this.donutDataLabels.total.label?r.centerY:r.centerY-r.centerY/6;o=void 0===t.name.color?n.globals.colors[0]:t.name.color;var c=t.name.fontSize,d=t.name.fontFamily,h=t.name.fontWeight;s=void 0===t.value.color?n.config.chart.foreColor:t.value.color;var f=t.value.formatter,p="",g="";if(a?(o=t.total.color,c=t.total.fontSize,d=t.total.fontFamily,h=t.total.fontWeight,g=this.donutDataLabels.total.label?t.total.label:"",p=t.total.formatter(n)):1===n.globals.series.length&&(p=f(n.globals.series[0],n),g=n.globals.seriesNames[0]),g&&(g=t.name.formatter(g,t.total.show,n)),t.name.show){var m=i.drawText({x:l,y:u+parseFloat(t.name.offsetY),text:g,textAnchor:"middle",foreColor:o,fontSize:c,fontWeight:h,fontFamily:d});m.node.classList.add("apexcharts-datalabel-label"),e.add(m)}if(t.value.show){var v=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,b=i.drawText({x:l,y:u+v,text:p,textAnchor:"middle",foreColor:s,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});b.node.classList.add("apexcharts-datalabel-value"),e.add(b)}return e}},{key:"printInnerLabels",value:function(e,t,r,n){var i,a=this.w;n?i=void 0===e.name.color?a.globals.colors[parseInt(n.parentNode.getAttribute("rel"),10)-1]:e.name.color:a.globals.series.length>1&&e.total.show&&(i=e.total.color);var o=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),s=a.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");r=(0,e.value.formatter)(r,a),n||"function"!=typeof e.total.formatter||(r=e.total.formatter(a));var l=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,l,a):"",null!==o&&(o.textContent=t),null!==s&&(s.textContent=r),null!==o&&(o.style.fill=i)}},{key:"printDataLabelsInner",value:function(e,t){var r=this.w,n=e.getAttribute("data:value"),i=r.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];r.globals.series.length>1&&this.printInnerLabels(t,i,n,e);var a=r.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==a&&(a.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,r=this.w,n=new C(this.ctx),i=r.config.plotOptions.polarArea.spokes;if(0!==i.strokeWidth){for(var a=[],o=360/r.globals.series.length,s=0;s<r.globals.series.length;s++)a.push(w.polarToCartesian(this.centerX,this.centerY,r.globals.radialSize,r.config.plotOptions.pie.startAngle+o*s));a.forEach(function(r,a){var o=n.drawLine(r.x,r.y,t.centerX,t.centerY,Array.isArray(i.connectorColors)?i.connectorColors[a]:i.connectorColors);e.add(o)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0],r=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.select(".apexcharts-radialbar, .apexcharts-pie").members[0].add(r)}}}]),e}(),eL=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var r=this.w;this.graphics=new C(this.ctx),this.lineColorArr=void 0!==r.globals.stroke.colors?r.globals.stroke.colors:r.globals.colors,this.defaultSize=r.globals.svgHeight<r.globals.svgWidth?r.globals.gridHeight:r.globals.gridWidth,this.isLog=r.config.yaxis[0].logarithmic,this.logBase=r.config.yaxis[0].logBase,this.coreUtils=new A(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,r.globals.maxY,0):r.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):r.globals.minY,this.polygons=r.config.plotOptions.radar.polygons,this.strokeWidth=r.config.stroke.show?r.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-r.config.chart.dropShadow.blur,r.config.xaxis.labels.show&&(this.size=this.size-r.globals.xAxisLabelsWidth/1.75),void 0!==r.config.plotOptions.radar.size&&(this.size=r.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return o(e,[{key:"draw",value:function(e){var t=this,r=this.w,n=new X(this.ctx),i=[],a=new V(this.ctx);e.length&&(this.dataPointsLen=e[r.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var o=r.globals.gridWidth/2,s=r.globals.gridHeight/2,l=o+r.config.plotOptions.radar.offsetX,u=s+r.config.plotOptions.radar.offsetY,c=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(u||0,")")}),d=[],h=null,f=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(e,o){var s=e.length===r.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":s,seriesName:w.escapeString(r.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});t.dataRadiusOfPercent[o]=[],t.dataRadius[o]=[],t.angleArr[o]=[],e.forEach(function(e,r){var n=Math.abs(t.maxValue-t.minValue);e-=t.minValue,t.isLog&&(e=t.coreUtils.getLogVal(t.logBase,e,0)),t.dataRadiusOfPercent[o][r]=e/n,t.dataRadius[o][r]=t.dataRadiusOfPercent[o][r]*t.size,t.angleArr[o][r]=r*t.disAngle}),d=t.getDataPointsPos(t.dataRadius[o],t.angleArr[o]);var u=t.createPaths(d,{x:0,y:0});h=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),f=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":o}),r.globals.delayedElements.push({el:h.node,index:o});var c={i:o,realIndex:o,animationDelay:o,initialSpeed:r.config.chart.animations.speed,dataChangeSpeed:r.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:r.globals.stroke.colors[o],strokeLineCap:r.config.stroke.lineCap},g=null;r.globals.previousPaths.length>0&&(g=t.getPreviousPath(o));for(var m=0;m<u.linePathsTo.length;m++){var v=t.graphics.renderPaths(p(p({},c),{},{pathFrom:null===g?u.linePathsFrom[m]:g,pathTo:u.linePathsTo[m],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[o]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(v);var b=n.fillPath({seriesNumber:o}),x=t.graphics.renderPaths(p(p({},c),{},{pathFrom:null===g?u.areaPathsFrom[m]:g,pathTo:u.areaPathsTo[m],strokeWidth:0,fill:b,drawShadow:!1}));if(r.config.chart.dropShadow.enabled){var y=new S(t.ctx),k=r.config.chart.dropShadow;y.dropShadow(x,Object.assign({},k,{noUserSpaceOnUse:!0}),o)}l.add(x)}e.forEach(function(e,n){var i=new Y(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:n}),s=t.graphics.drawMarker(d[n].x,d[n].y,i);s.attr("rel",n),s.attr("j",n),s.attr("index",o),s.node.setAttribute("default-marker-size",i.pSize);var u=t.graphics.group({class:"apexcharts-series-markers"});u&&u.add(s),h.add(u),l.add(h);var c=r.config.dataLabels;if(c.enabled){var g=c.formatter(r.globals.series[o][n],{seriesIndex:o,dataPointIndex:n,w:r});a.plotDataLabelsText({x:d[n].x,y:d[n].y,text:g,textAnchor:"middle",i:o,j:o,parent:f,offsetCorrection:!1,dataLabelsConfig:p({},c)})}l.add(f)}),i.push(l)}),this.drawPolygons({parent:c}),r.config.xaxis.labels.show){var g=this.drawXAxisTexts();c.add(g)}return i.forEach(function(e){c.add(e)}),c.add(this.yaxisLabels),c}},{key:"drawPolygons",value:function(e){for(var t=this,r=this.w,n=e.parent,i=new eM(this.ctx),a=r.globals.yAxisScale[0].result.reverse(),o=a.length,s=[],l=this.size/(o-1),u=0;u<o;u++)s[u]=l*u;s.reverse();var c=[],d=[];s.forEach(function(e,r){var n=w.getPolygonPos(e,t.dataPointsLen),i="";n.forEach(function(e,n){if(0===r){var a=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[n]:t.polygons.connectorColors);d.push(a)}0===n&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),i+=e.x+","+e.y+" "}),c.push(i)}),c.forEach(function(e,i){var a=t.polygons.strokeColors,o=t.polygons.strokeWidth,s=t.graphics.drawPolygon(e,Array.isArray(a)?a[i]:a,Array.isArray(o)?o[i]:o,r.globals.radarPolygons.fill.colors[i]);n.add(s)}),d.forEach(function(e){n.add(e)}),r.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(e,r){var n=i.drawYAxisTexts(e.x,e.y,r,a[r]);t.yaxisLabels.add(n)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,r=t.config.xaxis.labels,n=this.graphics.group({class:"apexcharts-xaxis"}),i=w.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(a,o){var s=t.config.xaxis.labels.formatter,l=new V(e.ctx);if(i[o]){var u=e.getTextPos(i[o],e.size),c=s(a,{seriesIndex:-1,dataPointIndex:o,w:t});l.plotDataLabelsText({x:u.newX,y:u.newY,text:c,textAnchor:u.textAnchor,i:o,j:o,parent:n,className:"apexcharts-xaxis-label",color:Array.isArray(r.style.colors)&&r.style.colors[o]?r.style.colors[o]:"#a8a8a8",dataLabelsConfig:p({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},r),offsetCorrection:!1}).on("click",function(r){if("function"==typeof t.config.chart.events.xAxisLabelClick){var n=Object.assign({},t,{labelIndex:o});t.config.chart.events.xAxisLabelClick(r,e.ctx,n)}})}}),n}},{key:"createPaths",value:function(e,t){var r=this,n=[],i=[],a=[],o=[];if(e.length){i=[this.graphics.move(t.x,t.y)],o=[this.graphics.move(t.x,t.y)];var s=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach(function(t,n){s+=r.graphics.line(t.x,t.y),l+=r.graphics.line(t.x,t.y),n===e.length-1&&(s+="Z",l+="Z")}),n.push(s),a.push(l)}return{linePathsFrom:i,linePathsTo:n,areaPathsFrom:o,areaPathsTo:a}}},{key:"getTextPos",value:function(e,t){var r="middle",n=e.x,i=e.y;return Math.abs(e.x)>=10?e.x>0?(r="start",n+=10):e.x<0&&(r="end",n-=10):r="middle",Math.abs(e.y)>=t-10&&(e.y<0?i-=10:e.y>0&&(i+=10)),{textAnchor:r,newX:n,newY:i}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,r=null,n=0;n<t.globals.previousPaths.length;n++){var i=t.globals.previousPaths[n];i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[n].paths[0]&&(r=t.globals.previousPaths[n].paths[0].d)}return r}},{key:"getDataPointsPos",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var n=[],i=0;i<r;i++){var a={};a.x=e[i]*Math.sin(t[i]),a.y=-e[i]*Math.cos(t[i]),n.push(a)}return n}}]),e}(),eR=function(e){d(r,eI);var t=l(r);function r(e){i(this,r),(a=t.call(this,e)).ctx=e,a.w=e.w,a.animBeginArr=[0],a.animDur=0;var a,o=a.w;return a.startAngle=o.config.plotOptions.radialBar.startAngle,a.endAngle=o.config.plotOptions.radialBar.endAngle,a.totalAngle=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle),a.trackStartAngle=o.config.plotOptions.radialBar.track.startAngle,a.trackEndAngle=o.config.plotOptions.radialBar.track.endAngle,a.barLabels=a.w.config.plotOptions.radialBar.barLabels,a.donutDataLabels=a.w.config.plotOptions.radialBar.dataLabels,a.radialDataLabels=a.donutDataLabels,a.trackStartAngle||(a.trackStartAngle=a.startAngle),a.trackEndAngle||(a.trackEndAngle=a.endAngle),360===a.endAngle&&(a.endAngle=359.99),a.margin=parseInt(o.config.plotOptions.radialBar.track.margin,10),a.onBarLabelClick=a.onBarLabelClick.bind(n(a)),a}return o(r,[{key:"draw",value:function(e){var t=this.w,r=new C(this.ctx),n=r.group({class:"apexcharts-radialbar"});if(t.globals.noData)return n;var i=r.group(),a=this.defaultSize/2,o=t.globals.gridWidth/2,s=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(s=s-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var u=this.drawTracks({size:s,centerX:o,centerY:a,colorArr:l,series:e});i.add(u)}var c=this.drawArcs({size:s,centerX:o,centerY:a,colorArr:l,series:e}),d=360;t.config.plotOptions.radialBar.startAngle<0&&(d=this.totalAngle);var h=(360-d)/360;if(t.globals.radialSize=s-s*h,this.radialDataLabels.value.show){var f=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=f*h}return i.add(c.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(c.g.add(c.elHollow),c.dataLabels&&c.g.add(c.dataLabels)),n.add(i),n}},{key:"drawTracks",value:function(e){var t=this.w,r=new C(this.ctx),n=r.group({class:"apexcharts-tracks"}),i=new S(this.ctx),a=new X(this.ctx),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(var s=0;s<e.series.length;s++){var l=r.group({class:"apexcharts-radialbar-track apexcharts-track"});n.add(l),l.attr({rel:s+1}),e.size=e.size-o-this.margin;var u=t.config.plotOptions.radialBar.track,c=a.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(u.background)?u.background[s]:u.background,solid:!0}),d=this.trackStartAngle,h=this.trackEndAngle;Math.abs(h)+Math.abs(d)>=360&&(h=360-Math.abs(this.startAngle)-.1);var f=r.drawPath({d:"",stroke:c,strokeWidth:o*parseInt(u.strokeWidth,10)/100,fill:"none",strokeOpacity:u.opacity,classes:"apexcharts-radialbar-area"});if(u.dropShadow.enabled){var p=u.dropShadow;i.dropShadow(f,p)}l.add(f),f.attr("id","apexcharts-radialbarTrack-"+s),this.animatePaths(f,{centerX:e.centerX,centerY:e.centerY,endAngle:h,startAngle:d,size:e.size,i:s,totalItems:2,animBeginArr:0,dur:0,isTrack:!0,easing:t.globals.easing})}return n}},{key:"drawArcs",value:function(e){var t=this.w,r=new C(this.ctx),n=new X(this.ctx),i=new S(this.ctx),a=r.group(),o=this.getStrokeWidth(e);e.size=e.size-o/2;var s=t.config.plotOptions.radialBar.hollow.background,l=e.size-o*e.series.length-this.margin*e.series.length-o*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,u=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(s=this.drawHollowImage(e,a,l,s));var c=this.drawHollow({size:u,centerX:e.centerX,centerY:e.centerY,fill:s||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var d=t.config.plotOptions.radialBar.hollow.dropShadow;i.dropShadow(c,d)}var h=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(h=0);var f=null;if(this.radialDataLabels.show){var p=t.globals.dom.Paper.select(".apexcharts-datalabels-group").members[0];f=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:h})}"back"===t.config.plotOptions.radialBar.hollow.position&&(a.add(c),f&&a.add(f));var g=!1;t.config.plotOptions.radialBar.inverseOrder&&(g=!0);for(var m=g?e.series.length-1:0;g?m>=0:m<e.series.length;g?m--:m++){var v=r.group({class:"apexcharts-series apexcharts-radial-series",seriesName:w.escapeString(t.globals.seriesNames[m])});a.add(v),v.attr({rel:m+1,"data:realIndex":m}),this.ctx.series.addCollapsedClassToSeries(v,m),e.size=e.size-o-this.margin;var b=n.fillPath({seriesNumber:m,size:e.size,value:e.series[m]}),x=this.startAngle,y=void 0,k=w.negToZero(e.series[m]>100?100:e.series[m])/100,A=Math.round(this.totalAngle*k)+this.startAngle,E=void 0;t.globals.dataChanged&&(y=this.startAngle,E=Math.round(this.totalAngle*w.negToZero(t.globals.previousPaths[m])/100)+y),Math.abs(A)+Math.abs(x)>360&&(A-=.01),Math.abs(E)+Math.abs(y)>360&&(E-=.01);var _=A-x,T=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[m]:t.config.stroke.dashArray,P=r.drawPath({d:"",stroke:b,strokeWidth:o,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+m,strokeDashArray:T});if(C.setAttrs(P.node,{"data:angle":_,"data:value":e.series[m]}),t.config.chart.dropShadow.enabled){var O=t.config.chart.dropShadow;i.dropShadow(P,O,m)}if(i.setSelectionFilter(P,0,m),this.addListeners(P,this.radialDataLabels),v.add(P),P.attr({index:0,j:m}),this.barLabels.enabled){var M=w.polarToCartesian(e.centerX,e.centerY,e.size,x),I=this.barLabels.formatter(t.globals.seriesNames[m],{seriesIndex:m,w:t}),L=["apexcharts-radialbar-label"];this.barLabels.onClick||L.push("apexcharts-no-click");var R=this.barLabels.useSeriesColors?t.globals.colors[m]:t.config.chart.foreColor;R||(R=t.config.chart.foreColor);var N=M.x+this.barLabels.offsetX,z=M.y+this.barLabels.offsetY,D=r.drawText({x:N,y:z,text:I,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:R,cssClass:L.join(" ")});D.on("click",this.onBarLabelClick),D.attr({rel:m+1}),0!==x&&D.attr({"transform-origin":"".concat(N," ").concat(z),transform:"rotate(".concat(x," 0 0)")}),v.add(D)}var F=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(F=t.config.chart.animations.speed),t.globals.dataChanged&&(F=t.config.chart.animations.dynamicAnimation.speed),this.animDur=F/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(P,{centerX:e.centerX,centerY:e.centerY,endAngle:A,startAngle:x,prevEndAngle:E,prevStartAngle:y,size:e.size,i:m,totalItems:2,animBeginArr:this.animBeginArr,dur:F,shouldSetPrevPaths:!0,easing:t.globals.easing})}return{g:a,elHollow:c,dataLabels:f}}},{key:"drawHollow",value:function(e){var t=new C(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,r,n){var i=this.w,a=new X(this.ctx),o=w.randomId(),s=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)a.clippedImgArea({width:r,height:r,image:s,patternID:"pattern".concat(i.globals.cuid).concat(o)}),n="url(#pattern".concat(i.globals.cuid).concat(o,")");else{var l=i.config.plotOptions.radialBar.hollow.imageWidth,u=i.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===u){var c=i.globals.dom.Paper.image(s).loaded(function(t){this.move(e.centerX-t.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(c)}else{var d=i.globals.dom.Paper.image(s).loaded(function(t){this.move(e.centerX-l/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-u/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,u)});t.add(d)}}return n}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,r=this.barLabels.onClick,n=this.w;r&&r(n.globals.seriesNames[t],{w:n,seriesIndex:t})}}]),r}(),eN=function(e){d(r,eE);var t=l(r);function r(){return i(this,r),t.apply(this,arguments)}return o(r,[{key:"draw",value:function(e,t){var r=this.w,n=new C(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=r.globals.seriesRangeStart,this.seriesRangeEnd=r.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var i=n.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),a=0;a<e.length;a++){var o,s,l,u,c=void 0,d=void 0,h=r.globals.comboCharts?t[a]:a,f=this.barHelpers.getGroupIndex(h).columnGroupIndex,g=n.group({class:"apexcharts-series",seriesName:w.escapeString(r.globals.seriesNames[h]),rel:a+1,"data:realIndex":h});this.ctx.series.addCollapsedClassToSeries(g,h),e[a].length>0&&(this.visibleI=this.visibleI+1);var m=0,v=0,b=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[h][0],b=h);var x=this.barHelpers.initialPositions();d=x.y,u=x.zeroW,c=x.x,v=x.barWidth,m=x.barHeight,o=x.xDivision,s=x.yDivision,l=x.zeroH;for(var y=n.group({class:"apexcharts-datalabels","data:realIndex":h}),k=n.group({class:"apexcharts-rangebar-goals-markers"}),S=0;S<r.globals.dataPoints;S++){var A=this.barHelpers.getStrokeWidth(a,S,h),E=this.seriesRangeStart[a][S],_=this.seriesRangeEnd[a][S],T=null,P=null,O=null,M={x:c,y:d,strokeWidth:A,elSeries:g},I=this.seriesLen;if(r.config.plotOptions.bar.rangeBarGroupRows&&(I=1),void 0===r.config.series[a].data[S])break;if(this.isHorizontal){O=d+m*this.visibleI;var L=(s-m*I)/2;if(r.config.series[a].data[S].x){var R=this.detectOverlappingBars({i:a,j:S,barYPosition:O,srty:L,barHeight:m,yDivision:s,initPositions:x});m=R.barHeight,O=R.barYPosition}v=(T=this.drawRangeBarPaths(p({indexes:{i:a,j:S,realIndex:h},barHeight:m,barYPosition:O,zeroW:u,yDivision:s,y1:E,y2:_},M))).barWidth}else{r.globals.isXNumeric&&(c=(r.globals.seriesX[a][S]-r.globals.minX)/this.xRatio-v/2),P=c+v*this.visibleI;var N=(o-v*I)/2;if(r.config.series[a].data[S].x){var z=this.detectOverlappingBars({i:a,j:S,barXPosition:P,srtx:N,barWidth:v,xDivision:o,initPositions:x});v=z.barWidth,P=z.barXPosition}m=(T=this.drawRangeColumnPaths(p({indexes:{i:a,j:S,realIndex:h,translationsIndex:b},barWidth:v,barXPosition:P,zeroH:l,xDivision:o},M))).barHeight}var D=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:O,goalX:T.goalX,goalY:T.goalY,barHeight:m,barWidth:v});D&&k.add(D),d=T.y,c=T.x;var F=this.barHelpers.getPathFillColor(e,a,S,h),B=r.globals.stroke.colors[h];this.renderSeries({realIndex:h,pathFill:F,lineFill:B,j:S,i:a,x:c,y:d,y1:E,y2:_,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:A,elSeries:g,series:e,barHeight:m,barWidth:v,barXPosition:P,barYPosition:O,columnGroupIndex:f,elDataLabelsWrap:y,elGoalsMarkers:k,visibleSeries:this.visibleI,type:"rangebar"})}i.add(g)}return i}},{key:"detectOverlappingBars",value:function(e){var t=e.i,r=e.j,n=e.barYPosition,i=e.barXPosition,a=e.srty,o=e.srtx,s=e.barHeight,l=e.barWidth,u=e.yDivision,c=e.xDivision,d=e.initPositions,h=this.w,f=[],p=h.config.series[t].data[r].rangeName,g=h.config.series[t].data[r].x,m=Array.isArray(g)?g.join(" "):g,v=h.globals.labels.map(function(e){return Array.isArray(e)?e.join(" "):e}).indexOf(m),b=h.globals.seriesRange[t].findIndex(function(e){return e.x===m&&e.overlaps.length>0});return this.isHorizontal?(n=h.config.plotOptions.bar.rangeBarGroupRows?a+u*v:a+s*this.visibleI+u*v,b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(n=(s=d.barHeight/f.length)*this.visibleI+u*(100-parseInt(this.barOptions.barHeight,10))/100/2+s*(this.visibleI+f.indexOf(p))+u*v)):(v>-1&&!h.globals.timescaleLabels.length&&(i=h.config.plotOptions.bar.rangeBarGroupRows?o+c*v:o+l*this.visibleI+c*v),b>-1&&!h.config.plotOptions.bar.rangeBarOverlap&&(f=h.globals.seriesRange[t][b].overlaps).indexOf(p)>-1&&(i=(l=d.barWidth/f.length)*this.visibleI+c*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+f.indexOf(p))+c*v)),{barYPosition:n,barXPosition:i,barHeight:s,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,r=e.x,n=e.xDivision,i=e.barWidth,a=e.barXPosition,o=e.zeroH,s=this.w,l=t.i,u=t.j,c=t.realIndex,d=t.translationsIndex,h=this.yRatio[d],f=this.getRangeValue(c,u),p=Math.min(f.start,f.end),g=Math.max(f.start,f.end);void 0===this.series[l][u]||null===this.series[l][u]?p=o:(p=o-p/h,g=o-g/h);var m=Math.abs(g-p),v=this.barHelpers.getColumnPaths({barXPosition:a,barWidth:i,y1:p,y2:g,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:c,i:c,j:u,w:s});if(s.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:r,j:u,realIndex:c,barWidth:i});r=b.x,a=b.barXPosition}else r+=n;return{pathTo:v.pathTo,pathFrom:v.pathFrom,barHeight:m,x:r,y:f.start<0&&f.end<0?p:g,goalY:this.barHelpers.getGoalValues("y",null,o,l,u,d),barXPosition:a}}},{key:"preventBarOverflow",value:function(e){var t=this.w;return e<0&&(e=0),e>t.globals.gridWidth&&(e=t.globals.gridWidth),e}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,r=e.y,n=e.y1,i=e.y2,a=e.yDivision,o=e.barHeight,s=e.barYPosition,l=e.zeroW,u=this.w,c=t.realIndex,d=t.j,h=this.preventBarOverflow(l+n/this.invertedYRatio),f=this.preventBarOverflow(l+i/this.invertedYRatio),p=this.getRangeValue(c,d),g=Math.abs(f-h),m=this.barHelpers.getBarpaths({barYPosition:s,barHeight:o,x1:h,x2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:c,realIndex:c,j:d,w:u});return u.globals.isXNumeric||(r+=a),{pathTo:m.pathTo,pathFrom:m.pathFrom,barWidth:g,x:p.start<0&&p.end<0?h:f,goalX:this.barHelpers.getGoalValues("x",l,null,c,d),y:r}}},{key:"getRangeValue",value:function(e,t){var r=this.w;return{start:r.globals.seriesRangeStart[e][t],end:r.globals.seriesRangeEnd[e][t]}}}]),r}(),ez=function(){function e(t){i(this,e),this.w=t.w,this.lineCtx=t}return o(e,[{key:"sameValueSeriesFix",value:function(e,t){var r=this.w;if(("gradient"===r.config.fill.type||"gradient"===r.config.fill.type[e])&&new A(this.lineCtx.ctx,r).seriesHaveSameValues(e)){var n=t[e].slice();n[n.length-1]=n[n.length-1]+1e-6,t[e]=n}return t}},{key:"calculatePoints",value:function(e){var t=e.series,r=e.realIndex,n=e.x,i=e.y,a=e.i,o=e.j,s=e.prevY,l=this.w,u=[],c=[];if(0===o){var d=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;l.globals.isXNumeric&&(d=(l.globals.seriesX[r][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),u.push(d),c.push(w.isNumber(t[a][0])?s+l.config.markers.offsetY:null),u.push(n+l.config.markers.offsetX),c.push(w.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null)}else u.push(n+l.config.markers.offsetX),c.push(w.isNumber(t[a][o+1])?i+l.config.markers.offsetY:null);return{x:u,y:c}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,r=e.pathFromArea,n=e.realIndex,i=this.w,a=0;a<i.globals.previousPaths.length;a++){var o=i.globals.previousPaths[a];("line"===o.type||"area"===o.type)&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(n,10)&&("line"===o.type?(this.lineCtx.appendPathFrom=!1,t=i.globals.previousPaths[a].paths[0].d):"area"===o.type&&(this.lineCtx.appendPathFrom=!1,r=i.globals.previousPaths[a].paths[0].d,i.config.stroke.show&&i.globals.previousPaths[a].paths[1]&&(t=i.globals.previousPaths[a].paths[1].d)))}return{pathFromLine:t,pathFromArea:r}}},{key:"determineFirstPrevY",value:function(e){var t,r,n,i=e.i,a=e.realIndex,o=e.series,s=e.prevY,l=e.lineYPosition,u=e.translationsIndex,c=this.w,d=c.config.chart.stacked&&!c.globals.comboCharts||c.config.chart.stacked&&c.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[a])||void 0===t?void 0:t.type)||"column"===(null===(r=this.w.config.series[a])||void 0===r?void 0:r.type));if(void 0!==(null===(n=o[i])||void 0===n?void 0:n[0]))s=(l=d&&i>0?this.lineCtx.prevSeriesY[i-1][0]:this.lineCtx.zeroY)-o[i][0]/this.lineCtx.yRatio[u]+2*(this.lineCtx.isReversed?o[i][0]/this.lineCtx.yRatio[u]:0);else if(d&&i>0&&void 0===o[i][0]){for(var h=i-1;h>=0;h--)if(null!==o[h][0]&&void 0!==o[h][0]){s=l=this.lineCtx.prevSeriesY[h][0];break}}return{prevY:s,lineYPosition:l}}}]),e}(),eD=function(e){for(var t,r,n,i,a=function(e){for(var t=[],r=e[0],n=e[1],i=t[0]=ej(r,n),a=1,o=e.length-1;a<o;a++)r=n,n=e[a+1],t[a]=.5*(i+(i=ej(r,n)));return t[a]=i,t}(e),o=e.length-1,s=[],l=0;l<o;l++)1e-6>Math.abs(n=ej(e[l],e[l+1]))?a[l]=a[l+1]=0:(i=(t=a[l]/n)*t+(r=a[l+1]/n)*r)>9&&(i=3*n/Math.sqrt(i),a[l]=i*t,a[l+1]=i*r);for(var u=0;u<=o;u++)s.push([(i=(e[Math.min(o,u+1)][0]-e[Math.max(0,u-1)][0])/(6*(1+a[u]*a[u])))||0,a[u]*i||0]);return s},eF=function(e){var t=eD(e),r=e[1],n=e[0],i=[],a=t[1],o=t[0];i.push(n,[n[0]+o[0],n[1]+o[1],r[0]-a[0],r[1]-a[1],r[0],r[1]]);for(var s=2,l=t.length;s<l;s++){var u=e[s],c=t[s];i.push([u[0]-c[0],u[1]-c[1],u[0],u[1]])}return i},eB=function(e,t,r){var n=e.slice(t,r);if(t){if(r-t>1&&n[1].length<6){var i=n[0].length;n[1]=[2*n[0][i-2]-n[0][i-4],2*n[0][i-1]-n[0][i-3]].concat(n[1])}n[0]=n[0].slice(-2)}return n};function ej(e,t){return(t[1]-e[1])/(t[0]-e[0])}var eW=function(){function e(t,r,n){i(this,e),this.ctx=t,this.w=t.w,this.xyRatios=r,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||n,this.scatter=new U(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new ez(this),this.markers=new Y(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return o(e,[{key:"draw",value:function(e,t,r,n){var i,a=this.w,o=new C(this.ctx),s=a.globals.comboCharts?t:a.config.chart.type,l=o.group({class:"apexcharts-".concat(s,"-series apexcharts-plot-series")}),u=new A(this.ctx,a);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=u.getLogSeries(e),this.yRatio=u.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var c=[],d=0;d<e.length;d++){e=this.lineHelpers.sameValueSeriesFix(d,e);var h=a.globals.comboCharts?r[d]:d,f=this.yRatio.length>1?h:0;this._initSerieVariables(e,d,h);var g=[],m=[],v=[],b=a.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,h),a.globals.isXNumeric&&a.globals.seriesX.length>0&&(b=(a.globals.seriesX[h][0]-a.globals.minX)/this.xRatio),v.push(b);var x,y=b,w=void 0,k=this.zeroY,S=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:e,prevY:k,lineYPosition:0,translationsIndex:f}).prevY,"monotoneCubic"===a.config.stroke.curve&&null===e[d][0]?g.push(null):g.push(k),x=k,"rangeArea"===s&&(w=S=this.lineHelpers.determineFirstPrevY({i:d,realIndex:h,series:n,prevY:S,lineYPosition:0,translationsIndex:f}).prevY,m.push(null!==g[0]?S:null));var E=this._calculatePathsFrom({type:s,series:e,i:d,realIndex:h,translationsIndex:f,prevX:y,prevY:k,prevY2:S}),_=[g[0]],T=[m[0]],P={type:s,series:e,realIndex:h,translationsIndex:f,i:d,x:b,y:1,pX:y,pY:x,pathsFrom:E,linePaths:[],areaPaths:[],seriesIndex:r,lineYPosition:0,xArrj:v,yArrj:g,y2Arrj:m,seriesRangeEnd:n},O=this._iterateOverDataPoints(p(p({},P),{},{iterations:"rangeArea"===s?e[d].length-1:void 0,isRangeStart:!0}));if("rangeArea"===s){for(var M=this._calculatePathsFrom({series:n,i:d,realIndex:h,prevX:y,prevY:S}),I=this._iterateOverDataPoints(p(p({},P),{},{series:n,xArrj:[b],yArrj:_,y2Arrj:T,pY:w,areaPaths:O.areaPaths,pathsFrom:M,iterations:n[d].length-1,isRangeStart:!1})),L=O.linePaths.length/2,R=0;R<L;R++)O.linePaths[R]=I.linePaths[R+L]+O.linePaths[R];O.linePaths.splice(L),O.pathFromLine=I.pathFromLine+O.pathFromLine}else O.pathFromArea+="z";this._handlePaths({type:s,realIndex:h,i:d,paths:O}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),c.push(this.elSeries)}if(void 0!==(null===(i=a.config.series[0])||void 0===i?void 0:i.zIndex)&&c.sort(function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))}),a.config.chart.stacked)for(var N=c.length-1;N>=0;N--)l.add(c[N]);else for(var z=0;z<c.length;z++)l.add(c[z]);return l}},{key:"_initSerieVariables",value:function(e,t,r){var n=this.w,i=new C(this.ctx);this.xDivision=n.globals.gridWidth/(n.globals.dataPoints-("on"===n.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(n.config.stroke.width)?n.config.stroke.width[r]:n.config.stroke.width;var a=0;this.yRatio.length>1&&(this.yaxisIndex=n.globals.seriesYAxisReverseMap[r],a=r),this.isReversed=n.config.yaxis[this.yaxisIndex]&&n.config.yaxis[this.yaxisIndex].reversed,this.zeroY=n.globals.gridHeight-this.baseLineY[a]-(this.isReversed?n.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[a]:0),this.areaBottomY=this.zeroY,(this.zeroY>n.globals.gridHeight||"end"===n.config.plotOptions.area.fillTo)&&(this.areaBottomY=n.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=i.group({class:"apexcharts-series",zIndex:void 0!==n.config.series[r].zIndex?n.config.series[r].zIndex:r,seriesName:w.escapeString(n.globals.seriesNames[r])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":r}),this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":r});var o=e[t].length===n.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:t+1,"data:realIndex":r}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,r,n,i,a=e.type,o=e.series,s=e.i,l=e.realIndex,u=e.translationsIndex,c=e.prevX,d=e.prevY,h=e.prevY2,f=this.w,p=new C(this.ctx);if(null===o[s][0]){for(var g=0;g<o[s].length;g++)if(null!==o[s][g]){c=this.xDivision*g,d=this.zeroY-o[s][g]/this.yRatio[u],t=p.move(c,d),r=p.move(c,this.areaBottomY);break}}else t=p.move(c,d),"rangeArea"===a&&(t=p.move(c,h)+p.line(c,d)),r=p.move(c,this.areaBottomY)+p.line(c,d);if(n=p.move(0,this.zeroY)+p.line(0,this.zeroY),i=p.move(0,this.zeroY)+p.line(0,this.zeroY),f.globals.previousPaths.length>0){var m=this.lineHelpers.checkPreviousPaths({pathFromLine:n,pathFromArea:i,realIndex:l});n=m.pathFromLine,i=m.pathFromArea}return{prevX:c,prevY:d,linePath:t,areaPath:r,pathFromLine:n,pathFromArea:i}}},{key:"_handlePaths",value:function(e){var t=e.type,r=e.realIndex,n=e.i,i=e.paths,a=this.w,o=new C(this.ctx),s=new X(this.ctx);this.prevSeriesY.push(i.yArrj),a.globals.seriesXvalues[r]=i.xArrj,a.globals.seriesYvalues[r]=i.yArrj;var l=a.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==t){var u=a.globals.seriesXvalues[r][a.globals.seriesXvalues[r].length-l.count-1],c=o.drawRect(u,0,a.globals.gridWidth,a.globals.gridHeight,0);a.globals.dom.elForecastMask.appendChild(c.node);var d=o.drawRect(0,0,u,a.globals.gridHeight,0);a.globals.dom.elNonForecastMask.appendChild(d.node)}this.pointsChart||a.globals.delayedElements.push({el:this.elPointsMain.node,index:r});var h={i:n,realIndex:r,animationDelay:n,initialSpeed:a.config.chart.animations.speed,dataChangeSpeed:a.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var f=s.fillPath({seriesNumber:r}),g=0;g<i.areaPaths.length;g++){var m=o.renderPaths(p(p({},h),{},{pathFrom:i.pathFromArea,pathTo:i.areaPaths[g],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:f}));this.elSeries.add(m)}if(a.config.stroke.show&&!this.pointsChart){var v=null;if("line"===t)v=s.fillPath({seriesNumber:r,i:n});else if("solid"===a.config.stroke.fill.type)v=a.globals.stroke.colors[r];else{var b=a.config.fill;a.config.fill=a.config.stroke.fill,v=s.fillPath({seriesNumber:r,i:n}),a.config.fill=b}for(var x=0;x<i.linePaths.length;x++){var y=v;"rangeArea"===t&&(y=s.fillPath({seriesNumber:r}));var w=p(p({},h),{},{pathFrom:i.pathFromLine,pathTo:i.linePaths[x],stroke:v,strokeWidth:this.strokeWidth,strokeLineCap:a.config.stroke.lineCap,fill:"rangeArea"===t?y:"none"}),k=o.renderPaths(w);if(this.elSeries.add(k),k.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==t){var S=o.renderPaths(w);S.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&S.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(S),S.attr("clip-path","url(#forecastMask".concat(a.globals.cuid,")")),k.attr("clip-path","url(#nonForecastMask".concat(a.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,r,n=this,i=e.type,a=e.series,o=e.iterations,s=e.realIndex,l=e.translationsIndex,u=e.i,c=e.x,d=e.y,h=e.pX,f=e.pY,p=e.pathsFrom,g=e.linePaths,m=e.areaPaths,v=e.seriesIndex,b=e.lineYPosition,x=e.xArrj,y=e.yArrj,k=e.y2Arrj,S=e.isRangeStart,A=e.seriesRangeEnd,E=this.w,_=new C(this.ctx),T=this.yRatio,P=p.prevY,O=p.linePath,M=p.areaPath,I=p.pathFromLine,L=p.pathFromArea,R=w.isNumber(E.globals.minYArr[s])?E.globals.minYArr[s]:E.globals.minY;o||(o=E.globals.dataPoints>1?E.globals.dataPoints-1:E.globals.dataPoints);var N=function(e,t){return t-e/T[l]+2*(n.isReversed?e/T[l]:0)},z=d,D=E.config.chart.stacked&&!E.globals.comboCharts||E.config.chart.stacked&&E.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[s])||void 0===t?void 0:t.type)||"column"===(null===(r=this.w.config.series[s])||void 0===r?void 0:r.type)),F=E.config.stroke.curve;Array.isArray(F)&&(F=Array.isArray(v)?F[v[u]]:F[u]);for(var B,W=0,H=0;H<o;H++){var X=void 0===a[u][H+1]||null===a[u][H+1];if(E.globals.isXNumeric){var Y=E.globals.seriesX[s][H+1];void 0===E.globals.seriesX[s][H+1]&&(Y=E.globals.seriesX[s][o-1]),c=(Y-E.globals.minX)/this.xRatio}else c+=this.xDivision;b=D&&u>0&&E.globals.collapsedSeries.length<E.config.series.length-1?this.prevSeriesY[function(e){for(var t=e;t>0;t--){if(!(E.globals.collapsedSeriesIndices.indexOf((null==v?void 0:v[t])||t)>-1))return t;t--}return 0}(u-1)][H+1]:this.zeroY,X?d=N(R,b):(d=N(a[u][H+1],b),"rangeArea"===i&&(z=N(A[u][H+1],b))),x.push(c),X&&("smooth"===E.config.stroke.curve||"monotoneCubic"===E.config.stroke.curve)?(y.push(null),k.push(null)):(y.push(d),k.push(z));var U=this.lineHelpers.calculatePoints({series:a,x:c,y:d,realIndex:s,i:u,j:H,prevY:P}),V=this._createPaths({type:i,series:a,i:u,realIndex:s,j:H,x:c,y:d,y2:z,xArrj:x,yArrj:y,y2Arrj:k,pX:h,pY:f,pathState:W,segmentStartX:B,linePath:O,areaPath:M,linePaths:g,areaPaths:m,curve:F,isRangeStart:S});m=V.areaPaths,g=V.linePaths,h=V.pX,f=V.pY,W=V.pathState,B=V.segmentStartX,M=V.areaPath,O=V.linePath,this.appendPathFrom&&("monotoneCubic"!==F||"rangeArea"!==i)&&(I+=_.line(c,this.zeroY),L+=_.line(c,this.zeroY)),this.handleNullDataPoints(a,U,u,H,s),this._handleMarkersAndLabels({type:i,pointsPos:U,i:u,j:H,realIndex:s,isRangeStart:S})}return{yArrj:y,xArrj:x,pathFromArea:L,areaPaths:m,pathFromLine:I,linePaths:g,linePath:O,areaPath:M}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,r=e.pointsPos,n=e.isRangeStart,i=e.i,a=e.j,o=e.realIndex,s=this.w,l=new V(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,a,{realIndex:o,pointsPos:r,zRatio:this.zRatio,elParent:this.elPointsMain});else{s.globals.series[i].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var u=this.markers.plotChartMarkers(r,o,a+1);null!==u&&this.elPointsMain.add(u)}var c=l.drawDataLabel({type:t,isRangeStart:n,pos:r,i:o,j:a+1});null!==c&&this.elDataLabelsWrap.add(c)}},{key:"_createPaths",value:function(e){var t=e.type,r=e.series,n=e.i;e.realIndex;var i=e.j,a=e.x,o=e.y,s=e.xArrj,l=e.yArrj,u=e.y2,c=e.y2Arrj,d=e.pX,h=e.pY,f=e.pathState,p=e.segmentStartX,g=e.linePath,m=e.areaPath,v=e.linePaths,b=e.areaPaths,x=e.curve,y=e.isRangeStart,w=new C(this.ctx),k=this.areaBottomY,S="rangeArea"===t,A="rangeArea"===t&&y;switch(x){case"monotoneCubic":var E=y?l:c;switch(f){case 0:if(null===E[i+1])break;f=1;case 1:if(!(S?s.length===r[n].length:i===r[n].length-2))break;case 2:var _=y?s:s.slice().reverse(),T=y?E:E.slice().reverse(),P=_.map(function(e,t){return[e,T[t]]}).filter(function(e){return null!==e[1]}),O=P.length>1?eF(P):P,M=[];S&&(A?b=P:M=b.reverse());var I=0,L=0;if((function(e,t){for(var r,n,i=(r=[],n=0,e.forEach(function(e){null!==e?n++:n>0&&(r.push(n),n=0)}),n>0&&r.push(n),r),a=[],o=0,s=0;o<i.length;s+=i[o++])a[o]=eB(t,s,s+i[o]);return a})(T,O).forEach(function(e){I++;var t=function(e){for(var t="",r=0;r<e.length;r++){var n=e[r],i=n.length;i>4?(t+="C".concat(n[0],", ").concat(n[1]),t+=", ".concat(n[2],", ").concat(n[3]),t+=", ".concat(n[4],", ").concat(n[5])):i>2&&(t+="S".concat(n[0],", ").concat(n[1]),t+=", ".concat(n[2],", ").concat(n[3]))}return t}(e),r=L,n=(L+=e.length)-1;A?g=w.move(P[r][0],P[r][1])+t:S?g=w.move(M[r][0],M[r][1])+w.line(P[r][0],P[r][1])+t+w.line(M[n][0],M[n][1]):(m=(g=w.move(P[r][0],P[r][1])+t)+w.line(P[n][0],k)+w.line(P[r][0],k)+"z",b.push(m)),v.push(g)}),S&&I>1&&!A){var R=v.slice(I).reverse();v.splice(I),R.forEach(function(e){return v.push(e)})}f=0}break;case"smooth":var N=.35*(a-d);if(null===r[n][i])f=0;else switch(f){case 0:if(p=d,g=A?w.move(d,c[i])+w.line(d,h):w.move(d,h),m=w.move(d,h),null===r[n][i+1]){v.push(g),b.push(m);break}if(f=1,i<r[n].length-2){var z=w.curve(d+N,h,a-N,o,a,o);g+=z,m+=z;break}case 1:if(null===r[n][i+1])g+=A?w.line(d,u):w.move(d,h),m+=w.line(d,k)+w.line(p,k)+"z",v.push(g),b.push(m),f=-1;else{var D=w.curve(d+N,h,a-N,o,a,o);g+=D,m+=D,i>=r[n].length-2&&(A&&(g+=w.curve(a,o,a,o,a,u)+w.move(a,u)),m+=w.curve(a,o,a,o,a,k)+w.line(p,k)+"z",v.push(g),b.push(m),f=-1)}}d=a,h=o;break;default:var F=function(e,t,r){var n=[];switch(e){case"stepline":n=w.line(t,null,"H")+w.line(null,r,"V");break;case"linestep":n=w.line(null,r,"V")+w.line(t,null,"H");break;case"straight":n=w.line(t,r)}return n};if(null===r[n][i])f=0;else switch(f){case 0:if(p=d,g=A?w.move(d,c[i])+w.line(d,h):w.move(d,h),m=w.move(d,h),null===r[n][i+1]){v.push(g),b.push(m);break}if(f=1,i<r[n].length-2){var B=F(x,a,o);g+=B,m+=B;break}case 1:if(null===r[n][i+1])g+=A?w.line(d,u):w.move(d,h),m+=w.line(d,k)+w.line(p,k)+"z",v.push(g),b.push(m),f=-1;else{var W=F(x,a,o);g+=W,m+=W,i>=r[n].length-2&&(A&&(g+=w.line(a,u)),m+=w.line(a,k)+w.line(p,k)+"z",v.push(g),b.push(m),f=-1)}}d=a,h=o}return{linePaths:v,areaPaths:b,pX:d,pY:h,pathState:f,segmentStartX:p,linePath:g,areaPath:m}}},{key:"handleNullDataPoints",value:function(e,t,r,n,i){var a=this.w;if(null===e[r][n]&&a.config.markers.showNullDataPoints||1===e[r].length){var o=this.strokeWidth-a.config.markers.strokeWidth/2;o>0||(o=0);var s=this.markers.plotChartMarkers(t,i,n+1,o,!0);null!==s&&this.elPointsMain.add(s)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,r,n,a){this.xoffset=t,this.yoffset=r,this.height=a,this.width=n,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,r=[],n=this.xoffset,a=this.yoffset,o=i(e)/this.height,s=i(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)r.push([n,a,n+o,a+e[t]/o]),a+=e[t]/o;else for(t=0;t<e.length;t++)r.push([n,a,n+e[t]/s,a+s]),n+=e[t]/s;return r},this.cutArea=function(t){var r;if(this.width>=this.height){var n=t/this.height,i=this.width-n;r=new e(this.xoffset+n,this.yoffset,i,this.height)}else{var a=t/this.width,o=this.height-a;r=new e(this.xoffset,this.yoffset+a,this.width,o)}return r}}function t(t,n,a,o,s){return o=void 0===o?0:o,s=void 0===s?0:s,function(e){var t,r,n=[];for(t=0;t<e.length;t++)for(r=0;r<e[t].length;r++)n.push(e[t][r]);return n}(function e(t,n,a,o){var s,l,u,c,d;if(0!==t.length)return s=a.shortestEdge(),(c=l=t[0],0===n.length||((d=n.slice()).push(c),r(n,s)>=r(d,s)))?(n.push(l),e(t.slice(1),n,a,o)):(u=a.cutArea(i(n),o),o.push(a.getCoordinates(n)),e(t,[],u,o)),o;o.push(a.getCoordinates(n))}(function(e,t){var r,n=[],a=t/i(e);for(r=0;r<e.length;r++)n[r]=e[r]*a;return n}(t,n*a),[],new e(o,s,n,a),[]))}function r(e,t){var r=Math.min.apply(Math,e),n=Math.max.apply(Math,e),a=i(e);return Math.max(Math.pow(t,2)*n/Math.pow(a,2),Math.pow(a,2)/(Math.pow(t,2)*r))}function n(e){return e&&e.constructor===Array}function i(e){var t,r=0;for(t=0;t<e.length;t++)r+=e[t];return r}return function e(r,a,o,s,l){s=void 0===s?0:s,l=void 0===l?0:l;var u,c,d=[],h=[];if(n(r[0])){for(c=0;c<r.length;c++)d[c]=function e(t){var r,a=0;if(n(t[0]))for(r=0;r<t.length;r++)a+=e(t[r]);else a=i(t);return a}(r[c]);for(u=t(d,a,o,s,l),c=0;c<r.length;c++)h.push(e(r[c],u[c][2]-u[c][0],u[c][3]-u[c][1],u[c][0],u[c][1]))}else h=t(r,a,o,s,l);return h}}();var eH,eX,eY=function(){function e(t,r){i(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new eP(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return o(e,[{key:"draw",value:function(e){var t=this,r=this.w,n=new C(this.ctx),i=new X(this.ctx),a=n.group({class:"apexcharts-treemap"});if(r.globals.noData)return a;var o=[];return e.forEach(function(e){var t=e.map(function(e){return Math.abs(e)});o.push(t)}),this.negRange=this.helpers.checkColorRange(),r.config.series.forEach(function(e,r){e.data.forEach(function(e){Array.isArray(t.labels[r])||(t.labels[r]=[]),t.labels[r].push(e.x)})}),window.TreemapSquared.generate(o,r.globals.gridWidth,r.globals.gridHeight).forEach(function(o,s){var l=n.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:w.escapeString(r.globals.seriesNames[s]),rel:s+1,"data:realIndex":s});if(r.config.chart.dropShadow.enabled){var u=r.config.chart.dropShadow;new S(t.ctx).dropShadow(a,u,s)}var c=n.group({class:"apexcharts-data-labels"});o.forEach(function(a,o){var u=a[0],c=a[1],d=a[2],h=a[3],f=n.drawRect(u,c,d-u,h-c,r.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,r.config.plotOptions.treemap.useFillColorAsStroke?g:r.globals.stroke.colors[s]);f.attr({cx:u,cy:c,index:s,i:s,j:o,width:d-u,height:h-c});var p=t.helpers.getShadeColor(r.config.chart.type,s,o,t.negRange),g=p.color;void 0!==r.config.series[s].data[o]&&r.config.series[s].data[o].fillColor&&(g=r.config.series[s].data[o].fillColor);var m=i.fillPath({color:g,seriesNumber:s,dataPointIndex:o});f.node.classList.add("apexcharts-treemap-rect"),f.attr({fill:m}),t.helpers.addListeners(f);var v={x:u+(d-u)/2,y:c+(h-c)/2,width:0,height:0},b={x:u,y:c,width:d-u,height:h-c};if(r.config.chart.animations.enabled&&!r.globals.dataChanged){var x=1;r.globals.resized||(x=r.config.chart.animations.speed),t.animateTreemap(f,v,b,x)}if(r.globals.dataChanged){var y=1;t.dynamicAnim.enabled&&r.globals.shouldAnimate&&(y=t.dynamicAnim.speed,r.globals.previousPaths[s]&&r.globals.previousPaths[s][o]&&r.globals.previousPaths[s][o].rect&&(v=r.globals.previousPaths[s][o].rect),t.animateTreemap(f,v,b,y))}var w=t.getFontSize(a),k=r.config.dataLabels.formatter(t.labels[s][o],{value:r.globals.series[s][o],seriesIndex:s,dataPointIndex:o,w:r});"truncate"===r.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(r.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,u,c,d,h));var S=null;r.globals.series[s][o]&&(S=t.helpers.calculateDataLabels({text:k,x:(u+d)/2,y:(c+h)/2+t.strokeWidth/2+w/3,i:s,j:o,colorProps:p,fontSize:w,series:e})),r.config.dataLabels.enabled&&S&&t.rotateToFitLabel(S,w,k,u,c,d,h),l.add(f),null!==S&&l.add(S)}),l.add(c),a.add(l)}),a}},{key:"getFontSize",value:function(e){var t=this.w,r=function e(t){var r,n=0;if(Array.isArray(t[0]))for(r=0;r<t.length;r++)n+=e(t[r]);else for(r=0;r<t.length;r++)n+=t[r].length;return n}(this.labels)/function e(t){var r,n=0;if(Array.isArray(t[0]))for(r=0;r<t.length;r++)n+=e(t[r]);else for(r=0;r<t.length;r++)n+=1;return n}(this.labels);return Math.min(Math.pow((e[2]-e[0])*(e[3]-e[1]),.5)/r,parseInt(t.config.dataLabels.style.fontSize,10))}},{key:"rotateToFitLabel",value:function(e,t,r,n,i,a,o){var s=new C(this.ctx),l=s.getTextRects(r,t);if(l.width+this.w.config.stroke.width+5>a-n&&l.width<=o-i){var u=s.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(u.x," ").concat(u.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,r,n,i,a){var o=new C(this.ctx),s=o.getTextRects(e,t).width+this.w.config.stroke.width+5>i-r&&a-n>i-r?a-n:i-r,l=o.getTextBasedOnMaxWidth({text:e,maxWidth:s,fontSize:t});return e.length!==l.length&&s/t<5?"":l}},{key:"animateTreemap",value:function(e,t,r,n){var i=new k(this.ctx);i.animateRect(e,{x:t.x,y:t.y,width:t.width,height:t.height},{x:r.x,y:r.y,width:r.width,height:r.height},n,function(){i.animationCompleted(e)})}}]),e}(),eU=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return o(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var r=this,n=this.w;if(n.globals.allSeriesCollapsed)return n.globals.labels=[],n.globals.timescaleLabels=[],[];var i=new T(this.ctx),a=(t-e)/864e5;this.determineInterval(a),n.globals.disableZoomIn=!1,n.globals.disableZoomOut=!1,a<11574074074074075e-20?n.globals.disableZoomIn=!0:a>5e4&&(n.globals.disableZoomOut=!0);var o=i.getTimeUnitsfromTimestamp(e,t,this.utc),s=n.globals.gridWidth/a,l=s/24,u=l/60,c=Math.floor(24*a),d=Math.floor(1440*a),h=Math.floor(86400*a),f=Math.floor(a),g=Math.floor(a/30),m=Math.floor(a/365),v={minMillisecond:o.minMillisecond,minSecond:o.minSecond,minMinute:o.minMinute,minHour:o.minHour,minDate:o.minDate,minMonth:o.minMonth,minYear:o.minYear},b={firstVal:v,currentMillisecond:v.minMillisecond,currentSecond:v.minSecond,currentMinute:v.minMinute,currentHour:v.minHour,currentMonthDate:v.minDate,currentDate:v.minDate,currentMonth:v.minMonth,currentYear:v.minYear,daysWidthOnXAxis:s,hoursWidthOnXAxis:l,minutesWidthOnXAxis:u,secondsWidthOnXAxis:u/60,numberOfSeconds:h,numberOfMinutes:d,numberOfHours:c,numberOfDays:f,numberOfMonths:g,numberOfYears:m};switch(this.tickInterval){case"years":this.generateYearScale(b);break;case"months":case"half_year":this.generateMonthScale(b);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(b);break;case"hours":this.generateHourScale(b);break;case"minutes_fives":case"minutes":this.generateMinuteScale(b);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(b)}var x=this.timeScaleArray.map(function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?p(p({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?p(p({},t),{},{value:e.value}):"minute"===e.unit?p(p({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?p(p({},t),{},{value:e.value,minute:e.minute,second:e.second}):e});return x.filter(function(e){var t=1,i=Math.ceil(n.globals.gridWidth/120),a=e.value;void 0!==n.config.xaxis.tickAmount&&(i=n.config.xaxis.tickAmount),x.length>i&&(t=Math.floor(x.length/i));var o=!1,s=!1;switch(r.tickInterval){case"years":"year"===e.unit&&(o=!0);break;case"half_year":t=7,"year"===e.unit&&(o=!0);break;case"months":t=1,"year"===e.unit&&(o=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(o=!0),30===a&&(s=!0);break;case"months_days":t=10,"month"===e.unit&&(o=!0),30===a&&(s=!0);break;case"week_days":t=8,"month"===e.unit&&(o=!0);break;case"days":t=1,"month"===e.unit&&(o=!0);break;case"hours":"day"===e.unit&&(o=!0);break;case"minutes_fives":case"seconds_fives":a%5!=0&&(s=!0);break;case"seconds_tens":a%10!=0&&(s=!0)}if("hours"===r.tickInterval||"minutes_fives"===r.tickInterval||"seconds_tens"===r.tickInterval||"seconds_fives"===r.tickInterval){if(!s)return!0}else if((a%t==0||o)&&!s)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var r=this.w,n=this.formatDates(e),i=this.removeOverlappingTS(n);r.globals.timescaleLabels=i.slice(),new eh(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,r=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case r>15:this.tickInterval="minutes_fives";break;case r>5:this.tickInterval="minutes";break;case r>1:this.tickInterval="seconds_tens";break;case 60*r>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,r=e.currentMonth,n=e.currentYear,i=e.daysWidthOnXAxis,a=e.numberOfYears,o=t.minYear,s=0,l=new T(this.ctx),u="year";if(t.minDate>1||t.minMonth>0){var c=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);s=(l.determineDaysOfYear(t.minYear)-c+1)*i,o=t.minYear+1,this.timeScaleArray.push({position:s,value:o,unit:u,year:o,month:w.monthMod(r+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:s,value:o,unit:u,year:n,month:w.monthMod(r+1)});for(var d=o,h=s,f=0;f<a;f++)d++,h=l.determineDaysOfYear(d-1)*i+h,this.timeScaleArray.push({position:h,value:d,unit:u,year:d,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,r=e.currentMonthDate,n=e.currentMonth,i=e.currentYear,a=e.daysWidthOnXAxis,o=e.numberOfMonths,s=n,l=0,u=new T(this.ctx),c="month",d=0;if(t.minDate>1){l=(u.determineDaysOfMonths(n+1,t.minYear)-r+1)*a,s=w.monthMod(n+1);var h=i+d,f=w.monthMod(s),p=s;0===s&&(c="year",p=h,f=1,h+=d+=1),this.timeScaleArray.push({position:l,value:p,unit:c,year:h,month:f})}else this.timeScaleArray.push({position:l,value:s,unit:c,year:i,month:w.monthMod(n)});for(var g=s+1,m=l,v=0,b=1;v<o;v++,b++){0===(g=w.monthMod(g))?(c="year",d+=1):c="month";var x=this._getYear(i,g,d);m=u.determineDaysOfMonths(g,x)*a+m;var y=0===g?x:g;this.timeScaleArray.push({position:m,value:y,unit:c,year:x,month:0===g?1:g}),g++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,r=e.currentMonth,n=e.currentYear,i=e.hoursWidthOnXAxis,a=e.numberOfDays,o=new T(this.ctx),s="day",l=t.minDate+1,u=l,c=function(e,t,r){return e>o.determineDaysOfMonths(t+1,r)&&(u=1,s="month",h=t+=1),t},d=(24-t.minHour)*i,h=l,f=c(u,r,n);0===t.minHour&&1===t.minDate?(d=0,h=w.monthMod(t.minMonth),s="month",u=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(d=0,h=l=t.minDate,f=c(u=l,r,n)),this.timeScaleArray.push({position:d,value:h,unit:s,year:this._getYear(n,f,0),month:w.monthMod(f),day:u});for(var p=d,g=0;g<a;g++){s="day",f=c(u+=1,f,this._getYear(n,f,0));var m=this._getYear(n,f,0);p=24*i+p;var v=1===u?w.monthMod(f):u;this.timeScaleArray.push({position:p,value:v,unit:s,year:m,month:w.monthMod(f),day:v})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,r=e.currentDate,n=e.currentMonth,i=e.currentYear,a=e.minutesWidthOnXAxis,o=e.numberOfHours,s=new T(this.ctx),l="hour",u=function(e,t){return e>s.determineDaysOfMonths(t+1,i)&&(g=1,t+=1),{month:t,date:g}},c=function(e,t){return e>s.determineDaysOfMonths(t+1,i)?t+=1:t},d=60-(t.minMinute+t.minSecond/60),h=d*a,f=t.minHour+1,p=f;60===d&&(h=0,p=f=t.minHour);var g=r;p>=24&&(p=0,g+=1,l="day");var m=u(g,n).month;m=c(g,m),this.timeScaleArray.push({position:h,value:f,unit:l,day:g,hour:p,year:i,month:w.monthMod(m)}),p++;for(var v=h,b=0;b<o;b++){l="hour",p>=24&&(p=0,l="day",m=u(g+=1,m).month,m=c(g,m));var x=this._getYear(i,m,0);v=60*a+v;var y=0===p?g:p;this.timeScaleArray.push({position:v,value:y,unit:l,hour:p,day:g,year:x,month:w.monthMod(m)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,r=e.currentSecond,n=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.minutesWidthOnXAxis,u=e.secondsWidthOnXAxis,c=e.numberOfMinutes,d=n+1,h=i,f=(60-r-t/1e3)*u,p=0;p<c;p++)d>=60&&(d=0,24===(h+=1)&&(h=0)),this.timeScaleArray.push({position:f,value:d,unit:"minute",hour:h,minute:d,day:a,year:this._getYear(s,o,0),month:w.monthMod(o)}),f+=l,d++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,r=e.currentSecond,n=e.currentMinute,i=e.currentHour,a=e.currentDate,o=e.currentMonth,s=e.currentYear,l=e.secondsWidthOnXAxis,u=e.numberOfSeconds,c=r+1,d=n,h=i,f=(1e3-t)/1e3*l,p=0;p<u;p++)c>=60&&(c=0,++d>=60&&(d=0,24==++h&&(h=0))),this.timeScaleArray.push({position:f,value:c,unit:"second",hour:h,minute:d,second:c,day:a,year:this._getYear(s,o,0),month:w.monthMod(o)}),f+=l,c++}},{key:"createRawDateString",value:function(e,t){var r=e.year;return 0===e.month&&(e.month=1),r+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?r+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":r+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?r+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":r+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?r+=":"+("0"+t).slice(-2):r+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?r+=":"+("0"+t).slice(-2):r+=":00",this.utc&&(r+=".000Z"),r}},{key:"formatDates",value:function(e){var t=this,r=this.w;return e.map(function(e){var n=e.value.toString(),i=new T(t.ctx),a=t.createRawDateString(e,n),o=i.getDate(i.parseDate(a));if(t.utc||(o=i.getDate(i.parseDateWithTimezone(a))),void 0===r.config.xaxis.labels.format){var s="dd MMM",l=r.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(s=l.year),"month"===e.unit&&(s=l.month),"day"===e.unit&&(s=l.day),"hour"===e.unit&&(s=l.hour),"minute"===e.unit&&(s=l.minute),"second"===e.unit&&(s=l.second),n=i.formatDate(o,s)}else n=i.formatDate(o,r.config.xaxis.labels.format);return{dateString:a,position:e.position,value:n,unit:e.unit,year:e.year,month:e.month}})}},{key:"removeOverlappingTS",value:function(e){var t,r=this,n=new C(this.ctx),i=!1;e.length>0&&e[0].value&&e.every(function(t){return t.value.length===e[0].value.length})&&(i=!0,t=n.getTextRects(e[0].value).width);var a=0;return e.map(function(o,s){if(s>0&&r.w.config.xaxis.labels.hideOverlappingLabels){var l=i?t:n.getTextRects(e[a].value).width,u=e[a].position;return o.position>u+l+10?(a=s,o):null}return o}).filter(function(e){return null!==e})}},{key:"_getYear",value:function(e,t,r){return e+Math.floor(t/12)+r}}]),e}(),eV=function(){function e(t,r){i(this,e),this.ctx=r,this.w=r.w,this.el=t}return o(e,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,r=e.config,n=r.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(n),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(n),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(n)&&r.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),C.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=new window.SVG.Doc(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(r.chart.offsetX,", ").concat(r.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==r.theme.mode||r.chart.background?"light"!==r.theme.mode||r.chart.background?r.chart.background:"#fff":"#424242",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),C.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elLegendWrap.setAttribute("xmlns","http://www.w3.org/1999/xhtml"),t.dom.elLegendForeign.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var r=this.w,n=this.ctx,i=r.config,a=r.globals,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},column:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},s=i.chart.type||"line",l=null,u=0;a.series.forEach(function(t,n){var i=e[n].type||s;o[i]?("rangeArea"===i?(o[i].series.push(a.seriesRangeStart[n]),o[i].seriesRangeEnd.push(a.seriesRangeEnd[n])):o[i].series.push(t),o[i].i.push(n),"column"!==i&&"bar"!==i||(r.globals.columnSeries=o.column)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(i)?l=i:"bar"===i?(o.column.series.push(t),o.column.i.push(n)):console.warn("You have specified an unrecognized series type (".concat(i,").")),s!==i&&"scatter"!==i&&u++}),u>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),o.column.series.length>0&&i.plotOptions.bar.horizontal&&(u-=o.column.series.length,o.column={series:[],i:[]},r.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),a.comboCharts||(a.comboCharts=u>0);var c=new eW(n,t),d=new eT(n,t);n.pie=new eI(n);var h=new eR(n);n.rangeBar=new eN(n,t);var f=new eL(n),p=[];if(a.comboCharts){var g,m,b=new A(n);if(o.area.series.length>0&&(g=p).push.apply(g,v(b.drawSeriesByGroup(o.area,a.areaGroups,"area",c))),o.column.series.length>0){if(i.chart.stacked){var x=new e_(n,t);p.push(x.draw(o.column.series,o.column.i))}else n.bar=new eE(n,t),p.push(n.bar.draw(o.column.series,o.column.i))}if(o.rangeArea.series.length>0&&p.push(c.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&(m=p).push.apply(m,v(b.drawSeriesByGroup(o.line,a.lineGroups,"line",c))),o.candlestick.series.length>0&&p.push(d.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&p.push(d.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.rangeBar.series.length>0&&p.push(n.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){var y=new eW(n,t,!0);p.push(y.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){var w=new eW(n,t,!0);p.push(w.draw(o.bubble.series,"bubble",o.bubble.i))}}else switch(i.chart.type){case"line":p=c.draw(a.series,"line");break;case"area":p=c.draw(a.series,"area");break;case"bar":i.chart.stacked?p=new e_(n,t).draw(a.series):(n.bar=new eE(n,t),p=n.bar.draw(a.series));break;case"candlestick":p=new eT(n,t).draw(a.series,"candlestick");break;case"boxPlot":p=new eT(n,t).draw(a.series,i.chart.type);break;case"rangeBar":p=n.rangeBar.draw(a.series);break;case"rangeArea":p=c.draw(a.seriesRangeStart,"rangeArea",void 0,a.seriesRangeEnd);break;case"heatmap":p=new eO(n,t).draw(a.series);break;case"treemap":p=new eY(n,t).draw(a.series);break;case"pie":case"donut":case"polarArea":p=n.pie.draw(a.series);break;case"radialBar":p=h.draw(a.series);break;case"radar":p=f.draw(a.series);break;default:p=c.draw(a.series)}return p}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,r=e.config;r.chart.width=r.chart.width||"100%",r.chart.height=r.chart.height||"auto",t.svgWidth=r.chart.width,t.svgHeight=r.chart.height;var n=w.getDimensions(this.el),i=r.chart.width.toString().split(/[0-9]+/g).pop();"%"===i?w.isNumber(n[0])&&(0===n[0].width&&(n=w.getDimensions(this.el.parentNode)),t.svgWidth=n[0]*parseInt(r.chart.width,10)/100):"px"!==i&&""!==i||(t.svgWidth=parseInt(r.chart.width,10));var a=String(r.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight){if("%"===a){var o=w.getDimensions(this.el.parentNode);t.svgHeight=o[1]*parseInt(r.chart.height,10)/100}else t.svgHeight=parseInt(r.chart.height,10)}else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),C.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==a){var s=r.chart.sparkline.enabled?0:t.axisCharts?r.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+s,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,r=e.translateX;C.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(r,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,r=0,n=e.config.chart.sparkline.enabled?1:15;n+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(r=new ep(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var i=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),a=2.05*e.globals.radialSize;if(i&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var o=w.getBoundingClientRect(i);a=o.bottom;var s=o.bottom-o.top;a=Math.max(2.05*e.globals.radialSize,s)}var l=Math.ceil(a+t.translateY+r+n);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(l,"px"),C.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new J(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(){return[]})},r=new W,n=this.w.globals;r.initGlobalVars(n),n.seriesXvalues=t(),n.seriesYvalues=t()}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new ei(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new ei(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new eU(this.ctx);var r=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?r=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(r=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(r)}t=new A(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.w;if(t.config.chart.brush.enabled&&"function"!=typeof t.config.chart.events.selection){var r=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];r.forEach(function(t){var r=ApexCharts.getChartByID(t);r.w.globals.brushSource=e.ctx,"function"!=typeof r.w.config.chart.events.zoomed&&(r.w.config.chart.events.zoomed=function(){return e.updateSourceChart(r)}),"function"!=typeof r.w.config.chart.events.scrolled&&(r.w.config.chart.events.scrolled=function(){return e.updateSourceChart(r)})}),t.config.chart.events.selection=function(e,t){r.forEach(function(e){ApexCharts.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:t.xaxis.min,max:t.xaxis.max}},!1,!1,!1,!1)})}}}}]),e}(),eG=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"_updateOptions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(o){var s=[t.ctx];i&&(s=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(s=[t.ctx],t.ctx.w.globals.isExecCalled=!1),s.forEach(function(i,l){var u=i.w;if(u.globals.shouldAnimate=n,r||(u.globals.resized=!0,u.globals.dataChanged=!0,n&&i.series.getPreviousPaths()),e&&"object"===x(e)&&(i.config=new B(e),e=A.extendArrayProps(i.config,e,u),i.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,u.config=w.extend(u.config,e),a&&(u.globals.lastXAxis=e.xaxis?w.clone(e.xaxis):[],u.globals.lastYAxis=e.yaxis?w.clone(e.yaxis):[],u.globals.initialConfig=w.extend({},u.config),u.globals.initialSeries=w.clone(u.config.series),e.series))){for(var c=0;c<u.globals.collapsedSeriesIndices.length;c++){var d=u.config.series[u.globals.collapsedSeriesIndices[c]];u.globals.collapsedSeries[c].data=u.globals.axisCharts?d.data.slice():d}for(var h=0;h<u.globals.ancillaryCollapsedSeriesIndices.length;h++){var f=u.config.series[u.globals.ancillaryCollapsedSeriesIndices[h]];u.globals.ancillaryCollapsedSeries[h].data=u.globals.axisCharts?f.data.slice():f}i.series.emptyCollapsedSeries(u.config.series)}return i.update(e).then(function(){l===s.length-1&&o(i)})})})}},{key:"_updateSeries",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(i){var a,o=r.w;return o.globals.shouldAnimate=t,o.globals.dataChanged=!0,t&&r.ctx.series.getPreviousPaths(),o.globals.axisCharts?(0===(a=e.map(function(e,t){return r._extendSeries(e,t)})).length&&(a=[{data:[]}]),o.config.series=a):o.config.series=e.slice(),n&&(o.globals.initialConfig.series=w.clone(o.config.series),o.globals.initialSeries=w.clone(o.config.series)),r.ctx.update().then(function(){i(r.ctx)})})}},{key:"_extendSeries",value:function(e,t){var r=this.w,n=r.config.series[t];return p(p({},r.config.series[t]),{},{name:e.name?e.name:null==n?void 0:n.name,color:e.color?e.color:null==n?void 0:n.color,type:e.type?e.type:null==n?void 0:n.type,group:e.group?e.group:null==n?void 0:n.group,hidden:void 0!==e.hidden?e.hidden:null==n?void 0:n.hidden,data:e.data?e.data:null==n?void 0:n.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var r=this.w,n=null,i=".apexcharts-series[data\\:realIndex='".concat(e,"']");return r.globals.axisCharts?n=r.globals.dom.Paper.select("".concat(i," path[j='").concat(t,"'], ").concat(i," circle[j='").concat(t,"'], ").concat(i," rect[j='").concat(t,"']")).members[0]:void 0===t&&(n=r.globals.dom.Paper.select("".concat(i," path[j='").concat(e,"']")).members[0],"pie"!==r.config.chart.type&&"polarArea"!==r.config.chart.type&&"donut"!==r.config.chart.type||this.ctx.pie.pieClicked(e)),n?(new C(this.ctx).pathMouseDown(n,null),n.node?n.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;return["min","max"].forEach(function(r){void 0!==e.xaxis[r]&&(t.config.xaxis[r]=e.xaxis[r],t.globals.lastXAxis[r]=e.xaxis[r])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric&&(e=new F(e).convertCatToNumericXaxis(e,this.ctx)),e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,r){e.yaxis[r].min=0,e.yaxis[r].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,r=this.w,n=r.globals.lastXAxis,i=r.globals.lastYAxis;e&&e.xaxis&&(n=e.xaxis),e&&e.yaxis&&(i=e.yaxis),r.config.xaxis.min=n.min,r.config.xaxis.max=n.max;var a=function(e){void 0!==i[e]&&(r.config.yaxis[e].min=i[e].min,r.config.yaxis[e].max=i[e].max)};r.config.yaxis.map(function(e,n){r.globals.zoomed||void 0!==i[n]?a(n):void 0!==t.ctx.opts.yaxis[n]&&(e.min=t.ctx.opts.yaxis[n].min,e.max=t.ctx.opts.yaxis[n].max)})}}]),e}();eH="undefined"!=typeof window?window:void 0,eX=function(e,t){var r=(void 0!==this?this:e).SVG=function(e){if(r.supported)return e=new r.Doc(e),r.parser.draw||r.prepare(),e};if(r.ns="http://www.w3.org/2000/svg",r.xmlns="http://www.w3.org/2000/xmlns/",r.xlink="http://www.w3.org/1999/xlink",r.svgjs="http://svgjs.dev",r.supported=!0,!r.supported)return!1;r.did=1e3,r.eid=function(e){return"Svgjs"+c(e)+r.did++},r.create=function(e){var r=t.createElementNS(this.ns,e);return r.setAttribute("id",this.eid(e)),r},r.extend=function(){var e,t;t=(e=[].slice.call(arguments)).pop();for(var n=e.length-1;n>=0;n--)if(e[n])for(var i in t)e[n].prototype[i]=t[i];r.Set&&r.Set.inherit&&r.Set.inherit()},r.invent=function(e){var t="function"==typeof e.create?e.create:function(){this.constructor.call(this,r.create(e.create))};return e.inherit&&(t.prototype=new e.inherit),e.extend&&r.extend(t,e.extend),e.construct&&r.extend(e.parent||r.Container,e.construct),t},r.adopt=function(t){var n;return t?t.instance?t.instance:((n="svg"==t.nodeName?t.parentNode instanceof e.SVGElement?new r.Nested:new r.Doc:"linearGradient"==t.nodeName?new r.Gradient("linear"):"radialGradient"==t.nodeName?new r.Gradient("radial"):r[c(t.nodeName)]?new r[c(t.nodeName)]:new r.Element(t)).type=t.nodeName,n.node=t,t.instance=n,n instanceof r.Doc&&n.namespace().defs(),n.setData(JSON.parse(t.getAttribute("svgjs:data"))||{}),n):null},r.prepare=function(){var e=t.getElementsByTagName("body")[0],n=(e?new r.Doc(e):r.adopt(t.documentElement).nested()).size(2,0);r.parser={body:e||t.documentElement,draw:n.style("opacity:0;position:absolute;left:-100%;top:-100%;overflow:hidden").node,poly:n.polyline().node,path:n.path().node,native:r.create("svg")}},r.parser={native:r.create("svg")},t.addEventListener("DOMContentLoaded",function(){r.parser.draw||r.prepare()},!1),r.regex={numberAndUnit:/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,hex:/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,rgb:/rgb\((\d+),(\d+),(\d+)\)/,reference:/#([a-z0-9\-_]+)/i,transforms:/\)\s*,?\s*/,whitespace:/\s/g,isHex:/^#[a-f0-9]{3,6}$/i,isRgb:/^rgb\(/,isCss:/[^:]+:[^;]+;?/,isBlank:/^(\s+)?$/,isNumber:/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,isPercent:/^-?[\d\.]+%$/,isImage:/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,delimiter:/[\s,]+/,hyphen:/([^e])\-/gi,pathLetters:/[MLHVCSQTAZ]/gi,isPathLetter:/[MLHVCSQTAZ]/i,numbersWithDots:/((\d?\.\d+(?:e[+-]?\d+)?)((?:\.\d+(?:e[+-]?\d+)?)+))+/gi,dots:/\./g},r.utils={map:function(e,t){for(var r=e.length,n=[],i=0;i<r;i++)n.push(t(e[i]));return n},filter:function(e,t){for(var r=e.length,n=[],i=0;i<r;i++)t(e[i])&&n.push(e[i]);return n},filterSVGElements:function(t){return this.filter(t,function(t){return t instanceof e.SVGElement})}},r.defaults={attrs:{"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","font-size":16,"font-family":"Helvetica, Arial, sans-serif","text-anchor":"start"}},r.Color=function(e){var t;this.r=0,this.g=0,this.b=0,e&&("string"==typeof e?r.regex.isRgb.test(e)?(t=r.regex.rgb.exec(e.replace(r.regex.whitespace,"")),this.r=parseInt(t[1]),this.g=parseInt(t[2]),this.b=parseInt(t[3])):r.regex.isHex.test(e)&&(t=r.regex.hex.exec(4==e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e),this.r=parseInt(t[1],16),this.g=parseInt(t[2],16),this.b=parseInt(t[3],16)):"object"===x(e)&&(this.r=e.r,this.g=e.g,this.b=e.b))},r.extend(r.Color,{toString:function(){return this.toHex()},toHex:function(){return"#"+d(this.r)+d(this.g)+d(this.b)},toRgb:function(){return"rgb("+[this.r,this.g,this.b].join()+")"},brightness:function(){return this.r/255*.3+this.g/255*.59+this.b/255*.11},morph:function(e){return this.destination=new r.Color(e),this},at:function(e){return this.destination?(e=e<0?0:e>1?1:e,new r.Color({r:~~(this.r+(this.destination.r-this.r)*e),g:~~(this.g+(this.destination.g-this.g)*e),b:~~(this.b+(this.destination.b-this.b)*e)})):this}}),r.Color.test=function(e){return e+="",r.regex.isHex.test(e)||r.regex.isRgb.test(e)},r.Color.isRgb=function(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b},r.Color.isColor=function(e){return r.Color.isRgb(e)||r.Color.test(e)},r.Array=function(e,t){0==(e=(e||[]).valueOf()).length&&t&&(e=t.valueOf()),this.value=this.parse(e)},r.extend(r.Array,{toString:function(){return this.value.join(" ")},valueOf:function(){return this.value},parse:function(e){return Array.isArray(e=e.valueOf())?e:this.split(e)}}),r.PointArray=function(e,t){r.Array.call(this,e,t||[[0,0]])},r.PointArray.prototype=new r.Array,r.PointArray.prototype.constructor=r.PointArray;for(var n={M:function(e,t,r){return t.x=r.x=e[0],t.y=r.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Z:function(e,t,r){return t.x=r.x,t.y=r.y,["Z"]}},i="mlhvqtcsaz".split(""),a=0,o=i.length;a<o;++a)n[i[a]]=function(e){return function(t,r,i){if("H"==e)t[0]=t[0]+r.x;else if("V"==e)t[0]=t[0]+r.y;else if("A"==e)t[5]=t[5]+r.x,t[6]=t[6]+r.y;else for(var a=0,o=t.length;a<o;++a)t[a]=t[a]+(a%2?r.y:r.x);if(n&&"function"==typeof n[e])return n[e](t,r,i)}}(i[a].toUpperCase());r.PathArray=function(e,t){r.Array.call(this,e,t||[["M",0,0]])},r.PathArray.prototype=new r.Array,r.PathArray.prototype.constructor=r.PathArray,r.extend(r.PathArray,{toString:function(){return function(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t][0],null!=e[t][1]&&(n+=e[t][1],null!=e[t][2]&&(n+=" ",n+=e[t][2],null!=e[t][3]&&(n+=" ",n+=e[t][3],n+=" ",n+=e[t][4],null!=e[t][5]&&(n+=" ",n+=e[t][5],n+=" ",n+=e[t][6],null!=e[t][7]&&(n+=" ",n+=e[t][7])))));return n+" "}(this.value)},move:function(e,t){var r=this.bbox();return r.x,r.y,this},at:function(e){if(!this.destination)return this;for(var t=this.value,n=this.destination.value,i=[],a=new r.PathArray,o=0,s=t.length;o<s;o++){i[o]=[t[o][0]];for(var l=1,u=t[o].length;l<u;l++)i[o][l]=t[o][l]+(n[o][l]-t[o][l])*e;"A"===i[o][0]&&(i[o][4]=+(0!=i[o][4]),i[o][5]=+(0!=i[o][5]))}return a.value=i,a},parse:function(e){if(e instanceof r.PathArray)return e.valueOf();var t,i={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0};e="string"==typeof e?e.replace(r.regex.numbersWithDots,l).replace(r.regex.pathLetters," $& ").replace(r.regex.hyphen,"$1 -").trim().split(r.regex.delimiter):e.reduce(function(e,t){return[].concat.call(e,t)},[]);var a=[],o=new r.Point,s=new r.Point,u=0,c=e.length;do r.regex.isPathLetter.test(e[u])?(t=e[u],++u):"M"==t?t="L":"m"==t&&(t="l"),a.push(n[t].call(null,e.slice(u,u+=i[t.toUpperCase()]).map(parseFloat),o,s));while(c>u)return a},bbox:function(){return r.parser.draw||r.prepare(),r.parser.path.setAttribute("d",this.toString()),r.parser.path.getBBox()}}),r.Number=r.invent({create:function(e,t){this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(r.regex.numberAndUnit))&&(this.value=parseFloat(t[1]),"%"==t[5]?this.value/=100:"s"==t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof r.Number&&(this.value=e.valueOf(),this.unit=e.unit)},extend:{toString:function(){return("%"==this.unit?~~(1e8*this.value)/1e6:"s"==this.unit?this.value/1e3:this.value)+this.unit},toJSON:function(){return this.toString()},valueOf:function(){return this.value},plus:function(e){return e=new r.Number(e),new r.Number(this+e,this.unit||e.unit)},minus:function(e){return e=new r.Number(e),new r.Number(this-e,this.unit||e.unit)},times:function(e){return e=new r.Number(e),new r.Number(this*e,this.unit||e.unit)},divide:function(e){return e=new r.Number(e),new r.Number(this/e,this.unit||e.unit)},to:function(e){var t=new r.Number(this);return"string"==typeof e&&(t.unit=e),t},morph:function(e){return this.destination=new r.Number(e),e.relative&&(this.destination.value+=this.value),this},at:function(e){return this.destination?new r.Number(this.destination).minus(this).times(e).plus(this):this}}}),r.Element=r.invent({create:function(e){this._stroke=r.defaults.attrs.stroke,this._event=null,this.dom={},(this.node=e)&&(this.type=e.nodeName,this.node.instance=this,this._stroke=e.getAttribute("stroke")||this._stroke)},extend:{x:function(e){return this.attr("x",e)},y:function(e){return this.attr("y",e)},cx:function(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)},cy:function(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)},move:function(e,t){return this.x(e).y(t)},center:function(e,t){return this.cx(e).cy(t)},width:function(e){return this.attr("width",e)},height:function(e){return this.attr("height",e)},size:function(e,t){var n=h(this,e,t);return this.width(new r.Number(n.width)).height(new r.Number(n.height))},clone:function(e){this.writeDataToDom();var t=g(this.node.cloneNode(!0));return e?e.add(t):this.after(t),t},remove:function(){return this.parent()&&this.parent().removeElement(this),this},replace:function(e){return this.after(e).remove(),e},addTo:function(e){return e.put(this)},putIn:function(e){return e.add(this)},id:function(e){return this.attr("id",e)},show:function(){return this.style("display","")},hide:function(){return this.style("display","none")},visible:function(){return"none"!=this.style("display")},toString:function(){return this.attr("id")},classes:function(){var e=this.attr("class");return null==e?[]:e.trim().split(r.regex.delimiter)},hasClass:function(e){return -1!=this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){var t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter(function(t){return t!=e}).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)},reference:function(e){return r.get(this.attr(e))},parent:function(t){var n=this;if(!n.node.parentNode)return null;if(n=r.adopt(n.node.parentNode),!t)return n;for(;n&&n.node instanceof e.SVGElement;){if("string"==typeof t?n.matches(t):n instanceof t)return n;if(!n.node.parentNode||"#document"==n.node.parentNode.nodeName)return null;n=r.adopt(n.node.parentNode)}},doc:function(){return this instanceof r.Doc?this:this.parent(r.Doc)},parents:function(e){var t=[],r=this;do{if(!(r=r.parent(e))||!r.node)break;t.push(r)}while(r.parent)return t},matches:function(e){var t;return((t=this.node).matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector).call(t,e)},native:function(){return this.node},svg:function(e){var n=t.createElementNS("http://www.w3.org/2000/svg","svg");if(!(e&&this instanceof r.Parent))return n.appendChild(e=t.createElementNS("http://www.w3.org/2000/svg","svg")),this.writeDataToDom(),e.appendChild(this.node.cloneNode(!0)),n.innerHTML.replace(/^<svg>/,"").replace(/<\/svg>$/,"");n.innerHTML="<svg>"+e.replace(/\n/,"").replace(/<([\w:-]+)([^<]+?)\/>/g,"<$1$2></$1>")+"</svg>";for(var i=0,a=n.firstChild.childNodes.length;i<a;i++)this.node.appendChild(n.firstChild.firstChild);return this},writeDataToDom:function(){return(this.each||this.lines)&&(this.each?this:this.lines()).each(function(){this.writeDataToDom()}),this.node.removeAttribute("svgjs:data"),Object.keys(this.dom).length&&this.node.setAttribute("svgjs:data",JSON.stringify(this.dom)),this},setData:function(e){return this.dom=e,this},is:function(e){return this instanceof e}}}),r.easing={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)}},r.morph=function(e){return function(t,n){return new r.MorphObj(t,n).at(e)}},r.Situation=r.invent({create:function(e){this.init=!1,this.reversed=!1,this.reversing=!1,this.duration=new r.Number(e.duration).valueOf(),this.delay=new r.Number(e.delay).valueOf(),this.start=+new Date+this.delay,this.finish=this.start+this.duration,this.ease=e.ease,this.loop=0,this.loops=!1,this.animations={},this.attrs={},this.styles={},this.transforms=[],this.once={}}}),r.FX=r.invent({create:function(e){this._target=e,this.situations=[],this.active=!1,this.situation=null,this.paused=!1,this.lastPos=0,this.pos=0,this.absPos=0,this._speed=1},extend:{animate:function(e,t,n){"object"===x(e)&&(t=e.ease,n=e.delay,e=e.duration);var i=new r.Situation({duration:e||1e3,delay:n||0,ease:r.easing[t||"-"]||t});return this.queue(i),this},target:function(e){return e&&e instanceof r.Element?(this._target=e,this):this._target},timeToAbsPos:function(e){return(e-this.situation.start)/(this.situation.duration/this._speed)},absPosToTime:function(e){return this.situation.duration/this._speed*e+this.situation.start},startAnimFrame:function(){this.stopAnimFrame(),this.animationFrame=e.requestAnimationFrame((function(){this.step()}).bind(this))},stopAnimFrame:function(){e.cancelAnimationFrame(this.animationFrame)},start:function(){return!this.active&&this.situation&&(this.active=!0,this.startCurrent()),this},startCurrent:function(){return this.situation.start=+new Date+this.situation.delay/this._speed,this.situation.finish=this.situation.start+this.situation.duration/this._speed,this.initAnimations().step()},queue:function(e){return("function"==typeof e||e instanceof r.Situation)&&this.situations.push(e),this.situation||(this.situation=this.situations.shift()),this},dequeue:function(){return this.stop(),this.situation=this.situations.shift(),this.situation&&(this.situation instanceof r.Situation?this.start():this.situation.call(this)),this},initAnimations:function(){var e,t=this.situation;if(t.init)return this;for(var n in t.animations){Array.isArray(e=this.target()[n]())||(e=[e]),Array.isArray(t.animations[n])||(t.animations[n]=[t.animations[n]]);for(var i=e.length;i--;)t.animations[n][i]instanceof r.Number&&(e[i]=new r.Number(e[i])),t.animations[n][i]=e[i].morph(t.animations[n][i])}for(var n in t.attrs)t.attrs[n]=new r.MorphObj(this.target().attr(n),t.attrs[n]);for(var n in t.styles)t.styles[n]=new r.MorphObj(this.target().style(n),t.styles[n]);return t.initialTransformation=this.target().matrixify(),t.init=!0,this},clearQueue:function(){return this.situations=[],this},clearCurrent:function(){return this.situation=null,this},stop:function(e,t){var r=this.active;return this.active=!1,t&&this.clearQueue(),e&&this.situation&&(r||this.startCurrent(),this.atEnd()),this.stopAnimFrame(),this.clearCurrent()},after:function(e){var t=this.last();return this.target().on("finished.fx",function r(n){n.detail.situation==t&&(e.call(this,t),this.off("finished.fx",r))}),this._callStart()},during:function(e){var t=this.last(),n=function(n){n.detail.situation==t&&e.call(this,n.detail.pos,r.morph(n.detail.pos),n.detail.eased,t)};return this.target().off("during.fx",n).on("during.fx",n),this.after(function(){this.off("during.fx",n)}),this._callStart()},afterAll:function(e){var t=function t(r){e.call(this),this.off("allfinished.fx",t)};return this.target().off("allfinished.fx",t).on("allfinished.fx",t),this._callStart()},last:function(){return this.situations.length?this.situations[this.situations.length-1]:this.situation},add:function(e,t,r){return this.last()[r||"animations"][e]=t,this._callStart()},step:function(e){e||(this.absPos=this.timeToAbsPos(+new Date)),!1!==this.situation.loops?(r=Math.floor(t=Math.max(this.absPos,0)),!0===this.situation.loops||r<this.situation.loops?(this.pos=t-r,n=this.situation.loop,this.situation.loop=r):(this.absPos=this.situation.loops,this.pos=1,n=this.situation.loop-1,this.situation.loop=this.situation.loops),this.situation.reversing&&(this.situation.reversed=!!((this.situation.loop-n)%2)!=this.situation.reversed)):(this.absPos=Math.min(this.absPos,1),this.pos=this.absPos),this.pos<0&&(this.pos=0),this.situation.reversed&&(this.pos=1-this.pos);var t,r,n,i=this.situation.ease(this.pos);for(var a in this.situation.once)a>this.lastPos&&a<=i&&(this.situation.once[a].call(this.target(),this.pos,i),delete this.situation.once[a]);return this.active&&this.target().fire("during",{pos:this.pos,eased:i,fx:this,situation:this.situation}),this.situation&&(this.eachAt(),1==this.pos&&!this.situation.reversed||this.situation.reversed&&0==this.pos?(this.stopAnimFrame(),this.target().fire("finished",{fx:this,situation:this.situation}),this.situations.length||(this.target().fire("allfinished"),this.situations.length||(this.target().off(".fx"),this.active=!1)),this.active?this.dequeue():this.clearCurrent()):!this.paused&&this.active&&this.startAnimFrame(),this.lastPos=i),this},eachAt:function(){var e,t=this,n=this.target(),i=this.situation;for(var a in i.animations)e=[].concat(i.animations[a]).map(function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e}),n[a].apply(n,e);for(var a in i.attrs)e=[a].concat(i.attrs[a]).map(function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e}),n.attr.apply(n,e);for(var a in i.styles)e=[a].concat(i.styles[a]).map(function(e){return"string"!=typeof e&&e.at?e.at(i.ease(t.pos),t.pos):e}),n.style.apply(n,e);if(i.transforms.length){e=i.initialTransformation,a=0;for(var o=i.transforms.length;a<o;a++){var s=i.transforms[a];s instanceof r.Matrix?e=s.relative?e.multiply((new r.Matrix).morph(s).at(i.ease(this.pos))):e.morph(s).at(i.ease(this.pos)):(s.relative||s.undo(e.extract()),e=e.multiply(s.at(i.ease(this.pos))))}n.matrix(e)}return this},once:function(e,t,r){var n=this.last();return r||(e=n.ease(e)),n.once[e]=t,this},_callStart:function(){return setTimeout((function(){this.start()}).bind(this),0),this}},parent:r.Element,construct:{animate:function(e,t,n){return(this.fx||(this.fx=new r.FX(this))).animate(e,t,n)},delay:function(e){return(this.fx||(this.fx=new r.FX(this))).delay(e)},stop:function(e,t){return this.fx&&this.fx.stop(e,t),this},finish:function(){return this.fx&&this.fx.finish(),this}}}),r.MorphObj=r.invent({create:function(e,t){return r.Color.isColor(t)?new r.Color(e).morph(t):r.regex.delimiter.test(e)?r.regex.pathLetters.test(e)?new r.PathArray(e).morph(t):new r.Array(e).morph(t):r.regex.numberAndUnit.test(t)?new r.Number(e).morph(t):(this.value=e,void(this.destination=t))},extend:{at:function(e,t){return t<1?this.value:this.destination},valueOf:function(){return this.value}}}),r.extend(r.FX,{attr:function(e,t,r){if("object"===x(e))for(var n in e)this.attr(n,e[n]);else this.add(e,t,"attrs");return this},plot:function(e,t,r,n){return 4==arguments.length?this.plot([e,t,r,n]):this.add("plot",new(this.target()).morphArray(e))}}),r.Box=r.invent({create:function(e,t,n,i){if(!("object"!==x(e)||e instanceof r.Element))return r.Box.call(this,null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height);4==arguments.length&&(this.x=e,this.y=t,this.width=n,this.height=i),null==this.x&&(this.x=0,this.y=0,this.width=0,this.height=0),this.w=this.width,this.h=this.height,this.x2=this.x+this.width,this.y2=this.y+this.height,this.cx=this.x+this.width/2,this.cy=this.y+this.height/2}}),r.BBox=r.invent({create:function(e){if(r.Box.apply(this,[].slice.call(arguments)),e instanceof r.Element){var n;try{if(!t.documentElement.contains){for(var i=e.node;i.parentNode;)i=i.parentNode;if(i!=t)throw Error("Element not in the dom")}n=e.node.getBBox()}catch(t){if(e instanceof r.Shape){r.parser.draw||r.prepare();var a=e.clone(r.parser.draw.instance).show();a&&a.node&&"function"==typeof a.node.getBBox&&(n=a.node.getBBox()),a&&"function"==typeof a.remove&&a.remove()}else n={x:e.node.clientLeft,y:e.node.clientTop,width:e.node.clientWidth,height:e.node.clientHeight}}r.Box.call(this,n)}},inherit:r.Box,parent:r.Element,construct:{bbox:function(){return new r.BBox(this)}}}),r.BBox.prototype.constructor=r.BBox,r.Matrix=r.invent({create:function(e){var t=p([1,0,0,1,0,0]);e=null===e?t:e instanceof r.Element?e.matrixify():"string"==typeof e?p(e.split(r.regex.delimiter).map(parseFloat)):6==arguments.length?p([].slice.call(arguments)):Array.isArray(e)?p(e):e&&"object"===x(e)?e:t;for(var n=v.length-1;n>=0;--n)this[v[n]]=null!=e[v[n]]?e[v[n]]:t[v[n]]},extend:{extract:function(){var e=f(this,0,1);f(this,1,0);var t=180/Math.PI*Math.atan2(e.y,e.x)-90;return{x:this.e,y:this.f,transformedX:(this.e*Math.cos(t*Math.PI/180)+this.f*Math.sin(t*Math.PI/180))/Math.sqrt(this.a*this.a+this.b*this.b),transformedY:(this.f*Math.cos(t*Math.PI/180)+this.e*Math.sin(-t*Math.PI/180))/Math.sqrt(this.c*this.c+this.d*this.d),rotation:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f,matrix:new r.Matrix(this)}},clone:function(){return new r.Matrix(this)},morph:function(e){return this.destination=new r.Matrix(e),this},multiply:function(e){var t;return new r.Matrix(this.native().multiply(((t=e)instanceof r.Matrix||(t=new r.Matrix(t)),t).native()))},inverse:function(){return new r.Matrix(this.native().inverse())},translate:function(e,t){return new r.Matrix(this.native().translate(e||0,t||0))},native:function(){for(var e=r.parser.native.createSVGMatrix(),t=v.length-1;t>=0;t--)e[v[t]]=this[v[t]];return e},toString:function(){return"matrix("+m(this.a)+","+m(this.b)+","+m(this.c)+","+m(this.d)+","+m(this.e)+","+m(this.f)+")"}},parent:r.Element,construct:{ctm:function(){return new r.Matrix(this.node.getCTM())},screenCTM:function(){if(this instanceof r.Nested){var e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new r.Matrix(t)}return new r.Matrix(this.node.getScreenCTM())}}}),r.Point=r.invent({create:function(e,t){var r;r=Array.isArray(e)?{x:e[0],y:e[1]}:"object"===x(e)?{x:e.x,y:e.y}:null!=e?{x:e,y:null!=t?t:e}:{x:0,y:0},this.x=r.x,this.y=r.y},extend:{clone:function(){return new r.Point(this)},morph:function(e,t){return this.destination=new r.Point(e,t),this}}}),r.extend(r.Element,{point:function(e,t){return new r.Point(e,t).transform(this.screenCTM().inverse())}}),r.extend(r.Element,{attr:function(e,t,n){if(null==e){for(e={},n=(t=this.node.attributes).length-1;n>=0;n--)e[t[n].nodeName]=r.regex.isNumber.test(t[n].nodeValue)?parseFloat(t[n].nodeValue):t[n].nodeValue;return e}if("object"===x(e))for(var i in e)this.attr(i,e[i]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?r.defaults.attrs[e]:r.regex.isNumber.test(t)?parseFloat(t):t;"stroke-width"==e?this.attr("stroke",parseFloat(t)>0?this._stroke:null):"stroke"==e&&(this._stroke=t),"fill"!=e&&"stroke"!=e||(r.regex.isImage.test(t)&&(t=this.doc().defs().image(t,0,0)),t instanceof r.Image&&(t=this.doc().defs().pattern(0,0,function(){this.add(t)}))),"number"==typeof t?t=new r.Number(t):r.Color.isColor(t)?t=new r.Color(t):Array.isArray(t)&&(t=new r.Array(t)),"leading"==e?this.leading&&this.leading(t):"string"==typeof n?this.node.setAttributeNS(n,e,t.toString()):this.node.setAttribute(e,t.toString()),this.rebuild&&("font-size"==e||"x"==e)&&this.rebuild(e,t)}return this}}),r.extend(r.Element,{transform:function(e,t){var n;return"object"!==x(e)?(n=new r.Matrix(this).extract(),"string"==typeof e?n[e]:n):(n=new r.Matrix(this),t=!!t||!!e.relative,null!=e.a&&(n=t?n.multiply(new r.Matrix(e)):new r.Matrix(e)),this.attr("transform",n))}}),r.extend(r.Element,{untransform:function(){return this.attr("transform",null)},matrixify:function(){return(this.attr("transform")||"").split(r.regex.transforms).slice(0,-1).map(function(e){var t=e.trim().split("(");return[t[0],t[1].split(r.regex.delimiter).map(function(e){return parseFloat(e)})]}).reduce(function(e,t){return"matrix"==t[0]?e.multiply(p(t[1])):e[t[0]].apply(e,t[1])},new r.Matrix)},toParent:function(e){if(this==e)return this;var t=this.screenCTM(),r=e.screenCTM().inverse();return this.addTo(e).untransform().transform(r.multiply(t)),this},toDoc:function(){return this.toParent(this.doc())}}),r.Transformation=r.invent({create:function(e,t){if(arguments.length>1&&"boolean"!=typeof t)return this.constructor.call(this,[].slice.call(arguments));if(Array.isArray(e))for(var r=0,n=this.arguments.length;r<n;++r)this[this.arguments[r]]=e[r];else if(e&&"object"===x(e))for(r=0,n=this.arguments.length;r<n;++r)this[this.arguments[r]]=e[this.arguments[r]];this.inversed=!1,!0===t&&(this.inversed=!0)}}),r.Translate=r.invent({parent:r.Matrix,inherit:r.Transformation,create:function(e,t){this.constructor.apply(this,[].slice.call(arguments))},extend:{arguments:["transformedX","transformedY"],method:"translate"}}),r.extend(r.Element,{style:function(e,t){if(0==arguments.length)return this.node.style.cssText||"";if(arguments.length<2){if("object"===x(e))for(var n in e)this.style(n,e[n]);else{if(!r.regex.isCss.test(e))return this.node.style[u(e)];for(e=e.split(/\s*;\s*/).filter(function(e){return!!e}).map(function(e){return e.split(/\s*:\s*/)});t=e.pop();)this.style(t[0],t[1])}}else this.node.style[u(e)]=null===t||r.regex.isBlank.test(t)?"":t;return this}}),r.Parent=r.invent({create:function(e){this.constructor.call(this,e)},inherit:r.Element,extend:{children:function(){return r.utils.map(r.utils.filterSVGElements(this.node.childNodes),function(e){return r.adopt(e)})},add:function(e,t){return null==t?this.node.appendChild(e.node):e.node!=this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this},put:function(e,t){return this.add(e,t),e},has:function(e){return this.index(e)>=0},index:function(e){return[].slice.call(this.node.childNodes).indexOf(e.node)},get:function(e){return r.adopt(this.node.childNodes[e])},first:function(){return this.get(0)},last:function(){return this.get(this.node.childNodes.length-1)},each:function(e,t){for(var n=this.children(),i=0,a=n.length;i<a;i++)n[i]instanceof r.Element&&e.apply(n[i],[i,n]),t&&n[i]instanceof r.Container&&n[i].each(e,t);return this},removeElement:function(e){return this.node.removeChild(e.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,this},defs:function(){return this.doc().defs()}}}),r.extend(r.Parent,{ungroup:function(e,t){return 0===t||this instanceof r.Defs||this.node==r.parser.draw||(e=e||(this instanceof r.Doc?this:this.parent(r.Parent)),t=t||1/0,this.each(function(){return this instanceof r.Defs?this:this instanceof r.Parent?this.ungroup(e,t-1):this.toParent(e)}),this.node.firstChild||this.remove()),this},flatten:function(e,t){return this.ungroup(e,t)}}),r.Container=r.invent({create:function(e){this.constructor.call(this,e)},inherit:r.Parent}),r.ViewBox=r.invent({parent:r.Container,construct:{}}),["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","touchstart","touchmove","touchleave","touchend","touchcancel"].forEach(function(e){r.Element.prototype[e]=function(t){return r.on(this.node,e,t),this}}),r.listeners=[],r.handlerMap=[],r.listenerId=0,r.on=function(e,t,n,i,a){var o=n.bind(i||e.instance||e),s=(r.handlerMap.indexOf(e)+1||r.handlerMap.push(e))-1,l=t.split(".")[0],u=t.split(".")[1]||"*";r.listeners[s]=r.listeners[s]||{},r.listeners[s][l]=r.listeners[s][l]||{},r.listeners[s][l][u]=r.listeners[s][l][u]||{},n._svgjsListenerId||(n._svgjsListenerId=++r.listenerId),r.listeners[s][l][u][n._svgjsListenerId]=o,e.addEventListener(l,o,a||{passive:!1})},r.off=function(e,t,n){var i=r.handlerMap.indexOf(e),a=t&&t.split(".")[0],o=t&&t.split(".")[1],s="";if(-1!=i){if(n){if("function"==typeof n&&(n=n._svgjsListenerId),!n)return;r.listeners[i][a]&&r.listeners[i][a][o||"*"]&&(e.removeEventListener(a,r.listeners[i][a][o||"*"][n],!1),delete r.listeners[i][a][o||"*"][n])}else if(o&&a){if(r.listeners[i][a]&&r.listeners[i][a][o]){for(var l in r.listeners[i][a][o])r.off(e,[a,o].join("."),l);delete r.listeners[i][a][o]}}else if(o)for(var u in r.listeners[i])for(var s in r.listeners[i][u])o===s&&r.off(e,[u,o].join("."));else if(a){if(r.listeners[i][a]){for(var s in r.listeners[i][a])r.off(e,[a,s].join("."));delete r.listeners[i][a]}}else{for(var u in r.listeners[i])r.off(e,u);delete r.listeners[i],delete r.handlerMap[i]}}},r.extend(r.Element,{on:function(e,t,n,i){return r.on(this.node,e,t,n,i),this},off:function(e,t){return r.off(this.node,e,t),this},fire:function(t,n){return t instanceof e.Event?this.node.dispatchEvent(t):this.node.dispatchEvent(t=new r.CustomEvent(t,{detail:n,cancelable:!0})),this._event=t,this},event:function(){return this._event}}),r.Defs=r.invent({create:"defs",inherit:r.Container}),r.G=r.invent({create:"g",inherit:r.Container,extend:{x:function(e){return null==e?this.transform("x"):this.transform({x:e-this.x()},!0)}},construct:{group:function(){return this.put(new r.G)}}}),r.Doc=r.invent({create:function(e){e&&("svg"==(e="string"==typeof e?t.getElementById(e):e).nodeName?this.constructor.call(this,e):(this.constructor.call(this,r.create("svg")),e.appendChild(this.node),this.size("100%","100%")),this.namespace().defs())},inherit:r.Container,extend:{namespace:function(){return this.attr({xmlns:r.ns,version:"1.1"}).attr("xmlns:xlink",r.xlink,r.xmlns).attr("xmlns:svgjs",r.svgjs,r.xmlns)},defs:function(){var e;return this._defs||((e=this.node.getElementsByTagName("defs")[0])?this._defs=r.adopt(e):this._defs=new r.Defs,this.node.appendChild(this._defs.node)),this._defs},parent:function(){return this.node.parentNode&&"#document"!=this.node.parentNode.nodeName?this.node.parentNode:null},remove:function(){return this.parent()&&this.parent().removeChild(this.node),this},clear:function(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return delete this._defs,r.parser.draw&&!r.parser.draw.parentNode&&this.node.appendChild(r.parser.draw),this},clone:function(e){this.writeDataToDom();var t=this.node,r=g(t.cloneNode(!0));return e?(e.node||e).appendChild(r.node):t.parentNode.insertBefore(r.node,t.nextSibling),r}}}),r.extend(r.Element,{}),r.Gradient=r.invent({create:function(e){this.constructor.call(this,r.create(e+"Gradient")),this.type=e},inherit:r.Container,extend:{at:function(e,t,n){return this.put(new r.Stop).update(e,t,n)},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},fill:function(){return"url(#"+this.id()+")"},toString:function(){return this.fill()},attr:function(e,t,n){return"transform"==e&&(e="gradientTransform"),r.Container.prototype.attr.call(this,e,t,n)}},construct:{gradient:function(e,t){return this.defs().gradient(e,t)}}}),r.extend(r.Gradient,r.FX,{from:function(e,t){return"radial"==(this._target||this).type?this.attr({fx:new r.Number(e),fy:new r.Number(t)}):this.attr({x1:new r.Number(e),y1:new r.Number(t)})},to:function(e,t){return"radial"==(this._target||this).type?this.attr({cx:new r.Number(e),cy:new r.Number(t)}):this.attr({x2:new r.Number(e),y2:new r.Number(t)})}}),r.extend(r.Defs,{gradient:function(e,t){return this.put(new r.Gradient(e)).update(t)}}),r.Stop=r.invent({create:"stop",inherit:r.Element,extend:{update:function(e){return("number"==typeof e||e instanceof r.Number)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new r.Number(e.offset)),this}}}),r.Pattern=r.invent({create:"pattern",inherit:r.Container,extend:{fill:function(){return"url(#"+this.id()+")"},update:function(e){return this.clear(),"function"==typeof e&&e.call(this,this),this},toString:function(){return this.fill()},attr:function(e,t,n){return"transform"==e&&(e="patternTransform"),r.Container.prototype.attr.call(this,e,t,n)}},construct:{pattern:function(e,t,r){return this.defs().pattern(e,t,r)}}}),r.extend(r.Defs,{pattern:function(e,t,n){return this.put(new r.Pattern).update(n).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})}}),r.Shape=r.invent({create:function(e){this.constructor.call(this,e)},inherit:r.Element}),r.Symbol=r.invent({create:"symbol",inherit:r.Container,construct:{symbol:function(){return this.put(new r.Symbol)}}}),r.Use=r.invent({create:"use",inherit:r.Shape,extend:{element:function(e,t){return this.attr("href",(t||"")+"#"+e,r.xlink)}},construct:{use:function(e,t){return this.put(new r.Use).element(e,t)}}}),r.Rect=r.invent({create:"rect",inherit:r.Shape,construct:{rect:function(e,t){return this.put(new r.Rect).size(e,t)}}}),r.Circle=r.invent({create:"circle",inherit:r.Shape,construct:{circle:function(e){return this.put(new r.Circle).rx(new r.Number(e).divide(2)).move(0,0)}}}),r.extend(r.Circle,r.FX,{rx:function(e){return this.attr("r",e)},ry:function(e){return this.rx(e)}}),r.Ellipse=r.invent({create:"ellipse",inherit:r.Shape,construct:{ellipse:function(e,t){return this.put(new r.Ellipse).size(e,t).move(0,0)}}}),r.extend(r.Ellipse,r.Rect,r.FX,{rx:function(e){return this.attr("rx",e)},ry:function(e){return this.attr("ry",e)}}),r.extend(r.Circle,r.Ellipse,{x:function(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())},y:function(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())},cx:function(e){return null==e?this.attr("cx"):this.attr("cx",e)},cy:function(e){return null==e?this.attr("cy"):this.attr("cy",e)},width:function(e){return null==e?2*this.rx():this.rx(new r.Number(e).divide(2))},height:function(e){return null==e?2*this.ry():this.ry(new r.Number(e).divide(2))},size:function(e,t){var n=h(this,e,t);return this.rx(new r.Number(n.width).divide(2)).ry(new r.Number(n.height).divide(2))}}),r.Line=r.invent({create:"line",inherit:r.Shape,extend:{array:function(){return new r.PointArray([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])},plot:function(e,t,n,i){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:n,y2:i}:new r.PointArray(e).toLine(),this.attr(e))},move:function(e,t){return this.attr(this.array().move(e,t).toLine())},size:function(e,t){var r=h(this,e,t);return this.attr(this.array().size(r.width,r.height).toLine())}},construct:{line:function(e,t,n,i){return r.Line.prototype.plot.apply(this.put(new r.Line),null!=e?[e,t,n,i]:[0,0,0,0])}}}),r.Polyline=r.invent({create:"polyline",inherit:r.Shape,construct:{polyline:function(e){return this.put(new r.Polyline).plot(e||new r.PointArray)}}}),r.Polygon=r.invent({create:"polygon",inherit:r.Shape,construct:{polygon:function(e){return this.put(new r.Polygon).plot(e||new r.PointArray)}}}),r.extend(r.Polyline,r.Polygon,{array:function(){return this._array||(this._array=new r.PointArray(this.attr("points")))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new r.PointArray(e))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},size:function(e,t){var r=h(this,e,t);return this.attr("points",this.array().size(r.width,r.height))}}),r.extend(r.Line,r.Polyline,r.Polygon,{morphArray:r.PointArray,x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)},width:function(e){var t=this.bbox();return null==e?t.width:this.size(e,t.height)},height:function(e){var t=this.bbox();return null==e?t.height:this.size(t.width,e)}}),r.Path=r.invent({create:"path",inherit:r.Shape,extend:{morphArray:r.PathArray,array:function(){return this._array||(this._array=new r.PathArray(this.attr("d")))},plot:function(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new r.PathArray(e))},clear:function(){return delete this._array,this}},construct:{path:function(e){return this.put(new r.Path).plot(e||new r.PathArray)}}}),r.Image=r.invent({create:"image",inherit:r.Shape,extend:{load:function(t){if(!t)return this;var n=this,i=new e.Image;return r.on(i,"load",function(){r.off(i);var e=n.parent(r.Pattern);null!==e&&(0==n.width()&&0==n.height()&&n.size(i.width,i.height),e&&0==e.width()&&0==e.height()&&e.size(n.width(),n.height()),"function"==typeof n._loaded&&n._loaded.call(n,{width:i.width,height:i.height,ratio:i.width/i.height,url:t}))}),r.on(i,"error",function(e){r.off(i),"function"==typeof n._error&&n._error.call(n,e)}),this.attr("href",i.src=this.src=t,r.xlink)},loaded:function(e){return this._loaded=e,this},error:function(e){return this._error=e,this}},construct:{image:function(e,t,n){return this.put(new r.Image).load(e).size(t||0,n||t||0)}}}),r.Text=r.invent({create:function(){this.constructor.call(this,r.create("text")),this.dom.leading=new r.Number(1.3),this._rebuild=!0,this._build=!1,this.attr("font-family",r.defaults.attrs["font-family"])},inherit:r.Shape,extend:{x:function(e){return null==e?this.attr("x"):this.attr("x",e)},text:function(e){if(void 0===e){e="";for(var t=this.node.childNodes,n=0,i=t.length;n<i;++n)0!=n&&3!=t[n].nodeType&&1==r.adopt(t[n]).dom.newLined&&(e+="\n"),e+=t[n].textContent;return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else{n=0;for(var a=(e=e.split("\n")).length;n<a;n++)this.tspan(e[n]).newLine()}return this.build(!1).rebuild()},size:function(e){return this.attr("font-size",e).rebuild()},leading:function(e){return null==e?this.dom.leading:(this.dom.leading=new r.Number(e),this.rebuild())},lines:function(){var e=(this.textPath&&this.textPath()||this).node,t=r.utils.map(r.utils.filterSVGElements(e.childNodes),function(e){return r.adopt(e)});return new r.Set(t)},rebuild:function(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){var t=this,n=0,i=this.dom.leading*new r.Number(this.attr("font-size"));this.lines().each(function(){this.dom.newLined&&(t.textPath()||this.attr("x",t.attr("x")),"\n"==this.text()?n+=i:(this.attr("dy",i+n),n=0))}),this.fire("rebuild")}return this},build:function(e){return this._build=!!e,this},setData:function(e){return this.dom=e,this.dom.leading=new r.Number(e.leading||1.3),this}},construct:{text:function(e){return this.put(new r.Text).text(e)},plain:function(e){return this.put(new r.Text).plain(e)}}}),r.Tspan=r.invent({create:"tspan",inherit:r.Shape,extend:{text:function(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?e.call(this,this):this.plain(e),this)},dx:function(e){return this.attr("dx",e)},dy:function(e){return this.attr("dy",e)},newLine:function(){var e=this.parent(r.Text);return this.dom.newLined=!0,this.dy(e.dom.leading*e.attr("font-size")).attr("x",e.x())}}}),r.extend(r.Text,r.Tspan,{plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(t.createTextNode(e)),this},tspan:function(e){var t=(this.textPath&&this.textPath()||this).node,n=new r.Tspan;return!1===this._build&&this.clear(),t.appendChild(n.node),n.text(e)},clear:function(){for(var e=(this.textPath&&this.textPath()||this).node;e.hasChildNodes();)e.removeChild(e.lastChild);return this},length:function(){return this.node.getComputedTextLength()}}),r.TextPath=r.invent({create:"textPath",inherit:r.Parent,parent:r.Text,construct:{morphArray:r.PathArray,array:function(){var e=this.track();return e?e.array():null},plot:function(e){var t=this.track(),r=null;return t&&(r=t.plot(e)),null==e?r:this},track:function(){var e=this.textPath();if(e)return e.reference("href")},textPath:function(){if(this.node.firstChild&&"textPath"==this.node.firstChild.nodeName)return r.adopt(this.node.firstChild)}}}),r.Nested=r.invent({create:function(){this.constructor.call(this,r.create("svg")),this.style("overflow","visible")},inherit:r.Container,construct:{nested:function(){return this.put(new r.Nested)}}});var s={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"==t?e:e+"-"+t}};function l(e,t,n,i){return n+i.replace(r.regex.dots," .")}function u(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function c(e){return e.charAt(0).toUpperCase()+e.slice(1)}function d(e){var t=e.toString(16);return 1==t.length?"0"+t:t}function h(e,t,r){if(null==t||null==r){var n=e.bbox();null==t?t=n.width/n.height*r:null==r&&(r=n.height/n.width*t)}return{width:t,height:r}}function f(e,t,r){return{x:t*e.a+r*e.c+0,y:t*e.b+r*e.d+0}}function p(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}function g(t){for(var n=t.childNodes.length-1;n>=0;n--)t.childNodes[n]instanceof e.SVGElement&&g(t.childNodes[n]);return r.adopt(t).id(r.eid(t.nodeName))}function m(e){return Math.abs(e)>1e-37?e:0}["fill","stroke"].forEach(function(e){var t={};t[e]=function(t){if(void 0===t)return this;if("string"==typeof t||r.Color.isRgb(t)||t&&"function"==typeof t.fill)this.attr(e,t);else for(var n=s[e].length-1;n>=0;n--)null!=t[s[e][n]]&&this.attr(s.prefix(e,s[e][n]),t[s[e][n]]);return this},r.extend(r.Element,r.FX,t)}),r.extend(r.Element,r.FX,{translate:function(e,t){return this.transform({x:e,y:t})},matrix:function(e){return this.attr("transform",new r.Matrix(6==arguments.length?[].slice.call(arguments):e))},opacity:function(e){return this.attr("opacity",e)},dx:function(e){return this.x(new r.Number(e).plus(this instanceof r.FX?0:this.x()),!0)},dy:function(e){return this.y(new r.Number(e).plus(this instanceof r.FX?0:this.y()),!0)}}),r.extend(r.Path,{length:function(){return this.node.getTotalLength()},pointAt:function(e){return this.node.getPointAtLength(e)}}),r.Set=r.invent({create:function(e){Array.isArray(e)?this.members=e:this.clear()},extend:{add:function(){for(var e=[].slice.call(arguments),t=0,r=e.length;t<r;t++)this.members.push(e[t]);return this},remove:function(e){var t=this.index(e);return t>-1&&this.members.splice(t,1),this},each:function(e){for(var t=0,r=this.members.length;t<r;t++)e.apply(this.members[t],[t,this.members]);return this},clear:function(){return this.members=[],this},length:function(){return this.members.length},has:function(e){return this.index(e)>=0},index:function(e){return this.members.indexOf(e)},get:function(e){return this.members[e]},first:function(){return this.get(0)},last:function(){return this.get(this.members.length-1)},valueOf:function(){return this.members}},construct:{set:function(e){return new r.Set(e)}}}),r.FX.Set=r.invent({create:function(e){this.set=e}}),r.Set.inherit=function(){var e=[];for(var t in r.Shape.prototype)"function"==typeof r.Shape.prototype[t]&&"function"!=typeof r.Set.prototype[t]&&e.push(t);for(var t in e.forEach(function(e){r.Set.prototype[e]=function(){for(var t=0,n=this.members.length;t<n;t++)this.members[t]&&"function"==typeof this.members[t][e]&&this.members[t][e].apply(this.members[t],arguments);return"animate"==e?this.fx||(this.fx=new r.FX.Set(this)):this}}),e=[],r.FX.prototype)"function"==typeof r.FX.prototype[t]&&"function"!=typeof r.FX.Set.prototype[t]&&e.push(t);e.forEach(function(e){r.FX.Set.prototype[e]=function(){for(var t=0,r=this.set.members.length;t<r;t++)this.set.members[t].fx[e].apply(this.set.members[t].fx,arguments);return this}})},r.extend(r.Element,{}),r.extend(r.Element,{remember:function(e,t){if("object"===x(arguments[0]))for(var r in e)this.remember(r,e[r]);else{if(1==arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0==arguments.length)this._memory={};else for(var e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory||(this._memory={})}}),r.get=function(e){var n=t.getElementById(function(e){var t=(e||"").toString().match(r.regex.reference);if(t)return t[1]}(e)||e);return r.adopt(n)},r.select=function(e,n){return new r.Set(r.utils.map((n||t).querySelectorAll(e),function(e){return r.adopt(e)}))},r.extend(r.Parent,{select:function(e){return r.select(e,this.node)}});var v="abcdef".split("");if("function"!=typeof e.CustomEvent){var b=function(e,r){r=r||{bubbles:!1,cancelable:!1,detail:void 0};var n=t.createEvent("CustomEvent");return n.initCustomEvent(e,r.bubbles,r.cancelable,r.detail),n};b.prototype=e.Event.prototype,r.CustomEvent=b}else r.CustomEvent=e.CustomEvent;return r},"function"==typeof define&&define.amd?define(function(){return eX(eH,eH.document)}):"object"===x(e.exports)?e.exports=eH.document?eX(eH,eH.document):function(e){return eX(e,e.document)}:eH.SVG=eX(eH,eH.document),/*! svg.filter.js - v2.0.2 - 2016-02-24
|
|
82
|
+
* https://github.com/wout/svg.filter.js
|
|
83
|
+
* Copyright (c) 2016 Wout Fierens; Licensed MIT */(function(){SVG.Filter=SVG.invent({create:"filter",inherit:SVG.Parent,extend:{source:"SourceGraphic",sourceAlpha:"SourceAlpha",background:"BackgroundImage",backgroundAlpha:"BackgroundAlpha",fill:"FillPaint",stroke:"StrokePaint",autoSetIn:!0,put:function(e,t){return this.add(e,t),!e.attr("in")&&this.autoSetIn&&e.attr("in",this.source),e.attr("result")||e.attr("result",e),e},blend:function(e,t,r){return this.put(new SVG.BlendEffect(e,t,r))},colorMatrix:function(e,t){return this.put(new SVG.ColorMatrixEffect(e,t))},convolveMatrix:function(e){return this.put(new SVG.ConvolveMatrixEffect(e))},componentTransfer:function(e){return this.put(new SVG.ComponentTransferEffect(e))},composite:function(e,t,r){return this.put(new SVG.CompositeEffect(e,t,r))},flood:function(e,t){return this.put(new SVG.FloodEffect(e,t))},offset:function(e,t){return this.put(new SVG.OffsetEffect(e,t))},image:function(e){return this.put(new SVG.ImageEffect(e))},merge:function(){var e=[void 0];for(var t in arguments)e.push(arguments[t]);return this.put(new(SVG.MergeEffect.bind.apply(SVG.MergeEffect,e)))},gaussianBlur:function(e,t){return this.put(new SVG.GaussianBlurEffect(e,t))},morphology:function(e,t){return this.put(new SVG.MorphologyEffect(e,t))},diffuseLighting:function(e,t,r){return this.put(new SVG.DiffuseLightingEffect(e,t,r))},displacementMap:function(e,t,r,n,i){return this.put(new SVG.DisplacementMapEffect(e,t,r,n,i))},specularLighting:function(e,t,r,n){return this.put(new SVG.SpecularLightingEffect(e,t,r,n))},tile:function(){return this.put(new SVG.TileEffect)},turbulence:function(e,t,r,n,i){return this.put(new SVG.TurbulenceEffect(e,t,r,n,i))},toString:function(){return"url(#"+this.attr("id")+")"}}}),SVG.extend(SVG.Defs,{filter:function(e){var t=this.put(new SVG.Filter);return"function"==typeof e&&e.call(t,t),t}}),SVG.extend(SVG.Container,{filter:function(e){return this.defs().filter(e)}}),SVG.extend(SVG.Element,SVG.G,SVG.Nested,{filter:function(e){return this.filterer=e instanceof SVG.Element?e:this.doc().filter(e),this.doc()&&this.filterer.doc()!==this.doc()&&this.doc().defs().add(this.filterer),this.attr("filter",this.filterer),this.filterer},unfilter:function(e){return this.filterer&&!0===e&&this.filterer.remove(),delete this.filterer,this.attr("filter",null)}}),SVG.Effect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}}),SVG.ParentEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Parent,extend:{in:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in")+'"]').get(0)||this.attr("in"):this.attr("in",e)},result:function(e){return null==e?this.attr("result"):this.attr("result",e)},toString:function(){return this.result()}}});var e={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(){return this.parent()&&this.parent().merge.apply(this.parent(),[this].concat(arguments))},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},diffuseLighting:function(e,t,r){return this.parent()&&this.parent().diffuseLighting(e,t,r).in(this)},displacementMap:function(e,t,r,n){return this.parent()&&this.parent().displacementMap(this,e,t,r,n)},specularLighting:function(e,t,r,n){return this.parent()&&this.parent().specularLighting(e,t,r,n).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,r,n,i){return this.parent()&&this.parent().turbulence(e,t,r,n,i).in(this)}};SVG.extend(SVG.Effect,e),SVG.extend(SVG.ParentEffect,e),SVG.ChildEffect=SVG.invent({create:function(){this.constructor.call(this)},inherit:SVG.Element,extend:{in:function(e){this.attr("in",e)}}});var t={distantLight:function(e,t){this.attr({azimuth:e,elevation:t})},pointLight:function(e,t,r){this.attr({x:e,y:t,z:r})},spotLight:function(e,t,r,n,i,a){this.attr({x:e,y:t,z:r,pointsAtX:n,pointsAtY:i,pointsAtZ:a})},mergeNode:function(e){this.attr("in",e)}};function r(e){return Array.isArray(e)&&(e=new SVG.Array(e)),e.toString().replace(/^\s+/,"").replace(/\s+$/,"").replace(/\s+/g," ")}function n(){var e=function(){};for(var t in"function"==typeof arguments[arguments.length-1]&&(e=arguments[arguments.length-1],Array.prototype.splice.call(arguments,arguments.length-1,1)),arguments)for(var r in arguments[t])e(arguments[t][r],r,arguments[t])}["r","g","b","a"].forEach(function(e){t["Func"+e.toUpperCase()]=function(e){switch(this.attr("type",e),e){case"table":this.attr("tableValues",arguments[1]);break;case"linear":this.attr("slope",arguments[1]),this.attr("intercept",arguments[2]);break;case"gamma":this.attr("amplitude",arguments[1]),this.attr("exponent",arguments[2]),this.attr("offset",arguments[2])}}}),n({blend:function(e,t,r){this.attr({in:e,in2:t,mode:r||"normal"})},colorMatrix:function(e,t){"matrix"==e&&(t=r(t)),this.attr({type:e,values:void 0===t?null:t})},convolveMatrix:function(e){e=r(e),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},composite:function(e,t,r){this.attr({in:e,in2:t,operator:r})},flood:function(e,t){this.attr("flood-color",e),null!=t&&this.attr("flood-opacity",t)},offset:function(e,t){this.attr({dx:e,dy:t})},image:function(e){this.attr("href",e,SVG.xlink)},displacementMap:function(e,t,r,n,i){this.attr({in:e,in2:t,scale:r,xChannelSelector:n,yChannelSelector:i})},gaussianBlur:function(e,t){null!=e||null!=t?this.attr("stdDeviation",function(e){if(!Array.isArray(e))return e;for(var t=0,r=e.length,n=[];t<r;t++)n.push(e[t]);return n.join(" ")}(Array.prototype.slice.call(arguments))):this.attr("stdDeviation","0 0")},morphology:function(e,t){this.attr({operator:e,radius:t})},tile:function(){},turbulence:function(e,t,r,n,i){this.attr({numOctaves:t,seed:r,stitchTiles:n,baseFrequency:e,type:i})}},function(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);SVG[r+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+r)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.Effect,extend:{}})}),n({merge:function(){var e;if(arguments[0]instanceof SVG.Set){var t=this;arguments[0].each(function(e){this instanceof SVG.MergeNode?t.put(this):(this instanceof SVG.Effect||this instanceof SVG.ParentEffect)&&t.put(new SVG.MergeNode(this))})}else{e=Array.isArray(arguments[0])?arguments[0]:arguments;for(var r=0;r<e.length;r++)e[r]instanceof SVG.MergeNode?this.put(e[r]):this.put(new SVG.MergeNode(e[r]))}},componentTransfer:function(e){if(this.rgb=new SVG.Set,["r","g","b","a"].forEach((function(e){this[e]=new SVG["Func"+e.toUpperCase()]("identity"),this.rgb.add(this[e]),this.node.appendChild(this[e].node)}).bind(this)),e)for(var t in e.rgb&&(["r","g","b"].forEach((function(t){this[t].attr(e.rgb)}).bind(this)),delete e.rgb),e)this[t].attr(e[t])},diffuseLighting:function(e,t,r){this.attr({surfaceScale:e,diffuseConstant:t,kernelUnitLength:r})},specularLighting:function(e,t,r,n){this.attr({surfaceScale:e,diffuseConstant:t,specularExponent:r,kernelUnitLength:n})}},function(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);SVG[r+"Effect"]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+r)),e.apply(this,arguments),this.result(this.attr("id")+"Out")},inherit:SVG.ParentEffect,extend:{}})}),n(t,function(e,t){var r=t.charAt(0).toUpperCase()+t.slice(1);SVG[r]=SVG.invent({create:function(){this.constructor.call(this,SVG.create("fe"+r)),e.apply(this,arguments)},inherit:SVG.ChildEffect,extend:{}})}),SVG.extend(SVG.MergeEffect,{in:function(e){return e instanceof SVG.MergeNode?this.add(e,0):this.add(new SVG.MergeNode(e),0),this}}),SVG.extend(SVG.CompositeEffect,SVG.BlendEffect,SVG.DisplacementMapEffect,{in2:function(e){return null==e?this.parent()&&this.parent().select('[result="'+this.attr("in2")+'"]').get(0)||this.attr("in2"):this.attr("in2",e)}}),SVG.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]}}).call(void 0),function(){function e(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function t(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function r(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":e=(t=function(e,t){var r,n,i,a,o,s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E,_=Math.abs(t[1]),T=Math.abs(t[2]),P=t[3]%360,O=t[4],M=t[5],I=t[6],L=t[7],R=new SVG.Point(e),N=new SVG.Point(I,L),z=[];if(0===_||0===T||R.x===N.x&&R.y===N.y)return[["C",R.x,R.y,N.x,N.y,N.x,N.y]];for((n=(r=new SVG.Point((R.x-N.x)/2,(R.y-N.y)/2).transform((new SVG.Matrix).rotate(P))).x*r.x/(_*_)+r.y*r.y/(T*T))>1&&(_*=n=Math.sqrt(n),T*=n),i=(new SVG.Matrix).rotate(P).scale(1/_,1/T).rotate(-P),R=R.transform(i),o=Math.sqrt(s=(a=[(N=N.transform(i)).x-R.x,N.y-R.y])[0]*a[0]+a[1]*a[1]),a[0]/=o,a[1]/=o,l=s<4?Math.sqrt(1-s/4):0,O===M&&(l*=-1),u=new SVG.Point((N.x+R.x)/2+-(l*a[1]),(N.y+R.y)/2+l*a[0]),c=new SVG.Point(R.x-u.x,R.y-u.y),d=new SVG.Point(N.x-u.x,N.y-u.y),h=Math.acos(c.x/Math.sqrt(c.x*c.x+c.y*c.y)),c.y<0&&(h*=-1),f=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(f*=-1),M&&h>f&&(f+=2*Math.PI),!M&&h<f&&(f-=2*Math.PI),g=Math.ceil(2*Math.abs(h-f)/Math.PI),v=[],b=h,m=4*Math.tan((p=(f-h)/g)/4)/3,k=0;k<=g;k++)y=Math.cos(b),x=Math.sin(b),w=new SVG.Point(u.x+y,u.y+x),v[k]=[new SVG.Point(w.x+m*x,w.y-m*y),w,new SVG.Point(w.x-m*x,w.y+m*y)],b+=p;for(v[0][0]=v[0][1].clone(),v[v.length-1][2]=v[v.length-1][1].clone(),i=(new SVG.Matrix).rotate(P).scale(_,T).rotate(-P),k=0,S=v.length;k<S;k++)v[k][0]=v[k][0].transform(i),v[k][1]=v[k][1].transform(i),v[k][2]=v[k][2].transform(i);for(k=1,S=v.length;k<S;k++)C=(w=v[k-1][2]).x,A=w.y,E=(w=v[k][0]).x,z.push(["C",C,A,E,w.y,I=(w=v[k][1]).x,L=w.y]);return z}(this.pos,e))[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function n(e,t){if(!1===t)return!1;for(var r=t,n=e.length;r<n;++r)if("M"==e[r][0])return r;return!1}SVG.extend(SVG.PathArray,{morph:function(i){for(var a=this.value,o=this.parse(i),s=0,l=0,u=!1,c=!1;!1!==s||!1!==l;){u=n(a,!1!==s&&s+1),c=n(o,!1!==l&&l+1),!1===s&&(s=0==(d=new SVG.PathArray(h.start).bbox()).height||0==d.width?a.push(a[0])-1:a.push(["M",d.x+d.width/2,d.y+d.height/2])-1),!1===l&&(l=0==(d=new SVG.PathArray(h.dest).bbox()).height||0==d.width?o.push(o[0])-1:o.push(["M",d.x+d.width/2,d.y+d.height/2])-1);var d,h=function(n,i,a,o,s,l,u){for(var c=n.slice(i,a||void 0),d=o.slice(s,l||void 0),h=0,f={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};c[h]=e.call(f,c[h]),d[h]=e.call(p,d[h]),c[h][0]!=d[h][0]||"M"==c[h][0]||"A"==c[h][0]&&(c[h][4]!=d[h][4]||c[h][5]!=d[h][5])?(Array.prototype.splice.apply(c,[h,1].concat(r.call(f,c[h]))),Array.prototype.splice.apply(d,[h,1].concat(r.call(p,d[h])))):(c[h]=t.call(f,c[h]),d[h]=t.call(p,d[h])),++h!=c.length||h!=d.length;)h==c.length&&c.push(["C",f.pos[0],f.pos[1],f.pos[0],f.pos[1],f.pos[0],f.pos[1]]),h==d.length&&d.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:c,dest:d}}(a,s,u,o,l,c);a=a.slice(0,s).concat(h.start,!1===u?[]:a.slice(u)),o=o.slice(0,l).concat(h.dest,!1===c?[]:o.slice(c)),s=!1!==u&&s+h.start.length,l=!1!==c&&l+h.dest.length}return this.value=a,this.destination=new SVG.PathArray,this.destination.value=o,this}})}(),/*! svg.draggable.js - v2.2.2 - 2019-01-08
|
|
84
|
+
* https://github.com/svgdotjs/svg.draggable.js
|
|
85
|
+
* Copyright (c) 2019 Wout Fierens; Licensed MIT */(function(){function e(e){e.remember("_draggable",this),this.el=e}e.prototype.init=function(e,t){var r=this;this.constraint=e,this.value=t,this.el.on("mousedown.drag",function(e){r.start(e)}),this.el.on("touchstart.drag",function(e){r.start(e)})},e.prototype.transformPoint=function(e,t){var r=(e=e||window.event).changedTouches&&e.changedTouches[0]||e;return this.p.x=r.clientX-(t||0),this.p.y=r.clientY,this.p.matrixTransform(this.m)},e.prototype.getBBox=function(){var e=this.el.bbox();return this.el instanceof SVG.Nested&&(e=this.el.rbox()),(this.el instanceof SVG.G||this.el instanceof SVG.Use||this.el instanceof SVG.Nested)&&(e.x=this.el.x(),e.y=this.el.y()),e},e.prototype.start=function(e){if("click"!=e.type&&"mousedown"!=e.type&&"mousemove"!=e.type||1==(e.which||e.buttons)){var t=this;if(this.el.fire("beforedrag",{event:e,handler:this}),!this.el.event().defaultPrevented){e.preventDefault(),e.stopPropagation(),this.parent=this.parent||this.el.parent(SVG.Nested)||this.el.parent(SVG.Doc),this.p=this.parent.node.createSVGPoint(),this.m=this.el.node.getScreenCTM().inverse();var r,n=this.getBBox();if(this.el instanceof SVG.Text)switch(r=this.el.node.getComputedTextLength(),this.el.attr("text-anchor")){case"middle":r/=2;break;case"start":r=0}this.startPoints={point:this.transformPoint(e,r),box:n,transform:this.el.transform()},SVG.on(window,"mousemove.drag",function(e){t.drag(e)}),SVG.on(window,"touchmove.drag",function(e){t.drag(e)}),SVG.on(window,"mouseup.drag",function(e){t.end(e)}),SVG.on(window,"touchend.drag",function(e){t.end(e)}),this.el.fire("dragstart",{event:e,p:this.startPoints.point,m:this.m,handler:this})}}},e.prototype.drag=function(e){var t=this.getBBox(),r=this.transformPoint(e),n=this.startPoints.box.x+r.x-this.startPoints.point.x,i=this.startPoints.box.y+r.y-this.startPoints.point.y,a=this.constraint,o=r.x-this.startPoints.point.x,s=r.y-this.startPoints.point.y;if(this.el.fire("dragmove",{event:e,p:r,m:this.m,handler:this}),this.el.event().defaultPrevented)return r;if("function"==typeof a){var l=a.call(this.el,n,i,this.m);"boolean"==typeof l&&(l={x:l,y:l}),!0===l.x?this.el.x(n):!1!==l.x&&this.el.x(l.x),!0===l.y?this.el.y(i):!1!==l.y&&this.el.y(l.y)}else"object"==typeof a&&(null!=a.minX&&n<a.minX?o=(n=a.minX)-this.startPoints.box.x:null!=a.maxX&&n>a.maxX-t.width&&(o=(n=a.maxX-t.width)-this.startPoints.box.x),null!=a.minY&&i<a.minY?s=(i=a.minY)-this.startPoints.box.y:null!=a.maxY&&i>a.maxY-t.height&&(s=(i=a.maxY-t.height)-this.startPoints.box.y),null!=a.snapToGrid&&(n-=n%a.snapToGrid,i-=i%a.snapToGrid,o-=o%a.snapToGrid,s-=s%a.snapToGrid),this.el instanceof SVG.G?this.el.matrix(this.startPoints.transform).transform({x:o,y:s},!0):this.el.move(n,i));return r},e.prototype.end=function(e){var t=this.drag(e);this.el.fire("dragend",{event:e,p:t,m:this.m,handler:this}),SVG.off(window,"mousemove.drag"),SVG.off(window,"touchmove.drag"),SVG.off(window,"mouseup.drag"),SVG.off(window,"touchend.drag")},SVG.extend(SVG.Element,{draggable:function(t,r){"function"!=typeof t&&"object"!=typeof t||(r=t,t=!0);var n=this.remember("_draggable")||new e(this);return(t=void 0===t||t)?n.init(r||{},t):(this.off("mousedown.drag"),this.off("touchstart.drag")),this}})}).call(void 0),function(){function e(e){this.el=e,e.remember("_selectHandler",this),this.pointSelection={isSelected:!1},this.rectSelection={isSelected:!1},this.pointsList={lt:[0,0],rt:["width",0],rb:["width","height"],lb:[0,"height"],t:["width",0],r:["width","height"],b:["width","height"],l:[0,"height"]},this.pointCoord=function(e,t,r){var n="string"!=typeof e?e:t[e];return r?n/2:n},this.pointCoords=function(e,t){var r=this.pointsList[e];return{x:this.pointCoord(r[0],t,"t"===e||"b"===e),y:this.pointCoord(r[1],t,"r"===e||"l"===e)}}}e.prototype.init=function(e,t){var r=this.el.bbox();this.options={};var n=this.el.selectize.defaults.points;for(var i in this.el.selectize.defaults)this.options[i]=this.el.selectize.defaults[i],void 0!==t[i]&&(this.options[i]=t[i]);var a=["points","pointsExclude"];for(var i in a){var o=this.options[a[i]];"string"==typeof o?o=o.length>0?o.split(/\s*,\s*/i):[]:"boolean"==typeof o&&"points"===a[i]&&(o=o?n:[]),this.options[a[i]]=o}this.options.points=[n,this.options.points].reduce(function(e,t){return e.filter(function(e){return t.indexOf(e)>-1})}),this.options.points=[this.options.points,this.options.pointsExclude].reduce(function(e,t){return e.filter(function(e){return 0>t.indexOf(e)})}),this.parent=this.el.parent(),this.nested=this.nested||this.parent.group(),this.nested.matrix(new SVG.Matrix(this.el).translate(r.x,r.y)),this.options.deepSelect&&-1!==["line","polyline","polygon"].indexOf(this.el.type)?this.selectPoints(e):this.selectRect(e),this.observe(),this.cleanup()},e.prototype.selectPoints=function(e){return this.pointSelection.isSelected=e,this.pointSelection.set||(this.pointSelection.set=this.parent.set(),this.drawPoints()),this},e.prototype.getPointArray=function(){var e=this.el.bbox();return this.el.array().valueOf().map(function(t){return[t[0]-e.x,t[1]-e.y]})},e.prototype.drawPoints=function(){for(var e=this,t=this.getPointArray(),r=0,n=t.length;r<n;++r){var i=function(t){return function(r){(r=r||window.event).preventDefault?r.preventDefault():r.returnValue=!1,r.stopPropagation();var n=r.pageX||r.touches[0].pageX,i=r.pageY||r.touches[0].pageY;e.el.fire("point",{x:n,y:i,i:t,event:r})}}(r),a=this.drawPoint(t[r][0],t[r][1]).addClass(this.options.classPoints).addClass(this.options.classPoints+"_point").on("touchstart",i).on("mousedown",i);this.pointSelection.set.add(a)}},e.prototype.drawPoint=function(e,t){var r=this.options.pointType;switch(r){case"circle":return this.drawCircle(e,t);case"rect":return this.drawRect(e,t);default:if("function"==typeof r)return r.call(this,e,t);throw Error("Unknown "+r+" point type!")}},e.prototype.drawCircle=function(e,t){return this.nested.circle(this.options.pointSize).center(e,t)},e.prototype.drawRect=function(e,t){return this.nested.rect(this.options.pointSize,this.options.pointSize).center(e,t)},e.prototype.updatePointSelection=function(){var e=this.getPointArray();this.pointSelection.set.each(function(t){this.cx()===e[t][0]&&this.cy()===e[t][1]||this.center(e[t][0],e[t][1])})},e.prototype.updateRectSelection=function(){var e=this,t=this.el.bbox();if(this.rectSelection.set.get(0).attr({width:t.width,height:t.height}),this.options.points.length&&this.options.points.map(function(r,n){var i=e.pointCoords(r,t);e.rectSelection.set.get(n+1).center(i.x,i.y)}),this.options.rotationPoint){var r=this.rectSelection.set.length();this.rectSelection.set.get(r-1).center(t.width/2,20)}},e.prototype.selectRect=function(e){var t=this,r=this.el.bbox();function n(e){return function(r){(r=r||window.event).preventDefault?r.preventDefault():r.returnValue=!1,r.stopPropagation();var n=r.pageX||r.touches[0].pageX,i=r.pageY||r.touches[0].pageY;t.el.fire(e,{x:n,y:i,event:r})}}if(this.rectSelection.isSelected=e,this.rectSelection.set=this.rectSelection.set||this.parent.set(),this.rectSelection.set.get(0)||this.rectSelection.set.add(this.nested.rect(r.width,r.height).addClass(this.options.classRect)),this.options.points.length&&2>this.rectSelection.set.length()&&(this.options.points.map(function(e,i){var a=t.pointCoords(e,r),o=t.drawPoint(a.x,a.y).attr("class",t.options.classPoints+"_"+e).on("mousedown",n(e)).on("touchstart",n(e));t.rectSelection.set.add(o)}),this.rectSelection.set.each(function(){this.addClass(t.options.classPoints)})),this.options.rotationPoint&&(this.options.points&&!this.rectSelection.set.get(9)||!this.options.points&&!this.rectSelection.set.get(1))){var i=function(e){(e=e||window.event).preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation();var r=e.pageX||e.touches[0].pageX,n=e.pageY||e.touches[0].pageY;t.el.fire("rot",{x:r,y:n,event:e})},a=this.drawPoint(r.width/2,20).attr("class",this.options.classPoints+"_rot").on("touchstart",i).on("mousedown",i);this.rectSelection.set.add(a)}},e.prototype.handler=function(){var e=this.el.bbox();this.nested.matrix(new SVG.Matrix(this.el).translate(e.x,e.y)),this.rectSelection.isSelected&&this.updateRectSelection(),this.pointSelection.isSelected&&this.updatePointSelection()},e.prototype.observe=function(){var e=this;if(MutationObserver){if(this.rectSelection.isSelected||this.pointSelection.isSelected)this.observerInst=this.observerInst||new MutationObserver(function(){e.handler()}),this.observerInst.observe(this.el.node,{attributes:!0});else try{this.observerInst.disconnect(),delete this.observerInst}catch(e){}}else this.el.off("DOMAttrModified.select"),(this.rectSelection.isSelected||this.pointSelection.isSelected)&&this.el.on("DOMAttrModified.select",function(){e.handler()})},e.prototype.cleanup=function(){!this.rectSelection.isSelected&&this.rectSelection.set&&(this.rectSelection.set.each(function(){this.remove()}),this.rectSelection.set.clear(),delete this.rectSelection.set),!this.pointSelection.isSelected&&this.pointSelection.set&&(this.pointSelection.set.each(function(){this.remove()}),this.pointSelection.set.clear(),delete this.pointSelection.set),this.pointSelection.isSelected||this.rectSelection.isSelected||(this.nested.remove(),delete this.nested)},SVG.extend(SVG.Element,{selectize:function(t,r){return"object"==typeof t&&(r=t,t=!0),(this.remember("_selectHandler")||new e(this)).init(void 0===t||t,r||{}),this}}),SVG.Element.prototype.selectize.defaults={points:["lt","rt","rb","lb","t","r","b","l"],pointsExclude:[],classRect:"svg_select_boundingRect",classPoints:"svg_select_points",pointSize:7,rotationPoint:!0,deepSelect:!1,pointType:"circle"}}(),function(){(function(){function e(e){e.remember("_resizeHandler",this),this.el=e,this.parameters={},this.lastUpdateCall=null,this.p=e.doc().node.createSVGPoint()}e.prototype.transformPoint=function(e,t,r){return this.p.x=e-(this.offset.x-window.pageXOffset),this.p.y=t-(this.offset.y-window.pageYOffset),this.p.matrixTransform(r||this.m)},e.prototype._extractPosition=function(e){return{x:null!=e.clientX?e.clientX:e.touches[0].clientX,y:null!=e.clientY?e.clientY:e.touches[0].clientY}},e.prototype.init=function(e){var t=this;if(this.stop(),"stop"!==e){for(var r in this.options={},this.el.resize.defaults)this.options[r]=this.el.resize.defaults[r],void 0!==e[r]&&(this.options[r]=e[r]);this.el.on("lt.resize",function(e){t.resize(e||window.event)}),this.el.on("rt.resize",function(e){t.resize(e||window.event)}),this.el.on("rb.resize",function(e){t.resize(e||window.event)}),this.el.on("lb.resize",function(e){t.resize(e||window.event)}),this.el.on("t.resize",function(e){t.resize(e||window.event)}),this.el.on("r.resize",function(e){t.resize(e||window.event)}),this.el.on("b.resize",function(e){t.resize(e||window.event)}),this.el.on("l.resize",function(e){t.resize(e||window.event)}),this.el.on("rot.resize",function(e){t.resize(e||window.event)}),this.el.on("point.resize",function(e){t.resize(e||window.event)}),this.update()}},e.prototype.stop=function(){return this.el.off("lt.resize"),this.el.off("rt.resize"),this.el.off("rb.resize"),this.el.off("lb.resize"),this.el.off("t.resize"),this.el.off("r.resize"),this.el.off("b.resize"),this.el.off("l.resize"),this.el.off("rot.resize"),this.el.off("point.resize"),this},e.prototype.resize=function(e){var t=this;this.m=this.el.node.getScreenCTM().inverse(),this.offset={x:window.pageXOffset,y:window.pageYOffset};var r=this._extractPosition(e.detail.event);if(this.parameters={type:this.el.type,p:this.transformPoint(r.x,r.y),x:e.detail.x,y:e.detail.y,box:this.el.bbox(),rotation:this.el.transform().rotation},"text"===this.el.type&&(this.parameters.fontSize=this.el.attr()["font-size"]),void 0!==e.detail.i){var n=this.el.array().valueOf();this.parameters.i=e.detail.i,this.parameters.pointCoords=[n[e.detail.i][0],n[e.detail.i][1]]}switch(e.type){case"lt":this.calc=function(e,t){var r=this.snapToGrid(e,t);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y+r[1]).size(this.parameters.box.width-r[0],this.parameters.box.height-r[1])}};break;case"rt":this.calc=function(e,t){var r=this.snapToGrid(e,t,2);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).size(this.parameters.box.width+r[0],this.parameters.box.height-r[1])}};break;case"rb":this.calc=function(e,t){var r=this.snapToGrid(e,t,0);if(this.parameters.box.width+r[0]>0&&this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x-r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize+r[0]);r=this.checkAspectRatio(r),this.el.move(this.parameters.box.x,this.parameters.box.y).size(this.parameters.box.width+r[0],this.parameters.box.height+r[1])}};break;case"lb":this.calc=function(e,t){var r=this.snapToGrid(e,t,1);if(this.parameters.box.width-r[0]>0&&this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return this.el.move(this.parameters.box.x+r[0],this.parameters.box.y),void this.el.attr("font-size",this.parameters.fontSize-r[0]);r=this.checkAspectRatio(r,!0),this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).size(this.parameters.box.width-r[0],this.parameters.box.height+r[1])}};break;case"t":this.calc=function(e,t){var r=this.snapToGrid(e,t,2);if(this.parameters.box.height-r[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y+r[1]).height(this.parameters.box.height-r[1])}};break;case"r":this.calc=function(e,t){var r=this.snapToGrid(e,t,0);if(this.parameters.box.width+r[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).width(this.parameters.box.width+r[0])}};break;case"b":this.calc=function(e,t){var r=this.snapToGrid(e,t,0);if(this.parameters.box.height+r[1]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x,this.parameters.box.y).height(this.parameters.box.height+r[1])}};break;case"l":this.calc=function(e,t){var r=this.snapToGrid(e,t,1);if(this.parameters.box.width-r[0]>0){if("text"===this.parameters.type)return;this.el.move(this.parameters.box.x+r[0],this.parameters.box.y).width(this.parameters.box.width-r[0])}};break;case"rot":this.calc=function(e,t){var r=e+this.parameters.p.x,n=t+this.parameters.p.y,i=Math.atan2(this.parameters.p.y-this.parameters.box.y-this.parameters.box.height/2,this.parameters.p.x-this.parameters.box.x-this.parameters.box.width/2),a=Math.atan2(n-this.parameters.box.y-this.parameters.box.height/2,r-this.parameters.box.x-this.parameters.box.width/2),o=this.parameters.rotation+180*(a-i)/Math.PI+this.options.snapToAngle/2;this.el.center(this.parameters.box.cx,this.parameters.box.cy).rotate(o-o%this.options.snapToAngle,this.parameters.box.cx,this.parameters.box.cy)};break;case"point":this.calc=function(e,t){var r=this.snapToGrid(e,t,this.parameters.pointCoords[0],this.parameters.pointCoords[1]),n=this.el.array().valueOf();n[this.parameters.i][0]=this.parameters.pointCoords[0]+r[0],n[this.parameters.i][1]=this.parameters.pointCoords[1]+r[1],this.el.plot(n)}}this.el.fire("resizestart",{dx:this.parameters.x,dy:this.parameters.y,event:e}),SVG.on(window,"touchmove.resize",function(e){t.update(e||window.event)}),SVG.on(window,"touchend.resize",function(){t.done()}),SVG.on(window,"mousemove.resize",function(e){t.update(e||window.event)}),SVG.on(window,"mouseup.resize",function(){t.done()})},e.prototype.update=function(e){if(e){var t=this._extractPosition(e),r=this.transformPoint(t.x,t.y),n=r.x-this.parameters.p.x,i=r.y-this.parameters.p.y;this.lastUpdateCall=[n,i],this.calc(n,i),this.el.fire("resizing",{dx:n,dy:i,event:e})}else this.lastUpdateCall&&this.calc(this.lastUpdateCall[0],this.lastUpdateCall[1])},e.prototype.done=function(){this.lastUpdateCall=null,SVG.off(window,"mousemove.resize"),SVG.off(window,"mouseup.resize"),SVG.off(window,"touchmove.resize"),SVG.off(window,"touchend.resize"),this.el.fire("resizedone")},e.prototype.snapToGrid=function(e,t,r,n){var i;return void 0!==n?i=[(r+e)%this.options.snapToGrid,(n+t)%this.options.snapToGrid]:(r=null==r?3:r,i=[(this.parameters.box.x+e+(1&r?0:this.parameters.box.width))%this.options.snapToGrid,(this.parameters.box.y+t+(2&r?0:this.parameters.box.height))%this.options.snapToGrid]),e<0&&(i[0]-=this.options.snapToGrid),t<0&&(i[1]-=this.options.snapToGrid),e-=Math.abs(i[0])<this.options.snapToGrid/2?i[0]:i[0]-(e<0?-this.options.snapToGrid:this.options.snapToGrid),t-=Math.abs(i[1])<this.options.snapToGrid/2?i[1]:i[1]-(t<0?-this.options.snapToGrid:this.options.snapToGrid),this.constraintToBox(e,t,r,n)},e.prototype.constraintToBox=function(e,t,r,n){var i,a,o=this.options.constraint||{};return void 0!==n?(i=r,a=n):(i=this.parameters.box.x+(1&r?0:this.parameters.box.width),a=this.parameters.box.y+(2&r?0:this.parameters.box.height)),void 0!==o.minX&&i+e<o.minX&&(e=o.minX-i),void 0!==o.maxX&&i+e>o.maxX&&(e=o.maxX-i),void 0!==o.minY&&a+t<o.minY&&(t=o.minY-a),void 0!==o.maxY&&a+t>o.maxY&&(t=o.maxY-a),[e,t]},e.prototype.checkAspectRatio=function(e,t){if(!this.options.saveAspectRatio)return e;var r=e.slice(),n=this.parameters.box.width/this.parameters.box.height,i=this.parameters.box.width+e[0],a=this.parameters.box.height-e[1],o=i/a;return o<n?(r[1]=i/n-this.parameters.box.height,t&&(r[1]=-r[1])):o>n&&(r[0]=this.parameters.box.width-a*n,t&&(r[0]=-r[0])),r},SVG.extend(SVG.Element,{resize:function(t){return(this.remember("_resizeHandler")||new e(this)).init(t||{}),this}}),SVG.Element.prototype.resize.defaults={snapToAngle:.1,snapToGrid:1,constraint:{},saveAspectRatio:!1}}).call(this)}(),void 0===window.Apex&&(window.Apex={});var e$=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new k(this.ctx),this.ctx.axes=new en(this.ctx),this.ctx.core=new eV(this.ctx.el,this.ctx),this.ctx.config=new B({}),this.ctx.data=new $(this.ctx),this.ctx.grid=new K(this.ctx),this.ctx.graphics=new C(this.ctx),this.ctx.coreUtils=new A(this.ctx),this.ctx.crosshairs=new ei(this.ctx),this.ctx.events=new et(this.ctx),this.ctx.exports=new q(this.ctx),this.ctx.fill=new X(this.ctx),this.ctx.localization=new er(this.ctx),this.ctx.options=new R,this.ctx.responsive=new ea(this.ctx),this.ctx.series=new G(this.ctx),this.ctx.theme=new eo(this.ctx),this.ctx.formatters=new P(this.ctx),this.ctx.titleSubtitle=new es(this.ctx),this.ctx.legend=new ep(this.ctx),this.ctx.toolbar=new eg(this.ctx),this.ctx.tooltip=new eS(this.ctx),this.ctx.dimensions=new eh(this.ctx),this.ctx.updateHelpers=new eG(this.ctx),this.ctx.zoomPanSelection=new em(this.ctx),this.ctx.w.globals.tooltip=new eS(this.ctx)}}]),e}(),eq=function(){function e(t){i(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(){this.removeClass("*"),this.off(),this.stop()},!0),e.ungroup(),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,r=e.isUpdating,n=this.w.globals.dom.Paper.node;n.parentNode&&n.parentNode.parentNode&&!r&&(n.parentNode.parentNode.style.minHeight="unset");var i=this.w.globals.dom.baseEl;i&&this.ctx.eventList.forEach(function(e){i.removeEventListener(e,t.ctx.events.documentEvent)});var a=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(a.Paper),a.Paper.remove(),a.elWrap=null,a.elGraphical=null,a.elLegendWrap=null,a.elLegendForeign=null,a.baseEl=null,a.elGridRect=null,a.elGridRectMask=null,a.elGridRectBarMask=null,a.elGridRectMarkerMask=null,a.elForecastMask=null,a.elNonForecastMask=null,a.elDefs=null}}]),e}(),eZ=new WeakMap,eK=function(){function e(t,r){i(this,e),this.opts=r,this.ctx=this,this.w=new H(r).init(),this.el=t,this.w.globals.cuid=w.randomId(),this.w.globals.chartID=this.w.config.chart.id?w.escapeString(this.w.config.chart.id):this.w.globals.cuid,new e$(this).initModules(),this.create=w.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return o(e,[{key:"render",value:function(){var e=this;return new Promise(function(t,r){if(null!==e.el){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var n=e.w.config.chart.events.beforeMount;"function"==typeof n&&n(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var r=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var n=e.getBoundingClientRect();"none"!==e.style.display&&0!==n.width||(r=!0)}var i=new ResizeObserver(function(n){r&&t.call(e,n),r=!0});e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach(function(e){return i.observe(e)}):i.observe(e),eZ.set(t,i)}(e.el.parentNode,e.parentResizeHandler);var i=e.el.getRootNode&&e.el.getRootNode(),a=w.is("ShadowRoot",i),o=e.el.ownerDocument,s=a?i.getElementById("apexcharts-css"):o.getElementById("apexcharts-css");if(!s){(s=document.createElement("style")).id="apexcharts-css",s.textContent='@keyframes opaque {\n 0% {\n opacity: 0\n }\n\n to {\n opacity: 1\n }\n}\n\n@keyframes resizeanim {\n\n 0%,\n to {\n opacity: 0\n }\n}\n\n.apexcharts-canvas {\n position: relative;\n direction: ltr !important;\n user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n -webkit-appearance: none;\n width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n border-radius: 4px;\n background-color: rgba(0, 0, 0, .5);\n box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n position: relative\n}\n\n.apexcharts-text tspan {\n font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n transition: .15s ease all;\n opacity: .2\n}\n\n.apexcharts-legend-text {\n padding-left: 15px;\n margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n opacity: 0\n}\n\n.apexcharts-tooltip {\n border-radius: 5px;\n box-shadow: 2px 2px 6px -4px #999;\n cursor: default;\n font-size: 14px;\n left: 62px;\n opacity: 0;\n pointer-events: none;\n position: absolute;\n top: 20px;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n white-space: nowrap;\n z-index: 12;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n border: 1px solid #e3e3e3;\n background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n color: #fff;\n background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n padding: 6px;\n font-size: 15px;\n margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n background: #eceff1;\n border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n background: rgba(0, 0, 0, .7);\n border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n display: inline-block;\n margin-left: 5px;\n font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n width: 12px;\n height: 12px;\n position: relative;\n top: 0;\n margin-right: 10px;\n border-radius: 50%\n}\n\n.apexcharts-tooltip-series-group {\n padding: 0 10px;\n display: none;\n text-align: left;\n justify-content: left;\n align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n display: flex;\n flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n font-weight: 600;\n color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n font-weight: 700;\n display: block;\n margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n opacity: 0;\n pointer-events: none;\n color: #373d3f;\n font-size: 13px;\n text-align: center;\n border-radius: 2px;\n position: absolute;\n z-index: 10;\n background: #eceff1;\n border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n padding: 9px 10px;\n transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n left: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n background: rgba(0, 0, 0, .7);\n border: 1px solid rgba(0, 0, 0, .5);\n color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n top: 50%;\n border: solid transparent;\n content: " ";\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n border-color: transparent;\n border-width: 6px;\n margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n border-color: transparent;\n border-width: 7px;\n margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n pointer-events: none;\n opacity: 0;\n transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n opacity: 1;\n transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n opacity: 0\n}\n\n.apexcharts-selection-rect {\n cursor: move\n}\n\n.svg_select_boundingRect,\n.svg_select_points_rot {\n pointer-events: none;\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_boundingRect,\n.apexcharts-selection-rect+g .svg_select_points_rot {\n opacity: 0;\n visibility: hidden\n}\n\n.apexcharts-selection-rect+g .svg_select_points_l,\n.apexcharts-selection-rect+g .svg_select_points_r {\n cursor: ew-resize;\n opacity: 1;\n visibility: visible\n}\n\n.svg_select_points {\n fill: #efefef;\n stroke: #333;\n rx: 2\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n cursor: pointer;\n width: 20px;\n height: 20px;\n line-height: 24px;\n color: #6e8192;\n text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n fill: #444;\n transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n position: relative\n}\n\n.apexcharts-reset-icon {\n margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n transform: scale(.62);\n position: relative;\n left: 1px;\n top: 0\n}\n\n.apexcharts-pan-icon svg {\n fill: #fff;\n stroke: #6e8192;\n stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n stroke: #333\n}\n\n.apexcharts-toolbar {\n position: absolute;\n z-index: 11;\n max-width: 176px;\n text-align: right;\n border-radius: 3px;\n padding: 0 6px 2px;\n display: flex;\n justify-content: space-between;\n align-items: center\n}\n\n.apexcharts-menu {\n background: #fff;\n position: absolute;\n top: 100%;\n border: 1px solid #ddd;\n border-radius: 3px;\n padding: 3px;\n right: 10px;\n opacity: 0;\n min-width: 110px;\n transition: .15s ease all;\n pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n opacity: 1;\n pointer-events: all;\n transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n padding: 6px 7px;\n font-size: 12px;\n cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n background: rgba(0, 0, 0, .7);\n color: #fff\n}\n\n@media screen and (min-width:768px) {\n .apexcharts-canvas:hover .apexcharts-toolbar {\n opacity: 1\n }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n opacity: 1;\n transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n cursor: default;\n pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n opacity: 0;\n animation-name: opaque;\n animation-duration: .3s;\n animation-fill-mode: forwards;\n animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-area-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-line-series .apexcharts-series-markers .apexcharts-marker.no-pointer-events,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect {\n pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n transition: .15s ease all\n}\n\n.resize-triggers {\n animation: 1ms resizeanim;\n visibility: hidden;\n opacity: 0;\n height: 100%;\n width: 100%;\n overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n content: " ";\n display: block;\n position: absolute;\n top: 0;\n left: 0\n}\n\n.resize-triggers>div {\n height: 100%;\n width: 100%;\n background: #eee;\n overflow: auto\n}\n\n.contract-trigger:before {\n overflow: hidden;\n width: 200%;\n height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n pointer-events: none\n}\n';var l,u=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;u&&s.setAttribute("nonce",u),a?i.prepend(s):o.head.appendChild(s)}var c=e.create(e.w.config.series,{});if(!c)return t(e);e.mount(c).then(function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(c)}).catch(function(e){r(e)})}else r(Error("Element not found"))})}},{key:"create",value:function(e,t){var r=this,n=this.w;new e$(this).initModules();var i=this.w.globals;if(i.noData=!1,i.animationEnded=!1,this.responsive.checkResponsiveConfig(t),n.config.xaxis.convertedCatToNumeric&&new F(n.config).convertCatToNumericXaxis(n.config,this.ctx),null===this.el||(this.core.setupElements(),"treemap"===n.config.chart.type&&(n.config.grid.show=!1,n.config.yaxis[0].show=!1),0===i.svgWidth))return i.animationEnded=!0,null;var a=e;e.forEach(function(e,t){e.hidden&&(a=r.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))});var o=A.checkComboSeries(a,n.config.chart.type);i.comboCharts=o.comboCharts,i.comboBarCount=o.comboBarCount;var s=a.every(function(e){return e.data&&0===e.data.length});(0===a.length||s&&i.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(a),this.theme.init(),new Y(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),i.noData&&i.collapsedSeries.length!==i.series.length&&!n.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),i.axisCharts&&(this.core.coreCalculations(),"category"!==n.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=n.globals.minX,this.ctx.toolbar.maxX=n.globals.maxX),this.formatters.heatmapLabelFormatters(),new A(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var u=this.core.plotChartType(a,l),c=new V(this);return c.bringForward(),n.config.dataLabels.background.enabled&&c.dataLabelsBackground(),this.core.shiftGraphPosition(),{elGraph:u,xyRatios:l,dimensions:{plot:{left:n.globals.translateX,top:n.globals.translateY,width:n.globals.gridWidth,height:n.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=this,n=r.w;return new Promise(function(i,a){if(null===r.el)return a(Error("Not enough data to display or target element not found"));(null===t||n.globals.allSeriesCollapsed)&&r.series.handleNoData(),r.grid=new K(r);var o,s,l=r.grid.drawGrid();if(r.annotations=new N(r),r.annotations.drawImageAnnos(),r.annotations.drawTextAnnos(),"back"===n.config.grid.position&&(l&&n.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&n.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var u=0;u<t.elGraph.length;u++)n.globals.dom.elGraphical.add(t.elGraph[u]);else n.globals.dom.elGraphical.add(t.elGraph);"front"===n.config.grid.position&&(l&&n.globals.dom.elGraphical.add(l.el),null!=l&&null!==(s=l.elGridBorders)&&void 0!==s&&s.node&&n.globals.dom.elGraphical.add(l.elGridBorders)),"front"===n.config.xaxis.crosshairs.position&&r.crosshairs.drawXCrosshairs(),"front"===n.config.yaxis[0].crosshairs.position&&r.crosshairs.drawYCrosshairs(),"treemap"!==n.config.chart.type&&r.axes.drawAxis(n.config.chart.type,l);var c=new Z(e.ctx,l),d=new ee(e.ctx,l);if(null!==l&&(c.xAxisLabelCorrections(l.xAxisTickWidth),d.setYAxisTextAlignments(),n.config.yaxis.map(function(e,t){-1===n.globals.ignoreYAxisIndexes.indexOf(t)&&d.yAxisTitleRotate(t,e.opposite)})),r.annotations.drawAxesAnnotations(),!n.globals.noData){if(n.config.tooltip.enabled&&!n.globals.noData&&r.w.globals.tooltip.drawTooltip(t.xyRatios),n.globals.axisCharts&&(n.globals.isXNumeric||n.config.xaxis.convertedCatToNumeric||n.globals.isRangeBar))(n.config.chart.zoom.enabled||n.config.chart.selection&&n.config.chart.selection.enabled||n.config.chart.pan&&n.config.chart.pan.enabled)&&r.zoomPanSelection.init({xyRatios:t.xyRatios});else{var h=n.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(e){h[e]=!1})}n.config.chart.toolbar.show&&!n.globals.allSeriesCollapsed&&r.toolbar.createToolbar()}n.globals.memory.methodsToExec.length>0&&n.globals.memory.methodsToExec.forEach(function(e){e.method(e.params,!1,e.context)}),n.globals.axisCharts||n.globals.noData||r.core.resizeNonAxisCharts(),i(r)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),this.el.parentNode,e=this.parentResizeHandler,(t=eZ.get(e))&&(t.disconnect(),eZ.delete(e));var e,t,r=this.w.config.chart.id;r&&Apex._chartInstances.forEach(function(e,t){e.id===w.escapeString(r)&&Apex._chartInstances.splice(t,1)}),new eq(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],o=this.w;return o.globals.selection=void 0,e.series&&(this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(e,r){return t.updateHelpers._extendSeries(e,r)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),o.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,r,n,i,a)}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,r)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=this.w.config.series.slice();return n.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(n,t,r)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.w.globals.dataChanged=!0,this.series.getPreviousPaths();for(var r=this.w.config.series.slice(),n=0;n<r.length;n++)if(null!==e[n]&&void 0!==e[n])for(var i=0;i<e[n].data.length;i++)r[n].data.push(e[n].data[i]);return this.w.config.series=r,t&&(this.w.globals.initialSeries=w.clone(this.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(r,n){new eq(t.ctx).clear({isUpdating:!0});var i=t.create(t.w.config.series,e);if(!i)return r(t);t.mount(i).then(function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,r(t)}).catch(function(e){n(e)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(e){t.push(e)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(e){if(e.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;r&&(n=r),n.annotations.addXaxisAnnotationExternal(e,t,n)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;r&&(n=r),n.annotations.addYaxisAnnotationExternal(e,t,n)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this;r&&(n=r),n.annotations.addPointAnnotationExternal(e,t,n)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,r=this;t&&(r=t),r.annotations.removeAnnotation(r,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new J(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new J(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new q(this.ctx).dataURI(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new q(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=w.escapeString(e);if(Apex._chartInstances){var r=Apex._chartInstances.filter(function(e){return e.id===t})[0];return r&&r.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),r=0;r<t.length;r++)new e(t[r],JSON.parse(t[r].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var r=this.getChartByID(e);if(r){r.w.globals.isExecCalled=!0;var n=null;if(-1!==r.publicMethods.indexOf(t)){for(var i=arguments.length,a=Array(i>2?i-2:0),o=2;o<i;o++)a[o-2]=arguments[o];n=r[t].apply(r,a)}return n}}},{key:"merge",value:function(e,t){return w.extend(e,t)}}]),e}();e.exports=eK}),c("c9Z8w",function(e,t){e.exports=u("hOzOt")()}),c("aTXuQ",function(e,t){var r=u("jrtNg"),n=u("o8HxT");e.exports=function(e,t,i,a){return null==e?[]:(n(t)||(t=null==t?[]:[t]),n(i=a?void 0:i)||(i=null==i?[]:[i]),r(e,t,i))}}),c("jrtNg",function(e,t){var r=u("i46jW"),n=u("lJEX1"),i=u("7MWok"),a=u("fDc61"),o=u("9xZGY"),s=u("91Qdd"),l=u("fyGSR"),c=u("4Nq5y"),d=u("o8HxT");e.exports=function(e,t,u){t=t.length?r(t,function(e){return d(e)?function(t){return n(t,1===e.length?e[0]:e)}:e}):[c];var h=-1;return t=r(t,s(i)),o(a(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++h,value:e}}),function(e,t){return l(e,t,u)})}}),c("i46jW",function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i}}),c("lJEX1",function(e,t){var r=u("4RK0h"),n=u("6DSvu");e.exports=function(e,t){t=r(t,e);for(var i=0,a=t.length;null!=e&&i<a;)e=e[n(t[i++])];return i&&i==a?e:void 0}}),c("4RK0h",function(e,t){var r=u("o8HxT"),n=u("kPpic"),i=u("lnP3M"),a=u("l6E2L");e.exports=function(e,t){return r(e)?e:n(e,t)?[e]:i(a(e))}}),c("o8HxT",function(e,t){var r=Array.isArray;e.exports=r}),c("kPpic",function(e,t){var r=u("o8HxT"),n=u("9dr3u"),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var o=typeof e;return!!("number"==o||"symbol"==o||"boolean"==o||null==e||n(e))||a.test(e)||!i.test(e)||null!=t&&e in Object(t)}}),c("9dr3u",function(e,t){var r=u("eq6CV"),n=u("8l89S");e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==r(e)}}),c("eq6CV",function(e,t){var r=u("57wYk"),n=u("iMn5C"),i=u("5tDQy"),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):i(e)}}),c("57wYk",function(e,t){var r=u("23YZo").Symbol;e.exports=r}),c("23YZo",function(e,t){var r=u("ljJ8G"),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i}),c("ljJ8G",function(e,t){var r="object"==typeof n&&n&&n.Object===Object&&n;e.exports=r}),c("iMn5C",function(e,t){var r=u("57wYk"),n=Object.prototype,i=n.hasOwnProperty,a=n.toString,o=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,o),r=e[o];try{e[o]=void 0;var n=!0}catch(e){}var s=a.call(e);return n&&(t?e[o]=r:delete e[o]),s}}),c("5tDQy",function(e,t){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}}),c("8l89S",function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}}),c("lnP3M",function(e,t){var r=u("99Rk8"),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,r,n,a){t.push(n?a.replace(i,"$1"):r||e)}),t});e.exports=a}),c("99Rk8",function(e,t){var r=u("23xpV");e.exports=function(e){var t=r(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}}),c("23xpV",function(e,t){var r=u("6gDBQ");function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var r=arguments,n=t?t.apply(this,r):r[0],a=i.cache;if(a.has(n))return a.get(n);var o=e.apply(this,r);return i.cache=a.set(n,o)||a,o};return i.cache=new(n.Cache||r),i}n.Cache=r,e.exports=n}),c("6gDBQ",function(e,t){var r=u("j9XgB"),n=u("5Rqhl"),i=u("g0JTV"),a=u("iaILb"),o=u("4vfJO");function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,e.exports=s}),c("j9XgB",function(e,t){var r=u("c8dKl"),n=u("iYOpJ"),i=u("2cJKd");e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}}),c("c8dKl",function(e,t){var r=u("b4nbb"),n=u("8ink3"),i=u("VQwbj"),a=u("19QNA"),o=u("i8qJC");function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,e.exports=s}),c("b4nbb",function(e,t){var r=u("k1Z3J");e.exports=function(){this.__data__=r?r(null):{},this.size=0}}),c("k1Z3J",function(e,t){var r=u("6T08O")(Object,"create");e.exports=r}),c("6T08O",function(e,t){var r=u("bhj99"),n=u("ii1B1");e.exports=function(e,t){var i=n(e,t);return r(i)?i:void 0}}),c("bhj99",function(e,t){var r=u("01ubZ"),n=u("87ifd"),i=u("lsJ54"),a=u("dqC5h"),o=/^\[object .+?Constructor\]$/,s=Object.prototype,l=Function.prototype.toString,c=s.hasOwnProperty,d=RegExp("^"+l.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d:o).test(a(e))}}),c("01ubZ",function(e,t){var r=u("eq6CV"),n=u("lsJ54");e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}}),c("lsJ54",function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}}),c("87ifd",function(e,t){var r,n=u("g3dHA"),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}}),c("g3dHA",function(e,t){var r=u("23YZo")["__core-js_shared__"];e.exports=r}),c("dqC5h",function(e,t){var r=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return r.call(e)}catch(e){}try{return e+""}catch(e){}}return""}}),c("ii1B1",function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}}),c("8ink3",function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}),c("VQwbj",function(e,t){var r=u("k1Z3J"),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(t,e)?t[e]:void 0}}),c("19QNA",function(e,t){var r=u("k1Z3J"),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}}),c("i8qJC",function(e,t){var r=u("k1Z3J");e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}}),c("iYOpJ",function(e,t){var r=u("bjX1n"),n=u("i2OST"),i=u("fmh4d"),a=u("3AXiV"),o=u("lWpQQ");function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}s.prototype.clear=r,s.prototype.delete=n,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,e.exports=s}),c("bjX1n",function(e,t){e.exports=function(){this.__data__=[],this.size=0}}),c("i2OST",function(e,t){var r=u("bBnDb"),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=r(t,e);return!(i<0)&&(i==t.length-1?t.pop():n.call(t,i,1),--this.size,!0)}}),c("bBnDb",function(e,t){var r=u("6TC8i");e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}}),c("6TC8i",function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}}),c("fmh4d",function(e,t){var r=u("bBnDb");e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}}),c("3AXiV",function(e,t){var r=u("bBnDb");e.exports=function(e){return r(this.__data__,e)>-1}}),c("lWpQQ",function(e,t){var r=u("bBnDb");e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}}),c("2cJKd",function(e,t){var r=u("6T08O")(u("23YZo"),"Map");e.exports=r}),c("5Rqhl",function(e,t){var r=u("gxIuO");e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}}),c("gxIuO",function(e,t){var r=u("PZpyR");e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}}),c("PZpyR",function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}}),c("g0JTV",function(e,t){var r=u("gxIuO");e.exports=function(e){return r(this,e).get(e)}}),c("iaILb",function(e,t){var r=u("gxIuO");e.exports=function(e){return r(this,e).has(e)}}),c("4vfJO",function(e,t){var r=u("gxIuO");e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}}),c("l6E2L",function(e,t){var r=u("kJ9w3");e.exports=function(e){return null==e?"":r(e)}}),c("kJ9w3",function(e,t){var r=u("57wYk"),n=u("i46jW"),i=u("o8HxT"),a=u("9dr3u"),o=1/0,s=r?r.prototype:void 0,l=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return n(t,e)+"";if(a(t))return l?l.call(t):"";var r=t+"";return"0"==r&&1/t==-o?"-0":r}}),c("6DSvu",function(e,t){var r=u("9dr3u"),n=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}}),c("7MWok",function(e,t){var r=u("jShkp"),n=u("in5n5"),i=u("4Nq5y"),a=u("o8HxT"),o=u("bAYPD");e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?n(e[0],e[1]):r(e):o(e)}}),c("jShkp",function(e,t){var r=u("kgn8n"),n=u("9dd8D"),i=u("2IhDm");e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}}),c("kgn8n",function(e,t){var r=u("g779E"),n=u("abgWr");e.exports=function(e,t,i,a){var o=i.length,s=o,l=!a;if(null==e)return!s;for(e=Object(e);o--;){var u=i[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var c=(u=i[o])[0],d=e[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var f=new r;if(a)var p=a(d,h,c,e,t,f);if(!(void 0===p?n(h,d,3,a,f):p))return!1}}return!0}}),c("g779E",function(e,t){var r=u("iYOpJ"),n=u("jZSEZ"),i=u("fm6cW"),a=u("b3G1Z"),o=u("5DEbp"),s=u("czPDU");function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=o,l.prototype.set=s,e.exports=l}),c("jZSEZ",function(e,t){var r=u("iYOpJ");e.exports=function(){this.__data__=new r,this.size=0}}),c("fm6cW",function(e,t){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}}),c("b3G1Z",function(e,t){e.exports=function(e){return this.__data__.get(e)}}),c("5DEbp",function(e,t){e.exports=function(e){return this.__data__.has(e)}}),c("czPDU",function(e,t){var r=u("iYOpJ"),n=u("2cJKd"),i=u("6gDBQ");e.exports=function(e,t){var a=this.__data__;if(a instanceof r){var o=a.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++a.size,this;a=this.__data__=new i(o)}return a.set(e,t),this.size=a.size,this}}),c("abgWr",function(e,t){var r=u("7qq40"),n=u("8l89S");e.exports=function e(t,i,a,o,s){return t===i||(null!=t&&null!=i&&(n(t)||n(i))?r(t,i,a,o,e,s):t!=t&&i!=i)}}),c("7qq40",function(e,t){var r=u("g779E"),n=u("1pRE7"),i=u("g3aCZ"),a=u("eOqMj"),o=u("67A6V"),s=u("o8HxT"),l=u("f504n"),c=u("1Q21n"),d="[object Arguments]",h="[object Array]",f="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,u,g,m,v){var b=s(e),x=s(t),y=b?h:o(e),w=x?h:o(t);y=y==d?f:y,w=w==d?f:w;var k=y==f,S=w==f,C=y==w;if(C&&l(e)){if(!l(t))return!1;b=!0,k=!1}if(C&&!k)return v||(v=new r),b||c(e)?n(e,t,u,g,m,v):i(e,t,y,u,g,m,v);if(!(1&u)){var A=k&&p.call(e,"__wrapped__"),E=S&&p.call(t,"__wrapped__");if(A||E){var _=A?e.value():e,T=E?t.value():t;return v||(v=new r),m(_,T,u,g,v)}}return!!C&&(v||(v=new r),a(e,t,u,g,m,v))}}),c("1pRE7",function(e,t){var r=u("dXA7v"),n=u("eFBTL"),i=u("2l8n7");e.exports=function(e,t,a,o,s,l){var u=1&a,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),f=l.get(t);if(h&&f)return h==t&&f==e;var p=-1,g=!0,m=2&a?new r:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var v=e[p],b=t[p];if(o)var x=u?o(b,v,p,t,e,l):o(v,b,p,e,t,l);if(void 0!==x){if(x)continue;g=!1;break}if(m){if(!n(t,function(e,t){if(!i(m,t)&&(v===e||s(v,e,a,o,l)))return m.push(t)})){g=!1;break}}else if(!(v===b||s(v,b,a,o,l))){g=!1;break}}return l.delete(e),l.delete(t),g}}),c("dXA7v",function(e,t){var r=u("6gDBQ"),n=u("j1Tfx"),i=u("8NkYQ");function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=n,a.prototype.has=i,e.exports=a}),c("j1Tfx",function(e,t){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}),c("8NkYQ",function(e,t){e.exports=function(e){return this.__data__.has(e)}}),c("eFBTL",function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}}),c("2l8n7",function(e,t){e.exports=function(e,t){return e.has(t)}}),c("g3aCZ",function(e,t){var r=u("57wYk"),n=u("lx3EF"),i=u("6TC8i"),a=u("1pRE7"),o=u("cwfcG"),s=u("1xAji"),l=r?r.prototype:void 0,c=l?l.valueOf:void 0;e.exports=function(e,t,r,l,u,d,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new n(e),new n(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=o;case"[object Set]":var p=1&l;if(f||(f=s),e.size!=t.size&&!p)break;var g=h.get(e);if(g)return g==t;l|=2,h.set(e,t);var m=a(f(e),f(t),l,u,d,h);return h.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}}),c("lx3EF",function(e,t){var r=u("23YZo").Uint8Array;e.exports=r}),c("cwfcG",function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}}),c("1xAji",function(e,t){e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}}),c("eOqMj",function(e,t){var r=u("apVCl"),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,a,o,s){var l=1&i,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:n.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=l;++d<c;){var v=e[h=u[d]],b=t[h];if(a)var x=l?a(b,v,h,t,e,s):a(v,b,h,e,t,s);if(!(void 0===x?v===b||o(v,b,i,a,s):x)){g=!1;break}m||(m="constructor"==h)}if(g&&!m){var y=e.constructor,w=t.constructor;y!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof y&&y instanceof y&&"function"==typeof w&&w instanceof w)&&(g=!1)}return s.delete(e),s.delete(t),g}}),c("apVCl",function(e,t){var r=u("ctgi8"),n=u("6YcYN"),i=u("LAMcS");e.exports=function(e){return r(e,i,n)}}),c("ctgi8",function(e,t){var r=u("hynws"),n=u("o8HxT");e.exports=function(e,t,i){var a=t(e);return n(e)?a:r(a,i(e))}}),c("hynws",function(e,t){e.exports=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}}),c("6YcYN",function(e,t){var r=u("8H9RZ"),n=u("clnSu"),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,o=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return i.call(e,t)})}:n;e.exports=o}),c("8H9RZ",function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,a=[];++r<n;){var o=e[r];t(o,r,e)&&(a[i++]=o)}return a}}),c("clnSu",function(e,t){e.exports=function(){return[]}}),c("LAMcS",function(e,t){var r=u("8C60w"),n=u("jViFF"),i=u("eMthh");e.exports=function(e){return i(e)?r(e):n(e)}}),c("8C60w",function(e,t){var r=u("fdM6B"),n=u("aJD6g"),i=u("o8HxT"),a=u("f504n"),o=u("iyUuu"),s=u("1Q21n"),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var u=i(e),c=!u&&n(e),d=!u&&!c&&a(e),h=!u&&!c&&!d&&s(e),f=u||c||d||h,p=f?r(e.length,String):[],g=p.length;for(var m in e)(t||l.call(e,m))&&!(f&&("length"==m||d&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||o(m,g)))&&p.push(m);return p}}),c("fdM6B",function(e,t){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}}),c("aJD6g",function(e,t){var r=u("lB3aj"),n=u("8l89S"),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable,s=r(function(){return arguments}())?r:function(e){return n(e)&&a.call(e,"callee")&&!o.call(e,"callee")};e.exports=s}),c("lB3aj",function(e,t){var r=u("eq6CV"),n=u("8l89S");e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}}),c("f504n",function(e,t){var r=u("23YZo"),n=u("fiQnm"),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,o=a&&a.exports===i?r.Buffer:void 0,s=o?o.isBuffer:void 0;e.exports=s||n}),c("fiQnm",function(e,t){e.exports=function(){return!1}}),c("iyUuu",function(e,t){var r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var n=typeof e;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==n||"symbol"!=n&&r.test(e))&&e>-1&&e%1==0&&e<t}}),c("1Q21n",function(e,t){var r=u("dtRoq"),n=u("91Qdd"),i=u("jIny1"),a=i&&i.isTypedArray,o=a?n(a):r;e.exports=o}),c("dtRoq",function(e,t){var r=u("eq6CV"),n=u("1S9lz"),i=u("8l89S"),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!a[r(e)]}}),c("1S9lz",function(e,t){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}}),c("91Qdd",function(e,t){e.exports=function(e){return function(t){return e(t)}}}),c("jIny1",function(e,t){var r=u("ljJ8G"),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n&&r.process,o=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=o}),c("jViFF",function(e,t){var r=u("3wZFp"),n=u("Xlg65"),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var a in Object(e))i.call(e,a)&&"constructor"!=a&&t.push(a);return t}}),c("3wZFp",function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}}),c("Xlg65",function(e,t){var r=u("lW2Sc")(Object.keys,Object);e.exports=r}),c("lW2Sc",function(e,t){e.exports=function(e,t){return function(r){return e(t(r))}}}),c("eMthh",function(e,t){var r=u("01ubZ"),n=u("1S9lz");e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}}),c("67A6V",function(e,t){var r=u("5Ehf1"),n=u("2cJKd"),i=u("f7yH3"),a=u("vH4x0"),o=u("f0N2p"),s=u("eq6CV"),l=u("dqC5h"),c="[object Map]",d="[object Promise]",h="[object Set]",f="[object WeakMap]",p="[object DataView]",g=l(r),m=l(n),v=l(i),b=l(a),x=l(o),y=s;(r&&y(new r(new ArrayBuffer(1)))!=p||n&&y(new n)!=c||i&&y(i.resolve())!=d||a&&y(new a)!=h||o&&y(new o)!=f)&&(y=function(e){var t=s(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case g:return p;case m:return c;case v:return d;case b:return h;case x:return f}return t}),e.exports=y}),c("5Ehf1",function(e,t){var r=u("6T08O")(u("23YZo"),"DataView");e.exports=r}),c("f7yH3",function(e,t){var r=u("6T08O")(u("23YZo"),"Promise");e.exports=r}),c("vH4x0",function(e,t){var r=u("6T08O")(u("23YZo"),"Set");e.exports=r}),c("f0N2p",function(e,t){var r=u("6T08O")(u("23YZo"),"WeakMap");e.exports=r}),c("9dd8D",function(e,t){var r=u("1n1hd"),n=u("LAMcS");e.exports=function(e){for(var t=n(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,r(o)]}return t}}),c("1n1hd",function(e,t){var r=u("lsJ54");e.exports=function(e){return e==e&&!r(e)}}),c("2IhDm",function(e,t){e.exports=function(e,t){return function(r){return null!=r&&r[e]===t&&(void 0!==t||e in Object(r))}}}),c("in5n5",function(e,t){var r=u("abgWr"),n=u("i51gj"),i=u("2VBx6"),a=u("kPpic"),o=u("1n1hd"),s=u("2IhDm"),l=u("6DSvu");e.exports=function(e,t){return a(e)&&o(t)?s(l(e),t):function(a){var o=n(a,e);return void 0===o&&o===t?i(a,e):r(t,o,3)}}}),c("i51gj",function(e,t){var r=u("lJEX1");e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}}),c("2VBx6",function(e,t){var r=u("ij33W"),n=u("btvBm");e.exports=function(e,t){return null!=e&&n(e,t,r)}}),c("ij33W",function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}}),c("btvBm",function(e,t){var r=u("4RK0h"),n=u("aJD6g"),i=u("o8HxT"),a=u("iyUuu"),o=u("1S9lz"),s=u("6DSvu");e.exports=function(e,t,l){t=r(t,e);for(var u=-1,c=t.length,d=!1;++u<c;){var h=s(t[u]);if(!(d=null!=e&&l(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&o(c)&&a(h,c)&&(i(e)||n(e))}}),c("4Nq5y",function(e,t){e.exports=function(e){return e}}),c("bAYPD",function(e,t){var r=u("ielIK"),n=u("jfdoV"),i=u("kPpic"),a=u("6DSvu");e.exports=function(e){return i(e)?r(a(e)):n(e)}}),c("ielIK",function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}}),c("jfdoV",function(e,t){var r=u("lJEX1");e.exports=function(e){return function(t){return r(t,e)}}}),c("fDc61",function(e,t){var r=u("4DjQp"),n=u("eMthh");e.exports=function(e,t){var i=-1,a=n(e)?Array(e.length):[];return r(e,function(e,r,n){a[++i]=t(e,r,n)}),a}}),c("4DjQp",function(e,t){var r=u("4xK4A"),n=u("kCOH9")(r);e.exports=n}),c("4xK4A",function(e,t){var r=u("dEvx9"),n=u("LAMcS");e.exports=function(e,t){return e&&r(e,t,n)}}),c("dEvx9",function(e,t){var r=u("jTvRt")();e.exports=r}),c("jTvRt",function(e,t){e.exports=function(e){return function(t,r,n){for(var i=-1,a=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++i];if(!1===r(a[l],l,a))break}return t}}}),c("kCOH9",function(e,t){var r=u("eMthh");e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var a=n.length,o=t?a:-1,s=Object(n);(t?o--:++o<a)&&!1!==i(s[o],o,s););return n}}}),c("9xZGY",function(e,t){e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}}),c("fyGSR",function(e,t){var r=u("1HU00");e.exports=function(e,t,n){for(var i=-1,a=e.criteria,o=t.criteria,s=a.length,l=n.length;++i<s;){var u=r(a[i],o[i]);if(u){if(i>=l)return u;return u*("desc"==n[i]?-1:1)}}return e.index-t.index}}),c("1HU00",function(e,t){var r=u("9dr3u");e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,a=e==e,o=r(e),s=void 0!==t,l=null===t,u=t==t,c=r(t);if(!l&&!c&&!o&&e>t||o&&s&&u&&!l&&!c||i&&s&&u||!n&&u||!a)return 1;if(!i&&!o&&!c&&e<t||c&&n&&a&&!i&&!o||l&&n&&a||!s&&a||!u)return -1}return 0}}),c("k4c40",function(e,t){var r=u("1jnue");Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=void 0;var n=r(u("7Ekty")),i=u("ayMG0");e.exports.default=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M19 9h-4V3H9v6H5l7 7zM5 18v2h14v-2z"}),"FileDownload")}),c("7Ekty",function(e,t){Object.defineProperty(e.exports,"__esModule",{value:!0}),Object.defineProperty(e.exports,"default",{enumerable:!0,get:function(){return r.default}});var r=u("bbT5Q")}),c("4D8ul",function(e,t){var r=u("1jnue");Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.default=void 0;var n=r(u("7Ekty")),i=u("ayMG0");e.exports.default=(0,n.default)(/*#__PURE__*/(0,i.jsx)("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}),"MoreVert")}),c("825Zh",function(e,t){i(e.exports),r(e.exports,"default",()=>u("9Lykx").default),r(e.exports,"iconButtonClasses",()=>u("jzUw6").default),u("9Lykx");var n=u("jzUw6");a(e.exports,n)}),c("9Lykx",function(e,t){r(e.exports,"default",()=>x);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("d8seH"),d=u("1iOpW"),h=u("6n0Ko"),f=u("jTnBY"),p=u("jzUw6"),g=u("ayMG0");let m=["edge","children","className","color","disabled","disableFocusRipple","size"],v=e=>{let{classes:t,disabled:r,color:n,edge:i,size:a}=e,o={root:["root",r&&"disabled","default"!==n&&`color${(0,f.default)(n)}`,i&&`edge${(0,f.default)(i)}`,`size${(0,f.default)(a)}`]};return(0,s.default)(o,p.getIconButtonUtilityClass,t)},b=(0,c.default)(h.default,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${(0,f.default)(r.color)}`],r.edge&&t[`edge${(0,f.default)(r.edge)}`],t[`size${(0,f.default)(r.size)}`]]}})(({theme:e,ownerState:t})=>(0,i.default)({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.alpha)(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;let n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return(0,i.default)({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&(0,i.default)({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":(0,i.default)({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,l.alpha)(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${p.default.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})});var x=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiIconButton"}),{edge:a=!1,children:s,className:l,color:u="default",disabled:c=!1,disableFocusRipple:h=!1,size:f="medium"}=r,p=(0,n.default)(r,m),x=(0,i.default)({},r,{edge:a,color:u,disabled:c,disableFocusRipple:h,size:f}),y=v(x);return/*#__PURE__*/(0,g.jsx)(b,(0,i.default)({className:(0,o.default)(y.root,l),centerRipple:!0,focusRipple:!h,disabled:c,ref:t},p,{ownerState:x,children:s}))})}),c("jzUw6",function(e,t){i(e.exports),r(e.exports,"getIconButtonUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiIconButton",e)}var s=(0,n.default)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"])}),c("kCnQI",function(e,t){i(e.exports),r(e.exports,"default",()=>u("4F5tJ").default),r(e.exports,"menuClasses",()=>u("lyHsQ").default),u("4F5tJ");var n=u("lyHsQ");a(e.exports,n)}),c("4F5tJ",function(e,t){r(e.exports,"default",()=>E);var n=u("8nd05"),i=u("1En50"),a=u("acw62");u("4jPKB");var o=u("9QePP"),s=u("8Indx"),l=u("58lXc"),c=u("eD6Co"),d=u("lBOb7"),h=u("6el2W"),f=u("d8seH"),p=u("8Uq77"),g=u("1iOpW"),m=u("lyHsQ"),v=u("ayMG0");let b=["onEntering"],x=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],y={vertical:"top",horizontal:"right"},w={vertical:"top",horizontal:"left"},k=e=>{let{classes:t}=e;return(0,s.default)({root:["root"],paper:["paper"],list:["list"]},m.getMenuUtilityClass,t)},S=(0,f.default)(h.default,{shouldForwardProp:e=>(0,p.default)(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),C=(0,f.default)(h.PopoverPaper,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),A=(0,f.default)(d.default,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var E=/*#__PURE__*/a.forwardRef(function(e,t){var r,s;let u=(0,g.useDefaultProps)({props:e,name:"MuiMenu"}),{autoFocus:d=!0,children:h,className:f,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:E,open:_,PaperProps:T={},PopoverClasses:P,transitionDuration:O="auto",TransitionProps:{onEntering:M}={},variant:I="selectedMenu",slots:L={},slotProps:R={}}=u,N=(0,i.default)(u.TransitionProps,b),z=(0,i.default)(u,x),D=(0,l.useRtl)(),F=(0,n.default)({},u,{autoFocus:d,disableAutoFocusItem:p,MenuListProps:m,onEntering:M,PaperProps:T,transitionDuration:O,TransitionProps:N,variant:I}),B=k(F),W=d&&!p&&_,H=a.useRef(null),X=-1;a.Children.map(h,(e,t)=>{/*#__PURE__*/a.isValidElement(e)&&!e.props.disabled&&("selectedMenu"===I&&e.props.selected?X=t:-1===X&&(X=t))});let Y=null!=(r=L.paper)?r:C,U=null!=(s=R.paper)?s:T,V=(0,c.default)({elementType:L.root,externalSlotProps:R.root,ownerState:F,className:[B.root,f]}),G=(0,c.default)({elementType:Y,externalSlotProps:U,ownerState:F,className:B.paper});return/*#__PURE__*/(0,v.jsx)(S,(0,n.default)({onClose:E,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?y:w,slots:{paper:Y,root:L.root},slotProps:{root:V,paper:G},open:_,ref:t,transitionDuration:O,TransitionProps:(0,n.default)({onEntering:(e,t)=>{H.current&&H.current.adjustStyleForScrollbar(e,{direction:D?"rtl":"ltr"}),M&&M(e,t)}},N),ownerState:F},z,{classes:P,children:/*#__PURE__*/(0,v.jsx)(A,(0,n.default)({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),E&&E(e,"tabKeyDown"))},actions:H,autoFocus:d&&(-1===X||p),autoFocusItem:W,variant:I},m,{className:(0,o.default)(B.list,m.className),children:h}))}))})}),c("58lXc",function(e,t){r(e.exports,"useRtl",()=>c),r(e.exports,"default",()=>d);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("ayMG0");let s=["value"],l=/*#__PURE__*/a.createContext(),c=()=>{let e=a.useContext(l);return null!=e&&e};var d=function(e){let{value:t}=e,r=(0,i.default)(e,s);return/*#__PURE__*/(0,o.jsx)(l.Provider,(0,n.default)({value:null==t||t},r))}}),c("eD6Co",function(e,t){r(e.exports,"default",()=>d);var n=u("8nd05"),i=u("1En50"),a=u("3qSdM"),o=u("gEUd4"),s=u("1ESci"),l=u("8bslU");let c=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];var d=function(e){var t;let{elementType:r,externalSlotProps:u,ownerState:d,skipResolvingSlotProps:h=!1}=e,f=(0,i.default)(e,c),p=h?{}:(0,l.default)(u,d),{props:g,internalRef:m}=(0,s.default)((0,n.default)({},f,{externalSlotProps:p})),v=(0,a.default)(m,null==p?void 0:p.ref,null==(t=e.additionalProps)?void 0:t.ref);return(0,o.default)(r,(0,n.default)({},g,{ref:v}),d)}}),c("gEUd4",function(e,t){r(e.exports,"default",()=>a);var n=u("8nd05"),i=u("awhpc"),a=function(e,t,r){return void 0===e||(0,i.default)(e)?t:(0,n.default)({},t,{ownerState:(0,n.default)({},t.ownerState,r)})}}),c("awhpc",function(e,t){r(e.exports,"default",()=>n);var n=function(e){return"string"==typeof e}}),c("1ESci",function(e,t){r(e.exports,"default",()=>s);var n=u("8nd05"),i=u("dKL4S"),a=u("f56pe"),o=u("5nUQA"),s=function(e){let{getSlotProps:t,additionalProps:r,externalSlotProps:s,externalForwardedProps:l,className:u}=e;if(!t){let e=(0,i.default)(null==r?void 0:r.className,u,null==l?void 0:l.className,null==s?void 0:s.className),t=(0,n.default)({},null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),a=(0,n.default)({},r,l,s);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}let c=(0,a.default)((0,n.default)({},l,s)),d=(0,o.default)(s),h=(0,o.default)(l),f=t(c),p=(0,i.default)(null==f?void 0:f.className,null==r?void 0:r.className,u,null==l?void 0:l.className,null==s?void 0:s.className),g=(0,n.default)({},null==f?void 0:f.style,null==r?void 0:r.style,null==l?void 0:l.style,null==s?void 0:s.style),m=(0,n.default)({},f,r,h,d);return p.length>0&&(m.className=p),Object.keys(g).length>0&&(m.style=g),{props:m,internalRef:f.ref}}}),c("dKL4S",function(e,t){r(e.exports,"default",()=>n);var n=function(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(n&&(n+=" "),n+=t);return n}}),c("f56pe",function(e,t){r(e.exports,"default",()=>n);var n=function(e,t=[]){if(void 0===e)return{};let r={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&"function"==typeof e[r]&&!t.includes(r)).forEach(t=>{r[t]=e[t]}),r}}),c("5nUQA",function(e,t){r(e.exports,"default",()=>n);var n=function(e){if(void 0===e)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(r=>{t[r]=e[r]}),t}}),c("8bslU",function(e,t){r(e.exports,"default",()=>n);var n=function(e,t,r){return"function"==typeof e?e(t,r):e}}),c("lBOb7",function(e,t){r(e.exports,"default",()=>b);var n=u("8nd05"),i=u("1En50"),a=u("acw62");u("4jPKB");var o=u("gzyUk"),s=u("8AyZl"),l=u("19SuQ"),c=u("9Rgf1"),d=u("khjmj"),h=u("ayMG0");let f=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function p(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function g(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function m(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),0!==(r=r.trim().toLowerCase()).length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function v(e,t,r,n,i,a){let o=!1,s=i(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(o)return!1;o=!0}let t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&m(s,a)&&!t)return s.focus(),!0;s=i(e,s,r)}return!1}var b=/*#__PURE__*/a.forwardRef(function(e,t){let{actions:r,autoFocus:u=!1,autoFocusItem:b=!1,children:x,className:y,disabledItemsFocusable:w=!1,disableListWrap:k=!1,onKeyDown:S,variant:C="selectedMenu"}=e,A=(0,i.default)(e,f),E=a.useRef(null),_=a.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});(0,d.default)(()=>{u&&E.current.focus()},[u]),a.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let r=!E.current.style.width;if(e.clientHeight<E.current.clientHeight&&r){let r=`${(0,l.default)((0,o.default)(e))}px`;E.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,E.current.style.width=`calc(100% + ${r})`}return E.current}}),[]);let T=(0,c.default)(E,t),P=-1;a.Children.forEach(x,(e,t)=>{if(!/*#__PURE__*/a.isValidElement(e)){P===t&&(P+=1)>=x.length&&(P=-1);return}e.props.disabled||("selectedMenu"===C&&e.props.selected?P=t:-1!==P||(P=t)),P===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(P+=1)>=x.length&&(P=-1)});let O=a.Children.map(x,(e,t)=>{if(t===P){let t={};return b&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===C&&(t.tabIndex=0),/*#__PURE__*/a.cloneElement(e,t)}return e});return/*#__PURE__*/(0,h.jsx)(s.default,(0,n.default)({role:"menu",ref:T,className:y,onKeyDown:e=>{let t=E.current,r=e.key,n=(0,o.default)(t).activeElement;if("ArrowDown"===r)e.preventDefault(),v(t,n,k,w,p);else if("ArrowUp"===r)e.preventDefault(),v(t,n,k,w,g);else if("Home"===r)e.preventDefault(),v(t,null,k,w,p);else if("End"===r)e.preventDefault(),v(t,null,k,w,g);else if(1===r.length){let i=_.current,a=r.toLowerCase(),o=performance.now();i.keys.length>0&&(o-i.lastTime>500?(i.keys=[],i.repeating=!0,i.previousKeyMatched=!0):i.repeating&&a!==i.keys[0]&&(i.repeating=!1)),i.lastTime=o,i.keys.push(a);let s=n&&!i.repeating&&m(n,i);i.previousKeyMatched&&(s||v(t,n,!1,w,p,i))?e.preventDefault():i.previousKeyMatched=!1}S&&S(e)},tabIndex:u?0:-1},A,{children:O}))})}),c("gzyUk",function(e,t){r(e.exports,"default",()=>n);var n=u("6zeBo").default}),c("6zeBo",function(e,t){r(e.exports,"default",()=>n);function n(e){return e&&e.ownerDocument||document}}),c("8AyZl",function(e,t){r(e.exports,"default",()=>v);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("d8seH"),c=u("1iOpW"),d=u("3W6ht"),h=u("eUMjp"),f=u("ayMG0");let p=["children","className","component","dense","disablePadding","subheader"],g=e=>{let{classes:t,disablePadding:r,dense:n,subheader:i}=e;return(0,s.default)({root:["root",!r&&"padding",n&&"dense",i&&"subheader"]},h.getListUtilityClass,t)},m=(0,l.default)("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>(0,i.default)({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}));var v=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiList"}),{children:s,className:l,component:u="ul",dense:h=!1,disablePadding:v=!1,subheader:b}=r,x=(0,n.default)(r,p),y=a.useMemo(()=>({dense:h}),[h]),w=(0,i.default)({},r,{component:u,dense:h,disablePadding:v}),k=g(w);return/*#__PURE__*/(0,f.jsx)(d.default.Provider,{value:y,children:/*#__PURE__*/(0,f.jsxs)(m,(0,i.default)({as:u,className:(0,o.default)(k.root,l),ref:t,ownerState:w},x,{children:[b,s]}))})})}),c("3W6ht",function(e,t){r(e.exports,"default",()=>n);var n=/*#__PURE__*/u("acw62").createContext({})}),c("eUMjp",function(e,t){r(e.exports,"getListUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiList",e)}(0,n.default)("MuiList",["root","padding","dense","subheader"])}),c("19SuQ",function(e,t){r(e.exports,"default",()=>n);var n=u("aF4kJ").default}),c("aF4kJ",function(e,t){r(e.exports,"default",()=>n);function n(e){let t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}}),c("khjmj",function(e,t){r(e.exports,"default",()=>n);var n=u("eEJPp").default}),c("6el2W",function(e,t){r(e.exports,"PopoverPaper",()=>M),r(e.exports,"default",()=>I);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("eD6Co"),c=u("awhpc"),d=u("d8seH"),h=u("1iOpW"),f=u("1iGrQ"),p=u("gzyUk"),g=u("9Evvr"),m=u("9Rgf1"),v=u("iscuz"),b=u("118QM"),x=u("7Frhn"),y=u("k6uEG"),w=u("ayMG0");let k=["onEntering"],S=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],C=["slotProps"];function A(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function E(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function _(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function T(e){return"function"==typeof e?e():e}let P=e=>{let{classes:t}=e;return(0,s.default)({root:["root"],paper:["paper"]},y.getPopoverUtilityClass,t)},O=(0,d.default)(b.default,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),M=(0,d.default)(x.default,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0});var I=/*#__PURE__*/a.forwardRef(function(e,t){var r,s,u;let d=(0,h.useDefaultProps)({props:e,name:"MuiPopover"}),{action:b,anchorEl:x,anchorOrigin:y={vertical:"top",horizontal:"left"},anchorPosition:I,anchorReference:L="anchorEl",children:R,className:N,container:z,elevation:D=8,marginThreshold:F=16,open:B,PaperProps:W={},slots:H,slotProps:X,transformOrigin:Y={vertical:"top",horizontal:"left"},TransitionComponent:U=v.default,transitionDuration:V="auto",TransitionProps:{onEntering:G}={},disableScrollLock:$=!1}=d,q=(0,i.default)(d.TransitionProps,k),Z=(0,i.default)(d,S),K=null!=(r=null==X?void 0:X.paper)?r:W,Q=a.useRef(),J=(0,m.default)(Q,K.ref),ee=(0,n.default)({},d,{anchorOrigin:y,anchorReference:L,elevation:D,marginThreshold:F,externalPaperSlotProps:K,transformOrigin:Y,TransitionComponent:U,transitionDuration:V,TransitionProps:q}),et=P(ee),er=a.useCallback(()=>{if("anchorPosition"===L)return I;let e=T(x),t=(e&&1===e.nodeType?e:(0,p.default)(Q.current).body).getBoundingClientRect();return{top:t.top+A(t,y.vertical),left:t.left+E(t,y.horizontal)}},[x,y.horizontal,y.vertical,I,L]),en=a.useCallback(e=>({vertical:A(e,Y.vertical),horizontal:E(e,Y.horizontal)}),[Y.horizontal,Y.vertical]),ei=a.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},r=en(t);if("none"===L)return{top:null,left:null,transformOrigin:_(r)};let n=er(),i=n.top-r.vertical,a=n.left-r.horizontal,o=i+t.height,s=a+t.width,l=(0,g.default)(T(x)),u=l.innerHeight-F,c=l.innerWidth-F;if(null!==F&&i<F){let e=i-F;i-=e,r.vertical+=e}else if(null!==F&&o>u){let e=o-u;i-=e,r.vertical+=e}if(null!==F&&a<F){let e=a-F;a-=e,r.horizontal+=e}else if(s>c){let e=s-c;a-=e,r.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:_(r)}},[x,L,er,en,F]),[ea,eo]=a.useState(B),es=a.useCallback(()=>{let e=Q.current;if(!e)return;let t=ei(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,eo(!0)},[ei]);a.useEffect(()=>($&&window.addEventListener("scroll",es),()=>window.removeEventListener("scroll",es)),[x,$,es]),a.useEffect(()=>{B&&es()}),a.useImperativeHandle(b,()=>B?{updatePosition:()=>{es()}}:null,[B,es]),a.useEffect(()=>{if(!B)return;let e=(0,f.default)(()=>{es()}),t=(0,g.default)(x);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[x,B,es]);let el=V;"auto"!==V||U.muiSupportAuto||(el=void 0);let eu=z||(x?(0,p.default)(T(x)).body:void 0),ec=null!=(s=null==H?void 0:H.root)?s:O,ed=null!=(u=null==H?void 0:H.paper)?u:M,eh=(0,l.default)({elementType:ed,externalSlotProps:(0,n.default)({},K,{style:ea?K.style:(0,n.default)({},K.style,{opacity:0})}),additionalProps:{elevation:D,ref:J},ownerState:ee,className:(0,o.default)(et.paper,null==K?void 0:K.className)}),ef=(0,l.default)({elementType:ec,externalSlotProps:(null==X?void 0:X.root)||{},externalForwardedProps:Z,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:eu,open:B},ownerState:ee,className:(0,o.default)(et.root,N)}),{slotProps:ep}=ef,eg=(0,i.default)(ef,C);return/*#__PURE__*/(0,w.jsx)(ec,(0,n.default)({},eg,!(0,c.default)(ec)&&{slotProps:ep,disableScrollLock:$},{children:/*#__PURE__*/(0,w.jsx)(U,(0,n.default)({appear:!0,in:B,onEntering:(e,t)=>{G&&G(e,t),es()},onExited:()=>{eo(!1)},timeout:el},q,{children:/*#__PURE__*/(0,w.jsx)(ed,(0,n.default)({},eh,{children:R}))}))}))})}),c("1iGrQ",function(e,t){r(e.exports,"default",()=>n);var n=u("aJ8G8").default}),c("aJ8G8",function(e,t){r(e.exports,"default",()=>n);function n(e,t=166){let r;function i(...n){clearTimeout(r),r=setTimeout(()=>{e.apply(this,n)},t)}return i.clear=()=>{clearTimeout(r)},i}}),c("9Evvr",function(e,t){r(e.exports,"default",()=>n);var n=u("9KvVX").default}),c("9KvVX",function(e,t){r(e.exports,"default",()=>i);var n=u("6zeBo");function i(e){return(0,n.default)(e).defaultView||window}}),c("iscuz",function(e,t){r(e.exports,"default",()=>x);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("lHOu3"),s=u("2xc7G"),l=u("1mPeS"),c=u("14H9o"),d=u("hweuE"),h=u("9Rgf1"),f=u("ayMG0");let p=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function g(e){return`scale(${e}, ${e**2})`}let m={entering:{opacity:1,transform:g(1)},entered:{opacity:1,transform:"none"}},v="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),b=/*#__PURE__*/a.forwardRef(function(e,t){let{addEndListener:r,appear:u=!0,children:b,easing:x,in:y,onEnter:w,onEntered:k,onEntering:S,onExit:C,onExited:A,onExiting:E,style:_,timeout:T="auto",TransitionComponent:P=l.default}=e,O=(0,i.default)(e,p),M=(0,o.default)(),I=a.useRef(),L=(0,c.default)(),R=a.useRef(null),N=(0,h.default)(R,(0,s.default)(b),t),z=e=>t=>{if(e){let r=R.current;void 0===t?e(r):e(r,t)}},D=z(S),F=z((e,t)=>{let r;(0,d.reflow)(e);let{duration:n,delay:i,easing:a}=(0,d.getTransitionProps)({style:_,timeout:T,easing:x},{mode:"enter"});"auto"===T?(r=L.transitions.getAutoHeightDuration(e.clientHeight),I.current=r):r=n,e.style.transition=[L.transitions.create("opacity",{duration:r,delay:i}),L.transitions.create("transform",{duration:v?r:.666*r,delay:i,easing:a})].join(","),w&&w(e,t)}),B=z(k),W=z(E),H=z(e=>{let t;let{duration:r,delay:n,easing:i}=(0,d.getTransitionProps)({style:_,timeout:T,easing:x},{mode:"exit"});"auto"===T?(t=L.transitions.getAutoHeightDuration(e.clientHeight),I.current=t):t=r,e.style.transition=[L.transitions.create("opacity",{duration:t,delay:n}),L.transitions.create("transform",{duration:v?t:.666*t,delay:v?n:n||.333*t,easing:i})].join(","),e.style.opacity=0,e.style.transform=g(.75),C&&C(e)}),X=z(A);return/*#__PURE__*/(0,f.jsx)(P,(0,n.default)({appear:u,in:y,nodeRef:R,onEnter:F,onEntered:B,onEntering:D,onExit:H,onExited:X,onExiting:W,addEndListener:e=>{"auto"===T&&M.start(I.current||0,e),r&&r(R.current,e)},timeout:"auto"===T?null:T},O,{children:(e,t)=>/*#__PURE__*/a.cloneElement(b,(0,n.default)({style:(0,n.default)({opacity:0,transform:g(.75),visibility:"exited"!==e||y?void 0:"hidden"},m[e],_,b.props.style),ref:N},t))}))});b.muiSupportAuto=!0;var x=b}),c("2xc7G",function(e,t){r(e.exports,"default",()=>i);var n=u("acw62");function i(e){if(parseInt(n.version,10)>=19){var t;return(null==e||null==(t=e.props)?void 0:t.ref)||null}return(null==e?void 0:e.ref)||null}}),c("1mPeS",function(e,t){r(e.exports,"default",()=>x);var n=u("1En50"),i=u("g7ajw"),a=u("acw62"),s=u("1u0KT"),l=u("dIte2"),c=u("6xlZQ"),d=u("4NYRH"),h="unmounted",f="exited",p="entering",g="entered",m="exiting",v=/*#__PURE__*/function(e){function t(t,r){n=e.call(this,t,r)||this;var n,i,a=r&&!r.isMounting?t.enter:t.appear;return n.appearStatus=null,t.in?a?(i=f,n.appearStatus=p):i=g:i=t.unmountOnExit||t.mountOnEnter?h:f,n.state={status:i},n.nextCallback=null,n}(0,i.default)(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===h?{status:f}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var r=this.state.status;this.props.in?r!==p&&r!==g&&(t=p):(r===p||r===g)&&(t=m)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,r,n=this.props.timeout;return e=t=r=n,null!=n&&"number"!=typeof n&&(e=n.exit,t=n.enter,r=void 0!==n.appear?n.appear:t),{exit:e,enter:t,appear:r}},r.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){if(this.cancelNextCallback(),t===p){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:/*@__PURE__*/o(s).findDOMNode(this);r&&(0,d.forceReflow)(r)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===f&&this.setState({status:h})},r.performEnter=function(e){var t=this,r=this.props.enter,n=this.context?this.context.isMounting:e,i=this.props.nodeRef?[n]:[/*@__PURE__*/o(s).findDOMNode(this),n],a=i[0],u=i[1],c=this.getTimeouts(),d=n?c.appear:c.enter;if(!e&&!r||l.default.disabled){this.safeSetState({status:g},function(){t.props.onEntered(a)});return}this.props.onEnter(a,u),this.safeSetState({status:p},function(){t.props.onEntering(a,u),t.onTransitionEnd(d,function(){t.safeSetState({status:g},function(){t.props.onEntered(a,u)})})})},r.performExit=function(){var e=this,t=this.props.exit,r=this.getTimeouts(),n=this.props.nodeRef?void 0:/*@__PURE__*/o(s).findDOMNode(this);if(!t||l.default.disabled){this.safeSetState({status:f},function(){e.props.onExited(n)});return}this.props.onExit(n),this.safeSetState({status:m},function(){e.props.onExiting(n),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:f},function(){e.props.onExited(n)})})})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,r=!0;return this.nextCallback=function(n){r&&(r=!1,t.nextCallback=null,e(n))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},r.onTransitionEnd=function(e,t){this.setNextCallback(t);var r=this.props.nodeRef?this.props.nodeRef.current:/*@__PURE__*/o(s).findDOMNode(this),n=null==e&&!this.props.addEndListener;if(!r||n){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],a=i[0],l=i[1];this.props.addEndListener(a,l)}null!=e&&setTimeout(this.nextCallback,e)},r.render=function(){var e=this.state.status;if(e===h)return null;var t=this.props,r=t.children,i=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,(0,n.default)(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return /*#__PURE__*//*@__PURE__*/o(a).createElement(c.default.Provider,{value:null},"function"==typeof r?r(e,i):/*@__PURE__*/o(a).cloneElement(/*@__PURE__*/o(a).Children.only(r),i))},t}(/*@__PURE__*/o(a).Component);function b(){}v.contextType=c.default,v.propTypes={},v.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:b,onEntering:b,onEntered:b,onExit:b,onExiting:b,onExited:b},v.UNMOUNTED=h,v.EXITED=f,v.ENTERING=p,v.ENTERED=g,v.EXITING=m;var x=v}),c("1u0KT",function(e,t){(function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}})(),e.exports=u("Xw6Mv")}),c("dIte2",function(e,t){r(e.exports,"default",()=>n);var n={disabled:!1}}),c("4NYRH",function(e,t){r(e.exports,"forceReflow",()=>n);var n=function(e){return e.scrollTop}}),c("14H9o",function(e,t){r(e.exports,"default",()=>o),u("acw62");var n=u("7HKeb"),i=u("jR9F1"),a=u("4jPsi");function o(){let e=(0,n.default)(i.default);return e[a.default]||e}}),c("hweuE",function(e,t){r(e.exports,"reflow",()=>n),r(e.exports,"getTransitionProps",()=>i);let n=e=>e.scrollTop;function i(e,t){var r,n;let{timeout:i,easing:a,style:o={}}=e;return{duration:null!=(r=o.transitionDuration)?r:"number"==typeof i?i:i[t.mode]||0,easing:null!=(n=o.transitionTimingFunction)?n:"object"==typeof a?a[t.mode]:a,delay:o.transitionDelay}}}),c("118QM",function(e,t){r(e.exports,"default",()=>k);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("eD6Co"),c=u("kRwxQ"),d=u("2Q995"),h=u("d8seH"),f=u("1iOpW"),p=u("6cr7d"),g=u("lkowv"),m=u("16KGQ"),v=u("ayMG0");let b=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],x=e=>{let{open:t,exited:r,classes:n}=e;return(0,s.default)({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},m.getModalUtilityClass,n)},y=(0,h.default)("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>(0,i.default)({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),w=(0,h.default)(p.default,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1});var k=/*#__PURE__*/a.forwardRef(function(e,t){var r,s,u,h,p,m;let k=(0,f.useDefaultProps)({name:"MuiModal",props:e}),{BackdropComponent:S=w,BackdropProps:C,className:A,closeAfterTransition:E=!1,children:_,container:T,component:P,components:O={},componentsProps:M={},disableAutoFocus:I=!1,disableEnforceFocus:L=!1,disableEscapeKeyDown:R=!1,disablePortal:N=!1,disableRestoreFocus:z=!1,disableScrollLock:D=!1,hideBackdrop:F=!1,keepMounted:B=!1,onBackdropClick:W,open:H,slotProps:X,slots:Y}=k,U=(0,n.default)(k,b),V=(0,i.default)({},k,{closeAfterTransition:E,disableAutoFocus:I,disableEnforceFocus:L,disableEscapeKeyDown:R,disablePortal:N,disableRestoreFocus:z,disableScrollLock:D,hideBackdrop:F,keepMounted:B}),{getRootProps:G,getBackdropProps:$,getTransitionProps:q,portalRef:Z,isTopModal:K,exited:Q,hasTransition:J}=(0,g.default)((0,i.default)({},V,{rootRef:t})),ee=(0,i.default)({},V,{exited:Q}),et=x(ee),er={};if(void 0===_.props.tabIndex&&(er.tabIndex="-1"),J){let{onEnter:e,onExited:t}=q();er.onEnter=e,er.onExited=t}let en=null!=(r=null!=(s=null==Y?void 0:Y.root)?s:O.Root)?r:y,ei=null!=(u=null!=(h=null==Y?void 0:Y.backdrop)?h:O.Backdrop)?u:S,ea=null!=(p=null==X?void 0:X.root)?p:M.root,eo=null!=(m=null==X?void 0:X.backdrop)?m:M.backdrop,es=(0,l.default)({elementType:en,externalSlotProps:ea,externalForwardedProps:U,getSlotProps:G,additionalProps:{ref:t,as:P},ownerState:ee,className:(0,o.default)(A,null==ea?void 0:ea.className,null==et?void 0:et.root,!ee.open&&ee.exited&&(null==et?void 0:et.hidden))}),el=(0,l.default)({elementType:ei,externalSlotProps:eo,additionalProps:C,getSlotProps:e=>$((0,i.default)({},e,{onClick:t=>{W&&W(t),null!=e&&e.onClick&&e.onClick(t)}})),className:(0,o.default)(null==eo?void 0:eo.className,null==C?void 0:C.className,null==et?void 0:et.backdrop),ownerState:ee});return B||H||J&&!Q?/*#__PURE__*/(0,v.jsx)(d.default,{ref:Z,container:T,disablePortal:N,children:/*#__PURE__*/(0,v.jsxs)(en,(0,i.default)({},es,{children:[!F&&S?/*#__PURE__*/(0,v.jsx)(ei,(0,i.default)({},el)):null,/*#__PURE__*/(0,v.jsx)(c.default,{disableEnforceFocus:L,disableAutoFocus:I,disableRestoreFocus:z,isEnabled:K,open:H,children:/*#__PURE__*/a.cloneElement(_,er)})]}))}):null})}),c("kRwxQ",function(e,t){r(e.exports,"default",()=>d);var n=u("acw62"),i=u("2xc7G"),a=u("6zeBo"),o=u("3qSdM"),s=u("ayMG0");function l(e){let t=[],r=[];return Array.from(e.querySelectorAll('input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])')).forEach((e,n)=>{let i=function(e){let t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1===i||e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e)||(0===i?t.push(e):r.push({documentOrder:n,tabIndex:i,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function c(){return!0}var d=function(e){let{children:t,disableAutoFocus:r=!1,disableEnforceFocus:u=!1,disableRestoreFocus:d=!1,getTabbable:h=l,isEnabled:f=c,open:p}=e,g=n.useRef(!1),m=n.useRef(null),v=n.useRef(null),b=n.useRef(null),x=n.useRef(null),y=n.useRef(!1),w=n.useRef(null),k=(0,o.default)((0,i.default)(t),w),S=n.useRef(null);n.useEffect(()=>{p&&w.current&&(y.current=!r)},[r,p]),n.useEffect(()=>{if(!p||!w.current)return;let e=(0,a.default)(w.current);return!w.current.contains(e.activeElement)&&(w.current.hasAttribute("tabIndex")||w.current.setAttribute("tabIndex","-1"),y.current&&w.current.focus()),()=>{d||(b.current&&b.current.focus&&(g.current=!0,b.current.focus()),b.current=null)}},[p]),n.useEffect(()=>{if(!p||!w.current)return;let e=(0,a.default)(w.current),t=t=>{S.current=t,!u&&f()&&"Tab"===t.key&&e.activeElement===w.current&&t.shiftKey&&(g.current=!0,v.current&&v.current.focus())},r=()=>{let t=w.current;if(null===t)return;if(!e.hasFocus()||!f()||g.current){g.current=!1;return}if(t.contains(e.activeElement)||u&&e.activeElement!==m.current&&e.activeElement!==v.current)return;if(e.activeElement!==x.current)x.current=null;else if(null!==x.current)return;if(!y.current)return;let r=[];if((e.activeElement===m.current||e.activeElement===v.current)&&(r=h(w.current)),r.length>0){var n,i;let e=!!((null==(n=S.current)?void 0:n.shiftKey)&&(null==(i=S.current)?void 0:i.key)==="Tab"),t=r[0],a=r[r.length-1];"string"!=typeof t&&"string"!=typeof a&&(e?a.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);let n=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(n),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,u,d,f,p,h]);let C=e=>{null===b.current&&(b.current=e.relatedTarget),y.current=!0};return/*#__PURE__*/(0,s.jsxs)(n.Fragment,{children:[/*#__PURE__*/(0,s.jsx)("div",{tabIndex:p?0:-1,onFocus:C,ref:m,"data-testid":"sentinelStart"}),/*#__PURE__*/n.cloneElement(t,{ref:k,onFocus:e=>{null===b.current&&(b.current=e.relatedTarget),y.current=!0,x.current=e.target;let r=t.props.onFocus;r&&r(e)}}),/*#__PURE__*/(0,s.jsx)("div",{tabIndex:p?0:-1,onFocus:C,ref:v,"data-testid":"sentinelEnd"})]})}}),c("2Q995",function(e,t){r(e.exports,"default",()=>d);var n=u("acw62"),i=u("1u0KT"),a=u("2xc7G"),o=u("hervl"),s=u("eEJPp"),l=u("3qSdM"),c=u("ayMG0"),d=/*#__PURE__*/n.forwardRef(function(e,t){let{children:r,container:u,disablePortal:d=!1}=e,[h,f]=n.useState(null),p=(0,l.default)(/*#__PURE__*/n.isValidElement(r)?(0,a.default)(r):null,t);return((0,s.default)(()=>{!d&&f(("function"==typeof u?u():u)||document.body)},[u,d]),(0,s.default)(()=>{if(h&&!d)return(0,o.default)(t,h),()=>{(0,o.default)(t,null)}},[t,h,d]),d)?/*#__PURE__*/n.isValidElement(r)?/*#__PURE__*/n.cloneElement(r,{ref:p}):/*#__PURE__*/(0,c.jsx)(n.Fragment,{children:r}):/*#__PURE__*/(0,c.jsx)(n.Fragment,{children:h?/*#__PURE__*/i.createPortal(r,h):h})})}),c("6cr7d",function(e,t){r(e.exports,"default",()=>v);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("d8seH"),c=u("1iOpW"),d=u("86f4a"),h=u("7ViEK"),f=u("ayMG0");let p=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g=e=>{let{classes:t,invisible:r}=e;return(0,s.default)({root:["root",r&&"invisible"]},h.getBackdropUtilityClass,t)},m=(0,l.default)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>(0,i.default)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"}));var v=/*#__PURE__*/a.forwardRef(function(e,t){var r,a,s;let l=(0,c.useDefaultProps)({props:e,name:"MuiBackdrop"}),{children:u,className:h,component:v="div",components:b={},componentsProps:x={},invisible:y=!1,open:w,slotProps:k={},slots:S={},TransitionComponent:C=d.default,transitionDuration:A}=l,E=(0,n.default)(l,p),_=(0,i.default)({},l,{component:v,invisible:y}),T=g(_),P=null!=(r=k.root)?r:x.root;return/*#__PURE__*/(0,f.jsx)(C,(0,i.default)({in:w,timeout:A},E,{children:/*#__PURE__*/(0,f.jsx)(m,(0,i.default)({"aria-hidden":!0},P,{as:null!=(a=null!=(s=S.root)?s:b.Root)?a:v,className:(0,o.default)(T.root,h,null==P?void 0:P.className),ownerState:(0,i.default)({},_,null==P?void 0:P.ownerState),classes:T,ref:t,children:u}))}))})}),c("86f4a",function(e,t){r(e.exports,"default",()=>g);var n=u("8nd05"),i=u("1En50"),a=u("acw62"),o=u("1mPeS"),s=u("2xc7G"),l=u("14H9o"),c=u("hweuE"),d=u("9Rgf1"),h=u("ayMG0");let f=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],p={entering:{opacity:1},entered:{opacity:1}};var g=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,l.default)(),u={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:g,appear:m=!0,children:v,easing:b,in:x,onEnter:y,onEntered:w,onEntering:k,onExit:S,onExited:C,onExiting:A,style:E,timeout:_=u,TransitionComponent:T=o.default}=e,P=(0,i.default)(e,f),O=a.useRef(null),M=(0,d.default)(O,(0,s.default)(v),t),I=e=>t=>{if(e){let r=O.current;void 0===t?e(r):e(r,t)}},L=I(k),R=I((e,t)=>{(0,c.reflow)(e);let n=(0,c.getTransitionProps)({style:E,timeout:_,easing:b},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),y&&y(e,t)}),N=I(w),z=I(A),D=I(e=>{let t=(0,c.getTransitionProps)({style:E,timeout:_,easing:b},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),S&&S(e)}),F=I(C);return/*#__PURE__*/(0,h.jsx)(T,(0,n.default)({appear:m,in:x,nodeRef:O,onEnter:R,onEntered:N,onEntering:L,onExit:D,onExited:F,onExiting:z,addEndListener:e=>{g&&g(O.current,e)},timeout:_},P,{children:(e,t)=>/*#__PURE__*/a.cloneElement(v,(0,n.default)({style:(0,n.default)({opacity:0,visibility:"exited"!==e||x?void 0:"hidden"},p[e],E,v.props.style),ref:M},t))}))})}),c("7ViEK",function(e,t){r(e.exports,"getBackdropUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiBackdrop",e)}(0,n.default)("MuiBackdrop",["root","invisible"])}),c("lkowv",function(e,t){r(e.exports,"default",()=>f);var n=u("8nd05"),i=u("acw62"),a=u("hPGQj"),o=u("6zeBo"),s=u("13KXh"),l=u("3qSdM"),c=u("f56pe"),d=u("75CP6");let h=new d.ModalManager;var f=function(e){let{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:u=!1,manager:f=h,closeAfterTransition:p=!1,onTransitionEnter:g,onTransitionExited:m,children:v,onClose:b,open:x,rootRef:y}=e,w=i.useRef({}),k=i.useRef(null),S=i.useRef(null),C=(0,l.default)(S,y),[A,E]=i.useState(!x),_=!!v&&v.props.hasOwnProperty("in"),T=!0;("false"===e["aria-hidden"]||!1===e["aria-hidden"])&&(T=!1);let P=()=>(0,o.default)(k.current),O=()=>(w.current.modalRef=S.current,w.current.mount=k.current,w.current),M=()=>{f.mount(O(),{disableScrollLock:u}),S.current&&(S.current.scrollTop=0)},I=(0,s.default)(()=>{let e=("function"==typeof t?t():t)||P().body;f.add(O(),e),S.current&&M()}),L=i.useCallback(()=>f.isTopModal(O()),[f]),R=(0,s.default)(e=>{k.current=e,e&&(x&&L()?M():S.current&&(0,d.ariaHidden)(S.current,T))}),N=i.useCallback(()=>{f.remove(O(),T)},[T,f]);i.useEffect(()=>()=>{N()},[N]),i.useEffect(()=>{x?I():_&&p||N()},[x,N,_,p,I]);let z=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&L()&&!r&&(t.stopPropagation(),b&&b(t,"escapeKeyDown"))},D=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&b&&b(t,"backdropClick")};return{getRootProps:(t={})=>{let r=(0,c.default)(e);delete r.onTransitionEnter,delete r.onTransitionExited;let i=(0,n.default)({},r,t);return(0,n.default)({role:"presentation"},i,{onKeyDown:z(i),ref:C})},getBackdropProps:(e={})=>(0,n.default)({"aria-hidden":!0},e,{onClick:D(e),open:x}),getTransitionProps:()=>({onEnter:(0,a.default)(()=>{E(!1),g&&g()},null==v?void 0:v.props.onEnter),onExited:(0,a.default)(()=>{E(!0),m&&m(),p&&N()},null==v?void 0:v.props.onExited)}),rootRef:C,portalRef:R,isTopModal:L,exited:A,hasTransition:_}}}),c("hPGQj",function(e,t){r(e.exports,"default",()=>n);function n(...e){return e.reduce((e,t)=>null==t?e:function(...r){e.apply(this,r),t.apply(this,r)},()=>{})}}),c("75CP6",function(e,t){r(e.exports,"ariaHidden",()=>o),r(e.exports,"ModalManager",()=>d);var n=u("aF4kJ"),i=u("6zeBo"),a=u("9KvVX");function o(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s(e){return parseInt((0,a.default)(e).getComputedStyle(e).paddingRight,10)||0}function l(e,t,r,n,i){let a=[t,r,...n];[].forEach.call(e.children,e=>{let t=-1===a.indexOf(e),r=!function(e){let t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&o(e,i)})}function c(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}class d{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&o(e.modalRef,!1);let n=function(e){let t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);l(t,e.mount,e.modalRef,n,!0);let i=c(this.containers,e=>e.container===t);return -1!==i?this.containers[i].modals.push(e):this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r}mount(e,t){let r=c(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[r];o.restore||(o.restore=function(e,t){let r=[],o=e.container;if(!t.disableScrollLock){let e;if(function(e){let t=(0,i.default)(e);return t.body===e?(0,a.default)(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(o)){let e=(0,n.default)((0,i.default)(o));r.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${s(o)+e}px`;let t=(0,i.default)(o).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s(t)+e}px`})}if(o.parentNode instanceof DocumentFragment)e=(0,i.default)(o).body;else{let t=o.parentElement,r=(0,a.default)(o);e=(null==t?void 0:t.nodeName)==="HTML"&&"scroll"===r.getComputedStyle(t).overflowY?t:o}r.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}(o,t))}remove(e,t=!0){let r=this.modals.indexOf(e);if(-1===r)return r;let n=c(this.containers,t=>-1!==t.modals.indexOf(e)),i=this.containers[n];if(i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(r,1),0===i.modals.length)i.restore&&i.restore(),e.modalRef&&o(e.modalRef,t),l(i.container,e.mount,e.modalRef,i.hiddenSiblings,!1),this.containers.splice(n,1);else{let e=i.modals[i.modals.length-1];e.modalRef&&o(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}}}),c("16KGQ",function(e,t){r(e.exports,"getModalUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiModal",e)}(0,n.default)("MuiModal",["root","hidden","backdrop"])}),c("7Frhn",function(e,t){r(e.exports,"default",()=>b);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("d8seH"),d=u("35vyj"),h=u("1iOpW"),f=u("6LfkK"),p=u("ayMG0");let g=["className","component","elevation","square","variant"],m=e=>{let{square:t,elevation:r,variant:n,classes:i}=e,a={root:["root",n,!t&&"rounded","elevation"===n&&`elevation${r}`]};return(0,s.default)(a,f.getPaperUtilityClass,i)},v=(0,c.default)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,"elevation"===r.variant&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return(0,i.default)({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&(0,i.default)({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${(0,l.alpha)("#fff",(0,d.default)(t.elevation))}, ${(0,l.alpha)("#fff",(0,d.default)(t.elevation))})`},e.vars&&{backgroundImage:null==(r=e.vars.overlays)?void 0:r[t.elevation]}))});var b=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,h.useDefaultProps)({props:e,name:"MuiPaper"}),{className:a,component:s="div",elevation:l=1,square:u=!1,variant:c="elevation"}=r,d=(0,n.default)(r,g),f=(0,i.default)({},r,{component:s,elevation:l,square:u,variant:c}),b=m(f);return/*#__PURE__*/(0,p.jsx)(v,(0,i.default)({as:s,ownerState:f,className:(0,o.default)(b.root,a),ref:t},d))})}),c("35vyj",function(e,t){r(e.exports,"default",()=>n);var n=e=>((e<1?5.11916*e**2:4.5*Math.log(e+1)+2)/100).toFixed(2)}),c("6LfkK",function(e,t){r(e.exports,"getPaperUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiPaper",e)}(0,n.default)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"])}),c("k6uEG",function(e,t){r(e.exports,"getPopoverUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiPopover",e)}(0,n.default)("MuiPopover",["root","paper"])}),c("lyHsQ",function(e,t){i(e.exports),r(e.exports,"getMenuUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiMenu",e)}var s=(0,n.default)("MuiMenu",["root","paper","list"])}),c("iZ4W7",function(e,t){i(e.exports),r(e.exports,"default",()=>u("2iAqv").default),r(e.exports,"menuItemClasses",()=>u("eWb0W").default),u("2iAqv");var n=u("eWb0W");a(e.exports,n)}),c("2iAqv",function(e,t){r(e.exports,"default",()=>A);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("kSnzZ"),c=u("d8seH"),d=u("8Uq77"),h=u("1iOpW"),f=u("3W6ht"),p=u("6n0Ko"),g=u("khjmj"),m=u("9Rgf1"),v=u("cbVYE"),b=u("doXfV"),x=u("guz4p"),y=u("eWb0W"),w=u("ayMG0");let k=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],S=e=>{let{disabled:t,dense:r,divider:n,disableGutters:a,selected:o,classes:l}=e,u=(0,s.default)({root:["root",r&&"dense",t&&"disabled",!a&&"gutters",n&&"divider",o&&"selected"]},y.getMenuItemUtilityClass,l);return(0,i.default)({},l,u)},C=(0,c.default)(p.default,{shouldForwardProp:e=>(0,d.default)(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>(0,i.default)({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${y.default.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${y.default.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${y.default.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,l.alpha)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${y.default.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${y.default.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${v.default.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${v.default.inset}`]:{marginLeft:52},[`& .${x.default.root}`]:{marginTop:0,marginBottom:0},[`& .${x.default.inset}`]:{paddingLeft:36},[`& .${b.default.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&(0,i.default)({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${b.default.root} svg`]:{fontSize:"1.25rem"}})));var A=/*#__PURE__*/a.forwardRef(function(e,t){let r;let s=(0,h.useDefaultProps)({props:e,name:"MuiMenuItem"}),{autoFocus:l=!1,component:u="li",dense:c=!1,divider:d=!1,disableGutters:p=!1,focusVisibleClassName:v,role:b="menuitem",tabIndex:x,className:y}=s,A=(0,n.default)(s,k),E=a.useContext(f.default),_=a.useMemo(()=>({dense:c||E.dense||!1,disableGutters:p}),[E.dense,c,p]),T=a.useRef(null);(0,g.default)(()=>{l&&T.current&&T.current.focus()},[l]);let P=(0,i.default)({},s,{dense:_.dense,divider:d,disableGutters:p}),O=S(s),M=(0,m.default)(T,t);return s.disabled||(r=void 0!==x?x:-1),/*#__PURE__*/(0,w.jsx)(f.default.Provider,{value:_,children:/*#__PURE__*/(0,w.jsx)(C,(0,i.default)({ref:M,role:b,tabIndex:r,component:u,focusVisibleClassName:(0,o.default)(O.focusVisible,v),className:(0,o.default)(O.root,y)},A,{ownerState:P,classes:O}))})})}),c("cbVYE",function(e,t){r(e.exports,"default",()=>i);var n=u("beCSm");u("4Cod0");var i=(0,n.default)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"])}),c("doXfV",function(e,t){i(e.exports),r(e.exports,"getListItemIconUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiListItemIcon",e)}var s=(0,n.default)("MuiListItemIcon",["root","alignItemsFlexStart"])}),c("guz4p",function(e,t){i(e.exports),r(e.exports,"getListItemTextUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiListItemText",e)}var s=(0,n.default)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"])}),c("eWb0W",function(e,t){i(e.exports),r(e.exports,"getMenuItemUtilityClass",()=>o),r(e.exports,"default",()=>s);var n=u("beCSm"),a=u("4Cod0");function o(e){return(0,a.default)("MuiMenuItem",e)}var s=(0,n.default)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"])}),c("2fe4K",function(e,t){i(e.exports),r(e.exports,"default",()=>u("bjZRT").default),r(e.exports,"listItemIconClasses",()=>u("doXfV").default),u("bjZRT");var n=u("doXfV");a(e.exports,n)}),c("bjZRT",function(e,t){r(e.exports,"default",()=>v);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("d8seH"),c=u("1iOpW"),d=u("doXfV"),h=u("3W6ht"),f=u("ayMG0");let p=["className"],g=e=>{let{alignItems:t,classes:r}=e;return(0,s.default)({root:["root","flex-start"===t&&"alignItemsFlexStart"]},d.getListItemIconUtilityClass,r)},m=(0,l.default)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>(0,i.default)({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}));var v=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,c.useDefaultProps)({props:e,name:"MuiListItemIcon"}),{className:s}=r,l=(0,n.default)(r,p),u=a.useContext(h.default),d=(0,i.default)({},r,{alignItems:u.alignItems}),v=g(d);return/*#__PURE__*/(0,f.jsx)(m,(0,i.default)({className:(0,o.default)(v.root,s),ownerState:d,ref:t},l))})}),c("djLZl",function(e,t){i(e.exports),r(e.exports,"default",()=>u("19ocJ").default),r(e.exports,"listItemTextClasses",()=>u("guz4p").default),u("19ocJ");var n=u("guz4p");a(e.exports,n)}),c("19ocJ",function(e,t){r(e.exports,"default",()=>b);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("8Indx"),l=u("3bYfT"),c=u("3W6ht"),d=u("1iOpW"),h=u("d8seH"),f=u("guz4p"),p=u("ayMG0");let g=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],m=e=>{let{classes:t,inset:r,primary:n,secondary:i,dense:a}=e;return(0,s.default)({root:["root",r&&"inset",a&&"dense",n&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},f.getListItemTextUtilityClass,t)},v=(0,h.default)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[{[`& .${f.default.primary}`]:t.primary},{[`& .${f.default.secondary}`]:t.secondary},t.root,r.inset&&t.inset,r.primary&&r.secondary&&t.multiline,r.dense&&t.dense]}})(({ownerState:e})=>(0,i.default)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56}));var b=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiListItemText"}),{children:s,className:u,disableTypography:h=!1,inset:f=!1,primary:b,primaryTypographyProps:x,secondary:y,secondaryTypographyProps:w}=r,k=(0,n.default)(r,g),{dense:S}=a.useContext(c.default),C=null!=b?b:s,A=y,E=(0,i.default)({},r,{disableTypography:h,inset:f,primary:!!C,secondary:!!A,dense:S}),_=m(E);return null==C||C.type===l.default||h||(C=/*#__PURE__*/(0,p.jsx)(l.default,(0,i.default)({variant:S?"body2":"body1",className:_.primary,component:null!=x&&x.variant?void 0:"span",display:"block"},x,{children:C}))),null==A||A.type===l.default||h||(A=/*#__PURE__*/(0,p.jsx)(l.default,(0,i.default)({variant:"body2",className:_.secondary,color:"text.secondary",display:"block"},w,{children:A}))),/*#__PURE__*/(0,p.jsxs)(v,(0,i.default)({className:(0,o.default)(_.root,u),ownerState:E,ref:t},k,{children:[C,A]}))})}),c("3bYfT",function(e,t){r(e.exports,"default",()=>w);var n=u("1En50"),i=u("8nd05"),a=u("acw62"),o=u("9QePP"),s=u("hcz0Q"),l=u("8Indx"),c=u("d8seH"),d=u("1iOpW"),h=u("jTnBY"),f=u("bhKtZ"),p=u("ayMG0");let g=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=e=>{let{align:t,gutterBottom:r,noWrap:n,paragraph:i,variant:a,classes:o}=e,s={root:["root",a,"inherit"!==e.align&&`align${(0,h.default)(t)}`,r&&"gutterBottom",n&&"noWrap",i&&"paragraph"]};return(0,l.default)(s,f.getTypographyUtilityClass,o)},v=(0,c.default)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${(0,h.default)(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>(0,i.default)({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),b={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},x={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},y=e=>x[e]||e;var w=/*#__PURE__*/a.forwardRef(function(e,t){let r=(0,d.useDefaultProps)({props:e,name:"MuiTypography"}),a=y(r.color),l=(0,s.default)((0,i.default)({},r,{color:a})),{align:u="inherit",className:c,component:h,gutterBottom:f=!1,noWrap:x=!1,paragraph:w=!1,variant:k="body1",variantMapping:S=b}=l,C=(0,n.default)(l,g),A=(0,i.default)({},l,{align:u,color:a,className:c,component:h,gutterBottom:f,noWrap:x,paragraph:w,variant:k,variantMapping:S}),E=h||(w?"p":S[k]||b[k])||"span",_=m(A);return/*#__PURE__*/(0,p.jsx)(v,(0,i.default)({as:E,ref:t,ownerState:A,className:(0,o.default)(_.root,c)},C))})}),c("bhKtZ",function(e,t){r(e.exports,"getTypographyUtilityClass",()=>a);var n=u("beCSm"),i=u("4Cod0");function a(e){return(0,i.default)("MuiTypography",e)}(0,n.default)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"])}),c("aqFBk",function(e,t){i(e.exports),r(e.exports,"default",()=>p);var n=u("hPtJY");let a,o,s,l,c=!0;void 0!==n&&({FORCE_COLOR:a,NODE_DISABLE_COLORS:o,NO_COLOR:s,TERM:l}=n.env||{},c=n.stdout&&n.stdout.isTTY);let d={enabled:!o&&null==s&&"dumb"!==l&&(null!=a&&"0"!==a||c),reset:f(0,0),bold:f(1,22),dim:f(2,22),italic:f(3,23),underline:f(4,24),inverse:f(7,27),hidden:f(8,28),strikethrough:f(9,29),black:f(30,39),red:f(31,39),green:f(32,39),yellow:f(33,39),blue:f(34,39),magenta:f(35,39),cyan:f(36,39),white:f(37,39),gray:f(90,39),grey:f(90,39),bgBlack:f(40,49),bgRed:f(41,49),bgGreen:f(42,49),bgYellow:f(43,49),bgBlue:f(44,49),bgMagenta:f(45,49),bgCyan:f(46,49),bgWhite:f(47,49)};function h(e,t){let r=0,n,i="",a="";for(;r<e.length;r++)i+=(n=e[r]).open,a+=n.close,~t.indexOf(n.close)&&(t=t.replace(n.rgx,n.close+n.open));return i+t+a}function f(e,t){let r={open:`\x1b[${e}m`,close:`\x1b[${t}m`,rgx:RegExp(`\\x1b\\[${t}m`,"g")};return function(t){let n;return void 0!==this&&void 0!==this.has?(~this.has.indexOf(e)||(this.has.push(e),this.keys.push(r)),void 0===t?this:d.enabled?h(this.keys,t+""):t+""):void 0===t?((n={has:[e],keys:[r]}).reset=d.reset.bind(n),n.bold=d.bold.bind(n),n.dim=d.dim.bind(n),n.italic=d.italic.bind(n),n.underline=d.underline.bind(n),n.inverse=d.inverse.bind(n),n.hidden=d.hidden.bind(n),n.strikethrough=d.strikethrough.bind(n),n.black=d.black.bind(n),n.red=d.red.bind(n),n.green=d.green.bind(n),n.yellow=d.yellow.bind(n),n.blue=d.blue.bind(n),n.magenta=d.magenta.bind(n),n.cyan=d.cyan.bind(n),n.white=d.white.bind(n),n.gray=d.gray.bind(n),n.grey=d.grey.bind(n),n.bgBlack=d.bgBlack.bind(n),n.bgRed=d.bgRed.bind(n),n.bgGreen=d.bgGreen.bind(n),n.bgYellow=d.bgYellow.bind(n),n.bgBlue=d.bgBlue.bind(n),n.bgMagenta=d.bgMagenta.bind(n),n.bgCyan=d.bgCyan.bind(n),n.bgWhite=d.bgWhite.bind(n),n):d.enabled?h([r],t+""):t+""}}var p=d}),c("hPtJY",function(e,t){var r,n,i,a=e.exports={};function o(){throw Error("setTimeout has not been defined")}function s(){throw Error("clearTimeout has not been defined")}function l(e){if(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:o}catch(e){r=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u=[],c=!1,d=-1;function h(){c&&i&&(c=!1,i.length?u=i.concat(u):d=-1,u.length&&f())}function f(){if(!c){var e=l(h);c=!0;for(var t=u.length;t;){for(i=u,u=[];++d<t;)i&&i[d].run();d=-1,t=u.length}i=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function g(){}a.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];u.push(new p(e,t)),1!==u.length||c||l(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=g,a.addListener=g,a.once=g,a.off=g,a.removeListener=g,a.removeAllListeners=g,a.emit=g,a.prependListener=g,a.prependOnceListener=g,a.listeners=function(e){return[]},a.binding=function(e){throw Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw Error("process.chdir is not supported")},a.umask=function(){return 0}});var d=u("ayMG0");u("acw62");var h=u("1u0KT"),d=u("ayMG0");u("acw62");var f={};Object.defineProperty(f,"__esModule",{value:!0}),f.Chart=f.setThemeAtRandom=f.getThemeColorPalette=f.Button=f.PageBackground=f.ReporterView=f.IterationsReporterView=void 0;var p={},g=p&&p.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),m=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),v=p&&p.__importStar||(oB=function(e){return(oB=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oB(e),n=0;n<r.length;n++)"default"!==r[n]&&g(t,e,r[n]);return m(t,e),t}),b=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(p,"__esModule",{value:!0}),p.ReporterView=p.IterationsReporterView=void 0;const x=v(u("acw62"));var y=u("eBeAh"),w={},k=w&&w.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(w,"__esModule",{value:!0}),w.CPUReport=w.getNumberOfThreads=void 0;const S=k(u("acw62"));var y=u("eBeAh"),C={},A=C&&C.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(C,"__esModule",{value:!0}),C.ThreadTable=C.ComparativeThreadTable=void 0;const E=A(u("acw62"));var _=u("jHhct"),T=u("f1q41");const P=A(u("gRWcN")),O=[{id:"name",numeric:!1,disablePadding:!0,label:"Thread"},{id:"averageCpuUsage",numeric:!0,disablePadding:!1,label:"Average CPU Usage (%)"},{id:"currentCpuUsage",numeric:!0,disablePadding:!1,label:"Current CPU Usage (%)"}];C.ComparativeThreadTable=({results:e,selectedThreads:t,setSelectedThreads:r})=>{let n=e.map(e=>{let t=e.average.measures;return(0,T.keyBy)((0,_.getAverageCpuUsagePerProcess)(t),e=>e.processName)}),i=(0,T.uniq)(n.reduce((e,t)=>[...e,...Object.keys(t)],[])).map(t=>Object.assign({name:t},e.reduce((e,r,i)=>{var a,o;return Object.assign(Object.assign({},e),{[`${r.name}-${i}`]:(null===(o=null===(a=n[i])||void 0===a?void 0:a[t])||void 0===o?void 0:o.cpuUsage)||0})},{}))),a=[{id:"name",numeric:!1,disablePadding:!0,label:"Thread"},...e.map((e,t)=>({id:`${e.name}-${t}`,label:e.name,numeric:!0,disablePadding:!1}))];return E.default.createElement(P.default,{headCells:a,rows:i,selected:t,setSelected:r})},C.ThreadTable=({measures:e,selectedThreads:t,setSelectedThreads:r})=>{let n=(0,_.getAverageCpuUsagePerProcess)(e),i=(0,T.keyBy)((0,_.getAverageCpuUsagePerProcess)(e.slice(-1)),e=>e.processName),a=n.map(e=>{var t;return{name:e.processName,averageCpuUsage:e.cpuUsage,currentCpuUsage:(null===(t=i[e.processName])||void 0===t?void 0:t.cpuUsage)||0}});return E.default.createElement(P.default,{headCells:O,rows:a,selected:t,setSelected:r})};var M={},I=M&&M.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),L=M&&M.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),R=M&&M.__importStar||(oj=function(e){return(oj=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oj(e),n=0;n<r.length;n++)"default"!==r[n]&&I(t,e,r[n]);return L(t,e),t});Object.defineProperty(M,"__esModule",{value:!0}),M.Collapsible=void 0;const N=R(u("acw62"));var z=u("idOT2");const D=e=>{let[t,r]=(0,N.useState)("COLLAPSED"),n=(0,N.useCallback)(()=>{"COLLAPSED"===t?r("EXPANDING"):"EXPANDED"===t&&r("COLLAPSING")},[t]);return(0,N.useEffect)(()=>{let e;return"EXPANDING"===t?r("EXPANDED"):"COLLAPSING"===t&&(e=setTimeout(()=>r("COLLAPSED"),300)),()=>{clearTimeout(e)}},[t]),{isExpanded:"EXPANDED"===t,showChildren:!e||["EXPANDING","EXPANDED","COLLAPSING"].includes(t),toggleIsExpanded:n}};M.Collapsible=({header:e,className:t,children:r,unmountOnExit:n=!1})=>{var i;let a=(0,N.useRef)(null),{isExpanded:o,showChildren:s,toggleIsExpanded:l}=D(n),u={height:o?null===(i=a.current)||void 0===i?void 0:i.scrollHeight:0};return N.default.createElement("div",{className:`${t} cursor-pointer`,onClick:l},N.default.createElement("div",{className:"flex flex-row w-full items-center"},N.default.createElement("div",{className:"flex-1"},e),N.default.createElement(z.ArrowDownIcon,{className:`${o?"rotate-180":"rotate-0"} transition-transform ease-linear`})),N.default.createElement("div",{ref:a,className:"cursor-default overflow-hidden transition-[height] duration-300",style:u,onClick:e=>e.stopPropagation()},s?r:null))};var F={};Object.defineProperty(F,"__esModule",{value:!0}),F.getColorFromIndex=F.getColorPalette=F.getThemeColorPalette=F.setThemeAtRandom=F.getThemeColor=F.themeColors=void 0,F.themeColors=["bright-yellow","bright-green","bright-magenta","bright-cyan"];let B=[];F.getThemeColor=()=>document.documentElement.dataset.theme,F.setThemeAtRandom=()=>{document.documentElement.dataset.theme=F.themeColors[Math.floor(Math.random()*F.themeColors.length)],B=(0,F.getThemeColorPalette)().map(e=>`var(--${e})`)},F.getThemeColorPalette=()=>{let e=(0,F.getThemeColor)();return F.themeColors.map((t,r)=>F.themeColors[(F.themeColors.indexOf(e)+r)%F.themeColors.length])},F.getColorPalette=()=>B,F.getColorFromIndex=e=>{let t=(0,F.getColorPalette)();return t[e%t.length]};var _=u("jHhct"),W={},H=W&&W.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),X=W&&W.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Y=W&&W.__importStar||(oW=function(e){return(oW=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oW(e),n=0;n<r.length;n++)"default"!==r[n]&&H(t,e,r[n]);return X(t,e),t});Object.defineProperty(W,"__esModule",{value:!0}),W.ReportChart=void 0;const U=Y(u("acw62"));var V={},G=V&&V.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(V,"__esModule",{value:!0}),V.VideoEnabledContext=V.useListenToVideoCurrentTime=V.setVideoCurrentTime=void 0;const $=G(u("acw62"));var q={};function Z(){}Z.prototype={on:function(e,t,r){var n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this},once:function(e,t,r){var n=this;function i(){n.off(e,i),t.apply(r,arguments)}return i._=t,this.on(e,i,r)},emit:function(e){for(var t=[].slice.call(arguments,1),r=((this.e||(this.e={}))[e]||[]).slice(),n=0,i=r.length;n<i;n++)r[n].fn.apply(r[n].ctx,t);return this},off:function(e,t){var r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(var a=0,o=n.length;a<o;a++)n[a].fn!==t&&n[a].fn._!==t&&i.push(n[a]);return i.length?r[e]=i:delete r[e],this}},(q=Z).TinyEmitter=Z;const K=new q.TinyEmitter,Q="SET_VIDEO_CURRENT_TIME";V.setVideoCurrentTime=e=>{K.emit(Q,e)},V.useListenToVideoCurrentTime=e=>{$.default.useEffect(()=>(K.on(Q,e),()=>{K.off(Q,e)}),[e])},V.VideoEnabledContext=$.default.createContext(!1);var J={};Object.defineProperty(J,"__esModule",{value:!0}),J.useSetVideoTimeOnMouseHover=J.getLastX=void 0;var ee=u("acw62");J.getLastX=e=>{if(0===e.length)return;let t=e[0].data.at(-1);return"object"==typeof t&&null!==t&&"x"in t?t.x:void 0},J.useSetVideoTimeOnMouseHover=({lastX:e})=>{let t=(0,ee.useRef)(e);return t.current=e,(0,ee.useMemo)(()=>({mouseMove:(e,r)=>{if(void 0===t.current)return;let n=r.events.ctx.dimensions.dimXAxis.w.globals.gridWidth,i=e.clientX-r.el.getBoundingClientRect().left-r.w.globals.translateX,a=t.current;if("string"!=typeof a)for(let e of((0,V.setVideoCurrentTime)(i/n*a),document.getElementsByClassName("apexcharts-xaxis-annotations")))e.setAttribute("style",`transform: translateX(${i}px);`)}}),[])};var et={};Object.defineProperty(et,"__esModule",{value:!0}),et.getAnnotations=void 0;const er=e=>null==e?void 0:e.map(({y:e,y2:t,label:r,color:n})=>({y:e,y2:t,borderColor:n,fillColor:n,opacity:.2,label:{borderColor:n,style:{color:"#fff",background:n},text:r}})),en=()=>{let e=(0,F.getColorPalette)(),t=e[e.length-1];return[{x:0,strokeDashArray:0,borderColor:t,label:{borderColor:t,style:{color:"#fff",background:t},text:"Video",position:"right"}}]};et.getAnnotations=(e,t)=>{if(!t)return;let r=e?en():[],n=er(t);if(r.length&&n.length)return{xaxis:r,yaxis:n}};var ei={},ea=ei&&ei.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),eo=ei&&ei.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),es=ei&&ei.__importStar||(oH=function(e){return(oH=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oH(e),n=0;n<r.length;n++)"default"!==r[n]&&ea(t,e,r[n]);return eo(t,e),t}),el=ei&&ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ei,"__esModule",{value:!0}),ei.Chart=void 0;const eu=es(u("acw62")),ec=el(u("3r6bj"));var y=u("eBeAh"),T=u("f1q41");ei.Chart=({type:e,title:t,series:r,options:n={},height:i,colors:a,visibleSeriesNames:o})=>{let s=(0,eu.useMemo)(()=>({chart:{animations:{enabled:!0,easing:"linear",dynamicAnimation:{speed:y.POLLING_INTERVAL}},zoom:{enabled:!1},toolbar:{show:!1}},dataLabels:{enabled:!1},stroke:{curve:"smooth"},xaxis:{labels:{style:{colors:"#FFFFFF99"}}},yaxis:{labels:{style:{colors:"#FFFFFF99"}}},colors:a,legend:{labels:{colors:"#FFFFFF99"}},grid:{borderColor:"#FFFFFF33",strokeDashArray:3}}),[a]),l=(0,eu.useMemo)(()=>(0,T.merge)(s,n),[s,n]),u=(0,eu.useRef)(null),c=(0,eu.useRef)(r);return c.current=r,(0,eu.useEffect)(()=>{var e;let t=null===(e=u.current)||void 0===e?void 0:e.chart;t&&function(e,t,r){let[n,i]=(0,T.partition)(t,e=>!r||r.includes(e));i.forEach(t=>{try{e.hideSeries(t)}catch(e){}}),n.forEach(t=>{try{e.showSeries(t)}catch(e){}})}(t,c.current.map(e=>e.name).filter(e=>!!e),o)},[o]),eu.default.createElement(eu.default.Fragment,null,eu.default.createElement("div",{className:"mb-[5px] ml-[10px] text-2xl text-white flex flex-row font-medium"},t),eu.default.createElement(ec.default,{ref:u,options:l,series:r,type:e,height:i}))},W.ReportChart=({title:e,series:t,height:r,timeLimit:n,maxValue:i,showLegendForSingleSeries:a,colors:o=(0,F.getColorPalette)(),annotationIntervalList:s})=>{let l=(0,J.useSetVideoTimeOnMouseHover)({lastX:(0,J.getLastX)(t)}),u=(0,U.useContext)(V.VideoEnabledContext),c=(0,U.useMemo)(()=>({chart:{events:u?l:{}},annotations:(0,et.getAnnotations)(u,s)||{},stroke:{width:2},xaxis:{type:"numeric",max:n||void 0},yaxis:{min:0,max:i},legend:{showForSingleSeries:a}}),[u,l,s,n,i,a]);return U.default.createElement(ei.Chart,{type:"line",title:e,series:t,colors:o,height:r,options:c})};var ed={};Object.defineProperty(ed,"__esModule",{value:!0}),ed.mapThreadNames=ed.getNumberOfThreads=ed.THREAD_ICON_MAPPING=ed.getAutoSelectedThreads=void 0;var y=u("eBeAh"),eh={},ef=eh&&eh.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eh,"__esModule",{value:!0}),eh.RNLogo=void 0;const ep=ef(u("acw62"));eh.RNLogo=({size:e})=>ep.default.createElement("svg",{width:e,height:e,viewBox:"-11.5 -10.23174 23 20.46348",xmlns:"http://www.w3.org/2000/svg"},ep.default.createElement("circle",{fill:"#61dafb",r:"2.05"}),ep.default.createElement("g",{fill:"none",stroke:"#61dafb"},ep.default.createElement("ellipse",{rx:"11",ry:"4.2"}),ep.default.createElement("ellipse",{rx:"11",ry:"4.2",transform:"matrix(.5 .8660254 -.8660254 .5 0 0)"}),ep.default.createElement("ellipse",{rx:"11",ry:"4.2",transform:"matrix(-.5 .8660254 -.8660254 -.5 0 0)"})));var eg={},em=eg&&eg.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eg,"__esModule",{value:!0}),eg.FlutterLogo=void 0;const ev=em(u("acw62"));eg.FlutterLogo=({size:e})=>ev.default.createElement("svg",{width:e,height:e,id:"logo_vector","data-name":"logo vector",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 300 371.43"},ev.default.createElement("defs",null,ev.default.createElement("style",null,".cls-1{fill:none;}.cls-2{clip-path:url(#clip-path);}.cls-3{isolation:isolate;opacity:0.2;}.cls-4{fill:#54c5f8;}.cls-5{fill:#01579b;}.cls-6{fill:url(#linear-gradient);}.cls-7{fill:#29b6f6;}.cls-8{fill:url(#radial-gradient);}"),ev.default.createElement("clipPath",{id:"clip-path"},ev.default.createElement("path",{className:"cls-1",d:"M300,171.43l-100,100,100,100H185.72l-42.86-42.86h0L85.71,271.42l100-100ZM185.72,0,0,185.72l57.15,57.15L300,0Z"})),ev.default.createElement("linearGradient",{id:"linear-gradient",x1:"6254.1",y1:"5576.56",x2:"6424.34",y2:"5406.31",gradientTransform:"translate(-1404 -1054.53) scale(0.25)",gradientUnits:"userSpaceOnUse"},ev.default.createElement("stop",{offset:"0",stopColor:"#1a237e",stopOpacity:"0.4"}),ev.default.createElement("stop",{offset:"1",stopColor:"#1a237e",stopOpacity:"0"})),ev.default.createElement("radialGradient",{id:"radial-gradient",cx:"5649.77",cy:"4319.41",r:"1817.72",gradientTransform:"translate(-1404 -1054.53) scale(0.25)",gradientUnits:"userSpaceOnUse"},ev.default.createElement("stop",{offset:"0",stopColor:"#fff",stopOpacity:"0.1"}),ev.default.createElement("stop",{offset:"1",stopColor:"#fff",stopOpacity:"0"}))),ev.default.createElement("g",{className:"cls-2"},ev.default.createElement("image",{className:"cls-3",width:"125",height:"97",transform:"translate(67.54 154.53) scale(2.14)",xlinkHref:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAH8AAABjCAYAAACyqd/zAAAACXBIWXMAAAU6AAAFOgE+3gFaAAAVRUlEQVR4Xu3dy44kSXbe8f93zD0uec+a6itmqKF6Q6gJSMLoBugC8Am0GkpLLrXiEwjQvINegAvtZkdoRXBBguBOEkBATa1m2OKMerqrujvvmRHhbvZp4Z6ZkVl5i6q8Tx0gOjtRkRGe+TvHzNzcw0y2eR+/nVFd94TnHpJ03XMeY/gWqla38BpPIs4i/wz4L8DPgT8Htp5QAmwaPgX+EfC3dL9LF4smxLPGPwX/KbDJKfLHwA/6Z+0ASbDyxs8/vtgHsmG9//5L4Bu6Y980bAE/v3ESPFt86Z8J/h3wa/XYHfzLJVg5FHlXq2XKSmmwh9jDuepfAZYvetkHiAb4HgBp6oNU2IshaGBiArsFvv+RIRn+DvgaeG34i2uT4Nn1+V21fw78S3UVsiQ2DrS6hMZtrTJErSpZaxoINDyUBhk4/3d6TD2BQUJaYdQOHTNQ4KhHTmsHnowOvHcwMTsC/oG7xP2JJemqBHhWlX9a7VnwkRj9WoONl1pJjmppFAkrGkJtjhJFTqGiVk4tEODoxSsgXfFO9xiyoUU0KGprFmjauATOVV0q55KL3RbKtCk+mJbCzp7hwPDnhl8DF48Hng2+9E8F/1qQxMpLjT5UbEyOok2OOqUqQqkNIrUpJUWUyGGXKLZsi5SUIh4LOQDF0DYGFYOJSEXCIUp2lOySkykuVVs8LZGn+XBQld39qvB6q0Br+AsD2P/nDehn0ex38P9KMBPLGxq+OEzrXg3GpRq2pEaptqMSpXKiyuRU5BROkZzDIiyDrfJomntj7JSAEkbFyMVWtl0UbRvh7BwtqYRJuc0jjadtZqVll014TT4eu1zUBTx5/FP4Iy0tvYjNFy9jyl4qPqirRlUbqivy0OEBqIZS29QylSmJFIGLVCRAVoG47l3vMAwU6MYcsrBJMkSxnaHkglqIRoUGM1NxRLiZDSDPguWmOGi8zSvBP+9f+OB5Vf4J/PqRxh+uxsbBRmqLk+u6rpJqUjswZWi0JBhiD4GhRQ2lFkpAAgX0+KA3xn73H+7bH1tRuh67ZEEj0VqegaYhTS2ScZRSFC4mhUuoKJXC6u+Jvdz/Nm+evTxZ/DPwn6zG5uRlkgapqia1lYfhaihiJDSWyjLWGDG2POoSQTXd718ZQnKoz4AHxZdsuR+g2UIFyN0jphYz7InsCaIChUIOUjEpB2S1jkQbMx2WgytGMU8S/zz8Rt5Mrl2pHNU50iDhES7jIi9hLQNr6lJ/CTNGjEADoMZUQgEOg7rm1nCv53o6Tbe+X5YoGLs7dWmRGuBIMAEGiGQKoGKpNaV1UTIOFSTWCYvux7tXPt/vPzn87jz+P52BR6pi1tZtVEPhkSMtYS9LrCCvYjbAKzbLqEsAo4HsQVc9JYyCru7gHuF1Am+6Dh4EBVGwCtACM8HMeCBU041KCiIbGlnTQAkRaiNyCUnI3tFVp6xPCr+D/2OxvnMOPtct1VDSiGBJZkWwCqyB1oAXFquYVWAJGAsPgRpc0c3vClucVP+dJ4D7ET0g9+9mHQ/5TEa0gsYwBR2hrvcXbjFTWxUodWd/3TTQ6WEnpBV3PUb/hk91tH8Cz5bGn6xfAM9YKktRWLG0Cqxj1iVvWPwAWEMn87YjYIgY2KokAizESbd/P6F5DMsUYyNl3M3sGE+RKmwJGsTMpupLWmcGKMqW7Ii66wlouYr4SeDPw/P5IDZml8CbFdCaKOsWG6BN0Dr2D5DXQPP4A6CWqICT0f7xW97lmO+sGD5+GApS6eFnwExIXSugGTgwyH3rIIpQNs7FZKySo2tOcthH6aVhdumv8qjxT6/KncJ/OvkknC6DZ814HbEJbGJtWt5AvMBaQ/2gD4Z0+MfzuEEHf4J/x+Xv/r9dHy8KfcUbWuGmP9kriIQJbKPjUT8t3RWfxrgRboUyKTJKGWU79tzGa+Bf9G85fuMgHi3+abXDPHweVFV11LwJL9Ys1qGHl16IsmmOW4BzTT7UdPB98zmP7zuyP9vMI7sf8BWgYDfquu2MCYQxWT0yaEo32p9ATMAT8KxYMxeasNsqT8oRTdmfYfbHhv9uAPuv3mgBHiV+B/8zwRcdwk8248fffZoOlqnGe5N6EqNxyGNFWY7MqoM1gnVbm8IvkDZlbRo2sdctNqQz8F3Vm0AOupH+mUPg1uMcfDe8N13V99Ws3LcFGTETTA2H4AOkPdCu7V3EruQ9pIMoPlSUCS7T1qVhEG3a/iA33x4W2DX88uLD4RHin4H/yWYAzMMfxWiYroZ/gdk03sCsI62q6xLGqIc3FSIhgtMmf478DuwBDOrab3fNPLlvcAzd6B40wxxX+AHyga09472APfAesI/LAVmHJk1K5FkbpaFNuWnrvD04LN27/aXt//E0+vzz8D/+7tMEcAYeRtfBAxuYDbrTvRW6c/vTij8Z5Dl66E77Lkd5AH3H3b9R4bTJb+lP6QRHiENgz3jPaEd4R2jbeAe0g9ktYl/hw1KaSVs0c5PahsN2t0mFb1YKfGH4n1ccyyPCvwj+YLk7vnl4qrwc7Q3hxQpmDB4hnR/g9SN8684q/SQM/WWDLk7QM6YBZsAkxKHhAHsXaVewjdlGbJmyHSW2i2LXsI85LCVPgjwdNoOZtN7EtM68/rLAbveuT+FOnsvgx3uTGmAevmpZKYvAizHdVG4lXLlDj1P0Ox3Yn/3jC3fzq/18vd2AZsAEcWhzAOwi7QhtWWyBvzfaCrwF7Iq8b3ToEkdhpmqiKVbbNF+Xb799VWBg2DL8/Np27MHxr4I/itEQ4Ay8tEb45vD2AOkS+DsveU6rvr9eg7rBnT1DmmKOEAeYfWAHsQ1sW97Cx/BlyyV2kfcKOnCJw3Ceqiozj+qm4TB/O32V+fYU/rqqhwfGvw4+daNz5uGVynpxLAJfPxC8z8BDmYNvroJHfH8eXng3n4ev5uC/XAweeLjbuE7P439zOXyVlwEugP/wpvBABU6PEP5gIfjQvnPs3xY8PFDln5muvQK+arub6c/Bby4CL5z8+OAXq/gO/tYq/jjuHf/8PP1V8EVaA3g3ePQI4Q8XhYcyuU14uGf88/CfTj6Jq+CVyjrAOfgXLAR/Mpp/0vA17SxXg1uDh3vEvwg+D6or4YtjE+Dd4D2fAHcVi8LvLgrfjAdNLrcHD/c04Lvotiv6S7IN9dXz9N0LnG/qNxDLHN+SdQqfevh+5u5emvvz8PmGp3Ove/gtug8RblO0A97LoQPnOBRlmiLP8qBqSp7kVwevMl9FgVe2//Sd4e688q+Cb6mG11yg6fDf7OOfOvz2wvDl9a3Cwx3jXwcvce0Fmv6lLmrqf7vgf1EM390aPNwh/o3gVZauvUADPAH4siD89ywMz63Cwx19NuXG8Gbl2gs0Vw/uniS80cLw8Ce3Cg93UPmLwKMbXKABnht8ULYosRD8u4zqL4tbxV8U3rrBlTngCcC/zczdg8LDLeJLvy/4twvBA9dfoAHOwVfPAH73oeHhlvA7+H+yMDz9jZaXwqvHf37w+w8ND3c04HsfTyPeufJPqn55rPEno9utenvQv8n5aVseWdUvPF//0FUP74g/Dz/8KL0N/E3m6uHi+Xp4ovBQJg8ND++Afx5+vX4R+NbhK4AnAL/whZp2UD8oPLwl/kXwletKtwwvnACeG3wzHjRujx4UHlj8qp70B4Ifi5ehlY3lWE7rKRVVbj0oTiMF46Asy6z28N1VOPQCeAEnffw6sEb36dklfHp7tc7ccwf3hA5n4cs5+ONJnMMefo9T+C3EK87N1/uiGy6Pb8bYu/0LNYvGQpV/FbydBm8Bv3w1vHvse4e/bPbuMvitheCnrzJfpQeFhwVO9a6Dt+4CXjwR+DMXaq6F/3Lgh4aHG1b+jeDlpcXhGV8Nf+fo8CDwWw8ODzfAP4EntFItx0r7gxQtldWegQ/7LeB5FvAsCH+TT9PcR1yJPw+/uroZK9pMqVXlaOsSVQ9fjuFX3wL+oT5QATcb1d8IXoWF4O97VH9ZXNrndzdcfiB4KVbHUa1UqSSnJjV1SXlAMJJYEloBrZoz8JvcAB54HvCw+9Tg4crK/yHwI9hY0dLqMKQ25WjqFDHAjERZAi0DqxbraHF48GOFP1oE3tL+U4OHS/C7pcv/IzCL5cEslgYR0UZSUIc0gBiDl5BX6da6WQc2BJvulkDZANaR1/BV8DwL+GI9OXi4tNkfAD8Ua5UGVQ6yU1GqQDV4BB4jL9PNzq3TNfcbXdPv9f6xypUVTwCPFX5+5u5aeBXf+qdp7iMuafZnwCstj0ZKIwcoBVGBBy4eIsbqFjhaAa/RbWkx/1gVLNssAaPL4U8edx13Ch/p6cHDpZX/B7B0yGiwpEQlRUnCNcUDd8ubjOmWNOsTgFXwGmYFd8uduXvO8VIol8Dfh/vdw1PFk4OHCypf+veC/yyGf61SHyg3jqJIKVRFuA40FIyRl4BluiVNV/sR/2rfIixxsgCSB6CK01F9PFBTv9hcPX5la0tii8K2zI7F3OlcO6XWTErNYTrMW998lfn+o3LdIkiPKS6o/K+BvwGWKEVUZaCUakVUIacEqgy1C7XNwN06IEPDUN1q0APcrWaN3aMfV/uDDe4WgxdbRluSr4QPRXNYHea93e+eHDxc2OdnuhW/KlxahZOCLLCKLcshEcgJlORuIUNz8jUQIQis+T79vvp3uLqpvxYe+/vrKn4evn098lODh6vO81UjVYApEkiWfPxXNV1/5pPv+4egWxn2BADuzxy4BXhYEH72f58cPFzY7I+BfwwEiuwmpm5y61xaW6WoW70/C7XqlwQ/fhgaukWDW0RBykC/ICDuQeA0K247bgeexeC7Ne+eXryB363ROgF9SaRlk1RQW1ScXWjt4z+kp/h4HViOwP0uEJrSnSvOMN2SopDVNRJ3mQC3B18Wg7f/7rZ/l3uJS5r9PzF7P7IG26Tl4gjlKM5kN7ZmliayjoBDuoWFxsDIYlm4/0QNYQiMEDKSMD4Z7Vsd1K30CVfBv+Nc/fOEh0vxfwnN77EHZSWXEm3kEtFEogkz6bcnGQJDqRvxg2p1S6fF3EOds/tl48UdJMCtw5/O1T9feLgUfwz8jmfb/8usr5W0rExp2lSqmSIqS4dQKqAyqjjdqmRoFJhwX++duLpW//YT4CbwbzlX/7zh4RJ8+68s/SFMftf7G4Oyikpy2+bQLBGBS7jDTuB+9WqHpaGMLKvv0dVbg8QtJ8Cdwat48tzh4cpLun8G/AfPdj71bkzycmpVObUleZYoIUUUFIKQLbordHXHKHxc9cekt5sAi8C/1ZStlJ41PFyBb29b+kNxNHJTJiVtfJDrehmYQSrYErKE1VU7Airs7p7bTrczujoB5NMn3CQB7hyeKprD9Lzh4dp7+P7WMIDpmP3trbK+HtT1WLghpywTXYXjjkL9Jm497hn0yxNA3SdybpQA9wLfqmmfOzxcg2//b0sCfsp0ulleLf3KL4cfUrPkaDNu7aJUFKUEzhShKG0hWtktUsvxpI9p6faKy/h4FymXPgHcJ8BVXcB5+EUWQFrsAxXTV5n/9+LJzdUvGtfevWv7JAH4cpNvf/wqvxx+SF0tIRqihVISJQoJJ5cgolAIdLMWIK4ZAxwfCW8J/8bKV9fCfznwc4eHG+DDzRMgpxKpmAUTIC4fBM6HuKCpvwn8W95X/7zh4Yb4cMMEyClyKiyYAHF+ENj/a39/33HIoGL6PWluCO9ul4qF4B/LffV3HTfGh+sTgCw5BwsmQJrrArqvp7v/nuvz+00FF4LvVr5aBP6x34FzW7EQPlydAHWeqaFiwQRIZ8cAGLnuK33+wlO3/5y18Do4vIe/MBbGh8sToIyXmvpoxoIJUJ1JBnA/sDu+C+g4Cqilu1p4Y3jdwfYkzyXeCh8uToBP0w9pxgMWTIDqGF3CpevoC6f7xB9HARqLacC+WWxhhPfwb8Zb48ObCfDV578pn04+aRdJAFmpmwq2LfXwZLobP+fwXUAzwZFhj27vuX4Lsjd3onoPf328Ez6cS4AvRuWrz3/DIglgUfXXAgwqHTKt0VA+GfhhKQumwBFoB/W7TF4Dzx1sT/Jc4p3xYT4B/hi+2Fo0ASpbfdWXgnW8ifDQc8cnaIH+2nzZcret6BZ46yr4u9ie5LnEwmvyXBXdJ3v/SID4LPRhfJAijVKatXUuaWBiqFSWUvEyaBW85sRLrE2hDbusW1oFL8saobnkNK3lCehAZkvSjvEWeFuFbdAul6xnOyl77fb+VnnoNXAeW9xK5R/HaQvwR/CLwqvPXucP+QAGI9KsJRfmWgCwwi5OCkw3z9+GNbOYWIzk0+OzaIUmsg4sb4N3gG1bO0g7svcvW892++A9/EVxq/iwSALQz+Pm5HI8e1caK7pzeDS0ylzlR2s8tXyAvQPaNd4FdguxR+jAmaP72J7kucSt48PNE0AJCopE2N1VwQYxAQ5FOdfnl9bdncGHdKd4+yL2CmUfOLwU/g62J3kucSf4cE0CHLUUJTsbVY5SWuPUWm5UmJB0SNGAfhHGLpQJZmRPLO9ROET5QNKhM5NAk3Bu7mN7kucStzrguyguHATuj1KVcpUrD5DGgpGqauTSjEU9ys6jkGq7xOnrRCl2k5QmVnso0pFznhSYyJ6mVrM2p7asPOySpk8p7hwfLkiA2QcpteupqmbVdFAGlcowSjVslQehGGaoI5facTrDp0IpKZoEjV2OkmOWlad2zOommrYdtLnaya8G7+FvGveCD+cSgNCHH36QqirHdFjXdT2s6yPqtmprodqVq5Kjsj1X+SqRSqtWLWYWTk0z8CzPJu2gyW3bpvLq1esM7+FvGveGD28mwMcfr0SpX6QyyNVwkqpmRMozV8NhTiXXYbc6/dnKkZoynaZcVWqicW5qt6l1q2anfP31fnkPv1jc2YDvojgzCKTw9dfLmc/g4zzzUTsoAZGZtU7jsAZymbuZIwZ22Jmjggct2YUq528YFr5eLrAL7+EXinvFh/MJcAC/GJavP//IlL8vH2eH8zCXlGSjAif4IVxScso2sVu+Gw0L+qDw5a7hoMd+D79I3GuzPx9dFwAnO2vzmfj8V2L2Gb8zHSvnHdnt3PMrUlr33w+PTP6V+eWG4TdAa/hvhi6xLnqv93FxPBg+nE8AgIng3wC/7L//Zu7ZH/Vf/6Hhr92t9bTL8U6T7+EXjwfFP47TJPgZ8MVpP89P557187n//9jwX9+Dv2M8CvzjOE2C45g/ttN/eo9+O/Go8N/H/cYFa/K8j9+WeI//Wxz/H377UM/IoS5KAAAAAElFTkSuQmCC"}),ev.default.createElement("polygon",{className:"cls-4",points:"300 171.43 300 171.43 300 171.43 185.72 171.43 85.73 271.44 142.85 328.57 300 171.43"})),ev.default.createElement("g",{className:"cls-2"},ev.default.createElement("polygon",{className:"cls-4",points:"57.15 242.87 0 185.72 185.72 0 300 0 57.15 242.87"})),ev.default.createElement("g",{className:"cls-2"},ev.default.createElement("polygon",{className:"cls-5",points:"142.85 328.57 185.72 371.44 300 371.44 300 371.44 200.01 271.44 142.85 328.57"})),ev.default.createElement("g",{className:"cls-2"},ev.default.createElement("polygon",{className:"cls-6",points:"142.85 328.57 227.61 299.24 200.01 271.44 142.85 328.57"})),ev.default.createElement("g",{className:"cls-2"},ev.default.createElement("rect",{className:"cls-7",x:"102.45",y:"231.03",width:"80.81",height:"80.81",transform:"translate(-150.09 180.52) rotate(-45)"})),ev.default.createElement("path",{className:"cls-8",d:"M300,171.43l-100,100,100,100H185.72l-42.86-42.86h0L85.71,271.42l100-100ZM185.72,0,0,185.72l57.15,57.15L300,0Z"})),ed.getAutoSelectedThreads=e=>{let t=ex.find(t=>e.filter(e=>e.average.measures.length>0).every(e=>{let r=e.average.measures[e.average.measures.length-1];return void 0!==r.cpu.perName[t]||void 0!==r.cpu.perName[`(${t})`]}));return t?[t]:[]};const eb={[y.ThreadNames.FLUTTER.UI]:"Flutter UI Thread",[y.ThreadNames.FLUTTER.RASTER]:"Flutter Raster Thread",[y.ThreadNames.FLUTTER.IO]:"Flutter IO Thread",[y.ThreadNames.RN.JS_ANDROID]:"RN JS Thread",[y.ThreadNames.RN.JS_BRIDGELESS_ANDROID]:"RN JS Thread",[y.ThreadNames.RN.JS_IOS]:"RN JS Thread",[y.ThreadNames.RN.OLD_BRIDGE]:"RN Bridge Thread"};ed.THREAD_ICON_MAPPING={[eb[y.ThreadNames.FLUTTER.UI]]:eg.FlutterLogo,[eb[y.ThreadNames.FLUTTER.RASTER]]:eg.FlutterLogo,[eb[y.ThreadNames.FLUTTER.IO]]:eg.FlutterLogo,[eb[y.ThreadNames.RN.JS_ANDROID]]:eh.RNLogo,[eb[y.ThreadNames.RN.JS_BRIDGELESS_ANDROID]]:eh.RNLogo,[eb[y.ThreadNames.RN.JS_IOS]]:eh.RNLogo,[eb[y.ThreadNames.RN.OLD_BRIDGE]]:eh.RNLogo};const ex=[y.ThreadNames.RN.JS_IOS,y.ThreadNames.RN.JS_ANDROID,y.ThreadNames.RN.JS_BRIDGELESS_ANDROID,y.ThreadNames.FLUTTER.UI,y.ThreadNames.ANDROID.UI,y.ThreadNames.IOS.UI].map(e=>eb[e]||e);ed.getNumberOfThreads=e=>0===e.length||0===e[0].average.measures.length?0:Object.keys(e[0].average.measures[e[0].average.measures.length-1].cpu.perName).length,ed.mapThreadNames=e=>e.map(e=>Object.assign(Object.assign({},e),{iterations:e.iterations.map(e=>Object.assign(Object.assign({},e),{measures:e.measures.map(e=>Object.assign(Object.assign({},e),{cpu:Object.assign(Object.assign({},e.cpu),{perName:Object.keys(e.cpu.perName).reduce((t,r)=>Object.assign(Object.assign({},t),{[eb[r]||r]:e.cpu.perName[r]}),{})})}))}))}));const ey=(e,t)=>e.map(e=>t(e)||0).map((e,t)=>({x:t*y.POLLING_INTERVAL,y:(0,_.roundToDecimal)(e,1)})),ew=e=>ey(e,e=>(0,_.getAverageCpuUsage)([e])),ek=(e,t)=>ey(e,e=>e.cpu.perName[t]),eS=[{y:300,y2:1e3,color:"#E62E2E",label:"Danger Zone"}],eC=[{y:90,y2:100,color:"#E62E2E",label:"Danger Zone"}];w.getNumberOfThreads=e=>0===e.length||0===e[0].average.measures.length?0:Object.keys(e[0].average.measures[e[0].average.measures.length-1].cpu.perName).length,w.CPUReport=({results:e})=>{let[t,r]=S.default.useState((0,ed.getAutoSelectedThreads)(e)),n=t.map(t=>e.map(r=>({name:`${t}${e.length>1?` (${r.name})`:""}`,data:ek(r.average.measures,t)}))).flat(),i=e.map(e=>({name:e.name,data:ew(e.average.measures)})),a=ed.THREAD_ICON_MAPPING[t[0]],o=1===t.length?S.default.createElement("div",{className:"flex flex-row align-center"},a?S.default.createElement("div",{className:"mr-3 flex items-center"},S.default.createElement(a,{size:30})):null,`${t[0]} CPU Usage (%)`):"CPU Usage per thread (%)";return S.default.createElement(S.default.Fragment,null,S.default.createElement(W.ReportChart,{title:"Total CPU Usage (%)",height:500,series:i,annotationIntervalList:eS}),(0,w.getNumberOfThreads)(e)>1&&S.default.createElement(S.default.Fragment,null,S.default.createElement(W.ReportChart,{title:o,height:500,series:n,colors:e.length>1?(0,F.getColorPalette)().slice(0,e.length):void 0,maxValue:100,showLegendForSingleSeries:!0,annotationIntervalList:eC}),S.default.createElement(M.Collapsible,{unmountOnExit:!0,header:S.default.createElement("div",{className:"text-neutral-200 text-xl"},"Other threads"),className:"border rounded-lg border-gray-800 py-4 px-4"},e.length>1?S.default.createElement(C.ComparativeThreadTable,{results:e,selectedThreads:t,setSelectedThreads:r}):S.default.createElement(C.ThreadTable,{measures:e[0].average.measures,selectedThreads:t,setSelectedThreads:r}))))};var eA={},eE=eA&&eA.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eA,"__esModule",{value:!0}),eA.ReportSummary=void 0;const e_=eE(u("acw62"));var eT={},eP=eT&&eT.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eT,"__esModule",{value:!0}),eT.ReportSummaryCard=void 0;const eO=eP(u("acw62"));var _=u("jHhct"),eM={},eI=eM&&eM.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),eL=eM&&eM.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),eR=eM&&eM.__importStar||(oX=function(e){return(oX=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oX(e),n=0;n<r.length;n++)"default"!==r[n]&&eI(t,e,r[n]);return eL(t,e),t});Object.defineProperty(eM,"__esModule",{value:!0}),eM.ReportSummaryCardInfoRow=void 0;const eN=eR(u("acw62"));eM.ReportSummaryCardInfoRow=({title:e,value:t,difference:r,explanation:n,statistics:i})=>{let a=(0,eN.useMemo)(()=>eN.default.createElement("div",{className:"flex flex-row"},eN.default.createElement("div",{className:"text-neutral-300"},e),eN.default.createElement("div",{className:"grow"}),eN.default.createElement("div",{className:"text-neutral-300 whitespace-pre"},t),r,eN.default.createElement("div",{className:"w-2"})),[e,t,r]);return eN.default.createElement("div",{className:"w-full border rounded-lg border-gray-800"},eN.default.createElement(M.Collapsible,{header:a,className:"px-6 py-4 "},eN.default.createElement("div",{className:"text-neutral-400 text-sm"},n),!!i&&eN.default.createElement(eN.default.Fragment,null,eN.default.createElement("div",{className:"h-2"}),eN.default.createElement("div",{className:"text-neutral-400 text-sm"},i))))};var ez={},eD=ez&&ez.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ez,"__esModule",{value:!0}),ez.Score=ez.getScoreClassName=void 0;const eF=eD(u("acw62"));var _=u("jHhct");ez.getScoreClassName=e=>e>=80?"stroke-success":e>=50?"stroke-warning":"stroke-error",ez.Score=({size:e=152,report:t})=>{let r=!t.hasMeasures(),n=r?100:t.score,i=(3.6*Math.min(n,99.999999)-90)*Math.PI/180,a=100+90*Math.cos(i),o=100+90*Math.sin(i),s=3.6*n<=180?"0":"1",l=`M ${a} ${o} A 90 90 0 ${s} 0 100 10`;return eF.default.createElement("svg",{width:e,height:e,viewBox:"0 0 200 200",fill:"none"},eF.default.createElement("circle",{cx:100,cy:100,r:90,stroke:"white",strokeOpacity:"0.1",strokeWidth:20}),eF.default.createElement("path",{d:l,strokeWidth:20,className:r?void 0:(0,ez.getScoreClassName)(n)}),eF.default.createElement("text",{x:100,y:100,dominantBaseline:"central",textAnchor:"middle","aria-label":"Score",className:"text-center text-6xl font-semibold fill-white"},r?"":(0,_.roundToDecimal)(n,0)))};var eB={},ej=eB&&eB.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eB,"__esModule",{value:!0}),eB.Explanations=void 0;const eW=ej(u("aTXuQ")),eH=ej(u("acw62"));var _=u("jHhct");eB.Explanations={AverageTestRuntimeExplanation:()=>eH.default.createElement(eH.default.Fragment,null,"Time taken to run the test.",eH.default.createElement("br",null),"Can be helpful to measure Time To Interactive of your app, if the test is checking app start for instance."),AverageFPSExplanation:({refreshRate:e})=>eH.default.createElement(eH.default.Fragment,null,`Frame Per Second. Your app should display ${e} Frames Per Second to give an impression of fluidity. This number should be close to ${e}, otherwise it will seem laggy.`," ",eH.default.createElement("br",null),"See"," ",eH.default.createElement("a",{href:"https://www.youtube.com/watch?v=CaMTIgxCSqU",target:"_blank",rel:"noreferrer"},"this video")," ","for more details"),AverageCPUUsageExplanation:()=>eH.default.createElement(eH.default.Fragment,null,"An app might run at high frame rates, such as 60 FPS or higher, but might be using too much processing power, so it's important to check CPU usage.",eH.default.createElement("br",null)," Depending on the device, this value can go up to ",eH.default.createElement("code",null,"100% x number of cores"),". For instance, a Samsung A10s has 4 cores, so the max value would be 400%."),AverageRAMUsageExplanation:()=>eH.default.createElement(eH.default.Fragment,null,"If an app consumes a large amount of RAM (random-access memory), it can impact the overall performance of the device and drain the battery more quickly.",eH.default.createElement("br",null),"It’s worth noting that results might be higher than expected since we measure RSS and not PSS (See"," ",eH.default.createElement("a",{href:"https://github.com/bamlab/android-performance-profiler/issues/11#issuecomment-1219317891",target:"_blank",rel:"noreferrer"},"here for more details"),")"),HighCPUUsageExplanation:({result:e,refreshRate:t})=>eH.default.createElement(eH.default.Fragment,null,eH.default.createElement("div",{className:"mb-2"},eH.default.createElement("p",null,"Impacted threads:"),(0,eW.default)(Object.keys(e.averageHighCpuUsage),t=>e.averageHighCpuUsage[t],"desc").map(t=>eH.default.createElement("p",{key:t,className:"whitespace-pre"},"- ",(0,_.sanitizeProcessName)(t)," for"," ",(0,_.roundToDecimal)(e.averageHighCpuUsage[t]/1e3,1),"s"))),`High CPU usage by a single process can cause app unresponsiveness, even with low overall CPU usage. For instance, an overworked JS thread in a React Native app may lead to unresponsiveness despite maintaining ${t} FPS.`)};var eX={},eY=eX&&eX.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eX,"__esModule",{value:!0}),eX.Difference=eX.isDifferencePositive=eX.isDifferenceNegative=void 0;const eU=eY(u("acw62"));var _=u("jHhct");eX.isDifferenceNegative=e=>e<=0,eX.isDifferencePositive=e=>e>=0,eX.Difference=({value:e,baseline:t,hasValueImproved:r=eX.isDifferenceNegative})=>{if(!e||!t)return null;let n=(0,_.roundToDecimal)((e-t)/t*100,0),i=r(n),a=n>=0;return eU.default.createElement("div",{className:["whitespace-pre ml-2",i?"text-green-500":"text-red-500"].join(" ")},`(${a?"+":""}${n}%)`)};var eV={},eG=eV&&eV.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eV,"__esModule",{value:!0}),eV.SummaryStats=void 0;const e$=eG(u("acw62"));eV.SummaryStats=({stats:{deviationRange:e,minMaxRange:t,variationCoefficient:r},unit:n})=>e$.default.createElement(e$.default.Fragment,null,e$.default.createElement("div",{className:"text-neutral-300 text-sm"},"Min Max Range:"," ",e$.default.createElement("span",{className:"text-neutral-400 text-sm"},t[0]," ",n," to ",t[1]," ",n)),e$.default.createElement("div",{className:"text-neutral-300 text-sm"},"Standard deviation range :"," ",e$.default.createElement("span",{className:"text-neutral-400 text-sm"},e[0]," ",n," to ",e[1]," ",n)),e$.default.createElement("div",{className:"text-neutral-300 text-sm"},"Coefficient of variation :"," ",e$.default.createElement("span",{className:"text-neutral-400 text-sm"},r," %")),e$.default.createElement("div",{className:"h-2"}));var eq={},eZ=eq&&eq.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eq,"__esModule",{value:!0}),eq.ThreadStats=void 0;const eK=eZ(u("acw62"));eq.ThreadStats=({stats:e})=>eK.default.createElement("div",{className:"flex flex-col"},Object.keys(e).map(t=>eK.default.createElement("div",{className:"text-neutral-300 text-sm",key:t},"- ",t," -",eK.default.createElement(eV.SummaryStats,{stats:e[t],unit:"ms"})))),eT.ReportSummaryCard=({report:e,baselineReport:t})=>{let r=!e.hasMeasures(),n=e.getAverageMetrics(),i=null==t?void 0:t.getAverageMetrics(),a=e.getIterationCount()>1?e.getStats():void 0,o=e.getAveragedResult();return eO.default.createElement("div",{className:"flex flex-col items-center py-6 px-10 bg-dark-charcoal border border-gray-800 rounded-lg w-[500px] flex-shrink-0"},eO.default.createElement("div",{className:"flex flex-row items-center gap-2"},eO.default.createElement("div",{className:"bg-theme-color rounded-full min-w-[12px] w-[12px] min-h-[12px]"}),eO.default.createElement("div",{className:"text-neutral-300 text-center line-clamp-1"},e.name)),eO.default.createElement("div",{className:"h-8"}),eO.default.createElement(ez.Score,{report:e}),eO.default.createElement("div",{className:"h-8"}),eO.default.createElement(eM.ReportSummaryCardInfoRow,{title:"Average Test Runtime",value:r?"-":`${n.runtime} ms`,difference:eO.default.createElement(eX.Difference,{value:n.runtime,baseline:null==i?void 0:i.runtime}),explanation:eO.default.createElement(eB.Explanations.AverageTestRuntimeExplanation,null),statistics:a?eO.default.createElement(eV.SummaryStats,{stats:a.runtime,unit:"ms"}):void 0}),void 0!==n.fps||r?eO.default.createElement(eO.default.Fragment,null,eO.default.createElement("div",{className:"h-2"}),eO.default.createElement(eM.ReportSummaryCardInfoRow,{title:"Average FPS",value:r?"-":`${n.fps} FPS`,difference:eO.default.createElement(eX.Difference,{value:n.fps,baseline:null==i?void 0:i.fps,hasValueImproved:eX.isDifferencePositive}),explanation:eO.default.createElement(eB.Explanations.AverageFPSExplanation,{refreshRate:e.getRefreshRate()}),statistics:(null==a?void 0:a.fps)?eO.default.createElement(eV.SummaryStats,{stats:a.fps,unit:"FPS"}):void 0})):null,eO.default.createElement("div",{className:"h-2"}),eO.default.createElement(eM.ReportSummaryCardInfoRow,{title:"Average CPU usage",value:r?"-":`${n.cpu} %`,difference:eO.default.createElement(eX.Difference,{value:n.cpu,baseline:null==i?void 0:i.cpu}),statistics:a?eO.default.createElement(eV.SummaryStats,{stats:a.cpu,unit:"%"}):void 0,explanation:eO.default.createElement(eB.Explanations.AverageCPUUsageExplanation,null)}),eO.default.createElement("div",{className:"h-2"}),(0,_.canComputeHighCpuUsage)(o)&&eO.default.createElement(eM.ReportSummaryCardInfoRow,{title:"High CPU Usage",value:r?"-":eO.default.createElement("div",{style:n.totalHighCpuTime>0?{color:"red"}:{}},n.totalHighCpuTime>0?`${n.totalHighCpuTime} s`:"None ✅"),difference:eO.default.createElement(eX.Difference,{value:n.totalHighCpuTime,baseline:null==i?void 0:i.totalHighCpuTime}),explanation:eO.default.createElement(eB.Explanations.HighCPUUsageExplanation,{refreshRate:e.getRefreshRate(),result:o}),statistics:a?eO.default.createElement(eO.default.Fragment,null,eO.default.createElement(eV.SummaryStats,{stats:a.highCpu,unit:"ms"})," ",eO.default.createElement(eq.ThreadStats,{stats:a.highCpu.threads})):void 0}),void 0!==n.ram||r?eO.default.createElement(eO.default.Fragment,null,eO.default.createElement("div",{className:"h-2"}),eO.default.createElement(eM.ReportSummaryCardInfoRow,{title:"Average RAM usage",value:r?"-":`${n.ram} MB`,difference:eO.default.createElement(eX.Difference,{value:n.ram,baseline:null==i?void 0:i.ram}),explanation:eO.default.createElement(eB.Explanations.AverageRAMUsageExplanation,null),statistics:(null==a?void 0:a.ram)?eO.default.createElement(eV.SummaryStats,{stats:a.ram,unit:"MB"}):void 0})):null)};var eQ={},eJ=eQ&&eQ.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(eQ,"__esModule",{value:!0}),eQ.FailedReportSummaryCard=void 0;const e0=eJ(u("acw62"));eQ.FailedReportSummaryCard=({report:e})=>e0.default.createElement("div",{className:"flex flex-col items-center py-6 px-10 bg-dark-charcoal border border-gray-800 rounded-lg w-[456px] flex-shrink-0"},e0.default.createElement("div",{className:"flex flex-row items-center gap-2"},e0.default.createElement("div",{className:"bg-theme-color rounded-full min-w-[12px] w-[12px] min-h-[12px]"}),e0.default.createElement("div",{className:"text-neutral-300 text-center line-clamp-1"},e.name)),e0.default.createElement("div",{className:"h-8"}),e0.default.createElement("div",{className:"text-6xl"},"❌"),e0.default.createElement("div",{className:"h-8"}),e0.default.createElement("div",{className:"text-neutral-300 text-center"},"The maximum number of retries has been exceeded for this test.")),eA.ReportSummary=({reports:e})=>{let t=(0,F.getThemeColorPalette)(),r=e[0];return e_.default.createElement("div",{className:"flex flex-row overflow-x-scroll px-12 gap-12 w-full hide-scrollbar"},e.map((n,i)=>{let a=[0===i?"ml-auto":"",i===e.length-1?"mr-auto":""].join(" ");return e_.default.createElement("div",Object.assign({key:n.name,className:a},e.length>1?{"data-theme":t[i%t.length]}:{}),"FAILURE"===n.status?e_.default.createElement(eQ.FailedReportSummaryCard,{report:n}):e_.default.createElement(eT.ReportSummaryCard,{report:n,baselineReport:0!==i?r:void 0}))}))};var e1={},e2=e1&&e1.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e1,"__esModule",{value:!0}),e1.RAMReport=void 0;const e5=e2(u("acw62"));var e3={},e4=e3&&e3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e3,"__esModule",{value:!0}),e3.buildValueGraph=e3.NoValueFound=e3.HideSectionIfUndefinedValueFound=void 0;var y=u("eBeAh"),_=u("jHhct");const e6=e4(u("acw62"));class e8 extends e6.default.Component{constructor(e){super(e),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(e){if(!(e instanceof e9))throw e}render(){return this.state.hasError?null:this.props.children}}e3.HideSectionIfUndefinedValueFound=e8;class e9 extends Error{}e3.NoValueFound=e9,e3.buildValueGraph=({results:e,stat:t})=>e.map(e=>({name:e.name,data:e.average.measures.map(e=>{let r=e[t];if(void 0===r)throw new e9;return r}).map((e,t)=>({x:t*y.POLLING_INTERVAL,y:(0,_.roundToDecimal)(e,0)}))})),e1.RAMReport=({results:e})=>{let t=(0,e3.buildValueGraph)({results:e,stat:"ram"});return e5.default.createElement(W.ReportChart,{title:"RAM Usage (MB)",height:500,series:t})};var e7={},te=e7&&e7.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e7,"__esModule",{value:!0}),e7.TPNReport=void 0;const tt=te(u("acw62"));var _=u("jHhct");const tr=e=>e<200?"#158000":e<500?"#E6A700":"#E62E2E",tn=e=>e.flatMap(e=>e.average.measures.flatMap(e=>{var t;return null!==(t=e.tpn)&&void 0!==t?t:[]}));e7.TPNReport=({results:e})=>{let t=tn(e);if(0===t.length)throw new e3.NoValueFound;let r=[{name:"Navigation Time",data:t.map(e=>({x:`${e.from} -> ${e.to}`,y:(0,_.roundToDecimal)(e.duration,0),fillColor:tr(e.duration)}))}];return tt.default.createElement(ei.Chart,{type:"bar",title:"Time Per Navigation (TPN)",series:r,height:500,options:{plotOptions:{bar:{distributed:!0,columnWidth:"60%"}},xaxis:{labels:{rotate:-45,rotateAlways:!0,style:{colors:"#FFFFFF99"}}},yaxis:{title:{text:"Duration (ms)",style:{color:"#FFFFFF99"}},labels:{style:{colors:"#FFFFFF99"}}},tooltip:{y:{formatter:e=>`${e}ms`}},legend:{show:!1},dataLabels:{enabled:!0,formatter:e=>`${e}ms`,style:{colors:["#FFFFFF"]}}}})};var _=u("jHhct");const ti=b(u("5rflj"));var ta={},to=ta&&ta.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ta,"__esModule",{value:!0}),ta.FPSReport=void 0;const ts=to(u("acw62")),tl=[{y:57,y2:60,color:"#158000",label:"Safe Zone"}];ta.FPSReport=({results:e})=>{let t=(0,e3.buildValueGraph)({results:e,stat:"fps"});return ts.default.createElement(W.ReportChart,{title:"Frame rate (FPS)",height:500,series:t,annotationIntervalList:tl})};const tu=b(u("k4c40"));var tc=u("ijOKP"),td=u("8nd05"),th=u("1En50");u("acw62");var td=u("8nd05"),ee=u("acw62"),td=u("8nd05"),ee=(u("acw62"),u("acw62"));const tf=/*#__PURE__*/ee.createContext(null);var ee=u("acw62");function tp(){return ee.useContext(tf)}var tg="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",d=u("ayMG0"),tm=function(e){let{children:t,theme:r}=e,n=tp(),i=ee.useMemo(()=>{let e=null===n?r:"function"==typeof r?r(n):(0,td.default)({},n,r);return null!=e&&(e[tg]=null!==n),e},[r,n]);return/*#__PURE__*/(0,d.jsx)(tf.Provider,{value:i,children:t})};u("jjlaj");var tv=u("l7wW1"),tb=u("2HliV"),tx=u("58lXc"),ty=u("aMyfV"),d=u("ayMG0");const tw={};function tk(e,t,r,n=!1){return ee.useMemo(()=>{let i=e&&t[e]||t;if("function"==typeof r){let a=r(i),o=e?(0,td.default)({},t,{[e]:a}):a;return n?()=>o:o}return e?(0,td.default)({},t,{[e]:r}):(0,td.default)({},t,r)},[e,t,r,n])}var tS=function(e){let{children:t,theme:r,themeId:n}=e,i=(0,tb.default)(tw),a=tp()||tw,o=tk(n,i,r),s=tk(n,a,r,!0),l="rtl"===o.direction;return/*#__PURE__*/(0,d.jsx)(tm,{theme:s,children:/*#__PURE__*/(0,d.jsx)(tv.T.Provider,{value:o,children:/*#__PURE__*/(0,d.jsx)(tx.default,{value:l,children:/*#__PURE__*/(0,d.jsx)(ty.default,{value:null==o?void 0:o.components,children:t})})})})},tC=u("4jPsi"),d=u("ayMG0");const tA=["theme"];function tE(e){let{theme:t}=e,r=(0,th.default)(e,tA),n=t[tC.default];return/*#__PURE__*/(0,d.jsx)(tS,(0,td.default)({},r,{themeId:n?tC.default:void 0,theme:n||t}))}var t_={},tT=t_&&t_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t_,"__esModule",{value:!0}),t_.Header=void 0;const tP=tT(u("acw62")),tO=tT(u("4D8ul")),tM=tT(u("825Zh")),tI=tT(u("kCnQI")),tL=tT(u("iZ4W7")),tR=tT(u("2fe4K")),tN=tT(u("djLZl"));t_.Header=({menuOptions:e})=>{let[t,r]=tP.default.useState(null),n=!!t;if(0===e.length)return null;let i=()=>{r(null)};return tP.default.createElement(tP.default.Fragment,null,tP.default.createElement(tM.default,{id:"report-menu-button","aria-controls":n?"report-menu":void 0,"aria-haspopup":"true","aria-expanded":n?"true":void 0,onClick:e=>{r(e.currentTarget)},style:{float:"right"}},tP.default.createElement(tO.default,{fontSize:"inherit",className:"text-neutral-300"})),tP.default.createElement(tI.default,{id:"report-menu","aria-labelledby":"report-menu",anchorEl:t,open:n,onClose:i,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}},e.map(e=>tP.default.createElement(tL.default,{key:e.label,onClick:()=>{e.onClick(),i()}},tP.default.createElement(tR.default,null,e.icon),tP.default.createElement(tN.default,null,e.label)))))};var tz={};Object.defineProperty(tz,"__esModule",{value:!0}),tz.exportRawDataToZIP=tz.exportRawDataToJSON=void 0;var tD={};oY=function(){function e(e,t,r){var n=new XMLHttpRequest;n.open("GET",e),n.responseType="blob",n.onload=function(){o(n.response,t,r)},n.onerror=function(){console.error("could not download file")},n.send()}function t(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function r(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(r){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var i="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,a=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),o=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!a?function(n,a,o){var s=i.URL||i.webkitURL,l=document.createElement("a");a=a||n.name||"download",l.download=a,l.rel="noopener","string"==typeof n?(l.href=n,l.origin===location.origin?r(l):t(l.href)?e(n,a,o):r(l,l.target="_blank")):(l.href=s.createObjectURL(n),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(n,i,a){if(i=i||n.name||"download","string"!=typeof n){var o;navigator.msSaveOrOpenBlob((void 0===(o=a)?o={autoBom:!1}:"object"!=typeof o&&(console.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n),i)}else if(t(n))e(n,i,a);else{var s=document.createElement("a");s.href=n,s.target="_blank",setTimeout(function(){r(s)})}}:function(t,r,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return e(t,r,n);var s="application/octet-stream"===t.type,l=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||a)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var e=c.result;e=u?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=e:location=e,o=null},c.readAsDataURL(t)}else{var d=i.URL||i.webkitURL,h=d.createObjectURL(t);o?o.location=h:location.href=h,o=null,setTimeout(function(){d.revokeObjectURL(h)},4e4)}});i.saveAs=o.saveAs=o,tD=o},"function"==typeof define&&define.amd?define([],oY):oY();var tF={};oq=function(e){var t,r,n=function(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var n=r===t?0:4-r%4;return[r,n]}(e),i=n[0],a=n[1],o=new tW((i+a)*3/4-a),s=0,l=a>0?i-4:i;for(r=0;r<l;r+=4)t=tj[e.charCodeAt(r)]<<18|tj[e.charCodeAt(r+1)]<<12|tj[e.charCodeAt(r+2)]<<6|tj[e.charCodeAt(r+3)],o[s++]=t>>16&255,o[s++]=t>>8&255,o[s++]=255&t;return 2===a&&(t=tj[e.charCodeAt(r)]<<2|tj[e.charCodeAt(r+1)]>>4,o[s++]=255&t),1===a&&(t=tj[e.charCodeAt(r)]<<10|tj[e.charCodeAt(r+1)]<<4|tj[e.charCodeAt(r+2)]>>2,o[s++]=t>>8&255,o[s++]=255&t),o},oZ=function(e){for(var t,r=e.length,n=r%3,i=[],a=0,o=r-n;a<o;a+=16383)i.push(function(e,t,r){for(var n,i=[],a=t;a<r;a+=3)i.push(tB[(n=(e[a]<<16&0xff0000)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+tB[n>>12&63]+tB[n>>6&63]+tB[63&n]);return i.join("")}(e,a,a+16383>o?o:a+16383));return 1===n?i.push(tB[(t=e[r-1])>>2]+tB[t<<4&63]+"=="):2===n&&i.push(tB[(t=(e[r-2]<<8)+e[r-1])>>10]+tB[t>>4&63]+tB[t<<2&63]+"="),i.join("")};for(var tB=[],tj=[],tW="undefined"!=typeof Uint8Array?Uint8Array:Array,tH="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",tX=0,tY=tH.length;tX<tY;++tX)tB[tX]=tH[tX],tj[tH.charCodeAt(tX)]=tX;tj["-".charCodeAt(0)]=62,tj["_".charCodeAt(0)]=63,oK=function(e,t,r,n,i){var a,o,s=8*i-n-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?i-1:0,h=r?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+d],d+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=n;c>0;o=256*o+e[t+d],d+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,n),a-=u}return(f?-1:1)*o*Math.pow(2,a-n)},oQ=function(e,t,r,n,i,a){var o,s,l,u=8*a-i-1,c=(1<<u)-1,d=c>>1,h=23===i?5960464477539062e-23:0,f=n?0:a-1,p=n?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=c?(s=0,o=c):o+d>=1?(s=(t*l-1)*Math.pow(2,i),o+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,i),o=0));i>=8;e[r+f]=255&s,f+=p,s/=256,i-=8);for(o=o<<i|s,u+=i;u>0;e[r+f]=255&o,f+=p,o/=256,u-=8);e[r+f-p]|=128*g};var tU="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function tV(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,tG.prototype),t}function tG(e,t,r){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return tZ(e)}return t$(e,t,r)}function t$(e,t,r){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!tG.isEncoding(t))throw TypeError("Unknown encoding: "+t);var r=0|t0(e,t),n=tV(r),i=n.write(e,t);return i!==r&&(n=n.slice(0,i)),n}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ra(e,Uint8Array)){var t=new Uint8Array(e);return tQ(t.buffer,t.byteOffset,t.byteLength)}return tK(e)}(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ra(e,ArrayBuffer)||e&&ra(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(ra(e,SharedArrayBuffer)||e&&ra(e.buffer,SharedArrayBuffer)))return tQ(e,t,r);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(null!=n&&n!==e)return tG.from(n,t,r);var i=function(e){if(tG.isBuffer(e)){var t,r=0|tJ(e.length),n=tV(r);return 0===n.length||e.copy(n,0,0,r),n}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?tV(0):tK(e):"Buffer"===e.type&&Array.isArray(e.data)?tK(e.data):void 0}(e);if(i)return i;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return tG.from(e[Symbol.toPrimitive]("string"),t,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function tq(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function tZ(e){return tq(e),tV(e<0?0:0|tJ(e))}function tK(e){for(var t=e.length<0?0:0|tJ(e.length),r=tV(t),n=0;n<t;n+=1)r[n]=255&e[n];return r}function tQ(e,t,r){var n;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===t&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,t):new Uint8Array(e,t,r),tG.prototype),n}function tJ(e){if(e>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function t0(e,t){if(tG.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ra(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var r=e.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return rr(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return rn(e).length;default:if(i)return n?-1:rr(e).length;t=(""+t).toLowerCase(),i=!0}}function t1(e,t,r){var n,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=ro[e[a]];return i}(this,t,r);case"utf8":case"utf-8":return t4(this,t,r);case"ascii":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}(this,t,r);case"latin1":case"binary":return function(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}(this,t,r);case"base64":return n=t,i=r,0===n&&i===this.length?oZ(this):oZ(this.slice(n,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var n=e.slice(t,r),i="",a=0;a<n.length-1;a+=2)i+=String.fromCharCode(n[a]+256*n[a+1]);return i}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function t2(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function t5(e,t,r,n,i){var a;if(0===e.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(a=r=+r)!=a&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return -1;r=e.length-1}else if(r<0){if(!i)return -1;r=0}if("string"==typeof t&&(t=tG.from(t,n)),tG.isBuffer(t))return 0===t.length?-1:t3(e,t,r,n,i);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):t3(e,[t],r,n,i);throw TypeError("val must be string, number or Buffer")}function t3(e,t,r,n,i){var a,o=1,s=e.length,l=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return -1;o=2,s/=2,l/=2,r/=2}function u(e,t){return 1===o?e[t]:e.readUInt16BE(t*o)}if(i){var c=-1;for(a=r;a<s;a++)if(u(e,a)===u(t,-1===c?0:a-c)){if(-1===c&&(c=a),a-c+1===l)return c*o}else -1!==c&&(a-=a-c),c=-1}else for(r+l>s&&(r=s-l),a=r;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(u(e,a+h)!==u(t,h)){d=!1;break}if(d)return a}return -1}function t4(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var a,o,s,l,u=e[i],c=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(a=e[i+1]))==128&&(l=(31&u)<<6|63&a)>127&&(c=l);break;case 3:a=e[i+1],o=e[i+2],(192&a)==128&&(192&o)==128&&(l=(15&u)<<12|(63&a)<<6|63&o)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:a=e[i+1],o=e[i+2],s=e[i+3],(192&a)==128&&(192&o)==128&&(192&s)==128&&(l=(15&u)<<18|(63&a)<<12|(63&o)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,n.push(c>>>10&1023|55296),c=56320|1023&c),n.push(c),i+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=4096));return r}(n)}function t6(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function t8(e,t,r,n,i,a){if(!tG.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<a)throw RangeError('"value" argument is out of bounds');if(r+n>e.length)throw RangeError("Index out of range")}function t9(e,t,r,n,i,a){if(r+n>e.length||r<0)throw RangeError("Index out of range")}function t7(e,t,r,n,i){return t=+t,r>>>=0,i||t9(e,t,r,4,34028234663852886e22,-34028234663852886e22),oQ(e,t,r,n,23,4),r+4}function re(e,t,r,n,i){return t=+t,r>>>=0,i||t9(e,t,r,8,17976931348623157e292,-17976931348623157e292),oQ(e,t,r,n,52,8),r+8}tG.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),tG.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(tG.prototype,"parent",{enumerable:!0,get:function(){if(tG.isBuffer(this))return this.buffer}}),Object.defineProperty(tG.prototype,"offset",{enumerable:!0,get:function(){if(tG.isBuffer(this))return this.byteOffset}}),tG.poolSize=8192,tG.from=function(e,t,r){return t$(e,t,r)},Object.setPrototypeOf(tG.prototype,Uint8Array.prototype),Object.setPrototypeOf(tG,Uint8Array),tG.alloc=function(e,t,r){return(tq(e),e<=0)?tV(e):void 0!==t?"string"==typeof r?tV(e).fill(t,r):tV(e).fill(t):tV(e)},tG.allocUnsafe=function(e){return tZ(e)},tG.allocUnsafeSlow=function(e){return tZ(e)},tG.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==tG.prototype},tG.compare=function(e,t){if(ra(e,Uint8Array)&&(e=tG.from(e,e.offset,e.byteLength)),ra(t,Uint8Array)&&(t=tG.from(t,t.offset,t.byteLength)),!tG.isBuffer(e)||!tG.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var r=e.length,n=t.length,i=0,a=Math.min(r,n);i<a;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},tG.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},tG.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return tG.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,n=tG.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var a=e[r];if(ra(a,Uint8Array))i+a.length>n.length?tG.from(a).copy(n,i):Uint8Array.prototype.set.call(n,a,i);else if(tG.isBuffer(a))a.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=a.length}return n},tG.byteLength=t0,tG.prototype._isBuffer=!0,tG.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)t2(this,t,t+1);return this},tG.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)t2(this,t,t+3),t2(this,t+1,t+2);return this},tG.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)t2(this,t,t+7),t2(this,t+1,t+6),t2(this,t+2,t+5),t2(this,t+3,t+4);return this},tG.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?t4(this,0,e):t1.apply(this,arguments)},tG.prototype.toLocaleString=tG.prototype.toString,tG.prototype.equals=function(e){if(!tG.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===tG.compare(this,e)},tG.prototype.inspect=function(){var e="";return e=this.toString("hex",0,50).replace(/(.{2})/g,"$1 ").trim(),this.length>50&&(e+=" ... "),"<Buffer "+e+">"},tU&&(tG.prototype[tU]=tG.prototype.inspect),tG.prototype.compare=function(e,t,r,n,i){if(ra(e,Uint8Array)&&(e=tG.from(e,e.offset,e.byteLength)),!tG.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&t>=r)return 0;if(n>=i)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,n>>>=0,i>>>=0,this===e)return 0;for(var a=i-n,o=r-t,s=Math.min(a,o),l=this.slice(n,i),u=e.slice(t,r),c=0;c<s;++c)if(l[c]!==u[c]){a=l[c],o=u[c];break}return a<o?-1:o<a?1:0},tG.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},tG.prototype.indexOf=function(e,t,r){return t5(this,e,t,r,!0)},tG.prototype.lastIndexOf=function(e,t,r){return t5(this,e,t,r,!1)},tG.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var i,a,o,s,l,u,c,d,h=this.length-t;if((void 0===r||r>h)&&(r=h),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var f=!1;;)switch(n){case"hex":return function(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?(n=Number(n))>i&&(n=i):n=i;var a=t.length;n>a/2&&(n=a/2);for(var o=0;o<n;++o){var s=parseInt(t.substr(2*o,2),16);if(s!=s)break;e[r+o]=s}return o}(this,e,t,r);case"utf8":case"utf-8":return i=t,a=r,ri(rr(e,this.length-i),this,i,a);case"ascii":case"latin1":case"binary":return o=t,s=r,ri(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(e),this,o,s);case"base64":return l=t,u=r,ri(rn(e),this,l,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return c=t,d=r,ri(function(e,t){for(var r,n,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,i.push(r%256),i.push(n);return i}(e,this.length-c),this,c,d);default:if(f)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),f=!0}},tG.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},tG.prototype.slice=function(e,t){var r=this.length;e=~~e,t=void 0===t?r:~~t,e<0?(e+=r)<0&&(e=0):e>r&&(e=r),t<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e);var n=this.subarray(e,t);return Object.setPrototypeOf(n,tG.prototype),n},tG.prototype.readUintLE=tG.prototype.readUIntLE=function(e,t,r){e>>>=0,t>>>=0,r||t6(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n},tG.prototype.readUintBE=tG.prototype.readUIntBE=function(e,t,r){e>>>=0,t>>>=0,r||t6(e,t,this.length);for(var n=this[e+--t],i=1;t>0&&(i*=256);)n+=this[e+--t]*i;return n},tG.prototype.readUint8=tG.prototype.readUInt8=function(e,t){return e>>>=0,t||t6(e,1,this.length),this[e]},tG.prototype.readUint16LE=tG.prototype.readUInt16LE=function(e,t){return e>>>=0,t||t6(e,2,this.length),this[e]|this[e+1]<<8},tG.prototype.readUint16BE=tG.prototype.readUInt16BE=function(e,t){return e>>>=0,t||t6(e,2,this.length),this[e]<<8|this[e+1]},tG.prototype.readUint32LE=tG.prototype.readUInt32LE=function(e,t){return e>>>=0,t||t6(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},tG.prototype.readUint32BE=tG.prototype.readUInt32BE=function(e,t){return e>>>=0,t||t6(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},tG.prototype.readIntLE=function(e,t,r){e>>>=0,t>>>=0,r||t6(e,t,this.length);for(var n=this[e],i=1,a=0;++a<t&&(i*=256);)n+=this[e+a]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*t)),n},tG.prototype.readIntBE=function(e,t,r){e>>>=0,t>>>=0,r||t6(e,t,this.length);for(var n=t,i=1,a=this[e+--n];n>0&&(i*=256);)a+=this[e+--n]*i;return a>=(i*=128)&&(a-=Math.pow(2,8*t)),a},tG.prototype.readInt8=function(e,t){return(e>>>=0,t||t6(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},tG.prototype.readInt16LE=function(e,t){e>>>=0,t||t6(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?0xffff0000|r:r},tG.prototype.readInt16BE=function(e,t){e>>>=0,t||t6(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?0xffff0000|r:r},tG.prototype.readInt32LE=function(e,t){return e>>>=0,t||t6(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},tG.prototype.readInt32BE=function(e,t){return e>>>=0,t||t6(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},tG.prototype.readFloatLE=function(e,t){return e>>>=0,t||t6(e,4,this.length),oK(this,e,!0,23,4)},tG.prototype.readFloatBE=function(e,t){return e>>>=0,t||t6(e,4,this.length),oK(this,e,!1,23,4)},tG.prototype.readDoubleLE=function(e,t){return e>>>=0,t||t6(e,8,this.length),oK(this,e,!0,52,8)},tG.prototype.readDoubleBE=function(e,t){return e>>>=0,t||t6(e,8,this.length),oK(this,e,!1,52,8)},tG.prototype.writeUintLE=tG.prototype.writeUIntLE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;t8(this,e,t,r,i,0)}var a=1,o=0;for(this[t]=255&e;++o<r&&(a*=256);)this[t+o]=e/a&255;return t+r},tG.prototype.writeUintBE=tG.prototype.writeUIntBE=function(e,t,r,n){if(e=+e,t>>>=0,r>>>=0,!n){var i=Math.pow(2,8*r)-1;t8(this,e,t,r,i,0)}var a=r-1,o=1;for(this[t+a]=255&e;--a>=0&&(o*=256);)this[t+a]=e/o&255;return t+r},tG.prototype.writeUint8=tG.prototype.writeUInt8=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,1,255,0),this[t]=255&e,t+1},tG.prototype.writeUint16LE=tG.prototype.writeUInt16LE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},tG.prototype.writeUint16BE=tG.prototype.writeUInt16BE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},tG.prototype.writeUint32LE=tG.prototype.writeUInt32LE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},tG.prototype.writeUint32BE=tG.prototype.writeUInt32BE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},tG.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);t8(this,e,t,r,i-1,-i)}var a=0,o=1,s=0;for(this[t]=255&e;++a<r&&(o*=256);)e<0&&0===s&&0!==this[t+a-1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},tG.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t>>>=0,!n){var i=Math.pow(2,8*r-1);t8(this,e,t,r,i-1,-i)}var a=r-1,o=1,s=0;for(this[t+a]=255&e;--a>=0&&(o*=256);)e<0&&0===s&&0!==this[t+a+1]&&(s=1),this[t+a]=(e/o>>0)-s&255;return t+r},tG.prototype.writeInt8=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},tG.prototype.writeInt16LE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},tG.prototype.writeInt16BE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},tG.prototype.writeInt32LE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},tG.prototype.writeInt32BE=function(e,t,r){return e=+e,t>>>=0,r||t8(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},tG.prototype.writeFloatLE=function(e,t,r){return t7(this,e,t,!0,r)},tG.prototype.writeFloatBE=function(e,t,r){return t7(this,e,t,!1,r)},tG.prototype.writeDoubleLE=function(e,t,r){return re(this,e,t,!0,r)},tG.prototype.writeDoubleBE=function(e,t,r){return re(this,e,t,!1,r)},tG.prototype.copy=function(e,t,r,n){if(!tG.isBuffer(e))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i=n-r;return this===e&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,r,n):Uint8Array.prototype.set.call(e,this.subarray(r,n),t),i},tG.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!tG.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===e.length){var i,a=e.charCodeAt(0);("utf8"===n&&a<128||"latin1"===n)&&(e=a)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var o=tG.isBuffer(e)?e:tG.from(e,n),s=o.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(i=0;i<r-t;++i)this[i+t]=o[i%s]}return this};var rt=/[^+/0-9A-Za-z-_]/g;function rr(e,t){t=t||1/0;for(var r,n=e.length,i=null,a=[],o=0;o<n;++o){if((r=e.charCodeAt(o))>55295&&r<57344){if(!i){if(r>56319||o+1===n){(t-=3)>-1&&a.push(239,191,189);continue}i=r;continue}if(r<56320){(t-=3)>-1&&a.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;a.push(r)}else if(r<2048){if((t-=2)<0)break;a.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;a.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;a.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return a}function rn(e){return oq(function(e){if((e=(e=e.split("=")[0]).trim().replace(rt,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function ri(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length)&&!(i>=e.length);++i)t[i+r]=e[i];return i}function ra(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var ro=function(){for(var e="0123456789abcdef",t=Array(256),r=0;r<16;++r)for(var n=16*r,i=0;i<16;++i)t[n+i]=e[r]+e[i];return t}(),rs=u("hPtJY");tF=(function e(t,r,n){function i(o,s){if(!r[o]){if(!t[o]){var l=void 0;if(!s&&l)return l(o,!0);if(a)return a(o,!0);var u=Error("Cannot find module '"+o+"'");throw u.code="MODULE_NOT_FOUND",u}var c=r[o]={exports:{}};t[o][0].call(c.exports,function(e){return i(t[o][1][e]||e)},c,c.exports,e,t,r,n)}return r[o].exports}for(var a=void 0,o=0;o<n.length;o++)i(n[o]);return i})({1:[function(e,t,r){var n=e("./utils"),i=e("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,i,o,s,l,u,c=[],d=0,h=e.length,f=h,p="string"!==n.getTypeOf(e);d<e.length;)f=h-d,i=p?(t=e[d++],r=d<h?e[d++]:0,d<h?e[d++]:0):(t=e.charCodeAt(d++),r=d<h?e.charCodeAt(d++):0,d<h?e.charCodeAt(d++):0),o=t>>2,s=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|i>>6:64,u=2<f?63&i:64,c.push(a.charAt(o)+a.charAt(s)+a.charAt(l)+a.charAt(u));return c.join("")},r.decode=function(e){var t,r,n,o,s,l,u=0,c=0,d="data:";if(e.substr(0,d.length)===d)throw Error("Invalid base64 input, it looks like a data url.");var h,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===a.charAt(64)&&f--,e.charAt(e.length-2)===a.charAt(64)&&f--,f%1!=0)throw Error("Invalid base64 input, bad content length.");for(h=i.uint8array?new Uint8Array(0|f):Array(0|f);u<e.length;)t=a.indexOf(e.charAt(u++))<<2|(o=a.indexOf(e.charAt(u++)))>>4,r=(15&o)<<4|(s=a.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(l=a.indexOf(e.charAt(u++))),h[c++]=t,64!==s&&(h[c++]=r),64!==l&&(h[c++]=n);return h}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),i=e("./stream/DataWorker"),a=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,i){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=i}s.prototype={getContentWorker:function(){var e=new i(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("data_length")),t=this;return e.on("end",function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw Error("Bug : uncompressed data size mismatch")}),e},getCompressedWorker:function(){return new i(n.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,r){return e.pipe(new a).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),i=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?0xedb88320^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var a=0+r;e^=-1;for(var o=0;o<a;o++)e=e>>>8^i[255&(e^t[o])];return -1^e}(0|t,e,e.length,0):function(e,t,r,n){var a=0+r;e^=-1;for(var o=0;o<a;o++)e=e>>>8^i[255&(e^t.charCodeAt(o))];return -1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,i=e("pako"),a=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",a.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(a.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function i(e,t,r,i,o,c){var d,h,f,p,g=e.file,m=e.compression,v=c!==s.utf8encode,b=a.transformTo("string",c(g.name)),x=a.transformTo("string",s.utf8encode(g.name)),y=g.comment,w=a.transformTo("string",c(y)),k=a.transformTo("string",s.utf8encode(y)),S=x.length!==g.name.length,C=k.length!==y.length,A="",E="",_="",T=g.dir,P=g.date,O={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(O.crc32=e.crc32,O.compressedSize=e.compressedSize,O.uncompressedSize=e.uncompressedSize);var M=0;t&&(M|=8),!v&&(S||C)&&(M|=2048);var I=0,L=0;T&&(I|=16),"UNIX"===o?(L=798,I|=(h=d=g.unixPermissions,d||(h=T?16893:33204),(65535&h)<<16)):(L=20,I|=63&(g.dosPermissions||0)),f=(P.getUTCHours()<<6|P.getUTCMinutes())<<5|P.getUTCSeconds()/2,p=(P.getUTCFullYear()-1980<<4|P.getUTCMonth()+1)<<5|P.getUTCDate(),S&&(E=n(1,1)+n(l(b),4)+x,A+="up"+n(E.length,2)+E),C&&(_=n(1,1)+n(l(w),4)+k,A+="uc"+n(_.length,2)+_);var R="";return R+="\n\0",R+=n(M,2),R+=m.magic,R+=n(f,2),R+=n(p,2),R+=n(O.crc32,4),R+=n(O.compressedSize,4),R+=n(O.uncompressedSize,4),R+=n(b.length,2),R+=n(A.length,2),{fileRecord:u.LOCAL_FILE_HEADER+R+b+A,dirRecord:u.CENTRAL_FILE_HEADER+n(L,2)+R+n(w.length,2)+"\0\0\0\0"+n(I,4)+n(i,4)+b+A+w}}var a=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=i(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=i(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e,t,r,i,o=this.bytesWritten,s=0;s<this.dirRecords.length;s++)this.push({data:this.dirRecords[s],meta:{percent:100}});var l=this.bytesWritten-o,c=(e=this.dirRecords.length,t=this.zipComment,r=this.encodeFileName,i=a.transformTo("string",r(t)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(l,4)+n(o,4)+n(i.length,2)+i);this.push({data:c,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(e){t.error(e)}),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(e){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),i=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var a=new i(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach(function(e,r){o++;var i=function(e,t){var r=e||t,i=n[r];if(!i)throw Error(r+" is not a valid compression method !");return i}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,u=r.date;r._compressWorker(i,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(a)}),a.entriesCount=o}catch(e){a.error(e)}return a}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.10.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),i=e("./external"),a=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),l.isNode&&l.isStream(e)?i.Promise.reject(Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then(function(e){var r=new o(t);return r.load(e),r}).then(function(e){var r=[i.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var a=0;a<n.length;a++)r.push(function(e){return new i.Promise(function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",function(e){r(e)}).on("end",function(){n.streamInfo.crc32!==e.decompressed.crc32?r(Error("Corrupted zip : CRC32 mismatch")):t()}).resume()})}(n[a]));return i.Promise.all(r)}).then(function(e){for(var i=e.shift(),a=i.files,o=0;o<a.length;o++){var s=a[o],l=s.fileNameStr,u=n.resolve(s.fileNameStr);r.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(u).unsafeOriginalName=l)}return i.zipComment.length&&(r.comment=i.zipComment),r})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),i=e("../stream/GenericWorker");function a(e,t){i.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(a,i),a.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",function(e){t.push({data:e,meta:{percent:0}})}).on("error",function(e){t.isPaused?this.generatedError=e:t.error(e)}).on("end",function(){t.isPaused?t._upstreamEnded=!0:t.end()})},a.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function i(e,t,r){n.call(this,t),this._helper=e;var i=this;e.on("data",function(e,t){i.push(e)||i._helper.pause(),r&&r(t)}).on("error",function(e){i.emit("error",e)}).on("end",function(){i.push(null)})}e("../utils").inherits(i,n),i.prototype._read=function(){this._helper.resume()},t.exports=i},{"../utils":32,"readable-stream":16}],14:[function(e,t,r){t.exports={isNode:!0,newBufferFrom:function(e,t){if(tG.from&&tG.from!==Uint8Array.from)return tG.from(e,t);if("number"==typeof e)throw Error('The "data" argument must not be a number');return new tG(e,t)},allocBuffer:function(e){if(tG.alloc)return tG.alloc(e);var t=new tG(e);return t.fill(0),t},isBuffer:function(e){return tG.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,i=a.getTypeOf(t),s=a.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=g(e)),s.createFolders&&(n=p(e))&&m.call(this,n,!0);var d="string"===i&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!d),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",i="string");var v=null;v=t instanceof u||t instanceof o?t:h.isNode&&h.isStream(t)?new f(e,t):a.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var b=new c(e,v,s);this.files[e]=b}var i=e("./utf8"),a=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),d=e("./generate"),h=e("./nodejsUtils"),f=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},g=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=g(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function v(e){return"[object RegExp]"===Object.prototype.toString.call(e)}t.exports={load:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach(function(r,n){e(r,n)&&t.push(n)}),t},file:function(e,t,r){if(1!=arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(v(e)){var i=e;return this.filter(function(e,t){return!t.dir&&i.test(e)})}var a=this.files[this.root+e];return a&&!a.dir?a:null},folder:function(e){if(!e)return this;if(v(e))return this.filter(function(t,r){return r.dir&&e.test(t)});var t=this.root+e,r=m.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter(function(t,r){return r.name.slice(0,e.length)===e}),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=a.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw Error("No output type specified.");a.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=d.generateWorker(this,r,n)}catch(e){(t=new o("error")).error(e)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}}},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data[this.zero+e]},i.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.length-4;0<=a;--a)if(this.data[a]===t&&this.data[a+1]===r&&this.data[a+2]===n&&this.data[a+3]===i)return a-this.zero;return -1},i.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),i=e.charCodeAt(3),a=this.readData(4);return t===a[0]&&r===a[1]&&n===a[2]&&i===a[3]},i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function i(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}i.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=i},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},i.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},i.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},i.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function i(e){n.call(this,e)}e("../utils").inherits(i,n),i.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),i=e("../support"),a=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||i.uint8array?"nodebuffer"===t?new s(e):i.uint8array?new l(n.transformTo("uint8array",e)):new a(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK\x03\x04",r.CENTRAL_FILE_HEADER="PK\x01\x02",r.CENTRAL_DIRECTORY_END="PK\x05\x06",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x06\x07",r.ZIP64_CENTRAL_DIRECTORY_END="PK\x06\x06",r.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),i=e("../utils");function a(e){n.call(this,"ConvertWorker to "+e),this.destType=e}i.inherits(a,n),a.prototype.processChunk=function(e){this.push({data:i.transformTo(this.destType,e.data),meta:e.meta})},t.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),i=e("../crc32");function a(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(a,n),a.prototype.processChunk=function(e){this.streamInfo.crc32=i(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(a,i),a.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}i.prototype.processChunk.call(this,e)},t.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),i=e("./GenericWorker");function a(e){i.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then(function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()},function(e){t.error(e)})}n.inherits(a,i),a.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}n.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",function(e){t.processChunk(e)}),e.on("end",function(){t.end()}),e.on("error",function(e){t.error(e)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),i=e("./ConvertWorker"),a=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function c(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(new i(o)),e.lock()}catch(e){this._worker=new a("error"),this._worker.error(e)}}c.prototype={accumulate:function(e){var t;return t=this,new l.Promise(function(r,i){var a=[],s=t._internalType,l=t._outputType,u=t._mimeType;t.on("data",function(t,r){a.push(t),e&&e(r)}).on("error",function(e){a=[],i(e)}).on("end",function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,i=null,a=0;for(r=0;r<t.length;r++)a+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(i=new Uint8Array(a),r=0;r<t.length;r++)i.set(t[r],n),n+=t[r].length;return i;case"nodebuffer":return tG.concat(t);default:throw Error("concat : unsupported type '"+e+"'")}}(s,a),u);r(e)}catch(e){i(e)}a=[]}).resume()})},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,function(e){t.call(r,e.data,e.meta)}):this._worker.on(e,function(){n.delay(t,arguments,r)}),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer=!0,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(n),r.blob=0===i.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),i=e("./support"),a=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return i.nodebuffer?a.newBufferFrom(e,"utf-8"):function(e){var t,r,n,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=i.uint8array?new Uint8Array(l):Array(l),a=o=0;o<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(n=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(n-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return i.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,i,a,o=e.length,l=Array(2*o);for(t=r=0;t<o;)if((i=e[t++])<128)l[r++]=i;else if(4<(a=s[i]))l[r++]=65533,t+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&t<o;)i=i<<6|63&e[t++],a--;1<a?l[r++]=65533:i<65536?l[r++]=i:(i-=65536,l[r++]=55296|i>>10&1023,l[r++]=56320|1023&i)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(i.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){var t=n.transformTo(i.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(i.uint8array){var a=t;(t=new Uint8Array(a.length+this.leftOver.length)).set(this.leftOver,0),t.set(a,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(i.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,r){var n=e("./support"),i=e("./base64"),a=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(e,t){r.checkSupport("blob");try{return new Blob([e],{type:t})}catch(r){try{var n=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return n.append(e),n.getBlob(t)}catch(e){throw Error("Bug : can't construct the Blob.")}}};var u={stringifyByChunk:function(e,t,r){var n=[],i=0,a=e.length;if(a<=r)return String.fromCharCode.apply(null,e);for(;i<a;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(i,Math.min(i+r,a)))):n.push(String.fromCharCode.apply(null,e.subarray(i,Math.min(i+r,a)))),i+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,a.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,n=r.getTypeOf(e),i=!0;if("uint8array"===n?i=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(i=u.applyCanBeUsed.nodebuffer),i)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function d(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=c;var h={};h.string={string:s,array:function(e){return l(e,Array(e.length))},arraybuffer:function(e){return h.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,a.allocBuffer(e.length))}},h.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(e)}},h.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return d(new Uint8Array(e),Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return a.newBufferFrom(new Uint8Array(e))}},h.uint8array={string:c,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return a.newBufferFrom(e)}},h.nodebuffer={string:c,array:function(e){return d(e,Array(e.length))},arraybuffer:function(e){return h.nodebuffer.uint8array(e).buffer},uint8array:function(e){return d(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){return(t=t||"",e)?(r.checkSupport(e),h[r.getTypeOf(t)][e](t)):t},r.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var i=t[n];"."===i||""===i&&0!==n&&n!==t.length-1||(".."===i?r.pop():r.push(i))}return r.join("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&a.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},r.delay=function(e,t,r){setImmediate(function(){e.apply(r||null,t||[])})},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,a,s,u){return o.Promise.resolve(t).then(function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise(function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)}):e}).then(function(t){var c,d=r.getTypeOf(t);return d?("arraybuffer"===d?t=r.transformTo("uint8array",t):"string"===d&&(u?t=i.decode(t):a&&!0!==s&&(t=l(c=t,n.uint8array?new Uint8Array(c.length):Array(c.length)))),t):o.Promise.reject(Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./signature"),o=e("./zipEntry"),s=e("./support");function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw Error("Corrupted zip or bug: unexpected signature ("+i.pretty(t)+", expected "+i.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=i.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?Error("Corrupted zip: can't find end of central directory"):Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,a.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),i=e("./utils"),a=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(Object.prototype.hasOwnProperty.call(l,t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,r,n,i=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<i;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(i)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=i.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var a=i.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)?null:o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var i=e("./stream/StreamHelper"),a=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var a=!this._dataBinary;a&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!a&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(e){(t=new l("error")).error(e)}return new i(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new a(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},d=0;d<u.length;d++)n.prototype[u[d]]=c;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,i=e.MutationObserver||e.WebKitMutationObserver;if(i){var a=0,o=new i(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),r=function(){s.data=a=++a%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,r=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;n=!0;for(var r=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}t.exports=function(e){1!==u.push(e)||n||r()}}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function i(){}var a={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==i&&f(this,e)}function c(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){n(function(){var n;try{n=t(r)}catch(t){return a.reject(e,t)}n===e?a.reject(e,TypeError("Cannot resolve promise with itself")):a.resolve(e,n)})}function h(e){var t=e&&e.then;if(e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,a.reject(e,t))}function i(t){r||(r=!0,a.resolve(e,t))}var o=p(function(){t(i,n)});"error"===o.status&&n(o.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=u).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then(function(r){return t.resolve(e()).then(function(){return r})},function(r){return t.resolve(e()).then(function(){throw r})})},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var r=new this.constructor(i);return this.state!==l?d(r,this.state===s?e:t,this.outcome):this.queue.push(new c(r,e,t)),r},c.prototype.callFulfilled=function(e){a.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){a.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},a.resolve=function(e,t){var r=p(h,t);if("error"===r.status)return a.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var i=-1,o=e.queue.length;++i<o;)e.queue[i].callFulfilled(t)}return e},a.reject=function(e,t){e.state=o,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:a.resolve(new this(i),e)},u.reject=function(e){var t=new this(i);return a.reject(t,e)},u.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var o=Array(r),s=0,l=-1,u=new this(i);++l<r;)(function(e,i){t.resolve(e).then(function(e){o[i]=e,++s!==r||n||(n=!0,a.resolve(u,o))},function(e){n||(n=!0,a.reject(u,e))})})(e[l],l);return u},u.race=function(e){if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(TypeError("must be an array"));var t,r=e.length,n=!1;if(!r)return this.resolve([]);for(var o=-1,s=new this(i);++o<r;)t=e[o],this.resolve(t).then(function(e){n||(n=!0,a.resolve(s,e))},function(e){n||(n=!0,a.reject(s,e))});return s}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString;function u(e){if(!(this instanceof u))return new u(e);this.options=i.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t,r=this.options;r.raw&&0<r.windowBits?r.windowBits=-r.windowBits:r.gzip&&0<r.windowBits&&r.windowBits<16&&(r.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var c=n.deflateInit2(this.strm,r.level,r.method,r.windowBits,r.memLevel,r.strategy);if(0!==c)throw Error(o[c]);if(r.header&&n.deflateSetHeader(this.strm,r.header),r.dictionary){if(t="string"==typeof r.dictionary?a.string2buf(r.dictionary):"[object ArrayBuffer]"===l.call(r.dictionary)?new Uint8Array(r.dictionary):r.dictionary,0!==(c=n.deflateSetDictionary(this.strm,t)))throw Error(o[c]);this._dict_set=!0}}function c(e,t){var r=new u(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}u.prototype.push=function(e,t){var r,o,s=this.strm,u=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=a.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new i.Buf8(u),s.next_out=0,s.avail_out=u),1!==(r=n.deflate(s,o))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(a.buf2binstring(i.shrinkBuf(s.output,s.next_out))):this.onData(i.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r)return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==o||(this.onEnd(0),s.avail_out=0,!0)},u.prototype.onData=function(e){this.chunks.push(e)},u.prototype.onEnd=function(e){0===e&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=u,r.deflate=c,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,c(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,c(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),i=e("./utils/common"),a=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function d(e){if(!(this instanceof d))return new d(e);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw Error(s[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function h(e,t){var r=new d(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}d.prototype.push=function(e,t){var r,s,l,u,d,h,f=this.strm,p=this.options.chunkSize,g=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=a.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new i.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&g&&(h="string"==typeof g?a.string2buf(g):"[object ArrayBuffer]"===c.call(g)?new Uint8Array(g):g,r=n.inflateSetDictionary(this.strm,h)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),this.ended=!0,!1;f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=a.utf8border(f.output,f.next_out),u=f.next_out-l,d=a.buf2string(f.output,l),f.next_out=u,f.avail_out=p-u,u&&i.arraySet(f.output,f.output,l,u,0),this.onData(d)):this.onData(i.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(m=!0)}while((0<f.avail_in||0===f.avail_out)&&r!==o.Z_STREAM_END)return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),f.avail_out=0,!0)},d.prototype.onData=function(e){this.chunks.push(e)},d.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=d,r.inflate=h,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,h(e,t)},r.ungzip=h},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=typeof r)throw TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,i){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),i);else for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){var t,r,n,i,a,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=i=0,r=e.length;t<r;t++)a=e[t],o.set(a,i),i+=a.length;return o}},a={arraySet:function(e,t,r,n,i){for(var a=0;a<n;a++)e[i+a]=t[r+a]},flattenChunks:function(e){return[].concat.apply([],e)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,i)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,a))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),i=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch(e){i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){a=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&a||!e.subarray&&i))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,i,a,o,s=e.length,l=0;for(a=0;a<s;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),a=o=0;o<l;a++)55296==(64512&(r=e.charCodeAt(a)))&&a+1<s&&56320==(64512&(i=e.charCodeAt(a+1)))&&(r=65536+(r-55296<<10)+(i-56320),a++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,i=t.length;r<i;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,i,a,s=t||e.length,u=Array(2*s);for(r=n=0;r<s;)if((i=e[r++])<128)u[n++]=i;else if(4<(a=o[i]))u[n++]=65533,r+=a-1;else{for(i&=2===a?31:3===a?15:7;1<a&&r<s;)i=i<<6|63&e[r++],a--;1<a?u[n++]=65533:i<65536?u[n++]=i:(i-=65536,u[n++]=55296|i>>10&1023,u[n++]=56320|1023&i)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0?t:0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;a=a+(i=i+t[n++]|0)|0,--o;);i%=65521,a%=65521}return i|a<<16|0}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?0xedb88320^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,i){var a=i+r;e^=-1;for(var o=i;o<a;o++)e=e>>>8^n[255&(e^t[o])];return -1^e}},{}],46:[function(e,t,r){var n,i=e("../utils/common"),a=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages");function u(e,t){return e.msg=l[t],t}function c(e){return(e<<1)-(4<e?9:0)}function d(e){for(var t=e.length;0<=--t;)e[t]=0}function h(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(i.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function f(e,t){a._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,h(e.strm)}function p(e,t){e.pending_buf[e.pending++]=t}function g(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function m(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-262?e.strstart-(e.w_size-262):0,u=e.window,c=e.w_mask,d=e.prev,h=e.strstart+258,f=u[a+o-1],p=u[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do if(u[(r=t)+o]===p&&u[r+o-1]===f&&u[r]===u[a]&&u[++r]===u[a+1]){a+=2,r++;do;while(u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&u[++a]===u[++r]&&a<h)if(n=258-(h-a),a=h-258,o<n){if(e.match_start=t,s<=(o=n))break;f=u[a+o-1],p=u[a+o]}}while((t=d[t&c])>l&&0!=--i)return o<=e.lookahead?o:e.lookahead}function v(e){var t,r,n,a,l,u,c,d,h,f,p=e.w_size;do{if(a=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-262)){for(i.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);a+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,d=e.strstart+e.lookahead,f=void 0,(h=a)<(f=u.avail_in)&&(f=h),r=0===f?0:(u.avail_in-=f,i.arraySet(c,u.input,u.next_in,f,d),1===u.state.wrap?u.adler=o(u.adler,c,f,d):2===u.state.wrap&&(u.adler=s(u.adler,c,f,d)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=3)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+3-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<3)););}while(e.lookahead<262&&0!==e.strm.avail_in)}function b(e,t){for(var r,n;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-262&&(e.match_length=m(e,r)),e.match_length>=3){if(n=a._tr_tally(e,e.strstart-e.match_start,e.match_length-3),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=3){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask}else n=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=e.strstart<2?e.strstart:2,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}function x(e,t){for(var r,n,i;;){if(e.lookahead<262){if(v(e),e.lookahead<262&&0===t)return 1;if(0===e.lookahead)break}if(r=0,e.lookahead>=3&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=2,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-262&&(e.match_length=m(e,r),e.match_length<=5&&(1===e.strategy||3===e.match_length&&4096<e.strstart-e.match_start)&&(e.match_length=2)),e.prev_length>=3&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-3,n=a._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-3),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+3-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=2,e.strstart++,n&&(f(e,!1),0===e.strm.avail_out))return 1}else if(e.match_available){if((n=a._tr_tally(e,0,e.window[e.strstart-1]))&&f(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return 1}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=a._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<2?e.strstart:2,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}function y(e,t,r,n,i){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=i}function w(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new i.Buf16(1146),this.dyn_dtree=new i.Buf16(122),this.bl_tree=new i.Buf16(78),d(this.dyn_ltree),d(this.dyn_dtree),d(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(16),this.heap=new i.Buf16(573),d(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(573),d(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function k(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=2,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?42:113,e.adler=2===t.wrap?0:1,t.last_flush=0,a._tr_init(t),0):u(e,-2)}function S(e){var t,r=k(e);return 0===r&&((t=e.state).window_size=2*t.w_size,d(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=2,t.match_available=0,t.ins_h=0),r}function C(e,t,r,n,a,o){if(!e)return -2;var s=1;if(-1===t&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),a<1||9<a||8!==r||n<8||15<n||t<0||9<t||o<0||4<o)return u(e,-2);8===n&&(n=9);var l=new w;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=a+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+3-1)/3),l.window=new i.Buf8(2*l.w_size),l.head=new i.Buf16(l.hash_size),l.prev=new i.Buf16(l.w_size),l.lit_bufsize=1<<a+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new i.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,S(e)}n=[new y(0,0,0,0,function(e,t){var r=65535;for(65535>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(v(e),0===e.lookahead&&0===t)return 1;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,f(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-262&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):(e.strstart>e.block_start&&(f(e,!1),e.strm.avail_out),1)}),new y(4,4,8,4,b),new y(4,5,16,8,b),new y(4,6,32,32,b),new y(4,4,16,16,x),new y(8,16,32,32,x),new y(8,16,128,128,x),new y(8,32,128,256,x),new y(32,128,258,1024,x),new y(32,258,258,4096,x)],r.deflateInit=function(e,t){return C(e,t,8,15,8,0)},r.deflateInit2=C,r.deflateReset=S,r.deflateResetKeep=k,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?-2:(e.state.gzhead=t,0):-2},r.deflate=function(e,t){var r,i,o,l;if(!e||!e.state||5<t||t<0)return e?u(e,-2):-2;if(i=e.state,!e.output||!e.input&&0!==e.avail_in||666===i.status&&4!==t)return u(e,0===e.avail_out?-5:-2);if(i.strm=e,r=i.last_flush,i.last_flush=t,42===i.status){if(2===i.wrap)e.adler=0,p(i,31),p(i,139),p(i,8),i.gzhead?(p(i,(i.gzhead.text?1:0)+(i.gzhead.hcrc?2:0)+(i.gzhead.extra?4:0)+(i.gzhead.name?8:0)+(i.gzhead.comment?16:0)),p(i,255&i.gzhead.time),p(i,i.gzhead.time>>8&255),p(i,i.gzhead.time>>16&255),p(i,i.gzhead.time>>24&255),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,255&i.gzhead.os),i.gzhead.extra&&i.gzhead.extra.length&&(p(i,255&i.gzhead.extra.length),p(i,i.gzhead.extra.length>>8&255)),i.gzhead.hcrc&&(e.adler=s(e.adler,i.pending_buf,i.pending,0)),i.gzindex=0,i.status=69):(p(i,0),p(i,0),p(i,0),p(i,0),p(i,0),p(i,9===i.level?2:2<=i.strategy||i.level<2?4:0),p(i,3),i.status=113);else{var m=8+(i.w_bits-8<<4)<<8;m|=(2<=i.strategy||i.level<2?0:i.level<6?1:6===i.level?2:3)<<6,0!==i.strstart&&(m|=32),m+=31-m%31,i.status=113,g(i,m),0!==i.strstart&&(g(i,e.adler>>>16),g(i,65535&e.adler)),e.adler=1}}if(69===i.status){if(i.gzhead.extra){for(o=i.pending;i.gzindex<(65535&i.gzhead.extra.length)&&(i.pending!==i.pending_buf_size||(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),h(e),o=i.pending,i.pending!==i.pending_buf_size));)p(i,255&i.gzhead.extra[i.gzindex]),i.gzindex++;i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),i.gzindex===i.gzhead.extra.length&&(i.gzindex=0,i.status=73)}else i.status=73}if(73===i.status){if(i.gzhead.name){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),h(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.name.length?255&i.gzhead.name.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l)i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.gzindex=0,i.status=91)}else i.status=91}if(91===i.status){if(i.gzhead.comment){o=i.pending;do{if(i.pending===i.pending_buf_size&&(i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),h(e),o=i.pending,i.pending===i.pending_buf_size)){l=1;break}l=i.gzindex<i.gzhead.comment.length?255&i.gzhead.comment.charCodeAt(i.gzindex++):0,p(i,l)}while(0!==l)i.gzhead.hcrc&&i.pending>o&&(e.adler=s(e.adler,i.pending_buf,i.pending-o,o)),0===l&&(i.status=103)}else i.status=103}if(103===i.status&&(i.gzhead.hcrc?(i.pending+2>i.pending_buf_size&&h(e),i.pending+2<=i.pending_buf_size&&(p(i,255&e.adler),p(i,e.adler>>8&255),e.adler=0,i.status=113)):i.status=113),0!==i.pending){if(h(e),0===e.avail_out)return i.last_flush=-1,0}else if(0===e.avail_in&&c(t)<=c(r)&&4!==t)return u(e,-5);if(666===i.status&&0!==e.avail_in)return u(e,-5);if(0!==e.avail_in||0!==i.lookahead||0!==t&&666!==i.status){var b=2===i.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(v(e),0===e.lookahead)){if(0===t)return 1;break}if(e.match_length=0,r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}(i,t):3===i.strategy?function(e,t){for(var r,n,i,o,s=e.window;;){if(e.lookahead<=258){if(v(e),e.lookahead<=258&&0===t)return 1;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=3&&0<e.strstart&&(n=s[i=e.strstart-1])===s[++i]&&n===s[++i]&&n===s[++i]){o=e.strstart+258;do;while(n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&n===s[++i]&&i<o)e.match_length=258-(o-i),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=3?(r=a._tr_tally(e,1,e.match_length-3),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=a._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(f(e,!1),0===e.strm.avail_out))return 1}return e.insert=0,4===t?(f(e,!0),0===e.strm.avail_out?3:4):e.last_lit&&(f(e,!1),0===e.strm.avail_out)?1:2}(i,t):n[i.level].func(i,t);if(3!==b&&4!==b||(i.status=666),1===b||3===b)return 0===e.avail_out&&(i.last_flush=-1),0;if(2===b&&(1===t?a._tr_align(i):5!==t&&(a._tr_stored_block(i,0,0,!1),3===t&&(d(i.head),0===i.lookahead&&(i.strstart=0,i.block_start=0,i.insert=0))),h(e),0===e.avail_out))return i.last_flush=-1,0}return 4!==t?0:i.wrap<=0?1:(2===i.wrap?(p(i,255&e.adler),p(i,e.adler>>8&255),p(i,e.adler>>16&255),p(i,e.adler>>24&255),p(i,255&e.total_in),p(i,e.total_in>>8&255),p(i,e.total_in>>16&255),p(i,e.total_in>>24&255)):(g(i,e.adler>>>16),g(i,65535&e.adler)),h(e),0<i.wrap&&(i.wrap=-i.wrap),0!==i.pending?0:1)},r.deflateEnd=function(e){var t;return e&&e.state?42!==(t=e.state.status)&&69!==t&&73!==t&&91!==t&&103!==t&&113!==t&&666!==t?u(e,-2):(e.state=null,113===t?u(e,-3):0):-2},r.deflateSetDictionary=function(e,t){var r,n,a,s,l,u,c,h,f=t.length;if(!e||!e.state||2===(s=(r=e.state).wrap)||1===s&&42!==r.status||r.lookahead)return -2;for(1===s&&(e.adler=o(e.adler,t,f,0)),r.wrap=0,f>=r.w_size&&(0===s&&(d(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new i.Buf8(r.w_size),i.arraySet(h,t,f-r.w_size,r.w_size,0),t=h,f=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=f,e.next_in=0,e.input=t,v(r);r.lookahead>=3;){for(n=r.strstart,a=r.lookahead-2;r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--a;);r.strstart=n,r.lookahead=2,v(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=s,0},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,i,a,o,s,l,u,c,d,h,f,p,g,m,v,b,x,y,w,k,S,C,A,E;r=e.state,n=e.next_in,A=e.input,i=n+(e.avail_in-5),a=e.next_out,E=e.output,o=a-(t-e.avail_out),s=a+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,d=r.wnext,h=r.window,f=r.hold,p=r.bits,g=r.lencode,m=r.distcode,v=(1<<r.lenbits)-1,b=(1<<r.distbits)-1;i:do for(p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),x=g[f&v];;){if(f>>>=y=x>>>24,p-=y,0==(y=x>>>16&255))E[a++]=65535&x;else{if(!(16&y)){if(0==(64&y)){x=g[(65535&x)+(f&(1<<y)-1)];continue}if(32&y){r.mode=12;break i}e.msg="invalid literal/length code",r.mode=30;break i}for(w=65535&x,(y&=15)&&(p<y&&(f+=A[n++]<<p,p+=8),w+=f&(1<<y)-1,f>>>=y,p-=y),p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),x=m[f&b];;){if(f>>>=y=x>>>24,p-=y,!(16&(y=x>>>16&255))){if(0==(64&y)){x=m[(65535&x)+(f&(1<<y)-1)];continue}e.msg="invalid distance code",r.mode=30;break i}if(k=65535&x,p<(y&=15)&&(f+=A[n++]<<p,(p+=8)<y&&(f+=A[n++]<<p,p+=8)),l<(k+=f&(1<<y)-1)){e.msg="invalid distance too far back",r.mode=30;break i}if(f>>>=y,p-=y,(y=a-o)<k){if(c<(y=k-y)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break i}if(C=h,(S=0)===d){if(S+=u-y,y<w){for(w-=y;E[a++]=h[S++],--y;);S=a-k,C=E}}else if(d<y){if(S+=u+d-y,(y-=d)<w){for(w-=y;E[a++]=h[S++],--y;);if(S=0,d<w){for(w-=y=d;E[a++]=h[S++],--y;);S=a-k,C=E}}}else if(S+=d-y,y<w){for(w-=y;E[a++]=h[S++],--y;);S=a-k,C=E}for(;2<w;)E[a++]=C[S++],E[a++]=C[S++],E[a++]=C[S++],w-=3;w&&(E[a++]=C[S++],1<w&&(E[a++]=C[S++]))}else{for(S=a-k;E[a++]=E[S++],E[a++]=E[S++],E[a++]=E[S++],2<(w-=3););w&&(E[a++]=E[S++],1<w&&(E[a++]=E[S++]))}break}}break}while(n<i&&a<s)n-=w=p>>3,f&=(1<<(p-=w<<3))-1,e.next_in=n,e.next_out=a,e.avail_in=n<i?i-n+5:5-(n-i),e.avail_out=a<s?s-a+257:257-(a-s),r.hold=f,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),i=e("./adler32"),a=e("./crc32"),o=e("./inffast"),s=e("./inftrees");function l(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function u(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function c(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=1,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(852),t.distcode=t.distdyn=new n.Buf32(592),t.sane=1,t.back=-1,0):-2}function d(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,c(e)):-2}function h(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?-2:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,d(e))):-2}function f(e,t){var r,n;return e?(n=new u,(e.state=n).window=null,0!==(r=h(e,t))&&(e.state=null),r):-2}var p,g,m=!0;function v(e,t,r,i){var a,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),i>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i<(a=o.wsize-o.wnext)&&(a=i),n.arraySet(o.window,t,r-i,a,o.wnext),(i-=a)?(n.arraySet(o.window,t,r-i,i,0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=a))),0}r.inflateReset=d,r.inflateReset2=h,r.inflateResetKeep=c,r.inflateInit=function(e){return f(e,15)},r.inflateInit2=f,r.inflate=function(e,t){var r,u,c,d,h,f,b,x,y,w,k,S,C,A,E,_,T,P,O,M,I,L,R,N,z=0,D=new n.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return -2;12===(r=e.state).mode&&(r.mode=13),h=e.next_out,c=e.output,b=e.avail_out,d=e.next_in,u=e.input,f=e.avail_in,x=r.hold,y=r.bits,w=f,k=b,L=0;i:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;y<16;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(2&r.wrap&&35615===x){D[r.check=0]=255&x,D[1]=x>>>8&255,r.check=a(r.check,D,2,0),y=x=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&x)<<8)+(x>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&x)){e.msg="unknown compression method",r.mode=30;break}if(y-=4,I=8+(15&(x>>>=4)),0===r.wbits)r.wbits=I;else if(I>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<I,e.adler=r.check=1,r.mode=512&x?10:12,y=x=0;break;case 2:for(;y<16;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(r.flags=x,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=x>>8&1),512&r.flags&&(D[0]=255&x,D[1]=x>>>8&255,r.check=a(r.check,D,2,0)),y=x=0,r.mode=3;case 3:for(;y<32;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.head&&(r.head.time=x),512&r.flags&&(D[0]=255&x,D[1]=x>>>8&255,D[2]=x>>>16&255,D[3]=x>>>24&255,r.check=a(r.check,D,4,0)),y=x=0,r.mode=4;case 4:for(;y<16;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.head&&(r.head.xflags=255&x,r.head.os=x>>8),512&r.flags&&(D[0]=255&x,D[1]=x>>>8&255,r.check=a(r.check,D,2,0)),y=x=0,r.mode=5;case 5:if(1024&r.flags){for(;y<16;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.length=x,r.head&&(r.head.extra_len=x),512&r.flags&&(D[0]=255&x,D[1]=x>>>8&255,r.check=a(r.check,D,2,0)),y=x=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(f<(S=r.length)&&(S=f),S&&(r.head&&(I=r.head.extra_len-r.length,r.head.extra||(r.head.extra=Array(r.head.extra_len)),n.arraySet(r.head.extra,u,d,S,I)),512&r.flags&&(r.check=a(r.check,u,S,d)),f-=S,d+=S,r.length-=S),r.length))break i;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===f)break i;for(S=0;I=u[d+S++],r.head&&I&&r.length<65536&&(r.head.name+=String.fromCharCode(I)),I&&S<f;);if(512&r.flags&&(r.check=a(r.check,u,S,d)),f-=S,d+=S,I)break i}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===f)break i;for(S=0;I=u[d+S++],r.head&&I&&r.length<65536&&(r.head.comment+=String.fromCharCode(I)),I&&S<f;);if(512&r.flags&&(r.check=a(r.check,u,S,d)),f-=S,d+=S,I)break i}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;y<16;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(x!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}y=x=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;y<32;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}e.adler=r.check=l(x),y=x=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=h,e.avail_out=b,e.next_in=d,e.avail_in=f,r.hold=x,r.bits=y,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break i;case 13:if(r.last){x>>>=7&y,y-=7&y,r.mode=27;break}for(;y<3;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}switch(r.last=1&x,y-=1,3&(x>>>=1)){case 0:r.mode=14;break;case 1:if(function(e){if(m){var t;for(p=new n.Buf32(512),g=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(1,e.lens,0,288,p,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(2,e.lens,0,32,g,0,e.work,{bits:5}),m=!1}e.lencode=p,e.lenbits=9,e.distcode=g,e.distbits=5}(r),r.mode=20,6!==t)break;x>>>=2,y-=2;break i;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}x>>>=2,y-=2;break;case 14:for(x>>>=7&y,y-=7&y;y<32;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if((65535&x)!=(x>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&x,y=x=0,r.mode=15,6===t)break i;case 15:r.mode=16;case 16:if(S=r.length){if(f<S&&(S=f),b<S&&(S=b),0===S)break i;n.arraySet(c,u,d,S,h),f-=S,d+=S,b-=S,h+=S,r.length-=S;break}r.mode=12;break;case 17:for(;y<14;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(r.nlen=257+(31&x),x>>>=5,y-=5,r.ndist=1+(31&x),x>>>=5,y-=5,r.ncode=4+(15&x),x>>>=4,y-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;y<3;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.lens[F[r.have++]]=7&x,x>>>=3,y-=3}for(;r.have<19;)r.lens[F[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,R={bits:r.lenbits},L=s(0,r.lens,0,19,r.lencode,0,r.work,R),r.lenbits=R.bits,L){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;_=(z=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,T=65535&z,!((E=z>>>24)<=y);){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(T<16)x>>>=E,y-=E,r.lens[r.have++]=T;else{if(16===T){for(N=E+2;y<N;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(x>>>=E,y-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}I=r.lens[r.have-1],S=3+(3&x),x>>>=2,y-=2}else if(17===T){for(N=E+3;y<N;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}y-=E,I=0,S=3+(7&(x>>>=E)),x>>>=3,y-=3}else{for(N=E+7;y<N;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}y-=E,I=0,S=11+(127&(x>>>=E)),x>>>=7,y-=7}if(r.have+S>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;S--;)r.lens[r.have++]=I}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,R={bits:r.lenbits},L=s(1,r.lens,0,r.nlen,r.lencode,0,r.work,R),r.lenbits=R.bits,L){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,R={bits:r.distbits},L=s(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,R),r.distbits=R.bits,L){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break i;case 20:r.mode=21;case 21:if(6<=f&&258<=b){e.next_out=h,e.avail_out=b,e.next_in=d,e.avail_in=f,r.hold=x,r.bits=y,o(e,k),h=e.next_out,c=e.output,b=e.avail_out,d=e.next_in,u=e.input,f=e.avail_in,x=r.hold,y=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;_=(z=r.lencode[x&(1<<r.lenbits)-1])>>>16&255,T=65535&z,!((E=z>>>24)<=y);){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(_&&0==(240&_)){for(P=E,O=_,M=T;_=(z=r.lencode[M+((x&(1<<P+O)-1)>>P)])>>>16&255,T=65535&z,!(P+(E=z>>>24)<=y);){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}x>>>=P,y-=P,r.back+=P}if(x>>>=E,y-=E,r.back+=E,r.length=T,0===_){r.mode=26;break}if(32&_){r.back=-1,r.mode=12;break}if(64&_){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&_,r.mode=22;case 22:if(r.extra){for(N=r.extra;y<N;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.length+=x&(1<<r.extra)-1,x>>>=r.extra,y-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;_=(z=r.distcode[x&(1<<r.distbits)-1])>>>16&255,T=65535&z,!((E=z>>>24)<=y);){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(0==(240&_)){for(P=E,O=_,M=T;_=(z=r.distcode[M+((x&(1<<P+O)-1)>>P)])>>>16&255,T=65535&z,!(P+(E=z>>>24)<=y);){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}x>>>=P,y-=P,r.back+=P}if(x>>>=E,y-=E,r.back+=E,64&_){e.msg="invalid distance code",r.mode=30;break}r.offset=T,r.extra=15&_,r.mode=24;case 24:if(r.extra){for(N=r.extra;y<N;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}r.offset+=x&(1<<r.extra)-1,x>>>=r.extra,y-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===b)break i;if(S=k-b,r.offset>S){if((S=r.offset-S)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}C=S>r.wnext?(S-=r.wnext,r.wsize-S):r.wnext-S,S>r.length&&(S=r.length),A=r.window}else A=c,C=h-r.offset,S=r.length;for(b<S&&(S=b),b-=S,r.length-=S;c[h++]=A[C++],--S;);0===r.length&&(r.mode=21);break;case 26:if(0===b)break i;c[h++]=r.length,b--,r.mode=21;break;case 27:if(r.wrap){for(;y<32;){if(0===f)break i;f--,x|=u[d++]<<y,y+=8}if(k-=b,e.total_out+=k,r.total+=k,k&&(e.adler=r.check=r.flags?a(r.check,c,k,h-k):i(r.check,c,k,h-k)),k=b,(r.flags?x:l(x))!==r.check){e.msg="incorrect data check",r.mode=30;break}y=x=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;y<32;){if(0===f)break i;f--,x+=u[d++]<<y,y+=8}if(x!==(0xffffffff&r.total)){e.msg="incorrect length check",r.mode=30;break}y=x=0}r.mode=29;case 29:L=1;break i;case 30:L=-3;break i;case 31:return -4;default:return -2}return e.next_out=h,e.avail_out=b,e.next_in=d,e.avail_in=f,r.hold=x,r.bits=y,(r.wsize||k!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&v(e,e.output,e.next_out,k-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,k-=e.avail_out,e.total_in+=w,e.total_out+=k,r.total+=k,r.wrap&&k&&(e.adler=r.check=r.flags?a(r.check,c,k,e.next_out-k):i(r.check,c,k,e.next_out-k)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===k||4===t)&&0===L&&(L=-5),L)},r.inflateEnd=function(e){if(!e||!e.state)return -2;var t=e.state;return t.window&&(t.window=null),e.state=null,0},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?-2:((r.head=t).done=!1,0):-2},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?-2:11===r.mode&&i(1,t,n,0)!==r.check?-3:v(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,0):-2},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,u,c,d,h){var f,p,g,m,v,b,x,y,w,k=h.bits,S=0,C=0,A=0,E=0,_=0,T=0,P=0,O=0,M=0,I=0,L=null,R=0,N=new n.Buf16(16),z=new n.Buf16(16),D=null,F=0;for(S=0;S<=15;S++)N[S]=0;for(C=0;C<l;C++)N[t[r+C]]++;for(_=k,E=15;1<=E&&0===N[E];E--);if(E<_&&(_=E),0===E)return u[c++]=0x1400000,u[c++]=0x1400000,h.bits=1,0;for(A=1;A<E&&0===N[A];A++);for(_<A&&(_=A),S=O=1;S<=15;S++)if(O<<=1,(O-=N[S])<0)return -1;if(0<O&&(0===e||1!==E))return -1;for(z[1]=0,S=1;S<15;S++)z[S+1]=z[S]+N[S];for(C=0;C<l;C++)0!==t[r+C]&&(d[z[t[r+C]]++]=C);if(b=0===e?(L=D=d,19):1===e?(L=i,R-=257,D=a,F-=257,256):(L=o,D=s,-1),S=A,v=c,P=C=I=0,g=-1,m=(M=1<<(T=_))-1,1===e&&852<M||2===e&&592<M)return 1;for(;;){for(x=S-P,w=d[C]<b?(y=0,d[C]):d[C]>b?(y=D[F+d[C]],L[R+d[C]]):(y=96,0),f=1<<S-P,A=p=1<<T;u[v+(I>>P)+(p-=f)]=x<<24|y<<16|w|0,0!==p;);for(f=1<<S-1;I&f;)f>>=1;if(0!==f?(I&=f-1,I+=f):I=0,C++,0==--N[S]){if(S===E)break;S=t[r+d[C]]}if(_<S&&(I&m)!==g){for(0===P&&(P=_),v+=A,O=1<<(T=S-P);T+P<E&&!((O-=N[T+P])<=0);)T++,O<<=1;if(M+=1<<T,1===e&&852<M||2===e&&592<M)return 1;u[g=I&m]=_<<24|T<<16|v-c|0}}return 0!==I&&(u[v+I]=S-P<<24|4194304),h.bits=_,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common");function i(e){for(var t=e.length;0<=--t;)e[t]=0}var a=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],o=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],s=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],l=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],u=Array(576);i(u);var c=Array(60);i(c);var d=Array(512);i(d);var h=Array(256);i(h);var f=Array(29);i(f);var p,g,m,v=Array(30);function b(e,t,r,n,i){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=e&&e.length}function x(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function y(e){return e<256?d[e]:d[256+(e>>>7)]}function w(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function k(e,t,r){e.bi_valid>16-r?(e.bi_buf|=t<<e.bi_valid&65535,w(e,e.bi_buf),e.bi_buf=t>>16-e.bi_valid,e.bi_valid+=r-16):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function S(e,t,r){k(e,r[2*t],r[2*t+1])}function C(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function A(e,t,r){var n,i,a=Array(16),o=0;for(n=1;n<=15;n++)a[n]=o=o+r[n-1]<<1;for(i=0;i<=t;i++){var s=e[2*i+1];0!==s&&(e[2*i]=C(a[s]++,s))}}function E(e){var t;for(t=0;t<286;t++)e.dyn_ltree[2*t]=0;for(t=0;t<30;t++)e.dyn_dtree[2*t]=0;for(t=0;t<19;t++)e.bl_tree[2*t]=0;e.dyn_ltree[512]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function _(e){8<e.bi_valid?w(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function T(e,t,r,n){var i=2*t,a=2*r;return e[i]<e[a]||e[i]===e[a]&&n[t]<=n[r]}function P(e,t,r){for(var n=e.heap[r],i=r<<1;i<=e.heap_len&&(i<e.heap_len&&T(t,e.heap[i+1],e.heap[i],e.depth)&&i++,!T(t,n,e.heap[i],e.depth));)e.heap[r]=e.heap[i],r=i,i<<=1;e.heap[r]=n}function O(e,t,r){var n,i,s,l,u=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*u]<<8|e.pending_buf[e.d_buf+2*u+1],i=e.pending_buf[e.l_buf+u],u++,0===n?S(e,i,t):(S(e,(s=h[i])+256+1,t),0!==(l=a[s])&&k(e,i-=f[s],l),S(e,s=y(--n),r),0!==(l=o[s])&&k(e,n-=v[s],l)),u<e.last_lit;);S(e,256,t)}function M(e,t){var r,n,i,a=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=573,r=0;r<l;r++)0!==a[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):a[2*r+1]=0;for(;e.heap_len<2;)a[2*(i=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[i]=0,e.opt_len--,s&&(e.static_len-=o[2*i+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)P(e,a,r);for(i=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],P(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,P(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,i,a,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,d=t.stat_desc.has_stree,h=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,g=0;for(a=0;a<=15;a++)e.bl_count[a]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<573;r++)p<(a=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(a=p,g++),l[2*n+1]=a,u<n||(e.bl_count[a]++,o=0,f<=n&&(o=h[n-f]),s=l[2*n],e.opt_len+=s*(a+o),d&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(a=p-1;0===e.bl_count[a];)a--;e.bl_count[a]--,e.bl_count[a+1]+=2,e.bl_count[p]--,g-=2}while(0<g)for(a=p;0!==a;a--)for(n=e.bl_count[a];0!==n;)u<(i=e.heap[--r])||(l[2*i+1]!==a&&(e.opt_len+=(a-l[2*i+1])*l[2*i],l[2*i+1]=a),n--)}}(e,t),A(a,u,e.bl_count)}function I(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)i=o,o=t[2*(n+1)+1],++s<l&&i===o||(s<u?e.bl_tree[2*i]+=s:0!==i?(i!==a&&e.bl_tree[2*i]++,e.bl_tree[32]++):s<=10?e.bl_tree[34]++:e.bl_tree[36]++,a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4))}function L(e,t,r){var n,i,a=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(i=o,o=t[2*(n+1)+1],!(++s<l&&i===o)){if(s<u)for(;S(e,i,e.bl_tree),0!=--s;);else 0!==i?(i!==a&&(S(e,i,e.bl_tree),s--),S(e,16,e.bl_tree),k(e,s-3,2)):s<=10?(S(e,17,e.bl_tree),k(e,s-3,3)):(S(e,18,e.bl_tree),k(e,s-11,7));a=i,u=(s=0)===o?(l=138,3):i===o?(l=6,3):(l=7,4)}}i(v);var R=!1;function N(e,t,r,i){k(e,0+(i?1:0),3),_(e),w(e,r),w(e,~r),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}r._tr_init=function(e){R||(function(){var e,t,r,n,i,l=Array(16);for(n=r=0;n<28;n++)for(f[n]=r,e=0;e<1<<a[n];e++)h[r++]=n;for(h[r-1]=n,n=i=0;n<16;n++)for(v[n]=i,e=0;e<1<<o[n];e++)d[i++]=n;for(i>>=7;n<30;n++)for(v[n]=i<<7,e=0;e<1<<o[n]-7;e++)d[256+i++]=n;for(t=0;t<=15;t++)l[t]=0;for(e=0;e<=143;)u[2*e+1]=8,e++,l[8]++;for(;e<=255;)u[2*e+1]=9,e++,l[9]++;for(;e<=279;)u[2*e+1]=7,e++,l[7]++;for(;e<=287;)u[2*e+1]=8,e++,l[8]++;for(A(u,287,l),e=0;e<30;e++)c[2*e+1]=5,c[2*e]=C(e,5);p=new b(u,a,257,286,15),g=new b(c,o,0,30,15),m=new b([],s,0,19,7)}(),R=!0),e.l_desc=new x(e.dyn_ltree,p),e.d_desc=new x(e.dyn_dtree,g),e.bl_desc=new x(e.bl_tree,m),e.bi_buf=0,e.bi_valid=0,E(e)},r._tr_stored_block=N,r._tr_flush_block=function(e,t,r,n){var i,a,o=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=0xf3ffc07f;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t<256;t++)if(0!==e.dyn_ltree[2*t])return 1;return 0}(e)),M(e,e.l_desc),M(e,e.d_desc),o=function(e){var t;for(I(e,e.dyn_ltree,e.l_desc.max_code),I(e,e.dyn_dtree,e.d_desc.max_code),M(e,e.bl_desc),t=18;3<=t&&0===e.bl_tree[2*l[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),i=e.opt_len+3+7>>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?N(e,t,r,n):4===e.strategy||a===i?(k(e,2+(n?1:0),3),O(e,u,c)):(k(e,4+(n?1:0),3),function(e,t,r,n){var i;for(k(e,t-257,5),k(e,r-1,5),k(e,n-4,4),i=0;i<n;i++)k(e,e.bl_tree[2*l[i]+1],3);L(e,e.dyn_ltree,t-1),L(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,o+1),O(e,e.dyn_ltree,e.dyn_dtree)),E(e),n&&_(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(h[r]+256+1)]++,e.dyn_dtree[2*y(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){k(e,2,3),S(e,256,u),16===e.bi_valid?(w(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(e,t,r){(function(e){!function(e,t){if(!e.setImmediate){var r,n,i,a,o=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,r="[object process]"===({}).toString.call(e.process)?function(e){rs.nextTick(function(){h(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((i=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){i.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(a+t,"*")}),c.setImmediate=function(e){"function"!=typeof e&&(e=Function(""+e));for(var t=Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return s[o]=i,r(o),o++},c.clearImmediate=d}function d(e){delete s[e]}function h(e){if(l)setTimeout(h,0,e);else{var r=s[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{d(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==n?n:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10);const rl=".json",ru=()=>Date.now().toString();tz.exportRawDataToJSON=(e,t)=>{let r=ru(),n=`${e}_${r}${rl}`,i=new Blob([JSON.stringify(t)],{type:"text/plain;charset=utf-8"});(0,tD.saveAs)(i,n)},tz.exportRawDataToZIP=e=>{let t=new tF,r=ru();e.forEach(e=>{let n=`${e.name}_${r}${rl}`;t.file(n,JSON.stringify(e))}),t.generateAsync({type:"blob"}).then(e=>{(0,tD.saveAs)(e,`results_${r}.zip`)})};var rc={},rd=rc&&rc.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),rh=rc&&rc.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rf=rc&&rc.__importStar||(oU=function(e){return(oU=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oU(e),n=0;n<r.length;n++)"default"!==r[n]&&rd(t,e,r[n]);return rh(t,e),t});Object.defineProperty(rc,"__esModule",{value:!0}),rc.IterationSelector=rc.ITERATION_SELECTOR_HEIGHT=rc.useIterationSelector=void 0;var rp=u("bbT5Q"),d=u("ayMG0"),rg=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNewOutlined"),rp=u("bbT5Q"),d=u("ayMG0"),rm=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"M6.23 20.23 8 22l10-10L8 2 6.23 3.77 14.46 12z"}),"ArrowForwardIosOutlined");const rv=rf(u("acw62"));var rb={},rx=rb&&rb.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rb,"__esModule",{value:!0}),rb.Switch=void 0;const ry=rx(u("acw62"));rb.Switch=({value:e,onChange:t,accessibilityLabel:r,color:n})=>ry.default.createElement("label",{className:"inline-flex relative items-center cursor-pointer"},ry.default.createElement("input",{type:"checkbox",className:"sr-only peer",checked:e,onChange:()=>t(!e),"aria-label":r}),ry.default.createElement("div",{className:"w-11 h-6 bg-gray-200 rounded-full peer dark:bg-gray-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-0.5 after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-theme-color",style:{backgroundColor:e?n:void 0}})),rc.useIterationSelector=e=>{let[t,r]=(0,rv.useState)(0),[n,i]=(0,rv.useState)(!0);return{iterationIndex:t,showAverage:n,setShowAverage:i,goToPreviousIteration:()=>r((e+t-1)%e),goToNextIteration:()=>r((t+1)%e)}},rc.ITERATION_SELECTOR_HEIGHT=50;const rw=({children:e})=>rv.default.createElement(rv.default.Fragment,null,rv.default.createElement("div",{style:{height:rc.ITERATION_SELECTOR_HEIGHT}}),rv.default.createElement("div",{className:"bg-dark-charcoal fixed items-center justify-center flex w-full bottom-0 left-0 right-0 shadow-lg z-50",style:{height:rc.ITERATION_SELECTOR_HEIGHT,boxShadow:`0px 0px ${rc.ITERATION_SELECTOR_HEIGHT/2}px 0px rgb(19 19 19)`}},e));rc.IterationSelector=({iterationCount:e,iterationIndex:t,showAverage:r,setShowAverage:n,goToPreviousIteration:i,goToNextIteration:a})=>e<=1?null:rv.default.createElement(rw,null,rv.default.createElement(rb.Switch,{value:r,onChange:n,accessibilityLabel:r?"Show each iteration individually":"Show average"}),rv.default.createElement("div",{className:"w-4"}),!r&&rv.default.createElement("button",{"aria-label":"See previous iteration",onClick:i,className:"ml-2 mr-2"},rv.default.createElement(rg,{className:"text-theme-color"})),rv.default.createElement("div",{className:"text-[#8B8B8B] font-medium"},r?`Showing average of ${e} test iterations`:rv.default.createElement("span",null,"Iteration ",rv.default.createElement("span",{style:{fontWeight:"bold"}},t+1),"/",rv.default.createElement("span",{style:{fontWeight:"bold"}},e))),!r&&rv.default.createElement("button",{onClick:a,"aria-label":"See next iteration",className:"ml-2 mr-2"},rv.default.createElement(rm,{className:"text-theme-color"})));var rk={},rS=rk&&rk.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),rC=rk&&rk.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rA=rk&&rk.__importStar||(oV=function(e){return(oV=Object.getOwnPropertyNames||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[t.length]=r);return t})(e)},function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r=oV(e),n=0;n<r.length;n++)"default"!==r[n]&&rS(t,e,r[n]);return rC(t,e),t});Object.defineProperty(rk,"__esModule",{value:!0}),rk.VideoSection=void 0;const rE=rA(u("acw62"));var r_={},rT=r_&&r_.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r_,"__esModule",{value:!0}),r_.Button=void 0;const rP=rT(u("acw62"));r_.Button=({children:e,onClick:t,disabled:r,className:n,icon:i})=>{let a=["text-sm font-medium px-4 py-2 rounded bg-theme-color shadow-theme-color",r?"opacity-30":"shadow-glow text-black",n||"",i?"flex items-center":""];return rP.default.createElement("button",{onClick:t,disabled:r,className:`${a.join(" ")}`},i&&rP.default.createElement("span",{className:"mr-1"},i),e)};var z=u("idOT2");const rO=(e="")=>{if(e.startsWith("http"))return e;let t=e.split("/");return 1===t.length?e:t[t.length-1]},rM=(0,rE.forwardRef)(({video:e},t)=>{let r=(0,rE.useRef)(null);return(0,rE.useImperativeHandle)(t,()=>({play:()=>{let e=r.current;e&&e.play()}})),(0,V.useListenToVideoCurrentTime)((0,rE.useCallback)(t=>{let n=r.current;n&&(n.currentTime=(t+e.startOffset)/1e3)},[e.startOffset])),rE.default.createElement("div",{className:"flex flex-1 relative"},rE.default.createElement("video",{ref:r,controls:!0,className:"bg-black w-full h-full absolute top-0 bottom-0 left-0 right-0"},rE.default.createElement("source",{src:rO(e.path),type:"video/mp4"})))});rk.VideoSection=({results:e})=>{let t=e.map(()=>rE.default.createRef()),[r,n]=(0,rE.useState)(!1),i=()=>{(0,V.setVideoCurrentTime)(-500)},a=()=>{t.forEach(e=>{e.current&&e.current.play()})};return(0,rE.useEffect)(()=>{i()},[]),rE.default.createElement("div",{className:`flex flex-row flex-nowrap h-full justify-center bg-dark-charcoal overflow-auto py-8 flex-shrink-0 transition-[max-width] ${r?"max-w-[24px]":"max-w-[50vw]"}`},rE.default.createElement("div",{className:"self-center py-8 cursor-pointer",onClick:()=>n(e=>!e)},rE.default.createElement(z.ArrowDownIcon,{size:24,className:`transition-transform ease-linear ${r?"rotate-90":"-rotate-90"}`})),rE.default.createElement("div",{className:"flex flex-col justify-center overflow-hidden"},rE.default.createElement("div",{className:"flex flex-row"},e.length>1?rE.default.createElement("div",{className:"flex flex-row"},rE.default.createElement(r_.Button,{onClick:e=>{e.stopPropagation(),i()}},"Reset"),rE.default.createElement("div",{className:"w-2"}),rE.default.createElement(r_.Button,{onClick:e=>{e.stopPropagation(),a()}},"Play all")):null),rE.default.createElement("div",{className:"flex flex-1 flex-row max-h-[600px] gap-4 overflow-scroll pr-6"},e.map(({name:r,iterations:[n]},i)=>{let a=n.videoInfos;return rE.default.createElement("div",{key:i,style:{width:300},className:"flex flex-col"},e.length>1?rE.default.createElement("h6",{className:"text-white truncate m-1"},r):null,a?rE.default.createElement(rM,{video:Object.assign(Object.assign({},a),{startOffset:a.startOffset+n.measures[0].time/2}),key:a.path,ref:t[i]}):null)}))))};const rI=ti.default.div`
|
|
86
|
+
height: 10px;
|
|
87
|
+
`,rL=(0,tc.default)({typography:{fontFamily:"open-sans,Roboto,Helvetica,Arial,sans-serif",fontWeightBold:600}}),rR=({results:e,additionalMenuOptions:t})=>{let r=(0,ed.mapThreadNames)(e),n=(0,x.useMemo)(()=>r.map(e=>new _.Report(e)),[r]),i=Math.min(...n.map(e=>e.getIterationCount())),a=(0,rc.useIterationSelector)(i),o=a.showAverage?n:n.map(e=>e.selectIteration(a.iterationIndex)),s=o.map(e=>e.getAveragedResult()),l=!!o.some(e=>e.hasVideos()),u=o[0].hasMeasures();return x.default.createElement(x.default.Fragment,null,x.default.createElement(V.VideoEnabledContext.Provider,{value:l},x.default.createElement("div",{className:"flex flex-row w-full h-[calc(100%-50px)] overflow-y-hidden"},x.default.createElement("div",{className:"overflow-auto w-full"},x.default.createElement(t_.Header,{menuOptions:[{label:"Save all as ZIP",icon:x.default.createElement(tu.default,{fontSize:"small"}),onClick:()=>{(0,tz.exportRawDataToZIP)(r)}},...t||[]]}),x.default.createElement(rI,null),x.default.createElement(eA.ReportSummary,{reports:o}),x.default.createElement("div",{className:"h-16"}),u?x.default.createElement(x.default.Fragment,null,x.default.createElement(e3.HideSectionIfUndefinedValueFound,null,x.default.createElement("div",{className:"mx-8 p-6 bg-dark-charcoal border border-gray-800 rounded-lg"},x.default.createElement(ta.FPSReport,{results:s})),x.default.createElement("div",{className:"h-10"})),x.default.createElement("div",{className:"mx-8 p-6 bg-dark-charcoal border border-gray-800 rounded-lg"},x.default.createElement(w.CPUReport,{results:s})),x.default.createElement("div",{className:"h-10"}),x.default.createElement("div",{className:"mx-8 p-6 bg-dark-charcoal border border-gray-800 rounded-lg"},x.default.createElement(e1.RAMReport,{results:s})),x.default.createElement("div",{className:"h-10"}),x.default.createElement(e3.HideSectionIfUndefinedValueFound,{key:s.flatMap(e=>e.average.measures).some(e=>e.tpn&&e.tpn.length>0)?"tpn-has-data":"tpn-no-data"},x.default.createElement("div",{className:"mx-8 p-6 bg-dark-charcoal border border-gray-800 rounded-lg"},x.default.createElement(e7.TPNReport,{results:s})))):null),l?x.default.createElement(rk.VideoSection,{results:s}):null)),x.default.createElement(rc.IterationSelector,Object.assign({},a,{iterationCount:i})))};p.IterationsReporterView=({results:e,additionalMenuOptions:t})=>e.length>0?x.default.createElement(tE,{theme:rL},x.default.createElement(rR,{results:e,additionalMenuOptions:t})):null,p.ReporterView=({measures:e})=>x.default.createElement(x.default.Fragment,null,e.length>1?x.default.createElement(p.IterationsReporterView,{results:[{name:"Results",status:"SUCCESS",iterations:[{measures:e,time:e.length*y.POLLING_INTERVAL,status:"SUCCESS"}]}]}):null),Object.defineProperty(f,"IterationsReporterView",{enumerable:!0,get:function(){return p.IterationsReporterView}}),Object.defineProperty(f,"ReporterView",{enumerable:!0,get:function(){return p.ReporterView}});var rN={},rz=rN&&rN.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(rN,"__esModule",{value:!0}),rN.PageBackground=void 0;const rD=rz(u("acw62"));rN.PageBackground=()=>rD.default.createElement("div",{className:"bg-gradient-radial fixed inset-0 -z-10"}),Object.defineProperty(f,"PageBackground",{enumerable:!0,get:function(){return rN.PageBackground}}),Object.defineProperty(f,"Button",{enumerable:!0,get:function(){return r_.Button}}),Object.defineProperty(f,"getThemeColorPalette",{enumerable:!0,get:function(){return F.getThemeColorPalette}}),Object.defineProperty(f,"setThemeAtRandom",{enumerable:!0,get:function(){return F.setThemeAtRandom}}),Object.defineProperty(f,"Chart",{enumerable:!0,get:function(){return ei.Chart}});var d=u("ayMG0");u("acw62");var d=u("ayMG0");u("acw62");var rF=u("cpmCj"),rB=u("1jJMI");function rj(e,t){return e=function e(t){let r;if(t.type)return t;if("#"===t.charAt(0))return e(function(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(e=>e+e)),r?`rgb${4===r.length?"a":""}(${r.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(", ")})`:""}(t));let n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(i))throw Error((0,rF.default)(9,t));let a=t.substring(n+1,t.length-1);if("color"===i){if(r=(a=a.split(" ")).shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw Error((0,rF.default)(10,r))}else a=a.split(",");return{type:i,values:a=a.map(e=>parseFloat(e)),colorSpace:r}}(e),t=function(e,t=0,r=1){return(0,rB.default)(e,t,r)}(t),("rgb"===e.type||"hsl"===e.type)&&(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){let{type:t,colorSpace:r}=e,{values:n}=e;return -1!==t.indexOf("rgb")?n=n.map((e,t)=>t<3?parseInt(e,10):e):-1!==t.indexOf("hsl")&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),n=-1!==t.indexOf("color")?`${r} ${n.join(" ")}`:`${n.join(", ")}`,`${t}(${n})`}(e)}var rW=u("d8seH"),th=u("1En50"),td=u("8nd05"),rF=u("cpmCj"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),rY=u("awhpc"),td=u("8nd05"),th=u("1En50"),ee=u("acw62"),rU=u("aJ8G8"),rV=u("9KvVX"),rG=u("eEJPp"),r$=u("3qSdM"),d=u("ayMG0");const rq=["onChange","maxRows","minRows","style","value"];function rZ(e){return parseInt(e,10)||0}const rK={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"},rQ=/*#__PURE__*/ee.forwardRef(function(e,t){let{onChange:r,maxRows:n,minRows:i=1,style:a,value:o}=e,s=(0,th.default)(e,rq),{current:l}=ee.useRef(null!=o),u=ee.useRef(null),c=(0,r$.default)(t,u),h=ee.useRef(null),f=ee.useRef(null),p=ee.useCallback(()=>{let t=u.current,r=(0,rV.default)(t).getComputedStyle(t);if("0px"===r.width)return{outerHeightStyle:0,overflowing:!1};let a=f.current;a.style.width=r.width,a.value=t.value||e.placeholder||"x","\n"===a.value.slice(-1)&&(a.value+=" ");let o=r.boxSizing,s=rZ(r.paddingBottom)+rZ(r.paddingTop),l=rZ(r.borderBottomWidth)+rZ(r.borderTopWidth),c=a.scrollHeight;a.value="x";let d=a.scrollHeight,h=c;return i&&(h=Math.max(Number(i)*d,h)),n&&(h=Math.min(Number(n)*d,h)),{outerHeightStyle:(h=Math.max(h,d))+("border-box"===o?s+l:0),overflowing:1>=Math.abs(h-c)}},[n,i,e.placeholder]),g=ee.useCallback(()=>{let e=p();if(null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflowing)return;let t=e.outerHeightStyle,r=u.current;h.current!==t&&(h.current=t,r.style.height=`${t}px`),r.style.overflow=e.overflowing?"hidden":""},[p]);return(0,rG.default)(()=>{let e,t;let r=()=>{g()},n=(0,rU.default)(r),i=u.current,a=(0,rV.default)(i);return a.addEventListener("resize",n),"undefined"!=typeof ResizeObserver&&(t=new ResizeObserver(r)).observe(i),()=>{n.clear(),cancelAnimationFrame(e),a.removeEventListener("resize",n),t&&t.disconnect()}},[p,g]),(0,rG.default)(()=>{g()}),/*#__PURE__*/(0,d.jsxs)(ee.Fragment,{children:[/*#__PURE__*/(0,d.jsx)("textarea",(0,td.default)({value:o,onChange:e=>{l||g(),r&&r(e)},ref:c,rows:i,style:a},s)),/*#__PURE__*/(0,d.jsx)("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:(0,td.default)({},rK,a,{paddingTop:0,paddingBottom:0})})]})});var rJ=u("blr6C"),r0=u("cJQfW"),rW=u("d8seH"),r1=u("1iOpW"),r2=u("jTnBY"),r5=u("9Rgf1"),r3=u("khjmj"),td=u("8nd05");u("acw62"),u("acw62");var r4=u("bBbjn"),r6=u("7HKeb"),d=u("ayMG0"),r8=function({styles:e,themeId:t,defaultTheme:r={}}){let n=(0,r6.default)(r),i="function"==typeof e?e(t&&n[t]||n):e;return/*#__PURE__*/(0,d.jsx)(r4.default,{styles:i})},r9=u("jR9F1"),tC=u("4jPsi"),d=u("ayMG0");function r7(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}var ne=u("beCSm"),nt=u("4Cod0");function nr(e){return(0,nt.default)("MuiInputBase",e)}const nn=(0,ne.default)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var d=u("ayMG0");const ni=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],na=e=>{let{classes:t,color:r,disabled:n,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:h,startAdornment:f,type:p}=e,g={root:["root",`color${(0,r2.default)(r)}`,n&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",s&&"formControl",h&&"medium"!==h&&`size${(0,r2.default)(h)}`,c&&"multiline",f&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===p&&"inputTypeSearch",c&&"inputMultiline","small"===h&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]};return(0,rX.default)(g,nr,t)},no=(0,rW.default)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${(0,r2.default)(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]}})(({theme:e,ownerState:t})=>(0,td.default)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${nn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&(0,td.default)({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ns=(0,rW.default)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode,n=(0,td.default)({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return(0,td.default)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${nn.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${nn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})}),nl=/*#__PURE__*/(0,d.jsx)(function(e){return/*#__PURE__*/(0,d.jsx)(r8,(0,td.default)({},e,{defaultTheme:r9.default,themeId:tC.default}))},{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),nu=/*#__PURE__*/ee.forwardRef(function(e,t){var r;let n=(0,r1.useDefaultProps)({props:e,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:o,className:s,components:l={},componentsProps:u={},defaultValue:c,disabled:h,disableInjectingGlobalStyles:f,endAdornment:p,fullWidth:g=!1,id:m,inputComponent:v="input",inputProps:b={},inputRef:x,maxRows:y,minRows:w,multiline:k=!1,name:S,onBlur:C,onChange:A,onClick:E,onFocus:_,onKeyDown:T,onKeyUp:P,placeholder:O,readOnly:M,renderSuffix:I,rows:L,slotProps:R={},slots:N={},startAdornment:z,type:D="text",value:F}=n,B=(0,th.default)(n,ni),W=null!=b.value?b.value:F,{current:H}=ee.useRef(null!=W),X=ee.useRef(),Y=ee.useCallback(e=>{},[]),U=(0,r5.default)(X,x,b.ref,Y),[V,G]=ee.useState(!1),$=(0,r0.default)(),q=function({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}({props:n,muiFormControl:$,states:["color","disabled","error","hiddenLabel","size","required","filled"]});q.focused=$?$.focused:V,ee.useEffect(()=>{!$&&h&&V&&(G(!1),C&&C())},[$,h,V,C]);let Z=$&&$.onFilled,K=$&&$.onEmpty,Q=ee.useCallback(e=>{!function(e,t=!1){return e&&(r7(e.value)&&""!==e.value||t&&r7(e.defaultValue)&&""!==e.defaultValue)}(e)?K&&K():Z&&Z()},[Z,K]);(0,r3.default)(()=>{H&&Q({value:W})},[W,Q,H]),ee.useEffect(()=>{Q(X.current)},[]);let J=v,et=b;k&&"input"===J&&(et=L?(0,td.default)({type:void 0,minRows:L,maxRows:L},et):(0,td.default)({type:void 0,maxRows:y,minRows:w},et),J=rQ),ee.useEffect(()=>{$&&$.setAdornedStart(!!z)},[$,z]);let er=(0,td.default)({},n,{color:q.color||"primary",disabled:q.disabled,endAdornment:p,error:q.error,focused:q.focused,formControl:$,fullWidth:g,hiddenLabel:q.hiddenLabel,multiline:k,size:q.size,startAdornment:z,type:D}),en=na(er),ei=N.root||l.Root||no,ea=R.root||u.root||{},eo=N.input||l.Input||ns;return et=(0,td.default)({},et,null!=(r=R.input)?r:u.input),/*#__PURE__*/(0,d.jsxs)(ee.Fragment,{children:[!f&&nl,/*#__PURE__*/(0,d.jsxs)(ei,(0,td.default)({},ea,!(0,rY.default)(ei)&&{ownerState:(0,td.default)({},er,ea.ownerState)},{ref:t,onClick:e=>{X.current&&e.currentTarget===e.target&&X.current.focus(),E&&E(e)}},B,{className:(0,rH.default)(en.root,ea.className,s,M&&"MuiInputBase-readOnly"),children:[z,/*#__PURE__*/(0,d.jsx)(rJ.default.Provider,{value:null,children:/*#__PURE__*/(0,d.jsx)(eo,(0,td.default)({ownerState:er,"aria-invalid":q.error,"aria-describedby":i,autoComplete:a,autoFocus:o,defaultValue:c,disabled:q.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?X.current:{value:"x"})},name:S,placeholder:O,readOnly:M,required:q.required,rows:L,value:W,onKeyDown:T,onKeyUp:P,type:D},et,!(0,rY.default)(eo)&&{as:J,ownerState:(0,td.default)({},er,et.ownerState)},{ref:U,className:(0,rH.default)(en.input,et.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),b.onBlur&&b.onBlur(e),$&&$.onBlur?$.onBlur(e):G(!1)},onChange:(e,...t)=>{if(!H){let t=e.target||X.current;if(null==t)throw Error((0,rF.default)(1));Q({value:t.value})}b.onChange&&b.onChange(e,...t),A&&A(e,...t)},onFocus:e=>{if(q.disabled){e.stopPropagation();return}_&&_(e),b.onFocus&&b.onFocus(e),$&&$.onFocus?$.onFocus(e):G(!0)}}))}),p,I?I((0,td.default)({},q,{startAdornment:z})):null]}))]})});var rp=u("bbT5Q"),d=u("ayMG0"),nc=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"m17.6 9.48 1.84-3.18c.16-.31.04-.69-.26-.85-.29-.15-.65-.06-.83.22l-1.88 3.24c-2.86-1.21-6.08-1.21-8.94 0L5.65 5.67c-.19-.29-.58-.38-.87-.2-.28.18-.37.54-.22.83L6.4 9.48C3.3 11.25 1.28 14.44 1 18h22c-.28-3.56-2.3-6.75-5.4-8.52M7 15.25c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25m10 0c-.69 0-1.25-.56-1.25-1.25s.56-1.25 1.25-1.25 1.25.56 1.25 1.25-.56 1.25-1.25 1.25"}),"AndroidRounded");const nd=(0,rW.default)("div")(({theme:e})=>({position:"relative",borderRadius:e.shape.borderRadius,backgroundColor:rj(e.palette.common.white,.15),"&:hover":{backgroundColor:rj(e.palette.common.white,.25)},marginLeft:0,width:300})),nh=(0,rW.default)("div")(()=>({paddingLeft:10,paddingRight:10,height:"100%",position:"absolute",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"})),nf=(0,rW.default)(nu)(({theme:e})=>({color:"inherit","& .MuiInputBase-input":{padding:10,paddingLeft:45,transition:e.transitions.create("width"),width:245}})),np=({onChange:e,value:t})=>/*#__PURE__*/(0,d.jsxs)(nd,{children:[/*#__PURE__*/(0,d.jsx)(nh,{children:/*#__PURE__*/(0,d.jsx)(nc,{})}),/*#__PURE__*/(0,d.jsx)(nf,{placeholder:"Fill in your app id",onChange:e,value:t})]}),ng=({bundleId:e,onChange:t,autodetect:r})=>/*#__PURE__*/(0,d.jsxs)(d.Fragment,{children:[/*#__PURE__*/(0,d.jsx)(f.Button,{onClick:r,children:"Auto-Detect"}),/*#__PURE__*/(0,d.jsx)("div",{style:{paddingRight:5,paddingLeft:5},children:/*#__PURE__*/(0,d.jsx)(np,{onChange:e=>{t(e.target.value)},value:e||""})})]});var d=u("ayMG0"),rp=u("bbT5Q"),d=u("ayMG0"),nm=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),rp=u("bbT5Q"),d=u("ayMG0"),nv=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"M6 6h12v12H6z"}),"Stop");u("acw62");const nb=({isMeasuring:e,start:t,stop:r})=>e?/*#__PURE__*/(0,d.jsx)(f.Button,{onClick:r,icon:/*#__PURE__*/(0,d.jsx)(nv,{}),children:"Stop Measuring"}):/*#__PURE__*/(0,d.jsx)(f.Button,{onClick:t,icon:/*#__PURE__*/(0,d.jsx)(nm,{}),children:"Start Measuring"});var rp=u("bbT5Q"),d=u("ayMG0"),nx=(0,rp.default)(/*#__PURE__*/(0,d.jsx)("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"}),"Delete"),d=u("ayMG0");u("acw62");var th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),rW=u("d8seH"),r1=u("1iOpW"),r2=u("jTnBY"),ny=u("7Frhn"),ne=u("beCSm"),nt=u("4Cod0");function nw(e){return(0,nt.default)("MuiAppBar",e)}(0,ne.default)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);var d=u("ayMG0");const nk=["className","color","enableColorOnDark","position"],nS=e=>{let{color:t,position:r,classes:n}=e,i={root:["root",`color${(0,r2.default)(t)}`,`position${(0,r2.default)(r)}`]};return(0,rX.default)(i,nw,n)},nC=(e,t)=>e?`${null==e?void 0:e.replace(")","")}, ${t})`:t,nA=(0,rW.default)(ny.default,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[`position${(0,r2.default)(r.position)}`],t[`color${(0,r2.default)(r.color)}`]]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return(0,td.default)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},!e.vars&&(0,td.default)({},"default"===t.color&&{backgroundColor:r,color:e.palette.getContrastText(r)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&(0,td.default)({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"})),e.vars&&(0,td.default)({},"default"===t.color&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:nC(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:nC(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:nC(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:nC(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:"inherit"===t.color?"inherit":"var(--AppBar-color)"},"transparent"===t.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),nE=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiAppBar"}),{className:n,color:i="primary",enableColorOnDark:a=!1,position:o="fixed"}=r,s=(0,th.default)(r,nk),l=(0,td.default)({},r,{color:i,position:o,enableColorOnDark:a}),u=nS(l);return/*#__PURE__*/(0,d.jsx)(nA,(0,td.default)({square:!0,component:"header",ownerState:l,elevation:4,className:(0,rH.default)(u.root,n,"fixed"===o&&"mui-fixed"),ref:t},s))}),n_=({children:e})=>/*#__PURE__*/(0,d.jsx)(nE,{position:"relative",className:"bg-dark-charcoal",children:/*#__PURE__*/(0,d.jsx)("div",{style:{flexDirection:"row",display:"flex",alignItems:"center",padding:10},children:e})});var ee=u("acw62"),nT=((oG={}).START="start",oG.STOP="stop",oG.RESET="reset",oG.AUTODETECT_BUNDLE_ID="autodetectBundleId",oG.SET_BUNDLE_ID="setBundleId",oG.UPDATE_STATE="updateState",oG.SEND_ERROR="sendError",oG.PING="ping",oG.CONNECT="connect",oG.DISCONNECT="disconnect",oG);const nP=Object.create(null);nP.open="0",nP.close="1",nP.ping="2",nP.pong="3",nP.message="4",nP.upgrade="5",nP.noop="6";const nO=Object.create(null);Object.keys(nP).forEach(e=>{nO[nP[e]]=e});const nM={type:"error",data:"parser error"},nI="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===Object.prototype.toString.call(Blob),nL="function"==typeof ArrayBuffer,nR=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,nN=({type:e,data:t},r,n)=>nI&&t instanceof Blob?r?n(t):nz(t,n):nL&&(t instanceof ArrayBuffer||nR(t))?r?n(t):nz(new Blob([t]),n):n(nP[e]+(t||"")),nz=(e,t)=>{let r=new FileReader;return r.onload=function(){t("b"+(r.result.split(",")[1]||""))},r.readAsDataURL(e)};function nD(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}const nF="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nB="undefined"==typeof Uint8Array?[]:new Uint8Array(256);for(let e=0;e<nF.length;e++)nB[nF.charCodeAt(e)]=e;const nj=e=>{let t=.75*e.length,r=e.length,n,i=0,a,o,s,l;"="===e[e.length-1]&&(t--,"="===e[e.length-2]&&t--);let u=new ArrayBuffer(t),c=new Uint8Array(u);for(n=0;n<r;n+=4)a=nB[e.charCodeAt(n)],o=nB[e.charCodeAt(n+1)],s=nB[e.charCodeAt(n+2)],l=nB[e.charCodeAt(n+3)],c[i++]=a<<2|o>>4,c[i++]=(15&o)<<4|s>>2,c[i++]=(3&s)<<6|63&l;return u},nW="function"==typeof ArrayBuffer,nH=(e,t)=>{if("string"!=typeof e)return{type:"message",data:nY(e,t)};let r=e.charAt(0);return"b"===r?{type:"message",data:nX(e.substring(1),t)}:nO[r]?e.length>1?{type:nO[r],data:e.substring(1)}:{type:nO[r]}:nM},nX=(e,t)=>nW?nY(nj(e),t):{base64:!0,data:e},nY=(e,t)=>"blob"===t?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,nU=(e,t)=>{let r=e.length,n=Array(r),i=0;e.forEach((e,a)=>{nN(e,!1,e=>{n[a]=e,++i===r&&t(n.join("\x1e"))})})},nV=(e,t)=>{let r=e.split("\x1e"),n=[];for(let e=0;e<r.length;e++){let i=nH(r[e],t);if(n.push(i),"error"===i.type)break}return n};function nG(e){return e.reduce((e,t)=>e+t.length,0)}function n$(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let i=0;i<t;i++)r[i]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function nq(e){if(e)return function(e){for(var t in nq.prototype)e[t]=nq.prototype[t];return e}(e)}nq.prototype.on=nq.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this},nq.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this},nq.prototype.off=nq.prototype.removeListener=nq.prototype.removeAllListeners=nq.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var r,n=this._callbacks["$"+e];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+e],this;for(var i=0;i<n.length;i++)if((r=n[i])===t||r.fn===t){n.splice(i,1);break}return 0===n.length&&delete this._callbacks["$"+e],this},nq.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,i=r.length;n<i;++n)r[n].apply(this,t)}return this},nq.prototype.emitReserved=nq.prototype.emit,nq.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]},nq.prototype.hasListeners=function(e){return!!this.listeners(e).length};const nZ="function"==typeof Promise&&"function"==typeof Promise.resolve?e=>Promise.resolve().then(e):(e,t)=>t(e,0),nK="undefined"!=typeof self?self:"undefined"!=typeof window?window:Function("return this")();function nQ(e,...t){return t.reduce((t,r)=>(e.hasOwnProperty(r)&&(t[r]=e[r]),t),{})}const nJ=nK.setTimeout,n0=nK.clearTimeout;function n1(e,t){t.useNativeTimers?(e.setTimeoutFn=nJ.bind(nK),e.clearTimeoutFn=n0.bind(nK)):(e.setTimeoutFn=nK.setTimeout.bind(nK),e.clearTimeoutFn=nK.clearTimeout.bind(nK))}function n2(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}class n5 extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}}class n3 extends nq{constructor(e){super(),this.writable=!1,n1(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new n5(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return("opening"===this.readyState||"open"===this.readyState)&&(this.doClose(),this.onClose()),this}send(e){"open"===this.readyState&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=nH(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return -1===e.indexOf(":")?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(443!==this.opts.port)||!this.opts.secure&&80!==Number(this.opts.port))?":"+this.opts.port:""}_query(e){let t=function(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}(e);return t.length?"?"+t:""}}class n4 extends n3{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once("pollComplete",function(){--e||t()})),this.writable||(e++,this.once("drain",function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){nV(e,this.socket.binaryType).forEach(e=>{if("opening"===this.readyState&&"open"===e.type&&this.onOpen(),"close"===e.type)return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(e)}),"closed"!==this.readyState&&(this._polling=!1,this.emitReserved("pollComplete"),"open"===this.readyState&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};"open"===this.readyState?e():this.once("open",e)}write(e){this.writable=!1,nU(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=n2()),this.supportsBinary||t.sid||(t.b64=1),this.createUri(e,t)}}let n6=!1;try{n6="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){}const n8=n6;function n9(){}class n7 extends n4{constructor(e){if(super(e),"undefined"!=typeof location){let t="https:"===location.protocol,r=location.port;r||(r=t?"443":"80"),this.xd="undefined"!=typeof location&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(e,t)=>{this.onError("xhr post error",e,t)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(e,t)=>{this.onError("xhr poll error",e,t)}),this.pollXhr=e}}class ie extends nq{constructor(e,t,r){super(),this.createRequest=e,n1(this,r),this._opts=r,this._method=r.method||"GET",this._uri=t,this._data=void 0!==r.data?r.data:null,this._create()}_create(){var e;let t=nQ(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(t);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders)for(let e in r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0),this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}catch(e){}if("POST"===this._method)try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(e){}try{r.setRequestHeader("Accept","*/*")}catch(e){}null===(e=this._opts.cookieJar)||void 0===e||e.addCookies(r),"withCredentials"in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;3===r.readyState&&(null===(e=this._opts.cookieJar)||void 0===e||e.parseCookies(r.getResponseHeader("set-cookie"))),4===r.readyState&&(200===r.status||1223===r.status?this._onLoad():this.setTimeoutFn(()=>{this._onError("number"==typeof r.status?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}"undefined"!=typeof document&&(this._index=ie.requestsCount++,ie.requests[this._index]=this)}_onError(e){this.emitReserved("error",e,this._xhr),this._cleanup(!0)}_cleanup(e){if(void 0!==this._xhr&&null!==this._xhr){if(this._xhr.onreadystatechange=n9,e)try{this._xhr.abort()}catch(e){}"undefined"!=typeof document&&delete ie.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;null!==e&&(this.emitReserved("data",e),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}}function it(){for(let e in ie.requests)ie.requests.hasOwnProperty(e)&&ie.requests[e].abort()}ie.requestsCount=0,ie.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",it):"function"==typeof addEventListener&&addEventListener("onpagehide"in nK?"pagehide":"unload",it,!1));const ir=function(){let e=ii({xdomain:!1});return e&&null!==e.responseType}();function ii(e){let t=e.xdomain;try{if("undefined"!=typeof XMLHttpRequest&&(!t||n8))return new XMLHttpRequest}catch(e){}if(!t)try{return new nK[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(e){}}const ia="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase();class io extends n3{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=ia?{}:nQ(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(e){return this.emitReserved("error",e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;nN(r,this.supportsBinary,e=>{try{this.doWrite(r,e)}catch(e){}n&&nZ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){void 0!==this.ws&&(this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=n2()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}}const is=nK.WebSocket||nK.MozWebSocket,il={websocket:class extends io{createSocket(e,t,r){return ia?new is(e,t,r):t?new is(e,t):new is(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends n3{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(r=>{let n=function(e,r){t||(t=new TextDecoder);let n=[],i=0,a=-1,o=!1;return new TransformStream({transform(s,l){for(n.push(s);;){if(0===i){if(1>nG(n))break;let e=n$(n,1);o=(128&e[0])==128,i=(a=127&e[0])<126?3:126===a?1:2}else if(1===i){if(2>nG(n))break;let e=n$(n,2);a=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),i=3}else if(2===i){if(8>nG(n))break;let e=n$(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),r=t.getUint32(0);if(r>2097151){l.enqueue(nM);break}a=0x100000000*r+t.getUint32(4),i=3}else{if(nG(n)<a)break;let e=n$(n,a);l.enqueue(nH(o?e:t.decode(e),r)),i=0}if(0===a||a>e){l.enqueue(nM);break}}}})}(Number.MAX_SAFE_INTEGER,this.socket.binaryType),i=r.readable.pipeThrough(n).getReader(),a=new TransformStream({transform(t,r){var n;n=e=>{let n;let i=e.length;if(i<126)new DataView((n=new Uint8Array(1)).buffer).setUint8(0,i);else if(i<65536){let e=new DataView((n=new Uint8Array(3)).buffer);e.setUint8(0,126),e.setUint16(1,i)}else{let e=new DataView((n=new Uint8Array(9)).buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(i))}t.data&&"string"!=typeof t.data&&(n[0]|=128),r.enqueue(n),r.enqueue(e)},nI&&t.data instanceof Blob?t.data.arrayBuffer().then(nD).then(n):nL&&(t.data instanceof ArrayBuffer||nR(t.data))?n(nD(t.data)):nN(t,!1,t=>{e||(e=new TextEncoder),n(e.encode(t))})}});a.readable.pipeTo(r.writable),this._writer=a.writable.getWriter();let o=()=>{i.read().then(({done:e,value:t})=>{e||(this.onPacket(t),o())}).catch(e=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&nZ(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;null===(e=this._transport)||void 0===e||e.close()}},polling:class extends n7{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=ir&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new ie(ii,this.uri(),e)}}},iu=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ic=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function id(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");-1!=r&&-1!=n&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let i=iu.exec(e||""),a={},o=14;for(;o--;)a[ic[o]]=i[o]||"";return -1!=r&&-1!=n&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,":"),a.authority=a.authority.replace("[","").replace("]","").replace(/;/g,":"),a.ipv6uri=!0),a.pathNames=function(e,t){let r=t.replace(/\/{2,9}/g,"/").split("/");return("/"==t.slice(0,1)||0===t.length)&&r.splice(0,1),"/"==t.slice(-1)&&r.splice(r.length-1,1),r}(0,a.path),a.queryKey=function(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,n){t&&(r[t]=n)}),r}(0,a.query),a}const ih="function"==typeof addEventListener&&"function"==typeof removeEventListener,ip=[];ih&&addEventListener("offline",()=>{ip.forEach(e=>e())},!1);class ig extends nq{constructor(e,t){if(super(),this.binaryType="arraybuffer",this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&"object"==typeof e&&(t=e,e=null),e){let r=id(e);t.hostname=r.host,t.secure="https"===r.protocol||"wss"===r.protocol,t.port=r.port,r.query&&(t.query=r.query)}else t.host&&(t.hostname=id(t.host).host);n1(this,t),this.secure=null!=t.secure?t.secure:"undefined"!=typeof location&&"https:"===location.protocol,t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=t.port||("undefined"!=typeof location&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),"string"==typeof this.opts.query&&(this.opts.query=function(e){let t={},r=e.split("&");for(let e=0,n=r.length;e<n;e++){let n=r[e].split("=");t[decodeURIComponent(n[0])]=decodeURIComponent(n[1])}return t}(this.opts.query)),ih&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),"localhost"!==this.hostname&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},ip.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let r=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](r)}_open(){if(0===this.transports.length){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let e=this.opts.rememberUpgrade&&ig.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket")?"websocket":this.transports[0];this.readyState="opening";let t=this.createTransport(e);t.open(),this.setTransport(t)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",e=>this._onClose("transport close",e))}onOpen(){this.readyState="open",ig.priorWebsocketSuccess="websocket"===this.transport.name,this.emitReserved("open"),this.flush()}_onPacket(e){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let t=Error("server error");t.code=e.data,this._onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data)}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),"closed"!==this.readyState&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,0===this.writeBuffer.length?this.emitReserved("drain"):this.flush()}flush(){if("closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&"polling"===this.transport.name&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let r=this.writeBuffer[t].data;if(r&&(e+="string"==typeof r?function(e){let t=0,r=0;for(let n=0,i=e.length;n<i;n++)(t=e.charCodeAt(n))<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}(r):Math.ceil(1.33*(r.byteLength||r.size))),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,nZ(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),e}write(e,t,r){return this._sendPacket("message",e,t,r),this}send(e,t,r){return this._sendPacket("message",e,t,r),this}_sendPacket(e,t,r,n){if("function"==typeof t&&(n=t,t=void 0),"function"==typeof r&&(n=r,r=null),"closing"===this.readyState||"closed"===this.readyState)return;(r=r||{}).compress=!1!==r.compress;let i={type:e,data:t,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),n&&this.once("flush",n),this.flush()}close(){let e=()=>{this._onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},r=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return("opening"===this.readyState||"open"===this.readyState)&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():e()}):this.upgrading?r():e()),this}_onError(e){if(ig.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&"opening"===this.readyState)return this.transports.shift(),this._open();this.emitReserved("error",e),this._onClose("transport error",e)}_onClose(e,t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),ih&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=ip.indexOf(this._offlineEventListener);-1!==e&&ip.splice(e,1)}this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this._prevBufferLen=0}}}ig.protocol=4;class im extends ig{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),"open"===this.readyState&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;ig.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",e=>{if(!r){if("pong"===e.type&&"probe"===e.data)this.upgrading=!0,this.emitReserved("upgrading",t),t&&(ig.priorWebsocketSuccess="websocket"===t.name,this.transport.pause(()=>{r||"closed"===this.readyState||(u(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())}));else{let e=Error("probe error");e.transport=t.name,this.emitReserved("upgradeError",e)}}}))};function i(){r||(r=!0,u(),t.close(),t=null)}let a=e=>{let r=Error("probe error: "+e);r.transport=t.name,i(),this.emitReserved("upgradeError",r)};function o(){a("transport closed")}function s(){a("socket closed")}function l(e){t&&e.name!==t.name&&i()}let u=()=>{t.removeListener("open",n),t.removeListener("error",a),t.removeListener("close",o),this.off("close",s),this.off("upgrading",l)};t.once("open",n),t.once("error",a),t.once("close",o),this.once("close",s),this.once("upgrading",l),-1!==this._upgrades.indexOf("webtransport")&&"webtransport"!==e?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}}class iv extends im{constructor(e,t={}){let r="object"==typeof e?e:t;(!r.transports||r.transports&&"string"==typeof r.transports[0])&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(e=>il[e]).filter(e=>!!e)),super(e,r)}}iv.protocol;var ib={};r(ib,"protocol",()=>iE),r(ib,"PacketType",()=>oJ),r(ib,"Encoder",()=>i_),r(ib,"Decoder",()=>iP);const ix="function"==typeof ArrayBuffer,iy=e=>"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,iw=Object.prototype.toString,ik="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===iw.call(Blob),iS="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===iw.call(File);function iC(e){return ix&&(e instanceof ArrayBuffer||iy(e))||ik&&e instanceof Blob||iS&&e instanceof File}const iA=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],iE=5;(o$=oJ||(oJ={}))[o$.CONNECT=0]="CONNECT",o$[o$.DISCONNECT=1]="DISCONNECT",o$[o$.EVENT=2]="EVENT",o$[o$.ACK=3]="ACK",o$[o$.CONNECT_ERROR=4]="CONNECT_ERROR",o$[o$.BINARY_EVENT=5]="BINARY_EVENT",o$[o$.BINARY_ACK=6]="BINARY_ACK";class i_{constructor(e){this.replacer=e}encode(e){return(e.type===oJ.EVENT||e.type===oJ.ACK)&&function e(t,r){if(!t||"object"!=typeof t)return!1;if(Array.isArray(t)){for(let r=0,n=t.length;r<n;r++)if(e(t[r]))return!0;return!1}if(iC(t))return!0;if(t.toJSON&&"function"==typeof t.toJSON&&1==arguments.length)return e(t.toJSON(),!0);for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&e(t[r]))return!0;return!1}(e)?this.encodeAsBinary({type:e.type===oJ.EVENT?oJ.BINARY_EVENT:oJ.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===oJ.BINARY_EVENT||e.type===oJ.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&"/"!==e.nsp&&(t+=e.nsp+","),null!=e.id&&(t+=e.id),null!=e.data&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=function(e){let t=[],r=e.data;return e.data=function e(t,r){if(!t)return t;if(iC(t)){let e={_placeholder:!0,num:r.length};return r.push(t),e}if(Array.isArray(t)){let n=Array(t.length);for(let i=0;i<t.length;i++)n[i]=e(t[i],r);return n}if("object"==typeof t&&!(t instanceof Date)){let n={};for(let i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e(t[i],r));return n}return t}(r,t),e.attachments=t.length,{packet:e,buffers:t}}(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}}function iT(e){return"[object Object]"===Object.prototype.toString.call(e)}class iP extends nq{constructor(e){super(),this.reviver=e}add(e){let t;if("string"==typeof e){if(this.reconstructor)throw Error("got plaintext data when reconstructing a packet");let r=(t=this.decodeString(e)).type===oJ.BINARY_EVENT;r||t.type===oJ.BINARY_ACK?(t.type=r?oJ.EVENT:oJ.ACK,this.reconstructor=new iO(t),0===t.attachments&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(iC(e)||e.base64){if(this.reconstructor)(t=this.reconstructor.takeBinaryData(e))&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw Error("got binary data when not reconstructing a packet")}else throw Error("Unknown type: "+e)}decodeString(e){let t=0,r={type:Number(e.charAt(0))};if(void 0===oJ[r.type])throw Error("unknown packet type "+r.type);if(r.type===oJ.BINARY_EVENT||r.type===oJ.BINARY_ACK){let n=t+1;for(;"-"!==e.charAt(++t)&&t!=e.length;);let i=e.substring(n,t);if(i!=Number(i)||"-"!==e.charAt(t))throw Error("Illegal attachments");r.attachments=Number(i)}if("/"===e.charAt(t+1)){let n=t+1;for(;++t&&","!==e.charAt(t)&&t!==e.length;);r.nsp=e.substring(n,t)}else r.nsp="/";let n=e.charAt(t+1);if(""!==n&&Number(n)==n){let n=t+1;for(;++t;){let r=e.charAt(t);if(null==r||Number(r)!=r){--t;break}if(t===e.length)break}r.id=Number(e.substring(n,t+1))}if(e.charAt(++t)){let n=this.tryParse(e.substr(t));if(iP.isPayloadValid(r.type,n))r.data=n;else throw Error("invalid payload")}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch(e){return!1}}static isPayloadValid(e,t){switch(e){case oJ.CONNECT:return iT(t);case oJ.DISCONNECT:return void 0===t;case oJ.CONNECT_ERROR:return"string"==typeof t||iT(t);case oJ.EVENT:case oJ.BINARY_EVENT:return Array.isArray(t)&&("number"==typeof t[0]||"string"==typeof t[0]&&-1===iA.indexOf(t[0]));case oJ.ACK:case oJ.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class iO{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){var t,r;let e=(t=this.reconPack,r=this.buffers,t.data=function e(t,r){if(!t)return t;if(t&&!0===t._placeholder){if("number"==typeof t.num&&t.num>=0&&t.num<r.length)return r[t.num];throw Error("illegal attachments")}if(Array.isArray(t))for(let n=0;n<t.length;n++)t[n]=e(t[n],r);else if("object"==typeof t)for(let n in t)Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=e(t[n],r));return t}(t.data,r),delete t.attachments,t);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}function iM(e,t,r){return e.on(t,r),function(){e.off(t,r)}}const iI=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class iL extends nq{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[iM(e,"open",this.onopen.bind(this)),iM(e,"packet",this.onpacket.bind(this)),iM(e,"error",this.onerror.bind(this)),iM(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected||(this.subEvents(),this.io._reconnecting||this.io.open(),"open"===this.io._readyState&&this.onopen()),this}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,i;if(iI.hasOwnProperty(e))throw Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let a={type:oJ.EVENT,data:t};if(a.options={},a.options.compress=!1!==this.flags.compress,"function"==typeof t[t.length-1]){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),a.id=e}let o=null===(n=null===(r=this.io.engine)||void 0===r?void 0:r.transport)||void 0===n?void 0:n.writable,s=this.connected&&!(null===(i=this.io.engine)||void 0===i?void 0:i._hasPingExpired());return this.flags.volatile&&!o||(s?(this.notifyOutgoingListeners(a),this.packet(a)):this.sendBuffer.push(a)),this.flags={},this}_registerAckCallback(e,t){var r;let n=null!==(r=this.flags.timeout)&&void 0!==r?r:this._opts.ackTimeout;if(void 0===n){this.acks[e]=t;return}let i=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error("operation has timed out"))},n),a=(...e)=>{this.io.clearTimeoutFn(i),t.apply(this,e)};a.withError=!0,this.acks[e]=a}emitWithAck(e,...t){return new Promise((r,n)=>{let i=(e,t)=>e?n(e):r(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;"function"==typeof e[e.length-1]&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...n)=>{if(r===this._queue[0])return null!==e?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)):(this._queue.shift(),t&&t(null,...n)),r.pending=!1,this._drainQueue()}),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||0===this._queue.length)return;let t=this._queue[0];(!t.pending||e)&&(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){"function"==typeof this.auth?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:oJ.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error("socket has been disconnected"))}})}onpacket(e){if(!(e.nsp!==this.nsp))switch(e.type){case oJ.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case oJ.EVENT:case oJ.BINARY_EVENT:this.onevent(e);break;case oJ.ACK:case oJ.BINARY_ACK:this.onack(e);break;case oJ.DISCONNECT:this.ondisconnect();break;case oJ.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t)}}onevent(e){let t=e.data||[];null!=e.id&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length)for(let t of this._anyListeners.slice())t.apply(this,e);super.emit.apply(this,e),this._pid&&e.length&&"string"==typeof e[e.length-1]&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:oJ.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];"function"==typeof t&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:oJ.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r]){t.splice(r,1);break}}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length)for(let t of this._anyOutgoingListeners.slice())t.apply(this,e.data)}}function iR(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}iR.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(1&Math.floor(10*t))==0?e-r:e+r}return 0|Math.min(e,this.max)},iR.prototype.reset=function(){this.attempts=0},iR.prototype.setMin=function(e){this.ms=e},iR.prototype.setMax=function(e){this.max=e},iR.prototype.setJitter=function(e){this.jitter=e};class iN extends nq{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&"object"==typeof e&&(t=e,e=void 0),(t=t||{}).path=t.path||"/socket.io",this.opts=t,n1(this,t),this.reconnection(!1!==t.reconnection),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(null!==(r=t.randomizationFactor)&&void 0!==r?r:.5),this.backoff=new iR({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==t.timeout?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||ib;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=!1!==t.autoConnect,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return void 0===e?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return void 0===e?this._reconnectionDelay:(this._reconnectionDelay=e,null===(t=this.backoff)||void 0===t||t.setMin(e),this)}randomizationFactor(e){var t;return void 0===e?this._randomizationFactor:(this._randomizationFactor=e,null===(t=this.backoff)||void 0===t||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return void 0===e?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,null===(t=this.backoff)||void 0===t||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new iv(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=iM(t,"open",function(){r.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",t),e?e(t):this.maybeReconnectOnOpen()},a=iM(t,"error",i);if(!1!==this._timeout){let e=this._timeout,r=this.setTimeoutFn(()=>{n(),i(Error("timeout")),t.close()},e);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}return this.subs.push(n),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(iM(e,"ping",this.onping.bind(this)),iM(e,"data",this.ondata.bind(this)),iM(e,"error",this.onerror.bind(this)),iM(e,"close",this.onclose.bind(this)),iM(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose("parse error",e)}}ondecoded(e){nZ(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new iL(this,e,t),this.nsps[e]=r),r}_destroy(e){for(let e of Object.keys(this.nsps))if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),null===(r=this.engine)||void 0===r||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{!e.skipReconnect&&(this.emitReserved("reconnect_attempt",e.backoff.attempts),e.skipReconnect||e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",t)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const iz={};function iD(e,t){let r;"object"==typeof e&&(t=e,e=void 0);let n=function(e,t="",r){let n=e;r=r||"undefined"!=typeof location&&location,null==e&&(e=r.protocol+"//"+r.host),"string"==typeof e&&("/"===e.charAt(0)&&(e="/"===e.charAt(1)?r.protocol+e:r.host+e),/^(https?|wss?):\/\//.test(e)||(e=void 0!==r?r.protocol+"//"+e:"https://"+e),n=id(e)),!n.port&&(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let i=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+i+":"+n.port+t,n.href=n.protocol+"://"+i+(r&&r.port===n.port?"":":"+n.port),n}(e,(t=t||{}).path||"/socket.io"),i=n.source,a=n.id,o=n.path,s=iz[a]&&o in iz[a].nsps;return t.forceNew||t["force new connection"]||!1===t.multiplex||s?r=new iN(i,t):(iz[a]||(iz[a]=new iN(i,t)),r=iz[a]),n.query&&!t.query&&(t.query=n.queryKey),r.socket(n.path,t)}Object.assign(iD,{Manager:iN,Socket:iL,io:iD,connect:iD});const iF=iD(window.__FLASHLIGHT_DATA__.socketServerUrl);iF.on(nT.DISCONNECT,()=>iF.close());const iB=()=>{let[e,t]=(0,ee.useState)();return(0,ee.useEffect)(()=>(iF.on(nT.UPDATE_STATE,t),()=>{iF.off(nT.UPDATE_STATE,t)}),[]),{bundleId:e?.bundleId??null,autodetect:()=>{iF.emit(nT.AUTODETECT_BUNDLE_ID)},setBundleId:e=>{iF.emit(nT.SET_BUNDLE_ID,e)},results:e?.results??[],isMeasuring:e?.isMeasuring??!1,start:()=>{iF.emit(nT.START)},stop:()=>{iF.emit(nT.STOP)},reset:()=>{iF.emit(nT.RESET)}}};var d=u("ayMG0"),ee=u("acw62"),th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),ee=u("acw62");let ij=0;const iW=ee["useId".toString()];var r2=u("jTnBY"),iH=u("118QM"),iX=u("86f4a"),ny=u("7Frhn"),r1=u("1iOpW"),rW=u("d8seH"),ne=u("beCSm"),nt=u("4Cod0");function iY(e){return(0,nt.default)("MuiDialog",e)}const iU=(0,ne.default)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);var ee=u("acw62");const iV=/*#__PURE__*/ee.createContext({});var iG=u("6cr7d"),i$=u("14H9o"),d=u("ayMG0");const iq=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],iZ=(0,rW.default)(iG.default,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),iK=e=>{let{classes:t,scroll:r,maxWidth:n,fullWidth:i,fullScreen:a}=e,o={root:["root"],container:["container",`scroll${(0,r2.default)(r)}`],paper:["paper",`paperScroll${(0,r2.default)(r)}`,`paperWidth${(0,r2.default)(String(n))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return(0,rX.default)(o,iY,t)},iQ=(0,rW.default)(iH.default,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),iJ=(0,rW.default)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.container,t[`scroll${(0,r2.default)(r.scroll)}`]]}})(({ownerState:e})=>(0,td.default)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===e.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===e.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),i0=(0,rW.default)(ny.default,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.paper,t[`scrollPaper${(0,r2.default)(r.scroll)}`],t[`paperWidth${(0,r2.default)(String(r.maxWidth))}`],r.fullWidth&&t.paperFullWidth,r.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>(0,td.default)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===t.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===t.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===t.maxWidth&&{maxWidth:"px"===e.breakpoints.unit?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${iU.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&"xs"!==t.maxWidth&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${iU.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${iU.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),i1=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiDialog"}),n=(0,i$.default)(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,BackdropComponent:s,BackdropProps:l,children:u,className:c,disableEscapeKeyDown:h=!1,fullScreen:f=!1,fullWidth:p=!1,maxWidth:g="sm",onBackdropClick:m,onClick:v,onClose:b,open:x,PaperComponent:y=ny.default,PaperProps:w={},scroll:k="paper",TransitionComponent:S=iX.default,transitionDuration:C=i,TransitionProps:A}=r,E=(0,th.default)(r,iq),_=(0,td.default)({},r,{disableEscapeKeyDown:h,fullScreen:f,fullWidth:p,maxWidth:g,scroll:k}),T=iK(_),P=ee.useRef(),O=function(e){if(void 0!==iW){let t=iW();return null!=e?e:t}return function(e){let[t,r]=ee.useState(e),n=e||t;return ee.useEffect(()=>{null==t&&(ij+=1,r(`mui-${ij}`))},[t]),n}(e)}(o),M=ee.useMemo(()=>({titleId:O}),[O]);return/*#__PURE__*/(0,d.jsx)(iQ,(0,td.default)({className:(0,rH.default)(T.root,c),closeAfterTransition:!0,components:{Backdrop:iZ},componentsProps:{backdrop:(0,td.default)({transitionDuration:C,as:s},l)},disableEscapeKeyDown:h,onClose:b,open:x,ref:t,onClick:e=>{v&&v(e),P.current&&(P.current=null,m&&m(e),b&&b(e,"backdropClick"))},ownerState:_},E,{children:/*#__PURE__*/(0,d.jsx)(S,(0,td.default)({appear:!0,in:x,timeout:C,role:"presentation"},A,{children:/*#__PURE__*/(0,d.jsx)(iJ,{className:(0,rH.default)(T.container),onMouseDown:e=>{P.current=e.target===e.currentTarget},ownerState:_,children:/*#__PURE__*/(0,d.jsx)(i0,(0,td.default)({as:y,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":O},w,{className:(0,rH.default)(T.paper,w.className),ownerState:_,children:/*#__PURE__*/(0,d.jsx)(iV.Provider,{value:M,children:u})}))})}))}))});var td=u("8nd05"),th=u("1En50"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),i2=u("3bYfT"),rW=u("d8seH"),r1=u("1iOpW"),ne=u("beCSm"),nt=u("4Cod0");function i5(e){return(0,nt.default)("MuiDialogTitle",e)}const i3=(0,ne.default)("MuiDialogTitle",["root"]);var d=u("ayMG0");const i4=["className","id"],i6=e=>{let{classes:t}=e;return(0,rX.default)({root:["root"]},i5,t)},i8=(0,rW.default)(i2.default,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),i9=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiDialogTitle"}),{className:n,id:i}=r,a=(0,th.default)(r,i4),o=i6(r),{titleId:s=i}=ee.useContext(iV);return/*#__PURE__*/(0,d.jsx)(i8,(0,td.default)({component:"h2",className:(0,rH.default)(o.root,n),ownerState:r,ref:t,variant:"h6",id:null!=i?i:s},a))});var th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),rW=u("d8seH"),r1=u("1iOpW"),ne=u("beCSm"),nt=u("4Cod0");function i7(e){return(0,nt.default)("MuiDialogContent",e)}(0,ne.default)("MuiDialogContent",["root","dividers"]);var d=u("ayMG0");const ae=["className","dividers"],at=e=>{let{classes:t,dividers:r}=e;return(0,rX.default)({root:["root",r&&"dividers"]},i7,t)},ar=(0,rW.default)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,r.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>(0,td.default)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${i3.root} + &`]:{paddingTop:0}})),an=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiDialogContent"}),{className:n,dividers:i=!1}=r,a=(0,th.default)(r,ae),o=(0,td.default)({},r,{dividers:i}),s=at(o);return/*#__PURE__*/(0,d.jsx)(ar,(0,td.default)({className:(0,rH.default)(s.root,n),ownerState:o,ref:t},a))});var th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),rW=u("d8seH"),ai=u("8Uq77"),r1=u("1iOpW"),i2=u("3bYfT"),ne=u("beCSm"),nt=u("4Cod0");function aa(e){return(0,nt.default)("MuiDialogContentText",e)}(0,ne.default)("MuiDialogContentText",["root"]);var d=u("ayMG0");const ao=["children","className"],as=e=>{let{classes:t}=e,r=(0,rX.default)({root:["root"]},aa,t);return(0,td.default)({},t,r)},al=(0,rW.default)(i2.default,{shouldForwardProp:e=>(0,ai.default)(e)||"classes"===e,name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),au=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiDialogContentText"}),{className:n}=r,i=(0,th.default)(r,ao),a=as(i);return/*#__PURE__*/(0,d.jsx)(al,(0,td.default)({component:"p",variant:"body1",color:"text.secondary",ref:t,ownerState:i,className:(0,rH.default)(a.root,n)},r,{classes:a}))});var th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),rX=u("8Indx"),rW=u("d8seH"),r1=u("1iOpW"),ne=u("beCSm"),nt=u("4Cod0");function ac(e){return(0,nt.default)("MuiDialogActions",e)}(0,ne.default)("MuiDialogActions",["root","spacing"]);var d=u("ayMG0");const ad=["className","disableSpacing"],ah=e=>{let{classes:t,disableSpacing:r}=e;return(0,rX.default)({root:["root",!r&&"spacing"]},ac,t)},af=(0,rW.default)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,!r.disableSpacing&&t.spacing]}})(({ownerState:e})=>(0,td.default)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),ap=/*#__PURE__*/ee.forwardRef(function(e,t){let r=(0,r1.useDefaultProps)({props:e,name:"MuiDialogActions"}),{className:n,disableSpacing:i=!1}=r,a=(0,th.default)(r,ad),o=(0,td.default)({},r,{disableSpacing:i}),s=ah(o);return/*#__PURE__*/(0,d.jsx)(af,(0,td.default)({className:(0,rH.default)(s.root,n),ownerState:o,ref:t},a))});var th=u("1En50"),td=u("8nd05"),ee=u("acw62"),rH=u("9QePP"),ag=u("4FZD0"),rX=u("8Indx"),am=u("kSnzZ"),rW=u("d8seH"),ai=u("8Uq77"),r1=u("1iOpW"),av=u("6n0Ko"),r2=u("jTnBY"),ne=u("beCSm"),nt=u("4Cod0");function ab(e){return(0,nt.default)("MuiButton",e)}const ax=(0,ne.default)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var ee=u("acw62");const ay=/*#__PURE__*/ee.createContext({});var ee=u("acw62");const aw=/*#__PURE__*/ee.createContext(void 0);var d=u("ayMG0");const ak=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],aS=e=>{let{color:t,disableElevation:r,fullWidth:n,size:i,variant:a,classes:o}=e,s={root:["root",a,`${a}${(0,r2.default)(t)}`,`size${(0,r2.default)(i)}`,`${a}Size${(0,r2.default)(i)}`,`color${(0,r2.default)(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${(0,r2.default)(i)}`],endIcon:["icon","endIcon",`iconSize${(0,r2.default)(i)}`]},l=(0,rX.default)(s,ab,o);return(0,td.default)({},o,l)},aC=e=>(0,td.default)({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),aA=(0,rW.default)(av.default,{shouldForwardProp:e=>(0,ai.default)(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${(0,r2.default)(r.color)}`],t[`size${(0,r2.default)(r.size)}`],t[`${r.variant}Size${(0,r2.default)(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;let i="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],a="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return(0,td.default)({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":(0,td.default)({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,am.alpha)(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,am.alpha)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,am.alpha)(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":(0,td.default)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ax.focusVisible}`]:(0,td.default)({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ax.disabled}`]:(0,td.default)({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${(0,am.alpha)(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ax.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ax.disabled}`]:{boxShadow:"none"}}),aE=(0,rW.default)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.startIcon,t[`iconSize${(0,r2.default)(r.size)}`]]}})(({ownerState:e})=>(0,td.default)({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},aC(e))),a_=(0,rW.default)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{let{ownerState:r}=e;return[t.endIcon,t[`iconSize${(0,r2.default)(r.size)}`]]}})(({ownerState:e})=>(0,td.default)({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},aC(e))),aT=/*#__PURE__*/ee.forwardRef(function(e,t){let r=ee.useContext(ay),n=ee.useContext(aw),i=(0,ag.default)(r,e),a=(0,r1.useDefaultProps)({props:i,name:"MuiButton"}),{children:o,color:s="primary",component:l="button",className:u,disabled:c=!1,disableElevation:h=!1,disableFocusRipple:f=!1,endIcon:p,focusVisibleClassName:g,fullWidth:m=!1,size:v="medium",startIcon:b,type:x,variant:y="text"}=a,w=(0,th.default)(a,ak),k=(0,td.default)({},a,{color:s,component:l,disabled:c,disableElevation:h,disableFocusRipple:f,fullWidth:m,size:v,type:x,variant:y}),S=aS(k),C=b&&/*#__PURE__*/(0,d.jsx)(aE,{className:S.startIcon,ownerState:k,children:b}),A=p&&/*#__PURE__*/(0,d.jsx)(a_,{className:S.endIcon,ownerState:k,children:p});return/*#__PURE__*/(0,d.jsxs)(aA,(0,td.default)({ownerState:k,className:(0,rH.default)(r.className,S.root,u,n||""),component:l,disabled:c,focusRipple:!f,focusVisibleClassName:(0,rH.default)(S.focusVisible,g),ref:t,type:x},w,{classes:S,children:[C,o,A]}))});var aP={},aO=aP&&aP.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(aP,"__esModule",{value:!0}),aP.printExampleMessages=aP.Logger=aP.LogLevel=void 0;const aM=aO(u("aqFBk"));var aI={};function aL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(n.key),n)}}function aR(e,t,r){return t&&aL(e.prototype,t),r&&aL(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aN(){return(aN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function az(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,aF(e,t)}function aD(e){return(aD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function aF(e,t){return(aF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function aB(e,t,r){return(aB=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?function(e,t,r){var n=[null];n.push.apply(n,t);var i=new(Function.bind.apply(e,n));return r&&aF(i,r.prototype),i}:Reflect.construct.bind()).apply(null,arguments)}function aj(e){var t="function"==typeof Map?new Map:void 0;return(aj=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return aB(e,arguments,aD(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),aF(r,e)})(e)}function aW(e,t){if(null==e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}function aH(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function aX(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return aH(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return aH(e,void 0)}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}Object.defineProperty(aI,"__esModule",{value:!0});var aY=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return az(t,e),t}(/*#__PURE__*/aj(Error)),aU=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid DateTime: "+t.toMessage())||this}return az(t,e),t}(aY),aV=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid Interval: "+t.toMessage())||this}return az(t,e),t}(aY),aG=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid Duration: "+t.toMessage())||this}return az(t,e),t}(aY),a$=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return az(t,e),t}(aY),aq=/*#__PURE__*/function(e){function t(t){return e.call(this,"Invalid unit "+t)||this}return az(t,e),t}(aY),aZ=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}return az(t,e),t}(aY),aK=/*#__PURE__*/function(e){function t(){return e.call(this,"Zone is an abstract class")||this}return az(t,e),t}(aY),aQ="numeric",aJ="short",a0="long",a1={year:aQ,month:aQ,day:aQ},a2={year:aQ,month:aJ,day:aQ},a5={year:aQ,month:aJ,day:aQ,weekday:aJ},a3={year:aQ,month:a0,day:aQ},a4={year:aQ,month:a0,day:aQ,weekday:a0},a6={hour:aQ,minute:aQ},a8={hour:aQ,minute:aQ,second:aQ},a9={hour:aQ,minute:aQ,second:aQ,timeZoneName:aJ},a7={hour:aQ,minute:aQ,second:aQ,timeZoneName:a0},oe={hour:aQ,minute:aQ,hourCycle:"h23"},ot={hour:aQ,minute:aQ,second:aQ,hourCycle:"h23"},or={hour:aQ,minute:aQ,second:aQ,hourCycle:"h23",timeZoneName:aJ},on={hour:aQ,minute:aQ,second:aQ,hourCycle:"h23",timeZoneName:a0},oi={year:aQ,month:aQ,day:aQ,hour:aQ,minute:aQ},oa={year:aQ,month:aQ,day:aQ,hour:aQ,minute:aQ,second:aQ},oo={year:aQ,month:aJ,day:aQ,hour:aQ,minute:aQ},os={year:aQ,month:aJ,day:aQ,hour:aQ,minute:aQ,second:aQ},ol={year:aQ,month:aJ,day:aQ,weekday:aJ,hour:aQ,minute:aQ},ou={year:aQ,month:a0,day:aQ,hour:aQ,minute:aQ,timeZoneName:aJ},oc={year:aQ,month:a0,day:aQ,hour:aQ,minute:aQ,second:aQ,timeZoneName:aJ},od={year:aQ,month:a0,day:aQ,weekday:a0,hour:aQ,minute:aQ,timeZoneName:a0},oh={year:aQ,month:a0,day:aQ,weekday:a0,hour:aQ,minute:aQ,second:aQ,timeZoneName:a0},of=/*#__PURE__*/function(){function e(){}var t=e.prototype;return t.offsetName=function(e,t){throw new aK},t.formatOffset=function(e,t){throw new aK},t.offset=function(e){throw new aK},t.equals=function(e){throw new aK},aR(e,[{key:"type",get:function(){throw new aK}},{key:"name",get:function(){throw new aK}},{key:"ianaName",get:function(){return this.name}},{key:"isUniversal",get:function(){throw new aK}},{key:"isValid",get:function(){throw new aK}}]),e}(),op=null,og=/*#__PURE__*/function(e){function t(){return e.apply(this,arguments)||this}az(t,e);var r=t.prototype;return r.offsetName=function(e,t){return sR(e,t.format,t.locale)},r.formatOffset=function(e,t){return sF(this.offset(e),t)},r.offset=function(e){return-new Date(e).getTimezoneOffset()},r.equals=function(e){return"system"===e.type},aR(t,[{key:"type",get:function(){return"system"}},{key:"name",get:function(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!0}}],[{key:"instance",get:function(){return null===op&&(op=new t),op}}]),t}(of),om={},ov={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6},ob={},ox=/*#__PURE__*/function(e){function t(r){var n;return(n=e.call(this)||this).zoneName=r,n.valid=t.isValidZone(r),n}az(t,e),t.create=function(e){return ob[e]||(ob[e]=new t(e)),ob[e]},t.resetCache=function(){ob={},om={}},t.isValidSpecifier=function(e){return this.isValidZone(e)},t.isValidZone=function(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch(e){return!1}};var r=t.prototype;return r.offsetName=function(e,t){return sR(e,t.format,t.locale,this.name)},r.formatOffset=function(e,t){return sF(this.offset(e),t)},r.offset=function(e){var t,r,n,i,a,o=new Date(e);if(isNaN(o))return NaN;var s=(om[t=this.name]||(om[t]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),om[t]),l=s.formatToParts?function(e,t){for(var r=e.formatToParts(t),n=[],i=0;i<r.length;i++){var a=r[i],o=a.type,s=a.value,l=ov[o];"era"===o?n[l]=s:sf(l)||(n[l]=parseInt(s,10))}return n}(s,o):(r=s.format(o).replace(/\u200E/g,""),i=(n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r))[1],a=n[2],[n[3],i,a,n[4],n[5],n[6],n[7]]),u=l[0],c=l[1],d=l[2],h=l[3],f=l[4],p=l[5],g=l[6];"BC"===h&&(u=-Math.abs(u)+1);var m=sO({year:u,month:c,day:d,hour:24===f?0:f,minute:p,second:g,millisecond:0}),v=+o,b=v%1e3;return(m-(v-=b>=0?b:1e3+b))/6e4},r.equals=function(e){return"iana"===e.type&&e.name===this.name},aR(t,[{key:"type",get:function(){return"iana"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return this.valid}}]),t}(of),oy=["base"],ow=["padTo","floor"],ok={},oS={};function oC(e,t){void 0===t&&(t={});var r=JSON.stringify([e,t]),n=oS[r];return n||(n=new Intl.DateTimeFormat(e,t),oS[r]=n),n}var oA={},oE={},o_=null,oT={};function oP(e,t,r,n){var i=e.listingMode();return"error"===i?null:"en"===i?r(t):n(t)}var oO=/*#__PURE__*/function(){function e(e,t,r){this.padTo=r.padTo||0,this.floor=r.floor||!1,r.padTo,r.floor;var n=aW(r,ow);if(!t||Object.keys(n).length>0){var i,a,o,s=aN({useGrouping:!1},r);r.padTo>0&&(s.minimumIntegerDigits=r.padTo),this.inf=(void 0===(i=s)&&(i={}),(o=oA[a=JSON.stringify([e,i])])||(o=new Intl.NumberFormat(e,i),oA[a]=o),o)}}return e.prototype.format=function(e){if(!this.inf)return sk(this.floor?Math.floor(e):sE(e,3),this.padTo);var t=this.floor?Math.floor(e):e;return this.inf.format(t)},e}(),oM=/*#__PURE__*/function(){function e(e,t,r){this.opts=r,this.originalZone=void 0;var n=void 0;if(this.opts.timeZone)this.dt=e;else if("fixed"===e.zone.type){var i=-1*(e.offset/60),a=i>=0?"Etc/GMT+"+i:"Etc/GMT"+i;0!==e.offset&&ox.create(a).valid?(n=a,this.dt=e):(n="UTC",this.dt=0===e.offset?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else"system"===e.zone.type?this.dt=e:"iana"===e.zone.type?(this.dt=e,n=e.zone.name):(n="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);var o=aN({},this.opts);o.timeZone=o.timeZone||n,this.dtf=oC(t,o)}var t=e.prototype;return t.format=function(){return this.originalZone?this.formatToParts().map(function(e){return e.value}).join(""):this.dtf.format(this.dt.toJSDate())},t.formatToParts=function(){var e=this,t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(function(t){if("timeZoneName"!==t.type)return t;var r=e.originalZone.offsetName(e.dt.ts,{locale:e.dt.locale,format:e.opts.timeZoneName});return aN({},t,{value:r})}):t},t.resolvedOptions=function(){return this.dtf.resolvedOptions()},e}(),oI=/*#__PURE__*/function(){function e(e,t,r){if(this.opts=aN({style:"long"},r),!t&&sm()){var n,i,a,o;this.rtf=(void 0===(n=r)&&(n={}),(i=n).base,(o=oE[a=JSON.stringify([e,aW(i,oy)])])||(o=new Intl.RelativeTimeFormat(e,n),oE[a]=o),o)}}var t=e.prototype;return t.format=function(e,t){return this.rtf?this.rtf.format(e,t):function(e,t,r,n){void 0===r&&(r="always"),void 0===n&&(n=!1);var i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},a=-1===["hours","minutes","seconds"].indexOf(e);if("auto"===r&&a){var o="days"===e;switch(t){case 1:return o?"tomorrow":"next "+i[e][0];case -1:return o?"yesterday":"last "+i[e][0];case 0:return o?"today":"this "+i[e][0]}}var s=Object.is(t,-0)||t<0,l=Math.abs(t),u=1===l,c=i[e],d=n?u?c[1]:c[2]||c[1]:u?i[e][0]:e;return s?l+" "+d+" ago":"in "+l+" "+d}(t,e,this.opts.numeric,"long"!==this.opts.style)},t.formatToParts=function(e,t){return this.rtf?this.rtf.formatToParts(e,t):[]},e}(),oL={firstDay:1,minimalDays:4,weekend:[6,7]},oR=/*#__PURE__*/function(){function e(e,t,r,n,i){var a,o,s,l=function(e){var t=e.indexOf("-x-");-1!==t&&(e=e.substring(0,t));var r=e.indexOf("-u-");if(-1===r)return[e];try{n=oC(e).resolvedOptions(),i=e}catch(t){var n,i,a=e.substring(0,r);n=oC(a).resolvedOptions(),i=a}var o=n;return[i,o.numberingSystem,o.calendar]}(e),u=l[0],c=l[1],d=l[2];this.locale=u,this.numberingSystem=t||c||null,this.outputCalendar=r||d||null,this.weekSettings=n,this.intl=(a=this.locale,o=this.numberingSystem,((s=this.outputCalendar)||o)&&(a.includes("-u-")||(a+="-u"),s&&(a+="-ca-"+s),o&&(a+="-nu-"+o)),a),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}e.fromOpts=function(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)},e.create=function(t,r,n,i,a){void 0===a&&(a=!1);var o=t||o9.defaultLocale;return new e(o||(a?"en-US":o_||(o_=new Intl.DateTimeFormat().resolvedOptions().locale)),r||o9.defaultNumberingSystem,n||o9.defaultOutputCalendar,sy(i)||o9.defaultWeekSettings,o)},e.resetCache=function(){o_=null,oS={},oA={},oE={}},e.fromObject=function(t){var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,a=r.outputCalendar,o=r.weekSettings;return e.create(n,i,a,o)};var t=e.prototype;return t.listingMode=function(){var e=this.isEnglish(),t=(null===this.numberingSystem||"latn"===this.numberingSystem)&&(null===this.outputCalendar||"gregory"===this.outputCalendar);return e&&t?"en":"intl"},t.clone=function(t){return t&&0!==Object.getOwnPropertyNames(t).length?e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,sy(t.weekSettings)||this.weekSettings,t.defaultToEN||!1):this},t.redefaultToEN=function(e){return void 0===e&&(e={}),this.clone(aN({},e,{defaultToEN:!0}))},t.redefaultToSystem=function(e){return void 0===e&&(e={}),this.clone(aN({},e,{defaultToEN:!1}))},t.months=function(e,t){var r=this;return void 0===t&&(t=!1),oP(this,e,sX,function(){var n=t?{month:e,day:"numeric"}:{month:e},i=t?"format":"standalone";return r.monthsCache[i][e]||(r.monthsCache[i][e]=function(e){for(var t=[],r=1;r<=12;r++){var n=uk.utc(2009,r,1);t.push(e(n))}return t}(function(e){return r.extract(e,n,"month")})),r.monthsCache[i][e]})},t.weekdays=function(e,t){var r=this;return void 0===t&&(t=!1),oP(this,e,sG,function(){var n=t?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=t?"format":"standalone";return r.weekdaysCache[i][e]||(r.weekdaysCache[i][e]=function(e){for(var t=[],r=1;r<=7;r++){var n=uk.utc(2016,11,13+r);t.push(e(n))}return t}(function(e){return r.extract(e,n,"weekday")})),r.weekdaysCache[i][e]})},t.meridiems=function(){var e=this;return oP(this,void 0,function(){return s$},function(){if(!e.meridiemCache){var t={hour:"numeric",hourCycle:"h12"};e.meridiemCache=[uk.utc(2016,11,13,9),uk.utc(2016,11,13,19)].map(function(r){return e.extract(r,t,"dayperiod")})}return e.meridiemCache})},t.eras=function(e){var t=this;return oP(this,e,sQ,function(){var r={era:e};return t.eraCache[e]||(t.eraCache[e]=[uk.utc(-40,1,1),uk.utc(2017,1,1)].map(function(e){return t.extract(e,r,"era")})),t.eraCache[e]})},t.extract=function(e,t,r){var n=this.dtFormatter(e,t).formatToParts().find(function(e){return e.type.toLowerCase()===r});return n?n.value:null},t.numberFormatter=function(e){return void 0===e&&(e={}),new oO(this.intl,e.forceSimple||this.fastNumbers,e)},t.dtFormatter=function(e,t){return void 0===t&&(t={}),new oM(e,this.intl,t)},t.relFormatter=function(e){return void 0===e&&(e={}),new oI(this.intl,this.isEnglish(),e)},t.listFormatter=function(e){var t,r,n,i;return void 0===e&&(e={}),t=this.intl,void 0===(r=e)&&(r={}),(i=ok[n=JSON.stringify([t,r])])||(i=new Intl.ListFormat(t,r),ok[n]=i),i},t.isEnglish=function(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")},t.getWeekSettings=function(){return this.weekSettings?this.weekSettings:sv()?function(e){var t=oT[e];if(!t){var r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,oT[e]=t}return t}(this.locale):oL},t.getStartOfWeek=function(){return this.getWeekSettings().firstDay},t.getMinDaysInFirstWeek=function(){return this.getWeekSettings().minimalDays},t.getWeekendDays=function(){return this.getWeekSettings().weekend},t.equals=function(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar},aR(e,[{key:"fastNumbers",get:function(){return null==this.fastNumbersCached&&(this.fastNumbersCached=(!this.numberingSystem||"latn"===this.numberingSystem)&&("latn"===this.numberingSystem||!this.locale||this.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(this.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}}]),e}(),oN=null,oz=/*#__PURE__*/function(e){function t(t){var r;return(r=e.call(this)||this).fixed=t,r}az(t,e),t.instance=function(e){return 0===e?t.utcInstance:new t(e)},t.parseSpecifier=function(e){if(e){var r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(sN(r[1],r[2]))}return null};var r=t.prototype;return r.offsetName=function(){return this.name},r.formatOffset=function(e,t){return sF(this.fixed,t)},r.offset=function(){return this.fixed},r.equals=function(e){return"fixed"===e.type&&e.fixed===this.fixed},aR(t,[{key:"type",get:function(){return"fixed"}},{key:"name",get:function(){return 0===this.fixed?"UTC":"UTC"+sF(this.fixed,"narrow")}},{key:"ianaName",get:function(){return 0===this.fixed?"Etc/UTC":"Etc/GMT"+sF(-this.fixed,"narrow")}},{key:"isUniversal",get:function(){return!0}},{key:"isValid",get:function(){return!0}}],[{key:"utcInstance",get:function(){return null===oN&&(oN=new t(0)),oN}}]),t}(of),oD=/*#__PURE__*/function(e){function t(t){var r;return(r=e.call(this)||this).zoneName=t,r}az(t,e);var r=t.prototype;return r.offsetName=function(){return null},r.formatOffset=function(){return""},r.offset=function(){return NaN},r.equals=function(){return!1},aR(t,[{key:"type",get:function(){return"invalid"}},{key:"name",get:function(){return this.zoneName}},{key:"isUniversal",get:function(){return!1}},{key:"isValid",get:function(){return!1}}]),t}(of);function oF(e,t){if(sf(e)||null===e)return t;if(e instanceof of)return e;if("string"==typeof e){var r=e.toLowerCase();return"default"===r?t:"local"===r||"system"===r?og.instance:"utc"===r||"gmt"===r?oz.utcInstance:oz.parseSpecifier(r)||ox.create(e)}return sp(e)?oz.instance(e):"object"==typeof e&&"offset"in e&&"function"==typeof e.offset?e:new oD(e)}var oB,oj,oW,oH,oX,oY,oU,oV,oG,o$,oq,oZ,oK,oQ,oJ,o0,o1=function(){return Date.now()},o2="system",o5=null,o3=null,o4=null,o6=60,o8=null,o9=/*#__PURE__*/function(){function e(){}return e.resetCaches=function(){oR.resetCache(),ox.resetCache()},aR(e,null,[{key:"now",get:function(){return o1},set:function(e){o1=e}},{key:"defaultZone",get:function(){return oF(o2,og.instance)},set:function(e){o2=e}},{key:"defaultLocale",get:function(){return o5},set:function(e){o5=e}},{key:"defaultNumberingSystem",get:function(){return o3},set:function(e){o3=e}},{key:"defaultOutputCalendar",get:function(){return o4},set:function(e){o4=e}},{key:"defaultWeekSettings",get:function(){return o8},set:function(e){o8=sy(e)}},{key:"twoDigitCutoffYear",get:function(){return o6},set:function(e){o6=e%100}},{key:"throwOnInvalid",get:function(){return o0},set:function(e){o0=e}}]),e}(),o7=/*#__PURE__*/function(){function e(e,t){this.reason=e,this.explanation=t}return e.prototype.toMessage=function(){return this.explanation?this.reason+": "+this.explanation:this.reason},e}(),se=[0,31,59,90,120,151,181,212,243,273,304,334],st=[0,31,60,91,121,152,182,213,244,274,305,335];function sr(e,t){return new o7("unit out of range","you specified "+t+" (of type "+typeof t+") as a "+e+", which is invalid")}function sn(e,t,r){var n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);var i=n.getUTCDay();return 0===i?7:i}function si(e,t){var r=s_(e)?st:se,n=r.findIndex(function(e){return e<t}),i=t-r[n];return{month:n+1,day:i}}function sa(e,t){return(e-t+7)%7+1}function so(e,t,r){void 0===t&&(t=4),void 0===r&&(r=1);var n,i=e.year,a=e.month,o=e.day,s=o+(s_(i)?st:se)[a-1],l=sa(sn(i,a,o),r),u=Math.floor((s-l+14-t)/7);return u<1?u=sI(n=i-1,t,r):u>sI(i,t,r)?(n=i+1,u=1):n=i,aN({weekYear:n,weekNumber:u,weekday:l},sB(e))}function ss(e,t,r){void 0===t&&(t=4),void 0===r&&(r=1);var n,i=e.weekYear,a=e.weekNumber,o=e.weekday,s=sa(sn(i,1,t),r),l=sT(i),u=7*a+o-s-7+t;u<1?u+=sT(n=i-1):u>l?(n=i+1,u-=sT(i)):n=i;var c=si(n,u),d=c.month,h=c.day;return aN({year:n,month:d,day:h},sB(e))}function sl(e){var t=e.year,r=e.month,n=e.day+(s_(t)?st:se)[r-1];return aN({year:t,ordinal:n},sB(e))}function su(e){var t=e.year,r=si(t,e.ordinal),n=r.month,i=r.day;return aN({year:t,month:n,day:i},sB(e))}function sc(e,t){if(!(!sf(e.localWeekday)||!sf(e.localWeekNumber)||!sf(e.localWeekYear)))return{minDaysInFirstWeek:4,startOfWeek:1};if(!sf(e.weekday)||!sf(e.weekNumber)||!sf(e.weekYear))throw new a$("Cannot mix locale-based week fields with ISO-based week fields");return sf(e.localWeekday)||(e.weekday=e.localWeekday),sf(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),sf(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}function sd(e){var t=sg(e.year),r=sw(e.month,1,12),n=sw(e.day,1,sP(e.year,e.month));return t?r?!n&&sr("day",e.day):sr("month",e.month):sr("year",e.year)}function sh(e){var t=e.hour,r=e.minute,n=e.second,i=e.millisecond,a=sw(t,0,23)||24===t&&0===r&&0===n&&0===i,o=sw(r,0,59),s=sw(n,0,59),l=sw(i,0,999);return a?o?s?!l&&sr("millisecond",i):sr("second",n):sr("minute",r):sr("hour",t)}function sf(e){return void 0===e}function sp(e){return"number"==typeof e}function sg(e){return"number"==typeof e&&e%1==0}function sm(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(e){return!1}}function sv(){try{return"undefined"!=typeof Intl&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch(e){return!1}}function sb(e,t,r){if(0!==e.length)return e.reduce(function(e,n){var i=[t(n),n];return e&&r(e[0],i[0])===e[0]?e:i},null)[1]}function sx(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function sy(e){if(null==e)return null;if("object"!=typeof e)throw new aZ("Week settings must be an object");if(!sw(e.firstDay,1,7)||!sw(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(function(e){return!sw(e,1,7)}))throw new aZ("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function sw(e,t,r){return sg(e)&&e>=t&&e<=r}function sk(e,t){return void 0===t&&(t=2),e<0?"-"+(""+-e).padStart(t,"0"):(""+e).padStart(t,"0")}function sS(e){if(!sf(e)&&null!==e&&""!==e)return parseInt(e,10)}function sC(e){if(!sf(e)&&null!==e&&""!==e)return parseFloat(e)}function sA(e){if(!sf(e)&&null!==e&&""!==e)return Math.floor(1e3*parseFloat("0."+e))}function sE(e,t,r){void 0===r&&(r=!1);var n=Math.pow(10,t);return(r?Math.trunc:Math.round)(e*n)/n}function s_(e){return e%4==0&&(e%100!=0||e%400==0)}function sT(e){return s_(e)?366:365}function sP(e,t){var r,n=(r=t-1)-12*Math.floor(r/12)+1;return 2===n?s_(e+(t-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function sO(e){var t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t)).setUTCFullYear(e.year,e.month-1,e.day),+t}function sM(e,t,r){return-sa(sn(e,1,t),r)+t-1}function sI(e,t,r){void 0===t&&(t=4),void 0===r&&(r=1);var n=sM(e,t,r),i=sM(e+1,t,r);return(sT(e)-n+i)/7}function sL(e){return e>99?e:e>o9.twoDigitCutoffYear?1900+e:2e3+e}function sR(e,t,r,n){void 0===n&&(n=null);var i=new Date(e),a={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(a.timeZone=n);var o=aN({timeZoneName:t},a),s=new Intl.DateTimeFormat(r,o).formatToParts(i).find(function(e){return"timezonename"===e.type.toLowerCase()});return s?s.value:null}function sN(e,t){var r=parseInt(e,10);Number.isNaN(r)&&(r=0);var n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return 60*r+i}function sz(e){var t=Number(e);if("boolean"==typeof e||""===e||Number.isNaN(t))throw new aZ("Invalid unit value "+e);return t}function sD(e,t){var r={};for(var n in e)if(sx(e,n)){var i=e[n];if(null==i)continue;r[t(n)]=sz(i)}return r}function sF(e,t){var r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return""+i+sk(r,2)+":"+sk(n,2);case"narrow":return""+i+r+(n>0?":"+n:"");case"techie":return""+i+sk(r,2)+sk(n,2);default:throw RangeError("Value format "+t+" is out of range for property format")}}function sB(e){return["hour","minute","second","millisecond"].reduce(function(t,r){return t[r]=e[r],t},{})}var sj=["January","February","March","April","May","June","July","August","September","October","November","December"],sW=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],sH=["J","F","M","A","M","J","J","A","S","O","N","D"];function sX(e){switch(e){case"narrow":return[].concat(sH);case"short":return[].concat(sW);case"long":return[].concat(sj);case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}var sY=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sU=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],sV=["M","T","W","T","F","S","S"];function sG(e){switch(e){case"narrow":return[].concat(sV);case"short":return[].concat(sU);case"long":return[].concat(sY);case"numeric":return["1","2","3","4","5","6","7"];default:return null}}var s$=["AM","PM"],sq=["Before Christ","Anno Domini"],sZ=["BC","AD"],sK=["B","A"];function sQ(e){switch(e){case"narrow":return[].concat(sK);case"short":return[].concat(sZ);case"long":return[].concat(sq);default:return null}}function sJ(e,t){for(var r,n="",i=aX(e);!(r=i()).done;){var a=r.value;a.literal?n+=a.val:n+=t(a.val)}return n}var s0={D:a1,DD:a2,DDD:a3,DDDD:a4,t:a6,tt:a8,ttt:a9,tttt:a7,T:oe,TT:ot,TTT:or,TTTT:on,f:oi,ff:oo,fff:ou,ffff:od,F:oa,FF:os,FFF:oc,FFFF:oh},s1=/*#__PURE__*/function(){function e(e,t){this.opts=t,this.loc=e,this.systemLoc=null}e.create=function(t,r){return void 0===r&&(r={}),new e(t,r)},e.parseFormat=function(e){for(var t=null,r="",n=!1,i=[],a=0;a<e.length;a++){var o=e.charAt(a);"'"===o?(r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),t=null,r="",n=!n):n?r+=o:o===t?r+=o:(r.length>0&&i.push({literal:/^\s+$/.test(r),val:r}),r=o,t=o)}return r.length>0&&i.push({literal:n||/^\s+$/.test(r),val:r}),i},e.macroTokenToFormatOpts=function(e){return s0[e]};var t=e.prototype;return t.formatWithSystemDefault=function(e,t){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,aN({},this.opts,t)).format()},t.dtFormatter=function(e,t){return void 0===t&&(t={}),this.loc.dtFormatter(e,aN({},this.opts,t))},t.formatDateTime=function(e,t){return this.dtFormatter(e,t).format()},t.formatDateTimeParts=function(e,t){return this.dtFormatter(e,t).formatToParts()},t.formatInterval=function(e,t){return this.dtFormatter(e.start,t).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())},t.resolvedOptions=function(e,t){return this.dtFormatter(e,t).resolvedOptions()},t.num=function(e,t){if(void 0===t&&(t=0),this.opts.forceSimple)return sk(e,t);var r=aN({},this.opts);return t>0&&(r.padTo=t),this.loc.numberFormatter(r).format(e)},t.formatDateTimeFromString=function(t,r){var n=this,i="en"===this.loc.listingMode(),a=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,o=function(e,r){return n.loc.extract(t,e,r)},s=function(e){return t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):""},l=function(e,r){return i?sX(e)[t.month-1]:o(r?{month:e}:{month:e,day:"numeric"},"month")},u=function(e,r){return i?sG(e)[t.weekday-1]:o(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday")},c=function(r){var i=e.macroTokenToFormatOpts(r);return i?n.formatWithSystemDefault(t,i):r},d=function(e){return i?sQ(e)[t.year<0?0:1]:o({era:e},"era")};return sJ(e.parseFormat(r),function(e){switch(e){case"S":return n.num(t.millisecond);case"u":case"SSS":return n.num(t.millisecond,3);case"s":return n.num(t.second);case"ss":return n.num(t.second,2);case"uu":return n.num(Math.floor(t.millisecond/10),2);case"uuu":return n.num(Math.floor(t.millisecond/100));case"m":return n.num(t.minute);case"mm":return n.num(t.minute,2);case"h":return n.num(t.hour%12==0?12:t.hour%12);case"hh":return n.num(t.hour%12==0?12:t.hour%12,2);case"H":return n.num(t.hour);case"HH":return n.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:n.opts.allowZ});case"ZZ":return s({format:"short",allowZ:n.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:n.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:n.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:n.loc.locale});case"z":return t.zoneName;case"a":return i?s$[t.hour<12?0:1]:o({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return a?o({day:"numeric"},"day"):n.num(t.day);case"dd":return a?o({day:"2-digit"},"day"):n.num(t.day,2);case"c":case"E":return n.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return a?o({month:"numeric",day:"numeric"},"month"):n.num(t.month);case"LL":return a?o({month:"2-digit",day:"numeric"},"month"):n.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return a?o({month:"numeric"},"month"):n.num(t.month);case"MM":return a?o({month:"2-digit"},"month"):n.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return a?o({year:"numeric"},"year"):n.num(t.year);case"yy":return a?o({year:"2-digit"},"year"):n.num(t.year.toString().slice(-2),2);case"yyyy":return a?o({year:"numeric"},"year"):n.num(t.year,4);case"yyyyyy":return a?o({year:"numeric"},"year"):n.num(t.year,6);case"G":return d("short");case"GG":return d("long");case"GGGGG":return d("narrow");case"kk":return n.num(t.weekYear.toString().slice(-2),2);case"kkkk":return n.num(t.weekYear,4);case"W":return n.num(t.weekNumber);case"WW":return n.num(t.weekNumber,2);case"n":return n.num(t.localWeekNumber);case"nn":return n.num(t.localWeekNumber,2);case"ii":return n.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return n.num(t.localWeekYear,4);case"o":return n.num(t.ordinal);case"ooo":return n.num(t.ordinal,3);case"q":return n.num(t.quarter);case"qq":return n.num(t.quarter,2);case"X":return n.num(Math.floor(t.ts/1e3));case"x":return n.num(t.ts);default:return c(e)}})},t.formatDurationFromString=function(t,r){var n,i=this,a=function(e){switch(e[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},o=e.parseFormat(r),s=o.reduce(function(e,t){var r=t.literal,n=t.val;return r?e:e.concat(n)},[]);return sJ(o,(n=t.shiftTo.apply(t,s.map(a).filter(function(e){return e})),function(e){var t=a(e);return t?i.num(n.get(t),e.length):e}))},e}(),s2=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function s5(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return RegExp("^"+t.reduce(function(e,t){return e+t.source},"")+"$")}function s3(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return t.reduce(function(t,r){var n=t[0],i=t[1],a=r(e,t[2]),o=a[0],s=a[1],l=a[2];return[aN({},n,o),s||i,l]},[{},null,1]).slice(0,2)}}function s4(e){if(null==e)return[null,null];for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];for(var i=0;i<r.length;i++){var a=r[i],o=a[0],s=a[1],l=o.exec(e);if(l)return s(l)}return[null,null]}function s6(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e,r){var n,i={};for(n=0;n<t.length;n++)i[t[n]]=sS(e[r+n]);return[i,null,r+n]}}var s8=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,s9=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,s7=RegExp(""+s9.source+("(?:"+s8.source+"?(?:\\[(")+s2.source+")\\])?)?"),le=RegExp("(?:T"+s7.source+")?"),lt=s6("weekYear","weekNumber","weekDay"),lr=s6("year","ordinal"),ln=RegExp(s9.source+" ?(?:"+s8.source+"|("+s2.source+"))?"),li=RegExp("(?: "+ln.source+")?");function la(e,t,r){var n=e[t];return sf(n)?r:sS(n)}function lo(e,t){return[{hours:la(e,t,0),minutes:la(e,t+1,0),seconds:la(e,t+2,0),milliseconds:sA(e[t+3])},null,t+4]}function ls(e,t){var r=!e[t]&&!e[t+1],n=sN(e[t+1],e[t+2]);return[{},r?null:oz.instance(n),t+3]}function ll(e,t){return[{},e[t]?ox.create(e[t]):null,t+1]}var lu=RegExp("^T?"+s9.source+"$"),lc=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function ld(e){var t=e[0],r=e[1],n=e[2],i=e[3],a=e[4],o=e[5],s=e[6],l=e[7],u=e[8],c="-"===t[0],d=l&&"-"===l[0],h=function(e,t){return void 0===t&&(t=!1),void 0!==e&&(t||e&&c)?-e:e};return[{years:h(sC(r)),months:h(sC(n)),weeks:h(sC(i)),days:h(sC(a)),hours:h(sC(o)),minutes:h(sC(s)),seconds:h(sC(l),"-0"===l),milliseconds:h(sA(u),d)}]}var lh={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function lf(e,t,r,n,i,a,o){var s={year:2===t.length?sL(sS(t)):sS(t),month:sW.indexOf(r)+1,day:sS(n),hour:sS(i),minute:sS(a)};return o&&(s.second=sS(o)),e&&(s.weekday=e.length>3?sY.indexOf(e)+1:sU.indexOf(e)+1),s}var lp=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function lg(e){var t=e[1],r=e[2],n=e[3],i=e[4],a=e[5],o=e[6],s=e[7],l=e[8],u=e[9],c=e[10],d=e[11];return[lf(t,i,n,r,a,o,s),new oz(l?lh[l]:u?0:sN(c,d))]}var lm=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,lv=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,lb=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function lx(e){var t=e[1],r=e[2],n=e[3];return[lf(t,e[4],n,r,e[5],e[6],e[7]),oz.utcInstance]}function ly(e){var t=e[1],r=e[2],n=e[3],i=e[4],a=e[5],o=e[6];return[lf(t,e[7],r,n,i,a,o),oz.utcInstance]}var lw=s5(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,le),lk=s5(/(\d{4})-?W(\d\d)(?:-?(\d))?/,le),lS=s5(/(\d{4})-?(\d{3})/,le),lC=s5(s7),lA=s3(function(e,t){return[{year:la(e,t),month:la(e,t+1,1),day:la(e,t+2,1)},null,t+3]},lo,ls,ll),lE=s3(lt,lo,ls,ll),l_=s3(lr,lo,ls,ll),lT=s3(lo,ls,ll),lP=s3(lo),lO=s5(/(\d{4})-(\d\d)-(\d\d)/,li),lM=s5(ln),lI=s3(lo,ls,ll),lL="Invalid Duration",lR={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},lN=aN({years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6}},lR),lz=aN({years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:0x1e18558,milliseconds:31556952e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:7889238,milliseconds:7889238e3},months:{weeks:30.436875/7,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3}},lR),lD=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],lF=lD.slice(0).reverse();function lB(e,t,r){return void 0===r&&(r=!1),new lH({values:r?t.values:aN({},e.values,t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix})}function lj(e,t){for(var r,n,i=null!=(r=t.milliseconds)?r:0,a=aX(lF.slice(1));!(n=a()).done;){var o=n.value;t[o]&&(i+=t[o]*e[o].milliseconds)}return i}function lW(e,t){var r=0>lj(e,t)?-1:1;lD.reduceRight(function(n,i){if(sf(t[i]))return n;if(n){var a=t[n]*r,o=e[i][n],s=Math.floor(a/o);t[i]+=s*r,t[n]-=s*o*r}return i},null),lD.reduce(function(r,n){if(sf(t[n]))return r;if(r){var i=t[r]%1;t[r]-=i,t[n]+=i*e[r][n]}return n},null)}var lH=/*#__PURE__*/function(e){function t(e){var t="longterm"===e.conversionAccuracy,r=t?lz:lN;e.matrix&&(r=e.matrix),this.values=e.values,this.loc=e.loc||oR.create(),this.conversionAccuracy=t?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=r,this.isLuxonDuration=!0}t.fromMillis=function(e,r){return t.fromObject({milliseconds:e},r)},t.fromObject=function(e,r){if(void 0===r&&(r={}),null==e||"object"!=typeof e)throw new aZ("Duration.fromObject: argument expected to be an object, got "+(null===e?"null":typeof e));return new t({values:sD(e,t.normalizeUnit),loc:oR.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})},t.fromDurationLike=function(e){if(sp(e))return t.fromMillis(e);if(t.isDuration(e))return e;if("object"==typeof e)return t.fromObject(e);throw new aZ("Unknown duration argument "+e+" of type "+typeof e)},t.fromISO=function(e,r){var n=s4(e,[lc,ld])[0];return n?t.fromObject(n,r):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.fromISOTime=function(e,r){var n=s4(e,[lu,lP])[0];return n?t.fromObject(n,r):t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new aZ("need to specify a reason the Duration is invalid");var n=e instanceof o7?e:new o7(e,r);if(!o9.throwOnInvalid)return new t({invalid:n});throw new aG(n)},t.normalizeUnit=function(e){var t={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e?e.toLowerCase():e];if(!t)throw new aq(e);return t},t.isDuration=function(e){return e&&e.isLuxonDuration||!1};var r=t.prototype;return r.toFormat=function(e,t){void 0===t&&(t={});var r=aN({},t,{floor:!1!==t.round&&!1!==t.floor});return this.isValid?s1.create(this.loc,r).formatDurationFromString(this,e):lL},r.toHuman=function(e){var t=this;if(void 0===e&&(e={}),!this.isValid)return lL;var r=lD.map(function(r){var n=t.values[r];return sf(n)?null:t.loc.numberFormatter(aN({style:"unit",unitDisplay:"long"},e,{unit:r.slice(0,-1)})).format(n)}).filter(function(e){return e});return this.loc.listFormatter(aN({type:"conjunction",style:e.listStyle||"narrow"},e)).format(r)},r.toObject=function(){return this.isValid?aN({},this.values):{}},r.toISO=function(){if(!this.isValid)return null;var e="P";return 0!==this.years&&(e+=this.years+"Y"),(0!==this.months||0!==this.quarters)&&(e+=this.months+3*this.quarters+"M"),0!==this.weeks&&(e+=this.weeks+"W"),0!==this.days&&(e+=this.days+"D"),(0!==this.hours||0!==this.minutes||0!==this.seconds||0!==this.milliseconds)&&(e+="T"),0!==this.hours&&(e+=this.hours+"H"),0!==this.minutes&&(e+=this.minutes+"M"),(0!==this.seconds||0!==this.milliseconds)&&(e+=sE(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===e&&(e+="T0S"),e},r.toISOTime=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var t=this.toMillis();return t<0||t>=864e5?null:(e=aN({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},e,{includeOffset:!1}),uk.fromMillis(t,{zone:"UTC"}).toISOTime(e))},r.toJSON=function(){return this.toISO()},r.toString=function(){return this.toISO()},r[e]=function(){return this.isValid?"Duration { values: "+JSON.stringify(this.values)+" }":"Duration { Invalid, reason: "+this.invalidReason+" }"},r.toMillis=function(){return this.isValid?lj(this.matrix,this.values):NaN},r.valueOf=function(){return this.toMillis()},r.plus=function(e){if(!this.isValid)return this;for(var r=t.fromDurationLike(e),n={},i=0;i<lD.length;i++){var a=lD[i];(sx(r.values,a)||sx(this.values,a))&&(n[a]=r.get(a)+this.get(a))}return lB(this,{values:n},!0)},r.minus=function(e){if(!this.isValid)return this;var r=t.fromDurationLike(e);return this.plus(r.negate())},r.mapUnits=function(e){if(!this.isValid)return this;for(var t={},r=0,n=Object.keys(this.values);r<n.length;r++){var i=n[r];t[i]=sz(e(this.values[i],i))}return lB(this,{values:t},!0)},r.get=function(e){return this[t.normalizeUnit(e)]},r.set=function(e){return this.isValid?lB(this,{values:aN({},this.values,sD(e,t.normalizeUnit))}):this},r.reconfigure=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.numberingSystem,i=t.conversionAccuracy,a=t.matrix;return lB(this,{loc:this.loc.clone({locale:r,numberingSystem:n}),matrix:a,conversionAccuracy:i})},r.as=function(e){return this.isValid?this.shiftTo(e).get(e):NaN},r.normalize=function(){if(!this.isValid)return this;var e=this.toObject();return lW(this.matrix,e),lB(this,{values:e},!0)},r.rescale=function(){return this.isValid?lB(this,{values:function(e){for(var t={},r=0,n=Object.entries(e);r<n.length;r++){var i=n[r],a=i[0],o=i[1];0!==o&&(t[a]=o)}return t}(this.normalize().shiftToAll().toObject())},!0):this},r.shiftTo=function(){for(var e,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];if(!this.isValid||0===n.length)return this;n=n.map(function(e){return t.normalizeUnit(e)});for(var a={},o={},s=this.toObject(),l=0;l<lD.length;l++){var u=lD[l];if(n.indexOf(u)>=0){e=u;var c=0;for(var d in o)c+=this.matrix[d][u]*o[d],o[d]=0;sp(s[u])&&(c+=s[u]);var h=Math.trunc(c);a[u]=h,o[u]=(1e3*c-1e3*h)/1e3}else sp(s[u])&&(o[u]=s[u])}for(var f in o)0!==o[f]&&(a[e]+=f===e?o[f]:o[f]/this.matrix[e][f]);return lW(this.matrix,a),lB(this,{values:a},!0)},r.shiftToAll=function(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this},r.negate=function(){if(!this.isValid)return this;for(var e={},t=0,r=Object.keys(this.values);t<r.length;t++){var n=r[t];e[n]=0===this.values[n]?0:-this.values[n]}return lB(this,{values:e},!0)},r.equals=function(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;for(var t=0;t<lD.length;t++){var r,n,i=lD[t];if(r=this.values[i],n=e.values[i],void 0===r||0===r?void 0!==n&&0!==n:r!==n)return!1}return!0},aR(t,[{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"years",get:function(){return this.isValid?this.values.years||0:NaN}},{key:"quarters",get:function(){return this.isValid?this.values.quarters||0:NaN}},{key:"months",get:function(){return this.isValid?this.values.months||0:NaN}},{key:"weeks",get:function(){return this.isValid?this.values.weeks||0:NaN}},{key:"days",get:function(){return this.isValid?this.values.days||0:NaN}},{key:"hours",get:function(){return this.isValid?this.values.hours||0:NaN}},{key:"minutes",get:function(){return this.isValid?this.values.minutes||0:NaN}},{key:"seconds",get:function(){return this.isValid?this.values.seconds||0:NaN}},{key:"milliseconds",get:function(){return this.isValid?this.values.milliseconds||0:NaN}},{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),lX="Invalid Interval",lY=/*#__PURE__*/function(e){function t(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new aZ("need to specify a reason the Interval is invalid");var n=e instanceof o7?e:new o7(e,r);if(!o9.throwOnInvalid)return new t({invalid:n});throw new aV(n)},t.fromDateTimes=function(e,r){var n=uS(e),i=uS(r),a=n&&n.isValid?i&&i.isValid?i<n?lY.invalid("end before start","The end of an interval must be after its start, but you had start="+n.toISO()+" and end="+i.toISO()):null:lY.invalid("missing or invalid end"):lY.invalid("missing or invalid start");return null==a?new t({start:n,end:i}):a},t.after=function(e,r){var n=lH.fromDurationLike(r),i=uS(e);return t.fromDateTimes(i,i.plus(n))},t.before=function(e,r){var n=lH.fromDurationLike(r),i=uS(e);return t.fromDateTimes(i.minus(n),i)},t.fromISO=function(e,r){var n=(e||"").split("/",2),i=n[0],a=n[1];if(i&&a){try{s=(o=uk.fromISO(i,r)).isValid}catch(e){s=!1}try{u=(l=uk.fromISO(a,r)).isValid}catch(e){u=!1}if(s&&u)return t.fromDateTimes(o,l);if(s){var o,s,l,u,c=lH.fromISO(a,r);if(c.isValid)return t.after(o,c)}else if(u){var d=lH.fromISO(i,r);if(d.isValid)return t.before(l,d)}}return t.invalid("unparsable",'the input "'+e+"\" can't be parsed as ISO 8601")},t.isInterval=function(e){return e&&e.isLuxonInterval||!1};var r=t.prototype;return r.length=function(e){return void 0===e&&(e="milliseconds"),this.isValid?this.toDuration.apply(this,[e]).get(e):NaN},r.count=function(e,t){if(void 0===e&&(e="milliseconds"),!this.isValid)return NaN;var r,n=this.start.startOf(e,t);return Math.floor((r=(r=null!=t&&t.useLocaleWeeks?this.end.reconfigure({locale:n.locale}):this.end).startOf(e,t)).diff(n,e).get(e))+(r.valueOf()!==this.end.valueOf())},r.hasSame=function(e){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,e))},r.isEmpty=function(){return this.s.valueOf()===this.e.valueOf()},r.isAfter=function(e){return!!this.isValid&&this.s>e},r.isBefore=function(e){return!!this.isValid&&this.e<=e},r.contains=function(e){return!!this.isValid&&this.s<=e&&this.e>e},r.set=function(e){var r=void 0===e?{}:e,n=r.start,i=r.end;return this.isValid?t.fromDateTimes(n||this.s,i||this.e):this},r.splitAt=function(){var e=this;if(!this.isValid)return[];for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];for(var a=n.map(uS).filter(function(t){return e.contains(t)}).sort(function(e,t){return e.toMillis()-t.toMillis()}),o=[],s=this.s,l=0;s<this.e;){var u=a[l]||this.e,c=+u>+this.e?this.e:u;o.push(t.fromDateTimes(s,c)),s=c,l+=1}return o},r.splitBy=function(e){var r=lH.fromDurationLike(e);if(!this.isValid||!r.isValid||0===r.as("milliseconds"))return[];for(var n,i=this.s,a=1,o=[];i<this.e;){var s=this.start.plus(r.mapUnits(function(e){return e*a}));n=+s>+this.e?this.e:s,o.push(t.fromDateTimes(i,n)),i=n,a+=1}return o},r.divideEqually=function(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]},r.overlaps=function(e){return this.e>e.s&&this.s<e.e},r.abutsStart=function(e){return!!this.isValid&&+this.e==+e.s},r.abutsEnd=function(e){return!!this.isValid&&+e.e==+this.s},r.engulfs=function(e){return!!this.isValid&&this.s<=e.s&&this.e>=e.e},r.equals=function(e){return!!this.isValid&&!!e.isValid&&this.s.equals(e.s)&&this.e.equals(e.e)},r.intersection=function(e){if(!this.isValid)return this;var r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)},r.union=function(e){if(!this.isValid)return this;var r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)},t.merge=function(e){var t=e.sort(function(e,t){return e.s-t.s}).reduce(function(e,t){var r=e[0],n=e[1];return n?n.overlaps(t)||n.abutsStart(t)?[r,n.union(t)]:[r.concat([n]),t]:[r,t]},[[],null]),r=t[0],n=t[1];return n&&r.push(n),r},t.xor=function(e){for(var r,n,i=null,a=0,o=[],s=e.map(function(e){return[{time:e.s,type:"s"},{time:e.e,type:"e"}]}),l=(r=Array.prototype).concat.apply(r,s).sort(function(e,t){return e.time-t.time}),u=aX(l);!(n=u()).done;){var c=n.value;1===(a+="s"===c.type?1:-1)?i=c.time:(i&&+i!=+c.time&&o.push(t.fromDateTimes(i,c.time)),i=null)}return t.merge(o)},r.difference=function(){for(var e=this,r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];return t.xor([this].concat(n)).map(function(t){return e.intersection(t)}).filter(function(e){return e&&!e.isEmpty()})},r.toString=function(){return this.isValid?"["+this.s.toISO()+" – "+this.e.toISO()+")":lX},r[e]=function(){return this.isValid?"Interval { start: "+this.s.toISO()+", end: "+this.e.toISO()+" }":"Interval { Invalid, reason: "+this.invalidReason+" }"},r.toLocaleString=function(e,t){return void 0===e&&(e=a1),void 0===t&&(t={}),this.isValid?s1.create(this.s.loc.clone(t),e).formatInterval(this):lX},r.toISO=function(e){return this.isValid?this.s.toISO(e)+"/"+this.e.toISO(e):lX},r.toISODate=function(){return this.isValid?this.s.toISODate()+"/"+this.e.toISODate():lX},r.toISOTime=function(e){return this.isValid?this.s.toISOTime(e)+"/"+this.e.toISOTime(e):lX},r.toFormat=function(e,t){var r=(void 0===t?{}:t).separator;return this.isValid?""+this.s.toFormat(e)+(void 0===r?" – ":r)+this.e.toFormat(e):lX},r.toDuration=function(e,t){return this.isValid?this.e.diff(this.s,e,t):lH.invalid(this.invalidReason)},r.mapEndpoints=function(e){return t.fromDateTimes(e(this.s),e(this.e))},aR(t,[{key:"start",get:function(){return this.isValid?this.s:null}},{key:"end",get:function(){return this.isValid?this.e:null}},{key:"isValid",get:function(){return null===this.invalidReason}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}}]),t}(Symbol.for("nodejs.util.inspect.custom")),lU=/*#__PURE__*/function(){function e(){}return e.hasDST=function(e){void 0===e&&(e=o9.defaultZone);var t=uk.now().setZone(e).set({month:12});return!e.isUniversal&&t.offset!==t.set({month:6}).offset},e.isValidIANAZone=function(e){return ox.isValidZone(e)},e.normalizeZone=function(e){return oF(e,o9.defaultZone)},e.getStartOfWeek=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.locObj;return((void 0===n?null:n)||oR.create(void 0===r?null:r)).getStartOfWeek()},e.getMinimumDaysInFirstWeek=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.locObj;return((void 0===n?null:n)||oR.create(void 0===r?null:r)).getMinDaysInFirstWeek()},e.getWeekendWeekdays=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.locObj;return((void 0===n?null:n)||oR.create(void 0===r?null:r)).getWeekendDays().slice()},e.months=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,a=r.locObj,o=r.outputCalendar;return((void 0===a?null:a)||oR.create(void 0===n?null:n,void 0===i?null:i,void 0===o?"gregory":o)).months(e)},e.monthsFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,a=r.locObj,o=r.outputCalendar;return((void 0===a?null:a)||oR.create(void 0===n?null:n,void 0===i?null:i,void 0===o?"gregory":o)).months(e,!0)},e.weekdays=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,a=r.locObj;return((void 0===a?null:a)||oR.create(void 0===n?null:n,void 0===i?null:i,null)).weekdays(e)},e.weekdaysFormat=function(e,t){void 0===e&&(e="long");var r=void 0===t?{}:t,n=r.locale,i=r.numberingSystem,a=r.locObj;return((void 0===a?null:a)||oR.create(void 0===n?null:n,void 0===i?null:i,null)).weekdays(e,!0)},e.meridiems=function(e){var t=(void 0===e?{}:e).locale;return oR.create(void 0===t?null:t).meridiems()},e.eras=function(e,t){void 0===e&&(e="short");var r=(void 0===t?{}:t).locale;return oR.create(void 0===r?null:r,null,"gregory").eras(e)},e.features=function(){return{relative:sm(),localeWeek:sv()}},e}();function lV(e,t){var r=function(e){return e.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf()},n=r(t)-r(e);return Math.floor(lH.fromMillis(n).as("days"))}var lG={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},l$={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},lq=lG.hanidec.replace(/[\[|\]]/g,"").split("");function lZ(e,t){return void 0===t&&(t=""),RegExp(""+lG[e.numberingSystem||"latn"]+t)}function lK(e,t){return void 0===t&&(t=function(e){return e}),{regex:e,deser:function(e){var r=e[0];return t(function(e){var t=parseInt(e,10);if(!isNaN(t))return t;t="";for(var r=0;r<e.length;r++){var n=e.charCodeAt(r);if(-1!==e[r].search(lG.hanidec))t+=lq.indexOf(e[r]);else for(var i in l$){var a=l$[i],o=a[0],s=a[1];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}(r))}}}var lQ="[ "+String.fromCharCode(160)+"]",lJ=RegExp(lQ,"g");function l0(e){return e.replace(/\./g,"\\.?").replace(lJ,lQ)}function l1(e){return e.replace(/\./g,"").replace(lJ," ").toLowerCase()}function l2(e,t){return null===e?null:{regex:RegExp(e.map(l0).join("|")),deser:function(r){var n=r[0];return e.findIndex(function(e){return l1(n)===l1(e)})+t}}}function l5(e,t){return{regex:e,deser:function(e){return sN(e[1],e[2])},groups:t}}function l3(e){return{regex:e,deser:function(e){return e[0]}}}var l4={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}},l6=null;function l8(e,t){var r;return(r=Array.prototype).concat.apply(r,e.map(function(e){return function(e,t){if(e.literal)return e;var r=l7(s1.macroTokenToFormatOpts(e.val),t);return null==r||r.includes(void 0)?e:r}(e,t)}))}function l9(e,t,r){var n,i,a,o=l8(s1.parseFormat(r),e),s=o.map(function(t){var r,n,i,a,o,s,l,u,c,d,h,f,p;return r=lZ(e),n=lZ(e,"{2}"),i=lZ(e,"{3}"),a=lZ(e,"{4}"),o=lZ(e,"{6}"),s=lZ(e,"{1,2}"),l=lZ(e,"{1,3}"),u=lZ(e,"{1,6}"),c=lZ(e,"{1,9}"),d=lZ(e,"{2,4}"),h=lZ(e,"{4,6}"),f=function(e){return{regex:RegExp(e.val.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")),deser:function(e){return e[0]},literal:!0}},(p=function(p){if(t.literal)return f(p);switch(p.val){case"G":return l2(e.eras("short"),0);case"GG":return l2(e.eras("long"),0);case"y":return lK(u);case"yy":case"kk":return lK(d,sL);case"yyyy":case"kkkk":return lK(a);case"yyyyy":return lK(h);case"yyyyyy":return lK(o);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return lK(s);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return lK(n);case"MMM":return l2(e.months("short",!0),1);case"MMMM":return l2(e.months("long",!0),1);case"LLL":return l2(e.months("short",!1),1);case"LLLL":return l2(e.months("long",!1),1);case"o":case"S":return lK(l);case"ooo":case"SSS":return lK(i);case"u":return l3(c);case"uu":return l3(s);case"uuu":case"E":case"c":return lK(r);case"a":return l2(e.meridiems(),0);case"EEE":return l2(e.weekdays("short",!1),1);case"EEEE":return l2(e.weekdays("long",!1),1);case"ccc":return l2(e.weekdays("short",!0),1);case"cccc":return l2(e.weekdays("long",!0),1);case"Z":case"ZZ":return l5(RegExp("([+-]"+s.source+")(?::("+n.source+"))?"),2);case"ZZZ":return l5(RegExp("([+-]"+s.source+")("+n.source+")?"),2);case"z":return l3(/[a-z_+-/]{1,256}?/i);case" ":return l3(/[^\S\n\r]/);default:return f(p)}}(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"}).token=t,p}),l=s.find(function(e){return e.invalidReason});if(l)return{input:t,tokens:o,invalidReason:l.invalidReason};var u=["^"+s.map(function(e){return e.regex}).reduce(function(e,t){return e+"("+t.source+")"},"")+"$",s],c=u[0],d=u[1],h=RegExp(c,"i"),f=function(e,t,r){var n=e.match(t);if(!n)return[n,{}];var i={},a=1;for(var o in r)if(sx(r,o)){var s=r[o],l=s.groups?s.groups+1:1;!s.literal&&s.token&&(i[s.token.val[0]]=s.deser(n.slice(a,a+l))),a+=l}return[n,i]}(t,h,d),p=f[0],g=f[1],m=g?(i=function(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},a=null,sf(g.z)||(a=ox.create(g.z)),sf(g.Z)||(a||(a=new oz(g.Z)),n=g.Z),sf(g.q)||(g.M=(g.q-1)*3+1),sf(g.h)||(g.h<12&&1===g.a?g.h+=12:12!==g.h||0!==g.a||(g.h=0)),0===g.G&&g.y&&(g.y=-g.y),sf(g.u)||(g.S=sA(g.u)),[Object.keys(g).reduce(function(e,t){var r=i(t);return r&&(e[r]=g[t]),e},{}),a,n]):[null,null,void 0],v=m[0],b=m[1],x=m[2];if(sx(g,"a")&&sx(g,"H"))throw new a$("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:o,regex:h,rawMatches:p,matches:g,result:v,zone:b,specificOffset:x}}function l7(e,t){if(!e)return null;var r=s1.create(t,e).dtFormatter((l6||(l6=uk.fromMillis(0x16a2e5618e3)),l6)),n=r.formatToParts(),i=r.resolvedOptions();return n.map(function(t){return function(e,t,r){var n=e.type,i=e.value;if("literal"===n){var a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}var o=t[n],s=n;"hour"===n&&(s=null!=t.hour12?t.hour12?"hour12":"hour24":null!=t.hourCycle?"h11"===t.hourCycle||"h12"===t.hourCycle?"hour12":"hour24":r.hour12?"hour12":"hour24");var l=l4[s];if("object"==typeof l&&(l=l[o]),l)return{literal:!1,val:l}}(t,e,i)})}var ue="Invalid DateTime";function ut(e){return new o7("unsupported zone",'the zone "'+e.name+'" is not supported')}function ur(e){return null===e.weekData&&(e.weekData=so(e.c)),e.weekData}function un(e){return null===e.localWeekData&&(e.localWeekData=so(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function ui(e,t){var r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new uk(aN({},r,t,{old:r}))}function ua(e,t,r){var n=e-6e4*t,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*6e4;var a=r.offset(n);return i===a?[n,i]:[e-6e4*Math.min(i,a),Math.max(i,a)]}function uo(e,t){var r=new Date(e+=6e4*t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function us(e,t){var r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+3*Math.trunc(t.quarters),a=aN({},e.c,{year:n,month:i,day:Math.min(e.c.day,sP(n,i))+Math.trunc(t.days)+7*Math.trunc(t.weeks)}),o=lH.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),s=ua(sO(a),r,e.zone),l=s[0],u=s[1];return 0!==o&&(l+=o,u=e.zone.offset(l)),{ts:l,o:u}}function ul(e,t,r,n,i,a){var o=r.setZone,s=r.zone;if((!e||0===Object.keys(e).length)&&!t)return uk.invalid(new o7("unparsable",'the input "'+i+"\" can't be parsed as "+n));var l=uk.fromObject(e,aN({},r,{zone:t||s,specificOffset:a}));return o?l:l.setZone(s)}function uu(e,t,r){return void 0===r&&(r=!0),e.isValid?s1.create(oR.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function uc(e,t){var r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=sk(e.c.year,r?6:4),t?(n+="-",n+=sk(e.c.month),n+="-"):n+=sk(e.c.month),n+=sk(e.c.day)}function ud(e,t,r,n,i,a){var o=sk(e.c.hour);return t?(o+=":",o+=sk(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=":")):o+=sk(e.c.minute),0===e.c.millisecond&&0===e.c.second&&r||(o+=sk(e.c.second),0===e.c.millisecond&&n||(o+=".",o+=sk(e.c.millisecond,3))),i&&(e.isOffsetFixed&&0===e.offset&&!a?o+="Z":e.o<0?(o+="-",o+=sk(Math.trunc(-e.o/60)),o+=":",o+=sk(Math.trunc(-e.o%60))):(o+="+",o+=sk(Math.trunc(e.o/60)),o+=":",o+=sk(Math.trunc(e.o%60)))),a&&(o+="["+e.zone.ianaName+"]"),o}var uh={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uf={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},up={ordinal:1,hour:0,minute:0,second:0,millisecond:0},ug=["year","month","day","hour","minute","second","millisecond"],um=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],uv=["year","ordinal","hour","minute","second","millisecond"];function ub(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return function(e){var t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new aq(e);return t}(e)}}function ux(e,t){var r,n,i=oF(t.zone,o9.defaultZone),a=oR.fromObject(t),o=o9.now();if(sf(e.year))r=o;else{for(var s=0;s<ug.length;s++){var l=ug[s];sf(e[l])&&(e[l]=uh[l])}var u=sd(e)||sh(e);if(u)return uk.invalid(u);var c=i.offset(o),d=ua(sO(e),c,i);r=d[0],n=d[1]}return new uk({ts:r,zone:i,loc:a,o:n})}function uy(e,t,r){var n=!!sf(r.round)||r.round,i=function(e,i){return e=sE(e,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(e,i)},a=function(n){return r.calendary?t.hasSame(e,n)?0:t.startOf(n).diff(e.startOf(n),n).get(n):t.diff(e,n).get(n)};if(r.unit)return i(a(r.unit),r.unit);for(var o,s=aX(r.units);!(o=s()).done;){var l=o.value,u=a(l);if(Math.abs(u)>=1)return i(u,l)}return i(e>t?-0:0,r.units[r.units.length-1])}function uw(e){var t,r={};return e.length>0&&"object"==typeof e[e.length-1]?(r=e[e.length-1],t=Array.from(e).slice(0,e.length-1)):t=Array.from(e),[r,t]}var uk=/*#__PURE__*/function(e){function t(e){var t=e.zone||o9.defaultZone,r=e.invalid||(Number.isNaN(e.ts)?new o7("invalid input"):null)||(t.isValid?null:ut(t));this.ts=sf(e.ts)?o9.now():e.ts;var n=null,i=null;if(!r){if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(t)){var a=[e.old.c,e.old.o];n=a[0],i=a[1]}else{var o=t.offset(this.ts);n=(r=Number.isNaN((n=uo(this.ts,o)).year)?new o7("invalid input"):null)?null:n,i=r?null:o}}this._zone=t,this.loc=e.loc||oR.create(),this.invalid=r,this.weekData=null,this.localWeekData=null,this.c=n,this.o=i,this.isLuxonDateTime=!0}t.now=function(){return new t({})},t.local=function(){var e=uw(arguments),t=e[0],r=e[1];return ux({year:r[0],month:r[1],day:r[2],hour:r[3],minute:r[4],second:r[5],millisecond:r[6]},t)},t.utc=function(){var e=uw(arguments),t=e[0],r=e[1],n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],l=r[5],u=r[6];return t.zone=oz.utcInstance,ux({year:n,month:i,day:a,hour:o,minute:s,second:l,millisecond:u},t)},t.fromJSDate=function(e,r){void 0===r&&(r={});var n="[object Date]"===Object.prototype.toString.call(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");var i=oF(r.zone,o9.defaultZone);return i.isValid?new t({ts:n,zone:i,loc:oR.fromObject(r)}):t.invalid(ut(i))},t.fromMillis=function(e,r){if(void 0===r&&(r={}),sp(e))return e<-864e13||e>864e13?t.invalid("Timestamp out of range"):new t({ts:e,zone:oF(r.zone,o9.defaultZone),loc:oR.fromObject(r)});throw new aZ("fromMillis requires a numerical input, but received a "+typeof e+" with value "+e)},t.fromSeconds=function(e,r){if(void 0===r&&(r={}),sp(e))return new t({ts:1e3*e,zone:oF(r.zone,o9.defaultZone),loc:oR.fromObject(r)});throw new aZ("fromSeconds requires a numerical input")},t.fromObject=function(e,r){void 0===r&&(r={}),e=e||{};var n,i,a,o,s,l,u,c=oF(r.zone,o9.defaultZone);if(!c.isValid)return t.invalid(ut(c));var d=oR.fromObject(r),h=sD(e,ub),f=sc(h,d),p=f.minDaysInFirstWeek,g=f.startOfWeek,m=o9.now(),v=sf(r.specificOffset)?c.offset(m):r.specificOffset,b=!sf(h.ordinal),x=!sf(h.year),y=!sf(h.month)||!sf(h.day),w=x||y,k=h.weekYear||h.weekNumber;if((w||b)&&k)throw new a$("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(y&&b)throw new a$("Can't mix ordinal dates with month/day");var S,C,A=k||h.weekday&&!w,E=uo(m,v);A?(S=um,C=uf,E=so(E,p,g)):b?(S=uv,C=up,E=sl(E)):(S=ug,C=uh);for(var _,T=!1,P=aX(S);!(_=P()).done;){var O=_.value;sf(h[O])?T?h[O]=C[O]:h[O]=E[O]:T=!0}var M=(A?(void 0===(n=p)&&(n=4),void 0===(i=g)&&(i=1),a=sg(h.weekYear),o=sw(h.weekNumber,1,sI(h.weekYear,n,i)),s=sw(h.weekday,1,7),a?o?!s&&sr("weekday",h.weekday):sr("week",h.weekNumber):sr("weekYear",h.weekYear)):b?(l=sg(h.year),u=sw(h.ordinal,1,sT(h.year)),l?!u&&sr("ordinal",h.ordinal):sr("year",h.year)):sd(h))||sh(h);if(M)return t.invalid(M);var I=ua(sO(A?ss(h,p,g):b?su(h):h),v,c),L=new t({ts:I[0],zone:c,o:I[1],loc:d});return h.weekday&&w&&e.weekday!==L.weekday?t.invalid("mismatched weekday","you can't specify both a weekday of "+h.weekday+" and a date of "+L.toISO()):L},t.fromISO=function(e,t){void 0===t&&(t={});var r=s4(e,[lw,lA],[lk,lE],[lS,l_],[lC,lT]);return ul(r[0],r[1],t,"ISO 8601",e)},t.fromRFC2822=function(e,t){void 0===t&&(t={});var r=s4(e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim(),[lp,lg]);return ul(r[0],r[1],t,"RFC 2822",e)},t.fromHTTP=function(e,t){void 0===t&&(t={});var r=s4(e,[lm,lx],[lv,lx],[lb,ly]);return ul(r[0],r[1],t,"HTTP",t)},t.fromFormat=function(e,r,n){if(void 0===n&&(n={}),sf(e)||sf(r))throw new aZ("fromFormat requires an input string and a format");var i,a=n,o=a.locale,s=a.numberingSystem,l=[(i=l9(oR.fromOpts({locale:void 0===o?null:o,numberingSystem:void 0===s?null:s,defaultToEN:!0}),e,r)).result,i.zone,i.specificOffset,i.invalidReason],u=l[0],c=l[1],d=l[2],h=l[3];return h?t.invalid(h):ul(u,c,n,"format "+r,e,d)},t.fromString=function(e,r,n){return void 0===n&&(n={}),t.fromFormat(e,r,n)},t.fromSQL=function(e,t){void 0===t&&(t={});var r=s4(e,[lO,lA],[lM,lI]);return ul(r[0],r[1],t,"SQL",e)},t.invalid=function(e,r){if(void 0===r&&(r=null),!e)throw new aZ("need to specify a reason the DateTime is invalid");var n=e instanceof o7?e:new o7(e,r);if(!o9.throwOnInvalid)return new t({invalid:n});throw new aU(n)},t.isDateTime=function(e){return e&&e.isLuxonDateTime||!1},t.parseFormatForOpts=function(e,t){void 0===t&&(t={});var r=l7(e,oR.fromObject(t));return r?r.map(function(e){return e?e.val:null}).join(""):null},t.expandFormat=function(e,t){return void 0===t&&(t={}),l8(s1.parseFormat(e),oR.fromObject(t)).map(function(e){return e.val}).join("")};var r=t.prototype;return r.get=function(e){return this[e]},r.getPossibleOffsets=function(){if(!this.isValid||this.isOffsetFixed)return[this];var e=sO(this.c),t=this.zone.offset(e-864e5),r=this.zone.offset(e+864e5),n=this.zone.offset(e-6e4*t),i=this.zone.offset(e-6e4*r);if(n===i)return[this];var a=e-6e4*n,o=e-6e4*i,s=uo(a,n),l=uo(o,i);return s.hour===l.hour&&s.minute===l.minute&&s.second===l.second&&s.millisecond===l.millisecond?[ui(this,{ts:a}),ui(this,{ts:o})]:[this]},r.resolvedLocaleOptions=function(e){void 0===e&&(e={});var t=s1.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:t.locale,numberingSystem:t.numberingSystem,outputCalendar:t.calendar}},r.toUTC=function(e,t){return void 0===e&&(e=0),void 0===t&&(t={}),this.setZone(oz.instance(e),t)},r.toLocal=function(){return this.setZone(o9.defaultZone)},r.setZone=function(e,r){var n=void 0===r?{}:r,i=n.keepLocalTime,a=n.keepCalendarTime;if((e=oF(e,o9.defaultZone)).equals(this.zone))return this;if(!e.isValid)return t.invalid(ut(e));var o=this.ts;if(void 0!==i&&i||void 0!==a&&a){var s,l,u=e.offset(this.ts);o=(s=this.toObject(),l=e,ua(sO(s),u,l))[0]}return ui(this,{ts:o,zone:e})},r.reconfigure=function(e){var t=void 0===e?{}:e,r=t.locale,n=t.numberingSystem,i=t.outputCalendar;return ui(this,{loc:this.loc.clone({locale:r,numberingSystem:n,outputCalendar:i})})},r.setLocale=function(e){return this.reconfigure({locale:e})},r.set=function(e){if(!this.isValid)return this;var t,r,n,i,a=sD(e,ub),o=sc(a,this.loc),s=o.minDaysInFirstWeek,l=o.startOfWeek,u=!sf(a.weekYear)||!sf(a.weekNumber)||!sf(a.weekday),c=!sf(a.ordinal),d=!sf(a.year),h=!sf(a.month)||!sf(a.day),f=a.weekYear||a.weekNumber;if((d||h||c)&&f)throw new a$("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(h&&c)throw new a$("Can't mix ordinal dates with month/day");u?i=ss(aN({},so(this.c,s,l),a),s,l):sf(a.ordinal)?(i=aN({},this.toObject(),a),sf(a.day)&&(i.day=Math.min(sP(i.year,i.month),i.day))):i=su(aN({},sl(this.c),a));var p=(t=i,r=this.o,n=this.zone,ua(sO(t),r,n));return ui(this,{ts:p[0],o:p[1]})},r.plus=function(e){return this.isValid?ui(this,us(this,lH.fromDurationLike(e))):this},r.minus=function(e){return this.isValid?ui(this,us(this,lH.fromDurationLike(e).negate())):this},r.startOf=function(e,t){var r=(void 0===t?{}:t).useLocaleWeeks;if(!this.isValid)return this;var n={},i=lH.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0}if("weeks"===i){if(void 0!==r&&r){var a=this.loc.getStartOfWeek();this.weekday<a&&(n.weekNumber=this.weekNumber-1),n.weekday=a}else n.weekday=1}if("quarters"===i){var o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)},r.endOf=function(e,t){var r;return this.isValid?this.plus(((r={})[e]=1,r)).startOf(e,t).minus(1):this},r.toFormat=function(e,t){return void 0===t&&(t={}),this.isValid?s1.create(this.loc.redefaultToEN(t)).formatDateTimeFromString(this,e):ue},r.toLocaleString=function(e,t){return void 0===e&&(e=a1),void 0===t&&(t={}),this.isValid?s1.create(this.loc.clone(t),e).formatDateTime(this):ue},r.toLocaleParts=function(e){return void 0===e&&(e={}),this.isValid?s1.create(this.loc.clone(e),e).formatDateTimeParts(this):[]},r.toISO=function(e){var t=void 0===e?{}:e,r=t.format,n=t.suppressSeconds,i=t.suppressMilliseconds,a=t.includeOffset,o=t.extendedZone;if(!this.isValid)return null;var s="extended"===(void 0===r?"extended":r),l=uc(this,s);return l+="T",l+=ud(this,s,void 0!==n&&n,void 0!==i&&i,void 0===a||a,void 0!==o&&o)},r.toISODate=function(e){var t=(void 0===e?{}:e).format;return this.isValid?uc(this,"extended"===(void 0===t?"extended":t)):null},r.toISOWeekDate=function(){return uu(this,"kkkk-'W'WW-c")},r.toISOTime=function(e){var t=void 0===e?{}:e,r=t.suppressMilliseconds,n=t.suppressSeconds,i=t.includeOffset,a=t.includePrefix,o=t.extendedZone,s=t.format;return this.isValid?(void 0!==a&&a?"T":"")+ud(this,"extended"===(void 0===s?"extended":s),void 0!==n&&n,void 0!==r&&r,void 0===i||i,void 0!==o&&o):null},r.toRFC2822=function(){return uu(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)},r.toHTTP=function(){return uu(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")},r.toSQLDate=function(){return this.isValid?uc(this,!0):null},r.toSQLTime=function(e){var t=void 0===e?{}:e,r=t.includeOffset,n=void 0===r||r,i=t.includeZone,a=void 0!==i&&i,o=t.includeOffsetSpace,s="HH:mm:ss.SSS";return(a||n)&&((void 0===o||o)&&(s+=" "),a?s+="z":n&&(s+="ZZ")),uu(this,s,!0)},r.toSQL=function(e){return(void 0===e&&(e={}),this.isValid)?this.toSQLDate()+" "+this.toSQLTime(e):null},r.toString=function(){return this.isValid?this.toISO():ue},r[e]=function(){return this.isValid?"DateTime { ts: "+this.toISO()+", zone: "+this.zone.name+", locale: "+this.locale+" }":"DateTime { Invalid, reason: "+this.invalidReason+" }"},r.valueOf=function(){return this.toMillis()},r.toMillis=function(){return this.isValid?this.ts:NaN},r.toSeconds=function(){return this.isValid?this.ts/1e3:NaN},r.toUnixInteger=function(){return this.isValid?Math.floor(this.ts/1e3):NaN},r.toJSON=function(){return this.toISO()},r.toBSON=function(){return this.toJSDate()},r.toObject=function(e){if(void 0===e&&(e={}),!this.isValid)return{};var t=aN({},this.c);return e.includeConfig&&(t.outputCalendar=this.outputCalendar,t.numberingSystem=this.loc.numberingSystem,t.locale=this.loc.locale),t},r.toJSDate=function(){return new Date(this.isValid?this.ts:NaN)},r.diff=function(e,t,r){if(void 0===t&&(t="milliseconds"),void 0===r&&(r={}),!this.isValid||!e.isValid)return lH.invalid("created by diffing an invalid DateTime");var n,i,a,o,s,l,u,c,d,h,f,p=aN({locale:this.locale,numberingSystem:this.numberingSystem},r),g=(Array.isArray(n=t)?n:[n]).map(lH.normalizeUnit),m=e.valueOf()>this.valueOf(),v=m?this:e,b=m?e:this,x=(s=(o=function(e,t,r){for(var n,i,a=[["years",function(e,t){return t.year-e.year}],["quarters",function(e,t){return t.quarter-e.quarter+(t.year-e.year)*4}],["months",function(e,t){return t.month-e.month+(t.year-e.year)*12}],["weeks",function(e,t){var r=lV(e,t);return(r-r%7)/7}],["days",lV]],o={},s=e,l=0;l<a.length;l++){var u=a[l],c=u[0],d=u[1];r.indexOf(c)>=0&&(n=c,o[c]=d(e,t),(i=s.plus(o))>t?(o[c]--,(e=s.plus(o))>t&&(i=e,o[c]--,e=s.plus(o))):e=i)}return[e,o,i,n]}(v,b,g))[0],l=o[1],u=o[2],c=o[3],d=b-s,0===(h=g.filter(function(e){return["hours","minutes","seconds","milliseconds"].indexOf(e)>=0})).length&&(u<b&&(u=s.plus(((i={})[c]=1,i))),u!==s&&(l[c]=(l[c]||0)+d/(u-s))),f=lH.fromObject(l,p),h.length>0?(a=lH.fromMillis(d,p)).shiftTo.apply(a,h).plus(f):f);return m?x.negate():x},r.diffNow=function(e,r){return void 0===e&&(e="milliseconds"),void 0===r&&(r={}),this.diff(t.now(),e,r)},r.until=function(e){return this.isValid?lY.fromDateTimes(this,e):this},r.hasSame=function(e,t,r){if(!this.isValid)return!1;var n=e.valueOf(),i=this.setZone(e.zone,{keepLocalTime:!0});return i.startOf(t,r)<=n&&n<=i.endOf(t,r)},r.equals=function(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)},r.toRelative=function(e){if(void 0===e&&(e={}),!this.isValid)return null;var r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],a=e.unit;return Array.isArray(e.unit)&&(i=e.unit,a=void 0),uy(r,this.plus(n),aN({},e,{numeric:"always",units:i,unit:a}))},r.toRelativeCalendar=function(e){return(void 0===e&&(e={}),this.isValid)?uy(e.base||t.fromObject({},{zone:this.zone}),this,aN({},e,{numeric:"auto",units:["years","months","days"],calendary:!0})):null},t.min=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.every(t.isDateTime))throw new aZ("min requires all arguments be DateTimes");return sb(r,function(e){return e.valueOf()},Math.min)},t.max=function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];if(!r.every(t.isDateTime))throw new aZ("max requires all arguments be DateTimes");return sb(r,function(e){return e.valueOf()},Math.max)},t.fromFormatExplain=function(e,t,r){void 0===r&&(r={});var n=r,i=n.locale,a=n.numberingSystem;return l9(oR.fromOpts({locale:void 0===i?null:i,numberingSystem:void 0===a?null:a,defaultToEN:!0}),e,t)},t.fromStringExplain=function(e,r,n){return void 0===n&&(n={}),t.fromFormatExplain(e,r,n)},aR(t,[{key:"isValid",get:function(){return null===this.invalid}},{key:"invalidReason",get:function(){return this.invalid?this.invalid.reason:null}},{key:"invalidExplanation",get:function(){return this.invalid?this.invalid.explanation:null}},{key:"locale",get:function(){return this.isValid?this.loc.locale:null}},{key:"numberingSystem",get:function(){return this.isValid?this.loc.numberingSystem:null}},{key:"outputCalendar",get:function(){return this.isValid?this.loc.outputCalendar:null}},{key:"zone",get:function(){return this._zone}},{key:"zoneName",get:function(){return this.isValid?this.zone.name:null}},{key:"year",get:function(){return this.isValid?this.c.year:NaN}},{key:"quarter",get:function(){return this.isValid?Math.ceil(this.c.month/3):NaN}},{key:"month",get:function(){return this.isValid?this.c.month:NaN}},{key:"day",get:function(){return this.isValid?this.c.day:NaN}},{key:"hour",get:function(){return this.isValid?this.c.hour:NaN}},{key:"minute",get:function(){return this.isValid?this.c.minute:NaN}},{key:"second",get:function(){return this.isValid?this.c.second:NaN}},{key:"millisecond",get:function(){return this.isValid?this.c.millisecond:NaN}},{key:"weekYear",get:function(){return this.isValid?ur(this).weekYear:NaN}},{key:"weekNumber",get:function(){return this.isValid?ur(this).weekNumber:NaN}},{key:"weekday",get:function(){return this.isValid?ur(this).weekday:NaN}},{key:"isWeekend",get:function(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}},{key:"localWeekday",get:function(){return this.isValid?un(this).weekday:NaN}},{key:"localWeekNumber",get:function(){return this.isValid?un(this).weekNumber:NaN}},{key:"localWeekYear",get:function(){return this.isValid?un(this).weekYear:NaN}},{key:"ordinal",get:function(){return this.isValid?sl(this.c).ordinal:NaN}},{key:"monthShort",get:function(){return this.isValid?lU.months("short",{locObj:this.loc})[this.month-1]:null}},{key:"monthLong",get:function(){return this.isValid?lU.months("long",{locObj:this.loc})[this.month-1]:null}},{key:"weekdayShort",get:function(){return this.isValid?lU.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}},{key:"weekdayLong",get:function(){return this.isValid?lU.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}},{key:"offset",get:function(){return this.isValid?+this.o:NaN}},{key:"offsetNameShort",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}},{key:"offsetNameLong",get:function(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}},{key:"isOffsetFixed",get:function(){return this.isValid?this.zone.isUniversal:null}},{key:"isInDST",get:function(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}},{key:"isInLeapYear",get:function(){return s_(this.year)}},{key:"daysInMonth",get:function(){return sP(this.year,this.month)}},{key:"daysInYear",get:function(){return this.isValid?sT(this.year):NaN}},{key:"weeksInWeekYear",get:function(){return this.isValid?sI(this.weekYear):NaN}},{key:"weeksInLocalWeekYear",get:function(){return this.isValid?sI(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}}],[{key:"DATE_SHORT",get:function(){return a1}},{key:"DATE_MED",get:function(){return a2}},{key:"DATE_MED_WITH_WEEKDAY",get:function(){return a5}},{key:"DATE_FULL",get:function(){return a3}},{key:"DATE_HUGE",get:function(){return a4}},{key:"TIME_SIMPLE",get:function(){return a6}},{key:"TIME_WITH_SECONDS",get:function(){return a8}},{key:"TIME_WITH_SHORT_OFFSET",get:function(){return a9}},{key:"TIME_WITH_LONG_OFFSET",get:function(){return a7}},{key:"TIME_24_SIMPLE",get:function(){return oe}},{key:"TIME_24_WITH_SECONDS",get:function(){return ot}},{key:"TIME_24_WITH_SHORT_OFFSET",get:function(){return or}},{key:"TIME_24_WITH_LONG_OFFSET",get:function(){return on}},{key:"DATETIME_SHORT",get:function(){return oi}},{key:"DATETIME_SHORT_WITH_SECONDS",get:function(){return oa}},{key:"DATETIME_MED",get:function(){return oo}},{key:"DATETIME_MED_WITH_SECONDS",get:function(){return os}},{key:"DATETIME_MED_WITH_WEEKDAY",get:function(){return ol}},{key:"DATETIME_FULL",get:function(){return ou}},{key:"DATETIME_FULL_WITH_SECONDS",get:function(){return oc}},{key:"DATETIME_HUGE",get:function(){return od}},{key:"DATETIME_HUGE_WITH_SECONDS",get:function(){return oh}}]),t}(Symbol.for("nodejs.util.inspect.custom"));function uS(e){if(uk.isDateTime(e))return e;if(e&&e.valueOf&&sp(e.valueOf()))return uk.fromJSDate(e);if(e&&"object"==typeof e)return uk.fromObject(e);throw new aZ("Unknown datetime argument: "+e+", of type "+typeof e)}aI.DateTime=uk,aI.Duration=lH,aI.FixedOffsetZone=oz,aI.IANAZone=ox,aI.Info=lU,aI.Interval=lY,aI.InvalidZone=oD,aI.Settings=o9,aI.SystemZone=og,aI.VERSION="3.4.4",aI.Zone=of;const uC=aM.default.blue,uA=aM.default.bold().green,uE=aM.default.bold().yellow().bgRed,u_=aM.default.bold().red,uT=aM.default.grey;aP.LogLevel={SILENT:-1,ERROR:0,WARN:1,SUCCESS:2,INFO:3,DEBUG:4,TRACE:5};let uP=aP.LogLevel.INFO;const uO=e=>{let t=aI.DateTime.now().toLocaleString(aI.DateTime.TIME_24_WITH_SECONDS),r=uT(`[${t}]`);console.log(`${r} ${e}`)};aP.Logger={setLogLevel:e=>{uP=e},trace:e=>{uP<aP.LogLevel.TRACE||uO(e)},debug:e=>{if(uP<aP.LogLevel.DEBUG)return;let t=performance.now();uO(`\u{1F6A7} ${Math.floor(t)}: ${e}`)},info:e=>{uP<aP.LogLevel.INFO||uO(uC(`\u{2139}\u{FE0F} ${e}`))},success:e=>{uP<aP.LogLevel.SUCCESS||uO(uA(`\u{2705} ${e}`))},warn:e=>{uP<aP.LogLevel.WARN||uO(uE(`\u{26A0}\u{FE0F} ${e}`))},error:e=>{uP<aP.LogLevel.ERROR||uO(u_(`\u{1F6A8} ${e}`))}},aP.printExampleMessages=()=>{aP.Logger.setLogLevel(1/0),Object.keys(aP.Logger).forEach(e=>{"setLogLevel"!==e&&aP.Logger[e](`This is an awesome ${e} message`)})};var ee=u("acw62");const uM=e=>{(0,ee.useEffect)(()=>{function t(e,...r){(0,aP.Logger).debug(`Received socket event: ${e} with ${JSON.stringify(r)}`)}return e.onAny(t),()=>{e.offAny(t)}},[e])},uI=e=>{uM(iF);let[t,r]=(0,ee.useState)(iF.connected);return(0,ee.useEffect)(()=>{function t(){r(!0)}function n(t){r(!1),(0,aP.Logger).info(`socket disconnected with reason: ${t}`),("transport close"===t||"transport error"===t)&&e("flashlight CLI command exited. Restart from the CLI.")}return iF.on(nT.CONNECT,t),iF.on(nT.DISCONNECT,n),iF.on(nT.SEND_ERROR,e),()=>{iF.off(nT.CONNECT,t),iF.off(nT.DISCONNECT,n),iF.off(nT.SEND_ERROR,e)}},[e]),(0,ee.useEffect)(()=>()=>{iF.close()},[]),{isConnected:t}},uL=()=>{let[e,t]=/*@__PURE__*/o(ee).useState(null),r=()=>t(null);return uI(t),/*#__PURE__*/(0,d.jsx)(d.Fragment,{children:/*#__PURE__*/(0,d.jsxs)(i1,{open:null!==e,onClose:r,"aria-labelledby":"alert-dialog-title","aria-describedby":"alert-dialog-description",children:[/*#__PURE__*/(0,d.jsx)(i9,{id:"alert-dialog-title",children:"\uD83D\uDEA8 Woups, something happened"}),/*#__PURE__*/(0,d.jsx)(an,{children:/*#__PURE__*/(0,d.jsx)(au,{id:"alert-dialog-description",children:e})}),/*#__PURE__*/(0,d.jsx)(ap,{children:/*#__PURE__*/(0,d.jsx)(aT,{onClick:r,autoFocus:!0,children:"Close"})})]})})};(0,f.setThemeAtRandom)();const uR=document.getElementById("app");/*@__PURE__*/o(h).render(/*#__PURE__*/(0,d.jsx)(()=>{let{autodetect:e,bundleId:t,start:r,stop:n,results:i,isMeasuring:a,reset:o,setBundleId:s}=iB();return/*#__PURE__*/(0,d.jsxs)("div",{className:"bg-light-charcoal h-full text-black",children:[/*#__PURE__*/(0,d.jsx)(uL,{}),/*#__PURE__*/(0,d.jsxs)(n_,{children:[/*#__PURE__*/(0,d.jsx)(ng,{autodetect:e,bundleId:t,onChange:s}),t?/*#__PURE__*/(0,d.jsxs)("div",{className:"flex flex-row gap-2",children:[/*#__PURE__*/(0,d.jsx)(nb,{start:r,stop:n,isMeasuring:a}),/*#__PURE__*/(0,d.jsx)("div",{"data-theme":(0,f.getThemeColorPalette)()[1],children:/*#__PURE__*/(0,d.jsx)(f.Button,{onClick:o,icon:/*#__PURE__*/(0,d.jsx)(nx,{}),children:"Reset"})})]}):null]}),/*#__PURE__*/(0,d.jsx)(f.IterationsReporterView,{results:i})]})},{}),uR);
|
|
88
|
+
//# sourceMappingURL=index.87c99d25.js.map
|