PageSourceSearch

https://wilkes-center.github.io/wildfire-smoke-tool/static/js/main.f4790022.js

js wilkes-center.github.io collected 2026-10-03 10:10:18 UTC 754,319 bytes, 3 lines download raw bytes

1/*! For license information please see main.f4790022.js.LICENSE.txt */
2(()=>{var e={14:e=>{e.exports=function(){return!1}},61:e=>{e.exports=function(e,t){return e<t}},143:e=>{var t=/\s/;e.exports=function(e){for(var r=e.length;r--&&t.test(e.charAt(r)););return r}},149:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}},320:e=>{e.exports=function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}},396:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},438:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).get(e)}},539:(e,t,r)=>{var n=r(9742),o=r(7498),i=r(3279);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},579:(e,t,r)=>{"use strict";e.exports=r(1153)},620:(e,t,r)=>{var n=r(6913),o=r(4052),i=r(2761);e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&"[object String]"==n(e)}},643:(e,t,r)=>{var n=r(7676)("toUpperCase");e.exports=n},644:e=>{e.exports=function(e){return e!==e}},705:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},715:e=>{var t="\\ud800-\\udfff",r="["+t+"]",n="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^"+t+"]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",l="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+n+"|"+o+")"+"?",s="[\\ufe0e\\ufe0f]?",c=s+u+("(?:\\u200d(?:"+[i,a,l].join("|")+")"+s+u+")*"),f="(?:"+[i+n+"?",n,a,l,r].join("|")+")",d=RegExp(o+"(?="+o+")|"+f+c,"g");e.exports=function(e){return e.match(d)||[]}},755:(e,t,r)=>{var n=r(8895),o=r(7116);e.exports=function e(t,r,i,a,l){var u=-1,s=t.length;for(i||(i=o),l||(l=[]);++u<s;){var c=t[u];r>0&&i(c)?r>1?e(c,r-1,i,a,l):n(l,c):a||(l[l.length]=c)}return l}},793:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},801:(e,t,r)=>{var n=r(1141),o=r(6686),i=r(9841),a=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,s=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return NaN;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=n(e);var r=l.test(e);return r||u.test(e)?s(e.slice(2),r?2:8):a.test(e)?NaN:+e}},914:(e,t,r)=>{var n=r(9841);e.exports=function(e){if("string"==typeof e||n(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},929:(e,t,r)=>{var n=r(3211),o=r(6571),i=r(9194),a=r(6686);e.exports=function(e,t,r){if(!a(r))return!1;var l=typeof t;return!!("number"==l?o(r)&&i(t,r.length):"string"==l&&t in r)&&n(r[t],e)}},977:(e,t,r)=>{var n=r(9096),o=r(4416);e.exports=function(e,t){return e&&e.length?o(e,n(t,2)):[]}},1069:(e,t,r)=>{var n=r(8541);e.exports=function(e){return null==e?"":n(e)}},1141:(e,t,r)=>{var n=r(143),o=/^\s+/;e.exports=function(e){return e?e.slice(0,n(e)+1).replace(o,""):e}},1143:(e,t,r)=>{var n=r(3028)(Object.keys,Object);e.exports=n},1153:(e,t,r)=>{"use strict";var n=r(5043),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var n,i={},s=null,c=null;for(n in void 0!==r&&(s=""+r),void 0!==t.key&&(s=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!u.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:o,type:e,key:s,ref:c,props:i,_owner:l.current}}t.Fragment=i,t.jsx=s,t.jsxs=s},1170:e=>{e.exports=function(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)}},1268:(e,t,r)=>{var n=r(5428),o=r(7574),i=r(6832),a=i&&i.isTypedArray,l=a?o(a):n;e.exports=l},1310:e=>{e.exports=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}},1340:(e,t,r)=>{var n=r(3211);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1497:(e,t,r)=>{"use strict";var n=r(3218);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol
2: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:o};return r.PropTypes=r,r}},1558:e=>{e.exports=function(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}},1629:(e,t,r)=>{var n=r(6913),o=r(6686);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1714:(e,t,r)=>{var n=r(1340);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},1733:(e,t,r)=>{var n=r(1775),o=r(4664),i=r(9096);e.exports=function(e,t){var r={};return t=i(t,3),o(e,(function(e,o,i){n(r,o,t(e,o,i))})),r}},1775:(e,t,r)=>{var n=r(5654);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},1946:(e,t,r)=>{var n=r(1340);e.exports=function(e){return n(this.__data__,e)>-1}},2070:(e,t,r)=>{var n=r(7937)(r(6552),"Set");e.exports=n},2074:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},2154:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2165:(e,t,r)=>{var n=r(5652);e.exports=function(e,t){var r;return n(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}},2322:(e,t,r)=>{var n=r(6913),o=r(5990),i=r(2761),a=Function.prototype,l=Object.prototype,u=a.toString,s=l.hasOwnProperty,c=u.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=n(e))return!1;var t=o(e);if(null===t)return!0;var r=s.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==c}},2520:(e,t,r)=>{var n=r(5816),o=r(9096),i=r(9140),a=Math.max;e.exports=function(e,t,r){var l=null==e?0:e.length;if(!l)return-1;var u=null==r?0:i(r);return u<0&&(u=a(l+u,0)),n(e,o(t,3),u)}},2536:(e,t,r)=>{var n=r(149),o=r(2969),i=r(9096),a=r(8883),l=r(320),u=r(7574),s=r(5893),c=r(3279),f=r(4052);e.exports=function(e,t,r){t=t.length?n(t,(function(e){return f(e)?function(t){return o(t,1===e.length?e[0]:e)}:e})):[c];var d=-1;t=n(t,u(i));var p=a(e,(function(e,r,o){return{criteria:n(t,(function(t){return t(e)})),index:++d,value:e}}));return l(p,(function(e,t){return s(e,t,r)}))}},2541:e=>{e.exports=function(e){return function(){return e}}},2587:e=>{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}},2597:(e,t,r)=>{var n=r(4052),o=r(9841),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(n(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!o(e))||(a.test(e)||!i.test(e)||null!=t&&e in Object(t))}},2622:(e,t,r)=>{var n=r(705);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},2662:(e,t,r)=>{var n=r(5575);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},2730:(e,t,r)=>{"use strict";var n=r(5043),o=r(8853);function i(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 a=new Set,l={};function u(e,t){s(e,t),s(e+"Capture",t)}function s(e,t){for(l[e]=t,e=0;e<t.length;e++)a.add(t[e])}var c=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function y(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){m[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 34,480 bytes, line 2
2h((function(e){var t=e[0];m[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){m[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){m[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){m[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){m[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){m[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){m[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){m[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var g=/[\-:]([a-z])/g;function v(e){return e[1].toUpperCase()}function b(e,t,r,n){var o=m.hasOwnProperty(t)?m[t]:null;(null!==o?0!==o.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||"undefined"===typeof 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":return!n&&(null!==r?!r.acceptsBooleans:"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,o,n)&&(r=null),n||null===o?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!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(g,v);m[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(g,v);m[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(g,v);m[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),m.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){m[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var x=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),S=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),O=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),E=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),A=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var N=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var D=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=D&&e[D]||e["@@iterator"])?e:null}var I,z=Object.assign;function R(e){if(void 0===I)try{throw Error()}catch(r){var t=r.stack.trim().match(/\n( *(at )?)/);I=t&&t[1]||""}return"\n"+I+e}var B=!1;function F(e,t){if(!e||B)return"";B=!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(s){var n=s}Reflect.construct(e,[],t)}else{try{t.call()}catch(s){n=s}e.call(t.prototype)}else{try{throw Error()}catch(s){n=s}e()}}catch(s){if(s&&n&&"string"===typeof s.stack){for(var o=s.stack.split("\n"),i=n.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var u="\n"+o[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=l);break}}}finally{B=!1,Error.prepareStackTrace=r}return(e=e?e.displayName||e.name:"")?R(e):""}function $(e){switch(e.tag){case 5:return R(e.type);case 16:return R("Lazy");case 13:return R("Suspense");case 19:return R("SuspenseList");case 0:case 2:case 15:return e=F(e.type,!1);case 11:return e=F(e.type.render,!1);case 1:return e=F(e.type,!0);default:return""}}function U(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case S:return"Portal";case j:return"Profiler";case O:return"StrictMode";case C:return"Suspense";case M:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case P:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case T:return null!==(t=e.displayName||null)?t:U(e.type)||"Memo";case A:t=e._payload,e=e._init;try{return U(e(t))}catch(r){}}return null}function H(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 U(t);case 8:return t===O?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function W(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function q(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=q(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.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 G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=q(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var r=t.checked;return z({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function X(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=W(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 Z(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Q(e,t){Z(e,t);var r=W(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)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,r):t.hasOwnProperty("defaultValue")&&ee(e,t.type,W(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function J(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 ee(e,t,r){"number"===t&&K(e.ownerDocument)===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}var te=Array.isArray;function re(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+W(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ne(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(i(91));return z({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function oe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(i(92));if(te(r)){if(1<r.length)throw Error(i(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:W(r)}}function ie(e,t){var r=W(t.value),n=W(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 ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function le(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 ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?le(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var se,ce,fe=(ce=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((se=se||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=se.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 ce(e,t)}))}:ce);function de(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}var pe={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},he=["Webkit","ms","Moz","O"];function ye(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function me(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=ye(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ge=z({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 ve(e,t){if(t){if(ge[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(i(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(i(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(i(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Se=null,ke=null,Oe=null;function je(e){if(e=xo(e)){if("function"!==typeof Se)throw Error(i(280));var t=e.stateNode;t&&(t=So(t),Se(e.stateNode,e.type,t))}}function _e(e){ke?Oe?Oe.push(e):Oe=[e]:ke=e}function Ee(){if(ke){var e=ke,t=Oe;if(Oe=ke=null,je(e),t)for(e=0;e<t.length;e++)je(t[e])}}function Pe(e,t){return e(t)}function Ce(){}var Me=!1;function Te(e,t,r){if(Me)return e(t,r);Me=!0;try{return Pe(e,t,r)}finally{Me=!1,(null!==ke||null!==Oe)&&(Ce(),Ee())}}function Ae(e,t){var r=e.stateNode;if(null===r)return null;var n=So(r);if(null===n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(i(231,t,typeof r));return r}var Ne=!1;if(c)try{var De={};Object.defineProperty(De,"passive",{get:function(){Ne=!0}}),window.addEventListener("test",De,De),window.removeEventListener("test",De,De)}catch(ce){Ne=!1}function Le(e,t,r,n,o,i,a,l,u){var s=Array.prototype.slice.call(arguments,3);try{t.apply(r,s)}catch(c){this.onError(c)}}var Ie=!1,ze=null,Re=!1,Be=null,Fe={onError:function(e){Ie=!0,ze=e}};function $e(e,t,r,n,o,i,a,l,u){Ie=!1,ze=null,Le.apply(Fe,arguments)}function Ue(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 He(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 We(e){if(Ue(e)!==e)throw Error(i(188))}function qe(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ue(e)))throw Error(i(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var a=o.alternate;if(null===a){if(null!==(n=o.return)){r=n;continue}break}if(o.child===a.child){for(a=o.child;a;){if(a===r)return We(o),e;if(a===n)return We(o),t;a=a.sibling}throw Error(i(188))}if(r.return!==n.return)r=o,n=a;else{for(var l=!1,u=o.child;u;){if(u===r){l=!0,r=o,n=a;break}if(u===n){l=!0,n=o,r=a;break}u=u.sibling}if(!l){for(u=a.child;u;){if(u===r){l=!0,r=a,n=o;break}if(u===n){l=!0,n=a,r=o;break}u=u.sibling}if(!l)throw Error(i(189))}}if(r.alternate!==n)throw Error(i(190))}if(3!==r.tag)throw Error(i(188));return r.stateNode.current===r?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ge=o.unstable_scheduleCallback,Ke=o.unstable_cancelCallback,Ye=o.unstable_shouldYield,Xe=o.unstable_requestPaint,Ze=o.unstable_now,Qe=o.unstable_getCurrentPriorityLevel,Je=o.unstable_ImmediatePriority,et=o.unstable_UserBlockingPriority,tt=o.unstable_NormalPriority,rt=o.unstable_LowPriority,nt=o.unstable_IdlePriority,ot=null,it=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(lt(e)/ut|0)|0},lt=Math.log,ut=Math.LN2;var st=64,ct=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var r=e.pendingLanes;if(0===r)return 0;var n=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&r;if(0!==a){var l=a&~o;0!==l?n=ft(l):0!==(i&=a)&&(n=ft(i))}else 0!==(a=r&~o)?n=ft(a):0!==i&&(n=ft(i));if(0===n)return 0;if(0!==t&&t!==n&&0===(t&o)&&((o=n&-n)>=(i=t&-t)||16===o&&0!==(4194240&i)))return t;if(0!==(4&n)&&(n|=16&r),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=n;0<t;)o=1<<(r=31-at(t)),n|=e[r],t&=~o;return n}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function yt(){var e=st;return 0===(4194240&(st<<=1))&&(st=64),e}function mt(e){for(var t=[],r=0;31>r;r++)t.push(e);return t}function gt(e,t,r){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=r}function vt(e,t){var r=e.entangledLanes|=t;for(e=e.entanglements;r;){var n=31-at(r),o=1<<n;o&t|e[n]&t&&(e[n]|=t),r&=~o}}var bt=0;function xt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,St,kt,Ot,jt,_t=!1,Et=[],Pt=null,Ct=null,Mt=null,Tt=new Map,At=new Map,Nt=[],Dt="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 Lt(e,t){switch(e){case"focusin":case"focusout":Pt=null;break;case"dragenter":case"dragleave":Ct=null;break;case"mouseover":case"mouseout":Mt=null;break;case"pointerover":case"pointerout":Tt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":At.delete(t.pointerId)}}function It(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=xo(t))&&St(t)),e):(e.eventSystemFlags|=n,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function zt(e){var t=bo(e.target);if(null!==t){var r=Ue(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=He(r)))return e.blockedOn=t,void jt(e.priority,(function(){kt(r)}))}else if(3===t&&r.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Rt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var r=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==r)return null!==(t=xo(r))&&St(t),e.blockedOn=r,!1;var n=new(r=e.nativeEvent).constructor(r.type,r);xe=n,r.target.dispatchEvent(n),xe=null,t.shift()}return!0}function Bt(e,t,r){Rt(e)&&r.delete(t)}function Ft(){_t=!1,null!==Pt&&Rt(Pt)&&(Pt=null),null!==Ct&&Rt(Ct)&&(Ct=null),null!==Mt&&Rt(Mt)&&(Mt=null),Tt.forEach(Bt),At.forEach(Bt)}function $t(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,o.unstable_scheduleCallback(o.unstable_NormalPriority,Ft)))}function Ut(e){function t(t){return $t(t,e)}if(0<Et.length){$t(Et[0],e);for(var r=1;r<Et.length;r++){var n=Et[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==Pt&&$t(Pt,e),null!==Ct&&$t(Ct,e),null!==Mt&&$t(Mt,e),Tt.forEach(t),At.forEach(t),r=0;r<Nt.length;r++)(n=Nt[r]).blockedOn===e&&(n.blockedOn=null);for(;0<Nt.length&&null===(r=Nt[0]).blockedOn;)zt(r),null===r.blockedOn&&Nt.shift()}var Ht=x.ReactCurrentBatchConfig,Wt=!0;function qt(e,t,r,n){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=1,Gt(e,t,r,n)}finally{bt=o,Ht.transition=i}}function Vt(e,t,r,n){var o=bt,i=Ht.transition;Ht.transition=null;try{bt=4,Gt(e,t,r,n)}finally{bt=o,Ht.transition=i}}function Gt(e,t,r,n){if(Wt){var o=Yt(e,t,r,n);if(null===o)Wn(e,t,n,Kt,r),Lt(e,n);else if(function(e,t,r,n,o){switch(t){case"focusin":return Pt=It(Pt,e,t,r,n,o),!0;case"dragenter":return Ct=It(Ct,e,t,r,n,o),!0;case"mouseover":return Mt=It(Mt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Tt.set(i,It(Tt.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,At.set(i,It(At.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n))n.stopPropagation();else if(Lt(e,n),4&t&&-1<Dt.indexOf(e)){for(;null!==o;){var i=xo(o);if(null!==i&&wt(i),null===(i=Yt(e,t,r,n))&&Wn(e,t,n,Kt,r),i===o)break;o=i}null!==o&&n.stopPropagation()}else Wn(e,t,n,null,r)}}var Kt=null;function Yt(e,t,r,n){if(Kt=null,null!==(e=bo(e=we(n))))if(null===(t=Ue(e)))e=null;else if(13===(r=t.tag)){if(null!==(e=He(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 Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Qe()){case Je:return 1;case et:return 4;case tt:case rt:return 16;case nt:return 536870912;default:return 16}default:return 16}}var Zt=null,Qt=null,Jt=null;function er(){if(Jt)return Jt;var e,t,r=Qt,n=r.length,o="value"in Zt?Zt.value:Zt.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return Jt=o.slice(e,1<t?1-t:void 0)}function tr(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 rr(){return!0}function nr(){return!1}function or(e){function t(t,r,n,o,i){for(var a in this._reactName=t,this._targetInst=n,this.type=r,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?rr:nr,this.isPropagationStopped=nr,this}return z(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=rr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=rr)},persist:function(){},isPersistent:rr}),t}var ir,ar,lr,ur={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sr=or(ur),cr=z({},ur,{view:0,detail:0}),fr=or(cr),dr=z({},cr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Or,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!==lr&&(lr&&"mousemove"===e.type?(ir=e.screenX-lr.screenX,ar=e.screenY-lr.screenY):ar=ir=0,lr=e),ir)},movementY:function(e){return"movementY"in e?e.movementY:ar}}),pr=or(dr),hr=or(z({},dr,{dataTransfer:0})),yr=or(z({},cr,{relatedTarget:0})),mr=or(z({},ur,{animationName:0,elapsedTime:0,pseudoElement:0})),gr=z({},ur,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),vr=or(gr),br=or(z({},ur,{data:0})),xr={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},wr={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"},Sr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function kr(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Sr[e])&&!!t[e]}function Or(){return kr}var jr=z({},cr,{key:function(e){if(e.key){var t=xr[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tr(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?wr[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Or,charCode:function(e){return"keypress"===e.type?tr(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tr(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_r=or(jr),Er=or(z({},dr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Pr=or(z({},cr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Or})),Cr=or(z({},ur,{propertyName:0,elapsedTime:0,pseudoElement:0})),Mr=z({},dr,{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}),Tr=or(Mr),Ar=[9,13,27,32],Nr=c&&"CompositionEvent"in window,Dr=null;c&&"documentMode"in document&&(Dr=document.documentMode);var Lr=c&&"TextEvent"in window&&!Dr,Ir=c&&(!Nr||Dr&&8<Dr&&11>=Dr),zr=String.fromCharCode(32),Rr=!1;function Br(e,t){switch(e){case"keyup":return-1!==Ar.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Fr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var $r=!1;var Ur={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 Hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Ur[e.type]:"textarea"===t}function Wr(e,t,r,n){_e(n),0<(t=Vn(t,"onChange")).length&&(r=new sr("onChange","change",null,r,n),e.push({event:r,listeners:t}))}var qr=null,Vr=null;function Gr(e){Rn(e,0)}function Kr(e){if(G(wo(e)))return e}function Yr(e,t){if("change"===e)return t}var Xr=!1;if(c){var Zr;if(c){var Qr="oninput"in document;if(!Qr){var Jr=document.createElement("div");Jr.setAttribute("oninput","return;"),Qr="function"===typeof Jr.oninput}Zr=Qr}else Zr=!1;Xr=Zr&&(!document.documentMode||9<document.documentMode)}function en(){qr&&(qr.detachEvent("onpropertychange",tn),Vr=qr=null)}function tn(e){if("value"===e.propertyName&&Kr(Vr)){var t=[];Wr(t,Vr,e,we(e)),Te(Gr,t)}}function rn(e,t,r){"focusin"===e?(en(),Vr=r,(qr=t).attachEvent("onpropertychange",tn)):"focusout"===e&&en()}function nn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Kr(Vr)}function on(e,t){if("click"===e)return Kr(t)}function an(e,t){if("input"===e||"change"===e)return Kr(t)}var ln="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function un(e,t){if(ln(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 o=r[n];if(!f.call(t,o)||!ln(e[o],t[o]))return!1}return!0}function sn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function cn(e,t){var r,n=sn(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=sn(n)}}function fn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dn(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=K((e=t.contentWindow).document)}return t}function pn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hn(e){var t=dn(),r=e.focusedElem,n=e.selectionRange;if(t!==r&&r&&r.ownerDocument&&fn(r.ownerDocument.documentElement,r)){if(null!==n&&pn(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 o=r.textContent.length,i=Math.min(n.start,o);n=void 0===n.end?i:Math.min(n.end,o),!e.extend&&i>n&&(o=n,n=i,i=o),o=cn(r,i);var a=cn(r,n);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>n?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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}}var yn=c&&"documentMode"in document&&11>=document.documentMode,mn=null,gn=null,vn=null,bn=!1;function xn(e,t,r){var n=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;bn||null==mn||mn!==K(n)||("selectionStart"in(n=mn)&&pn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},vn&&un(vn,n)||(vn=n,0<(n=Vn(gn,"onSelect")).length&&(t=new sr("onSelect","select",null,t,r),e.push({event:t,listeners:n}),t.target=mn)))}function wn(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Sn={animationend:wn("Animation","AnimationEnd"),animationiteration:wn("Animation","AnimationIteration"),animationstart:wn("Animation","AnimationStart"),transitionend:wn("Transition","TransitionEnd")},kn={},On={};function jn(e){if(kn[e])return kn[e];if(!Sn[e])return e;var t,r=Sn[e];for(t in r)if(r.hasOwnProperty(t)&&t in On)return kn[e]=r[t];return e}c&&(On=document.createElement("div").style,"AnimationEvent"in window||(delete Sn.animationend.animation,delete Sn.animationiteration.animation,delete Sn.animationstart.animation),"TransitionEvent"in window||delete Sn.transitionend.transition);var _n=jn("animationend"),En=jn("animationiteration"),Pn=jn("animationstart"),Cn=jn("transitionend"),Mn=new Map,Tn="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 An(e,t){Mn.set(e,t),u(t,[e])}for(var Nn=0;Nn<Tn.length;Nn++){var Dn=Tn[Nn];An(Dn.toLowerCase(),"on"+(Dn[0].toUpperCase()+Dn.slice(1)))}An(_n,"onAnimationEnd"),An(En,"onAnimationIteration"),An(Pn,"onAnimationStart"),An("dblclick","onDoubleClick"),An("focusin","onFocus"),An("focusout","onBlur"),An(Cn,"onTransitionEnd"),s("onMouseEnter",["mouseout","mouseover"]),s("onMouseLeave",["mouseout","mouseover"]),s("onPointerEnter",["pointerout","pointerover"]),s("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ln="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(" "),In=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ln));function zn(e,t,r){var n=e.type||"unknown-event";e.currentTarget=r,function(e,t,r,n,o,a,l,u,s){if($e.apply(this,arguments),Ie){if(!Ie)throw Error(i(198));var c=ze;Ie=!1,ze=null,Re||(Re=!0,Be=c)}}(n,t,void 0,e),e.currentTarget=null}function Rn(e,t){t=0!==(4&t);for(var r=0;r<e.length;r++){var n=e[r],o=n.event;n=n.listeners;e:{var i=void 0;if(t)for(var a=n.length-1;0<=a;a--){var l=n[a],u=l.instance,s=l.currentTarget;if(l=l.listener,u!==i&&o.isPropagationStopped())break e;zn(o,l,s),i=u}else for(a=0;a<n.length;a++){if(u=(l=n[a]).instance,s=l.currentTarget,l=l.listener,u!==i&&o.isPropagationStopped())break e;zn(o,l,s),i=u}}}if(Re)throw e=Be,Re=!1,Be=null,e}function Bn(e,t){var r=t[mo];void 0===r&&(r=t[mo]=new Set);var n=e+"__bubble";r.has(n)||(Hn(t,e,2,!1),r.add(n))}function Fn(e,t,r){var n=0;t&&(n|=4),Hn(r,e,n,t)}var $n="_reactListening"+Math.random().toString(36).slice(2);function Un(e){if(!e[$n]){e[$n]=!0,a.forEach((function(t){"selectionchange"!==t&&(In.has(t)||Fn(t,!1,e),Fn(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[$n]||(t[$n]=!0,Fn("selectionchange",!1,t))}}function Hn(e,t,r,n){switch(Xt(t)){case 1:var o=qt;break;case 4:o=Vt;break;default:o=Gt}r=o.bind(null,t,r,e),o=void 0,!Ne||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),n?void 0!==o?e.addEventListener(t,r,{capture:!0,passive:o}):e.addEventListener(t,r,!0):void 0!==o?e.addEventListener(t,r,{passive:o}):e.addEventListener(t,r,!1)}function Wn(e,t,r,n,o){var i=n;if(0===(1&t)&&0===(2&t)&&null!==n)e:for(;;){if(null===n)return;var a=n.tag;if(3===a||4===a){var l=n.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=n.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===o||8===u.nodeType&&u.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=bo(l)))return;if(5===(u=a.tag)||6===u){n=i=a;continue e}l=l.parentNode}}n=n.return}Te((function(){var n=i,o=we(r),a=[];e:{var l=Mn.get(e);if(void 0!==l){var u=sr,s=e;switch(e){case"keypress":if(0===tr(r))break e;case"keydown":case"keyup":u=_r;break;case"focusin":s="focus",u=yr;break;case"focusout":s="blur",u=yr;break;case"beforeblur":case"afterblur":u=yr;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":u=pr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=hr;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=Pr;break;case _n:case En:case Pn:u=mr;break;case Cn:u=Cr;break;case"scroll":u=fr;break;case"wheel":u=Tr;break;case"copy":case"cut":case"paste":u=vr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Er}var c=0!==(4&t),f=!c&&"scroll"===e,d=c?null!==l?l+"Capture":null:l;c=[];for(var p,h=n;null!==h;){var y=(p=h).stateNode;if(5===p.tag&&null!==y&&(p=y,null!==d&&(null!=(y=Ae(h,d))&&c.push(qn(h,y,p)))),f)break;h=h.return}0<c.length&&(l=new u(l,s,null,r,o),a.push({event:l,listeners:c}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||r===xe||!(s=r.relatedTarget||r.fromElement)||!bo(s)&&!s[yo])&&(u||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,u?(u=n,null!==(s=(s=r.relatedTarget||r.toElement)?bo(s):null)&&(s!==(f=Ue(s))||5!==s.tag&&6!==s.tag)&&(s=null)):(u=null,s=n),u!==s)){if(c=pr,y="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(c=Er,y="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?l:wo(u),p=null==s?l:wo(s),(l=new c(y,h+"leave",u,r,o)).target=f,l.relatedTarget=p,y=null,bo(o)===n&&((c=new c(d,h+"enter",s,r,o)).target=p,c.relatedTarget=f,y=c),f=y,u&&s)e:{for(d=s,h=0,p=c=u;p;p=Gn(p))h++;for(p=0,y=d;y;y=Gn(y))p++;for(;0<h-p;)c=Gn(c),h--;for(;0<p-h;)d=Gn(d),p--;for(;h--;){if(c===d||null!==d&&c===d.alternate)break e;c=Gn(c),d=Gn(d)}c=null}else c=null;null!==u&&Kn(a,l,u,c,!1),null!==s&&null!==f&&Kn(a,f,s,c,!0)}if("select"===(u=(l=n?wo(n):window).nodeName&&l.nodeName.toLowerCase())||"input"===u&&"file"===l.type)var m=Yr;else if(Hr(l))if(Xr)m=an;else{m=nn;var g=rn}else(u=l.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(m=on);switch(m&&(m=m(e,n))?Wr(a,m,r,o):(g&&g(e,l,n),"focusout"===e&&(g=l._wrapperState)&&g.controlled&&"number"===l.type&&ee(l,"number",l.value)),g=n?wo(n):window,e){case"focusin":(Hr(g)||"true"===g.contentEditable)&&(mn=g,gn=n,vn=null);break;case"focusout":vn=gn=mn=null;break;case"mousedown":bn=!0;break;case"contextmenu":case"mouseup":case"dragend":bn=!1,xn(a,r,o);break;case"selectionchange":if(yn)break;case"keydown":case"keyup":xn(a,r,o)}var v;if(Nr)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else $r?Br(e,r)&&(b="onCompositionEnd"):"keydown"===e&&229===r.keyCode&&(b="onCompositionStart");b&&(Ir&&"ko"!==r.locale&&($r||"onCompositionStart"!==b?"onCompositionEnd"===b&&$r&&(v=er()):(Qt="value"in(Zt=o)?Zt.value:Zt.textContent,$r=!0)),0<(g=Vn(n,b)).length&&(b=new br(b,e,null,r,o),a.push({event:b,listeners:g}),v?b.data=v:null!==(v=Fr(r))&&(b.data=v))),(v=Lr?function(e,t){switch(e){case"compositionend":return Fr(t);case"keypress":return 32!==t.which?null:(Rr=!0,zr);case"textInput":return(e=t.data)===zr&&Rr?null:e;default:return null}}(e,r):function(e,t){if($r)return"compositionend"===e||!Nr&&Br(e,t)?(e=er(),Jt=Qt=Zt=null,$r=!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 Ir&&"ko"!==t.locale?null:t.data}}(e,r))&&(0<(n=Vn(n,"onBeforeInput")).length&&(o=new br("onBeforeInput","beforeinput",null,r,o),a.push({event:o,listeners:n}),o.data=v))}Rn(a,t)}))}function qn(e,t,r){return{instance:e,listener:t,currentTarget:r}}function Vn(e,t){for(var r=t+"Capture",n=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Ae(e,r))&&n.unshift(qn(e,i,o)),null!=(i=Ae(e,t))&&n.push(qn(e,i,o))),e=e.return}return n}function Gn(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kn(e,t,r,n,o){for(var i=t._reactName,a=[];null!==r&&r!==n;){var l=r,u=l.alternate,s=l.stateNode;if(null!==u&&u===n)break;5===l.tag&&null!==s&&(l=s,o?null!=(u=Ae(r,i))&&a.unshift(qn(r,u,l)):o||null!=(u=Ae(r,i))&&a.push(qn(r,u,l))),r
vendor: 85,988 bytes, line 2
2=r.return}0!==a.length&&e.push({event:t,listeners:a})}var Yn=/\r\n?/g,Xn=/\u0000|\uFFFD/g;function Zn(e){return("string"===typeof e?e:""+e).replace(Yn,"\n").replace(Xn,"")}function Qn(e,t,r){if(t=Zn(t),Zn(e)!==t&&r)throw Error(i(425))}function Jn(){}var eo=null,to=null;function ro(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 no="function"===typeof setTimeout?setTimeout:void 0,oo="function"===typeof clearTimeout?clearTimeout:void 0,io="function"===typeof Promise?Promise:void 0,ao="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof io?function(e){return io.resolve(null).then(e).catch(lo)}:no;function lo(e){setTimeout((function(){throw e}))}function uo(e,t){var r=t,n=0;do{var o=r.nextSibling;if(e.removeChild(r),o&&8===o.nodeType)if("/$"===(r=o.data)){if(0===n)return e.removeChild(o),void Ut(t);n--}else"$"!==r&&"$?"!==r&&"$!"!==r||n++;r=o}while(r);Ut(t)}function so(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 co(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 fo=Math.random().toString(36).slice(2),po="__reactFiber$"+fo,ho="__reactProps$"+fo,yo="__reactContainer$"+fo,mo="__reactEvents$"+fo,go="__reactListeners$"+fo,vo="__reactHandles$"+fo;function bo(e){var t=e[po];if(t)return t;for(var r=e.parentNode;r;){if(t=r[yo]||r[po]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=co(e);null!==e;){if(r=e[po])return r;e=co(e)}return t}r=(e=r).parentNode}return null}function xo(e){return!(e=e[po]||e[yo])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wo(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(i(33))}function So(e){return e[ho]||null}var ko=[],Oo=-1;function jo(e){return{current:e}}function _o(e){0>Oo||(e.current=ko[Oo],ko[Oo]=null,Oo--)}function Eo(e,t){Oo++,ko[Oo]=e.current,e.current=t}var Po={},Co=jo(Po),Mo=jo(!1),To=Po;function Ao(e,t){var r=e.type.contextTypes;if(!r)return Po;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function No(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Do(){_o(Mo),_o(Co)}function Lo(e,t,r){if(Co.current!==Po)throw Error(i(168));Eo(Co,t),Eo(Mo,r)}function Io(e,t,r){var n=e.stateNode;if(t=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var o in n=n.getChildContext())if(!(o in t))throw Error(i(108,H(e)||"Unknown",o));return z({},r,n)}function zo(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Po,To=Co.current,Eo(Co,e),Eo(Mo,Mo.current),!0}function Ro(e,t,r){var n=e.stateNode;if(!n)throw Error(i(169));r?(e=Io(e,t,To),n.__reactInternalMemoizedMergedChildContext=e,_o(Mo),_o(Co),Eo(Co,e)):_o(Mo),Eo(Mo,r)}var Bo=null,Fo=!1,$o=!1;function Uo(e){null===Bo?Bo=[e]:Bo.push(e)}function Ho(){if(!$o&&null!==Bo){$o=!0;var e=0,t=bt;try{var r=Bo;for(bt=1;e<r.length;e++){var n=r[e];do{n=n(!0)}while(null!==n)}Bo=null,Fo=!1}catch(o){throw null!==Bo&&(Bo=Bo.slice(e+1)),Ge(Je,Ho),o}finally{bt=t,$o=!1}}return null}var Wo=[],qo=0,Vo=null,Go=0,Ko=[],Yo=0,Xo=null,Zo=1,Qo="";function Jo(e,t){Wo[qo++]=Go,Wo[qo++]=Vo,Vo=e,Go=t}function ei(e,t,r){Ko[Yo++]=Zo,Ko[Yo++]=Qo,Ko[Yo++]=Xo,Xo=e;var n=Zo;e=Qo;var o=32-at(n)-1;n&=~(1<<o),r+=1;var i=32-at(t)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,Zo=1<<32-at(t)+o|r<<o|n,Qo=i+e}else Zo=1<<i|r<<o|n,Qo=e}function ti(e){null!==e.return&&(Jo(e,1),ei(e,1,0))}function ri(e){for(;e===Vo;)Vo=Wo[--qo],Wo[qo]=null,Go=Wo[--qo],Wo[qo]=null;for(;e===Xo;)Xo=Ko[--Yo],Ko[Yo]=null,Qo=Ko[--Yo],Ko[Yo]=null,Zo=Ko[--Yo],Ko[Yo]=null}var ni=null,oi=null,ii=!1,ai=null;function li(e,t){var r=Ts(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 ui(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,ni=e,oi=so(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,ni=e,oi=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(r=null!==Xo?{id:Zo,overflow:Qo}:null,e.memoizedState={dehydrated:t,treeContext:r,retryLane:1073741824},(r=Ts(18,null,null,0)).stateNode=t,r.return=e,e.child=r,ni=e,oi=null,!0);default:return!1}}function si(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function ci(e){if(ii){var t=oi;if(t){var r=t;if(!ui(e,t)){if(si(e))throw Error(i(418));t=so(r.nextSibling);var n=ni;t&&ui(e,t)?li(n,r):(e.flags=-4097&e.flags|2,ii=!1,ni=e)}}else{if(si(e))throw Error(i(418));e.flags=-4097&e.flags|2,ii=!1,ni=e}}}function fi(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ni=e}function di(e){if(e!==ni)return!1;if(!ii)return fi(e),ii=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ro(e.type,e.memoizedProps)),t&&(t=oi)){if(si(e))throw pi(),Error(i(418));for(;t;)li(e,t),t=so(t.nextSibling)}if(fi(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){oi=so(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}oi=null}}else oi=ni?so(e.stateNode.nextSibling):null;return!0}function pi(){for(var e=oi;e;)e=so(e.nextSibling)}function hi(){oi=ni=null,ii=!1}function yi(e){null===ai?ai=[e]:ai.push(e)}var mi=x.ReactCurrentBatchConfig;function gi(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(i(309));var n=r.stateNode}if(!n)throw Error(i(147,e));var o=n,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=o.refs;null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(i(284));if(!r._owner)throw Error(i(290,e))}return e}function vi(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bi(e){return(0,e._init)(e._payload)}function xi(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 o(e,t){return(e=Ns(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 l(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,r,n){return null===t||6!==t.tag?((t=zs(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function s(e,t,r,n){var i=r.type;return i===k?f(e,t,r.props.children,n,r.key):null!==t&&(t.elementType===i||"object"===typeof i&&null!==i&&i.$$typeof===A&&bi(i)===t.type)?((n=o(t,r.props)).ref=gi(e,t,r),n.return=e,n):((n=Ds(r.type,r.key,r.props,null,e.mode,n)).ref=gi(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=Rs(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function f(e,t,r,n,i){return null===t||7!==t.tag?((t=Ls(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function d(e,t,r){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=zs(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(r=Ds(t.type,t.key,t.props,null,e.mode,r)).ref=gi(e,null,t),r.return=e,r;case S:return(t=Rs(t,e.mode,r)).return=e,t;case A:return d(e,(0,t._init)(t._payload),r)}if(te(t)||L(t))return(t=Ls(t,e.mode,r,null)).return=e,t;vi(e,t)}return null}function p(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r&&""!==r||"number"===typeof r)return null!==o?null:u(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return r.key===o?s(e,t,r,n):null;case S:return r.key===o?c(e,t,r,n):null;case A:return p(e,t,(o=r._init)(r._payload),n)}if(te(r)||L(r))return null!==o?null:f(e,t,r,n,null);vi(e,r)}return null}function h(e,t,r,n,o){if("string"===typeof n&&""!==n||"number"===typeof n)return u(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return s(t,e=e.get(null===n.key?r:n.key)||null,n,o);case S:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o);case A:return h(e,t,r,(0,n._init)(n._payload),o)}if(te(n)||L(n))return f(t,e=e.get(r)||null,n,o,null);vi(t,n)}return null}function y(o,i,l,u){for(var s=null,c=null,f=i,y=i=0,m=null;null!==f&&y<l.length;y++){f.index>y?(m=f,f=null):m=f.sibling;var g=p(o,f,l[y],u);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),i=a(g,i,y),null===c?s=g:c.sibling=g,c=g,f=m}if(y===l.length)return r(o,f),ii&&Jo(o,y),s;if(null===f){for(;y<l.length;y++)null!==(f=d(o,l[y],u))&&(i=a(f,i,y),null===c?s=f:c.sibling=f,c=f);return ii&&Jo(o,y),s}for(f=n(o,f);y<l.length;y++)null!==(m=h(f,o,y,l[y],u))&&(e&&null!==m.alternate&&f.delete(null===m.key?y:m.key),i=a(m,i,y),null===c?s=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(o,e)})),ii&&Jo(o,y),s}function m(o,l,u,s){var c=L(u);if("function"!==typeof c)throw Error(i(150));if(null==(u=c.call(u)))throw Error(i(151));for(var f=c=null,y=l,m=l=0,g=null,v=u.next();null!==y&&!v.done;m++,v=u.next()){y.index>m?(g=y,y=null):g=y.sibling;var b=p(o,y,v.value,s);if(null===b){null===y&&(y=g);break}e&&y&&null===b.alternate&&t(o,y),l=a(b,l,m),null===f?c=b:f.sibling=b,f=b,y=g}if(v.done)return r(o,y),ii&&Jo(o,m),c;if(null===y){for(;!v.done;m++,v=u.next())null!==(v=d(o,v.value,s))&&(l=a(v,l,m),null===f?c=v:f.sibling=v,f=v);return ii&&Jo(o,m),c}for(y=n(o,y);!v.done;m++,v=u.next())null!==(v=h(y,o,m,v.value,s))&&(e&&null!==v.alternate&&y.delete(null===v.key?m:v.key),l=a(v,l,m),null===f?c=v:f.sibling=v,f=v);return e&&y.forEach((function(e){return t(o,e)})),ii&&Jo(o,m),c}return function e(n,i,a,u){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case w:e:{for(var s=a.key,c=i;null!==c;){if(c.key===s){if((s=a.type)===k){if(7===c.tag){r(n,c.sibling),(i=o(c,a.props.children)).return=n,n=i;break e}}else if(c.elementType===s||"object"===typeof s&&null!==s&&s.$$typeof===A&&bi(s)===c.type){r(n,c.sibling),(i=o(c,a.props)).ref=gi(n,c,a),i.return=n,n=i;break e}r(n,c);break}t(n,c),c=c.sibling}a.type===k?((i=Ls(a.props.children,n.mode,u,a.key)).return=n,n=i):((u=Ds(a.type,a.key,a.props,null,n.mode,u)).ref=gi(n,i,a),u.return=n,n=u)}return l(n);case S:e:{for(c=a.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===a.containerInfo&&i.stateNode.implementation===a.implementation){r(n,i.sibling),(i=o(i,a.children||[])).return=n,n=i;break e}r(n,i);break}t(n,i),i=i.sibling}(i=Rs(a,n.mode,u)).return=n,n=i}return l(n);case A:return e(n,i,(c=a._init)(a._payload),u)}if(te(a))return y(n,i,a,u);if(L(a))return m(n,i,a,u);vi(n,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==i&&6===i.tag?(r(n,i.sibling),(i=o(i,a)).return=n,n=i):(r(n,i),(i=zs(a,n.mode,u)).return=n,n=i),l(n)):r(n,i)}}var wi=xi(!0),Si=xi(!1),ki=jo(null),Oi=null,ji=null,_i=null;function Ei(){_i=ji=Oi=null}function Pi(e){var t=ki.current;_o(ki),e._currentValue=t}function Ci(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 Mi(e,t){Oi=e,_i=ji=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bl=!0),e.firstContext=null)}function Ti(e){var t=e._currentValue;if(_i!==e)if(e={context:e,memoizedValue:t,next:null},null===ji){if(null===Oi)throw Error(i(308));ji=e,Oi.dependencies={lanes:0,firstContext:e}}else ji=ji.next=e;return t}var Ai=null;function Ni(e){null===Ai?Ai=[e]:Ai.push(e)}function Di(e,t,r,n){var o=t.interleaved;return null===o?(r.next=r,Ni(t)):(r.next=o.next,o.next=r),t.interleaved=r,Li(e,n)}function Li(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 Ii=!1;function zi(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Ri(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 Bi(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,r){var n=e.updateQueue;if(null===n)return null;if(n=n.shared,0!==(2&Pu)){var o=n.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),n.pending=t,Li(e,r)}return null===(o=n.interleaved)?(t.next=t,Ni(n)):(t.next=o.next,o.next=t),n.interleaved=t,Li(e,r)}function $i(e,t,r){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&r))){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,vt(e,r)}}function Ui(e,t){var r=e.updateQueue,n=e.alternate;if(null!==n&&r===(n=n.updateQueue)){var o=null,i=null;if(null!==(r=r.firstBaseUpdate)){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};null===i?o=i=a:i=i.next=a,r=r.next}while(null!==r);null===i?o=i=t:i=i.next=t}else o=i=t;return r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},void(e.updateQueue=r)}null===(e=r.lastBaseUpdate)?r.firstBaseUpdate=t:e.next=t,r.lastBaseUpdate=t}function Hi(e,t,r,n){var o=e.updateQueue;Ii=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var u=l,s=u.next;u.next=null,null===a?i=s:a.next=s,a=u;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=s:l.next=s,c.lastBaseUpdate=u))}if(null!==i){var f=o.baseState;for(a=0,c=s=u=null,l=i;;){var d=l.lane,p=l.eventTime;if((n&d)===d){null!==c&&(c=c.next={eventTime:p,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var h=e,y=l;switch(d=t,p=r,y.tag){case 1:if("function"===typeof(h=y.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=y.payload)?h.call(p,f,d):h)||void 0===d)break e;f=z({},f,d);break e;case 2:Ii=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(d=o.effects)?o.effects=[l]:d.push(l))}else p={eventTime:p,lane:d,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(s=c=p,u=f):c=c.next=p,a|=d;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(d=l).next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}if(null===c&&(u=f),o.baseState=u,o.firstBaseUpdate=s,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Iu|=a,e.lanes=a,e.memoizedState=f}}function Wi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=r,"function"!==typeof o)throw Error(i(191,o));o.call(n)}}}var qi={},Vi=jo(qi),Gi=jo(qi),Ki=jo(qi);function Yi(e){if(e===qi)throw Error(i(174));return e}function Xi(e,t){switch(Eo(Ki,t),Eo(Gi,e),Eo(Vi,qi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}_o(Vi),Eo(Vi,t)}function Zi(){_o(Vi),_o(Gi),_o(Ki)}function Qi(e){Yi(Ki.current);var t=Yi(Vi.current),r=ue(t,e.type);t!==r&&(Eo(Gi,e),Eo(Vi,r))}function Ji(e){Gi.current===e&&(_o(Vi),_o(Gi))}var ea=jo(0);function ta(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 ra=[];function na(){for(var e=0;e<ra.length;e++)ra[e]._workInProgressVersionPrimary=null;ra.length=0}var oa=x.ReactCurrentDispatcher,ia=x.ReactCurrentBatchConfig,aa=0,la=null,ua=null,sa=null,ca=!1,fa=!1,da=0,pa=0;function ha(){throw Error(i(321))}function ya(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!ln(e[r],t[r]))return!1;return!0}function ma(e,t,r,n,o,a){if(aa=a,la=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,oa.current=null===e||null===e.memoizedState?Ja:el,e=r(n,o),fa){a=0;do{if(fa=!1,da=0,25<=a)throw Error(i(301));a+=1,sa=ua=null,t.updateQueue=null,oa.current=tl,e=r(n,o)}while(fa)}if(oa.current=Qa,t=null!==ua&&null!==ua.next,aa=0,sa=ua=la=null,ca=!1,t)throw Error(i(300));return e}function ga(){var e=0!==da;return da=0,e}function va(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===sa?la.memoizedState=sa=e:sa=sa.next=e,sa}function ba(){if(null===ua){var e=la.alternate;e=null!==e?e.memoizedState:null}else e=ua.next;var t=null===sa?la.memoizedState:sa.next;if(null!==t)sa=t,ua=e;else{if(null===e)throw Error(i(310));e={memoizedState:(ua=e).memoizedState,baseState:ua.baseState,baseQueue:ua.baseQueue,queue:ua.queue,next:null},null===sa?la.memoizedState=sa=e:sa=sa.next=e}return sa}function xa(e,t){return"function"===typeof t?t(e):t}function wa(e){var t=ba(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=ua,o=n.baseQueue,a=r.pending;if(null!==a){if(null!==o){var l=o.next;o.next=a.next,a.next=l}n.baseQueue=o=a,r.pending=null}if(null!==o){a=o.next,n=n.baseState;var u=l=null,s=null,c=a;do{var f=c.lane;if((aa&f)===f)null!==s&&(s=s.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:e(n,c.action);else{var d={lane:f,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};null===s?(u=s=d,l=n):s=s.next=d,la.lanes|=f,Iu|=f}c=c.next}while(null!==c&&c!==a);null===s?l=n:s.next=u,ln(n,t.memoizedState)||(bl=!0),t.memoizedState=n,t.baseState=l,t.baseQueue=s,r.lastRenderedState=n}if(null!==(e=r.interleaved)){o=e;do{a=o.lane,la.lanes|=a,Iu|=a,o=o.next}while(o!==e)}else null===o&&(r.lanes=0);return[t.memoizedState,r.dispatch]}function Sa(e){var t=ba(),r=t.queue;if(null===r)throw Error(i(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,a=t.memoizedState;if(null!==o){r.pending=null;var l=o=o.next;do{a=e(a,l.action),l=l.next}while(l!==o);ln(a,t.memoizedState)||(bl=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),r.lastRenderedState=a}return[a,n]}function ka(){}function Oa(e,t){var r=la,n=ba(),o=t(),a=!ln(n.memoizedState,o);if(a&&(n.memoizedState=o,bl=!0),n=n.queue,Ia(Ea.bind(null,r,n,e),[e]),n.getSnapshot!==t||a||null!==sa&&1&sa.memoizedState.tag){if(r.flags|=2048,Ta(9,_a.bind(null,r,n,o,t),void 0,null),null===Cu)throw Error(i(349));0!==(30&aa)||ja(r,t,o)}return o}function ja(e,t,r){e.flags|=16384,e={getSnapshot:t,value:r},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.updateQueue=t,t.stores=[e]):null===(r=t.stores)?t.stores=[e]:r.push(e)}function _a(e,t,r,n){t.value=r,t.getSnapshot=n,Pa(t)&&Ca(e)}function Ea(e,t,r){return r((function(){Pa(t)&&Ca(e)}))}function Pa(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!ln(e,r)}catch(n){return!0}}function Ca(e){var t=Li(e,1);null!==t&&rs(t,e,1,-1)}function Ma(e){var t=va();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:xa,lastRenderedState:e},t.queue=e,e=e.dispatch=Ka.bind(null,la,e),[t.memoizedState,e]}function Ta(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=la.updateQueue)?(t={lastEffect:null,stores:null},la.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 Aa(){return ba().memoizedState}function Na(e,t,r,n){var o=va();la.flags|=e,o.memoizedState=Ta(1|t,r,void 0,void 0===n?null:n)}function Da(e,t,r,n){var o=ba();n=void 0===n?null:n;var i=void 0;if(null!==ua){var a=ua.memoizedState;if(i=a.destroy,null!==n&&ya(n,a.deps))return void(o.memoizedState=Ta(t,r,i,n))}la.flags|=e,o.memoizedState=Ta(1|t,r,i,n)}function La(e,t){return Na(8390656,8,e,t)}function Ia(e,t){return Da(2048,8,e,t)}function za(e,t){return Da(4,2,e,t)}function Ra(e,t){return Da(4,4,e,t)}function Ba(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Fa(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Da(4,4,Ba.bind(null,t,e),r)}function $a(){}function Ua(e,t){var r=ba();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ya(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function Ha(e,t){var r=ba();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&ya(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function Wa(e,t,r){return 0===(21&aa)?(e.baseState&&(e.baseState=!1,bl=!0),e.memoizedState=r):(ln(r,t)||(r=yt(),la.lanes|=r,Iu|=r,e.baseState=!0),t)}function qa(e,t){var r=bt;bt=0!==r&&4>r?r:4,e(!0);var n=ia.transition;ia.transition={};try{e(!1),t()}finally{bt=r,ia.transition=n}}function Va(){return ba().memoizedState}function Ga(e,t,r){var n=ts(e);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Ya(e))Xa(t,r);else if(null!==(r=Di(e,t,r,n))){rs(r,e,n,es()),Za(r,t,n)}}function Ka(e,t,r){var n=ts(e),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Ya(e))Xa(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,r);if(o.hasEagerState=!0,o.eagerState=l,ln(l,a)){var u=t.interleaved;return null===u?(o.next=o,Ni(t)):(o.next=u.next,u.next=o),void(t.interleaved=o)}}catch(s){}null!==(r=Di(e,t,o,n))&&(rs(r,e,n,o=es()),Za(r,t,n))}}function Ya(e){var t=e.alternate;return e===la||null!==t&&t===la}function Xa(e,t){fa=ca=!0;var r=e.pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}function Za(e,t,r){if(0!==(4194240&r)){var n=t.lanes;r|=n&=e.pendingLanes,t.lanes=r,vt(e,r)}}var Qa={readContext:Ti,useCallback:ha,useContext:ha,useEffect:ha,useImperativeHandle:ha,useInsertionEffect:ha,useLayoutEffect:ha,useMemo:ha,useReducer:ha,useRef:ha,useState:ha,useDebugValue:ha,useDeferredValue:ha,useTransition:ha,useMutableSource:ha,useSyncExternalStore:ha,useId:ha,unstable_isNewReconciler:!1},Ja={readContext:Ti,useCallback:function(e,t){return va().memoizedState=[e,void 0===t?null:t],e},useContext:Ti,useEffect:La,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,Na(4194308,4,Ba.bind(null,t,e),r)},useLayoutEffect:function(e,t){return Na(4194308,4,e,t)},useInsertionEffect:function(e,t){return Na(4,2,e,t)},useMemo:function(e,t){var r=va();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=va();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=Ga.bind(null,la,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},va().memoizedState=e},useState:Ma,useDebugValue:$a,useDeferredValue:function(e){return va().memoizedState=e},useTransition:function(){var e=Ma(!1),t=e[0];return e=qa.bind(null,e[1]),va().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,r){var n=la,o=va();if(ii){if(void 0===r)throw Error(i(407));r=r()}else{if(r=t(),null===Cu)throw Error(i(349));0!==(30&aa)||ja(n,t,r)}o.memoizedState=r;var a={value:r,getSnapshot:t};return o.queue=a,La(Ea.bind(null,n,a,e),[e]),n.flags|=2048,Ta(9,_a.bind(null,n,a,r,t),void 0,null),r},useId:function(){var e=va(),t=Cu.identifierPrefix;if(ii){var r=Qo;t=":"+t+"R"+(r=(Zo&~(1<<32-at(Zo)-1)).toString(32)+r),0<(r=da++)&&(t+="H"+r.toString(32)),t+=":"}else t=":"+t+"r"+(r=pa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},el={readContext:Ti,useCallback:Ua,useContext:Ti,useEffect:Ia,useImperativeHandle:Fa,useInsertionEffect:za,useLayoutEffect:Ra,useMemo:Ha,useReducer:wa,useRef:Aa,useState:function(){return wa(xa)},useDebugValue:$a,useDeferredValue:function(e){return Wa(ba(),ua.memoizedState,e)},useTransition:function(){return[wa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Oa,useId:Va,unstable_isNewReconciler:!1},tl={readContext:Ti,useCallback:Ua,useContext:Ti,useEffect:Ia,useImperativeHandle:Fa,useInsertionEffect:za,useLayoutEffect:Ra,useMemo:Ha,useReducer:Sa,useRef:Aa,useState:function(){return Sa(xa)},useDebugValue:$a,useDeferredValue:function(e){var t=ba();return null===ua?t.memoizedState=e:Wa(t,ua.memoizedState,e)},useTransition:function(){return[Sa(xa)[0],ba().memoizedState]},useMutableSource:ka,useSyncExternalStore:Oa,useId:Va,unstable_isNewReconciler:!1};function rl(e,t){if(e&&e.defaultProps){for(var r in t=z({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}return t}function nl(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:z({},t,r),e.memoizedState=r,0===e.lanes&&(e.updateQueue.baseState=r)}var ol={isMounted:function(e){return!!(e=e._reactInternals)&&Ue(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternals;var n=es(),o=ts(e),i=Bi(n,o);i.payload=t,void 0!==r&&null!==r&&(i.callback=r),null!==(t=Fi(e,i,o))&&(rs(t,e,o,n),$i(t,e,o))},enqueueReplaceState:function(e,t,r){e=e._reactInternals;var n=es(),o=ts(e),i=Bi(n,o);i.tag=1,i.payload=t,void 0!==r&&null!==r&&(i.callback=r),null!==(t=Fi(e,i,o))&&(rs(t,e,o,n),$i(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var r=es(),n=ts(e),o=Bi(r,n);o.tag=2,void 0!==t&&null!==t&&(o.callback=t),null!==(t=Fi(e,o,n))&&(rs(t,e,n,r),$i(t,e,n))}};function il(e,t,r,n,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!un(r,n)||!un(o,i))}function al(e,t,r){var n=!1,o=Po,i=t.contextType;return"object"===typeof i&&null!==i?i=Ti(i):(o=No(t)?To:Co.current,i=(n=null!==(n=t.contextTypes)&&void 0!==n)?Ao(e,o):Po),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=ol,e.stateNode=t,t._reactInternals=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function ll(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&&ol.enqueueReplaceState(t,t.state,null)}function ul(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs={},zi(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=Ti(i):(i=No(t)?To:Co.current,o.context=Ao(e,i)),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(nl(e,t,i,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&ol.enqueueReplaceState(o,o.state,null),Hi(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.flags|=4194308)}function sl(e,t){try{var r="",n=t;do{r+=$(n),n=n.return}while(n);var o=r}catch(i){o="\nError generating stack: "+i.message+"\n"+i.stack}return{value:e,source:t,stack:o,digest:null}}function cl(e,t,r){return{value:e,source:null,stack:null!=r?r:null,digest:null!=t?t:null}}function fl(e,t){try{console.error(t.value)}catch(r){setTimeout((function(){throw r}))}}var dl="function"===typeof WeakMap?WeakMap:Map;function pl(e,t,r){(r=Bi(-1,r)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Wu||(Wu=!0,qu=n),fl(0,t)},r}function hl(e,t,r){(r=Bi(-1,r)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return n(o)},r.callback=function(){fl(0,t)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(r.callback=function(){fl(0,t),"function"!==typeof n&&(null===Vu?Vu=new Set([this]):Vu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),r}function yl(e,t,r){var n=e.pingCache;if(null===n){n=e.pingCache=new dl;var o=new Set;n.set(t,o)}else void 0===(o=n.get(t))&&(o=new Set,n.set(t,o));o.has(r)||(o.add(r),e=js.bind(null,e,t,r),t.then(e,e))}function ml(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 gl(e,t,r,n,o){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=Bi(-1,1)).tag=2,Fi(r,t,1))),r.lanes|=1),e):(e.flags|=65536,e.lanes=o,e)}var vl=x.ReactCurrentOwner,bl=!1;function xl(e,t,r,n){t.child=null===e?Si(t,null,r,n):wi(t,e.child,r,n)}function wl(e,t,r,n,o){r=r.render;var i=t.ref;return Mi(t,o),n=ma(e,t,r,n,i,o),r=ga(),null===e||bl?(ii&&r&&ti(t),t.flags|=1,xl(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function Sl(e,t,r,n,o){if(null===e){var i=r.type;return"function"!==typeof i||As(i)||void 0!==i.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ds(r.type,null,n,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,kl(e,t,i,n,o))}if(i=e.child,0===(e.lanes&o)){var a=i.memoizedProps;if((r=null!==(r=r.compare)?r:un)(a,n)&&e.ref===t.ref)return Wl(e,t,o)}return t.flags|=1,(e=Ns(i,n)).ref=t.ref,e.return=t,t.child=e}function kl(e,t,r,n,o){if(null!==e){var i=e.memoizedProps;if(un(i,n)&&e.ref===t.ref){if(bl=!1,t.pendingProps=n=i,0===(e.lanes&o))return t.lanes=e.lanes,Wl(e,t,o);0!==(131072&e.flags)&&(bl=!0)}}return _l(e,t,r,n,o)}function Ol(e,t,r){var n=t.pendingProps,o=n.children,i=null!==e?e.memoizedState:null;if("hidden"===n.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Eo(Nu,Au),Au|=r;else{if(0===(1073741824&r))return e=null!==i?i.baseLanes|r:r,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Eo(Nu,Au),Au|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=null!==i?i.baseLanes:r,Eo(Nu,Au),Au|=n}else null!==i?(n=i.baseLanes|r,t.memoizedState=null):n=r,Eo(Nu,Au),Au|=n;return xl(e,t,o,r),t.child}function jl(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.flags|=512,t.flags|=2097152)}function _l(e,t,r,n,o){var i=No(r)?To:Co.current;return i=Ao(t,i),Mi(t,o),r=ma(e,t,r,n,i,o),n=ga(),null===e||bl?(ii&&n&&ti(t),t.flags|=1,xl(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Wl(e,t,o))}function El(e,t,r,n,o){if(No(r)){var i=!0;zo(t)}else i=!1;if(Mi(t,o),null===t.stateNode)Hl(e,t),al(t,r,n),ul(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var u=a.context,s=r.contextType;"object"===typeof s&&null!==s?s=Ti(s):s=Ao(t,s=No(r)?To:Co.current);var c=r.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==n||u!==s)&&ll(t,a,n,s),Ii=!1;var d=t.memoizedState;a.state=d,Hi(t,n,a,o),u=t.memoizedState,l!==n||d!==u||Mo.current||Ii?("function"===typeof c&&(nl(t,r,c,n),u=t.memoizedState),(l=Ii||il(t,r,l,n,d,u,s))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=n,t.memoizedState=u),a.props=n,a.state=u,a.context=s,n=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),n=!1)}else{a=t.stateNode,Ri(e,t),l=t.memoizedProps,s=t.type===t.elementType?l:rl(t.type,l),a.props=s,f=t.pendingProps,d=a.context,"object"===typeof(u=r.contextType)&&null!==u?u=Ti(u):u=Ao(t,u=No(r)?To:Co.current);var p=r.getDerivedStateFromProps;(c="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(l!==f||d!==u)&&ll(t,a,n,u),Ii=!1,d=t.memoizedState,a.state=d,Hi(t,n,a,o);var h=t.memoizedState;l!==f||d!==h||Mo.current||Ii?("function"===typeof p&&(nl(t,r,p,n),h=t.memoizedState),(s=Ii||il(t,r,s,n,d,h,u)||!1)?(c||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=u,n=s):("function"!==typeof a.componentDidUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),n=!1)}return Pl(e,t,r,n,i,o)}function Pl(e,t,r,n,o,i){jl(e,t);var a=0!==(128&t.flags);if(!n&&!a)return o&&Ro(t,r,!1),Wl(e,t,i);n=t.stateNode,vl.current=t;var l=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.flags|=1,null!==e&&a?(t.child=wi(t,e.child,null,i),t.child=wi(t,null,l,i)):xl(e,t,l,i),t.memoizedState=n.state,o&&Ro(t,r,!0),t.child}function Cl(e){var t=e.stateNode;t.pendingContext?Lo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Lo(0,t.context,!1),Xi(e,t.containerInfo)}function Ml(e,t,r,n,o){return hi(),yi(o),t.flags|=256,xl(e,t,r,n),t.child}var Tl,Al,Nl,Dl,Ll={dehydrated:null,treeContext:null,retryLane:0};function Il(e){return{baseLanes:e,cachePool:null,transitions:null}}function zl(e,t,r){var n,o=t.pendingProps,a=ea.current,l=!1,u=0!==(128&t.flags);if((n=u)||(n=(null===e||null!==e.memoizedState)&&0!==(2&a)),n?(l=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),Eo(ea,1&a),null===e)return ci(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=o.children,e=o.fallback,l?(o=t.mode,l=t.child,u={mode:"hidden",children:u},0===(1&o)&&null!==l?(l.childLanes=0,l.pendingProps=u):l=Is(u,o,0,null),e=Ls(e,o,r,null),l.return=t,e.return=t,l.sibling=e,t.child=l,t.child.memoizedState=Il(r),t.memoizedState=Ll,e):Rl(t,u));if(null!==(a=e.memoizedState)&&null!==(n=a.dehydrated))return function(e,t,r,n,o,a,l){if(r)return 256&t.flags?(t.flags&=-257,Bl(e,t,l,n=cl(Error(i(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=n.fallback,o=t.mode,n=Is({mode:"visible",children:n.children},o,0,null),(a=Ls(a,o,l,null)).flags|=2,n.return=t,a.return=t,n.sibling=a,t.child=n,0!==(1&t.mode)&&wi(t,e.child,null,l),t.child.memoizedState=Il(l),t.memoizedState=Ll,a);if(0===(1&t.mode))return Bl(e,t,l,null);if("$!"===o.data){if(n=o.nextSibling&&o.nextSibling.dataset)var u=n.dgst;return n=u,Bl(e,t,l,n=cl(a=Error(i(419)),n,void 0))}if(u=0!==(l&e.childLanes),bl||u){if(null!==(n=Cu)){switch(l&-l){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=0!==(o&(n.suspendedLanes|l))?0:o)&&o!==a.retryLane&&(a.retryLane=o,Li(e,o),rs(n,e,o,-1))}return ys(),Bl(e,t,l,n=cl(Error(i(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=Es.bind(null,e),o._reactRetry=t,null):(e=a.treeContext,oi=so(o.nextSibling),ni=t,ii=!0,ai=null,null!==e&&(Ko[Yo++]=Zo,Ko[Yo++]=Qo,Ko[Yo++]=Xo,Zo=e.id,Qo=e.overflow,Xo=t),t=Rl(t,n.children),t.flags|=4096,t)}(e,t,u,o,n,a,r);if(l){l=o.fallback,u=t.mode,n=(a=e.child).sibling;var s={mode:"hidden",children:o.children};return 0===(1&u)&&t.child!==a?((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null):(o=Ns(a,s)).subtreeFlags=14680064&a.subtreeFlags,null!==n?l=Ns(n,l):(l=Ls(l,u,r,null)).flags|=2,l.return=t,o.return=t,o.sibling=l,t.child=o,o=l,l=t.child,u=null===(u=e.child.memoizedState)?Il(r):{baseLanes:u.baseLanes|r,cachePool:null,transitions:u.transitions},l.memoizedState=u,l.childLanes=e.childLanes&~r,t.memoizedState=Ll,o}return e=(l=e.child).sibling,o=Ns(l,{mode:"visible",children:o.children}),0===(1&t.mode)&&(o.lanes=r),o.return=t,o.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=o,t.memoizedState=null,o}function Rl(e,t){return(t=Is({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Bl(e,t,r,n){return null!==n&&yi(n),wi(t,e.child,null,r),(e=Rl(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Fl(e,t,r){e.lanes|=t;var n=e.alternate;null!==n&&(n.lanes|=t),Ci(e.return,t,r)}function $l(e,t,r,n,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Ul(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(xl(e,t,n.children,r),0!==(2&(n=ea.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&&Fl(e,r,t);else if(19===e.tag)Fl(e,r,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(Eo(ea,n),0===(1&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===ta(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),$l(t,!1,o,r,i);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===ta(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}$l(t,!0,r,null,i);break;case"together":$l(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hl(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Wl(e,t,r){if(null!==e&&(t.dependencies=e.dependencies),Iu|=t.lanes,0===(r&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(i(153));if(null!==t.child){for(r=Ns(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ns(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function ql(e,t){if(!ii)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 Vl(e){var t=null!==e.alternate&&e.alternate.child===e.child,r=0,n=0;if(t)for(var o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=14680064&o.subtreeFlags,n|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=n,e.childLanes=r,t}function Gl(e,t,r){var n=t.pendingProps;switch(ri(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Vl(t),null;case 1:case 17:return No(t.type)&&Do(),Vl(t),null;case 3:return n=t.stateNode,Zi(),_o(Mo),_o(Co),na(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(di(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==ai&&(as(ai),ai=null))),Al(e,t),Vl(t),null;case 5:Ji(t);var o=Yi(Ki.current);if(r=t.type,null!==e&&null!=t.stateNode)Nl(e,t,r,n,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!n){if(null===t.stateNode)throw Error(i(166));return Vl(t),null}if(e=Yi(Vi.current),di(t)){n=t.stateNode,r=t.type;var a=t.memoizedProps;switch(n[po]=t,n[ho]=a,e=0!==(1&t.mode),r){case"dialog":Bn("cancel",n),Bn("close",n);break;case"iframe":case"object":case"embed":Bn("load",n);break;case"video":case"audio":for(o=0;o<Ln.length;o++)Bn(Ln[o],n);break;case"source":Bn("error",n);break;case"img":case"image":case"link":Bn("error",n),Bn("load",n);break;case"details":Bn("toggle",n);break;case"input":X(n,a),Bn("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!a.multiple},Bn("invalid",n);break;case"textarea":oe(n,a),Bn("invalid",n)}for(var u in ve(r,a),o=null,a)if(a.hasOwnProperty(u)){var s=a[u];"children"===u?"string"===typeof s?n.textContent!==s&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,s,e),o=["children",s]):"number"===typeof s&&n.textContent!==""+s&&(!0!==a.suppressHydrationWarning&&Qn(n.textContent,s,e),o=["children",""+s]):l.hasOwnProperty(u)&&null!=s&&"onScroll"===u&&Bn("scroll",n)}switch(r){case"input":V(n),J(n,a,!0);break;case"textarea":V(n),ae(n);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(n.onclick=Jn)}n=o,t.updateQueue=n,null!==n&&(t.flags|=4)}else{u=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=le(r)),"http://www.w3.org/1999/xhtml"===e?"script"===r?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=u.createElement(r,{is:n.is}):(e=u.createElement(r),"select"===r&&(u=e,n.multiple?u.multiple=!0:n.size&&(u.size=n.size))):e=u.createElementNS(e,r),e[po]=t,e[ho]=n,Tl(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(r,n),r){case"dialog":Bn("cancel",e),Bn("close",e),o=n;break;case"iframe":case"object":case"embed":Bn("load",e),o=n;break;case"video":case"audio":for(o=0;o<Ln.length;o++)Bn(Ln[o],e);o=n;break;case"source":Bn("error",e),o=n;break;case"img":case"image":case"link":Bn("error",e),Bn("load",e),o=n;break;case"details":Bn("toggle",e),o=n;break;case"input":X(e,n),o=Y(e,n),Bn("invalid",e);break;case"option":default:o=n;break;case"select":e._wrapperState={wasMultiple:!!n.multiple},o=z({},n,{value:void 0}),Bn("invalid",e);break;case"textarea":oe(e,n),o=ne(e,n),Bn("invalid",e)}for(a in ve(r,o),s=o)if(s.hasOwnProperty(a)){var c=s[a];"style"===a?me(e,c):"dangerouslySetInnerHTML"===a?null!=(c=c?c.__html:void 0)&&fe(e,c):"children"===a?"string"===typeof c?("textarea"!==r||""!==c)&&de(e,c):"number"===typeof c&&de(e,""+c):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(l.hasOwnProperty(a)?null!=c&&"onScroll"===a&&Bn("scroll",e):null!=c&&b(e,a,c,u))}switch(r){case"input":V(e),J(e,n,!1);break;case"textarea":V(e),ae(e);break;case"option":null!=n.value&&e.setAttribute("value",""+W(n.value));break;case"select":e.multiple=!!n.multiple,null!=(a=n.value)?re(e,!!n.multiple,a,!1):null!=n.defaultValue&&re(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof o.onClick&&(e.onclick=Jn)}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 Vl(t),null;case 6:if(e&&null!=t.stateNode)Dl(e,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(i(166));if(r=Yi(Ki.current),Yi(Vi.current),di(t)){if(n=t.stateNode,r=t.memoizedProps,n[po]=t,(a=n.nodeValue!==r)&&null!==(e=ni))switch(e.tag){case 3:Qn(n.nodeValue,r,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Qn(n.nodeValue,r,0!==(1&e.mode))}a&&(t.flags|=4)}else(n=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[po]=t,t.stateNode=n}return Vl(t),null;case 13:if(_o(ea),n=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ii&&null!==oi&&0!==(1&t.mode)&&0===(128&t.flags))pi(),hi(),t.flags|=98560,a=!1;else if(a=di(t),null!==n&&null!==n.dehydrated){if(null===e){if(!a)throw Error(i(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(i(317));a[po]=t}else hi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Vl(t),a=!1}else null!==ai&&(as(ai),ai=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=r,t):((n=null!==n)!==(null!==e&&null!==e.memoizedState)&&n&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ea.current)?0===Du&&(Du=3):ys())),null!==t.updateQueue&&(t.flags|=4),Vl(t),null);case 4:return Zi(),Al(e,t),null===e&&Un(t.stateNode.containerInfo),Vl(t),null;case 10:return Pi(t.type._context),Vl(t),null;case 19:if(_o(ea),null===(a=t.memoizedState))return Vl(t),null;if(n=0!==(128&t.flags),null===(u=a.rendering))if(n)ql(a,!1);else{if(0!==Du||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ta(e))){for(t.flags|=128,ql(a,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.flags|=4),t.subtreeFlags=0,n=r,r=t.child;null!==r;)e=n,(a=r).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),r=r.sibling;return Eo(ea,1&ea.current|2),t.child}e=e.sibling}null!==a.tail&&Ze()>Uu&&(t.flags|=128,n=!0,ql(a,!1),t.lanes=4194304)}else{if(!n)if(null!==(e=ta(u))){if(t.flags|=128,n=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.flags|=4),ql(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!ii)return Vl(t),null}else 2*Ze()-a.renderingStartTime>Uu&&1073741824!==r&&(t.flags|=128,n=!0,ql(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=a.last)?r.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ze(),t.sibling=null,r=ea.current,Eo(ea,n?1&r|2:1&r),t):(Vl(t),null);case 22:case 23:return fs(),n=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==n&&(t.flags|=8192),n&&0!==(1&t.mode)?0!==(1073741824&Au)&&(Vl(t),6&t.subtreeFlags&&(t.flags|=8192)):Vl(t),null;case 24:case 25:return null}throw Error(i(156,t.tag))}function Kl(e,t){switch(ri(t),t.tag){case 1:return No(t.type)&&Do(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Zi(),_o(Mo),_o(Co),na(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return Ji(t),null;case 13:if(_o(ea),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(i(340));hi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return _o(ea),null;case 4:return Zi(),null;case 10:return Pi(t.type._context),null;case 22:case 23:return fs(),null;default:return null}}Tl=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}},Al=function(){},Nl=function(e,t,r,n){var o=e.memoizedProps;if(o!==n){e=t.stateNode,Yi(Vi.current);var i,a=null;switch(r){case"input":o=Y(e,o),n=Y(e,n),a=[];break;case"select":o=z({},o,{value:void 0}),n=z({},n,{value:void 0}),a=[];break;case"textarea":o=ne(e,o),n=ne(e,n),a=[];break;default:"function"!==typeof o.onClick&&"function"===typeof n.onClick&&(e.onclick=Jn)}for(c in ve(r,n),r=null,o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&null!=o[c])if("style"===c){var u=o[c];for(i in u)u.hasOwnProperty(i)&&(r||(r={}),r[i]="")}else"dangerouslySetInnerHTML"!==c&&"children"!==c&&"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(l.hasOwnProperty(c)?a||(a=[]):(a=a||[]).push(c,null));for(c in n){var s=n[c];if(u=null!=o?o[c]:void 0,n.hasOwnProperty(c)&&s!==u&&(null!=s||null!=u))if("style"===c)if(u){for(i in u)!u.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(r||(r={}),r[i]="");for(i in s)s.hasOwnProperty(i)&&u[i]!==s[i]&&(r||(r={}),r[i]=s[i])}else r||(a||(a=[]),a.push(c,r)),r=s;else"dangerouslySetInnerHTML"===c?(s=s?s.__html:void 0,u=u?u.__html:void 0,null!=s&&u!==s&&(a=a||[]).push(c,s)):"children"===c?"string"!==typeof s&&"number"!==typeof s||(a=a||[]).push(c,""+s):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&(l.hasOwnProperty(c)?(null!=s&&"onScroll"===c&&Bn("scroll",e),a||u===s||(a=[])):(a=a||[]).push(c,s))}r&&(a=a||[]).push("style",r);var c=a;(t.updateQueue=c)&&(t.flags|=4)}},Dl=function(e,t,r,n){r!==n&&(t.flags|=4)};var Yl=!1,Xl=!1,Zl="function"===typeof WeakSet?WeakSet:Set,Ql=null;function Jl(e,t){var r=e.ref;if(null!==r)if("function"===typeof r)try{r(null)}catch(n){Os(e,t,n)}else r.current=null}function eu(e,t,r){try{r()}catch(n){Os(e,t,n)}}var tu=!1;function ru(e,t,r){var n=t.updateQueue;if(null!==(n=null!==n?n.lastEffect:null)){var o=n=n.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&eu(t,r,i)}o=o.next}while(o!==n)}}function nu(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 ou(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 iu(e){var t=e.alternate;null!==t&&(e.alternate=null,iu(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[po],delete t[ho],delete t[mo],delete t[go],delete t[vo])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function au(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||au(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function uu(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?8===r.nodeType?r.parentNode.insertBefore(e,t):r.insertBefore(e,t):(8===r.nodeType?(t=r.parentNode).insertBefore(e,r):(t=r).appendChild(e),null!==(r=r._reactRootContainer)&&void 0!==r||null!==t.onclick||(t.onclick=Jn));else if(4!==n&&null!==(e=e.child))for(uu(e,t,r),e=e.sibling;null!==e;)uu(e,t,r),e=e.sibling}function su(e,t,r){var n=e.tag;if(5===n||6===n)e=e.stateNode,t?r.insertBefore(e,t):r.appendChild(e);else if(4!==n&&null!==(e=e.child))for(su(e,t,r),e=e.sibling;null!==e;)su(e,t,r),e=e.sibling}var cu=null,fu=!1;function du(e,t,r){for(r=r.child;null!==r;)pu(e,t,r),r=r.sibling}function pu(e,t,r){if(it&&"function"===typeof it.onCommitFiberUnmount)try{it.onCommitFiberUnmount(ot,r)}catch(l){}switch(r.tag){case 5:Xl||Jl(r,t);case 6:var n=cu,o=fu;cu=null,du(e,t,r),fu=o,null!==(cu=n)&&(fu?(e=cu,r=r.stateNode,8===e.nodeType?e.parentNode.removeChild(r):e.removeChild(r)):cu.removeChild(r.stateNode));break;case 18:null!==cu&&(fu?(e=cu,r=r.stateNode,8===e.nodeType?uo(e.parentNode,r):1===e.nodeType&&uo(e,r),Ut(e)):uo(cu,r.stateNode));break;case 4:n=cu,o=fu,cu=r.stateNode.containerInfo,fu=!0,du(e,t,r),cu=n,fu=o;break;case 0:case 11:case 14:case 15:if(!Xl&&(null!==(n=r.updateQueue)&&null!==(n=n.lastEffect))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(0!==(2&i)||0!==(4&i))&&eu(r,t,a),o=o.next}while(o!==n)}du(e,t,r);break;case 1:if(!Xl&&(Jl(r,t),"function"===typeof(n=r.stateNode).componentWillUnmount))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(l){Os(r,t,l)}du(e,t,r);break;case 21:du(e,t,r);break;case 22:1&r.mode?(Xl=(n=Xl)||null!==r.memoizedState,du(e,t,r),Xl=n):du(e,t,r);break;default:du(e,t,r)}}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new Zl),t.forEach((function(t){var n=Ps.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}function yu(e,t){var r=t.deletions;if(null!==r)for(var n=0;n<r.length;n++){var o=r[n];try{var a=e,l=t,u=l;e:for(;null!==u;){switch(u.tag){case 5:cu=u.stateNode,fu=!1;break e;case 3:case 4:cu=u.stateNode.containerInfo,fu=!0;break e}u=u.return}if(null===cu)throw Error(i(160));pu(a,l,o),cu=null,fu=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(c){Os(o,t,c)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)mu(t,e),t=t.sibling}function mu(e,t){var r=e.alternate,n=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yu(t,e),gu(e),4&n){try{ru(3,e,e.return),nu(3,e)}catch(m){Os(e,e.return,m)}try{ru(5,e,e.return)}catch(m){Os(e,e.return,m)}}break;case 1:yu(t,e),gu(e),512&n&&null!==r&&Jl(r,r.return);break;case 5:if(yu(t,e),gu(e),512&n&&null!==r&&Jl(r,r.return),32&e.flags){var o=e.stateNode;try{de(o,"")}catch(m){Os(e,e.return,m)}}if(4&n&&null!=(o=e.stateNode)){var a=e.memoizedProps,l=null!==r?r.memoizedProps:a,u=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===u&&"radio"===a.type&&null!=a.name&&Z(o,a),be(u,l);var c=be(u,a);for(l=0;l<s.length;l+=2){var f=s[l],d=s[l+1];"style"===f?me(o,d):"dangerouslySetInnerHTML"===f?fe(o,d):"children"===f?de(o,d):b(o,f,d,c)}switch(u){case"input":Q(o,a);break;case"textarea":ie(o,a);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?re(o,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?re(o,!!a.multiple,a.defaultValue,!0):re(o,!!a.multiple,a.multiple?[]:"",!1))}o[ho]=a}catch(m){Os(e,e.return,m)}}break;case 6:if(yu(t,e),gu(e),4&n){if(null===e.stateNode)throw Error(i(162));o=e.stateNode,a=e.memoizedProps;try{o.nodeValue=a}catch(m){Os(e,e.return,m)}}break;case 3:if(yu(t,e),gu(e),4&n&&null!==r&&r.memoizedState.isDehydrated)try{Ut(t.containerInfo)}catch(m){Os(e,e.return,m)}break;case 4:default:yu(t,e),gu(e);break;case 13:yu(t,e),gu(e),8192&(o=e.child).flags&&(a=null!==o.memoizedState,o.stateNode.isHidden=a,!a||null!==o.alternate&&null!==o.alternate.memoizedState||($u=Ze())),4&n&&hu(e);break;case 22:if(f=null!==r&&null!==r.memoizedState,1&e.mode?(Xl=(c=Xl)||f,yu(t,e),Xl=c):yu(t,e),gu(e),8192&n){if(c=null!==e.memoizedState,(e.stateNode.isHidden=c)&&!f&&0!==(1&e.mode))for(Ql=e,f=e.child;null!==f;){for(d=Ql=f;null!==Ql;){switch(h=(p=Ql).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:Jl(p,p.return);var y=p.stateNode;if("function"===typeof y.componentWillUnmount){n=p,r=p.return;try{t=n,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(m){Os(n,r,m)}}break;case 5:Jl(p,p.return);break;case 22:if(null!==p.memoizedState){wu(d);continue}}null!==h?(h.return=p,Ql=h):wu(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{o=d.stateNode,c?"function"===typeof(a=o.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,l=void 0!==(s=d.memoizedProps.style)&&null!==s&&s.hasOwnProperty("display")?s.display:null,u.style.display=ye("display",l))}catch(m){Os(e,e.return,m)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Os(e,e.return,m)}}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 e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yu(t,e),gu(e),4&n&&hu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var r=e.return;null!==r;){if(au(r)){var n=r;break e}r=r.return}throw Error(i(160))}switch(n.tag){case 5:var o=n.stateNode;32&n.flags&&(de(o,""),n.flags&=-33),su(e,lu(e),o);break;case 3:case 4:var a=n.stateNode.containerInfo;uu(e,lu(e),a);break;default:throw Error(i(161))}}catch(l){Os(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function vu(e,t,r){Ql=e,bu(e,t,r)}function bu(e,t,r){for(var n=0!==(1&e.mode);null!==Ql;){var o=Ql,i=o.child;if(22===o.tag&&n){var a=null!==o.memoizedState||Yl;if(!a){var l=o.alternate,u=null!==l&&null!==l.memoizedState||Xl;l=Yl;var s=Xl;if(Yl=a,(Xl=u)&&!s)for(Ql=o;null!==Ql;)u=(a=Ql).child,22===a.tag&&null!==a.memoizedState?Su(o):null!==u?(u.return=a,Ql=u):Su(o);for(;null!==i;)Ql=i,bu(i,t,r),i=i.sibling;Ql=o,Yl=l,Xl=s}xu(e)}else 0!==(8772&o.subtreeFlags)&&null!==i?(i.return=o,Ql=i):xu(e)}}function xu(e){for(;null!==Ql;){var t=Ql;if(0!==(8772&t.flags)){var r=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Xl||nu(5,t);break;case 1:var n=t.stateNode;if(4&t.flags&&!Xl)if(null===r)n.componentDidMount();else{var o=t.elementType===t.type?r.memoizedProps:rl(t.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&Wi(t,a,n);break;case 3:var l=t.updateQueue;if(null!==l){if(r=null,null!==t.child)switch(t.child.tag){case 5:case 1:r=t.child.stateNode}Wi(t,l,r)}break;case 5:var u=t.stateNode;if(null===r&&4&t.flags){r=u;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&r.focus();break;case"img":s.src&&(r.src=s.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 c=t.alternate;if(null!==c){var f=c.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Ut(d)}}}break;default:throw Error(i(163))}Xl||512&t.flags&&ou(t)}catch(p){Os(t,t.return,p)}}if(t===e){Ql=null;break}if(null!==(r=t.sibling)){r.return=t.return,Ql=r;break}Ql=t.return}}function wu(e){for(;null!==Ql;){var t=Ql;if(t===e){Ql=null;break}var r=t.sibling;if(null!==r){r.return=t.return,Ql=r;break}Ql=t.return}}function Su(e){for(;null!==Ql;){var t=Ql;try{switch(t.tag){case 0:case 11:case 15:var r=t.return;try{nu(4,t)}catch(u){Os(t,r,u)}break;case 1:var n=t.stateNode;if("function"===typeof n.componentDidMount){var o=t.return;try{n.componentDidMount()}catch(u){Os(t,o,u)}}var i=t.return;try{ou(t)}catch(u){Os(t,i,u)}break;case 5:var a=t.return;try{ou(t)}catch(u){Os(t,a,u)}}}catch(u){Os(t,t.return,u)}if(t===e){Ql=null;break}var l=t.sibling;if(null!==l){l.return=t.return,Ql=l;break}Ql=t.return}}var ku,Ou=Math.ceil,ju=x.ReactCurrentDispatcher,_u=x.ReactCurrentOwner,Eu=x.ReactCurrentBatchConfig,Pu=0,Cu=null,Mu=null,Tu=0,Au=0,Nu=jo(0),Du=0,Lu=null,Iu=0,zu=0,Ru=0,Bu=null,Fu=null,$u=0,Uu=1/0,Hu=null,Wu=!1,qu=null,Vu=null,Gu=!1,Ku=null,Yu=0,Xu=0,Zu=null,Qu=-1,Ju=0;function es(){return 0!==(6&Pu)?Ze():-1!==Qu?Qu:Qu=Ze()}function ts(e){return 0===(1&e.mode)?1:0!==(2&Pu)&&0!==Tu?Tu&-Tu:null!==mi.transition?(0===Ju&&(Ju=yt()),Ju):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rs(e,t,r,n){if(50<Xu)throw Xu=0,Zu=null,Error(i(185));gt(e,r,n),0!==(2&Pu)&&e===Cu||(e===Cu&&(0===(2&Pu)&&(zu|=r),4===Du&&ls(e,Tu)),ns(e,n),1===r&&0===Pu&&0===(1&t.mode)&&(Uu=Ze()+500,Fo&&Ho()))}function ns(e,t){var r=e.callbackNode;!function(e,t){for(var r=e.suspendedLanes,n=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-at(i),l=1<<a,u=o[a];-1===u?0!==(l&r)&&0===(l&n)||(o[a]=pt(l,t)):u<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var n=dt(e,e===Cu?Tu:0);if(0===n)null!==r&&Ke(r),e.callbackNode=null,e.callbackPriority=0;else if(t=n&-n,e.callbackPriority!==t){if(null!=r&&Ke(r),1===t)0===e.tag?function(e){Fo=!0,Uo(e)}(us.bind(null,e)):Uo(us.bind(null,e)),ao((function(){0===(6&Pu)&&Ho()})),r=null;else{switch(xt(n)){case 1:r=Je;break;case 4:r=et;break;case 16:default:r=tt;break;case 536870912:r=nt}r=Cs(r,os.bind(null,e))}e.callbackPriority=t,e.callbackNode=r}}function os(e,t){if(Qu=-1,Ju=0,0!==(6&Pu))throw Error(i(327));var r=e.callbackNode;if(Ss()&&e.callbackNode!==r)return null;var n=dt(e,e===Cu?Tu:0);if(0===n)return null;if(0!==(30&n)||0!==(n&e.expiredLanes)||t)t=ms(e,n);else{t=n;var o=Pu;Pu|=2;var a=hs();for(Cu===e&&Tu===t||(Hu=null,Uu=Ze()+500,ds(e,t));;)try{vs();break}catch(u){ps(e,u)}Ei(),ju.current=a,Pu=o,null!==Mu?t=0:(Cu=null,Tu=0,t=Du)}if(0!==t){if(2===t&&(0!==(o=ht(e))&&(n=o,t=is(e,o))),1===t)throw r=Lu,ds(e,0),ls(e,n),ns(e,Ze()),r;if(6===t)ls(e,n);else{if(o=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 o=r[n],i=o.getSnapshot;o=o.value;try{if(!ln(i(),o))return!1}catch(l){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}(o)&&(2===(t=ms(e,n))&&(0!==(a=ht(e))&&(n=a,t=is(e,a))),1===t))throw r=Lu,ds(e,0),ls(e,n),ns(e,Ze()),r;switch(e.finishedWork=o,e.finishedLanes=n,t){case 0:case 1:throw Error(i(345));case 2:case 5:ws(e,Fu,Hu);break;case 3:if(ls(e,n),(130023424&n)===n&&10<(t=$u+500-Ze())){if(0!==dt(e,0))break;if(((o=e.suspendedLanes)&n)!==n){es(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=no(ws.bind(null,e,Fu,Hu),t);break}ws(e,Fu,Hu);break;case 4:if(ls(e,n),(4194240&n)===n)break;for(t=e.eventTimes,o=-1;0<n;){var l=31-at(n);a=1<<l,(l=t[l])>o&&(o=l),n&=~a}if(n=o,10<(n=(120>(n=Ze()-n)?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Ou(n/1960))-n)){e.timeoutHandle=no(ws.bind(null,e,Fu,Hu),n);break}ws(e,Fu,Hu);break;default:throw Error(i(329))}}}return ns(e,Ze()),e.callbackNode===r?os.bind(null,e):null}function is(e,t){var r=Bu;return e.current.memoizedState.isDehydrated&&(ds(e,t).flags|=256),2!==(e=ms(e,t))&&(t=Fu,Fu=r,null!==t&&as(t)),e}function as(e){null===Fu?Fu=e:Fu.push.apply(Fu,e)}function ls(e,t){for(t&=~Ru,t&=~zu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var r=31-at(t),n=1<<r;e[r]=-1,t&=~n}}function us(e){if(0!==(6&Pu))throw Error(i(327));Ss();var t=dt(e,0);if(0===(1&t))return ns(e,Ze()),null;var r=ms(e,t);if(0!==e.tag&&2===r){var n=ht(e);0!==n&&(t=n,r=is(e,n))}if(1===r)throw r=Lu,ds(e,0),ls(e,t),ns(e,Ze()),r;if(6===r)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ws(e,Fu,Hu),ns(e,Ze()),null}function ss(e,t){var r=Pu;Pu|=1;try{return e(t)}finally{0===(Pu=r)&&(Uu=Ze()+500,Fo&&Ho())}}function cs(e){null!==Ku&&0===Ku.tag&&0===(6&Pu)&&Ss();var t=Pu;Pu|=1;var r=Eu.transition,n=bt;try{if(Eu.transition=null,bt=1,e)return e()}finally{bt=n,Eu.transition=r,0===(6&(Pu=t))&&Ho()}}function fs(){Au=Nu.current,_o(Nu)}function ds(e,t){e.finishedWork=null,e.finishedLanes=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,oo(r)),null!==Mu)for(r=Mu.return;null!==r;){var n=r;switch(ri(n),n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&Do();break;case 3:Zi(),_o(Mo),_o(Co),na();break;case 5:Ji(n);break;case 4:Zi();break;case 13:case 19:_o(ea);break;case 10:Pi(n.type._context);break;case 22:case 23:fs()}r=r.return}if(Cu=e,Mu=e=Ns(e.current,null),Tu=Au=t,Du=0,Lu=null,Ru=zu=Iu=0,Fu=Bu=null,null!==Ai){for(t=0;t<Ai.length;t++)if(null!==(n=(r=Ai[t]).interleaved)){r.interleaved=null;var o=n.next,i=r.pending;if(null!==i){var a=i.next;i.next=o,n.next=a}r.pending=n}Ai=null}return e}function ps(e,t){for(;;){var r=Mu;try{if(Ei(),oa.current=Qa,ca){for(var n=la.memoizedState;null!==n;){var o=n.queue;null!==o&&(o.pending=null),n=n.next}ca=!1}if(aa=0,sa=ua=la=null,fa=!1,da=0,_u.current=null,null===r||null===r.return){Du=1,Lu=t,Mu=null;break}e:{var a=e,l=r.return,u=r,s=t;if(t=Tu,u.flags|=32768,null!==s&&"object"===typeof s&&"function"===typeof s.then){var c=s,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=ml(l);if(null!==h){h.flags&=-257,gl(h,l,u,0,t),1&h.mode&&yl(a,c,t),s=c;var y=(t=h).updateQueue;if(null===y){var m=new Set;m.add(s),t.updateQueue=m}else y.add(s);break e}if(0===(1&t)){yl(a,c,t),ys();break e}s=Error(i(426))}else if(ii&&1&u.mode){var g=ml(l);if(null!==g){0===(65536&g.flags)&&(g.flags|=256),gl(g,l,u,0,t),yi(sl(s,u));break e}}a=s=sl(s,u),4!==Du&&(Du=2),null===Bu?Bu=[a]:Bu.push(a),a=l;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Ui(a,pl(0,s,t));break e;case 1:u=s;var v=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof v.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Vu||!Vu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Ui(a,hl(a,u,t));break e}}a=a.return}while(null!==a)}xs(r)}catch(x){t=x,Mu===r&&null!==r&&(Mu=r=r.return);continue}break}}function hs(){var e=ju.current;return ju.current=Qa,null===e?Qa:e}function ys(){0!==Du&&3!==Du&&2!==Du||(Du=4),null===Cu||0===(268435455&Iu)&&0===(268435455&zu)||ls(Cu,Tu)}function ms(e,t){var r=Pu;Pu|=2;var n=hs();for(Cu===e&&Tu===t||(Hu=null,ds(e,t));;)try{gs();break}catch(o){ps(e,o)}if(Ei(),Pu=r,ju.current=n,null!==Mu)throw Error(i(261));return Cu=null,Tu=0,Du}function gs(){for(;null!==Mu;)bs(Mu)}function vs(){for(;null!==Mu&&!Ye();)bs(Mu)}function bs(e){var t=ku(e.alternate,e,Au);e.memoizedProps=e.pendingProps,null===t?xs(e):Mu=t,_u.current=null}function xs(e){var t=e;do{var r=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(r=Gl(r,t,Au)))return void(Mu=r)}else{if(null!==(r=Kl(r,t)))return r.flags&=32767,void(Mu=r);if(null===e)return Du=6,void(Mu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Mu=t);Mu=t=e}while(null!==t);0===Du&&(Du=5)}function ws(e,t,r){var n=bt,o=Eu.transition;try{Eu.transition=null,bt=1,function(e,t,r,n){do{Ss()}while(null!==Ku);if(0!==(6&Pu))throw Error(i(327));r=e.finishedWork;var o=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error(i(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 o=31-at(r),i=1<<o;t[o]=0,n[o]=-1,e[o]=-1,r&=~i}}(e,a),e===Cu&&(Mu=Cu=null,Tu=0),0===(2064&r.subtreeFlags)&&0===(2064&r.flags)||Gu||(Gu=!0,Cs(tt,(function(){return Ss(),null}))),a=0!==(15990&r.flags),0!==(15990&r.subtreeFlags)||a){a=Eu.transition,Eu.transition=null;var l=bt;bt=1;var u=Pu;Pu|=4,_u.current=null,function(e,t){if(eo=Wt,pn(e=dn())){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 o=n.anchorOffset,a=n.focusNode;n=n.focusOffset;try{r.nodeType,a.nodeType}catch(w){r=null;break e}var l=0,u=-1,s=-1,c=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==r||0!==o&&3!==d.nodeType||(u=l+o),d!==a||0!==n&&3!==d.nodeType||(s=l+n),3===d.nodeType&&(l+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===r&&++c===o&&(u=l),p===a&&++f===n&&(s=l),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}r=-1===u||-1===s?null:{start:u,end:s}}else r=null}r=r||{start:0,end:0}}else r=null;for(to={focusedElem:e,selectionRange:r},Wt=!1,Ql=t;null!==Ql;)if(e=(t=Ql).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ql=e;else for(;null!==Ql;){t=Ql;try{var y=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!==y){var m=y.memoizedProps,g=y.memoizedState,v=t.stateNode,b=v.getSnapshotBeforeUpdate(t.elementType===t.type?m:rl(t.type,m),g);v.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;1===x.nodeType?x.textContent="":9===x.nodeType&&x.documentElement&&x.removeChild(x.documentElement);break;default:throw Error(i(163))}}catch(w){Os(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Ql=e;break}Ql=t.return}y=tu,tu=!1}(e,r),mu(r,e),hn(to),Wt=!!eo,to=eo=null,e.current=r,vu(r,e,o),Xe(),Pu=u,bt=l,Eu.transition=a}else e.current=r;if(Gu&&(Gu=!1,Ku=e,Yu=o),a=e.pendingLanes,0===a&&(Vu=null),function(e){if(it&&"function"===typeof it.onCommitFiberRoot)try{it.onCommitFiberRoot(ot,e,void 0,128===(128&e.current.flags))}catch(t){}}(r.stateNode),ns(e,Ze()),null!==t)for(n=e.onRecoverableError,r=0;r<t.length;r++)o=t[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Wu)throw Wu=!1,e=qu,qu=null,e;0!==(1&Yu)&&0!==e.tag&&Ss(),a=e.pendingLanes,0!==(1&a)?e===Zu?Xu++:(Xu=0,Zu=e):Xu=0,Ho()}(e,t,r,n)}finally{Eu.transition=o,bt=n}return null}function Ss(){if(null!==Ku){var e=xt(Yu),t=Eu.transition,r=bt;try{if(Eu.transition=null,bt=16>e?16:e,null===Ku)var n=!1;else{if(e=Ku,Ku=null,Yu=0,0!==(6&Pu))throw Error(i(331));var o=Pu;for(Pu|=4,Ql=e.current;null!==Ql;){var a=Ql,l=a.child;if(0!==(16&Ql.flags)){var u=a.deletions;if(null!==u){for(var s=0;s<u.length;s++){var c=u[s];for(Ql=c;null!==Ql;){var f=Ql;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Ql=d;else for(;null!==Ql;){var p=(f=Ql).sibling,h=f.return;if(iu(f),f===c){Ql=null;break}if(null!==p){p.return=h,Ql=p;break}Ql=h}}}var y=a.alternate;if(null!==y){var m=y.child;if(null!==m){y.child=null;do{var g=m.sibling;m.sibling=null,m=g}while(null!==m)}}Ql=a}}if(0!==(2064&a.subtreeFlags)&&null!==l)l.return=a,Ql=l;else e:for(;null!==Ql;){if(0!==(2048&(a=Ql).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var v=a.sibling;if(null!==v){v.return=a.return,Ql=v;break e}Ql=a.return}}var b=e.current;for(Ql=b;null!==Ql;){var x=(l=Ql).child;if(0!==(2064&l.subtreeFlags)&&null!==x)x.return=l,Ql=x;else e:for(l=b;null!==Ql;){if(0!==(2048&(u=Ql).flags))try{switch(u.tag){case 0:case 11:case 15:nu(9,u)}}catch(S){Os(u,u.return,S)}if(u===l){Ql=null;break e}var w=u.sibling;if(null!==w){w.return=u.return,Ql=w;break e}Ql=u.return}}if(Pu=o,Ho(),it&&"function"===typeof it.onPostCommitFiberRoot)try{it.onPostCommitFiberRoot(ot,e)}catch(S){}n=!0}return n}finally{bt=r,Eu.transition=t}}return!1}function ks(e,t,r){e=Fi(e,t=pl(0,t=sl(r,t),1),1),t=es(),null!==e&&(gt(e,1,t),ns(e,t))}function Os(e,t,r){if(3===e.tag)ks(e,e,r);else for(;null!==t;){if(3===t.tag){ks(t,e,r);break}if(1===t.tag){var n=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Vu||!Vu.has(n))){t=Fi(t,e=hl(t,e=sl(r,e),1),1),e=es(),null!==t&&(gt(t,1,e),ns(t,e));break}}t=t.return}}function js(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),t=es(),e.pingedLanes|=e.suspendedLanes&r,Cu===e&&(Tu&r)===r&&(4===Du||3===Du&&(130023424&Tu)===Tu&&500>Ze()-$u?ds(e,0):Ru|=r),ns(e,t)}function _s(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ct,0===(130023424&(ct<<=1))&&(ct=4194304)));var r=es();null!==(e=Li(e,t))&&(gt(e,t,r),ns(e,r))}function Es(e){var t=e.memoizedState,r=0;null!==t&&(r=t.retryLane),_s(e,r)}function Ps(e,t){var r=0;switch(e.tag){case 13:var n=e.stateNode,o=e.memoizedState;null!==o&&(r=o.retryLane);break;case 19:n=e.stateNode;break;default:throw Error(i(314))}null!==n&&n.delete(t),_s(e,r)}function Cs(e,t){return Ge(e,t)}function Ms(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 Ts(e,t,r,n){return new Ms(e,t,r,n)}function As(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ns(e,t){var r=e.alternate;return null===r?((r=Ts(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=14680064&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 Ds(e,t,r,n,o,a){var l=2;if(n=e,"function"===typeof e)As(e)&&(l=1);else if("string"===typeof e)l=5;else e:switch(e){case k:return Ls(r.children,o,a,t);case O:l=8,o|=8;break;case j:return(e=Ts(12,r,t,2|o)).elementType=j,e.lanes=a,e;case C:return(e=Ts(13,r,t,o)).elementType=C,e.lanes=a,e;case M:return(e=Ts(19,r,t,o)).elementType=M,e.lanes=a,e;case N:return Is(r,o,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:l=10;break e;case E:l=9;break e;case P:l=11;break e;case T:l=14;break e;case A:l=16,n=null;break e}throw Error(i(130,null==e?e:typeof e,""))}return(t=Ts(l,r,t,o)).elementType=e,t.type=n,t.lanes=a,t}function Ls(e,t,r,n){return(e=Ts(7,e,n,t)).lanes=r,e}function Is(e,t,r,n){return(e=Ts(22,e,n,t)).elementType=N,e.lanes=r,e.stateNode={isHidden:!1},e}function zs(e,t,r){return(e=Ts(6,e,null,t)).lanes=r,e}function Rs(e,t,r){return(t=Ts(4,null!==e.children?e.children:[],e.key,t)).lanes=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Bs(e,t,r,n,o){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=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Fs(e,t,r,n,o,i,a,l,u){return e=new Bs(e,t,r,l,u),1===t?(t=1,!0===i&&(t|=8)):t=0,i=Ts(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},zi(i),e}function $s(e){if(!e)return Po;e:{if(Ue(e=e._reactInternals)!==e||1!==e.tag)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(No(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(i(171))}if(1===e.tag){var r=e.type;if(No(r))return Io(e,r,t)}return t}function Us(e,t,r,n,o,i,a,l,u){return(e=Fs(r,n,!0,e,0,i,0,l,u)).context=$s(null),r=e.current,(i=Bi(n=es(),o=ts(r))).callback=void 0!==t&&null!==t?t:null,Fi(r,i,o),e.current.lanes=o,gt(e,o,n),ns(e,n),e}function Hs(e,t,r,n){var o=t.current,i=es(),a=ts(o);return r=$s(r),null===t.context?t.context=r:t.pendingContext=r,(t=Bi(i,a)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),null!==(e=Fi(o,t,a))&&(rs(e,o,a,i),$i(e,o,a)),a}function Ws(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function qs(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var r=e.retryLane;e.retryLane=0!==r&&r<t?r:t}}function Vs(e,t){qs(e,t),(e=e.alternate)&&qs(e,t)}ku=function(e,t,r){if(null!==e)if(e.memoizedProps!==t.pendingProps||Mo.current)bl=!0;else{if(0===(e.lanes&r)&&0===(128&t.flags))return bl=!1,function(e,t,r){switch(t.tag){case 3:Cl(t),hi();break;case 5:Qi(t);break;case 1:No(t.type)&&zo(t);break;case 4:Xi(t,t.stateNode.containerInfo);break;case 10:var n=t.type._context,o=t.memoizedProps.value;Eo(ki,n._currentValue),n._currentValue=o;break;case 13:if(null!==(n=t.memoizedState))return null!==n.dehydrated?(Eo(ea,1&ea.current),t.flags|=128,null):0!==(r&t.child.childLanes)?zl(e,t,r):(Eo(ea,1&ea.current),null!==(e=Wl(e,t,r))?e.sibling:null);Eo(ea,1&ea.current);break;case 19:if(n=0!==(r&t.childLanes),0!==(128&e.flags)){if(n)return Ul(e,t,r);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Eo(ea,ea.current),n)break;return null;case 22:case 23:return t.lanes=0,Ol(e,t,r)}return Wl(e,t,r)}(e,t,r);bl=0!==(131072&e.flags)}else bl=!1,ii&&0!==(1048576&t.flags)&&ei(t,Go,t.index);switch(t.lanes=0,t.tag){case 2:var n=t.type;Hl(e,t),e=t.pendingProps;var o=Ao(t,Co.current);Mi(t,r),o=ma(null,t,n,e,o,r);var a=ga();return t.flags|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,No(n)?(a=!0,zo(t)):a=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,zi(t),o.updater=ol,t.stateNode=o,o._reactInternals=t,ul(t,n,e,r),t=Pl(null,t,n,!0,a,r)):(t.tag=0,ii&&a&&ti(t),xl(null,t,o,r),t=t.child),t;case 16:n=t.elementType;e:{switch(Hl(e,t),e=t.pendingProps,n=(o=n._init)(n._payload),t.type=n,o=t.tag=function(e){if("function"===typeof e)return As(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===P)return 11;if(e===T)return 14}return 2}(n),e=rl(n,e),o){case 0:t=_l(null,t,n,e,r);break e;case 1:t=El(null,t,n,e,r);break e;case 11:t=wl(null,t,n,e,r);break e;case 14:t=Sl(null,t,n,rl(n.type,e),r);break e}throw Error(i(306,n,""))}return t;case 0:return n=t.type,o=t.pendingProps,_l(e,t,n,o=t.elementType===n?o:rl(n,o),r);case 1:return n=t.type,o=t.pendingProps,El(e,t,n,o=t.elementType===n?o:rl(n,o),r);case 3:e:{if(Cl(t),null===e)throw Error(i(387));n=t.pendingProps,o=(a=t.memoizedState).element,Ri(e,t),Hi(t,n,null,r);var l=t.memoizedState;if(n=l.element,a.isDehydrated){if(a={element:n,isDehydrated:!1,cache:l.cache,pendingSuspenseBoundaries:l.pendingSuspenseBoundaries,transitions:l.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ml(e,t,n,r,o=sl(Error(i(423)),t));break e}if(n!==o){t=Ml(e,t,n,r,o=sl(Error(i(424)),t));break e}for(oi=so(t.stateNode.containerInfo.firstChild),ni=t,ii=!0,ai=null,r=Si(t,null,n,r),t.child=r;r;)r.flags=-3&r.flags|4096,r=r.sibling}else{if(hi(),n===o){t=Wl(e,t,r);break e}xl(e,t,n,r)}t=t.child}return t;case 5:return Qi(t),null===e&&ci(t),n=t.type,o=t.pendingProps,a=null!==e?e.memoizedProps:null,l=o.children,ro(n,o)?l=null:null!==a&&ro(n,a)&&(t.flags|=32),jl(e,t),xl(e,t,l,r),t.child;case 6:return null===e&&ci(t),null;case 13:return zl(e,t,r);case 4:return Xi(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=wi(t,null,n,r):xl(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,wl(e,t,n,o=t.elementType===n?o:rl(n,o),r);case 7:return xl(e,t,t.pendingProps,r),t.child;case 8:case 12:return xl(e,t,t.pendingProps.children,r),t.child;case 10:e:{if(n=t.type._context,o=t.pendingProps,a=t.memoizedProps,l=o.value,Eo(ki,n._currentValue),n._currentValue=l,null!==a)if(ln(a.value,l)){if(a.children===o.children&&!Mo.current){t=Wl(e,t,r);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){l=a.child;for(var s=u.firstContext;null!==s;){if(s.context===n){if(1===a.tag){(s=Bi(-1,r&-r)).tag=2;var c=a.updateQueue;if(null!==c){var f=(c=c.shared).pending;null===f?s.next=s:(s.next=f.next,f.next=s),c.pending=s}}a.lanes|=r,null!==(s=a.alternate)&&(s.lanes|=r),Ci(a.return,r,t),u.lanes|=r;break}s=s.next}}else if(10===a.tag)l=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(l=a.return))throw Error(i(341));l.lanes|=r,null!==(u=l.alternate)&&(u.lanes|=r),Ci(l,r,t),l=a.sibling}else l=a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===t){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}xl(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=t.pendingProps.children,Mi(t,r),n=n(o=Ti(o)),t.flags|=1,xl(e,t,n,r),t.child;case 14:return o=rl(n=t.type,t.pendingProps),Sl(e,t,n,o=rl(n.type,o),r);case 15:return kl(e,t,t.type,t.pendingProps,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:rl(n,o),Hl(e,t),t.tag=1,No(n)?(e=!0,zo(t)):e=!1,Mi(t,r),al(t,n,o),ul(t,n,o,r),Pl(null,t,n,!0,e,r);case 19:return Ul(e,t,r);case 22:return Ol(e,t,r)}throw Error(i(156,t.tag))};var Gs="function"===typeof reportError?reportError:function(e){console.error(e)};function Ks(e){this._internalRoot=e}function Ys(e){this._internalRoot=e}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Zs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qs(){}function Js(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if("function"===typeof o){var l=o;o=function(){var e=Ws(a);l.call(e)}}Hs(t,a,e,o)}else a=function(e,t,r,n,o){if(o){if("function"===typeof n){var i=n;n=function(){var e=Ws(a);i.call(e)}}var a=Us(t,n,e,0,null,!1,0,"",Qs);return e._reactRootContainer=a,e[yo]=a.current,Un(8===e.nodeType?e.parentNode:e),cs(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"===typeof n){var l=n;n=function(){var e=Ws(u);l.call(e)}}var u=Fs(e,0,!1,null,0,!1,0,"",Qs);return e._reactRootContainer=u,e[yo]=u.current,Un(8===e.nodeType?e.parentNode:e),cs((function(){Hs(t,u,r,n)})),u}(r,t,e,o,n);return Ws(a)}Ys.prototype.render=Ks.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(i(409));Hs(e,t,null,null)},Ys.prototype.unmount=Ks.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cs((function(){Hs(null,e,null,null)})),t[yo]=null}},Ys.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ot();e={blockedOn:null,target:e,priority:t};for(var r=0;r<Nt.length&&0!==t&&t<Nt[r].priority;r++);Nt.splice(r,0,e),0===r&&zt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var r=ft(t.pendingLanes);0!==r&&(vt(t,1|r),ns(t,Ze()),0===(6&Pu)&&(Uu=Ze()+500,Ho()))}break;case 13:cs((function(){var t=Li(e,1);if(null!==t){var r=es();rs(t,e,1,r)}})),Vs(e,1)}},St=function(e){if(13===e.tag){var t=Li(e,134217728);if(null!==t)rs(t,e,134217728,es());Vs(e,134217728)}},kt=function(e){if(13===e.tag){var t=ts(e),r=Li(e,t);if(null!==r)rs(r,e,t,es());Vs(e,t)}},Ot=function(){return bt},jt=function(e,t){var r=bt;try{return bt=e,t()}finally{bt=r}},Se=function(e,t,r){switch(t){case"input":if(Q(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 o=So(n);if(!o)throw Error(i(90));G(n),Q(n,o)}}}break;case"textarea":ie(e,r);break;case"select":null!=(t=r.value)&&re(e,!!r.multiple,t,!1)}},Pe=ss,Ce=cs;var ec={usingClientEntryPoint:!1,Events:[xo,wo,So,_e,Ee,ss]},tc={findFiberByHostInstance:bo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},rc={bundleType:tc.bundleType,version:tc.version,rendererPackageName:tc.rendererPackageName,rendererConfig:tc.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:x.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=qe(e))?null:e.stateNode},findFiberByHostInstance:tc.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 nc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nc.isDisabled&&nc.supportsFiber)try{ot=nc.inject(rc),it=nc}catch(ce){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ec,t.createPortal=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(i(200));return function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:S,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}(e,t,null,r)},t.createRoot=function(e,t){if(!Xs(e))throw Error(i(299));var r=!1,n="",o=Gs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(r=!0),void 0!==t.identifierPrefix&&(n=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Fs(e,1,!1,null,0,r,0,n,o),e[yo]=t.current,Un(8===e.nodeType?e.parentNode:e),new Ks(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(i(188));throw e=Object.keys(e).join(","),Error(i(268,e))}return e=null===(e=qe(t))?null:e.stateNode},t.flushSync=function(e){return cs(e)},t.hydrate=function(e,t,r){if(!Zs(t))throw Error(i(200));return Js(null,e,t,!0,r)},t.hydrateRoot=function(e,t,r){if(!Xs(e))throw Error(i(405));var n=null!=r&&r.hydratedSources||null,o=!1,a="",l=Gs;if(null!==r&&void 0!==r&&(!0===r.unstable_strictMode&&(o=!0),void 0!==r.identifierPrefix&&(a=r.identifierPrefix),void 0!==r.onRecoverableError&&(l=r.onRecoverableError)),t=Us(t,null,e,1,null!=r?r:null,o,0,a,l),e[yo]=t.current,Un(e),n)for(e=0;e<n.length;e++)o=(o=(r=n[e])._getVersion)(r._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[r,o]:t.mutableSourceEagerHydrationData.push(r,o);return new Ys(t)},t.render=function(e,t,r){if(!Zs(t))throw Error(i(200));return Js(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Zs(e))throw Error(i(40));return!!e._reactRootContainer&&(cs((function(){Js(null,null,e,!1,(function(){e._reactRootContainer=null,e[yo]=null}))})),!0)},t.unstable_batchedUpdates=ss,t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!
2Zs(r))throw Error(i(200));if(null==e||void 0===e._reactInternals)throw Error(i(38));return Js(e,t,r,!1,n)},t.version="18.3.1-next-f1338f8080-20240426"},2761:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},2777:(e,t,r)=>{var n=r(5193),o=r(2761),i=Object.prototype,a=i.hasOwnProperty,l=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=u},2866:(e,t,r)=>{var n=r(2969);e.exports=function(e){return function(t){return n(t,e)}}},2929:(e,t,r)=>{var n=r(6552).Uint8Array;e.exports=n},2969:(e,t,r)=>{var n=r(5324),o=r(914);e.exports=function(e,t){for(var r=0,i=(t=n(t,e)).length;null!=e&&r<i;)e=e[o(t[r++])];return r&&r==i?e:void 0}},3028:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},3097:(e,t,r)=>{var n=r(2969);e.exports=function(e,t,r){var o=null==e?void 0:n(e,t);return void 0===o?r:o}},3204:(e,t,r)=>{var n=r(3343),o=r(2777),i=r(4052),a=r(4543),l=r(9194),u=r(1268),s=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),f=!r&&!c&&a(e),d=!r&&!c&&!f&&u(e),p=r||c||f||d,h=p?n(e.length,String):[],y=h.length;for(var m in e)!t&&!s.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||l(m,y))||h.push(m);return h}},3211:e=>{e.exports=function(e,t){return e===t||e!==e&&t!==t}},3218:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3279:e=>{e.exports=function(e){return e}},3331:(e,t,r)=>{var n=r(9676),o=r(929),i=r(7303);e.exports=function(e){return function(t,r,a){return a&&"number"!=typeof a&&o(t,r,a)&&(r=a=void 0),t=i(t),void 0===r?(r=t,t=0):r=i(r),a=void 0===a?t<r?1:-1:i(a),n(t,r,a,e)}}},3343:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},3366:(e,t,r)=>{var n=r(7894),o=r(9057);e.exports=function(e,t){return null!=e&&o(e,t,n)}},3411:(e,t,r)=>{var n=r(149),o=r(9096),i=r(8883),a=r(4052);e.exports=function(e,t){return(a(e)?n:i)(e,o(t,3))}},3440:(e,t,r)=>{var n=r(6552)["__core-js_shared__"];e.exports=n},3536:function(e,t,r){var n;e=r.nmd(e),function(){var o,i="Expected a function",a="__lodash_hash_undefined__",l="__lodash_placeholder__",u=16,s=32,c=64,f=128,d=256,p=1/0,h=9007199254740991,y=NaN,m=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",u],["flip",512],["partial",s],["partialRight",c],["rearg",d]],v="[object Arguments]",b="[object Array]",x="[object Boolean]",w="[object Date]",S="[object Error]",k="[object Function]",O="[object GeneratorFunction]",j="[object Map]",_="[object Number]",E="[object Object]",P="[object Promise]",C="[object RegExp]",M="[object Set]",T="[object String]",A="[object Symbol]",N="[object WeakMap]",D="[object ArrayBuffer]",L="[object DataView]",I="[object Float32Array]",z="[object Float64Array]",R="[object Int8Array]",B="[object Int16Array]",F="[object Int32Array]",$="[object Uint8Array]",U="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",q=/\b__p \+= '';/g,V=/\b(__p \+=) '' \+/g,G=/(__e\(.*?\)|\b__t\)) \+\n'';/g,K=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,X=RegExp(K.source),Z=RegExp(Y.source),Q=/<%-([\s\S]+?)%>/g,J=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ne=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ie=RegExp(oe.source),ae=/^\s+/,le=/\s/,ue=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,se=/\{\n\/\* \[wrapped with (.+)\] \*/,ce=/,? & /,fe=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,de=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ye=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,xe=/^(?:0|[1-9]\d*)$/,we=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 6,066 bytes, line 2
27f]/g,Se=/($^)/,ke=/['\n\r\u2028\u2029\\]/g,Oe="\\ud800-\\udfff",je="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",_e="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",Pe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Me="\\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",Te="['\u2019]",Ae="["+Oe+"]",Ne="["+Me+"]",De="["+je+"]",Le="\\d+",Ie="["+_e+"]",ze="["+Ee+"]",Re="[^"+Oe+Me+Le+_e+Ee+Pe+"]",Be="\\ud83c[\\udffb-\\udfff]",Fe="[^"+Oe+"]",$e="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Pe+"]",We="\\u200d",qe="(?:"+ze+"|"+Re+")",Ve="(?:"+He+"|"+Re+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+De+"|"+Be+")"+"?",Xe="["+Ce+"]?",Ze=Xe+Ye+("(?:"+We+"(?:"+[Fe,$e,Ue].join("|")+")"+Xe+Ye+")*"),Qe="(?:"+[Ie,$e,Ue].join("|")+")"+Ze,Je="(?:"+[Fe+De+"?",De,$e,Ue,Ae].join("|")+")",et=RegExp(Te,"g"),tt=RegExp(De,"g"),rt=RegExp(Be+"(?="+Be+")|"+Je+Ze,"g"),nt=RegExp([He+"?"+ze+"+"+Ge+"(?="+[Ne,He,"$"].join("|")+")",Ve+"+"+Ke+"(?="+[Ne,He+qe,"$"].join("|")+")",He+"?"+qe+"+"+Ge,He+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Qe].join("|"),"g"),ot=RegExp("["+We+Oe+je+Ce+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["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"],lt=-1,ut={};ut[I]=ut[z]=ut[R]=ut[B]=ut[F]=ut[$]=ut[U]=ut[H]=ut[W]=!0,ut[v]=ut[b]=ut[D]=ut[x]=ut[L]=ut[w]=ut[S]=ut[k]=ut[j]=ut[_]=ut[E]=ut[C]=ut[M]=ut[T]=ut[N]=!1;var st={};st[v]=st[b]=st[D]=st[L]=st[x]=st[w]=st[I]=st[z]=st[R]=st[B]=st[F]=st[j]=st[_]=st[E]=st[C]=st[M]=st[T]=st[A]=st[$]=st[U]=st[H]=st[W]=!0,st[S]=st[k]=st[N]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ft=parseFloat,dt=parseInt,pt="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,ht="object"==typeof self&&self&&self.Object===Object&&self,yt=pt||ht||Function("return this")(),mt=t&&!t.nodeType&&t,gt=mt&&e&&!e.nodeType&&e,vt=gt&&gt.exports===mt,bt=vt&&pt.process,xt=function(){try{var e=gt&&gt.require&&gt.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=xt&&xt.isArrayBuffer,St=xt&&xt.isDate,kt=xt&&xt.isMap,Ot=xt&&xt.isRegExp,jt=xt&&xt.isSet,_t=xt&&xt.isTypedArray;function Et(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 Pt(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o<i;){var a=e[o];t(n,a,r(a),e)}return n}function Ct(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}function Mt(e,t){for(var r=null==e?0:e.length;r--&&!1!==t(e[r],r,e););return e}function Tt(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 At(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function Nt(e,t){return!!(null==e?0:e.length)&&Ht(e,t,0)>-1}function Dt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}function Lt(e,t){for(var r=-1,n=null==e?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}function It(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}function zt(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++o<i;)r=t(r,e[o],o,e);return r}function Rt(e,t,r,n){var o=null==e?0:e.length;for(n&&o&&(r=e[--o]);o--;)r=t(r,e[o],o,e);return r}function Bt(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 Ft=Gt("length");function $t(e,t,r){var n;return r(e,(function(e,r,o){if(t(e,r,o))return n=r,!1})),n}function Ut(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Ht(e,t,r){return t===t?function(e,t,r){var n=r-1,o=e.length;for(;++n<o;)if(e[n]===t)return n;return-1}(e,t,r):Ut(e,qt,r)}function Wt(e,t,r,n){for(var o=r-1,i=e.length;++o<i;)if(n(e[o],t))return o;return-1}function qt(e){return e!==e}function Vt(e,t){var r=null==e?0:e.length;return r?Xt(e,t)/r:y}function Gt(e){return function(t){return null==t?o:t[e]}}function Kt(e){return function(t){return null==e?o:e[t]}}function Yt(e,t,r,n,o){return o(e,(function(e,o,i){r=n?(n=!1,e):t(r,e,o,i)})),r}function Xt(e,t){for(var r,n=-1,i=e.length;++n<i;){var a=t(e[n]);a!==o&&(r=r===o?a:r+a)}return r}function Zt(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function Qt(e){return e?e.slice(0,yr(e)+1).replace(ae,""):e}function Jt(e){return function(t){return e(t)}}function er(e,t){return Lt(t,(function(t){return e[t]}))}function tr(e,t){return e.has(t)}function rr(e,t){for(var r=-1,n=e.length;++r<n&&Ht(t,e[r],0)>-1;);return r}function nr(e,t){for(var r=e.length;r--&&Ht(t,e[r],0)>-1;);return r}var or=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"
2c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),ir=Kt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ar(e){return"\\"+ct[e]}function lr(e){return ot.test(e)}function ur(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function sr(e,t){return function(r){return e(t(r))}}function cr(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r];a!==t&&a!==l||(e[r]=l,i[o++]=r)}return i}function fr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}function dr(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=[e,e]})),r}function pr(e){return lr(e)?function(e){var t=rt.lastIndex=0;for(;rt.test(e);)++t;return t}(e):Ft(e)}function hr(e){return lr(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.split("")}(e)}function yr(e){for(var t=e.length;t--&&le.test(e.charAt(t)););return t}var mr=Kt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var gr=function e(t){var r=(t=null==t?yt:gr.defaults(yt.Object(),t,gr.pick(yt,at))).Array,n=t.Date,le=t.Error,Oe=t.Function,je=t.Math,_e=t.Object,Ee=t.RegExp,Pe=t.String,Ce=t.TypeError,Me=r.prototype,Te=Oe.prototype,Ae=_e.prototype,Ne=t["__core-js_shared__"],De=Te.toString,Le=Ae.hasOwnProperty,Ie=0,ze=function(){var e=/[^.]+$/.exec(Ne&&Ne.keys&&Ne.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Re=Ae.toString,Be=De.call(_e),Fe=yt._,$e=Ee("^"+De.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ue=vt?t.Buffer:o,He=t.Symbol,We=t.Uint8Array,qe=Ue?Ue.allocUnsafe:o,Ve=sr(_e.getPrototypeOf,_e),Ge=_e.create,Ke=Ae.propertyIsEnumerable,Ye=Me.splice,Xe=He?He.isConcatSpreadable:o,Ze=He?He.iterator:o,Qe=He?He.toStringTag:o,Je=function(){try{var e=di(_e,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==yt.clearTimeout&&t.clearTimeout,ot=n&&n.now!==yt.Date.now&&n.now,ct=t.setTimeout!==yt.setTimeout&&t.setTimeout,pt=je.ceil,ht=je.floor,mt=_e.getOwnPropertySymbols,gt=Ue?Ue.isBuffer:o,bt=t.isFinite,xt=Me.join,Ft=sr(_e.keys,_e),Kt=je.max,vr=je.min,br=n.now,xr=t.parseInt,wr=je.random,Sr=Me.reverse,kr=di(t,"DataView"),Or=di(t,"Map"),jr=di(t,"Promise"),_r=di(t,"Set"),Er=di(t,"WeakMap"),Pr=di(_e,"create"),Cr=Er&&new Er,Mr={},Tr=Ri(kr),Ar=Ri(Or),Nr=Ri(jr),Dr=Ri(_r),Lr=Ri(Er),Ir=He?He.prototype:o,zr=Ir?Ir.valueOf:o,Rr=Ir?Ir.toString:o;function Br(e){if(tl(e)&&!Wa(e)&&!(e instanceof Hr)){if(e instanceof Ur)return e;if(Le.call(e,"__wrapped__"))return Bi(e)}return new Ur(e)}var Fr=function(){function e(){}return function(t){if(!el(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=o,r}}();function $r(){}function Ur(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Wr(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 qr(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 Vr(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 Gr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Vr;++t<r;)this.add(e[t])}function Kr(e){var t=this.__data__=new qr(e);this.size=t.size}function Yr(e,t){var r=Wa(e),n=!r&&Ha(e),o=!r&&!n&&Ka(e),i=!r&&!n&&!o&&sl(e),a=r||n||o||i,l=a?Zt(e.length,Pe):[],u=l.length;for(var s in e)!t&&!Le.call(e,s)||a&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||bi(s,u))||l.push(s);return l}function Xr(e){var t=e.length;return t?e[Kn(0,t-1)]:o}function Zr(e,t){return Li(Mo(e),ln(t,0,e.length))}function Qr(e){return Li(Mo(e))}function Jr(e,t,r){(r!==o&&!Fa(e[t],r)||r===o&&!(t in e))&&on(e,t,r)}function en(e,t,r){var n=e[t];Le.call(e,t)&&Fa(n,r)&&(r!==o||t in e)||on(e,t,r)}function tn(e,t){for(var r=e.length;r--;)if(Fa(e[r][0],t))return r;return-1}function rn(e,t,r,n){return dn(e,(function(e,o,i){t(n,e,r(e),i)})),n}function nn(e,t){return e&&To(t,Tl(t),e)}
vendor: 7,013 bytes, line 2
2function on(e,t,r){"__proto__"==t&&Je?Je(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}function an(e,t){for(var n=-1,i=t.length,a=r(i),l=null==e;++n<i;)a[n]=l?o:_l(e,t[n]);return a}function ln(e,t,r){return e===e&&(r!==o&&(e=e<=r?e:r),t!==o&&(e=e>=t?e:t)),e}function un(e,t,r,n,i,a){var l,u=1&t,s=2&t,c=4&t;if(r&&(l=i?r(e,n,i,a):r(e)),l!==o)return l;if(!el(e))return e;var f=Wa(e);if(f){if(l=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!u)return Mo(e,l)}else{var d=yi(e),p=d==k||d==O;if(Ka(e))return Oo(e,u);if(d==E||d==v||p&&!i){if(l=s||p?{}:gi(e),!u)return s?function(e,t){return To(e,hi(e),t)}(e,function(e,t){return e&&To(t,Al(t),e)}(l,e)):function(e,t){return To(e,pi(e),t)}(e,nn(l,e))}else{if(!st[d])return i?e:{};l=function(e,t,r){var n=e.constructor;switch(t){case D:return jo(e);case x:case w:return new n(+e);case L:return function(e,t){var r=t?jo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case I:case z:case R:case B:case F:case $:case U:case H:case W:return _o(e,r);case j:return new n;case _:case T:return new n(e);case C:return function(e){var t=new e.constructor(e.source,ye.exec(e));return t.lastIndex=e.lastIndex,t}(e);case M:return new n;case A:return o=e,zr?_e(zr.call(o)):{}}var o}(e,d,u)}}a||(a=new Kr);var h=a.get(e);if(h)return h;a.set(e,l),al(e)?e.forEach((function(n){l.add(un(n,t,r,n,e,a))})):rl(e)&&e.forEach((function(n,o){l.set(o,un(n,t,r,o,e,a))}));var y=f?o:(c?s?ii:oi:s?Al:Tl)(e);return Ct(y||e,(function(n,o){y&&(n=e[o=n]),en(l,o,un(n,t,r,o,e,a))})),l}function sn(e,t,r){var n=r.length;if(null==e)return!n;for(e=_e(e);n--;){var i=r[n],a=t[i],l=e[i];if(l===o&&!(i in e)||!a(l))return!1}return!0}function cn(e,t,r){if("function"!=typeof e)throw new Ce(i);return Ti((function(){e.apply(o,r)}),t)}function fn(e,t,r,n){var o=-1,i=Nt,a=!0,l=e.length,u=[],s=t.length;if(!l)return u;r&&(t=Lt(t,Jt(r))),n?(i=Dt,a=!1):t.length>=200&&(i=tr,a=!1,t=new Gr(t));e:for(;++o<l;){var c=e[o],f=null==r?c:r(c);if(c=n||0!==c?c:0,a&&f===f){for(var d=s;d--;)if(t[d]===f)continue e;u.push(c)}else i(t,f,n)||u.push(c)}return u}Br.templateSettings={escape:Q,evaluate:J,interpolate:ee,variable:"",imports:{_:Br}},Br.prototype=$r.prototype,Br.prototype.constructor=Br,Ur.prototype=Fr($r.prototype),Ur.prototype.constructor=Ur,Hr.prototype=Fr($r.prototype),Hr.prototype.constructor=Hr,Wr.prototype.clear=function(){this.__data__=Pr?Pr(null):{},this.size=0},Wr.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Wr.prototype.get=function(e){var t=this.__data__;if(Pr){var r=t[e];return r===a?o:r}return Le.call(t,e)?t[e]:o},Wr.prototype.has=function(e){var t=this.__data__;return Pr?t[e]!==o:Le.call(t,e)},Wr.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Pr&&t===o?a:t,this},qr.prototype.clear=function(){this.__data__=[],this.size=0},qr.prototype.delete=function(e){var t=this.__data__,r=tn(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ye.call(t,r,1),--this.size,!0)},qr.prototype.get=function(e){var t=this.__data__,r=tn(t,e);return r<0?o:t[r][1]},qr.prototype.has=function(e){return tn(this.__data__,e)>-1},qr.prototype.set=function(e,t){var r=this.__data__,n=tn(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Vr.prototype.clear=function(){this.size=0,this.__data__={hash:new Wr,map:new(Or||qr),string:new Wr}},Vr.prototype.delete=function(e){var t=ci(this,e).delete(e);return this.size-=t?1:0,t},Vr.prototype.get=function(e){return ci(this,e).get(e)},Vr.prototype.has=function(e){return ci(this,e).has(e)},Vr.prototype.set=function(e,t){var r=ci(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Gr.prototype.add=Gr.prototype.push=function(e){return this.__data__.set(e,a),this},Gr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.clear=function(){this.__data__=new qr,this.size=0},Kr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Kr.prototype.get=function(e){return this.__data__.get(e)},Kr.prototype.has=function(e){return this.__data__.has(e)},Kr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof qr){var n=r.__data__;if(!Or||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Vr(n)}return r.set(e,t),this.size=r.size,this};var dn=Do(xn),pn=Do(wn,!0);function hn(e,t){var r=!0;return dn(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function yn(e,t,r){for(var n=-1,i=e.length;++n<i;){var a=e[n],l=t(a);if(null!=l&&(u===o?l===l&&!ul(l):r(l,u)))var u=l,s=a}return s}function mn(e,t){var r=[];return dn(e,(function(e,n,o){t(e,n,o)&&r.push(e)})),r}function gn(e,t,r,n,o){var i=-1,a=e.length;for(r||(r=vi),o||(o=[]);++i<a;){var l=e[i];t>0&&r(l)?t>1?gn(l,t-1,r,n,o):It(o,l):n||(o[o.length]=l)}return o}var vn=Lo(),bn=Lo(!0);function xn(e,t){return e&&vn(e,t,Tl)}function wn(e,t){return e&&bn(e,t,Tl)}function Sn(e,t){return At(t,(function(t){return Za(e[t])}))}function kn(e,t){for(var r=0,n=(t=xo(t,e)).length;null!=e&&r<n;)e=e[zi(t[r++])];return r&&r==n?e:o}function On(e,t,r){var n=t(e);return Wa(e)?n:It(n,r(e))}function jn(e){return null==e?e===o?"[object Undefined]":"[object Null]":Qe&&Qe in _e(e)?function(e){var t=Le.call(e,Qe),r=e[Qe];try{e[Qe]=o;var n=!0}catch(a){}var i=Re.call(e);n&&(t?e[Qe]=r:delete e[Qe]);return i}(e):function(e){return Re.call(e)}(e)}function _n(e,t){return e>t}function En(e,t){return null!=e&&Le.call(e,t)}function Pn(e,t){return null!=e&&t in _e(e)}function Cn(e,t,n){for(var i=n?Dt:Nt,a=e[0].length,l=e.length,u=l,s=r(l),c=1/0,f=[];u--;){var d=e[u];u&&t&&(d=Lt(d,Jt(t))),c=vr(d.length,c),s[u]=!n&&(t||a>=120&&d.length>=120)?new Gr(u&&d):o}d=e[0];var p=-1,h=s[0];e:for(;++p<a&&f.length<c;){var y=d[p],m=t?t(y):y;if(y=n||0!==y?y:0,!(h?tr(h,m):i(f,m,n))){for(u=l;--u;){var g=s[u];if(!(g?tr(g,m):i(e[u],m,n)))continue e}h&&h.push(m),f.push(y)}}return f}function Mn(e,t,r){var n=null==(e=Pi(e,t=xo(t,e)))?e:e[zi(Xi(t))];return null==n?o:Et(n,e,r)}function Tn(e){return tl(e)&&jn(e)==v}function An(e,t,r,n,i){return e===t||(null==e||null==t||!tl(e)&&!tl(t)?e!==e&&t!==t:function(e,t,r,n,i,a){var l=Wa(e),u=Wa(t),s=l?b:yi(e),c=u?b:yi(t),f=(s=s==v?E:s)==E,d=(c=c==v?E:c)==E,p=s==c;if(p&&Ka(e)){if(!Ka(t))return!1;l=!0,f=!1}if(p&&!f)return a||(a=new Kr),l||sl(e)?ri(e,t,r,n,i,a):function(e,t,r,n,o,i,a){switch(r){case L:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case D:return!(e.byteLength!=t.byteLength||!i(new We(e),new We(t)));case x:case w:case _:return Fa(+e,+t);case S:return e.name==t.name&&e.message==t.message;case C:case T:return e==t+"";case j:var l=ur;case M:var u=1&n;if(l||(l=fr),e.size!=t.size&&!u)return!1;var s=a.get(e);if(s)return s==t;n|=2,a.set(e,t);var c=ri(l(e),l(t),n,o,i,a);return a.delete(e),c;case A:if(zr)return zr.call(e)==zr.call(t)}return!1}(e,t,s,r,n,i,a);if(!(1&r)){var h=f&&Le.call(e,"__wrapped__"),y=d&&Le.call(t,"__wrapped__");
vendor: 18,114 bytes, line 2
2if(h||y){var m=h?e.value():e,g=y?t.value():t;return a||(a=new Kr),i(m,g,r,n,a)}}if(!p)return!1;return a||(a=new Kr),function(e,t,r,n,i,a){var l=1&r,u=oi(e),s=u.length,c=oi(t),f=c.length;if(s!=f&&!l)return!1;var d=s;for(;d--;){var p=u[d];if(!(l?p in t:Le.call(t,p)))return!1}var h=a.get(e),y=a.get(t);if(h&&y)return h==t&&y==e;var m=!0;a.set(e,t),a.set(t,e);var g=l;for(;++d<s;){var v=e[p=u[d]],b=t[p];if(n)var x=l?n(b,v,p,t,e,a):n(v,b,p,e,t,a);if(!(x===o?v===b||i(v,b,r,n,a):x)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var w=e.constructor,S=t.constructor;w==S||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof S&&S instanceof S||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,r,n,i,a)}(e,t,r,n,An,i))}function Nn(e,t,r,n){var i=r.length,a=i,l=!n;if(null==e)return!a;for(e=_e(e);i--;){var u=r[i];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var s=(u=r[i])[0],c=e[s],f=u[1];if(l&&u[2]){if(c===o&&!(s in e))return!1}else{var d=new Kr;if(n)var p=n(c,f,s,e,t,d);if(!(p===o?An(f,c,3,n,d):p))return!1}}return!0}function Dn(e){return!(!el(e)||(t=e,ze&&ze in t))&&(Za(e)?$e:ve).test(Ri(e));var t}function Ln(e){return"function"==typeof e?e:null==e?nu:"object"==typeof e?Wa(e)?$n(e[0],e[1]):Fn(e):du(e)}function In(e){if(!Oi(e))return Ft(e);var t=[];for(var r in _e(e))Le.call(e,r)&&"constructor"!=r&&t.push(r);return t}function zn(e){if(!el(e))return function(e){var t=[];if(null!=e)for(var r in _e(e))t.push(r);return t}(e);var t=Oi(e),r=[];for(var n in e)("constructor"!=n||!t&&Le.call(e,n))&&r.push(n);return r}function Rn(e,t){return e<t}function Bn(e,t){var n=-1,o=Va(e)?r(e.length):[];return dn(e,(function(e,r,i){o[++n]=t(e,r,i)})),o}function Fn(e){var t=fi(e);return 1==t.length&&t[0][2]?_i(t[0][0],t[0][1]):function(r){return r===e||Nn(r,e,t)}}function $n(e,t){return wi(e)&&ji(t)?_i(zi(e),t):function(r){var n=_l(r,e);return n===o&&n===t?El(r,e):An(t,n,3)}}function Un(e,t,r,n,i){e!==t&&vn(t,(function(a,l){if(i||(i=new Kr),el(a))!function(e,t,r,n,i,a,l){var u=Ci(e,r),s=Ci(t,r),c=l.get(s);if(c)return void Jr(e,r,c);var f=a?a(u,s,r+"",e,t,l):o,d=f===o;if(d){var p=Wa(s),h=!p&&Ka(s),y=!p&&!h&&sl(s);f=s,p||h||y?Wa(u)?f=u:Ga(u)?f=Mo(u):h?(d=!1,f=Oo(s,!0)):y?(d=!1,f=_o(s,!0)):f=[]:ol(s)||Ha(s)?(f=u,Ha(u)?f=gl(u):el(u)&&!Za(u)||(f=gi(s))):d=!1}d&&(l.set(s,f),i(f,s,n,a,l),l.delete(s));Jr(e,r,f)}(e,t,l,r,Un,n,i);else{var u=n?n(Ci(e,l),a,l+"",e,t,i):o;u===o&&(u=a),Jr(e,l,u)}}),Al)}function Hn(e,t){var r=e.length;if(r)return bi(t+=t<0?r:0,r)?e[t]:o}function Wn(e,t,r){t=t.length?Lt(t,(function(e){return Wa(e)?function(t){return kn(t,1===e.length?e[0]:e)}:e})):[nu];var n=-1;t=Lt(t,Jt(si()));var o=Bn(e,(function(e,r,o){var i=Lt(t,(function(t){return t(e)}));return{criteria:i,index:++n,value:e}}));return function(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}(o,(function(e,t){return function(e,t,r){var n=-1,o=e.criteria,i=t.criteria,a=o.length,l=r.length;for(;++n<a;){var u=Eo(o[n],i[n]);if(u)return n>=l?u:u*("desc"==r[n]?-1:1)}return e.index-t.index}(e,t,r)}))}function qn(e,t,r){for(var n=-1,o=t.length,i={};++n<o;){var a=t[n],l=kn(e,a);r(l,a)&&Jn(i,xo(a,e),l)}return i}function Vn(e,t,r,n){var o=n?Wt:Ht,i=-1,a=t.length,l=e;for(e===t&&(t=Mo(t)),r&&(l=Lt(e,Jt(r)));++i<a;)for(var u=0,s=t[i],c=r?r(s):s;(u=o(l,c,u,n))>-1;)l!==e&&Ye.call(l,u,1),Ye.call(e,u,1);return e}function Gn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;bi(o)?Ye.call(e,o,1):fo(e,o)}}return e}function Kn(e,t){return e+ht(wr()*(t-e+1))}function Yn(e,t){var r="";if(!e||t<1||t>h)return r;do{t%2&&(r+=e),(t=ht(t/2))&&(e+=e)}while(t);return r}function Xn(e,t){return Ai(Ei(e,t,nu),e+"")}function Zn(e){return Xr(Fl(e))}function Qn(e,t){var r=Fl(e);return Li(r,ln(t,0,r.length))}function Jn(e,t,r,n){if(!el(e))return e;for(var i=-1,a=(t=xo(t,e)).length,l=a-1,u=e;null!=u&&++i<a;){var s=zi(t[i]),c=r;if("__proto__"===s||"constructor"===s||"prototype"===s)return e;if(i!=l){var f=u[s];(c=n?n(f,s,u):o)===o&&(c=el(f)?f:bi(t[i+1])?[]:{})}en(u,s,c),u=u[s]}return e}var eo=Cr?function(e,t){return Cr.set(e,t),e}:nu,to=Je?function(e,t){return Je(e,"toString",{configurable:!0,enumerable:!1,value:eu(t),writable:!0})}:nu;function ro(e){return Li(Fl(e))}function no(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=r(i);++o<i;)a[o]=e[o+t];return a}function oo(e,t){var r;return dn(e,(function(e,n,o){return!(r=t(e,n,o))})),!!r}function io(e,t,r){var n=0,o=null==e?n:e.length;if("number"==typeof t&&t===t&&o<=2147483647){for(;n<o;){var i=n+o>>>1,a=e[i];null!==a&&!ul(a)&&(r?a<=t:a<t)?n=i+1:o=i}return o}return ao(e,t,nu,r)}function ao(e,t,r,n){var i=0,a=null==e?0:e.length;if(0===a)return 0;for(var l=(t=r(t))!==t,u=null===t,s=ul(t),c=t===o;i<a;){var f=ht((i+a)/2),d=r(e[f]),p=d!==o,h=null===d,y=d===d,m=ul(d);if(l)var g=n||y;else g=c?y&&(n||p):u?y&&p&&(n||!h):s?y&&p&&!h&&(n||!m):!h&&!m&&(n?d<=t:d<t);g?i=f+1:a=f}return vr(a,4294967294)}function lo(e,t){for(var r=-1,n=e.length,o=0,i=[];++r<n;){var a=e[r],l=t?t(a):a;if(!r||!Fa(l,u)){var u=l;i[o++]=0===a?0:a}}return i}function uo(e){return"number"==typeof e?e:ul(e)?y:+e}function so(e){if("string"==typeof e)return e;if(Wa(e))return Lt(e,so)+"";if(ul(e))return Rr?Rr.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function co(e,t,r){var n=-1,o=Nt,i=e.length,a=!0,l=[],u=l;if(r)a=!1,o=Dt;else if(i>=200){var s=t?null:Xo(e);if(s)return fr(s);a=!1,o=tr,u=new Gr}else u=t?[]:l;e:for(;++n<i;){var c=e[n],f=t?t(c):c;if(c=r||0!==c?c:0,a&&f===f){for(var d=u.length;d--;)if(u[d]===f)continue e;t&&u.push(f),l.push(c)}else o(u,f,r)||(u!==l&&u.push(f),l.push(c))}return l}function fo(e,t){return null==(e=Pi(e,t=xo(t,e)))||delete e[zi(Xi(t))]}function po(e,t,r,n){return Jn(e,t,r(kn(e,t)),n)}function ho(e,t,r,n){for(var o=e.length,i=n?o:-1;(n?i--:++i<o)&&t(e[i],i,e););return r?no(e,n?0:i,n?i+1:o):no(e,n?i+1:0,n?o:i)}function yo(e,t){var r=e;return r instanceof Hr&&(r=r.value()),zt(t,(function(e,t){return t.func.apply(t.thisArg,It([e],t.args))}),r)}function mo(e,t,n){var o=e.length;if(o<2)return o?co(e[0]):[];for(var i=-1,a=r(o);++i<o;)for(var l=e[i],u=-1;++u<o;)u!=i&&(a[i]=fn(a[i]||l,e[u],t,n));return co(gn(a,1),t,n)}function go(e,t,r){for(var n=-1,i=e.length,a=t.length,l={};++n<i;){var u=n<a?t[n]:o;r(l,e[n],u)}return l}function vo(e){return Ga(e)?e:[]}function bo(e){return"function"==typeof e?e:nu}function xo(e,t){return Wa(e)?e:wi(e,t)?[e]:Ii(vl(e))}var wo=Xn;function So(e,t,r){var n=e.length;return r=r===o?n:r,!t&&r>=n?e:no(e,t,r)}var ko=rt||function(e){return yt.clearTimeout(e)};function Oo(e,t){if(t)return e.slice();var r=e.length,n=qe?qe(r):new e.constructor(r);return e.copy(n),n}function jo(e){var t=new e.constructor(e.byteLength);return new We(t).set(new We(e)),t}function _o(e,t){var r=t?jo(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function Eo(e,t){if(e!==t){var r=e!==o,n=null===e,i=e===e,a=ul(e),l=t!==o,u=null===t,s=t===t,c=ul(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||n&&l&&s||!r&&s||!i)return 1;if(!n&&!a&&!c&&e<t||c&&r&&i&&!n&&!a||u&&r&&i||!l&&i||!s)return-1}return 0}function Po(e,t,n,o){for(var i=-1,a=e.length,l=n.length,u=-1,s=t.length,c=Kt(a-l,0),f=r(s+c),d=!o;++u<s;)f[u]=t[u];for(;++i<l;)(d||i<a)&&(f[n[i]]=e[i]);for(;c--;)f[u++]=e[i++];return f}function Co(e,t,n,o){for(var i=-1,a=e.length,l=-1,u=n.length,s=-1,c=t.length,f=Kt(a-u,0),d=r(f+c),p=!o;++i<f;)d[i]=e[i];for(var h=i;++s<c;)d[h+s]=t[s];for(;++l<u;)(p||i<a)&&(d[h+n[l]]=e[i++]);return d}function Mo(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function To(e,t,r,n){var i=!r;r||(r={});for(var a=-1,l=t.length;++a<l;){var u=t[a],s=n?n(r[u],e[u],u,r,e):o;s===o&&(s=e[u]),i?on(r,u,s):en(r,u,s)}return r}function Ao(e,t){return function(r,n){var o=Wa(r)?Pt:rn,i=t?t():{};return o(r,e,si(n,2),i)}}function No(e){return Xn((function(t,r){var n=-1,i=r.length,a=i>1?r[i-1]:o,l=i>2?r[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,l&&xi(r[0],r[1],l)&&(a=i<3?o:a,i=1),t=_e(t);++n<i;){var u=r[n];u&&e(t,u,n,a)}return t}))}function Do(e,t){return function(r,n){if(null==r)return r;if(!Va(r))return e(r,n);for(var o=r.length,i=t?o:-1,a=_e(r);(t?i--:++i<o)&&!1!==n(a[i],i,a););return r}}function Lo(e){return function(t,r,n){for(var o=-1,i=_e(t),a=n(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===r(i[u],u,i))break}return t}}function Io(e){return function(t){var r=lr(t=vl(t))?hr(t):o,n=r?r[0]:t.charAt(0),i=r?So(r,1).join(""):t.slice(1);return n[e]()+i}}function zo(e){return function(t){return zt(Zl(Hl(t).replace(et,"")),e,"")}}function Ro(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=Fr(e.prototype),n=e.apply(r,t);return el(n)?n:r}}function Bo(e){return function(t,r,n){var i=_e(t);if(!Va(t)){var a=si(r,3);t=Tl(t),r=function(e){return a(i[e],e,i)}}var l=e(t,r,n);return l>-1?i[a?t[l]:l]:o}}function Fo(e){return ni((function(t){var r=t.length,n=r,a=Ur.prototype.thru;for(e&&t.reverse();n--;){var l=t[n];if("function"!=typeof l)throw new Ce(i);if(a&&!u&&"wrapper"==li(l))var u=new Ur([],!0)}for(n=u?n:r;++n<r;){var s=li(l=t[n]),c="wrapper"==s?ai(l):o;u=c&&Si(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?u[li(c[0])].apply(u,c[3]):1==l.length&&Si(l)?u[s]():u.thru(l)}return function(){var e=arguments,n=e[0];if(u&&1==e.length&&Wa(n))return u.plant(n).value();for(var o=0,i=r?t[o].apply(this,e):n;++o<r;)i=t[o].call(this,i);return i}}))}function $o(e,t,n,i,a,l,u,s,c,d){var p=t&f,h=1&t,y=2&t,m=24&t,g=512&t,v=y?o:Ro(e);return function f(){for(var b=arguments.length,x=r(b),w=b;w--;)x[w]=arguments[w];if(m)var S=ui(f),k=function(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}(x,S);if(i&&(x=Po(x,i,a,m)),l&&(x=Co(x,l,u,m)),b-=k,m&&b<d){var O=cr(x,S);return Ko(e,t,$o,f.placeholder,n,x,O,s,c,d-b)}var j=h?n:this,_=y?j[e]:e;return b=x.length,s?x=function(e,t){var r=e.length,n=vr(t.length,r),i=Mo(e);for(;n--;){var a=t[n];e[n]=bi(a,r)?i[a]:o}return e}(x,s):g&&b>1&&x.reverse(),p&&c<b&&(x.length=c),this&&this!==yt&&this instanceof f&&(_=v||Ro(_)),_.apply(j,x)}}function Uo(e,t){return function(r,n){return function(e,t,r,n){return xn(e,(function(e,o,i){t(n,r(e),o,i)})),n}(r,e,t(n),{})}}function Ho(e,t){return function(r,n){var i;if(r===o&&n===o)return t;if(r!==o&&(i=r),n!==o){if(i===o)return n;"string"==typeof r||"string"==typeof n?(r=so(r),n=so(n)):(r=uo(r),n=uo(n)),i=e(r,n)}return i}}function Wo(e){return ni((function(t){return t=Lt(t,Jt(si())),Xn((function(r){var n=this;return e(t,(function(e){return Et(e,n,r)}))}))}))}function qo(e,t){var r=(t=t===o?" ":so(t)).length;if(r<2)return r?Yn(t,e):t;var n=Yn(t,pt(e/pr(t)));return lr(t)?So(hr(n),0,e).join(""):n.slice(0,e)}function Vo(e){return function(t,n,i){return i&&"number"!=typeof i&&xi(t,n,i)&&(n=i=o),t=pl(t),n===o?(n=t,t=0):n=pl(n),function(e,t,n,o){for(var i=-1,a=Kt(pt((t-e)/(n||1)),0),l=r(a);a--;)l[o?a:++i]=e,e+=n;return l}(t,n,i=i===o?t<n?1:-1:pl(i),e)}}function Go(e){return function(t,r){return"string"==typeof t&&"string"==typeof r||(t=ml(t),r=ml(r)),e(t,r)}}function Ko(e,t,r,n,i,a,l,u,f,d){var p=8&t;t|=p?s:c,4&(t&=~(p?c:s))||(t&=-4);var h=[e,t,i,p?a:o,p?l:o,p?o:a,p?o:l,u,f,d],y=r.apply(o,h);return Si(e)&&Mi(y,h),y.placeholder=n,Ni(y,e,t)}function Yo(e){var t=je[e];return function(e,r){if(e=ml(e),(r=null==r?0:vr(hl(r),292))&&bt(e)){var n=(vl(e)+"e").split("e");return+((n=(vl(t(n[0]+"e"+(+n[1]+r)))+"e").split("e"))[0]+"e"+(+n[1]-r))}return t(e)}}var Xo=_r&&1/fr(new _r([,-0]))[1]==p?function(e){return new _r(e)}:uu;function Zo(e){return function(t){var r=yi(t);return r==j?ur(t):r==M?dr(t):function(e,t){return Lt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,n,a,p,h,y,m){var g=2&t;if(!g&&"function"!=typeof e)throw new Ce(i);var v=a?a.length:0;if(v||(t&=-97,a=p=o),y=y===o?y:Kt(hl(y),0),m=m===o?m:hl(m),v-=p?p.length:0,t&c){var b=a,x=p;a=p=o}var w=g?o:ai(e),S=[e,t,n,a,p,b,x,h,y,m];if(w&&function(e,t){var r=e[1],n=t[1],o=r|n,i=o<131,a=n==f&&8==r||n==f&&r==d&&e[7].length<=t[8]||384==n&&t[7].length<=t[8]&&8==r;if(!i&&!a)return e;1&n&&(e[2]=t[2],o|=1&r?0:4);var u=t[3];if(u){var s=e[3];e[3]=s?Po(s,u,t[4]):u,e[4]=s?cr(e[3],l):t[4]}(u=t[5])&&(s=e[5],e[5]=s?Co(s,u,t[6]):u,e[6]=s?cr(e[5],l):t[6]);(u=t[7])&&(e[7]=u);n&f&&(e[8]=null==e[8]?t[8]:vr(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(S,w),e=S[0],t=S[1],n=S[2],a=S[3],p=S[4],!(m=S[9]=S[9]===o?g?0:e.length:Kt(S[9]-v,0))&&24&t&&(t&=-25),t&&1!=t)k=8==t||t==u?function(e,t,n){var i=Ro(e);return function a(){for(var l=arguments.length,u=r(l),s=l,c=ui(a);s--;)u[s]=arguments[s];var f=l<3&&u[0]!==c&&u[l-1]!==c?[]:cr(u,c);return(l-=f.length)<n?Ko(e,t,$o,a.placeholder,o,u,f,o,o,n-l):Et(this&&this!==yt&&this instanceof a?i:e,this,u)}}(e,t,m):t!=s&&33!=t||p.length?$o.apply(o,S):function(e,t,n,o){var i=1&t,a=Ro(e);return function t(){for(var l=-1,u=arguments.length,s=-1,c=o.length,f=r(c+u),d=this&&this!==yt&&this instanceof t?a:e;++s<c;)f[s]=o[s];for(;u--;)f[s++]=arguments[++l];return Et(d,i?n:this,f)}}(e,t,n,a);else var k=function(e,t,r){var n=1&t,o=Ro(e);return function t(){return(this&&this!==yt&&this instanceof t?o:e).apply(n?r:this,arguments)}}(e,t,n);return Ni((w?eo:Mi)(k,S),e,t)}function Jo(e,t,r,n){return e===o||Fa(e,Ae[r])&&!Le.call(n,r)?t:e}function ei(e,t,r,n,i,a){return el(e)&&el(t)&&(a.set(t,e),Un(e,t,o,ei,a),a.delete(t)),e}function ti(e){return ol(e)?o:e}function ri(e,t,r,n,i,a){var l=1&r,u=e.length,s=t.length;if(u!=s&&!(l&&s>u))return!1;var c=a.get(e),f=a.get(t);if(c&&f)return c==t&&f==e;var d=-1,p=!0,h=2&r?new Gr:o;for(a.set(e,t),a.set(t,e);++d<u;){var y=e[d],m=t[d];if(n)var g=l?n(m,y,d,t,e,a):n(y,m,d,e,t,a);if(g!==o){if(g)continue;p=!1;break}if(h){if(!Bt(t,(function(e,t){if(!tr(h,t)&&(y===e||i(y,e,r,n,a)))return h.push(t)}))){p=!1;break}}else if(y!==m&&!i(y,m,r,n,a)){p=!1;break}}return a.delete(e),a.delete(t),p}function ni(e){return Ai(Ei(e,o,qi),e+"")}function oi(e){return On(e,Tl,pi)}function ii(e){return On(e,Al,hi)}var ai=Cr?function(e){return Cr.get(e)}:uu;function li(e){for(var t=e.name+"",r=Mr[t],n=Le.call(Mr,t)?r.length:0;n--;){var o=r[n],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Le.call(Br,"placeholder")?Br:e).placeholder}function si(){var e=Br.iteratee||ou;return e=e===ou?Ln:e,arguments.length?e(arguments[0],arguments[1]):e}function ci(e,t){var r=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?r["string"==typeof t?"string":"hash"]:r.map}function fi(e){for(var t=Tl(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,ji(o)]}return t}function di(e,t){var r=function(e,t){return null==e?o:e[t]}(e,t);return Dn(r)?r:o}var pi=mt?function(e){return null==e?[]:(e=_e(e),At(mt(e),(function(t){return Ke.call(e,t)})))}:yu,hi=mt?function(e){for(var t=[];e;)It(t,pi(e)),e=Ve(e);return t}:yu,yi=jn;function mi(e,t,r){for(var n=-1,o=(t=xo(t,e)).length,i=!1;++n<o;){var a=zi(t[n]);if(!(i=null!=e&&r(e,a)))break;e=e[a]}return i||++n!=o?i:!!(o=null==e?0:e.length)&&Ja(o)&&bi(a,o)&&(Wa(e)||Ha(e))}function gi(e){return"function"!=typeof e.constructor||Oi(e)?{}:Fr(Ve(e))}function vi(e){return Wa(e)||Ha(e)||!!(Xe&&e&&e[Xe])}function bi(e,t){var r=typeof e;return!!(t=null==t?h:t)&&("number"==r||"symbol"!=r&&xe.test(e))&&e>-1&&e%1==0&&e<t}function xi(e,t,r){if(!el(r))return!1;var n=typeof t;return!!("number"==n?Va(r)&&bi(t,r.length):"string"==n&&t in r)&&Fa(r[t],e)}function wi(e,t){if(Wa(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ul(e))||(re.test(e)||!te.test(e)||null!=t&&e in _e(t))}function Si(e){var t=li(e),r=Br[t];if("function"!=typeof r||!(t in Hr.prototype))return!1;if(e===r)return!0;var n=ai(r);return!!n&&e===n[0]}(kr&&yi(new kr(new ArrayBuffer(1)))!=L||Or&&yi(new Or)!=j||jr&&yi(jr.resolve())!=P||_r&&yi(new _r)!=M||Er&&yi(new Er)!=N)&&(yi=function(e){var t=jn(e),r=t==E?e.constructor:o,n=r?Ri(r):"";if(n)switch(n){case Tr:return L;case Ar:return j;case Nr:return P;case Dr:return M;case Lr:return N}return t});var ki=Ne?Za:mu;function Oi(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function ji(e){return e===e&&!el(e)}function _i(e,t){return function(r){return null!=r&&(r[e]===t&&(t!==o||e in _e(r)))}}function Ei(e,t,n){return t=Kt(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,a=Kt(o.length-t,0),l=r(a);++i<a;)l[i]=o[t+i];i=-1;for(var u=r(t+1);++i<t;)u[i]=o[i];return u[t]=n(l),Et(e,this,u)}}function Pi(e,t){return t.length<2?e:kn(e,no(t,0,-1))}function Ci(e,t){if(("constructor"!==t||"function"!==typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Di(eo),Ti=ct||function(e,t){return yt.setTimeout(e,t)},Ai=Di(to);function Ni(e,t,r){var n=t+"";return Ai(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(ue,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return Ct(g,(function(r){var n="_."+r[0];t&r[1]&&!Nt(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(se);return t?t[1].split(ce):[]}(n),r)))}function Di(e){var t=0,r=0;return function(){var n=br(),i=16-(n-r);if(r=n,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Li(e,t){var r=-1,n=e.length,i=n-1;for(t=t===o?n:t;++r<t;){var a=Kn(r,i),l=e[a];e[a]=e[r],e[r]=l}return e.length=t,e}var Ii=function(e){var t=Da(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ne,(function(e,r,n,o){t.push(n?o.replace(pe,"$1"):r||e)})),t}));function zi(e){if("string"==typeof e||ul(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ri(e){if(null!=e){try{return De.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Bi(e){if(e instanceof Hr)return e.clone();var t=new Ur(e.__wrapped__,e.__chain__);return t.__actions__=Mo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}
vendor: 2,225 bytes, line 2
2var Fi=Xn((function(e,t){return Ga(e)?fn(e,gn(t,1,Ga,!0)):[]})),$i=Xn((function(e,t){var r=Xi(t);return Ga(r)&&(r=o),Ga(e)?fn(e,gn(t,1,Ga,!0),si(r,2)):[]})),Ui=Xn((function(e,t){var r=Xi(t);return Ga(r)&&(r=o),Ga(e)?fn(e,gn(t,1,Ga,!0),o,r):[]}));function Hi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hl(r);return o<0&&(o=Kt(n+o,0)),Ut(e,si(t,3),o)}function Wi(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n-1;return r!==o&&(i=hl(r),i=r<0?Kt(n+i,0):vr(i,n-1)),Ut(e,si(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?gn(e,1):[]}function Vi(e){return e&&e.length?e[0]:o}var Gi=Xn((function(e){var t=Lt(e,vo);return t.length&&t[0]===e[0]?Cn(t):[]})),Ki=Xn((function(e){var t=Xi(e),r=Lt(e,vo);return t===Xi(r)?t=o:r.pop(),r.length&&r[0]===e[0]?Cn(r,si(t,2)):[]})),Yi=Xn((function(e){var t=Xi(e),r=Lt(e,vo);return(t="function"==typeof t?t:o)&&r.pop(),r.length&&r[0]===e[0]?Cn(r,o,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Zi=Xn(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Vn(e,t):e}var Ji=ni((function(e,t){var r=null==e?0:e.length,n=an(e,t);return Gn(e,Lt(t,(function(e){return bi(e,r)?+e:e})).sort(Eo)),n}));function ea(e){return null==e?e:Sr.call(e)}var ta=Xn((function(e){return co(gn(e,1,Ga,!0))})),ra=Xn((function(e){var t=Xi(e);return Ga(t)&&(t=o),co(gn(e,1,Ga,!0),si(t,2))})),na=Xn((function(e){var t=Xi(e);return t="function"==typeof t?t:o,co(gn(e,1,Ga,!0),o,t)}));function oa(e){if(!e||!e.length)return[];var t=0;return e=At(e,(function(e){if(Ga(e))return t=Kt(e.length,t),!0})),Zt(t,(function(t){return Lt(e,Gt(t))}))}function ia(e,t){if(!e||!e.length)return[];var r=oa(e);return null==t?r:Lt(r,(function(e){return Et(t,o,e)}))}var aa=Xn((function(e,t){return Ga(e)?fn(e,t):[]})),la=Xn((function(e){return mo(At(e,Ga))})),ua=Xn((function(e){var t=Xi(e);return Ga(t)&&(t=o),mo(At(e,Ga),si(t,2))})),sa=Xn((function(e){var t=Xi(e);return t="function"==typeof t?t:o,mo(At(e,Ga),o,t)})),ca=Xn(oa);var fa=Xn((function(e){var t=e.length,r=t>1?e[t-1]:o;return r="function"==typeof r?(e.pop(),r):o,ia(e,r)}));function da(e){var t=Br(e);return t.__chain__=!0,t}function pa(e,t){return t(e)}var ha=ni((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,
vendor: 9,020 bytes, line 2
2i=function(t){return an(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Hr&&bi(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:pa,args:[i],thisArg:o}),new Ur(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ya=Ao((function(e,t,r){Le.call(e,r)?++e[r]:on(e,r,1)}));var ma=Bo(Hi),ga=Bo(Wi);function va(e,t){return(Wa(e)?Ct:dn)(e,si(t,3))}function ba(e,t){return(Wa(e)?Mt:pn)(e,si(t,3))}var xa=Ao((function(e,t,r){Le.call(e,r)?e[r].push(t):on(e,r,[t])}));var wa=Xn((function(e,t,n){var o=-1,i="function"==typeof t,a=Va(e)?r(e.length):[];return dn(e,(function(e){a[++o]=i?Et(t,e,n):Mn(e,t,n)})),a})),Sa=Ao((function(e,t,r){on(e,r,t)}));function ka(e,t){return(Wa(e)?Lt:Bn)(e,si(t,3))}var Oa=Ao((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ja=Xn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&xi(e,t[0],t[1])?t=[]:r>2&&xi(t[0],t[1],t[2])&&(t=[t[0]]),Wn(e,gn(t,1),[])})),_a=ot||function(){return yt.Date.now()};function Ea(e,t,r){return t=r?o:t,t=e&&null==t?e.length:t,Qo(e,f,o,o,o,o,t)}function Pa(e,t){var r;if("function"!=typeof t)throw new Ce(i);return e=hl(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=o),r}}var Ca=Xn((function(e,t,r){var n=1;if(r.length){var o=cr(r,ui(Ca));n|=s}return Qo(e,n,t,r,o)})),Ma=Xn((function(e,t,r){var n=3;if(r.length){var o=cr(r,ui(Ma));n|=s}return Qo(t,n,e,r,o)}));function Ta(e,t,r){var n,a,l,u,s,c,f=0,d=!1,p=!1,h=!0;if("function"!=typeof e)throw new Ce(i);function y(t){var r=n,i=a;return n=a=o,f=t,u=e.apply(i,r)}function m(e){var r=e-c;return c===o||r>=t||r<0||p&&e-f>=l}function g(){var e=_a();if(m(e))return v(e);s=Ti(g,function(e){var r=t-(e-c);return p?vr(r,l-(e-f)):r}(e))}function v(e){return s=o,h&&n?y(e):(n=a=o,u)}function b(){var e=_a(),r=m(e);if(n=arguments,a=this,c=e,r){if(s===o)return function(e){return f=e,s=Ti(g,t),d?y(e):u}(c);if(p)return ko(s),s=Ti(g,t),y(c)}return s===o&&(s=Ti(g,t)),u}return t=ml(t)||0,el(r)&&(d=!!r.leading,l=(p="maxWait"in r)?Kt(ml(r.maxWait)||0,t):l,h="trailing"in r?!!r.trailing:h),b.cancel=function(){s!==o&&ko(s),f=0,n=c=a=s=o},b.flush=function(){return s===o?u:v(_a())},b}var Aa=Xn((function(e,t){return cn(e,1,t)})),Na=Xn((function(e,t,r){return cn(e,ml(t)||0,r)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Da.Cache||Vr),r}function La(e){if("function"!=typeof e)throw new Ce(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)}}Da.Cache=Vr;var Ia=wo((function(e,t){var r=(t=1==t.length&&Wa(t[0])?Lt(t[0],Jt(si())):Lt(gn(t,1),Jt(si()))).length;return Xn((function(n){for(var o=-1,i=vr(n.length,r);++o<i;)n[o]=t[o].call(this,n[o]);return Et(e,this,n)}))})),za=Xn((function(e,t){var r=cr(t,ui(za));return Qo(e,s,o,t,r)})),Ra=Xn((function(e,t){var r=cr(t,ui(Ra));return Qo(e,c,o,t,r)})),Ba=ni((function(e,t){return Qo(e,d,o,o,o,t)}));function Fa(e,t){return e===t||e!==e&&t!==t}var $a=Go(_n),Ua=Go((function(e,t){return e>=t})),Ha=Tn(function(){return arguments}())?Tn:function(e){return tl(e)&&Le.call(e,"callee")&&!Ke.call(e,"callee")},Wa=r.isArray,qa=wt?Jt(wt):function(e){return tl(e)&&jn(e)==D};function Va(e){return null!=e&&Ja(e.length)&&!Za(e)}function Ga(e){return tl(e)&&Va(e)}var Ka=gt||mu,Ya=St?Jt(St):function(e){return tl(e)&&jn(e)==w};function Xa(e){if(!tl(e))return!1;var t=jn(e);return t==S||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ol(e)}function Za(e){if(!el(e))return!1;var t=jn(e);return t==k||t==O||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qa(e){return"number"==typeof e&&e==hl(e)}function Ja(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=h}function el(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function tl(e){return null!=e&&"object"==typeof e}var rl=kt?Jt(kt):function(e){return tl(e)&&yi(e)==j};function nl(e){return"number"==typeof e||tl(e)&&jn(e)==_}function ol(e){if(!tl(e)||jn(e)!=E)return!1;var t=Ve(e);if(null===t)return!0;var r=Le.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&De.call(r)==Be}var il=Ot?Jt(Ot):function(e){return tl(e)&&jn(e)==C};var al=jt?Jt(jt):function(e){return tl(e)&&yi(e)==M};function ll(e){return"string"==typeof e||!Wa(e)&&tl(e)&&jn(e)==T}function ul(e){return"symbol"==typeof e||tl(e)&&jn(e)==A}var sl=_t?Jt(_t):function(e){return tl(e)&&Ja(e.length)&&!!ut[jn(e)]};var cl=Go(Rn),fl=Go((function(e,t){return e<=t}));function dl(e){if(!e)return[];if(Va(e))return ll(e)?hr(e):Mo(e);if(Ze&&e[Ze])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Ze]());var t=yi(e);return(t==j?ur:t==M?fr:Fl)(e)}function pl(e){return e?(e=ml(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function hl(e){var t=pl(e),r=t%1;return t===t?r?t-r:t:0}function yl(e){return e?ln(hl(e),0,m):0}function ml(e){if("number"==typeof e)return e;if(ul(e))return y;if(el(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=el(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var r=ge.test(e);return r||be.test(e)?dt(e.slice(2),r?2:8):me.test(e)?y:+e}function gl(e){return To(e,Al(e))}function vl(e){return null==e?"":so(e)}var bl=No((function(e,t){if(Oi(t)||Va(t))To(t,Tl(t),e);else for(var r in t)Le.call(t,r)&&en(e,r,t[r])})),xl=No((function(e,t){To(t,Al(t),e)})),wl=No((function(e,t,r,n){To(t,Al(t),e,n)})),Sl=No((function(e,t,r,n){To(t,Tl(t),e,n)})),kl=ni(an);var Ol=Xn((function(e,t){e=_e(e);var r=-1,n=t.length,i=n>2?t[2]:o;for(i&&xi(t[0],t[1],i)&&(n=1);++r<n;)for(var a=t[r],l=Al(a),u=-1,s=l.length;++u<s;){var c=l[u],f=e[c];(f===o||Fa(f,Ae[c])&&!Le.call(e,c))&&(e[c]=a[c])}return e})),jl=Xn((function(e){return e.push(o,ei),Et(Dl,o,e)}));function _l(e,t,r){var n=null==e?o:kn(e,t);return n===o?r:n}function El(e,t){return null!=e&&mi(e,t,Pn)}var Pl=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),e[t]=r}),eu(nu)),Cl=Uo((function(e,t,r){null!=t&&"function"!=typeof t.toString&&(t=Re.call(t)),Le.call(e,t)?e[t].push(r):e[t]=[r]}),si),Ml=Xn(Mn);function Tl(e){return Va(e)?Yr(e):In(e)}function Al(e){return Va(e)?Yr(e,!0):zn(e)}var Nl=No((function(e,t,r){Un(e,t,r)})),Dl=No((function(e,t,r,n){Un(e,t,r,n)})),Ll=ni((function(e,t){var r={};if(null==e)return r;var n=!1;t=Lt(t,(function(t){return t=xo(t,e),n||(n=t.length>1),t})),To(e,ii(e),r),n&&(r=un(r,7,ti));for(var o=t.length;o--;)fo(r,t[o]);return r}));var Il=ni((function(e,t){return null==e?{}:function(e,t){return qn(e,t,(function(t,r){return El(e,r)}))}(e,t)}));function zl(e,t){if(null==e)return{};var r=Lt(ii(e),(function(e){return[e]}));return t=si(t),qn(e,r,(function(e,r){return t(e,r[0])}))}var Rl=Zo(Tl),Bl=Zo(Al);function Fl(e){return null==e?[]:er(e,Tl(e))}var $l=zo((function(e,t,r){return t=t.toLowerCase(),e+(r?Ul(t):t)}));function Ul(e){return Xl(vl(e).toLowerCase())}function Hl(e){return(e=vl(e))&&e.replace(we,or).replace(tt,"")}var Wl=zo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),ql=zo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Vl=Io("toLowerCase");var Gl=zo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Kl=zo((function(e,t,r){return e+(r?" ":"")+Xl(t)}));var Yl=zo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Xl=Io("toUpperCase");function Zl(e,t,r){return e=vl(e),(t=r?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(fe)||[]}(e):e.match(t)||[]}var Ql=Xn((function(e,t){try{return Et(e,o,t)}catch(r){return Xa(r)?r:new le(r)}})),Jl=ni((function(e,t){return Ct(t,(function(t){t=zi(t),on(e,t,Ca(e[t],e))})),e}));function eu(e){return function(){return e}}var tu=Fo(),ru=Fo(!0);function nu(e){return e}function ou(e){return Ln("function"==typeof e?e:un(e,1))}var iu=Xn((function(e,t){return function(r){return Mn(r,e,t)}})),au=Xn((function(e,t){return function(r){return Mn(e,r,t)}}));function lu(e,t,r){var n=Tl(t),o=Sn(t,n);null!=r||el(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=Sn(t,Tl(t)));var i=!(el(r)&&"chain"in r)||!!r.chain,a=Za(e);return Ct(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__);return(r.__actions__=Mo(this.__actions__)).push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,It([this.value()],arguments))})})),e}function uu(){}var su=Wo(Lt),cu=Wo(Tt),fu=Wo(Bt);function du(e){return wi(e)?Gt(zi(e)):function(e){return function(t){return kn(t,e)}}(e)}var pu=Vo(),hu=Vo(!0);function yu(){return[]}function mu(){return!1}var gu=Ho((function(e,t){return e+t}),0),vu=Yo("ceil"),bu=Ho((function(e,t){return e/t}),1),xu=Yo("floor");var wu=Ho((function(e,t){return e*t}),1),Su=Yo("round"),ku=Ho((function(e,t){return e-t}
vendor: 2,412 bytes, line 2
2),0);return Br.after=function(e,t){if("function"!=typeof t)throw new Ce(i);return e=hl(e),function(){if(--e<1)return t.apply(this,arguments)}},Br.ary=Ea,Br.assign=bl,Br.assignIn=xl,Br.assignInWith=wl,Br.assignWith=Sl,Br.at=kl,Br.before=Pa,Br.bind=Ca,Br.bindAll=Jl,Br.bindKey=Ma,Br.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Wa(e)?e:[e]},Br.chain=da,Br.chunk=function(e,t,n){t=(n?xi(e,t,n):t===o)?1:Kt(hl(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,l=0,u=r(pt(i/t));a<i;)u[l++]=no(e,a,a+=t);return u},Br.compact=function(e){for(var t=-1,r=null==e?0:e.length,n=0,o=[];++t<r;){var i=e[t];i&&(o[n++]=i)}return o},Br.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return It(Wa(n)?Mo(n):[n],gn(t,1))},Br.cond=function(e){var t=null==e?0:e.length,r=si();return e=t?Lt(e,(function(e){if("function"!=typeof e[1])throw new Ce(i);return[r(e[0]),e[1]]})):[],Xn((function(r){for(var n=-1;++n<t;){var o=e[n];if(Et(o[0],this,r))return Et(o[1],this,r)}}))},Br.conforms=function(e){return function(e){var t=Tl(e);return function(r){return sn(r,e,t)}}(un(e,1))},Br.constant=eu,Br.countBy=ya,Br.create=function(e,t){var r=Fr(e);return null==t?r:nn(r,t)},Br.curry=function e(t,r,n){var i=Qo(t,8,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Br.curryRight=function e(t,r,n){var i=Qo(t,u,o,o,o,o,o,r=n?o:r);return i.placeholder=e.placeholder,i},Br.debounce=Ta,Br.defaults=Ol,Br.defaultsDeep=jl,Br.defer=Aa,Br.delay=Na,Br.difference=Fi,Br.differenceBy=$i,Br.differenceWith=Ui,Br.drop=function(e,t,r){var n=null==e?0:e.length;return n?no(e,(t=r||t===o?1:hl(t))<0?0:t,n):[]},Br.dropRight=function(e,t,r){var n=null==e?0:e.length;return n?no(e,0,(t=n-(t=r||t===o?1:hl(t)))<0?0:t):[]},Br.dropRightWhile=function(e,t){return e&&e.length?ho(e,si(t,3),!0,!0):[]},Br.dropWhile=function(e,t){return e&&e.length?ho(e,si(t,3),!0):[]},Br.fill=function(e,t,r,n){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&xi(e,t,r)&&(r=0,n=i),function(e,t,r,n){var i=e.length;for((r=hl(r))<0&&(r=-r>i?0:i+r),(n=n===o||n>i?i:hl(n))<0&&(n+=i),n=r>n?0:yl(n);r<n;)e[r++]=t;return e}(e,t,r,n)):[]},Br.filter=function(e,t){return(Wa(e)?At:mn)(e,si(t,3))},Br.flatMap=function(e,t){return gn(ka(e,t),1)},Br.flatMapDeep=function(e,t){return gn(ka(e,t),p)},Br.flatMapDepth=function(e,t,r){return r=r===o?1:hl(r),gn(ka(e,t),r)}
vendor: 4,559 bytes, line 2
2,Br.flatten=qi,Br.flattenDeep=function(e){return(null==e?0:e.length)?gn(e,p):[]},Br.flattenDepth=function(e,t){return(null==e?0:e.length)?gn(e,t=t===o?1:hl(t)):[]},Br.flip=function(e){return Qo(e,512)},Br.flow=tu,Br.flowRight=ru,Br.fromPairs=function(e){for(var t=-1,r=null==e?0:e.length,n={};++t<r;){var o=e[t];n[o[0]]=o[1]}return n},Br.functions=function(e){return null==e?[]:Sn(e,Tl(e))},Br.functionsIn=function(e){return null==e?[]:Sn(e,Al(e))},Br.groupBy=xa,Br.initial=function(e){return(null==e?0:e.length)?no(e,0,-1):[]},Br.intersection=Gi,Br.intersectionBy=Ki,Br.intersectionWith=Yi,Br.invert=Pl,Br.invertBy=Cl,Br.invokeMap=wa,Br.iteratee=ou,Br.keyBy=Sa,Br.keys=Tl,Br.keysIn=Al,Br.map=ka,Br.mapKeys=function(e,t){var r={};return t=si(t,3),xn(e,(function(e,n,o){on(r,t(e,n,o),e)})),r},Br.mapValues=function(e,t){var r={};return t=si(t,3),xn(e,(function(e,n,o){on(r,n,t(e,n,o))})),r},Br.matches=function(e){return Fn(un(e,1))},Br.matchesProperty=function(e,t){return $n(e,un(t,1))},Br.memoize=Da,Br.merge=Nl,Br.mergeWith=Dl,Br.method=iu,Br.methodOf=au,Br.mixin=lu,Br.negate=La,Br.nthArg=function(e){return e=hl(e),Xn((function(t){return Hn(t,e)}))},Br.omit=Ll,Br.omitBy=function(e,t){return zl(e,La(si(t)))},Br.once=function(e){return Pa(2,e)},Br.orderBy=function(e,t,r,n){return null==e?[]:(Wa(t)||(t=null==t?[]:[t]),Wa(r=n?o:r)||(r=null==r?[]:[r]),Wn(e,t,r))},Br.over=su,Br.overArgs=Ia,Br.overEvery=cu,Br.overSome=fu,Br.partial=za,Br.partialRight=Ra,Br.partition=Oa,Br.pick=Il,Br.pickBy=zl,Br.property=du,Br.propertyOf=function(e){return function(t){return null==e?o:kn(e,t)}},Br.pull=Zi,Br.pullAll=Qi,Br.pullAllBy=function(e,t,r){return e&&e.length&&t&&t.length?Vn(e,t,si(r,2)):e},Br.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Vn(e,t,o,r):e},Br.pullAt=Ji,Br.range=pu,Br.rangeRight=hu,Br.rearg=Ba,Br.reject=function(e,t){return(Wa(e)?At:mn)(e,La(si(t,3)))},Br.remove=function(e,t){var r=[];if(!e||!e.length)return r;var n=-1,o=[],i=e.length;for(t=si(t,3);++n<i;){var a=e[n];t(a,n,e)&&(r.push(a),o.push(n))}return Gn(e,o),r},Br.rest=function(e,t){if("function"!=typeof e)throw new Ce(i);return Xn(e,t=t===o?t:hl(t))},Br.reverse=ea,Br.sampleSize=function(e,t,r){return t=(r?xi(e,t,r):t===o)?1:hl(t),(Wa(e)?Zr:Qn)(e,t)},Br.set=function(e,t,r){return null==e?e:Jn(e,t,r)},Br.setWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:Jn(e,t,r,n)},Br.shuffle=function(e){return(Wa(e)?Qr:ro)(e)},Br.slice=function(e,t,r){var n=null==e?0:e.length;return n?(r&&"number"!=typeof r&&xi(e,t,r)?(t=0,r=n):(t=null==t?0:hl(t),r=r===o?n:hl(r)),no(e,t,r)):[]},Br.sortBy=ja,Br.sortedUniq=function(e){return e&&e.length?lo(e):[]},Br.sortedUniqBy=function(e,t){return e&&e.length?lo(e,si(t,2)):[]},Br.split=function(e,t,r){return r&&"number"!=typeof r&&xi(e,t,r)&&(t=r=o),(r=r===o?m:r>>>0)?(e=vl(e))&&("string"==typeof t||null!=t&&!il(t))&&!(t=so(t))&&lr(e)?So(hr(e),0,r):e.split(t,r):[]},Br.spread=function(e,t){if("function"!=typeof e)throw new Ce(i);return t=null==t?0:Kt(hl(t),0),Xn((function(r){var n=r[t],o=So(r,0,t);return n&&It(o,n),Et(e,this,o)}))},Br.tail=function(e){var t=null==e?0:e.length;return t?no(e,1,t):[]},Br.take=function(e,t,r){return e&&e.length?no(e,0,(t=r||t===o?1:hl(t))<0?0:t):[]},Br.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?no(e,(t=n-(t=r||t===o?1:hl(t)))<0?0:t,n):[]},Br.takeRightWhile=function(e,t){return e&&e.length?ho(e,si(t,3),!1,!0):[]},Br.takeWhile=function(e,t){return e&&e.length?ho(e,si(t,3)):[]},Br.tap=function(e,t){return t(e),e},Br.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new Ce(i);return el(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Ta(e,t,{leading:n,maxWait:t,trailing:o})},Br.thru=pa,Br.toArray=dl,Br.toPairs=Rl,Br.toPairsIn=Bl,Br.toPath=function(e){return Wa(e)?Lt(e,zi):ul(e)?[e]:Mo(Ii(vl(e)))},Br.toPlainObject=gl,Br.transform=function(e,t,r){var n=Wa(e),o=n||Ka(e)||sl(e);if(t=si(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:el(e)&&Za(i)?Fr(Ve(e)):{}}return(o?Ct:xn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Br.unary=function(e){return Ea(e,1)},Br.union=ta,Br.unionBy=ra,Br.unionWith=na,Br.uniq=function(e){return e&&e.length?co(e):[]},Br.uniqBy=function(e,t){return e&&e.length?co(e,si(t,2)):[]},Br.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?co(e,o,t):[]},Br.unset=function(e,t){return null==e||fo(e,t)},Br.unzip=oa,Br.unzipWith=ia,Br.update=function(e,t,r){return null==e?e:po(e,t,bo(r))},Br.updateWith=function(e,t,r,n){return n="function"==typeof n?n:o,null==e?e:po(e,t,bo(r),n)}
vendor: 5,984 bytes, line 2
2,Br.values=Fl,Br.valuesIn=function(e){return null==e?[]:er(e,Al(e))},Br.without=aa,Br.words=Zl,Br.wrap=function(e,t){return za(bo(t),e)},Br.xor=la,Br.xorBy=ua,Br.xorWith=sa,Br.zip=ca,Br.zipObject=function(e,t){return go(e||[],t||[],en)},Br.zipObjectDeep=function(e,t){return go(e||[],t||[],Jn)},Br.zipWith=fa,Br.entries=Rl,Br.entriesIn=Bl,Br.extend=xl,Br.extendWith=wl,lu(Br,Br),Br.add=gu,Br.attempt=Ql,Br.camelCase=$l,Br.capitalize=Ul,Br.ceil=vu,Br.clamp=function(e,t,r){return r===o&&(r=t,t=o),r!==o&&(r=(r=ml(r))===r?r:0),t!==o&&(t=(t=ml(t))===t?t:0),ln(ml(e),t,r)},Br.clone=function(e){return un(e,4)},Br.cloneDeep=function(e){return un(e,5)},Br.cloneDeepWith=function(e,t){return un(e,5,t="function"==typeof t?t:o)},Br.cloneWith=function(e,t){return un(e,4,t="function"==typeof t?t:o)},Br.conformsTo=function(e,t){return null==t||sn(e,t,Tl(t))},Br.deburr=Hl,Br.defaultTo=function(e,t){return null==e||e!==e?t:e},Br.divide=bu,Br.endsWith=function(e,t,r){e=vl(e),t=so(t);var n=e.length,i=r=r===o?n:ln(hl(r),0,n);return(r-=t.length)>=0&&e.slice(r,i)==t},Br.eq=Fa,Br.escape=function(e){return(e=vl(e))&&Z.test(e)?e.replace(Y,ir):e},Br.escapeRegExp=function(e){return(e=vl(e))&&ie.test(e)?e.replace(oe,"\\$&"):e},Br.every=function(e,t,r){var n=Wa(e)?Tt:hn;return r&&xi(e,t,r)&&(t=o),n(e,si(t,3))},Br.find=ma,Br.findIndex=Hi,Br.findKey=function(e,t){return $t(e,si(t,3),xn)},Br.findLast=ga,Br.findLastIndex=Wi,Br.findLastKey=function(e,t){return $t(e,si(t,3),wn)},Br.floor=xu,Br.forEach=va,Br.forEachRight=ba,Br.forIn=function(e,t){return null==e?e:vn(e,si(t,3),Al)},Br.forInRight=function(e,t){return null==e?e:bn(e,si(t,3),Al)},Br.forOwn=function(e,t){return e&&xn(e,si(t,3))},Br.forOwnRight=function(e,t){return e&&wn(e,si(t,3))},Br.get=_l,Br.gt=$a,Br.gte=Ua,Br.has=function(e,t){return null!=e&&mi(e,t,En)},Br.hasIn=El,Br.head=Vi,Br.identity=nu,Br.includes=function(e,t,r,n){e=Va(e)?e:Fl(e),r=r&&!n?hl(r):0;var o=e.length;return r<0&&(r=Kt(o+r,0)),ll(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&Ht(e,t,r)>-1},Br.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:hl(r);return o<0&&(o=Kt(n+o,0)),Ht(e,t,o)},Br.inRange=function(e,t,r){return t=pl(t),r===o?(r=t,t=0):r=pl(r),function(e,t,r){return e>=vr(t,r)&&e<Kt(t,r)}(e=ml(e),t,r)},Br.invoke=Ml,Br.isArguments=Ha,Br.isArray=Wa,Br.isArrayBuffer=qa,Br.isArrayLike=Va,Br.isArrayLikeObject=Ga,Br.isBoolean=function(e){return!0===e||!1===e||tl(e)&&jn(e)==x},Br.isBuffer=Ka,Br.isDate=Ya,Br.isElement=function(e){return tl(e)&&1===e.nodeType&&!ol(e)},Br.isEmpty=function(e){if(null==e)return!0;if(Va(e)&&(Wa(e)||"string"==typeof e||"function"==typeof e.splice||Ka(e)||sl(e)||Ha(e)))return!e.length;var t=yi(e);if(t==j||t==M)return!e.size;if(Oi(e))return!In(e).length;for(var r in e)if(Le.call(e,r))return!1;return!0},Br.isEqual=function(e,t){return An(e,t)},Br.isEqualWith=function(e,t,r){var n=(r="function"==typeof r?r:o)?r(e,t):o;return n===o?An(e,t,o,r):!!n},Br.isError=Xa,Br.isFinite=function(e){return"number"==typeof e&&bt(e)},Br.isFunction=Za,Br.isInteger=Qa,Br.isLength=Ja,Br.isMap=rl,Br.isMatch=function(e,t){return e===t||Nn(e,t,fi(t))},Br.isMatchWith=function(e,t,r){return r="function"==typeof r?r:o,Nn(e,t,fi(t),r)},Br.isNaN=function(e){return nl(e)&&e!=+e},Br.isNative=function(e){if(ki(e))throw new le("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Dn(e)},Br.isNil=function(e){return null==e},Br.isNull=function(e){return null===e},Br.isNumber=nl,Br.isObject=el,Br.isObjectLike=tl,Br.isPlainObject=ol,Br.isRegExp=il,Br.isSafeInteger=function(e){return Qa(e)&&e>=-9007199254740991&&e<=h},Br.isSet=al,Br.isString=ll,Br.isSymbol=ul,Br.isTypedArray=sl,Br.isUndefined=function(e){return e===o},Br.isWeakMap=function(e){return tl(e)&&yi(e)==N},Br.isWeakSet=function(e){return tl(e)&&"[object WeakSet]"==jn(e)},Br.join=function(e,t){return null==e?"":xt.call(e,t)},Br.kebabCase=Wl,Br.last=Xi,Br.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=n;return r!==o&&(i=(i=hl(r))<0?Kt(n+i,0):vr(i,n-1)),t===t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,i):Ut(e,qt,i,!0)},Br.lowerCase=ql,Br.lowerFirst=Vl,Br.lt=cl,Br.lte=fl,Br.max=function(e){return e&&e.length?yn(e,nu,_n):o},Br.maxBy=function(e,t){return e&&e.length?yn(e,si(t,2),_n):o},Br.mean=function(e){return Vt(e,nu)},Br.meanBy=function(e,t){return Vt(e,si(t,2))},Br.min=function(e){return e&&e.length?yn(e,nu,Rn):o},Br.minBy=function(e,t){return e&&e.length?yn(e,si(t,2),Rn):o},Br.stubArray=yu,Br.stubFalse=mu,Br.stubObject=function(){return{}},Br.stubString=function(){return""},Br.stubTrue=function(){return!0},Br.multiply=wu,Br.nth=function(e,t){return e&&e.length?Hn(e,hl(t)):o},Br.noConflict=function(){return yt._===this&&(yt._=Fe),this},Br.noop=uu,Br.now=_a,Br.pad=function(e,t,r){e=vl(e);var n=(t=hl(t))?pr(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return qo(ht(o),r)+e+qo(pt(o),r)},Br.padEnd=function(e,t,r){e=vl(e);var n=(t=hl(t))?pr(e):0;return t&&n<t?e+qo(t-n,r):e},Br.padStart=function(e,t,r){e=vl(e);var n=(t=hl(t))?pr(e):0;return t&&n<t?qo(t-n,r)+e:e},Br.parseInt=function(e,t,r){return r||null==t?t=0:t&&(t=+t),xr(vl(e).replace(ae,""),t||0)},Br.random=function(e,t,r){if(r&&"boolean"!=typeof r&&xi(e,t,r)&&(t=r=o),r===o&&("boolean"==typeof t?(r=t,t=o):"boolean"==typeof e&&(r=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pl(e),t===o?(t=e,e=0):t=pl(t)),e>t){var n=e;e=t,t=n}if(r||e%1||t%1){var i=wr();return vr(e+i*(t-e+ft("1e-"+((i+"").length-1))),t)}return Kn(e,t)},Br.reduce=function(e,t,r){var n=Wa(e)?zt:Yt,o=arguments.length<3;return n(e,si(t,4),r,o,dn)},Br.reduceRight=function(e,t,r){var n=Wa(e)?Rt:Yt,o=arguments.length<3;return n(e,si(t,4),r,o,pn)},Br.repeat=function(e,t,r){return t=(r?xi(e,t,r):t===o)?1:hl(t),Yn(vl(e),t)},Br.replace=function(){var e=arguments,t=vl(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Br.result=function(e,t,r){var n=-1,i=(t=xo(t,e)).length;for(i||(i=1,e=o);++n<i;){var a=null==e?o:e[zi(t[n])];a===o&&(n=i,a=r),e=Za(a)?a.call(e):a}return e}
vendor: 4,663 bytes, line 2
2,Br.round=Su,Br.runInContext=e,Br.sample=function(e){return(Wa(e)?Xr:Zn)(e)},Br.size=function(e){if(null==e)return 0;if(Va(e))return ll(e)?pr(e):e.length;var t=yi(e);return t==j||t==M?e.size:In(e).length},Br.snakeCase=Gl,Br.some=function(e,t,r){var n=Wa(e)?Bt:oo;return r&&xi(e,t,r)&&(t=o),n(e,si(t,3))},Br.sortedIndex=function(e,t){return io(e,t)},Br.sortedIndexBy=function(e,t,r){return ao(e,t,si(r,2))},Br.sortedIndexOf=function(e,t){var r=null==e?0:e.length;if(r){var n=io(e,t);if(n<r&&Fa(e[n],t))return n}return-1},Br.sortedLastIndex=function(e,t){return io(e,t,!0)},Br.sortedLastIndexBy=function(e,t,r){return ao(e,t,si(r,2),!0)},Br.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var r=io(e,t,!0)-1;if(Fa(e[r],t))return r}return-1},Br.startCase=Kl,Br.startsWith=function(e,t,r){return e=vl(e),r=null==r?0:ln(hl(r),0,e.length),t=so(t),e.slice(r,r+t.length)==t},Br.subtract=ku,Br.sum=function(e){return e&&e.length?Xt(e,nu):0},Br.sumBy=function(e,t){return e&&e.length?Xt(e,si(t,2)):0},Br.template=function(e,t,r){var n=Br.templateSettings;r&&xi(e,t,r)&&(t=o),e=vl(e),t=wl({},t,n,Jo);var i,a,l=wl({},t.imports,n.imports,Jo),u=Tl(l),s=er(l,u),c=0,f=t.interpolate||Se,d="__p += '",p=Ee((t.escape||Se).source+"|"+f.source+"|"+(f===ee?he:Se).source+"|"+(t.evaluate||Se).source+"|$","g"),h="//# sourceURL="+(Le.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++lt+"]")+"\n";e.replace(p,(function(t,r,n,o,l,u){return n||(n=o),d+=e.slice(c,u).replace(ke,ar),r&&(i=!0,d+="' +\n__e("+r+") +\n'"),l&&(a=!0,d+="';\n"+l+";\n__p += '"),n&&(d+="' +\n((__t = ("+n+")) == null ? '' : __t) +\n'"),c=u+t.length,t})),d+="';\n";var y=Le.call(t,"variable")&&t.variable;if(y){if(de.test(y))throw new le("Invalid `variable` option passed into `_.template`")}else d="with (obj) {\n"+d+"\n}\n";d=(a?d.replace(q,""):d).replace(V,"$1").replace(G,"$1;"),d="function("+(y||"obj")+") {\n"+(y?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+d+"return __p\n}";var m=Ql((function(){return Oe(u,h+"return "+d).apply(o,s)}));if(m.source=d,Xa(m))throw m;return m},Br.times=function(e,t){if((e=hl(e))<1||e>h)return[];var r=m,n=vr(e,m);t=si(t),e-=m;for(var o=Zt(n,t);++r<e;)t(r);return o},Br.toFinite=pl,Br.toInteger=hl,Br.toLength=yl,Br.toLower=function(e){return vl(e).toLowerCase()},Br.toNumber=ml,Br.toSafeInteger=function(e){return e?ln(hl(e),-9007199254740991,h):0===e?e:0},Br.toString=vl,Br.toUpper=function(e){return vl(e).toUpperCase()},Br.trim=function(e,t,r){if((e=vl(e))&&(r||t===o))return Qt(e);if(!e||!(t=so(t)))return e;var n=hr(e),i=hr(t);return So(n,rr(n,i),nr(n,i)+1).join("")},Br.trimEnd=function(e,t,r){if((e=vl(e))&&(r||t===o))return e.slice(0,yr(e)+1);if(!e||!(t=so(t)))return e;var n=hr(e);return So(n,0,nr(n,hr(t))+1).join("")},Br.trimStart=function(e,t,r){if((e=vl(e))&&(r||t===o))return e.replace(ae,"");if(!e||!(t=so(t)))return e;var n=hr(e);return So(n,rr(n,hr(t))).join("")},Br.truncate=function(e,t){var r=30,n="...";if(el(t)){var i="separator"in t?t.separator:i;r="length"in t?hl(t.length):r,n="omission"in t?so(t.omission):n}var a=(e=vl(e)).length;if(lr(e)){var l=hr(e);a=l.length}if(r>=a)return e;var u=r-pr(n);if(u<1)return n;var s=l?So(l,0,u).join(""):e.slice(0,u);if(i===o)return s+n;if(l&&(u+=s.length-u),il(i)){if(e.slice(u).search(i)){var c,f=s;for(i.global||(i=Ee(i.source,vl(ye.exec(i))+"g")),i.lastIndex=0;c=i.exec(f);)var d=c.index;s=s.slice(0,d===o?u:d)}}else if(e.indexOf(so(i),u)!=u){var p=s.lastIndexOf(i);p>-1&&(s=s.slice(0,p))}return s+n},Br.unescape=function(e){return(e=vl(e))&&X.test(e)?e.replace(K,mr):e},Br.uniqueId=function(e){var t=++Ie;return vl(e)+t},Br.upperCase=Yl,Br.upperFirst=Xl,Br.each=va,Br.eachRight=ba,Br.first=Vi,lu(Br,function(){var e={};return xn(Br,(function(t,r){Le.call(Br.prototype,r)||(e[r]=t)})),e}(),{chain:!1}),Br.VERSION="4.17.21",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Br[e].placeholder=Br})),Ct(["drop","take"],(function(e,t){Hr.prototype[e]=function(r){r=r===o?1:Kt(hl(r),0);var n=this.__filtered__&&!t?new Hr(this):this.clone();return n.__filtered__?n.__takeCount__=vr(r,n.__takeCount__):n.__views__.push({size:vr(r,m),type:e+(n.__dir__<0?"Right":"")}),n},Hr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Hr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:si(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),Ct(["head","last"],(function(e,t){var r="take"+(t?"Right":"");
vendor: 5,981 bytes, line 2
2Hr.prototype[e]=function(){return this[r](1).value()[0]}})),Ct(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Hr.prototype[e]=function(){return this.__filtered__?new Hr(this):this[r](1)}})),Hr.prototype.compact=function(){return this.filter(nu)},Hr.prototype.find=function(e){return this.filter(e).head()},Hr.prototype.findLast=function(e){return this.reverse().find(e)},Hr.prototype.invokeMap=Xn((function(e,t){return"function"==typeof e?new Hr(this):this.map((function(r){return Mn(r,e,t)}))})),Hr.prototype.reject=function(e){return this.filter(La(si(e)))},Hr.prototype.slice=function(e,t){e=hl(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Hr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==o&&(r=(t=hl(t))<0?r.dropRight(-t):r.take(t-e)),r)},Hr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hr.prototype.toArray=function(){return this.take(m)},xn(Hr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),i=Br[n?"take"+("last"==t?"Right":""):t],a=n||/^find/.test(t);i&&(Br.prototype[t]=function(){var t=this.__wrapped__,l=n?[1]:arguments,u=t instanceof Hr,s=l[0],c=u||Wa(t),f=function(e){var t=i.apply(Br,It([e],l));return n&&d?t[0]:t};c&&r&&"function"==typeof s&&1!=s.length&&(u=c=!1);var d=this.__chain__,p=!!this.__actions__.length,h=a&&!d,y=u&&!p;if(!a&&c){t=y?t:new Hr(this);var m=e.apply(t,l);return m.__actions__.push({func:pa,args:[f],thisArg:o}),new Ur(m,d)}return h&&y?e.apply(this,l):(m=this.thru(f),h?n?m.value()[0]:m.value():m)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Br.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(Wa(o)?o:[],e)}return this[r]((function(r){return t.apply(Wa(r)?r:[],e)}))}})),xn(Hr.prototype,(function(e,t){var r=Br[t];if(r){var n=r.name+"";Le.call(Mr,n)||(Mr[n]=[]),Mr[n].push({name:t,func:r})}})),Mr[$o(o,2).name]=[{name:"wrapper",func:o}],Hr.prototype.clone=function(){var e=new Hr(this.__wrapped__);return e.__actions__=Mo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mo(this.__views__),e},Hr.prototype.reverse=function(){if(this.__filtered__){var e=new Hr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=Wa(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n<o;){var i=r[n],a=i.size;switch(i.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=vr(t,e+a);break;case"takeRight":e=Kt(e,t-a)}}return{start:e,end:t}}(0,o,this.__views__),a=i.start,l=i.end,u=l-a,s=n?l:a-1,c=this.__iteratees__,f=c.length,d=0,p=vr(u,this.__takeCount__);if(!r||!n&&o==u&&p==u)return yo(e,this.__actions__);var h=[];e:for(;u--&&d<p;){for(var y=-1,m=e[s+=t];++y<f;){var g=c[y],v=g.iteratee,b=g.type,x=v(m);if(2==b)m=x;else if(!x){if(1==b)continue e;break e}}h[d++]=m}return h},Br.prototype.at=ha,Br.prototype.chain=function(){return da(this)},Br.prototype.commit=function(){return new Ur(this.value(),this.__chain__)},Br.prototype.next=function(){this.__values__===o&&(this.__values__=dl(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},Br.prototype.plant=function(e){for(var t,r=this;r instanceof $r;){var n=Bi(r);n.__index__=0,n.__values__=o,t?i.__wrapped__=n:t=n;var i=n;r=r.__wrapped__}return i.__wrapped__=e,t},Br.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hr){var t=e;return this.__actions__.length&&(t=new Hr(this)),(t=t.reverse()).__actions__.push({func:pa,args:[ea],thisArg:o}),new Ur(t,this.__chain__)}return this.thru(ea)},Br.prototype.toJSON=Br.prototype.valueOf=Br.prototype.value=function(){return yo(this.__wrapped__,this.__actions__)},Br.prototype.first=Br.prototype.head,Ze&&(Br.prototype[Ze]=function(){return this}),Br}();yt._=gr,(n=function(){return gr}.call(t,r,t,e))===o||(e.exports=n)}.call(this)},3538:(e,t,r)=>{var n=r(755),o=r(3411);e.exports=function(e,t){return n(o(e,t),1)}},3668:(e,t,r)=>{var n=r(8902),o=r(2587),i=r(8114);e.exports=function(e,t,r,a,l,u){var s=1&r,c=e.length,f=t.length;if(c!=f&&!(s&&f>c))return!1;var d=u.get(e),p=u.get(t);if(d&&p)return d==t&&p==e;var h=-1,y=!0,m=2&r?new n:void 0;for(u.set(e,t),u.set(t,e);++h<c;){var g=e[h],v=t[h];if(a)var b=s?a(v,g,h,t,e,u):a(g,v,h,e,t,u);if(void 0!==b){if(b)continue;y=!1;break}if(m){if(!o(t,(function(e,t){if(!i(m,t)&&(g===e||l(g,e,r,a,u)))return m.push(t)}))){y=!1;break}}else if(g!==v&&!l(g,v,r,a,u)){y=!1;break}}return u.delete(e),u.delete(t),y}},3713:(e,t,r)=>{var n=r(6140),o=r(1143),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},3781:(e,t,r)=>{var n=r(9417),o=r(8673);e.exports=function(e){for(var t=o(e),r=t.length;r--;){var i=t[r],a=e[i];t[r]=[i,a,n(a)]}return t}},3871:e=>{e.exports=function(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n<o;)i[n]=e[n+t];return i}},3892:e=>{e.exports=function(e){return this.__data__.has(e)}},3932:(e,t,r)=>{var n=r(396),o=r(2866),i=r(2597),a=r(914);e.exports=function(e){return i(e)?n(a(e)):o(e)}},3950:(e,t,r)=>{var n=r(6686),o=r(4757),i=r(801),a=Math.max,l=Math.min;e.exports=function(e,t,r){var u,s,c,f,d,p,h=0,y=!1,m=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var r=u,n=s;return u=s=void 0,h=t,f=e.apply(n,r)}function b(e){var r=e-p;return void 0===p||r>=t||r<0||m&&e-h>=c}function x(){var e=o();if(b(e))return w(e);d=setTimeout(x,function(e){var r=t-(e-p);return m?l(r,c-(e-h)):r}(e))}function w(e){return d=void 0,g&&u?v(e):(u=s=void 0,f)}function S(){var e=o(),r=b(e);
2if(u=arguments,s=this,p=e,r){if(void 0===d)return function(e){return h=e,d=setTimeout(x,t),y?v(e):f}(p);if(m)return clearTimeout(d),d=setTimeout(x,t),v(p)}return void 0===d&&(d=setTimeout(x,t)),f}return t=i(t)||0,n(r)&&(y=!!r.leading,c=(m="maxWait"in r)?a(i(r.maxWait)||0,t):c,g="trailing"in r?!!r.trailing:g),S.cancel=function(){void 0!==d&&clearTimeout(d),h=0,u=p=s=d=void 0},S.flush=function(){return void 0===d?f:w(o())},S}},4020:e=>{e.exports=function(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}},4052:e=>{var t=Array.isArray;e.exports=t},4065:e=>{e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},4079:(e,t,r)=>{var n=r(8259),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=n((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,r,n,o){t.push(n?o.replace(i,"$1"):r||e)})),t}));e.exports=a},4160:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4190:(e,t,r)=>{var n=r(1340);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},4202:(e,t)=>{"use strict";var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),u=Symbol.for("react.context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y=Object.assign,m={};function g(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||h}function v(){}function b(e,t,r){this.props=e,this.context=t,this.refs=m,this.updater=r||h}g.prototype.isReactComponent={},g.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=g.prototype;var x=b.prototype=new v;x.constructor=b,y(x,g.prototype),x.isPureReactComponent=!0;var w=Array.isArray,S=Object.prototype.hasOwnProperty,k={current:null},O={key:!0,ref:!0,__self:!0,__source:!0};function j(e,t,n){var o,i={},a=null,l=null;if(null!=t)for(o in void 0!==t.ref&&(l=t.ref),void 0!==t.key&&(a=""+t.key),t)S.call(t,o)&&!O.hasOwnProperty(o)&&(i[o]=t[o]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var s=Array(u),c=0;c<u;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(o in u=e.defaultProps)void 0===i[o]&&(i[o]=u[o]);return{$$typeof:r,type:e,key:a,ref:l,props:i,_owner:k.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===r}var E=/\/+/g;function P(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function C(e,t,o,i,a){var l=typeof e;"undefined"!==l&&"boolean"!==l||(e=null);var u=!1;if(null===e)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case r:case n:u=!0}}if(u)return a=a(u=e),e=""===i?"."+P(u,0):i,w(a)?(o="",null!=e&&(o=e.replace(E,"$&/")+"/"),C(a,t,o,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:r,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,o+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(E,"$&/")+"/")+e)),t.push(a)),1;if(u=0,i=""===i?".":i+":",w(e))for(var s=0;s<e.length;s++){var c=i+P(l=e[s],s);u+=C(l,t,o,c,a)}else if(c=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof c)for(e=c.call(e),s=0;!(l=e.next()).done;)u+=C(l=l.value,t,o,c=i+P(l,s++),a);else if("object"===l)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function M(e,t,r){if(null==e)return e;var n=[],o=0;return C(e,n,"","",(function(e){return t.call(r,e,o++)})),n}function T(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 A={current:null},N={transition:null},D={ReactCurrentDispatcher:A,ReactCurrentBatchConfig:N,ReactCurrentOwner:k};function L(){throw Error("act(...) is not supported in production builds of React.")}
2t.Children={map:M,forEach:function(e,t,r){M(e,(function(){t.apply(this,arguments)}),r)},count:function(e){var t=0;return M(e,(function(){t++})),t},toArray:function(e){return M(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=g,t.Fragment=o,t.Profiler=a,t.PureComponent=b,t.StrictMode=i,t.Suspense=c,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D,t.act=L,t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var o=y({},e.props),i=e.key,a=e.ref,l=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,l=k.current),void 0!==t.key&&(i=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(s in t)S.call(t,s)&&!O.hasOwnProperty(s)&&(o[s]=void 0===t[s]&&void 0!==u?u[s]:t[s])}var s=arguments.length-2;if(1===s)o.children=n;else if(1<s){u=Array(s);for(var c=0;c<s;c++)u[c]=arguments[c+2];o.children=u}return{$$typeof:r,type:e.type,key:i,ref:a,props:o,_owner:l}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:l,_context:e},e.Consumer=e},t.createElement=j,t.createFactory=function(e){var t=j.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:s,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:T}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=N.transition;N.transition={};try{e()}finally{N.transition=t}},t.unstable_act=L,t.useCallback=function(e,t){return A.current.useCallback(e,t)},t.useContext=function(e){return A.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return A.current.useDeferredValue(e)},t.useEffect=function(e,t){return A.current.useEffect(e,t)},t.useId=function(){return A.current.useId()},t.useImperativeHandle=function(e,t,r){return A.current.useImperativeHandle(e,t,r)},t.useInsertionEffect=function(e,t){return A.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return A.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return A.current.useMemo(e,t)},t.useReducer=function(e,t,r){return A.current.useReducer(e,t,r)},t.useRef=function(e){return A.current.useRef(e)},t.useState=function(e){return A.current.useState(e)},t.useSyncExternalStore=function(e,t,r){return A.current.useSyncExternalStore(e,t,r)},t.useTransition=function(){return A.current.useTransition()},t.version="18.3.1"},4258:(e,t,r)=>{var n=r(5906)();e.exports=n},4262:(e,t,r)=>{var n=r(8895),o=r(4052);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},4391:(e,t,r)=>{"use strict";var n=r(7950);t.createRoot=n.createRoot,t.hydrateRoot=n.hydrateRoot},4416:(e,t,r)=>{var n=r(8902),o=r(5866),i=r(1558),a=r(8114),l=r(8182),u=r(2074);e.exports=function(e,t,r){var s=-1,c=o,f=e.length,d=!0,p=[],h=p;if(r)d=!1,c=i;else if(f>=200){var y=t?null:l(e);if(y)return u(y);d=!1,c=a,h=new n}else h=t?[]:p;e:for(;++s<f;){var m=e[s],g=t?t(m):m;if(m=r||0!==m?m:0,d&&g===g){for(var v=h.length;v--;)if(h[v]===g)continue e;t&&h.push(g),p.push(m)}else c(h,g,r)||(h!==p&&h.push(g),p.push(m))}return p}},4543:(e,t,r)=>{e=r.nmd(e);var n=r(6552),o=r(14),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,l=a&&a.exports===i?n.Buffer:void 0,u=(l?l.isBuffer:void 0)||o;e.exports=u},4545:(e,t,r)=>{var n=r(7160);e.exports=function(){this.__data__=new n,this.size=0}},4552:(e,t,r)=>{var n=r(9812),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,l=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,l),r=e[l];try{e[l]=void 0;var n=!0}catch(u){}var o=a.call(e);return n&&(t?e[l]=r:delete e[l]),o}},4597:(e,t,r)=>{var n=r(2587),o=r(9096),i=r(2165),a=r(4052),l=r(929);e.exports=function(e,t,r){var u=a(e)?n:i;return r&&l(e,t,r)&&(t=void 0),u(e,o(t,3))}},4657:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},4664:(e,t,r)=>{var n=r(4258),o=r(8673);e.exports=function(e,t){return e&&n(e,t,o)}},4746:(e,t,r)=>{var n=r(5652);e.exports=function(e,t){var r=!0;return n(e,(function(e,n,o){return r=!!t(e,n,o)})),r}},4757:(e,t,r)=>{var n=r(6552);e.exports=function(){return n.Date.now()}},4816:(e,t,r)=>{var n=r(7251),o=r(7159),i=r(438),a=r(9394),l=r(6874);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},5029:(e,t,r)=>{var n=r(6989),o=r(3097),i=r(3366),a=r(2597),l=r(9417),u=r(1310),s=r(914);e.exports=function(e,t){return a(e)&&l(t)?u(s(e),t):function(r){var a=o(r,e);return void 0===a&&a===t?i(r,e):n(t,a,3)}}},5043:(e,t,r)=>{"use strict";e.exports=r(4202)},5051:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},5173:(e,t,r)=>{e.exports=r(1497)()},5193:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},5204:(e,t,r)=>{var n=r(7937)(r(6552),"Map");e.exports=n},5268:(e,t,r)=>{var n=r(9160);e.exports=function(e){return n(e)&&e!=+e}},5295:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(!t(e[r],r,e))return!1;return!0}},5324:(e,t,r)=>{var n=r(4052),o=r(2597),i=r(4079),a=r(1069);e.exports=function(e,t){return n(e)?e:o(e,t)?[e]:i(a(e))}},5387:(e,t,r)=>{var n=r(7937)(r(6552),"Promise");e.exports=n},5428:(e,t,r)=>{var n=r(6913),o=r(6173),i=r(2761),a={};
2a["[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)&&o(e.length)&&!!a[n(e)]}},5538:(e,t,r)=>{var n=r(7160),o=r(4545),i=r(793),a=r(7760),l=r(3892),u=r(6788);function s(e){var t=this.__data__=new n(e);this.size=t.size}s.prototype.clear=o,s.prototype.delete=i,s.prototype.get=a,s.prototype.has=l,s.prototype.set=u,e.exports=s},5575:(e,t,r)=>{var n=r(7937)(Object,"create");e.exports=n},5636:(e,t,r)=>{var n=r(1170),o=Math.max;e.exports=function(e,t,r){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,l=o(i.length-t,0),u=Array(l);++a<l;)u[a]=i[t+a];a=-1;for(var s=Array(t+1);++a<t;)s[a]=i[a];return s[t]=r(u),n(e,this,s)}}},5647:(e,t,r)=>{var n=r(3279),o=r(5636),i=r(6350);e.exports=function(e,t){return i(o(e,t,n),e+"")}},5652:(e,t,r)=>{var n=r(4664),o=r(6516)(n);e.exports=o},5654:(e,t,r)=>{var n=r(7937),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(t){}}();e.exports=o},5713:e=>{e.exports=function(){}},5752:(e,t,r)=>{var n=r(9395),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,l){var u=1&r,s=n(e),c=s.length;if(c!=n(t).length&&!u)return!1;for(var f=c;f--;){var d=s[f];if(!(u?d in t:o.call(t,d)))return!1}var p=l.get(e),h=l.get(t);if(p&&h)return p==t&&h==e;var y=!0;l.set(e,t),l.set(t,e);for(var m=u;++f<c;){var g=e[d=s[f]],v=t[d];if(i)var b=u?i(v,g,d,t,e,l):i(g,v,d,e,t,l);if(!(void 0===b?g===v||a(g,v,r,i,l):b)){y=!1;break}m||(m="constructor"==d)}if(y&&!m){var x=e.constructor,w=t.constructor;x==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof w&&w instanceof w||(y=!1)}return l.delete(e),l.delete(t),y}},5797:(e,t,r)=>{var n=r(4816);function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(o.Cache||n),r}o.Cache=n,e.exports=o},5816:e=>{e.exports=function(e,t,r,n){for(var o=e.length,i=r+(n?1:-1);n?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},5866:(e,t,r)=>{var n=r(8468);e.exports=function(e,t){return!!(null==e?0:e.length)&&n(e,t,0)>-1}},5893:(e,t,r)=>{var n=r(6599);e.exports=function(e,t,r){for(var o=-1,i=e.criteria,a=t.criteria,l=i.length,u=r.length;++o<l;){var s=n(i[o],a[o]);if(s)return o>=u?s:s*("desc"==r[o]?-1:1)}return e.index-t.index}},5906:e=>{e.exports=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),l=a.length;l--;){var u=a[e?l:++o];if(!1===r(i[u],u,i))break}return t}}},5967:e=>{e.exports=function(e){return e.split("")}},5990:(e,t,r)=>{var n=r(3028)(Object.getPrototypeOf,Object);e.exports=n},6095:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},6140:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},6173:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},6179:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6311:e=>{var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},6350:(e,t,r)=>{var n=r(8325),o=r(6578)(n);e.exports=o},6361:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return!0===e||!1===e||o(e)&&"[object Boolean]"==n(e)}},6378:(e,t)=>{"use strict";var r,n=Symbol.for("react.element"),o=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),s=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function g(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case i:case l:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case c:case s:case f:case y:case h:case u:return e;default:return t}}case o:return t}}}r=Symbol.for("react.module.reference"),t.isFragment=function(e){return g(e)===i}},6399:(e,t,r)=>{var n=r(5538),o=r(3668),i=r(9987),a=r(5752),l=r(6924),u=r(4052),s=r(4543),c=r(1268),f="[object Arguments]",d="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,y,m,g){var v=u(e),b=u(t),x=v?d:l(e),w=b?d:l(t),S=(x=x==f?p:x)==p,k=(w=w==f?p:w)==p,O=x==w;if(O&&s(e)){if(!s(t))return!1;v=!0,S=!1}
2if(O&&!S)return g||(g=new n),v||c(e)?o(e,t,r,y,m,g):i(e,t,x,r,y,m,g);if(!(1&r)){var j=S&&h.call(e,"__wrapped__"),_=k&&h.call(t,"__wrapped__");if(j||_){var E=j?e.value():e,P=_?t.value():t;return g||(g=new n),m(E,P,r,y,g)}}return!!O&&(g||(g=new n),a(e,t,r,y,m,g))}},6516:(e,t,r)=>{var n=r(6571);e.exports=function(e,t){return function(r,o){if(null==r)return r;if(!n(r))return e(r,o);for(var i=r.length,a=t?i:-1,l=Object(r);(t?a--:++a<i)&&!1!==o(l[a],a,l););return r}}},6532:(e,t,r)=>{var n=r(5538),o=r(6989);e.exports=function(e,t,r,i){var a=r.length,l=a,u=!i;if(null==e)return!l;for(e=Object(e);a--;){var s=r[a];if(u&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<l;){var c=(s=r[a])[0],f=e[c],d=s[1];if(u&&s[2]){if(void 0===f&&!(c in e))return!1}else{var p=new n;if(i)var h=i(f,d,c,e,t,p);if(!(void 0===h?o(d,f,3,i,p):h))return!1}}return!0}},6552:(e,t,r)=>{var n=r(7105),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},6571:(e,t,r)=>{var n=r(1629),o=r(6173);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},6578:e=>{var t=Date.now;e.exports=function(e){var r=0,n=0;return function(){var o=t(),i=16-(o-n);if(n=o,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},6599:(e,t,r)=>{var n=r(9841);e.exports=function(e,t){if(e!==t){var r=void 0!==e,o=null===e,i=e===e,a=n(e),l=void 0!==t,u=null===t,s=t===t,c=n(t);if(!u&&!c&&!a&&e>t||a&&l&&s&&!u&&!c||o&&l&&s||!r&&s||!i)return 1;if(!o&&!a&&!c&&e<t||c&&r&&i&&!o&&!a||u&&r&&i||!l&&i||!s)return-1}return 0}},6600:(e,t,r)=>{var n=r(7937)(r(6552),"WeakMap");e.exports=n},6604:(e,t,r)=>{var n=r(3331)();e.exports=n},6686:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},6704:e=>{e.exports=function(e){return this.__data__.has(e)}},6745:(e,t,r)=>{var n=r(9742),o=r(61),i=r(3279);e.exports=function(e){return e&&e.length?n(e,i,o):void 0}},6788:(e,t,r)=>{var n=r(7160),o=r(5204),i=r(4816);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},6832:(e,t,r)=>{e=r.nmd(e);var n=r(7105),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l},6874:(e,t,r)=>{var n=r(2622);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},6913:(e,t,r)=>{var n=r(9812),o=r(4552),i=r(6095),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},6924:(e,t,r)=>{var n=r(7685),o=r(5204),i=r(5387),a=r(2070),l=r(6600),u=r(6913),s=r(6996),c="[object Map]",f="[object Promise]",d="[object Set]",p="[object WeakMap]",h="[object DataView]",y=s(n),m=s(o),g=s(i),v=s(a),b=s(l),x=u;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=c||i&&x(i.resolve())!=f||a&&x(new a)!=d||l&&x(new l)!=p)&&(x=function(e){var t=u(e),r="[object Object]"==t?e.constructor:void 0,n=r?s(r):"";if(n)switch(n){case y:return h;case m:return c;case g:return f;case v:return d;case b:return p}return t}),e.exports=x},6954:(e,t,r)=>{var n=r(1629),o=r(7857),i=r(6686),a=r(6996),l=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,c=u.toString,f=s.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:l).test(a(e))}},6989:(e,t,r)=>{var n=r(6399),o=r(2761);e.exports=function e(t,r,i,a,l){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!==t&&r!==r:n(t,r,i,a,e,l))}},6996:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(r){}try{return e+""}catch(r){}}return""}},7002:(e,t,r)=>{var n=r(5295),o=r(4746),i=r(9096),a=r(4052),l=r(929);e.exports=function(e,t,r){var u=a(e)?n:o;return r&&l(e,t,r)&&(t=void 0),u(e,i(t,3))}},7105:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},7116:(e,t,r)=>{var n=r(9812),o=r(2777),i=r(4052),a=n?n.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},7159:(e,t,r)=>{var n=r(2622);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},7160:(e,t,r)=>{var n=r(7563),o=r(9935),i=r(4190),a=r(1946),l=r(1714);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},7234:(e,t)=>{"use strict";function r(e,t){var r=e.length;e.push(t);e:for(;0<r;){var n=r-1>>>1,o=e[n];if(!(0<i(o,t)))break e;e[n]=t,e[r]=o,r=n}}function n(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length,a=o>>>1;n<a;){var l=2*(n+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,r))s<o&&0>i(c,u)?(e[n]=c,e[s]=r,n=s):(e[n]=u,e[l]=r,n=l);else{if(!(s<o&&0>i(c,r)))break e;e[n]=c,e[s]=r,n=s}}}return t}function i(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],f=1,d=null,p=3,h=!1,y=!1,m=!1,g="function"===typeof setTimeout?setTimeout:null,v="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function x(e){for(var t=n(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,r(s,t)}t=n(c)}}function w(e){if(m=!1,x(e),!y)if(null!==n(s))y=!0,N(S);else{var t=n(c);null!==t&&D(w,t.startTime-e)}}function S(e,r){y=!1,m&&(m=!1,v(_),_=-1),h=!0;var i=p;try{for(x(r),d=n(s);null!==d&&(!(d.expirationTime>r)||e&&!C());){var a=d.callback;if("function"===typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=r);r=t.unstable_now(),"function"===typeof l?d.callback=l:d===n(s)&&o(s),x(r)}
2else o(s);d=n(s)}if(null!==d)var u=!0;else{var f=n(c);null!==f&&D(w,f.startTime-r),u=!1}return u}finally{d=null,p=i,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,O=!1,j=null,_=-1,E=5,P=-1;function C(){return!(t.unstable_now()-P<E)}function M(){if(null!==j){var e=t.unstable_now();P=e;var r=!0;try{r=j(!0,e)}finally{r?k():(O=!1,j=null)}}else O=!1}if("function"===typeof b)k=function(){b(M)};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,A=T.port2;T.port1.onmessage=M,k=function(){A.postMessage(null)}}else k=function(){g(M,0)};function N(e){j=e,O||(O=!0,k())}function D(e,r){_=g((function(){e(t.unstable_now())}),r)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){y||h||(y=!0,N(S))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return n(s)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var r=p;p=t;try{return e()}finally{p=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=p;p=e;try{return t()}finally{p=r}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"===typeof i&&null!==i?i="number"===typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:f++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,r(c,e),null===n(s)&&e===n(c)&&(m?(v(_),_=-1):m=!0,D(w,i-a))):(e.sortIndex=l,r(s,e),y||h||(y=!0,N(S))),e},t.unstable_shouldYield=C,t.unstable_wrapCallback=function(e){var t=p;return function(){var r=p;p=t;try{return e.apply(this,arguments)}finally{p=r}}}},7251:(e,t,r)=>{var n=r(8724),o=r(7160),i=r(5204);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7283:e=>{"use strict";var t=Object.prototype.hasOwnProperty,r="~";function n(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(e,t,n,i,a){if("function"!==typeof n)throw new TypeError("The listener must be a function");var l=new o(n,i||e,a),u=r?r+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],l]:e._events[u].push(l):(e._events[u]=l,e._eventsCount++),e}function a(e,t){0===--e._eventsCount?e._events=new n:delete e._events[t]}function l(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(r=!1)),l.prototype.eventNames=function(){var e,n,o=[];if(0===this._eventsCount)return o;for(n in e=this._events)t.call(e,n)&&o.push(r?n.slice(1):n);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},l.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var o=0,i=n.length,a=new Array(i);o<i;o++)a[o]=n[o].fn;return a},l.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},l.prototype.emit=function(e,t,n,o,i,a){var l=r?r+e:e;if(!this._events[l])return!1;var u,s,c=this._events[l],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,o),!0;case 5:return c.fn.call(c.context,t,n,o,i),!0;case 6:return c.fn.call(c.context,t,n,o,i,a),!0}for(s=1,u=new Array(f-1);s<f;s++)u[s-1]=arguments[s];c.fn.apply(c.context,u)}else{var d,p=c.length;for(s=0;s<p;s++)switch(c[s].once&&this.removeListener(e,c[s].fn,void 0,!0),f){case 1:c[s].fn.call(c[s].context);break;case 2:c[s].fn.call(c[s].context,t);break;case 3:c[s].fn.call(c[s].context,t,n);break;case 4:c[s].fn.call(c[s].context,t,n,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];c[s].fn.apply(c[s].context,u)}}return!0},l.prototype.on=function(e,t,r){return i(this,e,t,r,!1)},l.prototype.once=function(e,t,r){return i(this,e,t,r,!0)},l.prototype.removeListener=function(e,t,n,o){var i=r?r+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var l=this._events[i];if(l.fn)l.fn!==t||o&&!l.once||n&&l.context!==n||a(this,i);else{for(var u=0,s=[],c=l.length;u<c;u++)(l[u].fn!==t||o&&!l[u].once||n&&l[u].context!==n)&&s.push(l[u]);s.length?this._events[i]=1===s.length?s[0]:s:a(this,i)}return this},l.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&a(this,t)):(this._events=new n,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=r,l.EventEmitter=l,e.exports=l},7303:(e,t,r)=>{var n=r(801),o=1/0;e.exports=function(e){return e?(e=n(e))===o||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}},7424:(e,t,r)=>{var n=r(755),o=r(2536),i=r(5647),a=r(929),l=i((function(e,t){if(null==e)return[];var r=t.length;return r>1&&a(e,t[0],t[1])?t=[]:r>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),o(e,n(t,1),[])}));e.exports=l},7498:e=>{e.exports=function(e,t){return e>t}},7529:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},7563:e=>{e.exports=function(){this.__data__=[],this.size=0}},7574:e=>{e.exports=function(e){return function(t){return e(t)}}},7615:(e,t,r)=>{var n=r(5575);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},7676:(e,t,r)=>
2{var n=r(8189),o=r(6311),i=r(9115),a=r(1069);e.exports=function(e){return function(t){t=a(t);var r=o(t)?i(t):void 0,l=r?r[0]:t.charAt(0),u=r?n(r,1).join(""):t.slice(1);return l[e]()+u}}},7685:(e,t,r)=>{var n=r(7937)(r(6552),"DataView");e.exports=n},7760:e=>{e.exports=function(e){return this.__data__.get(e)}},7828:e=>{e.exports=function(){return[]}},7857:(e,t,r)=>{var n=r(3440),o=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();e.exports=function(e){return!!o&&o in e}},7894:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},7937:(e,t,r)=>{var n=r(6954),o=r(4657);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},7950:(e,t,r)=>{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=r(2730)},8114:e=>{e.exports=function(e,t){return e.has(t)}},8182:(e,t,r)=>{var n=r(2070),o=r(5713),i=r(2074),a=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:o;e.exports=a},8189:(e,t,r)=>{var n=r(3871);e.exports=function(e,t,r){var o=e.length;return r=void 0===r?o:r,!t&&r>=o?e:n(e,t,r)}},8210:function(e,t,r){var n;!function(){"use strict";var o,i=1e9,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},l=!0,u="[DecimalError] ",s=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,p=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,h=1e7,y=9007199254740991,m=f(1286742750677284.5),g={};function v(e,t){var r,n,o,i,a,u,s,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),l?P(t,d):t;if(s=e.d,c=t.d,a=e.e,o=t.e,s=s.slice(),i=a-o){for(i<0?(n=s,i=-i,u=c.length):(n=c,o=a,u=s.length),i>(u=(a=Math.ceil(d/7))>u?a+1:u+1)&&(i=u,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((u=s.length)-(i=c.length)<0&&(i=u,n=c,c=s,s=n),r=0;i;)r=(s[--i]=s[i]+c[i]+r)/h|0,s[i]%=h;for(r&&(s.unshift(r),++o),u=s.length;0==s[--u];)s.pop();return t.d=s,t.e=o,l?P(t,d):t}function b(e,t,r){if(e!==~~e||e<t||e>r)throw Error(s+e)}function x(e){var t,r,n,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(r=7-(n=e[t]+"").length)&&(i+=j(r)),i+=n;(r=7-(n=(a=e[t])+"").length)&&(i+=j(r))}else if(0===a)return"0";for(;a%10===0;)a/=10;return i+a}g.absoluteValue=g.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},g.comparedTo=g.cmp=function(e){var t,r,n,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,r=(n=i.d.length)<(o=e.d.length)?n:o;t<r;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return n===o?0:n>o^i.s<0?1:-1},g.decimalPlaces=g.dp=function(){var e=this,t=e.d.length-1,r=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)r--;return r<0?0:r},g.dividedBy=g.div=function(e){return w(this,new this.constructor(e))},g.dividedToIntegerBy=g.idiv=function(e){var t=this.constructor;return P(w(this,new t(e),0,1),t.precision)},g.equals=g.eq=function(e){return!this.cmp(e)},g.exponent=function(){return k(this)},g.greaterThan=g.gt=function(e){return this.cmp(e)>0},g.greaterThanOrEqualTo=g.gte=function(e){return this.cmp(e)>=0},g.isInteger=g.isint=function(){return this.e>this.d.length-2},g.isNegative=g.isneg=function(){return this.s<0},g.isPositive=g.ispos=function(){return this.s>0},g.isZero=function(){return 0===this.s},g.lessThan=g.lt=function(e){return this.cmp(e)<0},g.lessThanOrEqualTo=g.lte=function(e){return this.cmp(e)<1},g.logarithm=g.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(void 0===e)e=new n(10);else if((e=new n(e)).s<1||e.eq(o))throw Error(u+"NaN");if(r.s<1)throw Error(u+(r.s?"NaN":"-Infinity"));return r.eq(o)?new n(0):(l=!1,t=w(_(r,a),_(e,a),a),l=!0,P(t,i))},g.minus=g.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?C(t,e):v(t,(e.s=-e.s,e))},g.modulo=g.mod=function(e){var t,r=this,n=r.constructor,o=n.precision;if(!(e=new n(e)).s)throw Error(u+"NaN");return r.s?(l=!1,t=w(r,e,0,1).times(e),l=!0,r.minus(t)):P(new n(r),o)},g.naturalExponential=g.exp=function(){return S(this)},g.naturalLogarithm=g.ln=function(){return _(this)},g.negated=g.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},g.plus=g.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?v(t,e):C(t,(e.s=-e.s,e))},g.precision=g.sd=function(e){var t,r,n,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(s+e);if(t=k(o)+1,r=7*(n=o.d.length-1)+1,n=o.d[n]){for(;n%10==0;n/=10)r--;for(n=o.d[0];n>=10;
vendor: 5,890 bytes, line 2
2n/=10)r++}return e&&t>r?t:r},g.squareRoot=g.sqrt=function(){var e,t,r,n,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(u+"NaN")}for(e=k(s),l=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=x(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new c(o.toString()),o=a=(r=c.precision)+3;;)if(n=(i=n).plus(w(s,i,a+2)).times(.5),x(i.d).slice(0,a)===(t=x(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(P(i,r+1,0),i.times(i).eq(s)){n=i;break}}else if("9999"!=t)break;a+=4}return l=!0,P(n,r)},g.times=g.mul=function(e){var t,r,n,o,i,a,u,s,c,f=this,d=f.constructor,p=f.d,y=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,r=f.e+e.e,(s=p.length)<(c=y.length)&&(i=p,p=y,y=i,a=s,s=c,c=a),i=[],n=a=s+c;n--;)i.push(0);for(n=c;--n>=0;){for(t=0,o=s+n;o>n;)u=i[o]+y[n]*p[o-n-1]+t,i[o--]=u%h|0,t=u/h|0;i[o]=(i[o]+t)%h|0}for(;!i[--a];)i.pop();return t?++r:i.shift(),e.d=i,e.e=r,l?P(e,d.precision):e},g.toDecimalPlaces=g.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),void 0===e?r:(b(e,0,i),void 0===t?t=n.rounding:b(t,0,8),P(r,e+k(r)+1,t))},g.toExponential=function(e,t){var r,n=this,o=n.constructor;return void 0===e?r=M(n,!0):(b(e,0,i),void 0===t?t=o.rounding:b(t,0,8),r=M(n=P(new o(n),e+1,t),!0,e+1)),r},g.toFixed=function(e,t){var r,n,o=this,a=o.constructor;return void 0===e?M(o):(b(e,0,i),void 0===t?t=a.rounding:b(t,0,8),r=M((n=P(new a(o),e+k(o)+1,t)).abs(),!1,e+k(n)+1),o.isneg()&&!o.isZero()?"-"+r:r)},g.toInteger=g.toint=function(){var e=this,t=e.constructor;return P(new t(e),k(e)+1,t.rounding)},g.toNumber=function(){return+this},g.toPower=g.pow=function(e){var t,r,n,i,a,s,c=this,d=c.constructor,p=+(e=new d(e));if(!e.s)return new d(o);if(!(c=new d(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(o))return c;if(n=d.precision,e.eq(o))return P(c,n);if(s=(t=e.e)>=(r=e.d.length-1),a=c.s,s){if((r=p<0?-p:p)<=y){for(i=new d(o),t=Math.ceil(n/7+4),l=!1;r%2&&T((i=i.times(c)).d,t),0!==(r=f(r/2));)T((c=c.times(c)).d,t);return l=!0,e.s<0?new d(o).div(i):P(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,l=!1,i=e.times(_(c,n+12)),l=!0,(i=S(i)).s=a,i},g.toPrecision=function(e,t){var r,n,o=this,a=o.constructor;return void 0===e?n=M(o,(r=k(o))<=a.toExpNeg||r>=a.toExpPos):(b(e,1,i),void 0===t?t=a.rounding:b(t,0,8),n=M(o=P(new a(o),e,t),e<=(r=k(o))||r<=a.toExpNeg,e)),n},g.toSignificantDigits=g.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(b(e,1,i),void 0===t?t=r.rounding:b(t,0,8)),P(new r(this),e,t)},g.toString=g.valueOf=g.val=g.toJSON=function(){var e=this,t=k(e),r=e.constructor;return M(e,t<=r.toExpNeg||t>=r.toExpPos)};var w=function(){function e(e,t){var r,n=0,o=e.length;for(e=e.slice();o--;)r=e[o]*t+n,e[o]=r%h|0,n=r/h|0;return n&&e.unshift(n),e}function t(e,t,r,n){var o,i;if(r!=n)i=r>n?1:-1;else for(o=i=0;o<r;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=e[r]<t[r]?1:0,e[r]=n*h+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,o,i,a){var l,s,c,f,d,p,y,m,g,v,b,x,w,S,O,j,_,E,C=n.constructor,M=n.s==o.s?1:-1,T=n.d,A=o.d;if(!n.s)return new C(n);if(!o.s)throw Error(u+"Division by zero");for(s=n.e-o.e,_=A.length,O=T.length,m=(y=new C(M)).d=[],c=0;A[c]==(T[c]||0);)++c;if(A[c]>(T[c]||0)&&--s,(x=null==i?i=C.precision:a?i+(k(n)-k(o))+1:i)<0)return new C(0);if(x=x/7+2|0,c=0,1==_)for(f=0,A=A[0],x++;(c<O||f)&&x--;c++)w=f*h+(T[c]||0),m[c]=w/A|0,f=w%A|0;else{for((f=h/(A[0]+1)|0)>1&&(A=e(A,f),T=e(T,f),_=A.length,O=T.length),S=_,v=(g=T.slice(0,_)).length;v<_;)g[v++]=0;(E=A.slice()).unshift(0),j=A[0],A[1]>=h/2&&++j;do{f=0,(l=t(A,g,_,v))<0?(b=g[0],_!=v&&(b=b*h+(g[1]||0)),(f=b/j|0)>1?(f>=h&&(f=h-1),1==(l=t(d=e(A,f),g,p=d.length,v=g.length))&&(f--,r(d,_<p?E:A,p))):(0==f&&(l=f=1),d=A.slice()),(p=d.length)<v&&d.unshift(0),r(g,d,v),-1==l&&(l=t(A,g,_,v=g.length))<1&&(f++,r(g,_<v?E:A,v)),v=g.length):0===l&&(f++,g=[0]),m[c++]=f,l&&g[0]?g[v++]=T[S]||0:(g=[T[S]],v=1)}while((S++<O||void 0!==g[0])&&x--)}return m[0]||m.shift(),y.e=s,P(y,a?i+k(y)+1:i)}}();function S(e,t){var r,n,i,a,u,s=0,f=0,p=e.constructor,h=p.precision;if(k(e)>16)throw Error(c+k(e));if(!e.s)return new p(o);for(null==t?(l=!1,u=h):u=t,a=new p(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=i=new p(o),p.precision=u;;){if(n=P(n.times(e),u),r=r.times(++s),x((a=i.plus(w(n,r,u))).d).slice(0,u)===x(i.d).slice(0,u)){for(;f--;)i=P(i.times(i),u);return p.precision=h,null==t?(l=!0,P(i,h)):i}i=a}}function k(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function O(e,t,r){if(t>e.LN10.sd())throw l=!0,r&&(e.precision=r),Error(u+"LN10 precision limit exceeded");return P(new e(e.LN10),t)}function j(e){for(var t="";e--;)t+="0";return t}function _(e,t){var r,n,i,a,s,c,f,d,p,h=1,y=e,m=y.d,g=y.constructor,v=g.precision;if(y.s<1)throw Error(u+(y.s?"NaN":"-Infinity"));if(y.eq(o))return new g(0);if(null==t?(l=!1,d=v):d=t,y.eq(10))return null==t&&(l=!0),O(g,d);if(d+=10,g.precision=d,n=(r=x(m)).charAt(0),a=k(y),!(Math.abs(a)<15e14))return f=O(g,d+2,v).times(a+""),y=_(new g(n+"."+r.slice(1)),d-10).plus(f),g.precision=v,null==t?(l=!0,P(y,v)):y;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=x((y=y.times(e)).d)).charAt(0),h++;for(a=k(y),n>1?(y=new g("0."+r),a++):y=new g(n+"."+r.slice(1)),c=s=y=w(y.minus(o),y.plus(o),d),p=P(y.times(y),d),i=3;;){if(s=P(s.times(p),d),x((f=c.plus(w(s,new g(i),d))).d).slice(0,d)===x(c.d).slice(0,d))return c=c.times(2),0!==a&&(c=c.plus(O(g,d+2,v).times(a+""))),c=w(c,new g(h),d),g.precision=v,null==t?(l=!0,P(c,v)):c;c=f,i+=2}}function E(e,t){var r,n,o;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(o=t.length;48===t.charCodeAt(o-1);)--o;
2if(t=t.slice(n,o)){if(o-=n,r=r-n-1,e.e=f(r/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<o){for(n&&e.d.push(+t.slice(0,n)),o-=7;n<o;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=o;for(;n--;)t+="0";if(e.d.push(+t),l&&(e.e>m||e.e<-m))throw Error(c+r)}else e.s=0,e.e=0,e.d=[0];return e}function P(e,t,r){var n,o,i,a,u,s,p,y,g=e.d;for(a=1,i=g[0];i>=10;i/=10)a++;if((n=t-a)<0)n+=7,o=t,p=g[y=0];else{if((y=Math.ceil((n+1)/7))>=(i=g.length))return e;for(p=i=g[y],a=1;i>=10;i/=10)a++;o=(n%=7)-7+a}if(void 0!==r&&(u=p/(i=d(10,a-o-1))%10|0,s=t<0||void 0!==g[y+1]||p%i,s=r<4?(u||s)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||s||6==r&&(n>0?o>0?p/d(10,a-o):0:g[y-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return s?(i=k(e),g.length=1,t=t-i-1,g[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==n?(g.length=y,i=1,y--):(g.length=y+1,i=d(10,7-n),g[y]=o>0?(p/d(10,a-o)%d(10,o)|0)*i:0),s)for(;;){if(0==y){(g[0]+=i)==h&&(g[0]=1,++e.e);break}if(g[y]+=i,g[y]!=h)break;g[y--]=0,i=1}for(n=g.length;0===g[--n];)g.pop();if(l&&(e.e>m||e.e<-m))throw Error(c+k(e));return e}function C(e,t){var r,n,o,i,a,u,s,c,f,d,p=e.constructor,y=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),l?P(t,y):t;if(s=e.d,d=t.d,n=t.e,c=e.e,s=s.slice(),a=c-n){for((f=a<0)?(r=s,a=-a,u=d.length):(r=d,n=c,u=s.length),a>(o=Math.max(Math.ceil(y/7),u)+2)&&(a=o,r.length=1),r.reverse(),o=a;o--;)r.push(0);r.reverse()}else{for((f=(o=s.length)<(u=d.length))&&(u=o),o=0;o<u;o++)if(s[o]!=d[o]){f=s[o]<d[o];break}a=0}for(f&&(r=s,s=d,d=r,t.s=-t.s),u=s.length,o=d.length-u;o>0;--o)s[u++]=0;for(o=d.length;o>a;){if(s[--o]<d[o]){for(i=o;i&&0===s[--i];)s[i]=h-1;--s[i],s[o]+=h}s[o]-=d[o]}for(;0===s[--u];)s.pop();for(;0===s[0];s.shift())--n;return s[0]?(t.d=s,t.e=n,l?P(t,y):t):new p(0)}function M(e,t,r){var n,o=k(e),i=x(e.d),a=i.length;return t?(r&&(n=r-a)>0?i=i.charAt(0)+"."+i.slice(1)+j(n):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+j(-o-1)+i,r&&(n=r-a)>0&&(i+=j(n))):o>=a?(i+=j(o+1-a),r&&(n=r-o-1)>0&&(i=i+"."+j(n))):((n=o+1)<a&&(i=i.slice(0,n)+"."+i.slice(n)),r&&(n=r-a)>0&&(o+1===a&&(i+="."),i+=j(n))),e.s<0?"-"+i:i}function T(e,t){if(e.length>t)return e.length=t,!0}function A(e){if(!e||"object"!==typeof e)throw Error(u+"Object expected");var t,r,n,o=["precision",1,i,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(n=e[r=o[t]])){if(!(f(n)===n&&n>=o[t+1]&&n<=o[t+2]))throw Error(s+r+": "+n);this[r]=n}if(void 0!==(n=e[r="LN10"])){if(n!=Math.LN10)throw Error(s+r+": "+n);this[r]=new this(n)}return this}a=function e(t){var r,n,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(s+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):E(t,e.toString())}if("string"!==typeof e)throw Error(s+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!p.test(e))throw Error(s+e);E(t,e)}if(i.prototype=g,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=A,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],r=0;r<o.length;)t.hasOwnProperty(n=o[r++])||(t[n]=this[n]);return i.config(t),i}(a),a.default=a.Decimal=a,o=new a(1),void 0===(n=function(){return a}.call(t,r,t,e))||(e.exports=n)}()},8259:(e,t,r)=>{var n=r(5797);e.exports=function(e){var t=n(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}},8325:(e,t,r)=>{var n=r(2541),o=r(5654),i=r(3279),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i;e.exports=a},8468:(e,t,r)=>{var n=r(5816),o=r(644),i=r(4020);e.exports=function(e,t,r){return t===t?i(e,t,r):n(e,o,r)}},8541:(e,t,r)=>{var n=r(9812),o=r(149),i=r(4052),a=r(9841),l=n?n.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var r=t+"";return"0"==r&&1/t==-1/0?"-0":r}},8673:(e,t,r)=>{var n=r(3204),o=r(3713),i=r(6571);e.exports=function(e){return i(e)?n(e):o(e)}},8724:(e,t,r)=>{var n=r(7615),o=r(5051),i=r(2154),a=r(8734),l=r(2662);function u(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])}}u.prototype.clear=n,u.prototype.delete=o,u.prototype.get=i,u.prototype.has=a,u.prototype.set=l,e.exports=u},8734:(e,t,r)=>{var n=r(5575),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},8853:(e,t,r)=>{"use strict";e.exports=r(7234)},8883:(e,t,r)=>{var n=r(5652),o=r(6571);e.exports=function(e,t){var r=-1,i=o(e)?Array(e.length):[];return n(e,(function(e,n,o){i[++r]=t(e,n,o)})),i}},8895:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},8902:(e,t,r)=>{var n=r(4816),o=r(6179),i=r(6704);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},8990:(e,t,r)=>{var n=r(9995)(r(2520));e.exports=n},9057:(e,t,r)=>{var n=r(5324),o=r(2777),i=r(4052),a=r(9194),l=r(6173),u=r(914);e.exports=function(e,t,r){for(var s=-1,c=(t=n(t,e)).length,f=!1;++s<c;){var d=u(t[s]);if(!(f=null!=e&&r(e,d)))break;e=e[d]}return f||++s!=c?f:!!(c=null==e?0:e.length)&&l(c)&&a(d,c)&&(i(e)||o(e))}},9062:(e,t,r)=>{"use strict";e.exports=r(6378)},9096:(e,t,r)=>{var n=r(9256),o=r(5029),i=r(3279),a=r(4052),l=r(3932);e.exports=function(e){return"function"==typeof e?e:null==e?i:"object"==typeof e?a(e)?o(e[0],e[1]):n(e):l(e)}},9115:(e,t,r)=>{var n=r(5967),o=r(6311),i=r(715);e.exports=function(e){return o(e)?i(e):n(e)}},9140:(e,t,r)=>{var n=r(7303);e.exports=function(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}},9160:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return"number"==typeof e||o(e)&&"[object Number]"==n(e)}},9194:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9256:(e,t,r)=>{var n=r(6532),o=r(3781),i=r(1310);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}},9394:(e,t,r)=>{var n=r(2622);e.exports=function(e){return n(this,e).has(e)}},9395:(e,t,r)=>{var n=r(4262),o=r(9621),i=r(8673);e.exports=function(e){return n(e,i,o)}},9417:(e,t,r)=>{var n=r(6686);e.exports=function(e){return e===e&&!n(e)}},9621:(e,t,r)=>{var n=r(7529),o=r(7828),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=l},9676:e=>{var t=Math.ceil,r=Math.max;e.exports=function(e,n,o,i){for(var a=-1,l=r(t((n-e)/(o||1)),0),u=Array(l);l--;)u[i?l:++a]=e,e+=o;return u}},9686:e=>{e.exports=function(e){return null==e}},9742:(e,t,r)=>{var n=r(9841);e.exports=function(e,t,r){for(var o=-1,i=e.length;++o<i;
2){var a=e[o],l=t(a);if(null!=l&&(void 0===u?l===l&&!n(l):r(l,u)))var u=l,s=a}return s}},9812:(e,t,r)=>{var n=r(6552).Symbol;e.exports=n},9841:(e,t,r)=>{var n=r(6913),o=r(2761);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==n(e)}},9853:(e,t,r)=>{var n=r(6989);e.exports=function(e,t){return n(e,t)}},9889:(e,t,r)=>{var n=r(3950),o=r(6686);e.exports=function(e,t,r){var i=!0,a=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return o(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),n(e,t,{leading:i,maxWait:t,trailing:a})}},9935:(e,t,r)=>{var n=r(1340),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},9987:(e,t,r)=>{var n=r(9812),o=r(2929),i=r(3211),a=r(3668),l=r(4160),u=r(2074),s=n?n.prototype:void 0,c=s?s.valueOf:void 0;e.exports=function(e,t,r,n,s,f,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!f(new o(e),new o(t)));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 p=l;case"[object Set]":var h=1&n;if(p||(p=u),e.size!=t.size&&!h)return!1;var y=d.get(e);if(y)return y==t;n|=2,d.set(e,t);var m=a(p(e),p(t),n,s,f,d);return d.delete(e),m;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},9995:(e,t,r)=>{var n=r(9096),o=r(6571),i=r(8673);e.exports=function(e){return function(t,r,a){var l=Object(t);if(!o(t)){var u=n(r,3);t=i(t),r=function(e){return u(l[e],e,l)}}var s=e(t,r,a);return s>-1?l[u?t[s]:s]:void 0}}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.m=e,r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},(()=>{var e,t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__;r.t=function(n,o){if(1&o&&(n=this(n)),8&o)return n;if("object"===typeof n&&n){if(4&o&&n.__esModule)return n;if(16&o&&"function"===typeof n.then)return n}var i=Object.create(null);r.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var l=2&o&&n;"object"==typeof l&&!~e.indexOf(l);l=t(l))Object.getOwnPropertyNames(l).forEach((e=>a[e]=()=>n[e]));return a.default=()=>n,r.d(i,a),i}})(),r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce(((t,n)=>(r.f[n](e,t),t)),[])),r.u=e=>"static/js/"+e+"."+{453:"1f99e84d",879:"230e76f6"}[e]+".chunk.js",r.miniCssF=e=>{},r.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{var e={},t="wildfire-smoke-tool:";r.l=(n,o,i,a)=>{if(e[n])e[n].push(o);else{var l,u;if(void 0!==i)for(var s=document.getElementsByTagName("script"),c=0;c<s.length;c++){var f=s[c];if(f.getAttribute("src")==n||f.getAttribute("data-webpack")==t+i){l=f;break}}l||(u=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",t+i),l.src=n),e[n]=[o];var d=(t,r)=>{l.onerror=l.onload=null,clearTimeout(p);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),u&&document.head.appendChild(l)}}})(),r.r=e=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),r.p="/wildfire-smoke-tool/",(()=>{var e={792:0};r.f.j=(t,n)=>{var o=r.o(e,t)?e[t]:void 0;if(0!==o)if(o)n.push(o[2]);else{var i=new Promise(((r,n)=>o=e[t]=[r,n]));n.push(o[2]=i);var a=r.p+r.u(t),l=new Error;r.l(a,(n=>{if(r.o(e,t)&&(0!==(o=e[t])&&(e[t]=void 0),o)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,o[1](l)}}),"chunk-"+t,t)}};var t=(t,n)=>{var o,i,a=n[0],l=n[1],u=n[2],s=0;if(a.some((t=>0!==e[t]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(u)u(r)}for(t&&t(n);s<a.length;s++)i=a[s],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.webpackChunkwildfire_smoke_tool=self.webpackChunkwildfire_smoke_tool||[];
2n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),(()=>{"use strict";var e={};r.r(e),r.d(e,{scaleBand:()=>Wa,scaleDiverging:()=>Md,scaleDivergingLog:()=>Td,scaleDivergingPow:()=>Nd,scaleDivergingSqrt:()=>Dd,scaleDivergingSymlog:()=>Ad,scaleIdentity:()=>hs,scaleImplicit:()=>Ua,scaleLinear:()=>ps,scaleLog:()=>ks,scaleOrdinal:()=>Ha,scalePoint:()=>Va,scalePow:()=>As,scaleQuantile:()=>Ws,scaleQuantize:()=>qs,scaleRadial:()=>Ls,scaleSequential:()=>kd,scaleSequentialLog:()=>Od,scaleSequentialPow:()=>_d,scaleSequentialQuantile:()=>Pd,scaleSequentialSqrt:()=>Ed,scaleSequentialSymlog:()=>jd,scaleSqrt:()=>Ns,scaleSymlog:()=>Es,scaleThreshold:()=>Vs,scaleTime:()=>bd,scaleUtc:()=>xd,tickFormat:()=>fs});var t=r(5043),n=r(4391),o=r(579);const i={ERROR:{priority:0,label:"ERROR",color:"#dc2626"},WARN:{priority:1,label:"WARN",color:"#d97706"},INFO:{priority:2,label:"INFO",color:"#2563eb"},DEBUG:{priority:3,label:"DEBUG",color:"#059669"},TRACE:{priority:4,label:"TRACE",color:"#6b7280"}},a="MAP",l="API",u="UI",s="NETWORK",c="PERFORMANCE",f="VALIDATION";const d=new class{constructor(){this.level=this.getLogLevel(),this.enableConsole=!1,this.enableRemote=!1,this.remoteEndpoint={NODE_ENV:"production",PUBLIC_URL:"/wildfire-smoke-tool",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoicGt1bGFuZGgiLCJhIjoiY20xNGZqbDBiMHhmdzJucHd5OTA4d2h2bCJ9.J6GeFa6bPfwMKqufI9L3MA",REACT_APP_CENSUS_API_KEY:"00dcad0f8330b05f9ad991c27c3efeaca1341db7",REACT_APP_DEBUG:"true",REACT_APP_TEST:"working",REACT_APP_FEEDBACK_EMAIL:"[email protected]",REACT_APP_LOG_LEVEL:"DEBUG",REACT_APP_ENABLE_REMOTE_LOGGING:"false",REACT_APP_ENABLE_CONSOLE_LOGGING:"true",REACT_APP_ENABLE_PERFORMANCE_TRACKING:"true",REACT_APP_ENABLE_AUTO_LOG_MOUNTS:"true"}.REACT_APP_LOG_ENDPOINT,this.sessionId=this.generateSessionId(),this.errorBuffer=[],this.maxBufferSize=100,this.performanceMetrics=new Map,this.initializeErrorHandlers()}getLogLevel(){return i["DEBUG".toUpperCase()]||i.INFO}generateSessionId(){return`${Date.now()}-${Math.random().toString(36).substr(2,9)}`}initializeErrorHandlers(){window.addEventListener("error",(e=>{var t;this.error("Unhandled JavaScript Error",{category:u,message:e.message,filename:e.filename,lineno:e.lineno,colno:e.colno,stack:null===(t=e.error)||void 0===t?void 0:t.stack,timestamp:(new Date).toISOString()})})),window.addEventListener("unhandledrejection",(e=>{var t;this.error("Unhandled Promise Rejection",{category:l,reason:e.reason,stack:null===(t=e.reason)||void 0===t?void 0:t.stack,timestamp:(new Date).toISOString()})})),window.__LOGGER_ERROR_BOUNDARY__=(e,t)=>{this.error("React Error Boundary",{category:u,error:e.message,stack:e.stack,componentStack:t.componentStack,timestamp:(new Date).toISOString()})}}shouldLog(e){return e.priority<=this.level.priority}formatMessage(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=(new Date).toISOString(),o={sessionId:this.sessionId,url:window.location.href,userAgent:navigator.userAgent,timestamp:n};return{level:e.label,message:t,data:r,session:o,...r}}logToConsole(e,t){if(!this.enableConsole)return;const r=`color: ${e.color}; font-weight: bold;`,n=(new Date).toLocaleTimeString();console.groupCollapsed(`%c[${e.label}] ${n} ${t.message}`,r),t.data&&Object.keys(t.data).length>0&&console.log("Data:",t.data),t.stack&&console.log("Stack:",t.stack),console.log("Session:",t.session),console.groupEnd()}async logToRemote(e){if(this.enableRemote&&this.remoteEndpoint)try{await fetch(this.remoteEndpoint,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)})}catch(t){console.warn("Failed to send log to remote endpoint:",t.message)}}addToBuffer(e){this.errorBuffer.push(e),this.errorBuffer.length>this.maxBufferSize&&this.errorBuffer.shift()}log(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this.shouldLog(e))return;const n=this.formatMessage(e,t,r);return this.logToConsole(e,n),this.logToRemote(n),this.addToBuffer(n),n}error(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t instanceof Error&&(t={message:t.message,stack:t.stack,name:t.name}),this.log(i.ERROR,e,{category:u,...t})}warn(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.log(i.WARN,e,t)}info(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.log(i.INFO,e,t)}debug(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.log(i.DEBUG,e,t)}trace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.log(i.TRACE,e,t)}mapError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.error(e,{category:a,...t})}apiError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.error(e,{category:l,...t})}networkError(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.error(e,{category:s,...t})}performance(e,t){const r={operation:e,duration:t,category:c,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}};return this.performanceMetrics.set(e,{...r,timestamp:Date.now()}),t>1e3?this.warn(`Slow operation detected: ${e}`,r):this.debug(`Performance: ${e}`,r),r}startTimer(e){const t=performance.now();return{operation:e,end:()=>{const r=performance.now()-t;return this.performance(e,r)}}}validationError(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.error(`Validation failed for ${e}`,{category:f,field:e,value:t,expectedType:r,...n})}getRecentErrors(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.errorBuffer.filter((e=>"ERROR"===e.level)).slice(-e)}getAllLogs(){return[...this.errorBuffer]}clearBuffer(){this.errorBuffer=[]}exportLogs(){const e={sessionId:this.sessionId,timestamp:(new Date).toISOString(),logs:this.getAllLogs(),performance:Array.from(this.performanceMetrics.entries()),environment:{userAgent:navigator.userAgent,url:window.location.href,nodeEnv:"production",logLevel:this.level.label}},t=new Blob([JSON.stringify(e,null,2)],{type:"application/json"}),r=URL.createObjectURL(t),n=document.createElement("a");n.href=r,n.download=`logs-${this.sessionId}.json`,n.click(),URL.revokeObjectURL(r)}createChildLogger(e){var t=this;return{error:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.error(r,{...n,context:e})},warn:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.warn(r,{...n,context:e})},info:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.info(r,{...n,context:e})},debug:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.debug(r,{...n,context:e})},trace:function(r){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t.trace(r,{...n,context:e})}}}};
2"undefined"!==typeof window&&(window.logger=d);const p=d,h=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),y=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t)).join(" ").trim()};var m={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const g=(0,t.forwardRef)(((e,r)=>{let{color:n="currentColor",size:o=24,strokeWidth:i=2,absoluteStrokeWidth:a,className:l="",children:u,iconNode:s,...c}=e;return(0,t.createElement)("svg",{ref:r,...m,width:o,height:o,stroke:n,strokeWidth:a?24*Number(i)/Number(o):i,className:y("lucide",l),...c},[...s.map((e=>{let[r,n]=e;return(0,t.createElement)(r,n)})),...Array.isArray(u)?u:[u]])})),v=(e,r)=>{const n=(0,t.forwardRef)(((n,o)=>{let{className:i,...a}=n;return(0,t.createElement)(g,{ref:o,iconNode:r,className:y(`lucide-${h(e)}`,i),...a})}));return n.displayName=`${e}`,n},b=v("MapPin",[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]),x=v("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]),w=v("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),S=v("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]),k=v("Github",[["path",{d:"M15 22v-4a4.8 4.8 0 0 0-1-3.5c3 0 6-2 6-5.5.08-1.25-.27-2.48-1-3.5.28-1.15.28-2.35 0-3.5 0 0-1 0-3 1.5-2.64-.5-5.36-.5-8 0C6 2 5 2 5 2c-.3 1.15-.3 2.35 0 3.5A5.403 5.403 0 0 0 4 9c0 3.5 3 5.5 6 5.5-.39.49-.68 1.05-.85 1.65-.17.6-.22 1.23-.15 1.85v4",key:"tonef"}],["path",{d:"M9 18c-4.51 2-5-2-7-2",key:"9comsn"}]]),O=v("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),j=e=>{let{onComplete:r}=e;const[n,i]=(0,t.useState)("about"),[a,l]=(0,t.useState)(!1);return(0,o.jsxs)("div",{className:"fixed inset-0 font-sora bg-cream flex flex-col",children:[(0,o.jsxs)("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[(0,o.jsx)("div",{className:"absolute top-0 left-0 w-1/3 h-1/3 bg-sage/10 rounded-full blur-3xl transform -translate-x-1/2 -translate-y-1/2"}),(0,o.jsx)("div",{className:"absolute bottom-0 right-0 w-1/2 h-1/2 bg-forest/5 rounded-full blur-3xl transform translate-x-1/4 translate-y-1/4"})]}),(0,o.jsxs)("div",{className:"flex-1 w-full p-8 flex flex-col max-h-screen overflow-auto",children:[(0,o.jsxs)("header",{className:"mb-8",children:[(0,o.jsxs)("div",{className:"flex items-center justify-center gap-4 mb-6",children:[(0,o.jsx)("div",{className:"w-16 h-16 flex items-center justify-center",children:(0,o.jsx)("img",{src:"/wildfire-smoke-tool/logo192.png",alt:"Wildfire Smoke Tool Logo",className:"w-full h-full object-contain rounded-md"})}),(0,o.jsxs)("h1",{className:"text-5xl font-bold text-obsidian",children:[(0,o.jsx)("span",{className:"text-mahogany",children:"Wildfire"})," Smoke Forecast Tool"]})]}),(0,o.jsxs)("div",{className:"flex justify-center gap-4 mb-8",children:[(0,o.jsxs)("button",{onClick:r,className:"bg-mahogany hover:bg-mahogany/90 text-white font-bold text-lg py-3 px-10 rounded-xl transition-all transform hover:scale-105 shadow-lg flex items-center justify-center",children:[(0,o.jsx)(b,{className:"w-5 h-5 mr-2"}),"Enter Map"]}),(0,o.jsxs)("button",{onClick:()=>{l(!0)},className:"bg-sage hover:bg-sage/90 text-forest font-bold text-lg py-3 px-10 rounded-xl transition-all transform hover:scale-105 shadow-lg flex items-center justify-center",children:[(0,o.jsx)(x,{className:"w-5 h-5 mr-2"}),"Demo"]})]}),(0,o.jsx)("div",{className:"flex justify-center mb-6",children:(0,o.jsxs)("div",{className:"flex gap-4 p-1 bg-white/50 backdrop-blur-sm rounded-xl shadow-md",children:[(0,o.jsxs)("button",{onClick:()=>i("about"),className:"py-3 px-8 rounded-lg flex items-center transition-all relative "+("about"===n?"bg-sage/30 text-forest font-semibold shadow-sm":"text-forest/70 hover:bg-forest/5"),children:[(0,o.jsx)(w,{className:"w-5 h-5 mr-3 "+("about"===n?"text-mahogany":"text-forest/60")}),(0,o.jsx)("span",{children:"About"}),"about"===n&&(0,o.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-mahogany rounded-b-lg"})]}),(0,o.jsxs)("button",{onClick:()=>i("feedback"),className:"py-3 px-8 rounded-lg flex items-center transition-all relative "+("feedback"===n?"bg-sage/30 text-forest font-semibold shadow-sm":"text-forest/70 hover:bg-forest/5"),children:[(0,o.jsx)(S,{className:"w-5 h-5 mr-3 "+("feedback"===n?"text-mahogany":"text-forest/60")}),(0,o.jsx)("span",{children:"Feedback"}),"feedback"===n&&(0,o.jsx)("div",{className:"absolute bottom-0 left-0 w-full h-1 bg-mahogany rounded-b-lg"})]})]})})]}),(0,o.jsxs)("div",{className:"flex-1 mb-8",children:["about"===n&&(0,o.jsx)("div",{className:"flex justify-center",children:(0,o.jsxs)("div",{className:"bg-white/70 backdrop-blur-sm p-8 rounded-xl shadow-lg max-w-4xl w-full",children:[(0,o.jsx)("h2",{className:"text-3xl font-bold text-forest mb-6",children:"About This Tool"}),(0,o.jsx)("div",{className:"h-1 w-20 bg-mahogany mb-6"}),(0,o.jsx)("p",{className:"text-xl text-forest-dark mb-4 font-redhat",children:"This product depicts a smoke forecast for the Western U.S. using the CMAQ chemical transport model, with smoke emissions estimated using version 1 of TraceAQs fire activity parameterization. Smoke forecasts are generated out to 2 days and have a spatial grid spacing of 12-km."}),(0,o.jsx)("p",{className:"text-xl text-forest-dark mb-8 font-redhat",children:"This model is supported by the Wilkes Center for Climate Science and Policy, National Science Foundation CIVIC Innovation Program, and the University of Utah's Center for High Performance Computing."})]})}),"feedback"===n&&(0,o.jsxs)("div",{className:"bg-white/70 backdrop-blur-sm p-8 rounded-xl shadow-lg",children:[(0,o.jsx)("h2",{className:"text-3xl font-bold text-forest mb-6",children:"Submit Feedback"}),(0,o.jsx)("div",{className:"h-1 w-20 bg-mahogany mb-6"}),(0,o.jsxs)("div",{className:"bg-white rounded-xl p-6 shadow-sm",children:[(0,o.jsxs)("div",{className:"flex items-center mb-4",children:[(0,o.jsx)(k,{className:"w-6 h-6 text-forest mr-3"}),(0,o.jsx)("h4",{className:"font-medium text-xl text-forest",children:"GitHub Issues"})]}),(0,o.jsx)("p",{className:"text-forest-dark mb-6 font-redhat",children:"For bug reports, feature requests, and technical feedback, please submit a GitHub issue. This helps us track and address your concerns effectively."}),(0,o.jsxs)("div",{className:"bg-cream border border-sage/50 rounded-lg p-5 flex items-center",children:[(0,o.jsx)("div",{className:"flex-1 text-forest-dark overflow-hidden text-ellipsis font-redhat",children:"github.com/wilkes-center/wildfire-smoke-tool/issues"}),(0,o.jsx)("a",{href:"https://github.com/wilkes-center/wildfire-smoke-tool/issues",target:"_blank",rel:"noopener noreferrer",className:"ml-4 px-5 py-2 bg-forest text-cream rounded-lg hover:bg-forest-dark transition-colors font-medium flex-shrink-0",children:"Submit Issue"})]})]})]})]})]}),(0,o.jsx)("footer",{className:"w-full py-4 px-8",style:{backgroundColor:"#1a1a1a"},children:(0,o.jsx)("div",{className:"text-center",children:(0,o.jsx)("p",{className:"text-white font-redhat text-sm",children:"The Wilkes Center for Climate Science & Policy"})})}),a&&(0,o.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 backdrop-blur-sm",children:(0,o.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-[90vw] h-[90vh] max-w-7xl flex flex-col",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between p-6 border-b border-gray-200",children:[(0,o.jsx)("h2",{className:"text-2xl font-bold text-obsidian",children:"Interactive Demo"}),(0,o.jsx)("button",{onClick:()=>{l(!1)},className:"p-2 hover:bg-gray-100 rounded-full transition-colors",children:(0,o.jsx)(O,{className:"w-6 h-6 text-gray-500"})})]}),(0,o.jsx)("div",{className:"flex-1 p-6",children:(0,o.jsx)("iframe",{src:"https://storymaps.arcgis.com/stories/72ed342efcdb42d2a60016835ad1fcdf",width:"100%",height:"100%",frameBorder:"0",allowFullScreen:!0,allow:"geolocation",className:"rounded-lg"})})]})})]})},_=()=>(0,o.jsx)("div",{className:"fixed inset-0 font-sora bg-white flex items-center justify-center",children:(0,o.jsxs)("div",{className:"loading-container",children:[(0,o.jsx)("div",{className:"fixed-circle"}
2),(0,o.jsx)("svg",{className:"triangles-svg",viewBox:"0 0 280 245",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsxs)("g",{children:[(0,o.jsx)("path",{d:"M 28 224 L 140 224 L 28 112 Z",fill:"#8FA775"}),(0,o.jsx)("path",{d:"M 140 224 L 252 224 L 252 112 Z",fill:"#1B5E5F"})]})}),(0,o.jsxs)("div",{className:"loading-text",children:["Loading",(0,o.jsx)("span",{className:"loading-dots"})]})]})}),E=v("CircleHelp",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),P=t.createContext(null);function C(e,t){if(e===t)return!0;if(!e||!t)return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!C(e[r],t[r]))return!1;return!0}if(Array.isArray(t))return!1;if("object"===typeof e&&"object"===typeof t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const o of r){if(!t.hasOwnProperty(o))return!1;if(!C(e[o],t[o]))return!1}return!0}return!1}function M(e,t){if(!e.getProjection)return;const r=e.getProjection();C(r,t.getProjection())||t.setProjection(r)}function T(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function A(e,t){const r=t.viewState||t;let n=!1;if("zoom"in r){const t=e.zoom;e.zoom=r.zoom,n=n||t!==e.zoom}if("bearing"in r){const t=e.bearing;e.bearing=r.bearing,n=n||t!==e.bearing}if("pitch"in r){const t=e.pitch;e.pitch=r.pitch,n=n||t!==e.pitch}if(r.padding&&!e.isPaddingEqual(r.padding)&&(n=!0,e.padding=r.padding),"longitude"in r&&"latitude"in r){const t=e.center;e.center=new t.constructor(r.longitude,r.latitude),n=n||t!==e.center}return n}const N=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function D(e){if(!e)return null;if("string"===typeof e)return e;if("toJS"in e&&(e=e.toJS()),!e.layers)return e;const t={};for(const n of e.layers)t[n.id]=n;const r=e.layers.map((e=>{let r=null;"interactive"in e&&(r=Object.assign({},e),delete r.interactive);const n=t[e.ref];if(n){r=r||Object.assign({},e),delete r.ref;for(const e of N)e in n&&(r[e]=n[e])}return r||e}));return{...e,layers:r}}const L={version:8,sources:{},layers:[]},I={mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",click:"onClick",dblclick:"onDblClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",mouseout:"onMouseOut",contextmenu:"onContextMenu",touchstart:"onTouchStart",touchend:"onTouchEnd",touchmove:"onTouchMove",touchcancel:"onTouchCancel"},z={movestart:"onMoveStart",move:"onMove",moveend:"onMoveEnd",dragstart:"onDragStart",drag:"onDrag",dragend:"onDragEnd",zoomstart:"onZoomStart",zoom:"onZoom",zoomend:"onZoomEnd",rotatestart:"onRotateStart",rotate:"onRotate",rotateend:"onRotateEnd",pitchstart:"onPitchStart",pitch:"onPitch",pitchend:"onPitchEnd"},R={wheel:"onWheel",boxzoomstart:"onBoxZoomStart",boxzoomend:"onBoxZoomEnd",boxzoomcancel:"onBoxZoomCancel",resize:"onResize",load:"onLoad",render:"onRender",idle:"onIdle",remove:"onRemove",data:"onData",styledata:"onStyleData",sourcedata:"onSourceData",error:"onError"},B=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],F=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ${constructor(e,t,r){this._map=null,this._internalUpdate=!1,this._inRender=!1,this._hoveredFeatures=null,this._deferredEvents={move:!1,zoom:!1,pitch:!1,rotate:!1},this._onEvent=e=>{const t=this.props[R[e.type]];t?t(e):"error"===e.type&&console.error(e.error)},this._onPointerEvent=e=>{"mousemove"!==e.type&&"mouseout"!==e.type||this._updateHover(e);const t=this.props[I[e.type]];t&&(this.props.interactiveLayerIds&&"mouseover"!==e.type&&"mouseout"!==e.type&&(e.features=this._hoveredFeatures||this._queryRenderedFeatures(e.point)),t(e),delete e.features)},this._onCameraEvent=e=>{if(!this._internalUpdate){const t=this.props[z[e.type]];t&&t(e)}e.type in this._deferredEvents&&(this._deferredEvents[e.type]=!1)},this._MapClass=e,this.props=t,this._initialize(r)}get map(){return this._map}get transform(){return this._renderTransform}setProps(e){const t=this.props;this.props=e;const r=this._updateSettings(e,t);r&&this._createShadowTransform(this._map);const n=this._updateSize(e),o=this._updateViewState(e,!0);this._updateStyle(e,t),this._updateStyleComponents(e,t),this._updateHandlers(e,t),(r||n||o&&!this._map.isMoving())&&this.redraw()}static reuse(e,t){const r=$.savedMaps.pop();if(!r)return null;const n=r.map,o=n.getContainer();for(t.className=o.className;o.childNodes.length>0;)t.appendChild(o.childNodes[0]);n._container=t;const i=n._resizeObserver;i&&(i.disconnect(),i.observe(t)),r.setProps({...e,styleDiffing:!1}),n.resize();const{initialViewState:a}=e;return a&&(a.bounds?n.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),n.isStyleLoaded()?n.fire("load"):n.once("styledata",(()=>n.fire("load"))),n._update(),r}_initialize(e){const{props:t}=this,{mapStyle:r=L}=t,n={...t,...t.initialViewState,accessToken:t.mapboxAccessToken||U()||null,container:e,style:D(r)},o=n.initialViewState||n.viewState||n;if(Object.assign(n,{center:[o.longitude||0,o.latitude||0],zoom:o.zoom||0,pitch:o.pitch||0,bearing:o.bearing||0}),t.gl){const e=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=e,t.gl)}const i=new this._MapClass(n);o.padding&&i.setPadding(o.padding),t.cursor&&(i.getCanvas().style.cursor=t.cursor),this._createShadowTransform(i);const a=i._render;i._render=e=>{this._inRender=!0,a.call(i,e),this._inRender=!1};const l=i._renderTaskQueue.run;i._renderTaskQueue.run=e=>{l.call(i._renderTaskQueue,e),this._onBeforeRepaint()},i.on("render",(()=>this._onAfterRepaint()));const u=i.fire;i.fire=this._fireEvent.bind(this,u),i.on("resize",(()=>{this._renderTransform.resize(i.transform.width,i.transform.height)})),i.on("styledata",(()=>{this._updateStyleComponents(this.props,{}),M(i.transform,this._renderTransform)})),i.on("sourcedata",(()=>this._updateStyleComponents(this.props,{})));for(const s in I)i.on(s,this._onPointerEvent);for(const s in z)i.on(s,this._onCameraEvent);for(const s in R)i.on(s,this._onEvent);this._map=i}recycle(){const e=this.map.getContainer().querySelector("[mapboxgl-children]");null===e||void 0===e||e.remove(),$.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const e=this._map;!this._inRender&&e.style&&(e._frame&&(e._frame.cancel(),e._frame=null),e._render())}_createShadowTransform(e){const t=function(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}(e.transform);e.painter.transform=t,this._renderTransform=t}_updateSize(e){const{viewState:t}=e;if(t){const e=this._map;if(t.width!==e.transform.width||t.height!==e.transform.height)return e.resize(),!0}return!1}_updateViewState(e,t){if(this._internalUpdate)return!1;const r=this._map,n=this._renderTransform,{zoom:o,pitch:i,bearing:a}=n,l=r.isMoving();l&&(n.cameraElevationReference="sea");const u=A(n,{...T(r.transform),...e});if(l&&(n.cameraElevationReference="ground"),u&&t){const e=this._deferredEvents;e.move=!0,e.zoom||(e.zoom=o!==n.zoom),e.rotate||(e.rotate=a!==n.bearing),e.pitch||(e.pitch=i!==n.pitch)}return l||A(r.transform,e),u}_updateSettings(e,t){const r=this._map;let n=!1;for(const o of B)if(o in e&&!C(e[o],t[o])){n=!0;const t=r[`set${o[0].toUpperCase()}${o.slice(1)}`];null===t||void 0===t||t.call(r,e[o])}return n}_updateStyle(e,t){if(e.cursor!==t.cursor&&(this._map.getCanvas().style.cursor=e.cursor||""),e.mapStyle!==t.mapStyle){const{mapStyle:t=L,styleDiffing:r=!0}=e,n={diff:r};return"localIdeographFontFamily"in e&&(n.localIdeographFontFamily=e.localIdeographFontFamily),this._map.setStyle(D(t),n),!0}return!1}_updateStyleComponents(e,t){const r=this._map;let n=!1;return r.isStyleLoaded()&&("light"in e&&r.setLight&&!C(e.light,t.light)&&(n=!0,r.setLight(e.light)),"fog"in e&&r.setFog&&!C(e.fog,t.fog)&&(n=!0,r.setFog(e.fog)),"terrain"in e&&r.setTerrain&&!C(e.terrain,t.terrain)&&(e.terrain&&!r.getSource(e.terrain.source)||(n=!0,r.setTerrain(e.terrain)))),n}_updateHandlers(e,t){var r,n;const o=this._map;let i=!1;for(const a of F){const l=null===(r=e[a])||void 0===r||r;
2C(l,null===(n=t[a])||void 0===n||n)||(i=!0,l?o[a].enable(l):o[a].disable())}return i}_queryRenderedFeatures(e){const t=this._map,r=t.transform,{interactiveLayerIds:n=[]}=this.props;try{return t.transform=this._renderTransform,t.queryRenderedFeatures(e,{layers:n.filter(t.getLayer.bind(t))})}catch(o){return[]}finally{t.transform=r}}_updateHover(e){var t;const{props:r}=this;if(r.interactiveLayerIds&&(r.onMouseMove||r.onMouseEnter||r.onMouseLeave)){const r=e.type,n=(null===(t=this._hoveredFeatures)||void 0===t?void 0:t.length)>0,o=this._queryRenderedFeatures(e.point),i=o.length>0;!i&&n&&(e.type="mouseleave",this._onPointerEvent(e)),this._hoveredFeatures=o,i&&!n&&(e.type="mouseenter",this._onPointerEvent(e)),e.type=r}else this._hoveredFeatures=null}_fireEvent(e,t,r){const n=this._map,o=n.transform,i="string"===typeof t?t:t.type;return"move"===i&&this._updateViewState(this.props,!1),i in z&&("object"===typeof t&&(t.viewState=T(o)),this._map.isMoving())?(n.transform=this._renderTransform,e.call(n,t,r),n.transform=o,n):(e.call(n,t,r),n)}_onBeforeRepaint(){const e=this._map;this._internalUpdate=!0;for(const r in this._deferredEvents)this._deferredEvents[r]&&e.fire(r);this._internalUpdate=!1;const t=this._map.transform;e.transform=this._renderTransform,this._onAfterRepaint=()=>{M(this._renderTransform,t),e.transform=t}}}function U(){let e=null;if("undefined"!==typeof location){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||{NODE_ENV:"production",PUBLIC_URL:"/wildfire-smoke-tool",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_MAPBOX_ACCESS_TOKEN:"pk.eyJ1IjoicGt1bGFuZGgiLCJhIjoiY20xNGZqbDBiMHhmdzJucHd5OTA4d2h2bCJ9.J6GeFa6bPfwMKqufI9L3MA",REACT_APP_CENSUS_API_KEY:"00dcad0f8330b05f9ad991c27c3efeaca1341db7",REACT_APP_DEBUG:"true",REACT_APP_TEST:"working",REACT_APP_FEEDBACK_EMAIL:"[email protected]",REACT_APP_LOG_LEVEL:"DEBUG",REACT_APP_ENABLE_REMOTE_LOGGING:"false",REACT_APP_ENABLE_CONSOLE_LOGGING:"true",REACT_APP_ENABLE_PERFORMANCE_TRACKING:"true",REACT_APP_ENABLE_AUTO_LOG_MOUNTS:"true"}.MapboxAccessToken}catch(t){}try{e=e||"pk.eyJ1IjoicGt1bGFuZGgiLCJhIjoiY20xNGZqbDBiMHhmdzJucHd5OTA4d2h2bCJ9.J6GeFa6bPfwMKqufI9L3MA"}catch(r){}return e}$.savedMaps=[];const H=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function W(e){if(!e)return null;const t=e.map,r={getMap:()=>t,getCenter:()=>e.transform.center,getZoom:()=>e.transform.zoom,getBearing:()=>e.transform.bearing,getPitch:()=>e.transform.pitch,getPadding:()=>e.transform.padding,getBounds:()=>e.transform.getBounds(),project:r=>{const n=t.transform;t.transform=e.transform;const o=t.project(r);return t.transform=n,o},unproject:r=>{const n=t.transform;t.transform=e.transform;const o=t.unproject(r);return t.transform=n,o},queryTerrainElevation:(r,n)=>{const o=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,n);return t.transform=o,i},queryRenderedFeatures:(r,n)=>{const o=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,n);return t.transform=o,i}};for(const n of function(e){const t=new Set;let r=e;for(;r;){for(const n of Object.getOwnPropertyNames(r))"_"!==n[0]&&"function"===typeof e[n]&&"fire"!==n&&"setEventedParent"!==n&&t.add(n);r=Object.getPrototypeOf(r)}return Array.from(t)}(t))n in r||H.includes(n)||(r[n]=t[n].bind(t));return r}const q="undefined"!==typeof document?t.useLayoutEffect:t.useEffect,V=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];const G=t.createContext(null);function K(e,r,n){const o=(0,t.useContext)(P),[i,a]=(0,t.useState)(null),l=(0,t.useRef)(),{current:u}=(0,t.useRef)({mapLib:null,map:null});(0,t.useEffect)((()=>{const t=e.mapLib;let r,i=!0;return Promise.resolve(t||n).then((t=>{if(!i)return;if(!t)throw new Error("Invalid mapLib");const n="Map"in t?t:t.default;if(!n.Map)throw new Error("Invalid mapLib");if(function(e,t){for(const n of V)n in t&&(e[n]=t[n]);const{RTLTextPlugin:r="https://api.mapbox.com/mapbox-gl-js/plugins/mapbox-gl-rtl-text/v0.2.3/mapbox-gl-rtl-text.js"}=t;r&&e.getRTLTextPluginStatus&&"unavailable"===e.getRTLTextPluginStatus()&&e.setRTLTextPlugin(r,(e=>{e&&console.error(e)}),!0)}(n,e),n.supported&&!n.supported(e))throw new Error("Map is not supported by this browser");e.reuseMaps&&(r=$.reuse(e,l.current)),r||(r=new $(n.Map,e,l.current)),u.map=W(r),u.mapLib=n,a(r),null===o||void 0===o||o.onMapMount(u.map,e.
2id)})).catch((t=>{const{onError:r}=e;r?r({type:"error",target:null,originalEvent:null,error:t}):console.error(t)})),()=>{i=!1,r&&(null===o||void 0===o||o.onMapUnmount(e.id),e.reuseMaps?r.recycle():r.destroy())}}),[]),q((()=>{i&&i.setProps(e)})),(0,t.useImperativeHandle)(r,(()=>u.map),[i]);const s=(0,t.useMemo)((()=>({position:"relative",width:"100%",height:"100%",...e.style})),[e.style]);return t.createElement("div",{id:e.id,ref:l,style:s},i&&t.createElement(G.Provider,{value:u},t.createElement("div",{"mapboxgl-children":"",style:{height:"100%"}},e.children)))}var Y=r(7950);const X=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Z(e,t){if(!e||!t)return;const r=e.style;for(const n in t){const e=t[n];Number.isFinite(e)&&!X.test(n)?r[n]=`${e}px`:r[n]=e}}(0,t.memo)((0,t.forwardRef)((function(e,r){const{map:n,mapLib:o}=(0,t.useContext)(G),i=(0,t.useRef)({props:e});i.current.props=e;const a=(0,t.useMemo)((()=>{let r=!1;t.Children.forEach(e.children,(e=>{e&&(r=!0)}));const n={...e,element:r?document.createElement("div"):null},l=new o.Marker(n);return l.setLngLat([e.longitude,e.latitude]),l.getElement().addEventListener("click",(e=>{var t,r;null===(r=(t=i.current.props).onClick)||void 0===r||r.call(t,{type:"click",target:l,originalEvent:e})})),l.on("dragstart",(e=>{var t,r;const n=e;n.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDragStart)||void 0===r||r.call(t,n)})),l.on("drag",(e=>{var t,r;const n=e;n.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDrag)||void 0===r||r.call(t,n)})),l.on("dragend",(e=>{var t,r;const n=e;n.lngLat=a.getLngLat(),null===(r=(t=i.current.props).onDragEnd)||void 0===r||r.call(t,n)})),l}),[]);(0,t.useEffect)((()=>(a.addTo(n.getMap()),()=>{a.remove()})),[]);const{longitude:l,latitude:u,offset:s,style:c,draggable:f=!1,popup:d=null,rotation:p=0,rotationAlignment:h="auto",pitchAlignment:y="auto"}=e;return(0,t.useEffect)((()=>{Z(a.getElement(),c)}),[c]),(0,t.useImperativeHandle)(r,(()=>a),[]),a.getLngLat().lng===l&&a.getLngLat().lat===u||a.setLngLat([l,u]),s&&!function(e,t){const r=Array.isArray(e)?e[0]:e?e.x:0,n=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return r===o&&n===i}(a.getOffset(),s)&&a.setOffset(s),a.isDraggable()!==f&&a.setDraggable(f),a.getRotation()!==p&&a.setRotation(p),a.getRotationAlignment()!==h&&a.setRotationAlignment(h),a.getPitchAlignment()!==y&&a.setPitchAlignment(y),a.getPopup()!==d&&a.setPopup(d),(0,Y.createPortal)(e.children,a.getElement())})));function Q(e){return new Set(e?e.trim().split(/\s+/):[])}(0,t.memo)((0,t.forwardRef)((function(e,r){const{map:n,mapLib:o}=(0,t.useContext)(G),i=(0,t.useMemo)((()=>document.createElement("div")),[]),a=(0,t.useRef)({props:e});a.current.props=e;const l=(0,t.useMemo)((()=>{const t={...e},r=new o.Popup(t);return r.setLngLat([e.longitude,e.latitude]),r.once("open",(e=>{var t,r;null===(r=(t=a.current.props).onOpen)||void 0===r||r.call(t,e)})),r}),[]);if((0,t.useEffect)((()=>{const e=e=>{var t,r;null===(r=(t=a.current.props).onClose)||void 0===r||r.call(t,e)};return l.on("close",e),l.setDOMContent(i).addTo(n.getMap()),()=>{l.off("close",e),l.isOpen()&&l.remove()}}),[]),(0,t.useEffect)((()=>{Z(l.getElement(),e.style)}),[e.style]),(0,t.useImperativeHandle)(r,(()=>l),[]),l.isOpen()&&(l.getLngLat().lng===e.longitude&&l.getLngLat().lat===e.latitude||l.setLngLat([e.longitude,e.latitude]),e.offset&&!C(l.options.offset,e.offset)&&l.setOffset(e.offset),l.options.anchor===e.anchor&&l.options.maxWidth===e.maxWidth||(l.options.anchor=e.anchor,l.setMaxWidth(e.maxWidth)),l.options.className!==e.className)){const t=Q(l.options.className),r=Q(e.className);for(const e of t)r.has(e)||l.removeClassName(e);for(const e of r)t.has(e)||l.addClassName(e);l.options.className=e.className}return(0,Y.createPortal)(e.children,i)})));const J=function(e,r,n,o){const i=(0,t.useContext)(G),a=(0,t.useMemo)((()=>e(i)),[]);return(0,t.useEffect)((()=>{const e=o||n||r,t="function"===typeof r&&"function"===typeof n?r:null,l="function"===typeof n?n:"function"===typeof r?r:null,{map:u}=i;return u.hasControl(a)||(u.addControl(a,null===e||void 0===e?void 0:e.position),t&&t(i)),()=>{l&&l(i),u.hasControl(a)&&u.removeControl(a)}}),[]),a};(0,t.memo)((function(e){const r=J((t=>{let{mapLib:r}=t;return new r.AttributionControl(e)}),{position:e.position});return(0,t.useEffect)((()=>{Z(r._container,e.style)}),[e.style]),null}));(0,t.memo)((function(e){const r=J((t=>{let{mapLib:r}=t;return new r.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)})}),{position:e.position});return(0,t.useEffect)((()=>{Z(r._controlContainer,e.style)}),[e.style]),null}));(0,t.memo)((0,t.forwardRef)((function(e,r){const n=(0,t.useRef)({props:e}),o=J((t=>{let{mapLib:r}=t;const o=new r.GeolocateControl(e),i=o._setupUI;return o._setupUI=e=>{o._container.hasChildNodes()||i(e)},o.on("geolocate",(e=>{var t,r;null===(r=(t=n.current.props).onGeolocate)||void 0===r||r.call(t,e)})),o.on("error",(e=>{var t,r;null===(r=(t=n.current.props).onError)||void 0===r||r.call(t,e)})),o.on("outofmaxbounds",(e=>{var t,r;null===(r=(t=n.current.props).onOutOfMaxBounds)||void 0===r||r.call(t,e)})),o.on("trackuserlocationstart",(e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationStart)||void 0===r||r.call(t,e)})),o.on("trackuserlocationend",(e=>{var t,r;null===(r=(t=n.current.props).onTrackUserLocationEnd)||void 0===r||r.call(t,e)})),o}),{position:e.position});return n.current.props=e,(0,t.useImperativeHandle)(r,(()=>
2o),[]),(0,t.useEffect)((()=>{Z(o._container,e.style)}),[e.style]),null})));(0,t.memo)((function(e){const r=J((t=>{let{mapLib:r}=t;return new r.NavigationControl(e)}),{position:e.position});return(0,t.useEffect)((()=>{Z(r._container,e.style)}),[e.style]),null}));(0,t.memo)((function(e){const r=J((t=>{let{mapLib:r}=t;return new r.ScaleControl(e)}),{position:e.position}),n=(0,t.useRef)(e),o=n.current;n.current=e;const{style:i}=e;return void 0!==e.maxWidth&&e.maxWidth!==o.maxWidth&&(r.options.maxWidth=e.maxWidth),void 0!==e.unit&&e.unit!==o.unit&&r.setUnit(e.unit),(0,t.useEffect)((()=>{Z(r._container,i)}),[i]),null}));const ee=r.e(879).then(r.t.bind(r,879,23)),te=t.forwardRef((function(e,t){return K(e,t,ee)})),re=te,ne=[{value:0,label:"Good",maxValue:12,color:"#00d600",darkColor:"#00ff99",bgColor:"bg-green-500",textColor:"text-green-700",textDark:"text-emerald-400",textLight:"text-emerald-700",position:0},{value:12.1,label:"Moderate",maxValue:35.4,color:"#ffee00",darkColor:"#ffff00",bgColor:"bg-yellow-500",textColor:"text-yellow-700",textDark:"text-yellow-400",textLight:"text-yellow-700",position:16.67},{value:35.5,label:"Unhealthy for Sensitive Groups",shortLabel:"USG",maxValue:55.4,color:"#ff8800",darkColor:"#ffa500",bgColor:"bg-orange-500",textColor:"text-orange-700",textDark:"text-orange-400",textLight:"text-orange-700",position:33.33},{value:55.5,label:"Unhealthy",maxValue:150.4,color:"#ff1a1a",darkColor:"#ff0066",bgColor:"bg-red-500",textColor:"text-red-700",textDark:"text-rose-400",textLight:"text-rose-700",position:50},{value:150.5,label:"Very Unhealthy",maxValue:250.4,color:"#9933ff",darkColor:"#cc00ff",bgColor:"bg-purple-500",textColor:"text-purple-700",textDark:"text-purple-400",textLight:"text-purple-700",position:66.67},{value:250.5,label:"Hazardous",maxValue:500,color:"#990033",darkColor:"#ff00cc",bgColor:"bg-rose-500",textColor:"text-rose-700",textDark:"text-fuchsia-400",textLight:"text-rose-900",position:83.33},{value:500,label:"Extremely Hazardous",maxValue:1/0,color:"#990033",darkColor:"#ff00cc",bgColor:"bg-rose-500",textColor:"text-rose-700",textDark:"text-fuchsia-400",textLight:"text-rose-900",position:100}],oe=e=>["interpolate",["linear"],["coalesce",["to-number",["get","PM25"],0],0],...ne.flatMap((t=>[t.value,e?t.darkColor:t.color]))],ie="pk.eyJ1IjoicGt1bGFuZGgiLCJhIjoiY20xNGZqbDBiMHhmdzJucHd5OTA4d2h2bCJ9.J6GeFa6bPfwMKqufI9L3MA",{startDate:ae,endDate:le,totalHours:ue,isShowingPreviousDays:se}=(()=>{const e=(()=>{const e=new Date;return console.log("Using date as 'today':",e),console.log("UTC date components:",{year:e.getUTCFullYear(),month:e.getUTCMonth(),date:e.getUTCDate()}),new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0,0))})(),t=(()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getTime());r.setUTCHours(19,30,0,0);const n=e<r;return console.log("MDT data update check:",{currentTime:e.toISOString(),mdtUpdateTime:r.toISOString(),isBeforeUpdate:n,currentUTCHour:e.getUTCHours(),currentUTCMinutes:e.getUTCMinutes()}),n})();let r,n;if(t){const t=new Date(e);t.setUTCDate(t.getUTCDate()-1),r=t,n=new Date(e.getTime()+864e5-1),console.log("Before MDT data update - showing yesterday and today:",{yesterday:t.toISOString().split("T")[0],today:e.toISOString().split("T")[0],totalHours:48})}else{const t=new Date(e);t.setUTCDate(t.getUTCDate()+1),r=e,n=new Date(t.getTime()+864e5-1),console.log("After MDT data update - showing today and tomorrow:",{today:e.toISOString().split("T")[0],tomorrow:t.toISOString().split("T")[0],totalHours:48})}return{startDate:r,endDate:n,totalHours:48,isShowingPreviousDays:t}})(),ce=ae,fe=ue,de=se,pe=(()=>{const e=[],t=new Date(ae);for(let r=0;r<2;r++)e.push(new Date(t)),t.setUTCDate(t.getUTCDate()+1);return e})().flatMap((e=>(e=>{const t=(e=>e.toISOString().split("T")[0].replace(/-/g,""))(e);return console.log(`Generating tileset info for date: ${e} -> ${t}`),[{name:"00to08",start:0,end:7,index:0},{name:"08to16",start:8,end:15,index:1},{name:"16to24",start:16,end:23,index:2}].map((r=>{let{name:n,start:o,end:i,index:a}=r;return{id:`pkulandh.pm25-${t}-${a}`,layer:`${t}_${a}`,date:e.toISOString().split("T")[0],startHour:o,endHour:i}}))}
2)(e))),he="mapbox://styles/pkulandh/cm9ussqfa00hi01spdtlugo8m",ye="mapbox://styles/pkulandh/cm9iyi6qq00jo01rce7xjcfay",me={latitude:39.8283,longitude:-105,zoom:4,minZoom:4.5,maxZoom:9},ge=e=>{if(!e||!e.date)return{date:"",time:"",timezone:""};const t="string"===typeof e.date?e.date:e.date.toISOString().split("T")[0],[r,n,o]=t.split("-").map(Number),i=new Date(Date.UTC(r,n-1,o,e.hour,0,0,0)),a=i.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}),l=i.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",hour12:!1}),u=i.toLocaleTimeString("en-US",{timeZoneName:"short"}).split(" ").pop();return console.log(`Converting UTC ${e.date} ${e.hour}:00 -> Local ${a} ${l} ${u}`),{date:a,time:l,timezone:u,fullDateTime:i}},ve=()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getTime());r.setUTCHours(19,30,0,0);const n=e<r;return console.log("MDT data update check:",{currentTime:e.toISOString(),mdtUpdateTime:r.toISOString(),isBeforeUpdate:n,currentUTCHour:e.getUTCHours(),currentUTCMinutes:e.getUTCMinutes()}),n},be=(e,t)=>{const r=new Date,n=new Date(Date.UTC(r.getUTCFullYear(),r.getUTCMonth(),r.getUTCDate(),r.getUTCHours(),0,0,0)),o=Math.floor((n-e)/36e5);return console.log("Timeline calculation:",{now:r.toISOString(),currentUTC:n.toISOString(),startDate:e.toISOString(),hoursSinceStart:o,totalHours:t,isBeforeMDTUpdate:ve()}),o<0?(console.log("Current time is before timeline start, using hour 0"),0):o>=t?(console.log("Current time is after timeline end, using last hour"),t-1):(console.log(`Setting initial timeline hour to: ${o}`),o)},xe=(e,t,r)=>{if(e)try{e.getLayer(t)&&e.removeLayer(t),e.getSource(r)&&e.removeSource(r)}catch(n){console.warn(`Error removing layer/source (${t}/${r}):`,n)}},we="census-tracts",Se="census-tracts-layer",ke={"fill-color":{light:"#99aa88",dark:"#3a7370"},"fill-outline-color":{light:"#7d8f6d",dark:"#2d5954"}};const Oe=new class{constructor(){this.layerInitialized=!1,this.progressCallbacks=new Set,this.initPromise=null}onProgress(e){return this.progressCallbacks.add(e),()=>this.progressCallbacks.delete(e)}notifyProgress(e,t){this.progressCallbacks.forEach((r=>r({stage:e,progress:t})))}async initializeLayer(e,t){if(!e)throw new Error("Map instance is required");return this.initPromise||(this.initPromise=(async()=>{try{this.notifyProgress("layer",0);const r=await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;if(!e)return!1;for(let r=0;r<t;r++){if(e.isStyleLoaded())return!0;await new Promise((e=>setTimeout(e,100)))}return!1}(e);if(!r)throw new Error("Map not ready after maximum attempts");return this.notifyProgress("layer",30),xe(e,Se,we),this.notifyProgress("layer",50),e.addSource(we,{type:"vector",url:"mapbox://pkulandh.3r0plqr0",maxzoom:12,minzoom:4}),this.notifyProgress("layer",70),e.addLayer({id:Se,type:"fill",source:we,"source-layer":"cb_2019_us_tract_500k-2qnt3v",minzoom:4,maxzoom:12,paint:{"fill-color":t?ke["fill-color"].dark:ke["fill-color"].light,"fill-opacity":0,"fill-outline-color":t?ke["fill-outline-color"].dark:ke["fill-outline-color"].light}}),this.notifyProgress("layer",90),this.layerInitialized=!0,this.notifyProgress("layer",100),{success:!0,layerInitialized:this.layerInitialized}}catch(r){throw console.error("Error initializing census tract layer:",r),this.layerInitialized=!1,r}finally{this.initPromise=null}})()),this.initPromise}updateColors(e,t){((e,t,r,n)=>{if(e&&e.getLayer(t))try{for(const[o,i]of Object.entries(r))e.setPaintProperty(t,o,n?i.dark:i.light)}catch(o){console.warn(`Error updating colors for layer ${t}:`,o)}})(e,Se,ke,t)}updateVisibility(e,t){if(e&&e.getLayer(Se))try{const r=t?.1:0;e.setPaintProperty(Se,"fill-opacity",r)}catch(r){console.error("Error updating census layer visibility:",r)}}cleanupLayers(e){xe(e,Se,we)}async preloadAll(e,t){if(!e)throw new Error("Map instance is required");try{return this.notifyProgress("overall",0),await this.initializeLayer(e,t),this.notifyProgress("overall",100),{success:!0,layerInitialized:this.layerInitialized}}catch(r){throw console.error("Error in preloadAll:",r),r}}cleanup(e){this.cleanupLayers(e),this.layerInitialized=!1,this.progressCallbacks.clear()}};var je=r(3536),_e=r.n(je);const Ee=e=>"string"===typeof e&&11===e.length&&/^\d{11}$/.test(e),Pe=(e,t)=>
2{if(!Array.isArray(e)||e.length<2)return!1;const r=e[0],n=e[1];let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i][0],l=t[i][1],u=t[a][0],s=t[a][1];l>n!==s>n&&r<(u-e)*(n-l)/(s-l)+e&&(o=!o)}return o};new Map;const Ce=async(e,t,r)=>{if(!e||!t)return null;try{const n=(e=>e.reduce(((e,t)=>{let[r,n]=t;return{minLng:Math.min(e.minLng,r),maxLng:Math.max(e.maxLng,r),minLat:Math.min(e.minLat,n),maxLat:Math.max(e.maxLat,n)}}),{minLng:1/0,maxLng:-1/0,minLat:1/0,maxLat:-1/0}))(t),o=((e,t,r)=>{const n=e.project([t.minLng,t.minLat]),o=e.project([t.maxLng,t.maxLat]);return e.queryRenderedFeatures([n,o],{layers:[r]})})(e,n,"census-tracts-layer");if(!o||0===o.length)return null;const i=o.filter((e=>!(!e.geometry||!e.properties)&&e.geometry.coordinates[0].some((e=>Pe(e,t)))));return 0===i.length?null:(await Ae(e,i,r),{features:i,tractCount:i.length})}catch(n){return console.error("Error highlighting tracts:",n),null}},Me=async(e,t,r)=>{if(!e||!t)return{tracts:{},summary:{totalPopulation:0,tractCount:0},status:"error"};try{const n=await Ce(e,t,r);if(!n)return{tracts:{},summary:{totalPopulation:0,tractCount:0},status:"noTracts"};const o={tracts:{},summary:{totalPopulation:null,tractCount:n.tractCount},status:"calculating"};return{...o,populationPromise:(async()=>{try{const e=await(async()=>{try{const e="https://api.census.gov/data/2020/acs/acs5",t="00dcad0f8330b05f9ad991c27c3efeaca1341db7",r=["B01003_001E"],n=`https://api.census.gov/data/2020/acs/acs5?get=NAME&for=state:*&key=${t}`,o=await fetch(n);if(!o.ok)throw new Error(`States API request failed: ${o.status}`);const i=(await o.json()).slice(1).map((e=>e[1])),a=await Promise.all(i.map((async n=>{const o=`${e}?get=${r.join(",")},NAME&for=tract:*&in=state:${n}&in=county:*&key=${t}`,i=await fetch(o);return i.ok?i.json():(console.warn(`Skipping state ${n} due to error:`,i.statusText),[])}))),l={};a.forEach((e=>{if(!Array.isArray(e)||e.length<2)return;const[t,...r]=e,n=t.reduce(((e,t,r)=>(e[t]=r,e)),{});r.forEach((e=>{try{const t=e[n.state],r=e[n.county],o=e[n.tract],i=parseInt(e[n.B01003_001E])||0;if(!t||!r||!o)return void console.warn("Skipping row with missing geographic identifiers");const a=`${t}${r.padStart(3,"0")}${o.padStart(6,"0")}`;l[a]={population:i,metadata:{state:t,county:r,tract:o,geoid:a}}}catch(t){console.warn("Error processing census tract row:",t)}}))}));const u=Object.keys(l).length;if(console.log(`Successfully processed ${u.toLocaleString()} census tracts`),0===u)throw new Error("No census tracts were successfully processed");return l}catch(e){throw console.error("Error fetching census data:",{message:e.message,stack:e.stack}),e}})(),t={};let r=0;return n.features.forEach((n=>{var o,i,a;const l=n.properties.GEOID;if(!l||!Ee(l))return;const u=e[l],s=u?u.population:0;t[l]={population:s,metadata:{landArea:parseFloat(n.properties.ALAND)||0,geoid:l,state:(null===u||void 0===u||null===(o=u.metadata)||void 0===o?void 0:o.state)||n.properties.STATEFP,county:(null===u||void 0===u||null===(i=u.metadata)||void 0===i?void 0:i.county)||n.properties.COUNTYFP,tract:(null===u||void 0===u||null===(a=u.metadata)||void 0===a?void 0:a.tract)||n.properties.TRACTCE}},r+=s})),{tracts:t,summary:{totalPopulation:r,tractCount:n.tractCount},status:"complete"}}catch(e){return console.error("Error calculating population:",e),{tracts:{},summary:{totalPopulation:0,tractCount:n.tractCount},status:"error"}}})()}}catch(n){return console.error("Error in getSelectedCensusTracts:",n),{tracts:{},summary:{totalPopulation:0,tractCount:0},status:"error"}}};let Te=null;const Ae=async(e,t,r)=>{const n="selected-tracts",o="selected-tracts-highlight",i="selected-tracts-outline";try{Te&&(e.off("sourcedata",Te),e.off("styledata",Te),Te=null),[o,i].forEach((t=>{e.getLayer(t)&&e.removeLayer(t)})),e.getSource(n)&&e.removeSource(n);const a={type:"FeatureCollection",features:t.map((e=>({type:"Feature",geometry:e.geometry,properties:{id:e.properties.GEOID}})))};e.addSource(n,{type:"geojson",data:a}),e.addLayer({id:o,type:"fill",source:n,paint:{"fill-color":"#751d0c","fill-opacity":r?.5:.3,"fill-outline-color":"#751d0c"}}),e.addLayer({id:i,type:"line",source:n,paint:{"line-color":"#751d0c","line-width":1.5,"line-opacity":r?.9:.7}}),Te=()=>{try{e.getLayer(o)&&e.moveLayer(o),e.getLayer(i)&&e.moveLayer(i);["polygon-layer","polygon-layer-outline","polygon-layer-preview","polygon-layer-vertices"].forEach((t=>{e.getLayer(t)&&e.moveLayer(t,o)}))}catch(t){console.warn("Error positioning layers:",t)}},Te(),e.on("sourcedata",Te),e.on("styledata",Te)}catch(a){console.error("Error updating highlight layers:",a)}},Ne="selected-tracts-outline",De=Me,Le=e=>{let{mapInstance:r,drawingMode:n,setDrawingMode:o,isPointSelected:i,setIsPointSelected:a,polygon:l,setPolygon:u,tempPolygon:s,setTempPolygon:c,setMousePosition:f,lastClickTime:d,setLastClickTime:p,setIsPlaying:h,showTour:y,isDarkMode:m}=e;const g=(0,t.useCallback)((e=>{if(!y&&n){const{lng:t,lat:n}=e.lngLat,i=Date.now();if(i-d<300&&s.length>=2){const e=[...s,s[0]];if(u(e),o(!1),c([]),r){r.getCanvas().style.cursor="";const t=e.reduce(((e,t)=>{let[r,n]=t;return{minLng:Math.min(e.minLng,r),maxLng:Math.max(e.maxLng,r),minLat:Math.min(e.minLat,n),maxLat:Math.max(e.maxLat,n)}}),{minLng:1/0,maxLng:-1/0,minLat:1/0,maxLat:-1/0}),n=.2,o=(t.maxLat-t.minLat)*(1+n),i=(t.maxLng-t.minLng)*(1+n),a=[(t.minLng+t.maxLng)/2,(t.minLat+t.maxLat)/2],l=Math.log2(180/o)-1,u=Math.log2(360/i)-1,s=Math.min(l,u,8.9);r.flyTo({center:a,zoom:Math.max(s,3),duration:1e3})}return void p(0)}if(0===s.length&&r){r.getZoom()<6.5&&r.flyTo({center:[t,n],zoom:6.5,duration:1e3})}return c((e=>
2[...e,[t,n]])),void p(i)}}),[n,i,r,m,s,d,y,u,o,c,a,p]),v=(0,t.useCallback)((()=>{l&&(e=>{if(e)try{Te&&(e.off("sourcedata",Te),e.off("styledata",Te),Te=null),e.getLayer(Ne)&&e.removeLayer(Ne),xe(e,"selected-tracts-highlight","selected-tracts")}catch(t){console.error("Error cleaning up highlight layers:",t)}})(r),u(null),c([]),o(!1),h(!1),a(!1);const e=document.querySelector('[data-component="area-analysis"]');e&&e.dispatchEvent(new CustomEvent("clearData")),r&&(r.getCanvas().style.cursor="")}),[r,l,u,c,o,h,a]),b=(0,t.useCallback)((()=>y?"default":n?"crosshair":i?"not-allowed":"default"),[n,i,y]),x=(0,t.useCallback)((()=>{h(!1),o(!0),c([]),u(null),r&&(r.getCanvas().style.cursor="crosshair")}),[r,o,c,u,h]),w=(0,t.useCallback)((()=>{if(s.length>=3){const e=[...s,s[0]];u(e)}o(!1),c([]),r&&(r.getCanvas().style.cursor="")}),[s,r,u,o,c]);return(0,t.useEffect)((()=>{if(!r||!n)return;const e=e=>{f([e.lngLat.lng,e.lngLat.lat])};return r.on("mousemove",e),()=>{r.off("mousemove",e),f(null)}}),[r,n,f]),(0,t.useEffect)((()=>{if(r)return n?r.doubleClickZoom.disable():r.doubleClickZoom.enable(),(
2)=>{r&&!r._removed&&r.doubleClickZoom.enable()}}),[r,n]),{handleMapClick:g,clearPolygon:v,getCursor:b,startDrawing:x,finishDrawing:w}},Ie=e=>{let{mapInstance:r,polygon:n,tempPolygon:o,mousePosition:i,drawingMode:a,isDarkMode:l}=e;(0,t.useEffect)((()=>{if(!r||r._removed)return;const e="polygon-source",t="polygon-layer",u=`${t}-outline`,s=`${t}-preview`,c=`${e}-vertices`,f=`${t}-vertices`;try{(()=>{r.getSource(e)||r.addSource(e,{type:"geojson",data:{type:"Feature",geometry:{type:"Polygon",coordinates:[[]]}}}),r.getSource(c)||r.addSource(c,{type:"geojson",data:{type:"FeatureCollection",features:[]}}),r.getLayer(t)||r.addLayer({id:t,type:"fill",source:e,paint:{"fill-color":l?"#60A5FA":"#3B82F6","fill-opacity":l?.3:.2}}),r.getLayer(u)||r.addLayer({id:u,type:"line",source:e,paint:{"line-color":l?"#60A5FA":"#3B82F6","line-width":2}}),r.getLayer(s)||r.addLayer({id:s,type:"line",source:e,paint:{"line-color":l?"#60A5FA":"#3B82F6","line-width":2,"line-dasharray":[2,2]},layout:{visibility:"none"}}),r.getLayer(f)||r.addLayer({id:f,type:"circle",source:c,paint:{"circle-radius":5,"circle-color":l?"#60A5FA":"#3B82F6","circle-stroke-width":2,"circle-stroke-color":"white"}});const n=()=>{try{const e="selected-tracts-highlight";r.getLayer(e)?(r.getLayer(t)&&r.moveLayer(t,e),r.getLayer(u)&&r.moveLayer(u,e),r.getLayer(s)&&r.moveLayer(s,e),r.getLayer(f)&&r.moveLayer(f,e)):(r.getLayer(t)&&r.moveLayer(t),r.getLayer(u)&&r.moveLayer(u),r.getLayer(s)&&r.moveLayer(s),r.getLayer(f)&&r.moveLayer(f))}catch(e){console.warn("Error positioning polygon layers:",e)}};n(),setTimeout((()=>{n()}),100)})(),(()=>{if(r.getSource(e)){const t=n?[n]:o.length>0&&i?[[...o,i,o[0]]]:o.length>0?[o]:[[]];r.getSource(e).setData({type:"Feature",geometry:{type:"Polygon",coordinates:t}})}if(r.getSource(c)&&r.getSource(c).setData({type:"FeatureCollection",features:o.map((e=>({type:"Feature",geometry:{type:"Point",coordinates:e}})))}),r.getLayer(s)){const e=a&&i&&o.length>0;r.setLayoutProperty(s,"visibility",e?"visible":"none")}r.getLayer(f)&&r.setLayoutProperty(f,"visibility",o.length>0?"visible":"none")})()}catch(d){console.error("Error managing polygon visualization:",d)}}),[r,n,o,i,a,l])},ze=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{enablePerformanceTracking:n=!0,autoLogMounts:o=!1,context:i={}}=r,a=(0,t.useRef)(null),l=(0,t.useRef)(new Map);(0,t.useEffect)((()=>(a.current=p.createChildLogger({component:e,...i}),o&&a.current.debug(`${e} mounted`),()=>{o&&a.current.debug(`${e} unmounted`),l.current.clear()})),[e,o]);const u=(0,t.useCallback)((function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null===(t=a.current)||void 0===t?void 0:t.error(e,r)}),[]),s=(0,t.useCallback)((function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null===(t=a.current)||void 0===t?void 0:t.warn(e,r)}),[]),c=(0,t.useCallback)((function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null===(t=a.current)||void 0===t?void 0:t.info(e,r)}),[]),f=(0,t.useCallback)((function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null===(t=a.current)||void 0===t?void 0:t.debug(e,r)}),[]),d=(0,t.useCallback)((function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null===(t=a.current)||void 0===t?void 0:t.trace(e,r)}),[]),h=(0,t.useCallback)((function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.mapError(t,{component:e,...i,...r})}),[e,i]),y=(0,t.useCallback)((function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.apiError(t,{component:e,...i,...r})}),[e,i]),m=(0,t.useCallback)((function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return p.networkError(t,{component:e,...i,...r})}),[e,i]),g=(0,t.useCallback)((function(t,r,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p.validationError(t,r,n,{component:e,...i,...o})}),[e,i]),v=(0,t.useCallback)((t=>{if(!n)return null;const r={operation:t,startTime:performance.now(),end:()=>{const n=performance.now()-r.startTime;return l.current.delete(t),p.performance(`${e}.${t}`,n,{component:e,...i})}};return l.current.set(t,r),r}),[e,n,i]),b=(0,t.useCallback)((e=>{const t=l.current.get(e);return t?t.end():null}),[]),x=(0,t.useCallback)((async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=v(e);try{f(`Starting ${e}`,r);const o=await t(),i=null===n||void 0===n?void 0:n.end();return f(`Completed ${e}`,{...r,performance:i}),o}catch(o){throw null===n||void 0===n||n.end(),u(`Failed ${e}`,{...r,error:o.message,stack:o.stack}),o}}),[v,f,u]),w=(0,t.useCallback)((function(e,t,r){f(`State change: ${e}`,{stateName:e,oldValue:t,newValue:r,...arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}})}),[f]),S=(0,t.useCallback)((function(e){d(`Effect triggered: ${e}`,{effectName:e,dependencies:arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}})}),[d]),k=(0,t.useCallback)((function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};c(`User interaction: ${e}`,{action:e,target:t,timestamp:(new Date).toISOString(),...r})}),[c]),O=(0,t.useCallback)((async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=`API.${e.split("/").pop()}`,o=v(n);try{f(`API call started: ${e}`,{endpoint:e,options:t,...r});const n=await fetch(e,t),i=null===o||void 0===o?void 0:o.end();return n.ok?f(`API call completed: ${e}`,{endpoint:e,status:n.status,performance:i,...r}):y(`API call failed: ${e}`,{endpoint:e,status:n.status,statusText:n.statusText,performance:i,...r}),n}catch(i){throw null===o||void 0===o||o.end(),m(`API call error: ${e}`,{endpoint:e,error:i.message,...r}),i}}),[v,f,y,m]);return{error:u,warn:s,info:c,debug:f,trace:d,mapError:h,apiError:y,networkError:m,validationError:g,startTimer:v,endTimer:b,logAsync:x,logStateChange:w,logEffect:S,logUserInteraction:k,logApiCall:O,logger:a.current}},Re=(e,r,n,o,i,a,l)=>{const{debug:u,warn:s,error:c,mapError:f,startTimer:d,logAsync:p,logStateChange:h,logUserInteraction:y}=ze("useMapLayers",{enablePerformanceTracking:!0,context:{currentHour:n,pm25Threshold:r,isDarkMode:a}}),m=(0,t.useRef)(new Set),g=(0,t.useRef)(new Set),v=(0,t.useRef)(null),b=(0,t.useRef)(new Set),x=(0,t.useCallback)((function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:4;const n=d("getRelevantTilesets");try{const o=new Set;let i=new Date(e),a=t;u("Getting relevant tilesets",{date:i.toISOString().split("T")[0],hour:a,count:r});const l=pe.find((e=>e.date===i.toISOString().split("T")[0]&&a>=e.startHour&&a<=e.endHour));l?(o.add(l),u(`Added current tileset: ${l.id}`)):s("No current tileset found",{date:i.toISOString().split("T")[0],hour:a,availableTilesets:pe.length});for(let e=0;e<r;e++){a++,a>=24&&(a=0,i.setDate(i.getDate()+1));const e=pe.find((e=>e.date===i.toISOString().split("T")[0]&&a>=e.startHour&&a<=e.endHour));e&&(o.add(e),u(`Added next tileset: ${e.id}`))}i=new Date(e),a=t-1,a<0&&(a=23,i.setDate(i.getDate()-1));const c=pe.find((e=>e.date===i.toISOString().split("T")[0]&&a>=e.startHour&&a<=e.endHour));c&&(o.add(c),u(`Added previous tileset: ${c.id}`));const f=Array.from(o),d=n.end();return u("Relevant tilesets retrieved",{count:f.length,tilesets:f.map((e=>e.id)),performance:d}),f}catch(o){return n.end(),f("Failed to get relevant tilesets",{error:o.message,stack:o.stack,date:e,hour:t,count:r}),[]}}),[u,s,f,d]),w=(0,t.useCallback)(((e,t)=>p("cleanupOldChunks",(async()=>
2{if(!e||!e.getStyle())return void f("Cannot cleanup chunks - map not ready",{hasMap:!!e,hasStyle:!(null===e||void 0===e||!e.getStyle())});const r=new Set([t]),{date:n,hour:o}=i();x(new Date(n),o).forEach((e=>r.add(e.id)));let a=0,l=0;const d=[];g.current.forEach((t=>{const n=t.replace("layer-","");if(!r.has(n))try{e.getLayer(t)&&(e.removeLayer(t),a++),g.current.delete(t),b.current.delete(n)}catch(o){d.push({type:"layer",id:t,error:o.message}),c(`Error removing layer ${t}`,{layerId:t,error:o.message})}})),m.current.forEach((t=>{const n=t.replace("source-","");if(!r.has(n))try{e.getSource(t)&&(e.removeSource(t),l++),m.current.delete(t)}catch(o){d.push({type:"source",id:t,error:o.message}),c(`Error removing source ${t}`,{sourceId:t,error:o.message})}})),u("Cleanup completed",{layersRemoved:a,sourcesRemoved:l,remainingLayers:g.current.size,remainingSources:m.current.size,errorCount:d.length}),d.length>0&&s("Some cleanup operations failed",{errors:d.slice(0,5)})}))),[i,x,p,u,s,c,f]),S=(0,t.useCallback)((e=>{const t=d("updateLayerColors");try{if(!e||!e.getStyle())return void f("Cannot update layer colors - map not ready");const o=i(),{date:l,hour:d,tileset:p}=o,h=p?pe.find((e=>e.id===p)):pe.find((e=>e.date===l&&d>=e.startHour&&d<=e.endHour));if(!h)return void s("No matching tileset found for current time",{dateTimeInfo:o});const y=`layer-${h.id}`,m=`${l}T${String(d).padStart(2,"0")}:00:00`;let v=0,b=0;if(g.current.forEach((t=>{try{e.getLayer(t)&&(e.setPaintProperty(t,"circle-color",oe(a)),e.setLayoutProperty(t,"visibility","none"),b++)}catch(r){c(`Failed to update layer ${t}`,{layerId:t,error:r.message})}})),e.getLayer(y))try{e.setFilter(y,["all",["==",["get","time"],m],[">=",["coalesce",["to-number",["get","PM25"],0],0],r]]),e.setLayoutProperty(y,"visibility","visible"),v++,u("Layer visibility updated",{currentLayerId:y,timeString:m,pm25Threshold:r,isDarkMode:a})}catch(n){f(`Failed to show current layer ${y}`,{layerId:y,error:n.message,timeString:m,pm25Threshold:r})}else s("Current layer not found",{expectedLayerId:y,availableLayers:Array.from(g.current)});const x=t.end();u("Layer colors update completed",{layersUpdated:v,layersHidden:b,currentLayer:y,performance:x})}catch(o){t.end(),f("Layer color update failed",{error:o.message,stack:o.stack})}}),[i,r,a,d,u,s,f,c]),k=(0,t.useCallback)((e=>p("initializeLayers",(async()=>{if(u("Starting layer initialization"),!e||!e.getStyle()){const t=new Error("Map or map style not available");throw f("Cannot initialize layers",{hasMap:!!e,hasStyle:!(null===e||void 0===e||!e.getStyle())}),t}try{g.current.forEach((t=>{e.getLayer(t)&&e.removeLayer(t)})),m.current.forEach((t=>{e.getSource(t)&&e.removeSource(t)})),g.current.clear(),m.current.clear(),b.current.clear(),v.current=null;const{date:r,hour:n}=i(),o=x(new Date(r),n);u("Relevant tilesets for initialization",{count:o.length,tilesets:o.map((e=>e.id))});let l=0,c=0;const p=[];for(const i of o){const r=d(`addLayer_${i.id}`);try{const t=`source-${i.id}`,n=`layer-${i.id}`;e.getSource(t)||(u(`Adding source: ${t}`,{url:`mapbox://${i.id}`}),e.addSource(t,{type:"vector",url:`mapbox://${i.id}`,maxzoom:9}),m.current.add(t),c++),e.getLayer(n)||(u(`Adding layer: ${n}`,{sourceLayer:i.layer}),e.addLayer({id:n,type:"circle",source:t,"source-layer":i.layer,maxzoom:9,paint:{"circle-radius":["interpolate",["exponential",2],["zoom"],4,2,5,5,6,10,7,55,8,70,9,90],"circle-color":oe(a),"circle-blur":.6,"circle-opacity":["interpolate",["linear"],["zoom"],4,a?.9:.75,6,a?.5:.4,7,a?.3:.2,8,a?.2:.15,9,a?.2:.15]},layout:{visibility:"none"}}),g.current.add(n),b.current.add(i.id),l++),r.end()}catch(t){r.end();const e={tilesetId:i.id,error:t.message,stack:t.stack};p.push(e),f(`Failed to add layer for tileset ${i.id}`,e)}}return S(e),p.length>0&&s("Some layers failed to initialize",{errorCount:p.length,totalTilesets:o.length,errors:p.slice(0,3)}),u("Layer initialization completed",{layersAdded:l,sourcesAdded:c,totalLayers:g.current.size,totalSources:m.current.size,errorCount:p.length}),{layersAdded:l,sourcesAdded:c,errors:p.length}}catch(r){throw f("Layer initialization failed",{error:r.message,stack:r.stack}),r}}))),[i,x,a,S,p,u,s,f,d]),O=(0,t.useCallback)((e=>p("updateLayers",(async()=>
2{if(e&&e.getStyle())try{const t=i(),{date:o,hour:l,tileset:c}=t;u("Current time info",t);const f=c?pe.find((e=>e.id===c)):pe.find((e=>e.date===o&&l>=e.startHour&&l<=e.endHour));if(!f){s("No tileset found for current time",{date:o,hour:l});const t=pe[pe.length-1];if(t){u("Falling back to last available tileset",{tileset:t});const n=`layer-${t.id}`;if(g.current.forEach((t=>{e.getLayer(t)&&e.setLayoutProperty(t,"visibility","none")})),e.getLayer(n)){const o=t.endHour,i=`${t.date}T${String(o).padStart(2,"0")}:00:00`;e.setFilter(n,["all",["==",["get","time"],i],[">=",["coalesce",["to-number",["get","PM25"],0],0],r]]),e.setLayoutProperty(n,"visibility","visible"),u("Showing fallback layer",{layerId:n,timeString:i})}}return}u("Using tileset",{tileset:f}),await w(e,f.id);const d=`layer-${f.id}`,p=`source-${f.id}`,h=`${o}T${String(l).padStart(2,"0")}:00:00`;u("Timeline data mapping",{currentHour:n,date:o,hour:l,tileset:f.id,timeString:h}),g.current.forEach((t=>{e.getLayer(t)&&e.setLayoutProperty(t,"visibility","none")})),e.getLayer(d)||(u(`Creating missing layer: ${d}`),e.getSource(p)||(u(`Adding source: ${p}`,{url:`mapbox://${f.id}`}),e.addSource(p,{type:"vector",url:`mapbox://${f.id}`,maxzoom:9}),m.current.add(p)),u(`Adding layer: ${d}`,{sourceLayer:f.layer}),e.addLayer({id:d,type:"circle",source:p,"source-layer":f.layer,maxzoom:9,paint:{"circle-radius":["interpolate",["exponential",2],["zoom"],4,2,5,5,6,10,7,55,8,70,9,90],"circle-color":oe(a),"circle-blur":.6,"circle-opacity":["interpolate",["linear"],["zoom"],4,a?.9:.75,6,a?.5:.4,7,a?.3:.2,8,a?.2:.15,9,a?.2:.15]},layout:{visibility:"none"}}),g.current.add(d),b.current.add(f.id)),e.setLayoutProperty(d,"visibility","visible"),e.setFilter(d,["all",["==",["get","time"],h],[">=",["coalesce",["to-number",["get","PM25"],0],0],r]]),u("Layer update completed",{currentLayerId:d,pm25Threshold:r})}catch(t){throw f("Layer update failed",{error:t.message,stack:t.stack,currentHour:n,pm25Threshold:r}),t}else f("Cannot update layers - map not ready",{hasMap:!!e,hasStyle:!(null===e||void 0===e||!e.getStyle())})}))),[i,w,a,r,n,p,u,s,f]);return(0,t.useEffect)((()=>{h("isDarkMode",void 0,a,{currentHour:n})}),[a,h,n]),(0,t.useEffect)((()=>{h("pm25Threshold",void 0,r,{currentHour:n})}),[r,h,n]),(0,t.useEffect)((()=>{h("currentHour",void 0,n)}),[n,h]),(0,t.useEffect)((()=>{var t;const r=null===(t=e.current)||void 0===t?void 0:t.getMap();if(!r)return;const n=()=>{l.current&&(u("Reinitializing layers after style change"),p("styleChangeReinit",(async()=>{await k(r),await O(r),l.current=!1})).catch((e=>{f("Failed to reinitialize layers after style change",{error:e.message})})))};return r.on("styledata",n),()=>{r.off("styledata",n),u("Cleaned up style change handler")}}),[k,O,u,f,p]),(0,t.useEffect)((()=>{var t;const r=null===(t=e.current)||void 0===t?void 0:t.getMap();r&&o&&(u("Map state changed",{hasMap:!!r,isMapLoaded:o,currentHour:n,loadedLayersCount:g.current.size}),p("mapUpdate",(async()=>{g.current.size||(u("Starting initial layer initialization"),await k(r)),await O(r)})).catch((e=>{f("Map update failed",{error:e.message,currentHour:n,isMapLoaded:o})})))}),[o,n,k,O,u,f,p]),{updateLayers:O,initializeLayers:k,cleanupOldChunks:w,updateLayerColors:S}},Be=v("Calendar",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]]),Fe=v("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]),$e=e=>{let{timestamp:t,currentDateTime:r,isDarkMode:n,showUTC:i=!1,currentHour:a,totalHours:l,isShowingPreviousDays:u}=e;const s=t||r;if(!s||!s.date)return null;console.log("DateTime component received:",s);const c=ge(s),f=(e=>{if(!e||!e.date)return!1;const t="string"===typeof e.date?e.date:e.date.toISOString().split("T")[0],[r,n,o]=t.split("-").map(Number),i=new Date(Date.UTC(r,n-1,o,e.hour,0,0,0)),a=i.getUTCHours(),l=i.getHours(),u=i.getUTCDate(),s=i.getDate();return a!==l||u!==s})(s),d=a===l-1&&u,[p,h,y]=s.date.split("-").map(Number),m=new Date(Date.UTC(p,h-1,y)
2).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"});return(0,o.jsxs)("div",{className:"backdrop-blur-md rounded-xl border-2 shadow-lg px-8 py-4 "+(n?"bg-gray-900/95 border-white":"bg-white/95 border-mahogany"),children:[(0,o.jsxs)("div",{className:"flex items-center gap-8",children:[(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)("div",{className:"p-3 rounded-lg "+(n?"bg-forest/10 text-white":"bg-sage-light text-forest"),children:(0,o.jsx)(Be,{className:"w-6 h-6"})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)("div",{className:"flex items-baseline gap-2 whitespace-nowrap",children:[(0,o.jsx)("span",{className:"font-semibold "+(n?"text-white":"text-forest"),style:{fontSize:"clamp(1rem, 2.2vw, 1.25rem)"},children:m}),(0,o.jsx)("span",{className:""+(n?"text-white/60":"text-forest/60"),style:{fontSize:"clamp(0.875rem, 1.8vw, 1rem)"},children:"UTC"})]}),f&&(0,o.jsxs)("div",{className:"flex items-baseline gap-1.5 whitespace-nowrap",children:[(0,o.jsx)("span",{className:""+(n?"text-white/70":"text-forest/70"),style:{fontSize:"clamp(0.875rem, 1.8vw, 1rem)"},children:c.date}),(0,o.jsx)("span",{className:""+(n?"text-white/50":"text-forest/50"),style:{fontSize:"clamp(0.75rem, 1.5vw, 0.875rem)"},children:c.timezone})]})]})]}),(0,o.jsx)("div",{className:"h-12 w-px "+(n?"bg-white/30":"bg-sage")}),(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)("div",{className:"p-3 rounded-lg "+(n?"bg-forest/10 text-white":"bg-sage-light text-forest"),children:(0,o.jsx)(Fe,{className:"w-6 h-6"})}),(0,o.jsxs)("div",{className:"flex flex-col",children:[(0,o.jsxs)("div",{className:"flex items-baseline gap-2 whitespace-nowrap",children:[(0,o.jsxs)("span",{className:"font-semibold "+(n?"text-white":"text-forest"),style:{fontSize:"clamp(1rem, 2.2vw, 1.25rem)"},children:[String(s.hour).padStart(2,"0"),":00"]}),(0,o.jsx)("span",{className:""+(n?"text-white/60":"text-forest/60"),style:{fontSize:"clamp(0.875rem, 1.8vw, 1rem)"},children:"UTC"})]}),f&&(0,o.jsxs)("div",{className:"flex items-baseline gap-1.5 whitespace-nowrap",children:[(0,o.jsx)("span",{className:""+(n?"text-white/70":"text-forest/70"),style:{fontSize:"clamp(0.875rem, 1.8vw, 1rem)"},children:c.time}),(0,o.jsx)("span",{className:""+(n?"text-white/50":"text-forest/50"),style:{fontSize:"clamp(0.75rem, 1.5vw, 0.875rem)"},children:c.timezone})]})]})]})]}),d&&(0,o.jsx)("div",{className:"mt-4 pt-4 border-t "+(n?"border-white/20":"border-mahogany/20"),children:(0,o.jsxs)("div",{className:"flex items-center gap-2 text-sm "+(n?"text-blue-300":"text-blue-600"),children:[(0,o.jsx)(w,{className:"w-4 h-4 flex-shrink-0"}),(0,o.jsxs)("span",{children:["Next day's data will be available on ",(()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getTime());r.setUTCHours(19,30,0,0),e>=r&&r.setUTCDate(r.getUTCDate()+1);return`${r.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric",timeZone:"UTC"})} at 19:30 UTC`})()]})]})})]})},Ue=v("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]),He=v("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),We=e=>{let{currentHour:r,isDarkMode:n}=e;const[i,a]=(0,t.useState)(!1),[l,u]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{const e=be(ce,fe),t=Math.abs(r-e)<=1;if(u(t),t){a(!0);const e=setTimeout((()=>a(!1)),2e3);return()=>clearTimeout(e)}a(!1)}),[r]),i||l?(0,o.jsx)("div",{className:`flex items-center gap-2 text-sm px-3 py-2 rounded-lg transition-all duration-300 ${i?"opacity-100 transform translate-y-0":l?"opacity-70 transform translate-y-0":"opacity-0 transform -translate-y-2"} ${n?"bg-green-900/20 text-green-300 border border-green-700/30":"bg-green-50 text-green-700 border border-green-200"}`,children:i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(He,{className:"w-4 h-4"}),(0,o.jsx)("span",{children:"Started at current time"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(Fe,{className:"w-4 h-4"}),(0,o.jsx)("span",{children:"Current time"})]})}):null},qe=v("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]),Ve=v("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]),Ge=e=>{let{isDarkMode:t,setIsDarkMode:r}=e;return(0,o.jsx)("div",{className:"flex items-center gap-2",children:(0,o.jsx)("button",{onClick:()=>r(!t),className:"w-10 h-10 rounded-lg flex items-center justify-center transition-colors backdrop-blur-sm shadow-lg border-2 border-mahogany bg-white/90 text-mahogany hover:bg-white/80",title:t?"Switch to light mode":"Switch to dark mode",children:t?(0,o.jsx)(qe,{className:"w-5 h-5"}):(0,o.jsx)(Ve,{className:"w-5 h-5"})})})},Ke=v("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]),Ye=v("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Xe=v("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Ze=e=>{let{currentHour:r,setCurrentHour:n,isPlaying:i,setIsPlaying:a,playbackSpeed:l,setPlaybackSpeed:u,isDarkMode:s,onTimeChange:c}=e;const[f,d]=(0,t.useState)(!1),[p,h]=(0,t.useState)(!1),y=()=>{const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),0,0,0));return Math.floor((t-ce)/36e5)>=fe-1},m=e=>{const t=new Date(ce);t.setUTCDate(t.getUTCDate()+e);return`${t.toLocaleDateString("en-US",{month:"short",day:"numeric",timeZone:"UTC"})} (UTC)`},g=Array.from({length:Math.ceil(fe/24)},((e,t)=>{const r=24*t;return{label:m(t),hour:r,position:r/(fe-1)*100}})),v=s?"#f9f6ef":"#751d0c",b=(()=>{const e=new Date(ce),t=new Date(e.getTime()+60*r*60*1e3),n=t.toISOString().split("T")[0],o=t.getUTCHours();return ge({date:n,hour:o})})();return(0,o.jsxs)("div",{className:`backdrop-blur-md rounded-xl border ${s?"border-white":"border-mahogany"} shadow-lg px-6 py-4 ${s?"bg-gray-900/95":"bg-white/95"}`,children:[p&&(0,o.jsx)("div",{className:"fixed top-4 left-1/2 transform -translate-x-1/2 z-50",children:(0,o.jsxs)("div",{className:"flex items-center gap-3 px-4 py-3 rounded-lg shadow-lg border "+(s?"bg-blue-900/95 text-blue-100 border-blue-700":"bg-blue-50/95 text-blue-800 border-blue-200"),children:[(0,o.jsx)(w,{className:"w-5 h-5 flex-shrink-0"}),(0,o.jsxs)("span",{className:"text-sm font-medium",children:["Tomorrow's data will be available at ",(()=>{const e=new Date,t=new Date(e.getFullYear(),e.getMonth(),e.getDate()),r=new Date(t.getTime());return r.setUTCHours(19,30,0,0),e>=r&&r.setUTCDate(r.getUTCDate()+1),r.toLocaleTimeString("en-US",{hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1})+" UTC"})()]}),(0,o.jsx)("button",{onClick:()=>h(!1),className:"ml-2 p-1 rounded-full hover:bg-opacity-20 transition-colors "+(s?"hover:bg-white":"hover:bg-blue-800"),children:(0,o.jsx)(O,{className:"w-4 h-4"})})]})}),(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("button",{onClick:()=>a(!i),className:"w-10 h-10 rounded-lg flex items-center justify-center transition-all border "+(s?"border-white bg-forest/20 text-white hover:bg-forest/30":"border-mahogany bg-sage-light text-mahogany hover:bg-sage"),children:i?(0,o.jsx)(Ke,{className:"w-5 h-5"}):(0,o.jsx)(x,{className:"w-5 h-5"})}),(0,o.jsxs)("button",{onClick:()=>
2d(!f),className:"h-10 px-4 rounded-lg text-sm font-medium transition-colors backdrop-blur-sm shadow-lg "+(s?"bg-gray-800/90 hover:bg-gray-700/90 text-white border border-white":"bg-gray-100/90 hover:bg-gray-200/90 text-gray-700 border border-mahogany"),children:[l,"x Speed"]}),f&&(0,o.jsx)("div",{className:"absolute bottom-full mb-2 flex gap-1 p-2 rounded-lg shadow-lg backdrop-blur-sm "+(s?"bg-gray-800/90 border border-white":"bg-white/90 border border-mahogany"),children:[1,2,3,8].map((e=>(0,o.jsxs)("button",{onClick:()=>{u(e),d(!1)},className:"px-3 py-1 rounded-md transition-colors text-sm "+(l===e?s?"bg-gray-600 text-white":"bg-gray-200 text-gray-800":s?"hover:bg-gray-700 text-gray-300":"hover:bg-gray-100 text-gray-600"),children:[e,"x"]},e)))})]}),(0,o.jsxs)("div",{className:"flex-1 flex items-center gap-2",children:[(0,o.jsx)("button",{onClick:()=>{const e=Math.max(0,r-1);n(e),c&&c(e)},className:"w-8 h-8 flex items-center justify-center rounded-lg transition-colors border "+(s?"border-white hover:bg-gray-800 text-white":"border-mahogany hover:bg-gray-100 text-mahogany"),children:(0,o.jsx)(Ye,{className:"w-5 h-5"})}),(0,o.jsxs)("div",{className:"relative flex-1 pb-8",children:[(0,o.jsxs)("div",{className:"absolute -top-8 py-1 px-2 rounded-lg text-sm font-medium transform -translate-x-1/2 border transition-all duration-200 ease-out z-20 shadow-md "+(s?"border-white bg-gray-800/95 text-white":"border-mahogany bg-white/95 text-mahogany"),style:{left:r/(fe-1)*100+"%"},title:`Local time: ${b.time} ${b.timezone} | Date: ${b.date}`,children:[b.time," ",b.timezone]}),(0,o.jsx)("div",{className:"absolute w-4 h-4 rounded-full transform -translate-x-1/2 -translate-y-1/2 border-2 transition-all duration-200 ease-out z-20 shadow-lg "+(s?"bg-white border-gray-800":"bg-mahogany border-white"),style:{left:r/(fe-1)*100+"%",top:"50%"}}),(0,o.jsx)("div",{className:"absolute inset-x-0 bottom-0 h-8 pointer-events-none",children:g.map(((e,t)=>(0,o.jsxs)("div",{className:"absolute",style:{left:`${e.position}%`},children:[(0,o.jsx)("div",{className:"w-0.5 -translate-x-1/2 absolute",style:{backgroundColor:v,height:"12px",to
2p:"-12px"}}),(0,o.jsx)("div",{className:"w-0.5 h-6 -translate-x-1/2",style:{backgroundColor:v}}),(0,o.jsx)("div",{className:"text-xs font-medium mt-1 absolute",style:{whiteSpace:"nowrap",color:v,transform:0===t?"translateX(0)":"translateX(-50%)",left:0===t?"0":"50%"},children:e.label})]},t)))}),(0,o.jsx)("div",{className:"absolute h-0.5 w-full top-1/2 -translate-y-1/2 border-t border-b "+(s?"border-white":"border-mahogany"),style:{backgroundColor:s?"#4B5563":"#D1D5DB"}}),(0,o.jsx)("div",{className:"absolute h-0.5 left-0 top-1/2 -translate-y-1/2 transition-all",style:{width:r/(fe-1)*100+"%",backgroundColor:v}}),(0,o.jsx)("input",{type:"range",min:"0",max:fe-1,value:r,onChange:e=>{const t=parseInt(e.target.value);n(t),c&&c(t)},className:"absolute inset-0 w-full h-full cursor-pointer appearance-none bg-transparent [&::-webkit-slider-thumb]:appearance-none [&::-webkit-slider-thumb]:w-4 [&::-webkit-slider-thumb]:h-4 [&::-webkit-slider-thumb]:rounded-full [&::-webkit-slider-thumb]:opacity-0 [&::-webkit-slider-thumb]:cursor-pointer"})]}),(0,o.jsx)("button",{onClick:()=>{const e=Math.min(fe-1,r+1);n(e),c&&c(e),e===fe-1&&de&&h(!0)},className:"w-8 h-8 flex items-center justify-center rounded-lg transition-colors border "+(s?"border-white hover:bg-gray-800 text-white":"border-mahogany hover:bg-gray-100 text-mahogany"),children:(0,o.jsx)(Xe,{className:"w-5 h-5"})})]}),(0,o.jsxs)("button",{onClick:()=>{a(!1);const e=new Date,t=new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),0,0,0)),r=Math.floor((t-ce)/36e5);let o;console.log("Jump to current time calculation:",{now:e.toISOString(),currentUTC:t.toISOString(),startDate:ce.toISOString(),hoursSinceStart:r,totalHours:fe}),r<0?(console.log("Current time is before timeline start, using hour 0"),o=0):r>=fe?(console.log("Current time is after timeline end, using last hour"),o=fe-1):(console.log(`Jumping to current timeline hour: ${r}`),o=r),n(o),setTimeout((()=>{if(c)try{c(o)}catch(e){console.error("Error in onTimeChange callback:",e),setTimeout((()=>n(o)),100)}}),50)},className:"flex items-center gap-2 px-4 py-2 rounded-lg transition-colors border "+(y()?s?"border-yellow-400 bg-yellow-900/20 hover:bg-yellow-800/30 text-yellow-200":"border-yellow-600 bg-yellow-100/90 hover:bg-yellow-200/90 text-yellow-800":s?"border-white bg-gray-800/90 hover:bg-gray-700/90 text-white":"border-mahogany bg-gray-100/90 hover:bg-gray-200/90 text-mahogany"),title:y()?"Current time is beyond available data. Showing latest available data.":"Jump to current time",children:[(0,o.jsx)(Fe,{className:"w-4 h-4"}),(0,o.jsx)("span",{className:"text-sm font-medium",children:"Now"})]})]})]})},Qe=e=>{let{currentHour:t,setCurrentHour:r,isPlaying:n,setIsPlaying:i,playbackSpeed:a,setPlaybackSpeed:l,getCurrentDateTime:u,drawingMode:s,startDrawing:c,finishDrawing:f,clearPolygon:d,polygon:p,isDarkMode:h,setIsDarkMode:y,currentBasemap:m,setCurrentBasemap:g,basemapOptions:v,mapInstance:b,pm25Threshold:x,setPM25Threshold:w,setDrawingMode:S,setTempPolygon:k}=e;u&&u();return(0,o.jsxs)("div",{className:"relative w-full h-full pointer-events-none",children:[(0,o.jsx)("div",{className:"fixed top-4 inset-x-4 z-50"}),(0,o.jsxs)("div",{className:"fixed top-4 left-1/2 -translate-x-1/2 z-50 flex flex-col items-center gap-2 pointer-events-auto",children:[(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)(Ge,{isDarkMode:h,setIsDarkMode:y,currentBasemap:m,setCurrentBasemap:g,basemapOptions:v}),(0,o.jsx)($e,{currentDateTime:u(),isDarkMode:h,currentHour:t,totalHours:fe,isShowingPreviousDays:de}),!p&&!s&&(0,o.jsxs)("button",{onClick:c,className:"px-4 py-2 rounded-lg flex items-center gap-2 transition-colors backdrop-blur-sm shadow-lg border-2 border-mahogany bg-white/90 text-mahogany hover:bg-white/80",title:"Draw Area",children:[(0,o.jsx)(Ue,{className:"w-5 h-5"}),(0,o.jsx)("span",{className:"font-medium",style:{fontSize:"clamp(0.75rem, 2vw, 0.875rem)"},children:"Draw Area"})]}),p&&!s&&(0,o.jsxs)("button",{onClick:d,className:"px-4 py-2 rounded-lg flex items-center gap-2 transition-colors backdrop-blur-sm shadow-lg border-2 "+(h?"bg-red-900/90 hover:bg-red-900/80 text-red-400 border-red-400":"bg-red-50/90 hover:bg-red-100/90 text-red-600 border-red-600"),title:"Clear Area Selection",children:[(0,o.jsx)(O,{className:"w-5 h-5"}),(0,o.jsx)("span",{className:"font-medium",style:{fontSize:"clamp(0.75rem, 2vw, 0.875rem)"},children:"Clear Area"})]}),s&&(0,o.jsxs)("button",{onClick:()=>{S(!1),k([]),b&&(b.getCanvas().style.cursor="")},className:"px-4 py-2 rounded-lg flex items-center gap-2 transition-colors backdrop-blur-sm shadow-lg border-2 "+(h?"bg-gray-700/90 hover:bg-gray-600/90 text-gray-300 border-gray-400":"bg-gray-100/90 hover:bg-gray-200/90 text-gray-700 border-gray-500"),title:"Cancel Drawing",children:[(0,o.jsx)(O,{className:"w-5 h-5"}),(0,o.jsx)("span",{className:"font-medium",style:{fontSize:"clamp(0.75rem, 2vw, 0.875rem)"},children:"Cancel"})]})]}),(0,o.jsx)(We,{currentHour:t,isDarkMode:h})]}),(0,o.jsx)("div",{className:"fixed bottom-4 left-1/2 -translate-x-1/2 z-50 w-[calc(100%-2rem)] max-w-2xl pointer-events-auto",children:(0,o.jsx)(Ze,{currentHour:t,setCurrentHour:r,isPlaying:n,setIsPlaying:i,playbackSpeed:a,setPlaybackSpeed:l,isDarkMode:h,onTimeChange:e=>{if(b&&b.getStyle())try{const{date:n,hour:o}=u(e),i=pe.find((e=>e.date===n&&o>=e.startHour&&o<=e.endHour)),a=[];try{const e=b.getStyle();
2e&&e.layers&&e.layers.forEach((e=>{e.id&&e.id.startsWith("layer-")&&a.push(e.id)}))}catch(t){console.warn("Error getting layers, trying alternative method:",t),pe.forEach((e=>{a.push(`layer-${e.id}`)}))}if(a.forEach((e=>{try{b.getLayer(e)&&b.setLayoutProperty(e,"visibility","none")}catch(t){console.warn(`Error hiding layer ${e}:`,t)}})),i){const e=`layer-${i.id}`,r=`${n}T${String(o).padStart(2,"0")}:00:00`;if(b.getLayer(e))try{b.setFilter(e,["all",["==",["get","time"],r],[">=",["coalesce",["to-number",["get","PM25"],0],0],x]]),b.setLayoutProperty(e,"visibility","visible"),console.log(`Successfully updated layer ${e} for time ${r}`)}catch(t){console.error(`Error updating layer ${e}:`,t)}else console.warn(`Layer not found for time ${r}:`,e)}else{console.warn(`No tileset found for time ${o}, falling back to last available data`);const e=pe[pe.length-1];if(e){const t=`layer-${e.id}`,n=e.endHour,o=`${e.date}T${String(n).padStart(2,"0")}:00:00`;if(b.getLayer(t))try{b.setFilter(t,["all",["==",["get","time"],o],[">=",["coalesce",["to-number",["get","PM25"],0],0],x]]),b.setLayoutProperty(t,"visibility","visible"),console.log(`Showing fallback layer ${t} with time ${o}`)}catch(r){console.error(`Error showing fallback layer ${t}:`,r)}else console.warn(`Fallback layer not found: ${t}`)}}}catch(n){console.error("Error in onTimeChange callback:",n)}}})})]})},Je=Qe,et=e=>{let{isDarkMode:t}=e;const r=ne.slice(0,-1);return(0,o.jsx)("div",{className:"backdrop-blur-sm rounded-xl shadow-lg px-4 py-3 transition-all duration-300 border-2 "+(t?"bg-gray-800/95 text-gray-200 border-white":"bg-white/95 text-gray-800 border-mahogany"),children:(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsxs)("div",{className:"text-sm font-medium text-center",children:["PM",(0,o.jsx)("sub",{children:"2.5"})," Levels (\u03bcg/m\xb3)"]}),(0,o.jsx)("div",{className:"space-y-1",children:r.map(((e,r)=>(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("div",{className:"w-4 h-3 rounded-sm shadow-sm",style:{backgroundColor:t?e.darkColor:e.color}}),(0,o.jsxs)("div",{className:"flex-1 text-xs",children:[(0,o.jsx)("span",{className:"font-medium",children:e.shortLabel||e.label}),(0,o.jsxs)("span",{className:"ml-1 "+(t?"text-gray-400":"text-gray-500"),children:["(",250.5===e.value?"250+":`${e.value}-${e.maxValue}`,")"]})]})]},e.value)))})]})})},tt=v("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),rt=e=>{let{pm25Threshold:r=5,setPM25Threshold:n,isDarkMode:i}=e;const[a,l]=(0,t.useState)(r.toString()),[u,s]=(0,t.useState)(!1),c=e=>{for(let t=0;t<ne.length-1;t++){const r=ne[t],n=ne[t+1];if(e>=r.value&&e<n.value){const o=(e-r.value)/(n.value-r.value),i=t/(ne.length-1)*100;return i+o*((t+1)/(ne.length-1)*100-i)}}return e<ne[0].value?0:(ne[ne.length-1].value,100)},f=()=>{s(!1);let e=parseFloat(a);e=isNaN(e)?r:Math.max(5,Math.min(500,e)),n(e),l(e.toFixed(1))},d=(e=>ne.find(((t,r)=>{const n=ne[r+1];return e>=t.value&&(!n||e<n.value)})))(r);return(0,o.jsxs)("div",{className:"space-y-3 w-72",children:[(0,o.jsxs)("div",{className:"backdrop-blur-sm rounded-xl shadow-lg px-6 py-3 flex items-center transition-all duration-300 border-2 "+(i?"bg-gray-800/95 text-gray-200 border-white":"bg-white/95 text-gray-800 border-mahogany"),children:[(0,o.jsxs)("div",{className:"text-xl font-medium",children:["PM",(0,o.jsx)("sub",{children:"2.5"})]}),(0,o.jsx)("div",{className:"w-px h-6 mx-4 "+(i?"bg-gray-700":"bg-gray-200")}),(0,o.jsx)("div",{className:"flex items-center gap-2 flex-1 min-w-0",title:u?"Click check to save":"Click to edit threshold",children:u?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-1 flex-1 min-w-0",children:[(0,o.jsx)("input",{type:"number",value:a,onChange:e=>{l(e.target.value)},onBlur:f,onKeyDown:e=>{"Enter"===e.key&&f()},className:`w-20 px-1 py-0 rounded text-center text-xl font-medium flex-shrink-0 ${i?"bg-gray-700 text-gray-200 focus:bg-gray-600":"bg-gray-100 text-gray-800 focus:bg-white"} focus:outline-none focus:ring-2 focus:ring-purple-500`,style:{fontSize:"1.25rem",lineHeight:"1.75rem"},autoFocus:!0,min:"5",max:"500",step:"1"}),(0,o.jsx)("span",{className:"text-xl font-medium whitespace-nowrap",style:{color:i?"#e5e7eb":"#1f2937"},children:"+ \u03bcg/m\xb3"})]}),(0,o.jsx)(tt,{className:"w-4 h-4 cursor-pointer hover:opacity-80 transition-opacity flex-shrink-0 "+(i?"text-green-400":"text-green-600"),onClick:()=>{f()}})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("span",{className:"text-xl font-medium cursor-pointer hover:opacity-80 transition-opacity flex-1 min-w-0 truncate",style:{color:null===d||void 0===d?void 0:d.color},onClick:()=>s(!0),children:[r.toFixed(1),"+ \u03bcg/m\xb3"]}),(0,o.jsx)(Ue,{className:"w-4 h-4 cursor-pointer hover:opacity-80 transition-opacity flex-shrink-0 "+(i?"text-gray-400":"text-gray-500"),onClick:()=>s(!0)})]})})]}),(0,o.jsx)("div",{className:"backdrop-blur-sm rounded-xl shadow-lg px-6 py-4 transition-all duration-300 border-2 "+(i?"bg-gray-800/95 text-gray-200 border-white":"bg-white/95 text-gray-800 border-mahogany"),children:(0,o.jsxs)("div",{className:"space-y-3",children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)("span",{className:"text-sm font-medium "+(i?"text-gray-300":"text-gray-600"),children:"Adjust Threshold"}),(0,o.jsxs)("span",{className:"text-sm font-semibold "+(i?"text-white":"text-gray-800"),children:[r.toFixed(1)," \u03bcg/m\xb3"]})]}),(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsxs)("div",{className:"relative w-full h-2 rounded-lg overflow-hidden",style:{background:`linear-gradient(to right, ${ne.slice(0,-1).map(((e,t)=>{const r=i?e.darkColor:e.color;return`${r} ${t/(ne.length-1)*100}%, ${r} ${(t+1)/(ne.length-1)*100}%`})).join(", ")})`},children:[ne.slice(1,-1).map(((e,t)=>{const r=(t+1)/(ne.length-1)*100;return(0,o.jsx)("div",{className:"absolute top-0 w-0.5 h-full bg-white/80 shadow-sm",style:{left:`${r}%`}},`track-marker-${e.value}`)})),(0,o.jsx)("div",{className:"absolute top-0 left-0 h-full bg-black/20 transition-all duration-200",style:{width:`${c(r)}%`}})]}),(0,o.jsx)("input",{type:"range",min:"0",max:"100",step:"0.1",value:c(r),onChange:e=>{const t=(e=>
2{const t=Math.max(0,Math.min(100,e)),r=Math.floor(t/100*(ne.length-1)),n=t/100*(ne.length-1)-r;if(r>=ne.length-1)return ne[ne.length-1].value;const o=ne[r],i=ne[r+1];return o.value+n*(i.value-o.value)})(parseFloat(e.target.value)),r=Math.max(5,Math.min(500,t));n(r),l(r.toString())},className:"absolute inset-0 w-full h-2 rounded-lg appearance-none cursor-pointer bg-transparent",style:{background:"transparent"}}),(0,o.jsxs)("div",{className:"flex justify-between mt-2",children:[(0,o.jsx)("span",{className:"text-xs "+(i?"text-gray-400":"text-gray-500"),children:"5"}),(0,o.jsx)("span",{className:"text-xs "+(i?"text-gray-400":"text-gray-500"),children:"500"})]})]})]})})]})},nt=v("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]),ot=(e,t)=>{if(!Array.isArray(e)||e.length<2)return!1;const r=e[0],n=e[1];let o=!1;for(let i=0,a=t.length-1;i<t.length;a=i++){const e=t[i][0],l=t[i][1],u=t[a][0],s=t[a][1];l>n!==s>n&&r<(u-e)*(n-l)/(s-l)+e&&(o=!o)}return o},it=e=>{var r,n;let{map:i,polygon:a,isDarkMode:l,currentDateTime:u,isPlaying:s}=e;const[c,f]=(0,t.useState)({censusStats:{value:null,isLoading:!0,error:null,tractCount:0,status:"idle"},exposureByPM25:{value:null,isLoading:!0,error:null,distribution:null}}),d=(0,t.useRef)(null),p=(0,t.useRef)(null),h=(0,t.useRef)(null);(0,t.useEffect)((()=>{if(a){const e=JSON.stringify(a);h.current!==e&&(p.current=null,h.current=e)}else p.current=null,h.current=null}),[a]);const y=(0,t.useCallback)((async()=>{if(i&&a)try{f((e=>({...e,censusStats:{...e.censusStats,isLoading:!0,error:null,status:"loading"}})));const e=await De(i,a,l);if(d.current=e,f((t=>({...t,censusStats:{value:{totalPopulation:null,tractCount:e.summary.tractCount},isLoading:!0,error:null,tractCount:e.summary.tractCount,status:"calculating"}}))),e.populationPromise){const t=await e.populationPromise;f((e=>({...e,censusStats:{value:{totalPopulation:t.summary.totalPopulation,tractCount:t.summary.tractCount},isLoading:!1,error:null,tractCount:t.summary.tractCount,status:"complete"}})))}}catch(e){console.error("Error fetching census data:",e),f((e=>({...e,censusStats:{value:null,isLoading:!1,error:"Failed to fetch census data",tractCount:0,status:"error"}})))}}),[i,a,l]),m=(0,t.useCallback)((async()=>{if(i&&a&&u)try{p.current||f((e=>({...e,exposureByPM25:{...e.exposureByPM25,isLoading:!0,error:null}})));const n=`${u.date}T${String(u.hour).padStart(2,"0")}:00:00`,o=((e,t,r)=>{if(!e||!e.getStyle())return null;const n=pe.find((e=>e.date===t&&r>=e.startHour&&r<=e.endHour));if(!n)return console.warn("No tileset found for:",{date:t,hour:r}),null;const o=`layer-${n.id}`;return e.getLayer(o)?o:null})(i,u.date,u.hour);if(!o)return console.warn("No active layer found for the current time period"),p.current?(console.log("Using cached PM2.5 data for this time period"),void f((e=>({...e,exposureByPM25:{value:p.current.value,distribution:p.current.distribution,isLoading:!1,error:null}})))):void f((e=>({...e,exposureByPM25:{value:null,distribution:null,isLoading:!1,error:"No data available for this time period"}})));const l={minLng:Math.min(...a.map((e=>e[0]))),maxLng:Math.max(...a.map((e=>e[0]))),minLat:Math.min(...a.map((e=>e[1]))),maxLat:Math.max(...a.map((e=>e[1])))};let s=[];try{const e=.2*(l.maxLng-l.minLng),t=.2*(l.maxLat-l.minLat),r=[[l.minLng-e,l.minLat-t],[l.maxLng+e,l.maxLat+t]],u=i.project(r[0]),c=i.project(r[1]);s=i.queryRenderedFeatures([u,c],{layers:[o],filter:["==",["get","time"],n]}).filter((e=>!(!e.geometry||!e.geometry.coordinates)&&ot(e.geometry.coordinates,a))),console.log(`Method 1: Found ${s.length} PM2.5 data points within the selected area`)}catch(r){console.warn("Error using queryRenderedFeatures with bounds:",r)}if(0===s.length)try{const e=o.replace("layer-","source-");if(i.getSource(e)){s=i.querySourceFeatures(e,{sourceLayer:o.replace("layer-",""),filter:["==",["get","time"],n]}).filter((e=>!(!e.geometry||!e.geometry.coordinates)&&ot(e.geometry.coordinates,a))),console.log(`Method 2: Found ${s.length} PM2.5 data points from source`)}}catch(r){console.warn("Error using querySourceFeatures:",r)}if(0===s.length)try{const e=i.queryRenderedFeatures({layers:[o]});console.log(`Method 3: Found ${e.length} total visible features`),s=e.filter((e=>!(!e.geometry||!e.geometry.coordinates)&&(e.properties.time===n&&ot(e.geometry.coordinates,a)))),console.log(`Method 3: After filtering, ${s.length} features are in the polygon`)}catch(r){console.warn("Error using alternative feature query:",r)}if(0===s.length)try{const e=20,t=(l.maxLng-l.minLng)/e,r=(l.maxLat-l.minLat)/e,u=[];for(let n=0;n<=e;n++)for(let o=0;o<=e;o++){const e=l.minLng+n*t,i=l.minLat+o*r;u.push([e,i])}console.log(`Method 4: Created ${u.length} grid points to sample`);let c=[];u.forEach((e=>{if(ot(e,a)){const t=i.queryRenderedFeatures(i.project(e),{layers:[o]}).filter((e=>e.properties.time===n));c=[...c,...t]}}));const f=new Set;s=c.filter((e=>{const t=`${e.geometry.coordinates[0]}_${e.geometry.coordinates[1]}_${e.properties.PM25}`;return!f.has(t)&&(f.add(t),!0)})),console.log(`Method 4: Found ${s.length} features using grid sampling`)}catch(r){console.warn("Error using grid sampling method:",r)}if(console.log(`Final result: Found ${s.length} PM2.5 data points to process`),0===s.length&&p.current)return console.log("No new data found, using cached PM2.5 data"),void f((e=>({...e,exposureByPM25:{value:p.current.value,distribution:p.current.distribution,isLoading:!1,error:null}})));const c={},h={};ne.forEach((e=>{c[e.label]=0,h[e.label]=0}));let y=0,m=!1;if(s.length>0){const r=s.reduce(((e,t)=>{const r=parseFloat(t.properties.PM25);if(!isNaN(r)){const n=t.geometry.coordinates;e.push({pm25:r,coordinates:n})}return e}),[]);if(console.log(`Created PM2.5 grid with ${r.length} valid points`),r.length>0){var e,t;y=r.reduce(((e,t)=>e+t.pm25),0)/r.length,console.log(`Average PM2.5 for the area: ${y.toFixed(1)}`);const n={};ne.forEach((e=>{n[e.label]=0})),r.forEach((e=>
2{const t=ne.find(((t,r)=>{const n=ne[r+1];return e.pm25>=t.value&&(!n||e.pm25<n.value)}));t&&(n[t.label]++,m=!0)}));const o=r.length;ne.forEach((e=>{const t=n[e.label]||0;h[e.label]=o>0?parseFloat((t/o*100).toFixed(1)):0}));const i=null===(e=d.current)||void 0===e||null===(t=e.summary)||void 0===t?void 0:t.totalPopulation;i?(console.log(`Total population: ${i.toLocaleString()}`),ne.forEach((e=>{const t=n[e.label]||0,r=o>0?t/o:0;c[e.label]=Math.round(r*i)}))):(console.log("No population data available, using point counts"),ne.forEach((e=>{c[e.label]=n[e.label]||0})))}}if(!m&&p.current)return console.warn("Could not find new PM2.5 data, using cached data"),void f((e=>({...e,exposureByPM25:{value:p.current.value,distribution:p.current.distribution,isLoading:!1,error:null}})));if(!m&&!p.current)return console.warn("Could not find any PM2.5 data for this area and time period"),void f((e=>({...e,exposureByPM25:{value:null,distribution:null,isLoading:!1,error:"No PM2.5 data available for this area"}})));m&&(p.current={value:c,distribution:h,avgPM25:y,timestamp:Date.now()}),f((e=>({...e,censusStats:{...e.censusStats,value:{...e.censusStats.value,avgPM25:y}},exposureByPM25:{value:c,distribution:h,isLoading:!1,error:null}}))),console.log("PM2.5 Exposure calculated:",c),console.log("PM2.5 Distribution calculated:",h)}catch(n){console.error("Error calculating exposure:",n),p.current?(console.log("Using cached data due to error"),f((e=>({...e,exposureByPM25:{value:p.current.value,distribution:p.current.distribution,isLoading:!1,error:null}})))):f((e=>({...e,exposureByPM25:{value:null,distribution:null,isLoading:!1,error:"Failed to calculate PM2.5 exposure"}})))}}),[i,a,u]),g=(0,t.useCallback)(_e().debounce((()=>m()),500,{leading:!0,trailing:!0}),[m]);if((0,t.useEffect)((()=>{y()}),[y]),(0,t.useEffect)((()=>(m(),()=>g.cancel())),[m,u]),(0,t.useEffect)((()=>{if(s){const e=setInterval((()=>{u&&m()}),100);return()=>clearInterval(e)}}),[s,m,u]),!a)return null;const v=(e,t)=>{const r=ne.find((t=>t.label===e));return r?t?r.darkColor:r.color:t?"#00ff9d":"#00e400"};return(0,o.jsx)("div",{className:`backdrop-blur-md rounded-lg border ${l?"border-white/30":"border-mahogany/30"} shadow-lg px-3 py-2 ${l?"bg-gray-900/95":"bg-white/95"}`,children:(0,o.jsxs)("div",{className:"space-y-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(nt,{className:"w-6 h-6 "+(l?"text-white":"text-gold")}),(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsx)("div",{className:"text-sm font-semibold "+(l?"text-white":"text-forest"),children:"Population"}),(0,o.jsx)("div",{className:"text-2xl font-bold leading-tight "+(l?"text-white":"text-forest"),children:c.censusStats.isLoading?"Calculating...":c.censusStats.error?"Error":(0,o.jsxs)(o.Fragment,{children:[(null===(r=c.censusStats.value)||void 0===r||null===(n=r.totalPopulation)||void 0===n?void 0:n.toLocaleString())||"0",(0,o.jsxs)("div",{className:"text-base font-medium "+(l?"text-white/80":"text-gray-700"),children:["in ",c.censusStats.tractCount," census tracts"]})]})})]})]}),(0,o.jsxs)("div",{children:[(0,o.jsxs)("div",{className:"text-xs font-semibold mb-1 "+(l?"text-white":"text-forest"),children:["PM",(0,o.jsx)("sub",{children:"2.5"})," Level Distribution"]}),c.exposureByPM25.error||!c.exposureByPM25.value?(0,o.jsxs)("div",{className:`rounded-md ${l?"bg-gray-800/30":"bg-gray-50/50"} p-2`,children:[(0,o.jsxs)("div",{className:"flex items-center justify-between text-xs",children:[(0,o.jsxs)("div",{className:"flex items-center",children:[(0,o.jsx)("span",{className:"inline-block w-2 h-2 rounded-sm mr-1",style:{backgroundColor:v("Good",l)}}),(0,o.jsx)("span",{className:"font-medium "+(l?"text-white":"text-gray-700"),children:"Good (0+ \xb5g/m\xb3)"})]}),(0,o.jsx)("span",{className:"font-semibold "+(l?"text-white/80":"text-gray-600"),children:"100.0%"})]}),(0,o.jsx)("div",{className:"mt-1",children:(0,o.jsx)("div",{className:"h-1.5 w-full rounded-sm "+(l?"bg-gray-700":"bg-gray-200"),children:(0,o.jsx)("div",{className:"h-full rounded-sm",style:{width:"100%",backgroundColor:v("Good",l)}})})})]}):c.exposureByPM25.isLoading?(0,o.jsxs)("div",{className:"text-xs "+(l?"text-white/70":"text-gray-600"),children:["Loading PM",(0,o.jsx)("sub",{children:"2.5"})," data..."]}):(0,o.jsxs)("div",{className:`rounded-md ${l?"bg-gray-800/30":"bg-gray-50/50"} p-2`,children:[(0,o.jsx)("div",{className:"flex flex-wrap items-center gap-2 text-xs mb-2",children:ne.map((e=>{if((c.exposureByPM25.value[e.label]||0)<=0)return null;const t=c.exposureByPM25.distribution&&c.exposureByPM25.distribution[e.label]||0,r=v(e.label,l);let n;return n="Unhealthy for Sensitive Groups"===e.label?"USG":"Extremely Hazardous"===e.label?"Ext. Hazardous":e.label,(0,o.jsxs)("div",{className:"flex items-center "+(l?"text-white":"text-gray-700"),children:[(0,o.jsx)("span",{className:"inline-block w-2 h-2 rounded-sm mr-1",style:{backgroundColor:r}}),(0,o.jsx)("span",{className:"font-medium",children:n}),(0,o.jsxs)("span",{className:"ml-1 font-semibold "+(l?"text-white/80":"text-gray-600"),children:[t.toFixed(1),"%"]})]},e.label)}
2)).filter(Boolean)}),(0,o.jsx)("div",{className:"flex w-full h-2 rounded-sm overflow-hidden",children:ne.map((e=>{if((c.exposureByPM25.value[e.label]||0)<=0)return null;const t=c.exposureByPM25.distribution&&c.exposureByPM25.distribution[e.label]||0,r=v(e.label,l);return(0,o.jsx)("div",{className:"h-full",style:{width:`${t}%`,backgroundColor:r}},`bar-${e.label}`)})).filter(Boolean)})]})]})]})})},at=t.memo(it),lt=v("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),ut=v("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),st=v("Compass",[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",key:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),ct=e=>{let{map:t,isDarkMode:r}=e;return(0,o.jsx)("div",{className:"fixed right-4 bottom-16 z-50",children:(0,o.jsxs)("div",{className:"flex flex-col items-center gap-1 p-1 rounded-lg backdrop-blur-md "+(r?"bg-gray-900/90 border border-white/30":"bg-white/90 border border-mahogany/20"),children:[(0,o.jsx)("button",{onClick:()=>{t&&t.zoomIn()},className:"w-8 h-8 rounded-md flex items-center justify-center transition-colors "+(r?"hover:bg-forest/20 text-white":"hover:bg-sage-light text-forest"),"aria-label":"Zoom in",children:(0,o.jsx)(lt,{className:"w-4 h-4"})}),(0,o.jsx)("div",{className:"text-sm font-medium px-2 py-1 rounded-md "+(r?"bg-forest/10 text-white":"bg-sage-light text-forest"),children:t?Math.round(10*t.getZoom())/10:"0.0"}),(0,o.jsx)("button",{onClick:()=>{t&&t.zoomOut()},className:"w-8 h-8 rounded-md flex items-center justify-center transition-colors "+(r?"hover:bg-forest/20 text-white":"hover:bg-sage-light text-forest"),"aria-label":"Zoom out",children:(0,o.jsx)(ut,{className:"w-4 h-4"})}),(0,o.jsx)("div",{className:"w-full h-px "+(r?"bg-white/20":"bg-sage")}),(0,o.jsx)("button",{onClick:()=>{t&&t.flyTo({center:[-105,39.8283],zoom:4,bearing:0,pitch:0,duration:1500})},className:"w-8 h-8 rounded-md flex items-center justify-center transition-colors "+(r?"hover:bg-forest/20 text-white":"hover:bg-sage-light text-forest"),"aria-label":"Reset map view",children:(0,o.jsx)(st,{className:"w-4 h-4"})})]})})},ft=e=>{let{isDarkMode:r}=e;const n=(0,t.useRef)(null),i=[{type:"move",x:40,y:30,delay:1e3},{type:"click",x:40,y:30,delay:300},{type:"move",x:80,y:45,delay:800},{type:"click",x:80,y:45,delay:300},{type:"move",x:70,y:85,delay:800},{type:"click",x:70,y:85,delay:300},{type:"move",x:30,y:70,delay:800},{type:"click",x:30,y:70,delay:300},{type:"move",x:40,y:30,delay:800},{type:"doubleClick",x:40,y:30,delay:500},{type:"fill",delay:300}];return(0,t.useEffect)((()=>{const e=n.current;if(!e)return;const t=e.getContext("2d"),o={background:r?"#1f2937":"#f3f4f6",landmass:r?"#374151":"#e5e7eb",water:r?"#1e3a8a":"#bfdbfe",cursor:"#ffffff",pointFill:"#c084fc",pointStroke:"#8b5cf6",polygonFill:"rgba(168, 85, 247, 0.3)",polygonStroke:"#8b5cf6",cursorBorder:"#751d0c"},a=[];let l,u=0;const s=(e,r)=>{t.beginPath(),t.arc(e,r,10,0,2*Math.PI),t.fillStyle="rgba(168, 85, 247, 0.3)",t.fill()},c=()=>{u>=i.length&&(u=0,a.length=0);const r=i[u];t.fillStyle=o.background,t.fillRect(0,0,e.width,e.height),t.fillStyle=o.water,t.fillRect(10,10,e.width-20,e.height-20),t.fillStyle=o.landmass,t.beginPath(),t.moveTo(30,20),t.lineTo(80,30),t.lineTo(90,70),t.lineTo(60,90),t.lineTo(20,70),t.closePath(),t.fill(),(()=>{if(!(a.length<2)){t.beginPath(),t.moveTo(a[0].x,a[0].y);for(let e=1;e<a.length;e++)t.lineTo(a[e].x,a[e].y);a.length>2&&(t.closePath(),t.fillStyle=o.polygonFill,t.fill()),t.strokeStyle=o.polygonStroke,t.lineWidth=2,t.stroke()}})(),a.forEach((e=>{t.beginPath(),t.arc(e.x,e.y,4,0,2*Math.PI),t.fillStyle=o.pointFill,t.fill(),t.strokeStyle=o.pointStroke,t.lineWidth=1,t.stroke()})),"fill"!==r.type&&function(e,r){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.beginPath(),t.arc(e,r,n?6:10,0,2*Math.PI),t.strokeStyle=o.cursorBorder,t.lineWidth=1.5,t.stroke(),t.beginPath(),t.arc(e,r,n?3:5,0,2*Math.PI),t.fillStyle=o.cursorBorder,t.fill()}(r.x,r.y,"click"===r.type||"doubleClick"===r.type),(e=>{switch(e.type){case"move":case"fill":break;case"click":a.push({x:e.x,y:e.y}),s(e.x,e.y);break;case"doubleClick":s(e.x,e.y),setTimeout((()=>s(e.x,e.y)),100)}})(r),setTimeout((()=>{u++,l=requestAnimationFrame(c)}),r.delay)};return l=requestAnimationFrame(c),()=>{cancelAnimationFrame(l)}}),[r]),(0,o.jsx)("canvas",{ref:n,width:100,height:75,className:"rounded-lg shadow-sm w-full h-full object-contain"})},dt=e=>{let{drawingMode:t,tempPolygon:r,isDarkMode:n,finishDrawing:i}=e;if(!t)return null;
2const a=0===r.length?{instruction:"Click anywhere on the map to start drawing"}:r.length<3?{instruction:`Add ${3-r.length} more point${2===r.length?"":"s"} to form a shape`}:{instruction:"Add more points or double-click to finish"},l=(u=r,Array.isArray(u)&&u.length>=3);var u;return(0,o.jsx)("div",{className:"fixed top-24 left-1/2 -translate-x-1/2 z-[60] py-2 px-3 rounded-lg backdrop-blur-md shadow-lg max-w-md "+(n?"bg-gray-900/90 border border-white text-white":"bg-white/90 border border-mahogany text-forest"),children:(0,o.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3 w-full",children:[(0,o.jsx)("div",{className:"w-16 h-12 flex-shrink-0 bg-sage-light/50 rounded",children:(0,o.jsx)(ft,{isDarkMode:n})}),(0,o.jsxs)("div",{className:"flex-1",children:[(0,o.jsx)("div",{className:"text-sm font-medium",children:a.instruction}),(0,o.jsxs)("div",{className:"text-xs "+(n?"text-white/80":"text-forest-light"),children:["Points added: ",(0,o.jsx)("span",{className:"font-medium",children:r.length})]})]}),l&&(0,o.jsxs)("button",{onClick:i,className:"h-8 px-2 rounded flex items-center gap-1 transition-colors text-xs "+(n?"bg-forest hover:bg-forest-dark text-white":"bg-forest hover:bg-forest-dark text-cream"),children:[(0,o.jsx)(tt,{className:"w-3 h-3"}),(0,o.jsx)("span",{className:"font-medium",children:"Finish"})]})]}),l&&(0,o.jsx)("div",{className:`w-full flex items-center ${n?"bg-gray-800/50":"bg-sage-light/50"} rounded py-1 px-2 text-xs ${n?"text-white":"text-forest"}`,children:(0,o.jsx)("span",{className:"font-medium",children:"Double-click to finish the shape"})})]})})},pt=v("CornerUpLeft",[["polyline",{points:"9 14 4 9 9 4",key:"881910"}],["path",{d:"M20 20v-7a4 4 0 0 0-4-4H4",key:"1nkjon"}]]),ht=e=>{let{drawingMode:r,tempPolygon:n}=e;const[i,a]=(0,t.useState)({x:0,y:0}),[l,u]=(0,t.useState)(!1);if((0,t.useEffect)((()=>{if(!r)return void u(!1);const e=e=>{a({x:e.clientX,y:e.clientY}),u(!0)};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)}),[r]),!l||!r)return null;const s=0===(c=n.length)?"Click to start drawing":1===c?"Click to add points":2===c?"Add 1 more point to form a shape":"Double-click to finish";var c;const f=n.length>=2;return(0,o.jsxs)("div",{className:"fixed pointer-events-none z-50 flex items-center bg-cream/90 backdrop-blur-sm shadow-lg rounded-lg px-3 py-2 text-sm text-forest font-medium",style:{left:i.x+16,top:i.y+16,transform:"translate(0, -50%)"},children:[f&&(0,o.jsx)(pt,{className:"w-4 h-4 mr-2 text-sage"}),s]})},yt=v("Wind",[["path",{d:"M12.8 19.6A2 2 0 1 0 14 16H2",key:"148xed"}],["path",{d:"M17.5 8a2.5 2.5 0 1 1 2 4H2",key:"1u4tom"}],["path",{d:"M9.8 4.4A2 2 0 1 1 11 8H2",key:"75valh"}]]),mt=v("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),gt=e=>{let{step:r,element:n,isDarkMode:i,onPrevious:a,onNext:l,onSkip:u,isLastStep:s,stepNumber:c,totalSteps:f}=e;const[d,p]=(0,t.useState)({top:0,left:0});return(0,t.useEffect)((()=>{const e=()=>{if(n)try{const e=n.getBoundingClientRect(),t=400,o=180;let i,a;switch(r.position){case"top":i=e.top-o-50,a=e.left+e.width/2-t/2;break;case"bottom":default:i=e.bottom+10,a=e.left+e.width/2-t/2;break;case"left":i=e.top+e.height/2-o/2,a=e.left-t-10;break;case"right":i=e.top+e.height/2-o/2,a=e.right+10}a<10&&(a=10),a+t>window.innerWidth-10&&(a=window.innerWidth-t-10),i<10&&(i=10),i+o>window.innerHeight-10&&(i=window.innerHeight-o-10),p({top:i,left:a})}catch(e){console.warn("Error positioning tooltip:",e)}else{const e=(e=>{switch(e){case"time-controls":return{top:window.innerHeight-150,left:window.innerWidth/2-150};case"pm25-threshold":return{top:100,left:window.innerWidth/2-150};case"date-time":return{top:100,left:window.innerWidth/2};case"theme-controls":return{top:100,left:window.innerWidth/2+150};case"draw-button":return{top:100,left:window.innerWidth/2+250};case"zoom-controls":return{top:window.innerHeight/2,left:100}
2;default:return{top:window.innerHeight/2,left:window.innerWidth/2}}})(r.target);p(e)}};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}),[n,r.position,r.target]),(0,o.jsxs)("div",{className:"absolute w-[300px] rounded-lg shadow-lg pointer-events-auto "+(i?"bg-gray-900 border border-mahogany":"bg-white border border-mahogany"),style:{top:`${d.top}px`,left:`${d.left}px`},children:[(0,o.jsxs)("div",{className:"px-4 py-3 border-b flex items-center gap-2 "+(i?"border-mahogany/50":"border-mahogany/30"),children:[(0,o.jsx)("div",{className:"p-1.5 rounded-lg "+(i?"bg-purple-500/20 text-purple-400":"bg-purple-100 text-purple-600"),children:r.icon?t.createElement(r.icon,{className:"w-4 h-4"}):(0,o.jsx)(w,{className:"w-4 h-4"})}),(0,o.jsx)("h3",{className:"text-sm font-medium "+(i?"text-white":"text-gray-800"),children:r.title}),(0,o.jsxs)("div",{className:"ml-auto px-2 py-0.5 rounded text-xs "+(i?"bg-purple-500/10 text-purple-300":"bg-purple-100 text-purple-700"),children:["Step ",c," of ",f]})]}),(0,o.jsx)("div",{className:"px-4 py-3",children:(0,o.jsx)("p",{className:"text-sm "+(i?"text-gray-300":"text-gray-600"),children:r.description})}),(0,o.jsxs)("div",{className:"px-4 py-3 border-t flex justify-between "+(i?"border-mahogany/50":"border-mahogany/30"),children:[(0,o.jsxs)("div",{className:"flex gap-2",children:[(0,o.jsx)("button",{onClick:a,className:"p-1.5 rounded-lg "+(i?"hover:bg-gray-800 text-gray-300":"hover:bg-gray-100 text-gray-600"),children:(0,o.jsx)(Ye,{className:"w-4 h-4"})}),(0,o.jsx)("button",{onClick:u,className:"text-xs px-2 py-1 rounded "+(i?"hover:bg-gray-800 text-gray-400":"hover:bg-gray-100 text-gray-500"),children:"Skip"})]}),(0,o.jsxs)("button",{onClick:l,className:"px-3 py-1.5 rounded-lg flex items-center gap-1 text-sm "+(i?"bg-purple-600 hover:bg-purple-700 text-white":"bg-purple-500 hover:bg-purple-600 text-white"),children:[s?"Finish":"Next",!s&&(0,o.jsx)(Xe,{className:"w-4 h-4"})]})]})]})},vt=e=>{let{onComplete:r,isDarkMode:n}=e;const[i,a]=(0,t.useState)(!0),[l,u]=(0,t.useState)(0),[s,c]=(0,t.useState)(null),[f,d]=(0,t.useState)(null),p=(0,t.useRef)(null),h=(0,t.useRef)(new Set),y=[{title:"Welcome to PM<sub>2.5</sub> visualization tool",description:"This interactive map shows PM<sub>2.5</sub> air quality data from Smoke across the United States. We'll walk you through the main features to help you get started.",target:null,icon:b},{title:"Time Controls",description:"Use these controls to play through time, change the playback speed, or jump to a specific time. This lets you see how air quality changes over 2 days of forecast data.",target:"time-controls",position:"top",icon:Fe},{title:"PM<sub>2.5</sub> Threshold",description:"Adjust this slider or enter a value to filter air quality data. Only areas with PM<sub>2.5</sub> levels above or at this threshold will be visible. ",target:"pm25-threshold",position:"bottom",icon:yt},{title:"Date and Time",description:"Shows the current date and time being displayed on the map. The data updates hourly with the latest air quality measurements.",target:"date-time",position:"bottom",icon:Fe},{title:"Theme Controls",description:"Toggle between light and dark mode, or choose different map styles to customize your viewing experience.",target:"theme-controls",position:"bottom",icon:Ve},{title:"Draw Area",description:"Click to draw a custom area on the map. You can analyze population and air quality statistics within this region to see how many people are affected.",target:"draw-button",position:"bottom",icon:mt},{title:"Zoom Controls",description:"Zoom in and out of the map, or reset to the default view.",target:"zoom
2-controls",position:"right",icon:b}],m=(0,t.useCallback)((e=>{if(e&&document.body.contains(e))try{e.removeAttribute("style"),h.current.delete(e)}catch(t){console.error("Error cleaning up element:",t)}}),[]),g=(0,t.useCallback)((()=>{console.log("Performing final cleanup of all tour highlights"),h.current.forEach(m),h.current.clear();document.querySelectorAll("[style]").forEach((e=>{try{const t=e.getAttribute("style")||"";(t.includes("outline")||t.includes("purple")||t.includes("scale(1.02)")||t.includes("box-shadow")&&t.includes("rgba(168, 85, 247")||t.includes("z-index: 1050"))&&(console.log("Cleaning element with tour styling:",e),e.removeAttribute("style"))}catch(t){console.error("Error cleaning element:",t)}}))}),[m]),v=()=>{if(p.current){try{p.current()}catch(e){console.error("Error cleaning up in handleNext:",e)}p.current=null}m(s),l<y.length-1?u(l+1):(g(),setTimeout(g,100),a(!1),r&&r())},x=()=>{if(p.current){try{p.current()}catch(e){console.error("Error cleaning up in handleSkip:",e)}p.current=null}m(s),g(),setTimeout(g,100),a(!1),r&&r()},S=(0,t.useCallback)((e=>{const t=[`[data-tour="${e}"]`,`[id="tour-${e}"]`,`[class*="${e}"]`,`[class*="${e.replace(/-/g,"")}"]`,`[title*="${e.replace(/-/g," ")}"]`];"time-controls"===e?t.push(".TimeControls",'[class*="TimeControls"]',".fixed.bottom-4.left-1\\/2.-translate-x-1\\/2",'.fixed.bottom-4 [class*="rounded-lg"]'):"pm25-threshold"===e?t.push('[class*="PM25ThresholdSlider"]','[class*="PM25"]','.top-4.left-1\\/2.-translate-x-1\\/2 [class*="rounded-xl"]',".fixed.top-4 .flex.items-center.gap-4 > :first-child"):"date-time"===e?t.push('[class*="DateTime"]','.top-4.left-1\\/2.-translate-x-1\\/2 [class*="rounded-lg"]',".fixed.top-4 .flex.items-center.gap-4 > :nth-child(2)"):"theme-controls"===e?t.push('[title="Switch to light mode"]','[title="Switch to dark mode"]','.w-10.h-10.rounded-lg:has(svg[class*="Sun"], svg[class*="Moon"])',".flex.items-center.gap-2 > button:first-child",".fixed.top-4 .flex.items-center.gap-4 > :nth-child(3) > .flex.items-center.gap-2 > button:first-child"):"draw-button"===e?t.push('[title="Draw Area"]','button[title*="Draw"]','button[class*="w-10 h-10 rounded-lg"]',".fixed.top-4 .flex.items-center.gap-4 > :nth-child(3) > :nth-child(2)"):"zoom-controls"===e&&t.push('[class*="ZoomControls"]',".fixed.left-4.bottom-4",".fixed.left-4.bottom-4 > div");for(const n of t)try{const t=document.querySelector(n);if(t)return console.log(`Found element for ${e} using selector: ${n}`),t}catch(r){console.warn(`Error with selector ${n}:`,r)}try{if("time-controls"===e){const e=Array.from(document.querySelectorAll(".fixed.bottom-4 *")).sort(((e,t)=>t.offsetWidth*t.offsetHeight-e.offsetWidth*e.offsetHeight))[0];if(e)return e}else if("zoom-controls"===e){const e=Array.from(document.querySelectorAll(".fixed.left-4 *")).sort(((e,t)=>t.offsetWidth*t.offsetHeight-e.offsetWidth*e.offsetHeight))[0];if(e)return e}}catch(r){console.warn("Error in fallback element finding:",r)}return console.warn(`Could not find element for ${e}`),null}),[]);return(0,t.useEffect)((()=>{if(p.current){try{console.log("Executing cleanup function for previous element"),p.current()}catch(t){console.error("Error during cleanup:",t)}p.current=null}m(f);const e=setTimeout((()=>{const e=y[l];if(e.target){const t=S(e.target);if(t){console.log(`Found element for ${e.target}:`,t),d(s),c(t),h.current.add(t);const r=()=>{if(!t||!document.body.contains(t))return()=>{};const r="time-controls"===e.target;return t.style.position="static"===t.style.position?"relative":t.style.position,t.style.zIndex="1050",t.style.outline="2px solid "+(n?"#a855f7":"#8b5cf6"),t.style.outlineOffset="4px",t.style.boxShadow="0 0 0 4px "+(n?"rgba(168, 85, 247, 0.3)":"rgba(139, 92, 246, 0.3)"),t.style.transition="outline 0.2s, box-shadow 0.2s",r||(t.style.transform="scale(1.02)",t.style.transition+=", transform 0.2s"),()=>{m(t)}};p.current=r()}else console.warn(`Could not find element for ${e.target}`),d(null),c(null)}else c(null),d(null)}),50);return()=>clearTimeout(e)}),[l,y,S,f,n,s,m]),(0,t.useEffect)((()=>{if(!i){const e=new MutationObserver((e=>{e.forEach((e=>{if("attributes"===e.type&&"style"===e.attributeName){const t=e.target,r=t.getAttribute("style")||"";(r.includes("outline")&&(r.includes("purple")||r.includes("#a855f7")||r.includes("#8b5cf6"))||r.includes("box-shadow")&&r.includes("scale(1.02)"))&&(console.log("Removing residual tour styling:",t),t.removeAttribute("style"))}}))}));e.observe(document.body,{subtree:!0,attributes:!0,attributeFilter:["style"]});const t=setTimeout((()=>{e.disconnect()}),1e3);return()=>{clearTimeout(t),e.disconnect()}}}),[i]),(0,t.useEffect)((()=>(window.cleanUpTourHighlights=()=>
2{if(g(),p.current){try{p.current()}catch(e){console.error("Error in global cleanup:",e)}p.current=null}},()=>{window.cleanUpTourHighlights&&window.cleanUpTourHighlights(),g(),delete window.cleanUpTourHighlights})),[g]),i?(0,o.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center",children:[(0,o.jsx)("div",{className:"absolute inset-0 bg-black/50 pointer-events-auto",onClick:x}),0===l&&(0,o.jsxs)("div",{className:`relative w-[500px] rounded-xl shadow-xl overflow-hidden ${n?"bg-gray-900 border-2 border-mahogany":"bg-white border-2 border-mahogany"} pointer-events-auto`,children:[(0,o.jsx)("div",{className:"px-6 py-4 border-b "+(n?"border-mahogany/50":"border-mahogany/30"),children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[(0,o.jsx)("div",{className:"p-2 rounded-lg "+(n?"bg-purple-500/10 text-purple-400":"bg-purple-100 text-purple-600"),children:(0,o.jsx)(b,{className:"w-6 h-6"})}),(0,o.jsx)("h2",{className:"text-xl font-semibold "+(n?"text-white":"text-gray-800"),children:y[l].title})]}),(0,o.jsx)("button",{onClick:x,className:"p-1 rounded-full "+(n?"hover:bg-gray-800 text-gray-400":"hover:bg-gray-100 text-gray-600"),children:(0,o.jsx)(O,{className:"w-5 h-5"})})]})}),(0,o.jsxs)("div",{className:"px-6 py-6",children:[(0,o.jsx)("p",{className:"text-base "+(n?"text-gray-300":"text-gray-600"),children:y[l].description}),(0,o.jsxs)("div",{className:"mt-4 flex gap-3 p-4 rounded-lg bg-blue-500/10 border border-mahogany/20",children:[(0,o.jsx)("div",{className:"text-blue-500 shrink-0 mt-1",children:(0,o.jsx)(w,{className:"w-5 h-5"})}),(0,o.jsx)("p",{className:"text-sm "+(n?"text-blue-300":"text-blue-700"),children:"The help button in the bottom right will return you to the full introduction page at any time."})]})]}),(0,o.jsxs)("div",{className:"px-6 py-4 border-t flex justify-between "+(n?"border-mahogany/50":"border-mahogany/30"),children:[(0,o.jsx)("button",{onClick:x,className:"px-4 py-2 rounded-lg "+(n?"bg-gray-800 hover:bg-gray-700 text-gray-300":"bg-gray-100 hover:bg-gray-200 text-gray-600"),children:"Skip tour"}),(0,o.jsxs)("button",{onClick:v,className:"px-4 py-2 rounded-lg flex items-center gap-2 "+(n?"bg-purple-600 hover:bg-purple-700 text-white":"bg-purple-500 hover:bg-purple-600 text-white"),children:["Next",(0,o.jsx)(Xe,{className:"w-4 h-4"})]})]})]}),l>0&&(0,o.jsx)(gt,{step:y[l],element:s,isDarkMode:n,onPrevious:()=>{if(p.current){try{p.current()}catch(e){console.error("Error cleaning up in handlePrevious:",e)}p.current=null}m(s),l>0&&u(l-1)},onNext:v,onSkip:x,isLastStep:l===y.length-1,stepNumber:l,totalSteps:y.length-1})]}):null},bt=e=>{let{isDarkMode:t}=e;return(0,o.jsx)("div",{className:"absolute inset-0 flex justify-center items-center bg-white",children:(0,o.jsx)("div",{className:"text-obsidian font-sora font-medium text-sm opacity-70",children:"Initializing map..."})})};function xt(e){var t,r,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=xt(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}const wt=function(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=xt(e))&&(n&&(n+=" "),n+=t);return n};var St=r(9889),kt=r.n(St),Ot=r(620),jt=r.n(Ot),_t=r(5268),Et=r.n(_t),Pt=r(3097),Ct=r.n(Pt),Mt=r(9160),Tt=r.n(Mt),At=function(e){return 0===e?0:e>0?1:-1},Nt=function(e){return jt()(e)&&e.indexOf("%")===e.length-1},Dt=function(e){return Tt()(e)&&!Et()(e)},Lt=function(e){return Dt(e)||jt()(e)},It=0,zt=function(e){var t=++It;return"".concat(e||"").concat(t)},Rt=function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!Dt(e)&&!jt()(e))return n;if(Nt(e)){var i=e.indexOf("%");r=t*parseFloat(e.slice(0,i))/100}else r=+e;return Et()(r)&&(r=n),o&&r>t&&(r=t),r},Bt=function(e){if(!e)return null;var t=Object.keys(e);return t&&t.length?e[t[0]]:null},Ft=function(e,t){return Dt(e)&&Dt(t)?function(r){return e+r*(t-e)}:function(){return t}};function $t(e,t,r){return e&&e.length?e.find((function(e){return e&&("function"===typeof t?t(e):Ct()(e,t))===r})):null}var Ut=function(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o]},Ht=r(9686),Wt=r.n(Ht),qt=r(1629),Vt=r.n(qt),Gt=r(6686),Kt=r.n(Gt),Yt=r(9062);function Xt(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Zt(e){return Zt="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},Zt(e)}var Qt=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRen
2dering","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","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","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","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Jt=["points","pathLength"],er={svg:["viewBox","children"],polygon:Jt,polyline:Jt},tr=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDrag
2Capture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],rr=function(e,r){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var n=e;if((0,t.isValidElement)(e)&&(n=e.props),!Kt()(n))return null;var o={};return Object.keys(n).forEach((function(e){tr.includes(e)&&(o[e]=r||function(t){return n[e](n,t)})})),o},nr=function(e,t,r){if(!Kt()(e)||"object"!==Zt(e))return null;var n=null;return Object.keys(e).forEach((function(o){var i=e[o];tr.includes(o)&&"function"===typeof i&&(n||(n={}),n[o]=function(e,t,r){return function(n){return e(t,r,n),null}}(i,t,r))})),n},or=["children"],ir=["children"];function ar(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function lr(e){return lr="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},lr(e)}var ur={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},sr=function(e){return"string"===typeof e?e:e?e.displayName||e.name||"Component":""},cr=null,fr=null,dr=function e(r){if(r===cr&&Array.isArray(fr))return fr;var n=[];return t.Children.forEach(r,(function(t){Wt()(t)||((0,Yt.isFragment)(t)?n=n.concat(e(t.props.children)):n.push(t))})),fr=n,cr=r,n};function pr(e,t){var r=[],n=[];return n=Array.isArray(t)?t.map((function(e){return sr(e)})):[sr(t)],dr(e).forEach((function(e){var t=Ct()(e,"type.displayName")||Ct()(e,"type.name");-1!==n.indexOf(t)&&r.push(e)})),r}function hr(e,t){var r=pr(e,t);return r&&r[0]}var yr=function(e){if(!e||!e.props)return!1;var t=e.props,r=t.width,n=t.height;return!(!Dt(r)||r<=0||!Dt(n)||n<=0)},mr=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],gr=function(e){return e&&e.type&&jt
2()(e.type)&&mr.indexOf(e.type)>=0},vr=function(e,r,n){if(!e||"function"===typeof e||"boolean"===typeof e)return null;var o=e;if((0,t.isValidElement)(e)&&(o=e.props),!Kt()(o))return null;var i={};return Object.keys(o).forEach((function(e){var t;(function(e,t,r,n){var o,i=null!==(o=null===er||void 0===er?void 0:er[n])&&void 0!==o?o:[];return!Vt()(e)&&(n&&i.includes(t)||Qt.includes(t))||r&&tr.includes(t)})(null===(t=o)||void 0===t?void 0:t[e],e,r,n)&&(i[e]=o[e])})),i},br=function e(r,n){if(r===n)return!0;var o=t.Children.count(r);if(o!==t.Children.count(n))return!1;if(0===o)return!0;if(1===o)return xr(Array.isArray(r)?r[0]:r,Array.isArray(n)?n[0]:n);for(var i=0;i<o;i++){var a=r[i],l=n[i];if(Array.isArray(a)||Array.isArray(l)){if(!e(a,l))return!1}else if(!xr(a,l))return!1}return!0},xr=function(e,t){if(Wt()(e)&&Wt()(t))return!0;if(!Wt()(e)&&!Wt()(t)){var r=e.props||{},n=r.children,o=ar(r,or),i=t.props||{},a=i.children,l=ar(i,ir);return n&&a?Xt(o,l)&&br(n,a):!n&&!a&&Xt(o,l)}return!1},wr=function(e,t){var r=[],n={};return dr(e).forEach((function(e,o){if(gr(e))r.push(e);else if(e){var i=sr(e.type),a=t[i]||{},l=a.handler,u=a.once;if(l&&(!u||!n[i])){var s=l(e,i,o);r.push(s),n[i]=!0}}})),r};function Sr(e){return Sr="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},Sr(e)}function kr(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 Or(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kr(Object(r),!0).forEach((function(t){jr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jr(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Sr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Sr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Sr(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _r(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Er(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Er(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Er(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Pr=(0,t.forwardRef)((function(e,r){var n=e.aspect,o=e.initialDimension,i=void 0===o?{width:-1,height:-1}:o,a=e.width,l=void 0===a?"100%":a,u=e.height,s=void 0===u?"100%":u,c=e.minWidth,f=void 0===c?0:c,d=e.minHeight,p=e.maxHeight,h=e.children,y=e.debounce,m=void 0===y?0:y,g=e.id,v=e.className,b=e.onResize,x=e.style,w=void 0===x?{}:x,S=(0,t.useRef)(null),k=(0,t.useRef)();k.current=b,(0,t.useImperativeHandle)(r,(function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})}
2));var O=_r((0,t.useState)({containerWidth:i.width,containerHeight:i.height}),2),j=O[0],_=O[1],E=(0,t.useCallback)((function(e,t){_((function(r){var n=Math.round(e),o=Math.round(t);return r.containerWidth===n&&r.containerHeight===o?r:{containerWidth:n,containerHeight:o}}))}),[]);(0,t.useEffect)((function(){var e=function(e){var t,r=e[0].contentRect,n=r.width,o=r.height;E(n,o),null===(t=k.current)||void 0===t||t.call(k,n,o)};m>0&&(e=kt()(e,m,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),r=S.current.getBoundingClientRect(),n=r.width,o=r.height;return E(n,o),t.observe(S.current),function(){t.disconnect()}}),[E,m]);var P=(0,t.useMemo)((function(){var e=j.containerWidth,r=j.containerHeight;if(e<0||r<0)return null;Ut(Nt(l)||Nt(s),"The width(%s) and height(%s) are both fixed numbers,\n       maybe you don't need to use a ResponsiveContainer.",l,s),Ut(!n||n>0,"The aspect(%s) must be greater than zero.",n);var o=Nt(l)?e:l,i=Nt(s)?r:s;n&&n>0&&(o?i=o/n:i&&(o=i*n),p&&i>p&&(i=p)),Ut(o>0||i>0,"The width(%s) and height(%s) of chart should be greater than 0,\n       please check the style of container, or the props width(%s) and height(%s),\n       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the\n       height and width.",o,i,l,s,f,d,n);var a=!Array.isArray(h)&&sr(h.type).endsWith("Chart");return t.Children.map(h,(function(e){return t.isValidElement(e)?(0,t.cloneElement)(e,Or({width:o,height:i},a?{style:Or({height:"100%",width:"100%",maxHeight:i,maxWidth:o},e.props.style)}:{})):e}))}),[n,h,s,p,d,f,j,l]);return t.createElement("div",{id:g?"".concat(g):void 0,className:wt("recharts-responsive-container",v),style:Or(Or({},w),{},{width:l,height:s,minWidth:f,minHeight:d,maxHeight:p}),ref:S},P)})),Cr=r(6604),Mr=r.n(Cr),Tr=r(7424),Ar=r.n(Tr),Nr="Invariant failed";function Dr(e,t){if(!e)throw new Error(Nr)}var Lr=["children","width","height","viewBox","className","style","title","desc"];function Ir(){return Ir=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},Ir.apply(this,arguments)}function zr(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Rr(e){var r=e.children,n=e.width,o=e.height,i=e.viewBox,a=e.className,l=e.style,u=e.title,s=e.desc,c=zr(e,Lr),f=i||{width:n,height:o,x:0,y:0},d=wt("recharts-surface",a);return t.createElement("svg",Ir({},vr(c,!0,"svg"),{className:d,width:n,height:o,style:l,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),t.createElement("title",null,u),t.createElement("desc",null,s),r)}var Br=["children","className"];function Fr(){return Fr=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},Fr.apply(this,arguments)}function $r(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Ur=t.forwardRef((function(e,r){var n=e.children,o=e.className,i=$r(e,Br),a=wt("recharts-layer",o);return t.createElement("g",Fr({className:a},vr(i,!0),{ref:r}),n)}));function Hr(e){return Hr="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},Hr(e)}function Wr(){return Wr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wr.apply(this,arguments)}function qr(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Vr(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vr(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vr(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Gr(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 Kr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Gr(Object(r),!0).forEach((function(t){Yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Gr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Yr(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Hr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Hr(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xr(e){return Array.isArray(e)&&Lt(e[0])&&Lt(e[1])?e.join(" ~ "):e}var Zr=function(e){var r=e.separator,n=void 0===r?" : ":r,o=e.contentStyle,i=void 0===o?{}:o,a=e.itemStyle,l=void 0===a?{}:a,u=e.labelStyle,s=void 0===u?{}:u,c=e.payload,f=e.formatter,d=e.itemSorter,p=e.wrapperClassName,h=e.labelClassName,y=e.label,m=e.labelFormatter,g=e.accessibilityLayer,v=void 0!==g&&g,b=Kr({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),x=Kr({margin:0},s),w=!Wt()(y),S=w?y:"",k=wt("recharts-default-tooltip",p),O=wt("recharts-tooltip-label",h);w&&m&&void 0!==c&&null!==c&&(S=m(y,c));var j=v?{role:"status","aria-live":"assertive"}:{};return t.createElement("div",Wr({className:k,style:b},j),t.createElement("p",{className:O,style:x},t.isValidElement(S)?S:"".concat(S)),function(){if(c&&c.length){var e=(d?Ar()(c,d):c).map((function(e,r){if("none"===e.type)return null;var o=Kr({display:"block",paddingTop:4,paddingBottom:4,color:e.color||"#000"},l),i=e.formatter||f||Xr,a=e.value,u=e.name,s=a,d=u;if(i&&null!=s&&null!=d){var p=i(a,u,e,r,c);if(Array.isArray(p)){var h=qr(p,2);s=h[0],d=h[1]}else s=p}return t.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(r),style:o},Lt(d)?t.createElement("span",{className:"recharts-tooltip-item-name"},d):null,Lt(d)?t.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,t.createElement("span",{className:"recharts-tooltip-item-value"},s),t.createElement("span",{className:"recharts-tooltip-item-unit"},e.unit||""))}));return t.createElement("ul",{className:"recharts-tooltip-item-list",style:{padding:0,margin:0}},e)}return null}())};function Qr(e){return Qr="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},Qr(e)}function Jr(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Qr(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Qr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Qr(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var en="recharts-tooltip-wrapper",tn={visibility:"hidden"};function rn(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return wt(en,Jr(Jr(Jr(Jr({},"".concat(en,"-right"),Dt(r)&&t&&Dt(t.x)&&r>=t.x),"".concat(en,"-left"),Dt(r)&&t&&Dt(t.x)&&r<t.x),"".concat(en,"-bottom"),Dt(n)&&t&&Dt(t.y)&&n>=t.y),"".concat(en,"-top"),Dt(n)&&t&&Dt(t.y)&&n<t.y))}function nn(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,o=e.offsetTopLeft,i=e.position,a=e.reverseDirection,l=e.tooltipDimension,u=e.viewBox,s=e.viewBoxDimension;if(i&&Dt(i[n]))return i[n];var c=r[n]-l-o,f=r[n]+o;return t[n]?a[n]?c:f:a[n]?c<u[n]?Math.max(f,u[n]):Math.max(c,u[n]):f+l>u[n]+s?Math.max(c,u[n]):Math.max(f,u[n])}function on(e){return on="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},on(e)}function an(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 ln(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?an(Object(r),!0).forEach((function(t){pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):an(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function un(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,hn(n.key),n)}}function sn(e,t,r){return t=fn(t),function(e,t){if(t&&("object"===on(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,cn()?Reflect.construct(t,r||[],fn(e).constructor):t.apply(e,r))}function cn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(cn=function(){return!!e})()}function fn(e){return fn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fn(e)}function dn(e,t){return dn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dn(e,t)}function pn(e,t,r){return(t=hn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hn(e){var t=function(e,t){if("object"!=on(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=on(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==on(t)?t:t+""}var yn=function(e){function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return pn(e=sn(this,r,[].concat(n)),"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pn(e,"handleKeyDown",(function(t){var r,n,o,i;"Escape"===t.key&&e.setState({dismissed:!0,dismissedAtCoordinate:{x:null!==(r=null===(n=e.props.coordinate)||void 0===n?void 0:n.x)&&void 0!==r?r:0,y:null!==(o=null===(i=e.props.coordinate)||void 0===i?void 0:i.y)&&void 0!==o?o:0}})})),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dn(e,t)}(r,e),n=r,(o=[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();(Math.abs(e.width-this.state.lastBoundingBox.width)>1||Math.abs(e.height-this.state.lastBoundingBox.height)>1)&&this.setState({lastBoundingBox:{width:e.width,height:e.height}})}else-1===this.state.lastBoundingBox.width&&-1===this.state.lastBoundingBox.height||this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var e,t;this.props.active&&this.updateBBox(),this.state.dismissed&&((null===(e=this.props.coordinate)||void 0===e?void 0:e.x)===this.state.dismissedAtCoordinate.x&&(null===(t=this.props.coordinate)||void 0===t?void 0:t.y)===this.state.dismissedAtCoordinate.y||(this.state.dismissed=!1))}},{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,l=r.children,u=r.coordinate,s=r.hasPayload,c=r.isAnimationActive,f=r.offset,d=r.position,p=r.reverseDirection,h=r.useTranslate3d,y=r.viewBox,m=r.wrapperStyle,g=function(e){var t,r,n=e.allowEscapeViewBox,o=e.coordinate,i=e.offsetTopLeft,a=e.position,l=e.reverseDirection,u=e.tooltipBox,s=e.useTranslate3d,
2c=e.viewBox;return{cssProperties:u.height>0&&u.width>0&&o?function(e){var t=e.translateX,r=e.translateY;return{transform:e.useTranslate3d?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}({translateX:t=nn({allowEscapeViewBox:n,coordinate:o,key:"x",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:u.width,viewBox:c,viewBoxDimension:c.width}),translateY:r=nn({allowEscapeViewBox:n,coordinate:o,key:"y",offsetTopLeft:i,position:a,reverseDirection:l,tooltipDimension:u.height,viewBox:c,viewBoxDimension:c.height}),useTranslate3d:s}):tn,cssClasses:rn({translateX:t,translateY:r,coordinate:o})}}({allowEscapeViewBox:o,coordinate:u,offsetTopLeft:f,position:d,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:h,viewBox:y}),v=g.cssClasses,b=g.cssProperties,x=ln(ln({transition:c&&n?"transform ".concat(i,"ms ").concat(a):void 0},b),{},{pointerEvents:"none",visibility:!this.state.dismissed&&n&&s?"visible":"hidden",position:"absolute",top:0,left:0},m);return t.createElement("div",{tabIndex:-1,className:v,style:x,ref:function(t){e.wrapperNode=t}},l)}}])&&un(n.prototype,o),i&&un(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent),mn={isSsr:!("undefined"!==typeof window&&window.document&&window.document.createElement&&window.setTimeout),get:function(e){return mn[e]},set:function(e,t){if("string"===typeof e)mn[e]=t;else{var r=Object.keys(e);r&&r.length&&r.forEach((function(t){mn[t]=e[t]}))}}},gn=r(977),vn=r.n(gn);function bn(e,t,r){return!0===t?vn()(e,r):Vt()(t)?vn()(e,t):e}function xn(e){return xn="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},xn(e)}function wn(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 Sn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){Pn(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kn(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,Cn(n.key),n)}}function On(e,t,r){return t=_n(t),function(e,t){if(t&&("object"===xn(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jn()?Reflect.construct(t,r||[],_n(e).constructor):t.apply(e,r))}function jn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jn=function(){return!!e})()}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}function En(e,t){return En=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},En(e,t)}function Pn(e,t,r){return(t=Cn(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cn(e){var t=function(e,t){if("object"!=xn(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=xn(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==xn(t)?t:t+""}function Mn(e){return e.dataKey}var Tn=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),On(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&En(e,t)}(r,e),n=r,(o=[{key:"render",value:function(){var e=this,r=this.props,n=r.active,o=r.allowEscapeViewBox,i=r.animationDuration,a=r.animationEasing,l=r.content,u=r.coordinate,
vendor: 5,281 bytes, line 2
2s=r.filterNull,c=r.isAnimationActive,f=r.offset,d=r.payload,p=r.payloadUniqBy,h=r.position,y=r.reverseDirection,m=r.useTranslate3d,g=r.viewBox,v=r.wrapperStyle,b=null!==d&&void 0!==d?d:[];s&&b.length&&(b=bn(d.filter((function(t){return null!=t.value&&(!0!==t.hide||e.props.includeHidden)})),p,Mn));var x=b.length>0;return t.createElement(yn,{allowEscapeViewBox:o,animationDuration:i,animationEasing:a,isAnimationActive:c,active:n,coordinate:u,hasPayload:x,offset:f,position:h,reverseDirection:y,useTranslate3d:m,viewBox:g,wrapperStyle:v},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):"function"===typeof e?t.createElement(e,r):t.createElement(Zr,r)}(l,Sn(Sn({},this.props),{},{payload:b})))}}])&&kn(n.prototype,o),i&&kn(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);Pn(Tn,"displayName","Tooltip"),Pn(Tn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!mn.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var An=r(643),Nn=r.n(An);Math.abs,Math.atan2;const Dn=Math.cos,Ln=(Math.max,Math.min,Math.sin),In=Math.sqrt,zn=Math.PI,Rn=2*zn;const Bn={draw(e,t){const r=In(t/zn);e.moveTo(r,0),e.arc(0,0,r,0,Rn)}},Fn={draw(e,t){const r=In(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},$n=In(1/3),Un=2*$n,Hn={draw(e,t){const r=In(t/Un),n=r*$n;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Wn={draw(e,t){const r=In(t),n=-r/2;e.rect(n,n,r,r)}},qn=Ln(zn/10)/Ln(7*zn/10),Vn=Ln(Rn/10)*qn,Gn=-Dn(Rn/10)*qn,Kn={draw(e,t){const r=In(.8908130915292852*t),n=Vn*r,o=Gn*r;e.moveTo(0,-r),e.lineTo(n,o);for(let i=1;i<5;++i){const t=Rn*i/5,a=Dn(t),l=Ln(t);e.lineTo(l*r,-a*r),e.lineTo(a*n-l*o,l*n+a*o)}e.closePath()}},Yn=In(3),Xn={draw(e,t){const r=-In(t/(3*Yn));e.moveTo(0,2*r),e.lineTo(-Yn*r,-r),e.lineTo(Yn*r,-r),e.closePath()}},Zn=-.5,Qn=In(3)/2,Jn=1/In(12),eo=3*(Jn/2+1),to={draw(e,t){const r=In(t/eo),n=r/2,o=r*Jn,i=n,a=r*Jn+r,l=-i,u=a;e.moveTo(n,o),e.lineTo(i,a),e.lineTo(l,u),e.lineTo(Zn*n-Qn*o,Qn*n+Zn*o),e.lineTo(Zn*i-Qn*a,Qn*i+Zn*a),e.lineTo(Zn*l-Qn*u,Qn*l+Zn*u),e.lineTo(Zn*n+Qn*o,Zn*o-Qn*n),e.lineTo(Zn*i+Qn*a,Zn*a-Qn*i),e.lineTo(Zn*l+Qn*u,Zn*u-Qn*l),e.closePath()}};function ro(e){return function(){return e}}const no=Math.PI,oo=2*no,io=1e-6,ao=oo-io;function lo(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}class uo{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==e?lo:function(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return lo;const r=10**t;return function(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=Math.round(arguments[t]*r)/r+e[t]}}(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,r,n){this._append`Q${+e},${+t},${this._x1=+r},${this._y1=+n}`}bezierCurveTo(e,t,r,n,o,i){this._append`C${+e},${+t},${+r},${+n},${this._x1=+o},${this._y1=+i}`}arcTo(e,t,r,n,o){if(e=+e,t=+t,r=+r,n=+n,(o=+o)<0)throw new Error(`negative radius: ${o}`);let i=this._x1,a=this._y1,l=r-e,u=n-t,s=i-e,c=a-t,f=s*s+c*c;if(null===this._x1)this._append`M${this._x1=e},${this._y1=t}`;else if(f>io)if(Math.abs(c*l-u*s)>io&&o){let d=r-i,p=n-a,h=l*l+u*u,y=d*d+p*p,m=Math.sqrt(h),g=Math.sqrt(f),v=o*Math.tan((no-Math.acos((h+f-y)/(2*m*g)))/2),b=v/g,x=v/m;Math.abs(b-1)>io&&this._append`L${e+b*s},${t+b*c}`,this._append`A${o},${o},0,0,${+(c*d>s*p)},${this._x1=e+x*l},${this._y1=t+x*u}`}else this._append`L${this._x1=e},${this._y1=t}`;else;}arc(e,t,r,n,o,i){if(e=+e,t=+t,i=!!i,(r=+r)<0)throw new Error(`negative radius: ${r}`);let a=r*Math.cos(n),l=r*Math.sin(n),u=e+a,s=t+l,c=1^i,f=i?n-o:o-n;null===this._x1?this._append`M${u},${s}`:(Math.abs(this._x1-u)>io||Math.abs(this._y1-s)>io)&&this._append`L${u},${s}`,r&&(f<0&&(f=f%oo+oo),f>ao?this._append`A${r},${r},0,1,${c},${e-a},${t-l}A${r},${r},0,1,${c},${this._x1=u},${this._y1=s}`:f>io&&this._append`A${r},${r},0,${+(f>=no)},${c},${this._x1=e+r*Math.cos(o)},${this._y1=t+r*Math.sin(o)}`)}rect(e,t,r,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${r=+r}v${+n}h${-r}Z`}toString(){return this._}}function so(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(null==r)t=null;else{const e=Math.floor(r);if(!(e>=0))throw new RangeError(`invalid digits: ${r}`);t=e}return e},()=>new uo(t)}In(3),In(3);function co(e){return co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},co(e)}var fo=["type","size","sizeType"];function po(){return po=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
vendor: 1,912 bytes, line 2
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},po.apply(this,arguments)}function ho(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 yo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ho(Object(r),!0).forEach((function(t){mo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ho(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function mo(e,t,r){return t=function(e){var t=function(e,t){if("object"!=co(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=co(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==co(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function go(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var vo={symbolCircle:Bn,symbolCross:Fn,symbolDiamond:Hn,symbolSquare:Wn,symbolStar:Kn,symbolTriangle:Xn,symbolWye:to},bo=Math.PI/180,xo=function(e){var r=e.type,n=void 0===r?"circle":r,o=e.size,i=void 0===o?64:o,a=e.sizeType,l=void 0===a?"area":a,u=yo(yo({},go(e,fo)),{},{type:n,size:i,sizeType:l}),s=u.className,c=u.cx,f=u.cy,d=vr(u,!0);return c===+c&&f===+f&&i===+i?t.createElement("path",po({}
2,d,{className:wt("recharts-symbols",s),transform:"translate(".concat(c,", ").concat(f,")"),d:function(){var e=function(e){var t="symbol".concat(Nn()(e));return vo[t]||Bn}(n),t=function(e,t){let r=null,n=so(o);function o(){let o;if(r||(r=o=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),o)return r=null,o+""||null}return e="function"===typeof e?e:ro(e||Bn),t="function"===typeof t?t:ro(void 0===t?64:+t),o.type=function(t){return arguments.length?(e="function"===typeof t?t:ro(t),o):e},o.size=function(e){return arguments.length?(t="function"===typeof e?e:ro(+e),o):t},o.context=function(e){return arguments.length?(r=null==e?null:e,o):r},o}().type(e).size(function(e,t,r){if("area"===t)return e;switch(r){case"cross":return 5*e*e/9;case"diamond":return.5*e*e/Math.sqrt(3);case"square":return e*e;case"star":var n=18*bo;return 1.25*e*e*(Math.tan(n)-Math.tan(2*n)*Math.pow(Math.tan(n),2));case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}}(i,l,n));return t()}()})):null};function wo(e){return wo="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},wo(e)}function So(){return So=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},So.apply(this,arguments)}function ko(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 Oo(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,Mo(n.key),n)}}function jo(e,t,r){return t=Eo(t),function(e,t){if(t&&("object"===wo(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,_o()?Reflect.construct(t,r||[],Eo(e).constructor):t.apply(e,r))}function _o(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(_o=function(){return!!e})()}function Eo(e){return Eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Eo(e)}function Po(e,t){return Po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Po(e,t)}function Co(e,t,r){return(t=Mo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Mo(e){var t=function(e,t){if("object"!=wo(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wo(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wo(t)?t:t+""}xo.registerSymbol=function(e,t){vo["symbol".concat(Nn()(e))]=t};var To=32,Ao=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),jo(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Po(e,t)}(r,e),n=r,o=[{key:"renderIcon",value:function(e){var r=this.props.inactiveColor,n=16,o=To/6,i=To/3,a=e.inactive?r:e.color;if("plainline"===e.type)return t.createElement("line",{strokeWidth:4,fill:"none",stroke:a,strokeDasharray:e.payload.strokeDasharray,x1:0,y1:n,x2:To,y2:n,className:"recharts-legend-icon"});if("line"===e.type)return t.createElement("path",{strokeWidth:4,fill:"none",stroke:a,d:"M0,".concat(n,"h").concat(i,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(2*i,",").concat(n,"\n            H").concat(To,"M").concat(2*i,",").concat(n,"\n            A").concat(o,",").concat(o,",0,1,1,").concat(i,",").concat(n),className:"recharts-legend-icon"});if("rect"===e.type)return t.createElement("path",{stroke:"none",fill:a,d:"M0,".concat(4,"h").concat(To,"v").concat(24,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(t.isValidElement(e.legendIcon)){var l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?ko(Object(r),!0).forEach((function(t){Co(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ko(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e);return delete l.legendIcon,t.cloneElement(e.legendIcon,l)}return t.createElement(xo,{fill:a,cx:n,cy:n,size:To,sizeType:"diameter",type:e.type})}},{key:"renderItems",value:function(){var e=this,r=this.props,n=r.payload,o=r.iconSize,i=r.layout,a=r.formatter,l=r.inactiveColor,u={x:0,y:0,width:To,height:To},s={display:"horizontal"===i?"inline-block":"block",marginRight:10},c={display:"inline-block",verticalAlign:"middle",marginRight:4};return n.map((function(r,n){var i=r.formatter||a,f=wt(Co(Co({"recharts-legend-item":!0},"legend-item-".concat(n),!0),"inactive",r.inactive));if("none"===r.type)return null;var d=Vt()(r.value)?null:r.value;Ut(!Vt()(r.value),'The name property is also required when using a function for the dataKey of a chart\'s cartesian components. Ex: <Bar name="Name of my Data"/>');var p=r.inactive?l:r.color;return t.createElement("li",So({className:f,style:s,key:"legend-item-".concat(n)},nr(e.props,r,n)),t.createElement(Rr,{width:o,height:o,viewBox:u,style:c},e.renderIcon(r)),t.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},i?i(d,r,n):d))}))}},{key:"render",value:function(){var e=this.props,r=e.payload,n=e.layout,o=e.align;if(!r||!r.length)return null;var i={padding:0,margin:0,textAlign:"horizontal"===n?o:"left"};return t.createElement("ul",{className:"recharts-default-legend",style:i},this.renderItems())}}],o&&Oo(n.prototype,o),i&&Oo(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);function No(e){return No="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},No(e)}Co(Ao,"displayName","Legend"),Co(Ao,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Do=["ref"];function Lo(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 Io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lo(Object(r),!0).forEach((function(t){Uo(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zo(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,Ho(n.key),n)}}function Ro(e,t,r){return t=Fo(t),function(e,t){if(t&&("object"===No(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bo()?Reflect.construct(t,r||[],Fo(e).constructor):t.apply(e,r))}function Bo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bo=function(){return!!e})()}function Fo(e){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(e)}function $o(e,t){return $o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$o(e,t)}function Uo(e,t,r){return(t=Ho(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ho(e){var t=function(e,t){if("object"!=No(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=No(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==No(t)?t:t+""}function Wo(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function qo(e){return e.value}var Vo=function(e){function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Uo(e=Ro(this,r,[].concat(n)),"lastBoundingBox",{width:-1,height:-1}),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$o(e,t)}(r,e),n=r,i=[{key:"getWithHeight",value:function(e,t){var r=Io(Io({},this.defaultProps),e.props).layout;return"vertical"===r&&Dt(e.props.height)?{height:e.props.height}:"horizontal"===r?{width:e.props.width||t}:null}}],(o=[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var e=this.wrapperNode.getBoundingClientRect();return e.height=this.wrapperNode.offsetHeight,e.width=this.wrapperNode.offsetWidth,e}return null}},{key:"updateBBox",value:function(){var e=this.props.onBBoxUpdate,t=this.getBBox();
vendor: 5,325 bytes, line 2
2t?(Math.abs(t.width-this.lastBoundingBox.width)>1||Math.abs(t.height-this.lastBoundingBox.height)>1)&&(this.lastBoundingBox.width=t.width,this.lastBoundingBox.height=t.height,e&&e(t)):-1===this.lastBoundingBox.width&&-1===this.lastBoundingBox.height||(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,e&&e(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Io({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(e){var t,r,n=this.props,o=n.layout,i=n.align,a=n.verticalAlign,l=n.margin,u=n.chartWidth,s=n.chartHeight;return e&&(void 0!==e.left&&null!==e.left||void 0!==e.right&&null!==e.right)||(t="center"===i&&"vertical"===o?{left:((u||0)-this.getBBoxSnapshot().width)/2}:"right"===i?{right:l&&l.right||0}:{left:l&&l.left||0}),e&&(void 0!==e.top&&null!==e.top||void 0!==e.bottom&&null!==e.bottom)||(r="middle"===a?{top:((s||0)-this.getBBoxSnapshot().height)/2}:"bottom"===a?{bottom:l&&l.bottom||0}:{top:l&&l.top||0}),Io(Io({},t),r)}},{key:"render",value:function(){var e=this,r=this.props,n=r.content,o=r.width,i=r.height,a=r.wrapperStyle,l=r.payloadUniqBy,u=r.payload,s=Io(Io({position:"absolute",width:o||"auto",height:i||"auto"},this.getDefaultPosition(a)),a);return t.createElement("div",{className:"recharts-legend-wrapper",style:s,ref:function(t){e.wrapperNode=t}},function(e,r){if(t.isValidElement(e))return t.cloneElement(e,r);if("function"===typeof e)return t.createElement(e,r);r.ref;var n=Wo(r,Do);return t.createElement(Ao,n)}(n,Io(Io({},this.props),{},{payload:bn(u,l,qo)})))}}])&&zo(n.prototype,o),i&&zo(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);function Go(){return Go=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},Go.apply(this,arguments)}Uo(Vo,"displayName","Legend"),Uo(Vo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Ko=function(e){var r=e.cx,n=e.cy,o=e.r,i=e.className,a=wt("recharts-dot",i);return r===+r&&n===+n&&o===+o?t.createElement("circle",Go({},vr(e,!1),rr(e),{className:a,cx:r,cy:n,r:o})):null},Yo=r(5173),Xo=r.n(Yo),Zo=Object.getOwnPropertyNames,Qo=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty;function ei(e,t){return function(r,n,o){return e(r,n,o)&&t(r,n,o)}}function ti(e){return function(t,r,n){if(!t||!r||"object"!==typeof t||"object"!==typeof r)return e(t,r,n);var o=n.cache,i=o.get(t),a=o.get(r);if(i&&a)return i===r&&a===t;o.set(t,r),o.set(r,t);var l=e(t,r,n);return o.delete(t),o.delete(r),l}}function ri(e){return Zo(e).concat(Qo(e))}var ni=Object.hasOwn||function(e,t){return Jo.call(e,t)};function oi(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var ii=Object.getOwnPropertyDescriptor,ai=Object.keys;function li(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function ui(e,t){return oi(e.getTime(),t.getTime())}function si(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function ci(e,t){return e===t}function fi(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),l=e.entries(),u=0;(o=l.next())&&!o.done;){for(var s=t.entries(),c=!1,f=0;(i=s.next())&&!i.done;)if(a[f])f++;else{var d=o.value,p=i.value;if(r.equals(d[0],p[0],u,f,e,t,r)&&r.equals(d[1],p[1],d[0],p[0],e,t,r)){c=a[f]=!0;break}f++}if(!c)return!1;u++}return!0}var di=oi;function pi(e,t,r){var n=ai(e),o=n.length;if(ai(t).length!==o)return!1;for(;o-- >0;)if(!xi(e,t,r,n[o]))return!1;return!0}function hi(e,t,r){var n,o,i,a=ri(e),l=a.length;if(ri(t).length!==l)return!1;for(;l-- >0;){if(!xi(e,t,r,n=a[l]))return!1;if(o=ii(e,n),i=ii(t,n),(o||i)&&(!o||!i||o.configurable!==i.configurable||o.enumerable!==i.enumerable||o.writable!==i.writable))return!1}return!0}function yi(e,t){return oi(e.valueOf(),t.valueOf())}function mi(e,t){return e.source===t.source&&e.flags===t.flags}function gi(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var o,i,a=new Array(n),l=e.values();(o=l.next())&&!o.done;){for(var u=t.values(),s=!1,c=0;(i=u.next())&&!i.done;){if(!a[c]&&r.equals(o.value,i.value,o.value,i.value,e,t,r)){s=a[c]=!0;break}c++}if(!s)return!1}return!0}function vi(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function bi(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function xi(e,t,r,n){return!("_owner"!==n&&"__o"!==n&&"__v"!==n||!e.$$typeof&&!t.$$typeof)||ni(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var wi=Array.isArray,Si="function"===typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView:null,ki=Object.assign,Oi=Object.prototype.toString.call.bind(Object.prototype.toString);var ji=_i();_i({strict:!0}),_i({circular:!0}),_i({circular:!0,strict:!0}),_i({createInternalComparator:function(){return oi}}),_i({strict:!0,createInternalComparator:function(){return oi}}),_i({circular:!0,createInternalComparator:function(){return oi}}),_i({circular:!0,createInternalComparator:function(){return oi},strict:!0});function _i(e){void 0===e&&(e={});
2var t,r=e.circular,n=void 0!==r&&r,o=e.createInternalComparator,i=e.createState,a=e.strict,l=void 0!==a&&a,u=function(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,o={areArraysEqual:n?hi:li,areDatesEqual:ui,areErrorsEqual:si,areFunctionsEqual:ci,areMapsEqual:n?ei(fi,hi):fi,areNumbersEqual:di,areObjectsEqual:n?hi:pi,arePrimitiveWrappersEqual:yi,areRegExpsEqual:mi,areSetsEqual:n?ei(gi,hi):gi,areTypedArraysEqual:n?hi:vi,areUrlsEqual:bi};if(r&&(o=ki({},o,r(o))),t){var i=ti(o.areArraysEqual),a=ti(o.areMapsEqual),l=ti(o.areObjectsEqual),u=ti(o.areSetsEqual);o=ki({},o,{areArraysEqual:i,areMapsEqual:a,areObjectsEqual:l,areSetsEqual:u})}return o}(e),s=function(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,o=e.areFunctionsEqual,i=e.areMapsEqual,a=e.areNumbersEqual,l=e.areObjectsEqual,u=e.arePrimitiveWrappersEqual,s=e.areRegExpsEqual,c=e.areSetsEqual,f=e.areTypedArraysEqual,d=e.areUrlsEqual;return function(e,p,h){if(e===p)return!0;if(null==e||null==p)return!1;var y=typeof e;if(y!==typeof p)return!1;if("object"!==y)return"number"===y?a(e,p,h):"function"===y&&o(e,p,h);var m=e.constructor;if(m!==p.constructor)return!1;if(m===Object)return l(e,p,h);if(wi(e))return t(e,p,h);if(null!=Si&&Si(e))return f(e,p,h);if(m===Date)return r(e,p,h);if(m===RegExp)return s(e,p,h);if(m===Map)return i(e,p,h);if(m===Set)return c(e,p,h);var g=Oi(e);return"[object Date]"===g?r(e,p,h):"[object RegExp]"===g?s(e,p,h):"[object Map]"===g?i(e,p,h):"[object Set]"===g?c(e,p,h):"[object Object]"===g?"function"!==typeof e.then&&"function"!==typeof p.then&&l(e,p,h):"[object URL]"===g?d(e,p,h):"[object Error]"===g?n(e,p,h):"[object Arguments]"===g?l(e,p,h):("[object Boolean]"===g||"[object Number]"===g||"[object String]"===g)&&u(e,p,h)}}(u),c=o?o(s):(t=s,function(e,r,n,o,i,a,l){return t(e,r,l)});return function(e){var t=e.circular,r=e.comparator,n=e.createState,o=e.equals,i=e.strict;if(n)return function(e,a){var l=n(),u=l.cache,s=void 0===u?t?new WeakMap:void 0:u,c=l.meta;return r(e,a,{cache:s,equals:o,meta:c,strict:i})};if(t)return function(e,t){return r(e,t,{cache:new WeakMap,equals:o,meta:void 0,strict:i})};var a={cache:void 0,equals:o,meta:void 0,strict:i};return function(e,t){return r(e,t,a)}}({circular:n,comparator:s,createState:i,equals:c,strict:l})}function Ei(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=-1;requestAnimationFrame((function n(o){r<0&&(r=o),o-r>t?(e(o),r=-1):function(e){"undefined"!==typeof requestAnimationFrame&&requestAnimationFrame(e)}(n)}))}function Pi(e){return Pi="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},Pi(e)}function Ci(e){return function(e){if(Array.isArray(e))return e}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Mi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Mi(e,t)}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Mi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ti(){var e=function(){return null},t=!1,r=function r(n){if(!t){if(Array.isArray(n)){if(!n.length)return;var o=Ci(n),i=o[0],a=o.slice(1);return"number"===typeof i?void Ei(r.bind(null,a),i):(r(i),void Ei(r.bind(null,a)))}"object"===Pi(n)&&e(n),"function"===typeof n&&n()}};return{stop:function(){t=!0},start:function(e){t=!1,r(e)},subscribe:function(t){return e=t,function(){e=function(){return null}}}}}function Ai(e){return Ai="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},Ai(e)}function Ni(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 Di(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ni(Object(r),!0).forEach((function(t){Li(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ni(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Li(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Ai(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Ai(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Ai(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ii=function(e){return e},zi=function(e,t){return Object.keys(t).reduce((function(r,n){return Di(Di({},r),{},Li({},n,e(n,t[n])))}),{})},Ri=function(e,t,r){return e.map((function(e){return"".concat((n=e,n.replace(/([A-Z])/g,(function(e){return"-".concat(e.toLowerCase())})))," ").concat(t,"ms ").concat(r);var n})).join(",")};function Bi(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||$i(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fi(e){return function(e){if(Array.isArray(e))return Ui(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||$i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $i(e,t){if(e){if("string"===typeof e)return Ui(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ui(e,t):void 0}}function Ui(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Hi=1e-4,Wi=function(e,t){return[0,3*e,3*t-6*e,3*e-3*t+1]},qi=function(e,t){return e.map((function(e,r){return e*Math.pow(t,r)})).reduce((function(e,t){return e+t}))},Vi=function(e,t){return function(r){var n=Wi(e,t);return qi(n,r)}},Gi=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0],o=t[1],i=t[2],a=t[3];if(1===t.length)switch(t[0]){case"linear":n=0,o=0,i=1,a=1;break;case"ease":n=.25,o=.1,i=.25,a=1;break;case"ease-in":n=.42,o=0,i=1,a=1;break;case"ease-out":n=.42,o=0,i=.58,a=1;break;case"ease-in-out":n=0,o=0,i=.58,a=1;break;default:var l=t[0].split("(");if("cubic-bezier"===l[0]&&4===l[1].split(")")[0].split(",").length){var u=Bi(l[1].split(")")[0].split(",").map((function(e){return parseFloat(e)})),4);n=u[0],o=u[1],i=u[2],a=u[3]}}[n,i,o,a].every((function(e){return"number"===typeof e&&e>=0&&e<=1}));var s,c,f=Vi(n,i),d=Vi(o,a),p=(s=n,c=i,function(e){var t=Wi(s,c),r=[].concat(Fi(t.map((function(e,t){return e*t})).slice(1)),[0]);return qi(r,e)}),h=function(e){return e>1?1:e<0?0:e},y=function(e){for(var t=e>1?1:e,r=t,n=0;n<8;++n){var o=f(r)-t,i=p(r);if(Math.abs(o-t)<Hi||i<Hi)return d(r);r=h(r-o/i)}return d(r)};return y.isStepper=!1,y},Ki=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t[0];if("string"===typeof n)switch(n){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return Gi(n);case"spring":return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.stiff,r=void 0===t?100:t,n=e.damping,o=void 0===n?8:n,i=e.dt,a=void 0===i?17:i,l=function(e,t,n){var i=n+(-(e-t)*r-n*o)*a/1e3,l=n*a/1e3+e;return Math.abs(l-t)<Hi&&Math.abs(i)<Hi?[t,0]:[l,i]};return l.isStepper=!0,l.dt=a,l}();
2default:if("cubic-bezier"===n.split("(")[0])return Gi(n)}return"function"===typeof n?n:null};function Yi(e){return Yi="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},Yi(e)}function Xi(e){return function(e){if(Array.isArray(e))return ra(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ta(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zi(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 Qi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zi(Object(r),!0).forEach((function(t){Ji(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ji(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==Yi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==Yi(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Yi(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ea(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||ta(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ta(e,t){if(e){if("string"===typeof e)return ra(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ra(e,t):void 0}}function ra(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var na=function(e,t,r){return e+(t-e)*r},oa=function(e){return e.from!==e.to},ia=function e(t,r,n){var o=zi((function(e,r){if(oa(r)){var n=ea(t(r.from,r.to,r.velocity),2),o=n[0],i=n[1];return Qi(Qi({},r),{},{from:o,velocity:i})}return r}),r);return n<1?zi((function(e,t){return oa(t)?Qi(Qi({},t),{},{velocity:na(t.velocity,o[e].velocity,n),from:na(t.from,o[e].from,n)}):t}),r):e(t,o,n-1)};const aa=function(e,t,r,n,o){var i,a,l,u,s=(i=e,a=t,[Object.keys(i),Object.keys(a)].reduce((function(e,t){return e.filter((function(e){return t.includes(e)}))}))),c=s.reduce((function(r,n){return Qi(Qi({},r),{},Ji({},n,[e[n],t[n]]))}),{}),f=s.reduce((function(r,n){return Qi(Qi({},r),{},Ji({},n,{from:e[n],velocity:0,to:t[n]}))}),{}),d=-1,p=function(){return null};return p=r.isStepper?function(n){l||(l=n);var i=(n-l)/r.dt;f=ia(r,f,i),o(Qi(Qi(Qi({},e),t),zi((function(e,t){return t.from}),f))),l=n,Object.values(f).filter(oa).length&&(d=requestAnimationFrame(p))}:function(i){u||(u=i);var a=(i-u)/n,l=zi((function(e,t){return na.apply(void 0,Xi(t).concat([r(a)]))}),c);if(o(Qi(Qi(Qi({},e),t),l)),a<1)d=requestAnimationFrame(p);else{var s=zi((function(e,t){return na.apply(void 0,Xi(t).concat([r(1)]))}),c);o(Qi(Qi(Qi({},e),t),s))}},function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(d)}}};function la(e){return la="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},la(e)}var ua=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function sa(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ca(e){return function(e){if(Array.isArray(e))return fa(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return fa(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return fa(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function da(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 pa(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?da(Object(r),!0).forEach((function(t){ha(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):da(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ha(e,t,r){return(t=ma(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ya(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,ma(n.key),n)}}function ma(e){var t=function(e,t){if("object"!==la(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==la(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===la(t)?t:String(t)}function ga(e,t){return ga=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ga(e,t)}function va(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=wa(e);if(t){var o=wa(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return ba(this,r)}}function ba(e,t){if(t&&("object"===la(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return xa(e)}function xa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wa(e){return wa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},wa(e)}var Sa=function(e){!function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ga(e,t)}(a,e);var r,n,o,i=va(a);function a(e,t){var r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=(r=i.call(this,e,t)).props,o=n.isActive,l=n.attributeName,u=n.from,s=n.to,c=n.steps,f=n.children,d=n.duration;if(r.handleStyleChange=r.handleStyleChange.bind(xa(r)),r.changeStyle=r.changeStyle.bind(xa(r)),!o||d<=0)return r.state={style:{}},"function"===typeof f&&(r.state={style:s}),ba(r);if(c&&c.length)r.state={style:c[0].style};else if(u){if("function"===typeof f)return r.state={style:u},ba(r);r.state={style:l?ha({},l,u):u}}else r.state={style:{}};return r}return r=a,(n=[{key:"componentDidMount",value:function(){var e=this.props,t=e.isActive,r=e.canBegin;this.mounted=!0,t&&r&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.isActive,n=t.canBegin,o=t.attributeName,i=t.shouldReAnimate,a=t.to,l=t.from,u=this.state.style;if(n)if(r){if(!(ji(e.to,a)&&e.canBegin&&e.isActive)){var s=!e.canBegin||!e.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var c=s||i?l:e.to;if(this.state&&u){var f={style:o?ha({},o,c):c};(o&&u[o]!==c||!o&&u!==c)&&this.setState(f)}this.runAnimation(pa(pa({},this.props),{},{from:c,begin:0}))}}else{var d={style:o?ha({},o,a):a};
2this.state&&u&&(o&&u[o]!==a||!o&&u!==a)&&this.setState(d)}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var e=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),e&&e()}},{key:"handleStyleChange",value:function(e){this.changeStyle(e)}},{key:"changeStyle",value:function(e){this.mounted&&this.setState({style:e})}},{key:"runJSAnimation",value:function(e){var t=this,r=e.from,n=e.to,o=e.duration,i=e.easing,a=e.begin,l=e.onAnimationEnd,u=e.onAnimationStart,s=aa(r,n,Ki(i),o,this.changeStyle);this.manager.start([u,a,function(){t.stopJSAnimation=s()},o,l])}},{key:"runStepAnimation",value:function(e){var t=this,r=e.steps,n=e.begin,o=e.onAnimationStart,i=r[0],a=i.style,l=i.duration,u=void 0===l?0:l;return this.manager.start([o].concat(ca(r.reduce((function(e,n,o){if(0===o)return e;var i=n.duration,a=n.easing,l=void 0===a?"ease":a,u=n.style,s=n.properties,c=n.onAnimationEnd,f=o>0?r[o-1]:n,d=s||Object.keys(u);if("function"===typeof l||"spring"===l)return[].concat(ca(e),[t.runJSAnimation.bind(t,{from:f.style,to:u,duration:i,easing:l}),i]);var p=Ri(d,i,l),h=pa(pa(pa({},f.style),u),{},{transition:p});return[].concat(ca(e),[h,i,c]).filter(Ii)}),[a,Math.max(u,n)])),[e.onAnimationEnd]))}},{key:"runAnimation",value:function(e){this.manager||(this.manager=Ti());var t=e.begin,r=e.duration,n=e.attributeName,o=e.to,i=e.easing,a=e.onAnimationStart,l=e.onAnimationEnd,u=e.steps,s=e.children,c=this.manager;if(this.unSubscribe=c.subscribe(this.handleStyleChange),"function"!==typeof i&&"function"!==typeof s&&"spring"!==i)if(u.length>1)this.runStepAnimation(e);else{var f=n?ha({},n,o):o,d=Ri(Object.keys(f),r,i);c.start([a,t,pa(pa({},f),{},{transition:d}),r,l])}else this.runJSAnimation(e)}},{key:"render",value:function(){var e=this.props,r=e.children,n=(e.begin,e.duration),o=(e.attributeName,e.easing,e.isActive),i=(e.steps,e.from,e.to,e.canBegin,e.onAnimationEnd,e.shouldReAnimate,e.onAnimationReStart,sa(e,ua)),a=t.Children.count(r),l=this.state.style;if("function"===typeof r)return r(l);if(!o||0===a||n<=0)return r;var u=function(e){var r=e.props,n=r.style,o=void 0===n?{}:n,a=r.className;return(0,t.cloneElement)(e,pa(pa({},i),{},{style:pa(pa({},o),l),className:a}))};return 1===a?u(t.Children.only(r)):t.createElement("div",null,t.Children.map(r,(function(e){return u(e)})))}}])&&ya(r.prototype,n),o&&ya(r,o),Object.defineProperty(r,"prototype",{writable:!1}),a}(t.PureComponent);Sa.displayName="Animate",Sa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}},Sa.propTypes={from:Xo().oneOfType([Xo().object,Xo().string]),to:Xo().oneOfType([Xo().object,Xo().string]),attributeName:Xo().string,duration:Xo().number,begin:Xo().number,easing:Xo().oneOfType([Xo().string,Xo().func]),steps:Xo().arrayOf(Xo().shape({duration:Xo().number.isRequired,style:Xo().object.isRequired,easing:Xo().oneOfType([Xo().oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Xo().func]),properties:Xo().arrayOf("string"),onAnimationEnd:Xo().func})),children:Xo().oneOfType([Xo().node,Xo().func]),isActive:Xo().bool,canBegin:Xo().bool,onAnimationEnd:Xo().func,shouldReAnimate:Xo().bool,onAnimationStart:Xo().func,onAnimationReStart:Xo().func};const ka=Sa;function Oa(e){return Oa="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},Oa(e)}function ja(){return ja=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},ja.apply(this,arguments)}function _a(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}
2finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ea(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ea(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pa(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 Ca(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Pa(Object(r),!0).forEach((function(t){Ma(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pa(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ma(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Oa(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Oa(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oa(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ta=function(e,t,r,n,o){var i,a=Math.min(Math.abs(r)/2,Math.abs(n)/2),l=n>=0?1:-1,u=r>=0?1:-1,s=n>=0&&r>=0||n<0&&r<0?1:0;if(a>0&&o instanceof Array){for(var c=[0,0,0,0],f=0;f<4;f++)c[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+l*c[0]),c[0]>0&&(i+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(s,",").concat(e+u*c[0],",").concat(t)),i+="L ".concat(e+r-u*c[1],",").concat(t),c[1]>0&&(i+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(s,",\n        ").concat(e+r,",").concat(t+l*c[1])),i+="L ".concat(e+r,",").concat(t+n-l*c[2]),c[2]>0&&(i+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(s,",\n        ").concat(e+r-u*c[2],",").concat(t+n)),i+="L ".concat(e+u*c[3],",").concat(t+n),c[3]>0&&(i+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(s,",\n        ").concat(e,",").concat(t+n-l*c[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+l*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+u*d,",").concat(t,"\n            L ").concat(e+r-u*d,",").concat(t,"\n            A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+r,",").concat(t+l*d,"\n            L ").concat(e+r,",").concat(t+n-l*d,"\n            A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e+r-u*d,",").concat(t+n,"\n            L ").concat(e+u*d,",").concat(t+n,"\n            A ").concat(d,",").concat(d,",0,0,").concat(s,",").concat(e,",").concat(t+n-l*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(r," v ").concat(n," h ").concat(-r," Z");return i},Aa=function(e,t){if(!e||!t)return!1;var r=e.x,n=e.y,o=t.x,i=t.y,a=t.width,l=t.height;if(Math.abs(a)>0&&Math.abs(l)>0){var u=Math.min(o,o+a),s=Math.max(o,o+a),c=Math.min(i,i+l),f=Math.max(i,i+l);return r>=u&&r<=s&&n>=c&&n<=f}return!1},Na={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Da=function(e){var r=Ca(Ca({},Na),e),n=(0,t.useRef)(),o=_a((0,t.useState)(-1),2),i=o[0],a=o[1];(0,t.useEffect)((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(t){}}),[]);var l=r.x,u=r.y,s=r.width,c=r.height,f=r.radius,d=r.className,p=r.animationEasing,h=r.animationDuration,y=r.animationBegin,m=r.isAnimationActive,g=r.isUpdateAnimationActive;if(l!==+l||u!==+u||s!==+s||c!==+c||0===s||0===c)return null;var v=wt("recharts-rectangle",d);return g?t.createElement(ka,{canBegin:i>0,from:{width:s,height:c,x:l,y:u},to:{width:s,height:c,x:l,y:u},duration:h,animationEasing:p,isActive:g},(function(e){var o=e.width,a=e.height,l=e.x,u=e.y;return t.createElement(ka,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,isActive:m,easing:p},t.createElement("path",ja({},vr(r,!0),{className:v,d:Ta(l,u,o,a,f),ref:n})))})):t.createElement("path",ja({},vr(r,!0),{className:v,d:Ta(l,u,s,c,f)}))};function La(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Ia(e,t){switch(arguments.length){case 0:break;case 1:"function"===typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"===typeof t?this.interpolator(t):this.range(t)}return this}class za extends Map{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$a;if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[r,n]of e)this.set(r,n)}get(e){return super.get(Ra(this,e))}has(e){return super.has(Ra(this,e))}set(e,t){return super.set(Ba(this,e),t)}delete(e){return super.delete(Fa(this,e))}}Set;function Ra(e,t){let{_intern:r,_key:n}=e;const o=n(t);return r.has(o)?r.get(o):t}function Ba(e,t){let{_intern:r,_key:n}=e;const o=n(t);return r.has(o)?r.get(o):(r.set(o,t),t)}function Fa(e,t){let{_intern:r,_key:n}=e;const o=n(t);return r.has(o)&&(t=r.get(o),r.delete(o)),t}function $a(e){return null!==e&&"object"===typeof e?e.valueOf():e}
vendor: 9,513 bytes, line 2
2const Ua=Symbol("implicit");function Ha(){var e=new za,t=[],r=[],n=Ua;function o(o){let i=e.get(o);if(void 0===i){if(n!==Ua)return n;e.set(o,i=t.push(o)-1)}return r[i%r.length]}return o.domain=function(r){if(!arguments.length)return t.slice();t=[],e=new za;for(const n of r)e.has(n)||e.set(n,t.push(n)-1);return o},o.range=function(e){return arguments.length?(r=Array.from(e),o):r.slice()},o.unknown=function(e){return arguments.length?(n=e,o):n},o.copy=function(){return Ha(t,r).unknown(n)},La.apply(o,arguments),o}function Wa(){var e,t,r=Ha().unknown(void 0),n=r.domain,o=r.range,i=0,a=1,l=!1,u=0,s=0,c=.5;function f(){var r=n().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,r-u+2*s),l&&(e=Math.floor(e)),d+=(p-d-e*(r-u))*c,t=e*(1-u),l&&(d=Math.round(d),t=Math.round(t));var h=function(e,t,r){e=+e,t=+t,r=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+r;for(var n=-1,o=0|Math.max(0,Math.ceil((t-e)/r)),i=new Array(o);++n<o;)i[n]=e+n*r;return i}(r).map((function(t){return d+e*t}));return o(f?h.reverse():h)}return delete r.unknown,r.domain=function(e){return arguments.length?(n(e),f()):n()},r.range=function(e){return arguments.length?([i,a]=e,i=+i,a=+a,f()):[i,a]},r.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,l=!0,f()},r.bandwidth=function(){return t},r.step=function(){return e},r.round=function(e){return arguments.length?(l=!!e,f()):l},r.padding=function(e){return arguments.length?(u=Math.min(1,s=+e),f()):u},r.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},r.paddingOuter=function(e){return arguments.length?(s=+e,f()):s},r.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),f()):c},r.copy=function(){return Wa(n(),[i,a]).round(l).paddingInner(u).paddingOuter(s).align(c)},La.apply(f(),arguments)}function qa(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return qa(t())},e}function Va(){return qa(Wa.apply(null,arguments).paddingInner(1))}function Ga(e){return Ga="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},Ga(e)}function Ka(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 Ya(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(r),!0).forEach((function(t){Xa(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ka(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xa(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Ga(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ga(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ga(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Za={widthCache:{},cacheCount:0},Qa={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},Ja="recharts_measurement_span";var el=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(void 0===e||null===e||mn.isSsr)return{width:0,height:0};var r=function(e){var t=Ya({},e);return Object.keys(t).forEach((function(e){t[e]||delete t[e]})),t}(t),n=JSON.stringify({text:e,copyStyle:r});if(Za.widthCache[n])return Za.widthCache[n];try{var o=document.getElementById(Ja);o||((o=document.createElement("span")).setAttribute("id",Ja),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var i=Ya(Ya({},Qa),r);Object.assign(o.style,i),o.textContent="".concat(e);var a=o.getBoundingClientRect(),l={width:a.width,height:a.height};return Za.widthCache[n]=l,++Za.cacheCount>2e3&&(Za.cacheCount=0,Za.widthCache={}),l}catch(u){return{width:0,height:0}}};function tl(e){return tl="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},tl(e)}function rl(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return nl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return nl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ol(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,il(n.key),n)}}function il(e){var t=function(e,t){if("object"!=tl(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tl(t)?t:t+""}var al=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ll=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ul=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,sl=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,cl={cm:96/2.54,mm:96/25.4,pt:96/72,pc:16,in:96,Q:96/101.6,px:1},fl=Object.keys(cl),dl="NaN";var pl=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),""===r||ul.test(r)||(this.num=NaN,this.unit=""),fl.includes(r)&&(this.num=function(e,t){return e*cl[t]}(t,r),this.unit="px")}return t=e,n=[{key:"parse",value:function(t){var r,n=rl(null!==(r=sl.exec(t))&&void 0!==r?r:[],3),o=n[1],i=n[2];return new e(parseFloat(o),null!==i&&void 0!==i?i:"")}}],(r=[{key:"add",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num+t.num,this.unit)}},{key:"subtract",value:function(t){return this.unit!==t.unit?new e(NaN,""):new e(this.num-t.num,this.unit)}},{key:"multiply",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num*t.num,this.unit||t.unit)}},{key:"divide",value:function(t){return""!==this.unit&&""!==t.unit&&this.unit!==t.unit?new e(NaN,""):new e(this.num/t.num,this.unit||t.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}])&&ol(t.prototype,r),n&&ol(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();function hl(e){if(e.includes(dl))return dl;for(var t=e;t.includes("*")||t.includes("/");){var r,n=rl(null!==(r=al.exec(t))&&void 0!==r?r:[],4),o=n[1],i=n[2],a=n[3],l=pl.parse(null!==o&&void 0!==o?o:""),u=pl.parse(null!==a&&void 0!==a?a:""),s="*"===i?l.multiply(u):l.divide(u);if(s.isNaN())return dl;t=t.replace(al,s.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,f=rl(null!==(c=ll.exec(t))&&void 0!==c?c:[],4),d=f[1],p=f[2],h=f[3],y=pl.parse(null!==d&&void 0!==d?d:""),m=pl.parse(null!==h&&void 0!==h?h:""),g="+"===p?y.add(m):y.subtract(m);if(g.isNaN())return dl;t=t.replace(ll,g.toString())}return t}var yl=/\(([^()]*)\)/;function ml(e){var t=e.replace(/\s+/g,"");return t=function(e){for(var t=e;t.includes("(");){var r=rl(yl.exec(t),2)[1];t=t.replace(yl,hl(r))}return t}(t),t=hl(t)}function gl(e){var t=function(e){try{return ml(e)}catch(t){return dl}}(e.slice(5,-1));return t===dl?"":t}var vl=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],bl=["dx","dy","angle","className","breakAll"];function xl(){return xl=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},xl.apply(this,arguments)}function wl(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Sl(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}
vendor: 13,486 bytes, line 2
2finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return kl(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kl(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function kl(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Ol=/[ \f\n\r\t\v\u2028\u2029]+/,jl=function(e){var t=e.children,r=e.breakAll,n=e.style;try{var o=[];return Wt()(t)||(o=r?t.toString().split(""):t.toString().split(Ol)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:el(e,n).width}})),spaceWidth:r?0:el("\xa0",n).width}}catch(i){return null}},_l=function(e){return[{words:Wt()(e)?[]:e.toString().split(Ol)}]},El=function(e){var t=e.width,r=e.scaleToFit,n=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||r)&&!mn.isSsr){var l=jl({breakAll:i,children:n,style:o});return l?function(e,t,r,n,o){var i=e.maxLines,a=e.children,l=e.style,u=e.breakAll,s=Dt(i),c=a,f=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,l=e[e.length-1];if(l&&(null==n||o||l.width+a+r<Number(n)))l.words.push(i),l.width+=a+r;else{var u={words:[i],width:a};e.push(u)}return e}),[])},d=f(t);if(!s)return d;for(var p,h=function(e){var t=c.slice(0,e),r=jl({breakAll:u,style:l,children:t+"\u2026"}).wordsWithComputedWidth,o=f(r),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(n);return[a,o]},y=0,m=c.length-1,g=0;y<=m&&g<=c.length-1;){var v=Math.floor((y+m)/2),b=Sl(h(v-1),2),x=b[0],w=b[1],S=Sl(h(v),1)[0];if(x||S||(y=v+1),x&&S&&(m=v-1),!x&&S){p=w;break}g++}return p||d}({breakAll:i,children:n,maxLines:a,style:o},l.wordsWithComputedWidth,l.spaceWidth,t,r):_l(n)}return _l(n)},Pl="#808080",Cl=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.lineHeight,l=void 0===a?"1em":a,u=e.capHeight,s=void 0===u?"0.71em":u,c=e.scaleToFit,f=void 0!==c&&c,d=e.textAnchor,p=void 0===d?"start":d,h=e.verticalAnchor,y=void 0===h?"end":h,m=e.fill,g=void 0===m?Pl:m,v=wl(e,vl),b=(0,t.useMemo)((function(){return El({breakAll:v.breakAll,children:v.children,maxLines:v.maxLines,scaleToFit:f,style:v.style,width:v.width})}),[v.breakAll,v.children,v.maxLines,f,v.style,v.width]),x=v.dx,w=v.dy,S=v.angle,k=v.className,O=v.breakAll,j=wl(v,bl);if(!Lt(n)||!Lt(i))return null;var _,E=n+(Dt(x)?x:0),P=i+(Dt(w)?w:0);switch(y){case"start":_=gl("calc(".concat(s,")"));break;case"middle":_=gl("calc(".concat((b.length-1)/2," * -").concat(l," + (").concat(s," / 2))"));break;default:_=gl("calc(".concat(b.length-1," * -").concat(l,")"))}var C=[];if(f){var M=b[0].width,T=v.width;C.push("scale(".concat((Dt(T)?T/M:1)/M,")"))}return S&&C.push("rotate(".concat(S,", ").concat(E,", ").concat(P,")")),C.length&&(j.transform=C.join(" ")),t.createElement("text",xl({},vr(j,!0),{x:E,y:P,className:wt("recharts-text",k),textAnchor:p,fill:g.includes("url")?Pl:g}),b.map((function(e,r){var n=e.words.join(O?"":" ");return t.createElement("tspan",{x:E,dy:0===r?_:l,key:"".concat(n,"-").concat(r)},n)})))};const Ml=Math.sqrt(50),Tl=Math.sqrt(10),Al=Math.sqrt(2);function Nl(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Ml?10:i>=Tl?5:i>=Al?2:1;let l,u,s;return o<0?(s=Math.pow(10,-o)/a,l=Math.round(e*s),u=Math.round(t*s),l/s<e&&++l,u/s>t&&--u,s=-s):(s=Math.pow(10,o)*a,l=Math.round(e/s),u=Math.round(t/s),l*s<e&&++l,u*s>t&&--u),u<l&&.5<=r&&r<2?Nl(e,t,2*r):[l,u,s]}function Dl(e,t,r){if(!((r=+r)>0))return[];if((e=+e)===(t=+t))return[e];const n=t<e,[o,i,a]=n?Nl(t,e,r):Nl(e,t,r);if(!(i>=o))return[];const l=i-o+1,u=new Array(l);if(n)if(a<0)for(let s=0;s<l;++s)u[s]=(i-s)/-a;else for(let s=0;s<l;++s)u[s]=(i-s)*a;else if(a<0)for(let s=0;s<l;++s)u[s]=(o+s)/-a;else for(let s=0;s<l;++s)u[s]=(o+s)*a;return u}function Ll(e,t,r){return Nl(e=+e,t=+t,r=+r)[2]}function Il(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function zl(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Rl(e){let t,r,n;function o(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Il,r=(t,r)=>Il(e(t),r),n=(t,r)=>e(t)-r):(t=e===Il||e===zl?e:Bl,r=e,n=e),{left:o,center:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=o(e,t,r,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i},right:function(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<=0?o=t+1:i=t}while(o<i)}return o}}}function Bl(){return 0}function Fl(e){return null===e?NaN:+e}const $l=Rl(Il),Ul=$l.right,Hl=($l.left,Rl(Fl).center,Ul);function Wl(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function ql(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Vl(){}var Gl=.7,Kl=1/Gl,Yl="\\s*([+-]?\\d+)\\s*",Xl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Zl="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ql=/^#([0-9a-f]{3,8})$/,Jl=new RegExp(`^rgb\\(${Yl},${Yl},${Yl}\\)$`),eu=new RegExp(`^rgb\\(${Zl},${Zl},${Zl}\\)$`),tu=new RegExp(`^rgba\\(${Yl},${Yl},${Yl},${Xl}\\)$`),ru=new RegExp(`^rgba\\(${Zl},${Zl},${Zl},${Xl}\\)$`),nu=new RegExp(`^hsl\\(${Xl},${Zl},${Zl}\\)$`),ou=new RegExp(`^hsla\\(${Xl},${Zl},${Zl},${Xl}\\)$`),iu={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function au(){return this.rgb().formatHex()}function lu(){return this.rgb().formatRgb()}function uu(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Ql.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?su(t):3===r?new du(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?cu(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?cu(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=Jl.exec(e))?new du(t[1],t[2],t[3],1):(t=eu.exec(e))?new du(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=tu.exec(e))?cu(t[1],t[2],t[3],t[4]):(t=ru.exec(e))?cu(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=nu.exec(e))?vu(t[1],t[2]/100,t[3]/100,1):(t=ou.exec(e))?vu(t[1],t[2]/100,t[3]/100,t[4]):iu.hasOwnProperty(e)?su(iu[e]):"transparent"===e?new du(NaN,NaN,NaN,0):null}function su(e){return new du(e>>16&255,e>>8&255,255&e,1)}function cu(e,t,r,n){return n<=0&&(e=t=r=NaN),new du(e,t,r,n)}function fu(e,t,r,n){return 1===arguments.length?((o=e)instanceof Vl||(o=uu(o)),o?new du((o=o.rgb()).r,o.g,o.b,o.opacity):new du):new du(e,t,r,null==n?1:n);var o}function du(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function pu(){return`#${gu(this.r)}${gu(this.g)}${gu(this.b)}`}function hu(){const e=yu(this.opacity);return`${1===e?"rgb(":"rgba("}${mu(this.r)}, ${mu(this.g)}, ${mu(this.b)}${1===e?")":`, ${e})`}`}function yu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function gu(e){return((e=mu(e))<16?"0":"")+e.toString(16)}function vu(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new xu(e,t,r,n)}function bu(e){if(e instanceof xu)return new xu(e.h,e.s,e.l,e.opacity);if(e instanceof Vl||(e=uu(e)),!e)return new xu;if(e instanceof xu)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,o=Math.min(t,r,n),i=Math.max(t,r,n),a=NaN,l=i-o,u=(i+o)/2;return l?(a=t===i?(r-n)/l+6*(r<n):r===i?(n-t)/l+2:(t-r)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new xu(a,l,u,e.opacity)}function xu(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function wu(e){return(e=(e||0)%360)<0?e+360:e}function Su(e){return Math.max(0,Math.min(1,e||0))}function ku(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}function Ou(e,t,r,n,o){var i=e*e,a=i*e;return((1-3*e+3*i-a)*t+(4-6*i+3*a)*r+(1+3*e+3*i-3*a)*n+a*o)/6}Wl(Vl,uu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:au,formatHex:au,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return bu(this).formatHsl()},formatRgb:lu,toString:lu}),Wl(du,fu,ql(Vl,{brighter(e){return e=null==e?Kl:Math.pow(Kl,e),new du(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Gl:Math.pow(Gl,e),new du(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new du(mu(this.r),mu(this.g),mu(this.b),yu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:pu,formatHex:pu,formatHex8:function(){return`#${gu(this.r)}${gu(this.g)}${gu(this.b)}${gu(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:hu,toString:hu})),Wl(xu,(function(e,t,r,n){return 1===arguments.length?bu(e):new xu(e,t,r,null==n?1:n)}),ql(Vl,{brighter(e){return e=null==e?Kl:Math.pow(Kl,e),new xu(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Gl:Math.pow(Gl,e),new xu(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,o=2*r-n;return new du(ku(e>=240?e-240:e+120,o,n),ku(e,o,n),ku(e<120?e+240:e-120,o,n),this.opacity)},clamp(){return new xu(wu(this.h),Su(this.s),Su(this.l),yu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=yu(this.opacity);return`${1===e?"hsl(":"hsla("}${wu(this.h)}, ${100*Su(this.s)}%, ${100*Su(this.l)}%${1===e?")":`, ${e})`}`}}));const ju=e=>()=>e;function _u(e,t){return function(r){return e+r*t}}function Eu(e){return 1===(e=+e)?Pu:function(t,r){return r-t?function(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}(t,r,e):ju(isNaN(t)?r:t)}}function Pu(e,t){var r=t-e;return r?_u(e,r):ju(isNaN(e)?t:e)}const Cu=function e(t){var r=Eu(t);function n(e,t){var n=r((e=fu(e)).r,(t=fu(t)).r),o=r(e.g,t.g),i=r(e.b,t.b),a=Pu(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return n.gamma=e,n}(1);function Mu(e){return function(t){var r,n,o=t.length,i=new Array(o),a=new Array(o),l=new Array(o);for(r=0;r<o;++r)n=fu(t[r]),i[r]=n.r||0,a[r]=n.g||0,l[r]=n.b||0;return i=e(i),a=e(a),l=e(l),n.opacity=1,function(e){return n.r=i(e),n.g=a(e),n.b=l(e),n+""}}}Mu((function(e){var t=e.length-1;
vendor: 4,862 bytes, line 2
2return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),o=e[n],i=e[n+1],a=n>0?e[n-1]:2*o-i,l=n<t-1?e[n+2]:2*i-o;return Ou((r-n/t)*t,a,o,i,l)}})),Mu((function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),o=e[(n+t-1)%t],i=e[n%t],a=e[(n+1)%t],l=e[(n+2)%t];return Ou((r-n/t)*t,o,i,a,l)}}));function Tu(e,t){var r,n=t?t.length:0,o=e?Math.min(n,e.length):0,i=new Array(o),a=new Array(n);for(r=0;r<o;++r)i[r]=Bu(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<o;++r)a[r]=i[r](e);return a}}function Au(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function Nu(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function Du(e,t){var r,n={},o={};for(r in null!==e&&"object"===typeof e||(e={}),null!==t&&"object"===typeof t||(t={}),t)r in e?n[r]=Bu(e[r],t[r]):o[r]=t[r];return function(e){for(r in n)o[r]=n[r](e);return o}}var Lu=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Iu=new RegExp(Lu.source,"g");function zu(e,t){var r,n,o,i=Lu.lastIndex=Iu.lastIndex=0,a=-1,l=[],u=[];for(e+="",t+="";(r=Lu.exec(e))&&(n=Iu.exec(t));)(o=n.index)>i&&(o=t.slice(i,o),l[a]?l[a]+=o:l[++a]=o),(r=r[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,u.push({i:a,x:Nu(r,n)})),i=Iu.lastIndex;return i<t.length&&(o=t.slice(i),l[a]?l[a]+=o:l[++a]=o),l.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var r,n=0;n<t;++n)l[(r=u[n]).i]=r.x(e);return l.join("")})}function Ru(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(r=0;r<n;++r)o[r]=e[r]*(1-i)+t[r]*i;return o}}function Bu(e,t){var r,n,o=typeof t;return null==t||"boolean"===o?ju(t):("number"===o?Nu:"string"===o?(r=uu(t))?(t=r,Cu):zu:t instanceof uu?Cu:t instanceof Date?Au:(n=t,!ArrayBuffer.isView(n)||n instanceof DataView?Array.isArray(t)?Tu:"function"!==typeof t.valueOf&&"function"!==typeof t.toString||isNaN(t)?Du:Nu:Ru))(e,t)}function Fu(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function $u(e){return+e}var Uu=[0,1];function Hu(e){return e}function Wu(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:(r=isNaN(t)?NaN:.5,function(){return r});var r}function qu(e,t,r){var n=e[0],o=e[1],i=t[0],a=t[1];return o<n?(n=Wu(o,n),i=r(a,i)):(n=Wu(n,o),i=r(i,a)),function(e){return i(n(e))}}function Vu(e,t,r){var n=Math.min(e.length,t.length)-1,o=new Array(n),i=new Array(n),a=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<n;)o[a]=Wu(e[a],e[a+1]),i[a]=r(t[a],t[a+1]);return function(t){var r=Hl(e,t,1,n)-1;return i[r](o[r](t))}}function Gu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ku(){var e,t,r,n,o,i,a=Uu,l=Uu,u=Bu,s=Hu;function c(){var e=Math.min(a.length,l.length);return s!==Hu&&(s=function(e,t){var r;return e>t&&(r=e,e=t,t=r),function(r){return Math.max(e,Math.min(t,r))}}(a[0],a[e-1])),n=e>2?Vu:qu,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?r:(o||(o=n(a.map(e),l,u)))(e(s(t)))}return f.invert=function(r){return s(t((i||(i=n(l,a.map(e),Nu)))(r)))},f.domain=function(e){return arguments.length?(a=Array.from(e,$u),c()):a.slice()},f.range=function(e){return arguments.length?(l=Array.from(e),c()):l.slice()},f.rangeRound=function(e){return l=Array.from(e),u=Fu,c()},f.clamp=function(e){return arguments.length?(s=!!e||Hu,c()):s!==Hu},f.interpolate=function(e){return arguments.length?(u=e,c()):u},f.unknown=function(e){return arguments.length?(r=e,f):r},function(r,n){return e=r,t=n,c()}}function Yu(){return Ku()(Hu,Hu)}var Xu,Zu=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Qu(e){if(!(t=Zu.exec(e)))throw new Error("invalid format: "+e);var t;return new Ju({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Ju(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function es(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function ts(e){return(e=es(Math.abs(e)))?e[1]:NaN}function rs(e,t){var r=es(e,t);if(!r)return e+"";var n=r[0],o=r[1];return o<0?"0."+new Array(-o).join("0")+n:n.length>o+1?n.slice(0,o+1)+"."+n.slice(o+1):n+new Array(o-n.length+2).join("0")}Qu.prototype=Ju.prototype,Ju.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?""
vendor: 2,064 bytes, line 2
2:Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};const ns={"%":(e,t)=>(100*e).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:function(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)},e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>rs(100*e,t),r:rs,s:function(e,t){var r=es(e,t);if(!r)return e+"";var n=r[0],o=r[1],i=o-(Xu=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=n.length;return i===a?n:i>a?n+new Array(i-a+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+es(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function os(e){return e}var is,as,ls,us=Array.prototype.map,ss=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function cs(e){var t,r,n=void 0===e.grouping||void 0===e.thousands?os:(t=us.call(e.grouping,Number),r=e.thousands+"",function(e,n){for(var o=e.length,i=[],a=0,l=t[0],u=0;o>0&&l>0&&(u+l+1>n&&(l=Math.max(1,n-u)),i.push(e.substring(o-=l,o+l)),!((u+=l+1)>n));)l=t[a=(a+1)%t.length];return i.reverse().join(r)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",l=void 0===e.numerals?os:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(us.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",s=void 0===e.minus?"\u2212":e.minus+"",c=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=Qu(e)).fill,r=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,y=e.comma,m=e.precision,g=e.trim,v=e.type;"n"===v?(y=!0,v="g"):ns[v]||(void 0===m&&(m=12),g=!0,v="g"),(p||"0"===t&&"="===r)&&(p=!0,t="0",r="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x="$"===d?i:/[%p]/.test(v)?u:"",w=ns[v],S=/[defgprs%]/.test(v);function k(e){var o,i,u,d=b,k=x;if("c"===v)k=w(e)+k,e="";else{var O=(e=+e)<0||1/e<0;
vendor: 4,463 bytes, line 2
2if(e=isNaN(e)?c:w(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,o=-1;n<r;++n)switch(e[n]){case".":o=t=n;break;case"0":0===o&&(o=n),t=n;break;default:if(!+e[n])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),O&&0===+e&&"+"!==f&&(O=!1),d=(O?"("===f?f:s:"-"===f||"("===f?"":f)+d,k=("s"===v?ss[8+Xu/3]:"")+k+(O&&"("===f?")":""),S)for(o=-1,i=e.length;++o<i;)if(48>(u=e.charCodeAt(o))||u>57){k=(46===u?a+e.slice(o+1):e.slice(o))+k,e=e.slice(0,o);break}}y&&!p&&(e=n(e,1/0));var j=d.length+e.length+k.length,_=j<h?new Array(h-j+1).join(t):"";switch(y&&p&&(e=n(_+e,_.length?h-k.length:1/0),_=""),r){case"<":e=d+e+k+_;break;case"=":e=d+_+e+k;break;case"^":e=_.slice(0,j=_.length>>1)+d+e+k+_.slice(j);break;default:e=_+d+e+k}return l(e)}return m=void 0===m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var r=f(((e=Qu(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(ts(t)/3))),o=Math.pow(10,-n),i=ss[8+n/3];return function(e){return r(o*e)+i}}}}function fs(e,t,r,n){var o,i=function(e,t,r){r=+r;const n=(t=+t)<(e=+e),o=n?Ll(t,e,r):Ll(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}(e,t,r);switch((n=Qu(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ts(t)/3)))-ts(Math.abs(e)))}(i,a))||(n.precision=o),ls(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ts(t)-ts(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=o-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(o=function(e){return Math.max(0,-ts(Math.abs(e)))}(i))||(n.precision=o-2*("%"===n.type))}return as(n)}function ds(e){var t=e.domain;return e.ticks=function(e){var r=t();return Dl(r[0],r[r.length-1],null==e?10:e)},e.tickFormat=function(e,r){var n=t();return fs(n[0],n[n.length-1],null==e?10:e,r)},e.nice=function(r){null==r&&(r=10);var n,o,i=t(),a=0,l=i.length-1,u=i[a],s=i[l],c=10;for(s<u&&(o=u,u=s,s=o,o=a,a=l,l=o);c-- >0;){if((o=Ll(u,s,r))===n)return i[a]=u,i[l]=s,t(i);if(o>0)u=Math.floor(u/o)*o,s=Math.ceil(s/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,s=Math.floor(s*o)/o}n=o}return e},e}function ps(){var e=Yu();return e.copy=function(){return Gu(e,ps())},La.apply(e,arguments),ds(e)}function hs(e){var t;function r(e){return null==e||isNaN(e=+e)?t:e}return r.invert=r,r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,$u),r):e.slice()},r.unknown=function(e){return arguments.length?(t=e,r):t},r.copy=function(){return hs(e).unknown(t)},e=arguments.length?Array.from(e,$u):[0,1],ds(r)}function ys(e,t){var r,n=0,o=(e=e.slice()).length-1,i=e[n],a=e[o];return a<i&&(r=n,n=o,o=r,r=i,i=a,a=r),e[n]=t.floor(i),e[o]=t.ceil(a),e}function ms(e){return Math.log(e)}function gs(e){return Math.exp(e)}function vs(e){return-Math.log(-e)}function bs(e){return-Math.exp(-e)}function xs(e){return isFinite(e)?+("1e"+e):e<0?0:e}function ws(e){return(t,r)=>-e(-t,r)}function Ss(e){const t=e(ms,gs),r=t.domain;let n,o,i=10;function a(){return n=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?xs:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),r()[0]<0?(n=ws(n),o=ws(o),e(vs,bs)):e(ms,gs),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(r(e),a()):r()},t.ticks=e=>{const t=r();let a=t[0],l=t[t.length-1];const u=l<a;u&&([a,l]=[l,a]);let s,c,f=n(a),d=n(l);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(s=1;s<i;++s)if(c=f<0?s/o(-f):s*o(f),!(c<a)){if(c>l)break;h.push(c)}}else for(;f<=d;++f)for(s=i-1;s>=1;--s)if(c=f>0?s/o(-f):s*o(f),!(c<a)){if(c>l)break;h.push(c)}2*h.length<p&&(h=Dl(a,l,p))}else h=Dl(f,d,Math.min(d-f,p)).map(o);return u?h.reverse():h},t.tickFormat=(e,r)=>{if(null==e&&(e=10),null==r&&(r=10===i?"s":","),"function"!==typeof r&&(i%1||null!=(r=Qu(r)).precision||(r.trim=!0),r=as(r)),e===1/0)return r;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(n(e)));return t*i<i-.5&&(t*=i),t<=a?r(e):""}},t.nice=()=>r(ys(r(),{floor:e=>o(Math.floor(n(e))),ceil:e=>o(Math.ceil(n(e)))})),t}function ks(){const e=Ss(Ku()).domain([1,10]);return e.copy=()=>Gu(e,ks()).base(e.base()),La.apply(e,arguments),e}
vendor: 4,804 bytes, line 2
2function Os(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function js(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _s(e){var t=1,r=e(Os(t),js(t));return r.constant=function(r){return arguments.length?e(Os(t=+r),js(t)):t},ds(r)}function Es(){var e=_s(Ku());return e.copy=function(){return Gu(e,Es()).constant(e.constant())},La.apply(e,arguments)}function Ps(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Cs(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Ms(e){return e<0?-e*e:e*e}function Ts(e){var t=e(Hu,Hu),r=1;return t.exponent=function(t){return arguments.length?1===(r=+t)?e(Hu,Hu):.5===r?e(Cs,Ms):e(Ps(r),Ps(1/r)):r},ds(t)}function As(){var e=Ts(Ku());return e.copy=function(){return Gu(e,As()).exponent(e.exponent())},La.apply(e,arguments),e}function Ns(){return As.apply(null,arguments).exponent(.5)}function Ds(e){return Math.sign(e)*e*e}function Ls(){var e,t=Yu(),r=[0,1],n=!1;function o(r){var o=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(t(r));return isNaN(o)?e:n?Math.round(o):o}return o.invert=function(e){return t.invert(Ds(e))},o.domain=function(e){return arguments.length?(t.domain(e),o):t.domain()},o.range=function(e){return arguments.length?(t.range((r=Array.from(e,$u)).map(Ds)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(n=!!e,o):n},o.clamp=function(e){return arguments.length?(t.clamp(e),o):t.clamp()},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ls(t.domain(),r).round(n).clamp(t.clamp()).unknown(e)},La.apply(o,arguments),ds(o)}function Is(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r<n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r<o||void 0===r&&o>=o)&&(r=o)}return r}function zs(e,t){let r;if(void 0===t)for(const n of e)null!=n&&(r>n||void 0===r&&n>=n)&&(r=n);else{let n=-1;for(let o of e)null!=(o=t(o,++n,e))&&(r>o||void 0===r&&o>=o)&&(r=o)}return r}function Rs(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Il;if(e===Il)return Bs;if("function"!==typeof e)throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||0===n?n:(0===e(r,r))-(0===e(t,t))}}function Bs(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}function Fs(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,o=arguments.length>4?arguments[4]:void 0;if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(o=void 0===o?Bs:Rs(o);n>r;){if(n-r>600){const i=n-r+1,a=t-r+1,l=Math.log(i),u=.5*Math.exp(2*l/3),s=.5*Math.sqrt(l*u*(i-u)/i)*(a-i/2<0?-1:1);Fs(e,t,Math.max(r,Math.floor(t-a*u/i+s)),Math.min(n,Math.floor(t+(i-a)*u/i+s)),o)}const i=e[t];let a=r,l=n;for($s(e,r,t),o(e[n],i)>0&&$s(e,r,n);a<l;){for($s(e,a,l),++a,--l;o(e[a],i)<0;)++a;for(;o(e[l],i)>0;)--l}0===o(e[r],i)?$s(e,r,l):(++l,$s(e,l,n)),l<=t&&(r=l+1),t<=l&&(n=l-1)}return e}function $s(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function Us(e,t,r){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let r of e)null!=r&&(r=+r)>=r&&(yield r);else{let r=-1;for(let n of e)null!=(n=t(n,++r,e))&&(n=+n)>=n&&(yield n)}}(e,r)),(n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return zs(e);if(t>=1)return Is(e);var n,o=(n-1)*t,i=Math.floor(o),a=Is(Fs(e,i).subarray(0,i+1));return a+(zs(e.subarray(i+1))-a)*(o-i)}}function Hs(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Fl;if((n=e.length)&&!isNaN(t=+t)){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,o=(n-1)*t,i=Math.floor(o),a=+r(e[i],i,e);return a+(+r(e[i+1],i+1,e)-a)*(o-i)}}function Ws(){var e,t=[],r=[],n=[];function o(){var e=0,o=Math.max(1,r.length);for(n=new Array(o-1);++e<o;)n[e-1]=Hs(t,e/o);return i}function i(t){return null==t||isNaN(t=+t)?e:r[Hl(n,t)]}return i.invertExtent=function(e){var o=r.indexOf(e);return o<0?[NaN,NaN]:[o>0?n[o-1]:t[0],o<n.length?n[o]:t[t.length-1]]},i.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let r of e)null==r||isNaN(r=+r)||t.push(r);return t.sort(Il),o()},i.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},i.unknown=function(t){return arguments.length?(e=t,i):e},i.quantiles=function(){return n.slice()},i.copy=function(){return Ws().domain(t).range(r).unknown(e)},La.apply(i,arguments)}function qs(){var e,t=0,r=1,n=1,o=[.5],i=[0,1];function a(t){return null!=t&&t<=t?i[Hl(o,t,0,n)]:e}function l(){var e=-1;for(o=new Array(n);++e<n;)o[e]=((e+1)*r-(e-n)*t)/(n+1);return a}return a.domain=function(e){return arguments.length?([t,r]=e,t=+t,r=+r,l()):[t,r]},a.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,l(
vendor: 11,317 bytes, line 2
2)):i.slice()},a.invertExtent=function(e){var a=i.indexOf(e);return a<0?[NaN,NaN]:a<1?[t,o[0]]:a>=n?[o[n-1],r]:[o[a-1],o[a]]},a.unknown=function(t){return arguments.length?(e=t,a):a},a.thresholds=function(){return o.slice()},a.copy=function(){return qs().domain([t,r]).range(i).unknown(e)},La.apply(ds(a),arguments)}function Vs(){var e,t=[.5],r=[0,1],n=1;function o(o){return null!=o&&o<=o?r[Hl(t,o,0,n)]:e}return o.domain=function(e){return arguments.length?(t=Array.from(e),n=Math.min(t.length,r.length-1),o):t.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),n=Math.min(t.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var n=r.indexOf(e);return[t[n-1],t[n]]},o.unknown=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Vs().domain(t).range(r).unknown(e)},La.apply(o,arguments)}function Gs(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ks(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ys(){return 0}is=cs({thousands:",",grouping:[3],currency:["$",""]}),as=is.format,ls=is.formatPrefix;const Xs=Math.sqrt(50),Zs=Math.sqrt(10),Qs=Math.sqrt(2);function Js(e,t,r){const n=(t-e)/Math.max(0,r),o=Math.floor(Math.log10(n)),i=n/Math.pow(10,o),a=i>=Xs?10:i>=Zs?5:i>=Qs?2:1;let l,u,s;return o<0?(s=Math.pow(10,-o)/a,l=Math.round(e*s),u=Math.round(t*s),l/s<e&&++l,u/s>t&&--u,s=-s):(s=Math.pow(10,o)*a,l=Math.round(e/s),u=Math.round(t/s),l*s<e&&++l,u*s>t&&--u),u<l&&.5<=r&&r<2?Js(e,t,2*r):[l,u,s]}function ec(e,t,r){return Js(e=+e,t=+t,r=+r)[2]}function tc(e,t,r){r=+r;const n=(t=+t)<(e=+e),o=n?ec(t,e,r):ec(e,t,r);return(n?-1:1)*(o<0?1/-o:o)}const rc=1e3,nc=6e4,oc=36e5,ic=864e5,ac=6048e5,lc=2592e6,uc=31536e6,sc=new Date,cc=new Date;function fc(e,t,r,n){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=r=>(e(r=new Date(r-1)),t(r,1),e(r),r),o.round=e=>{const t=o(e),r=o.ceil(e);return e-t<r-e?t:r},o.offset=(e,r)=>(t(e=new Date(+e),null==r?1:Math.floor(r)),e),o.range=(r,n,i)=>{const a=[];if(r=o.ceil(r),i=null==i?1:Math.floor(i),!(r<n)||!(i>0))return a;let l;do{a.push(l=new Date(+r)),t(r,i),e(r)}while(l<r&&r<n);return a},o.filter=r=>fc((t=>{if(t>=t)for(;e(t),!r(t);)t.setTime(t-1)}),((e,n)=>{if(e>=e)if(n<0)for(;++n<=0;)for(;t(e,-1),!r(e););else for(;--n>=0;)for(;t(e,1),!r(e););})),r&&(o.count=(t,n)=>(sc.setTime(+t),cc.setTime(+n),e(sc),e(cc),Math.floor(r(sc,cc))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(n?t=>n(t)%e===0:t=>o.count(0,t)%e===0):o:null)),o}const dc=fc((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));dc.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?fc((t=>{t.setTime(Math.floor(t/e)*e)}),((t,r)=>{t.setTime(+t+r*e)}),((t,r)=>(r-t)/e)):dc:null);dc.range;const pc=fc((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*rc)}),((e,t)=>(t-e)/rc),(e=>e.getUTCSeconds())),hc=(pc.range,fc((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rc)}),((e,t)=>{e.setTime(+e+t*nc)}),((e,t)=>(t-e)/nc),(e=>e.getMinutes()))),yc=(hc.range,fc((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*nc)}),((e,t)=>(t-e)/nc),(e=>e.getUTCMinutes()))),mc=(yc.range,fc((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*rc-e.getMinutes()*nc)}),((e,t)=>{e.setTime(+e+t*oc)}),((e,t)=>(t-e)/oc),(e=>e.getHours()))),gc=(mc.range,fc((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*oc)}),((e,t)=>(t-e)/oc),(e=>e.getUTCHours()))),vc=(gc.range,fc((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nc)/ic),(e=>e.getDate()-1))),bc=(vc.range,fc((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ic),(e=>e.getUTCDate()-1))),xc=(bc.range,fc((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ic),(e=>Math.floor(e/ic))));xc.range;function wc(e){return fc((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*nc)/ac))}const Sc=wc(0),kc=wc(1),Oc=wc(2),jc=wc(3),_c=wc(4),Ec=wc(5),Pc=wc(6);Sc.range,kc.range,Oc.range,jc.range,_c.range,Ec.range,Pc.range;function Cc(e){return fc((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/ac))}const Mc=Cc(0),Tc=Cc(1),Ac=Cc(2),Nc=Cc(3),Dc=Cc(4),Lc=Cc(5),Ic=Cc(6),zc=(Mc.range,Tc.range,Ac.range,Nc.range,Dc.range,Lc.range,Ic.range,fc((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()))),Rc=(zc.range,fc((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()))),Bc=(Rc.range,fc((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear())));Bc.every=e=>isFinite(e=Math.floor(e))&&e>0?fc((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,r)=>{t.setFullYear(t.getFullYear()+r*e)})):null;Bc.range;const Fc=fc((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));Fc.every=e=>isFinite(e=Math.floor(e))&&e>0?fc((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)})):null;Fc.range;function $c(e,t,r,n,o,i){const a=[[pc,1,rc],[pc,5,5e3],[pc,15,15e3],[pc,30,3e4],[i,1,nc],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,oc],[o,3,108e5],[o,6,216e5],[o,12,432e5],[n,1,ic],[n,2,1728e5],[r,1,ac],[t,1,lc],[t,3,7776e6],[e,1,uc]];function l(t,r,n){const o=Math.abs(r-t)/n,i=function(e){let t,r,n;function o(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=Gs,r=(t,r)=>Gs(e(t),r),n=(t,r)=>e(t)-r):(t=e===Gs||e===Ks?e:Ys,r=e,n=e),{left:o,center:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const i=o(e,t,r,(arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length)-1);return i>r&&n(e[i-1],t)>-n(e[i],t)?i-1:i},right:function(e,n){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length;if(o<i){if(0!==t(n,n))return i;do{const t=o+i>>>1;r(e[t],n)<=0?o=t+1:i=t}while(o<i)}return o}}}((e=>{let[,,t]=e;return t})).right(a,o);if(i===a.length)return e.every(tc(t/uc,r/uc,n));if(0===i)return dc.every(Math.max(tc(t,r,n),1));const[l,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return l.every(u)}return[function(e,t,r){const n=t<e;n&&([e,t]=[t,e]);const o=r&&"function"===typeof r.range?r:l(e,t,r),i=o?o.range(e,+t+1):[];return n?i.reverse():i},l]}const[Uc,Hc]=$c(Fc,Rc,Mc,xc,gc,yc),[Wc,qc]=$c(Bc,zc,Sc,vc,mc,hc);function Vc(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Gc(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Kc(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}var Yc,Xc,Zc,Qc={"-":"",_:" ",0:"0"},Jc=/^\s*\d+/,ef=/^%/,tf=/[\\^$*+?|[\]().{}]/g;function rf(e,t,r){var n=e<0?"-":"",o=(n?-e:e)+"",i=o.length;return n+(i<r?new Array(r-i+1).join(t)+o:o)}function nf(e){return e.replace(tf,"\\$&")}function of(e){return new RegExp("^(?:"+e.map(nf).join("|")+")","i")}function af(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function lf(e,t,r){var n=Jc.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function uf(e,t,r){var n=Jc.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function sf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function cf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function ff(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function df(e,t,r){var n=Jc.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function pf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function hf(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function yf(e,t,r){var n=Jc.exec(t.slice(r,r+1));return n?(e.q=3*n[0]-3,r+n[0].length):-1}function mf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function gf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function vf(e,t,r){var n=Jc.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function bf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function xf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function wf(e,t,r){var n=Jc.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function Sf(e,t,r){var n=Jc.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function kf(e,t,r){var n=Jc.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function Of(e,t,r){var n=ef.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function jf(e,t,r){var n=Jc.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function _f(e,t,r){var n=Jc.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function Ef(e,t){return rf(e.getDate(),t,2)}function Pf(e,t){return rf(e.getHours(),t,2)}function Cf(e,t){return rf(e.getHours()%12||12,t,2)}function Mf(e,t){return rf(1+vc.count(Bc(e),e),t,3)}function Tf(e,t){return rf(e.getMilliseconds(),t,3)}function Af(e,t){return Tf(e,t)+"000"}function Nf(e,t){return rf(e.getMonth()+1,t,2)}function Df(e,t){return rf(e.getMinutes(),t,2)}function Lf(e,t){return rf(e.getSeconds(),t,2)}function If(e){var t=e.getDay();return 0===t?7:t}function zf(e,t){return rf(Sc.count(Bc(e)-1,e),t,2)}function Rf(e){var t=e.getDay();return t>=4||0===t?_c(e):_c.ceil(e)}function Bf(e,t){return e=Rf(e),rf(_c.count(Bc(e),e)+(4===Bc(e).getDay()),t,2)}function Ff(e){return e.getDay()}function $f(e,t){return rf(kc.count(Bc(e)-1,e),t,2)}function Uf(e,t){return rf(e.getFullYear()%100,t,2)}function Hf(e,t){return rf((e=Rf(e)).getFullYear()%100,t,2)}function Wf(e,t){return rf(e.getFullYear()%1e4,t,4)}function qf(e,t){var r=e.getDay();return rf((e=r>=4||0===r?_c(e):_c.ceil(e)).getFullYear()%1e4,t,4)}function Vf(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+rf(t/60|0,"0",2)+rf(t%60,"0",2)}function Gf(e,t){return rf(e.getUTCDate(),t,2)}function Kf(e,t){return rf(e.getUTCHours(),t,2)}function Yf(e,t){return rf(e.getUTCHours()%12||12,t,2)}function Xf(e,t){return rf(1+bc.count(Fc(e),e),t,3)}function Zf(e,t){return rf(e.getUTCMilliseconds(),t,3)}function Qf(e,t){return Zf(e,t)+"000"}function Jf(e,t){return rf(e.getUTCMonth()+1,t,2)}function ed(e,t){return rf(e.getUTCMinutes(),t,2)}function td(e,t){return rf(e.getUTCSeconds(),t,2)}function rd(e){var t=e.getUTCDay();return 0===t?7:t}
vendor: 7,247 bytes, line 2
2function nd(e,t){return rf(Mc.count(Fc(e)-1,e),t,2)}function od(e){var t=e.getUTCDay();return t>=4||0===t?Dc(e):Dc.ceil(e)}function id(e,t){return e=od(e),rf(Dc.count(Fc(e),e)+(4===Fc(e).getUTCDay()),t,2)}function ad(e){return e.getUTCDay()}function ld(e,t){return rf(Tc.count(Fc(e)-1,e),t,2)}function ud(e,t){return rf(e.getUTCFullYear()%100,t,2)}function sd(e,t){return rf((e=od(e)).getUTCFullYear()%100,t,2)}function cd(e,t){return rf(e.getUTCFullYear()%1e4,t,4)}function fd(e,t){var r=e.getUTCDay();return rf((e=r>=4||0===r?Dc(e):Dc.ceil(e)).getUTCFullYear()%1e4,t,4)}function dd(){return"+0000"}function pd(){return"%"}function hd(e){return+e}function yd(e){return Math.floor(+e/1e3)}function md(e){return new Date(e)}function gd(e){return e instanceof Date?+e:+new Date(+e)}function vd(e,t,r,n,o,i,a,l,u,s){var c=Yu(),f=c.invert,d=c.domain,p=s(".%L"),h=s(":%S"),y=s("%I:%M"),m=s("%I %p"),g=s("%a %d"),v=s("%b %d"),b=s("%B"),x=s("%Y");function w(e){return(u(e)<e?p:l(e)<e?h:a(e)<e?y:i(e)<e?m:n(e)<e?o(e)<e?g:v:r(e)<e?b:x)(e)}return c.invert=function(e){return new Date(f(e))},c.domain=function(e){return arguments.length?d(Array.from(e,gd)):d().map(md)},c.ticks=function(t){var r=d();return e(r[0],r[r.length-1],null==t?10:t)},c.tickFormat=function(e,t){return null==t?w:s(t)},c.nice=function(e){var r=d();return e&&"function"===typeof e.range||(e=t(r[0],r[r.length-1],null==e?10:e)),e?d(ys(r,e)):c},c.copy=function(){return Gu(c,vd(e,t,r,n,o,i,a,l,u,s))},c}function bd(){return La.apply(vd(Wc,qc,Bc,zc,Sc,vc,mc,hc,pc,Xc).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function xd(){return La.apply(vd(Uc,Hc,Fc,Rc,Mc,bc,gc,yc,pc,Zc).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function wd(){var e,t,r,n,o,i=0,a=1,l=Hu,u=!1;function s(t){return null==t||isNaN(t=+t)?o:l(0===r?.5:(t=(n(t)-e)*r,u?Math.max(0,Math.min(1,t)):t))}function c(e){return function(t){var r,n;return arguments.length?([r,n]=t,l=e(r,n),s):[l(0),l(1)]}}return s.domain=function(o){return arguments.length?([i,a]=o,e=n(i=+i),t=n(a=+a),r=e===t?0:1/(t-e),s):[i,a]},s.clamp=function(e){return arguments.length?(u=!!e,s):u},s.interpolator=function(e){return arguments.length?(l=e,s):l},s.range=c(Bu),s.rangeRound=c(Fu),s.unknown=function(e){return arguments.length?(o=e,s):o},function(o){return n=o,e=o(i),t=o(a),r=e===t?0:1/(t-e),s}}function Sd(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function kd(){var e=ds(wd()(Hu));return e.copy=function(){return Sd(e,kd())},Ia.apply(e,arguments)}function Od(){var e=Ss(wd()).domain([1,10]);return e.copy=function(){return Sd(e,Od()).base(e.base())},Ia.apply(e,arguments)}function jd(){var e=_s(wd());return e.copy=function(){return Sd(e,jd()).constant(e.constant())},Ia.apply(e,arguments)}function _d(){var e=Ts(wd());return e.copy=function(){return Sd(e,_d()).exponent(e.exponent())},Ia.apply(e,arguments)}function Ed(){return _d.apply(null,arguments).exponent(.5)}function Pd(){var e=[],t=Hu;function r(r){if(null!=r&&!isNaN(r=+r))return t((Hl(e,r,1)-1)/(e.length-1))}return r.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let r of t)null==r||isNaN(r=+r)||e.push(r);return e.sort(Il),r},r.interpolator=function(e){return arguments.length?(t=e,r):t},r.range=function(){return e.map(((r,n)=>t(n/(e.length-1))))},r.quantiles=function(t){return Array.from({length:t+1},((r,n)=>Us(e,n/t)))},r.copy=function(){return Pd(t).domain(e)},Ia.apply(r,arguments)}function Cd(){var e,t,r,n,o,i,a,l=0,u=.5,s=1,c=1,f=Hu,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(c*e<c*t?n:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var r,n,o;return arguments.length?([r,n,o]=t,f=function(e,t){void 0===t&&(t=e,e=Bu);for(var r=0,n=t.length-1,o=t[0],i=new Array(n<0?0:n);r<n;)i[r]=e(o,o=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return i[t](e-t)}}(e,[r,n,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([l,u,s]=a,e=i(l=+l),t=i(u=+u),r=i(s=+s),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),c=t<e?-1:1,p):[l,u,s]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(Bu),p.rangeRound=h(Fu),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(l),t=a(u),r=a(s),n=e===t?0:.5/(t-e),o=t===r?0:.5/(r-t),c=t<e?-1:1,p}}function Md(){var e=ds(Cd()(Hu));return e.copy=function(){return Sd(e,Md())},Ia.apply(e,arguments)}function Td(){var e=Ss(Cd()).domain([.1,1,10]);return e.copy=function(){return Sd(e,Td()).base(e.base())},Ia.apply(e,arguments)}function Ad(){var e=_s(Cd());return e.copy=function(){return Sd(e,Ad()).constant(e.constant())},Ia.apply(e,arguments)}function Nd(){var e=Ts(Cd());return e.copy=function(){return Sd(e,Nd()).exponent(e.exponent())},Ia.apply(e,arguments)}function Dd(){return Nd.apply(null,arguments).exponent(.5)}function Ld(e,t){if((o=e.length)>1)for(var r,n,o,i=1,a=e[t[0]],l=a.length;i<o;++i)for(n=a,a=e[t[i]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}!function(e){Yc=function(e){var t=e.dateTime,r=e.date,n=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,s=of(o),c=af(o),f=of(i),d=af(i),p=of(a),h=af(a),y=of(l),m=af(l),g=of(u),v=af(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return l[e.getMonth()]},c:null,d:Ef,e:Ef,f:Af,g:Hf,G:qf,H:Pf,I:Cf,j:Mf,L:Tf,m:Nf,M:Df,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:hd,s:yd,S:Lf,u:If,U:zf,V:Bf,w:Ff,W:$f,x:null,X:null,y:Uf,Y:Wf,Z:Vf,"%":pd},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return l[e.getUTCMonth()]},c:null,d:Gf,e:Gf,f:Qf,g:sd,G:fd,H:Kf,I:Yf,j:Xf,L:Zf,m:Jf,M:ed,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:hd,s:yd,S:td,u:rd,U:nd,V:id,w:ad,W:ld,x:null,X:null,y:ud,Y:cd,Z:dd,"%":pd},w={a:function(e,t,r){var n=p.exec(t.slice(r));return n?(e.w=h.get(n[0].toLowerCase()),r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=d.get(n[0].toLowerCase()),r+n[0].length):-1},b:function(e,t,r){var n=g.exec(t.slice(r));return n?(e.m=v.get(n[0].toLowerCase()),r+n[0].length):-1},B:function(e,t,r){var n=y.exec(t.slice(r));return n?(e.m=m.get(n[0].toLowerCase()),r+n[0].length):-1},c:function(e,r,n){return O(e,t,r,n)},d:gf,e:gf,f:kf,g:pf,G:df,H:bf,I:bf,j:vf,L:Sf,m:mf,M:xf,p:function(e,t,r){var n=s.exec(t.slice(r));return n?(e.p=c.get(n[0].toLowerCase()),r+n[0].length):-1},q:yf,Q:jf,s:_f,S:wf,u:uf,U:sf,V:cf,w:lf,W:ff,x:function(e,t,n){return O(e,r,t,n)},X:function(e,t,r){return O(e,n,t,r)},y:pf,Y:df,Z:hf,"%":Of};function S(e,t){return function(r){var n,o,i,a=[],l=-1,u=0,s=e.length;for(r instanceof Date||(r=new Date(+r));++l<s;)37===e.charCodeAt(l)&&(a.push(e.slice(u,l)),null!=(o=Qc[n=e.charAt(++l)])?n=e.charAt(++l):o="e"===n?" ":"0",(i=t[n])&&(n=i(r,o)),a.push(n),u=l+1);return a.push(e.slice(u,l)),a.join("")}}function k(e,t){return function(r){var n,o,i=Kc(1900,void 0,1);if(O(i,e,r+="",0)!=r.length)return null;if("Q"in i)return new Date(i.Q);
2if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(n=Gc(Kc(i.y,0,1))).getUTCDay(),n=o>4||0===o?Tc.ceil(n):Tc(n),n=bc.offset(n,7*(i.V-1)),i.y=n.getUTCFullYear(),i.m=n.getUTCMonth(),i.d=n.getUTCDate()+(i.w+6)%7):(o=(n=Vc(Kc(i.y,0,1))).getDay(),n=o>4||0===o?kc.ceil(n):kc(n),n=vc.offset(n,7*(i.V-1)),i.y=n.getFullYear(),i.m=n.getMonth(),i.d=n.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?Gc(Kc(i.y,0,1)).getUTCDay():Vc(Kc(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,Gc(i)):Vc(i)}}function O(e,t,r,n){for(var o,i,a=0,l=t.length,u=r.length;a<l;){if(n>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=w[o in Qc?t.charAt(a++):o])||(n=i(e,r,n))<0)return-1}else if(o!=r.charCodeAt(n++))return-1}return n}return b.x=S(r,b),b.X=S(n,b),b.c=S(t,b),x.x=S(r,x),x.X=S(n,x),x.c=S(t,x),{format:function(e){var t=S(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=k(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+="",x);return t.toString=function(){return e},t},utcParse:function(e){var t=k(e+="",!0);return t.toString=function(){return e},t}}}(e),Xc=Yc.format,Yc.parse,Zc=Yc.utcFormat,Yc.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],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"]});Array.prototype.slice;function Id(e){return"object"===typeof e&&"length"in e?e:Array.from(e)}function zd(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function Rd(e,t){return e[t]}function Bd(e){const t=[];return t.key=e,t}var Fd=r(539),$d=r.n(Fd),Ud=r(6745),Hd=r.n(Ud),Wd=r(3538),qd=r.n(Wd),Vd=r(9853),Gd=r.n(Vd),Kd=r(8210),Yd=r.n(Kd);function Xd(e){return function(e){if(Array.isArray(e))return Zd(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Zd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Zd(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Zd(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Qd=function(e){return e},Jd={"@@functional/placeholder":!0},ep=function(e){return e===Jd},tp=function(e){return function t(){return 0===arguments.length||1===arguments.length&&ep(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},rp=function e(t,r){return 1===t?r:tp((function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==Jd})).length;return a>=t?r.apply(void 0,o):e(t-a,tp((function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=o.map((function(e){return ep(e)?t.shift():e}));return r.apply(void 0,Xd(i).concat(t))})))}))},np=function(e){return rp(e.length,e)},op=function(e,t){for(var r=[],n=e;n<t;++n)r[n-e]=n;return r},ip=np((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),ap=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(!t.length)return Qd;var n=t.reverse(),o=n[0],i=n.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}},lp=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},up=function(e){var t=null,r=null;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return t&&o.every((function(e,r){return e===t[r]}))?r:(t=o,r=e.apply(void 0,o))}};var sp=np((function(e,t,r){var n=+e;return n+r*(+t-n)})),cp=np((function(e,t,r){var n=t-+e;return(r-e)/(n=n||1/0)})),fp=np((function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))}));const dp={rangeStep:function(e,t,r){for(var n=new(Yd())(e),o=0,i=[];n.lt(t)&&o<1e5;)i.push(n.toNumber()),n=n.add(r),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new(Yd())(e).abs().log(10).toNumber())+1},interpolateNumber:sp,uninterpolateNumber:cp,uninterpolateTruncation:fp};function pp(e){return function(e){if(Array.isArray(e))return mp(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||yp(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hp(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"===typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(n=(a=l.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(u){o=!0,i=u}finally{try{n||null==l.return||l.return()}finally{if(o)throw i}}return r}(e,t)||yp(e,t)||function(){throw new TypeError("Invalid attempt to de
2structure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function yp(e,t){if(e){if("string"===typeof e)return mp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mp(e,t):void 0}}function mp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function gp(e){var t=hp(e,2),r=t[0],n=t[1],o=r,i=n;return r>n&&(o=n,i=r),[o,i]}function vp(e,t,r){if(e.lte(0))return new(Yd())(0);var n=dp.getDigitCount(e.toNumber()),o=new(Yd())(10).pow(n),i=e.div(o),a=1!==n?.05:.1,l=new(Yd())(Math.ceil(i.div(a).toNumber())).add(r).mul(a).mul(o);return t?l:new(Yd())(Math.ceil(l))}function bp(e,t,r){var n=1,o=new(Yd())(e);if(!o.isint()&&r){var i=Math.abs(e);i<1?(n=new(Yd())(10).pow(dp.getDigitCount(e)-1),o=new(Yd())(Math.floor(o.div(n).toNumber())).mul(n)):i>1&&(o=new(Yd())(Math.floor(e)))}else 0===e?o=new(Yd())(Math.floor((t-1)/2)):r||(o=new(Yd())(Math.floor(e)));var a=Math.floor((t-1)/2);return ap(ip((function(e){return o.add(new(Yd())(e-a).mul(n)).toNumber()})),op)(0,t)}function xp(e,t,r,n){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new(Yd())(0),tickMin:new(Yd())(0),tickMax:new(Yd())(0)};var i,a=vp(new(Yd())(t).sub(e).div(r-1),n,o);i=e<=0&&t>=0?new(Yd())(0):(i=new(Yd())(e).add(t).div(2)).sub(new(Yd())(i).mod(a));var l=Math.ceil(i.sub(e).div(a).toNumber()),u=Math.ceil(new(Yd())(t).sub(i).div(a).toNumber()),s=l+u+1;return s>r?xp(e,t,r,n,o+1):(s<r&&(u=t>0?u+(r-s):u,l=t>0?l:l+(r-s)),{step:a,tickMin:i.sub(new(Yd())(l).mul(a)),tickMax:i.add(new(Yd())(u).mul(a))})}var wp=up((function(e){var t=hp(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=hp(gp([r,n]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0){var c=s===1/0?[u].concat(pp(op(0,o-1).map((function(){return 1/0})))):[].concat(pp(op(0,o-1).map((function(){return-1/0}))),[s]);return r>n?lp(c):c}if(u===s)return bp(u,o,i);var f=xp(u,s,a,i),d=f.step,p=f.tickMin,h=f.tickMax,y=dp.rangeStep(p,h.add(new(Yd())(.1).mul(d)),d);return r>n?lp(y):y})),Sp=(up((function(e){var t=hp(e,2),r=t[0],n=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),l=hp(gp([r,n]),2),u=l[0],s=l[1];if(u===-1/0||s===1/0)return[r,n];if(u===s)return bp(u,o,i);var c=vp(new(Yd())(s).sub(u).div(a-1),i,0),f=ap(ip((function(e){return new(Yd())(u).add(new(Yd())(e).mul(c)).toNumber()})),op)(0,a).filter((function(e){return e>=u&&e<=s}));return r>n?lp(f):f})),up((function(e,t){var r=hp(e,2),n=r[0],o=r[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=hp(gp([n,o]),2),l=a[0],u=a[1];if(l===-1/0||u===1/0)return[n,o];if(l===u)return[l];var s=Math.max(t,2),c=vp(new(Yd())(u).sub(l).div(s-1),i,0),f=[].concat(pp(dp.rangeStep(new(Yd())(l),new(Yd())(u).sub(new(Yd())(.99).mul(c)),c)),[u]);return n>o?lp(f):f}))),kp=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Op(e){return Op="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},Op(e)}function jp(){return jp=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},jp.apply(this,arguments)}function _p(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}
2finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Ep(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ep(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ep(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pp(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Cp(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,Lp(n.key),n)}}function Mp(e,t,r){return t=Ap(t),function(e,t){if(t&&("object"===Op(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Tp()?Reflect.construct(t,r||[],Ap(e).constructor):t.apply(e,r))}function Tp(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Tp=function(){return!!e})()}function Ap(e){return Ap=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ap(e)}function Np(e,t){return Np=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Np(e,t)}function Dp(e,t,r){return(t=Lp(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Lp(e){var t=function(e,t){if("object"!=Op(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Op(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Op(t)?t:t+""}var Ip=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Mp(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Np(e,t)}(r,e),n=r,o=[{key:"render",value:function(){var e=this.props,r=e.offset,n=e.layout,o=e.width,i=e.dataKey,a=e.data,l=e.dataPointFormatter,u=e.xAxis,s=e.yAxis,c=Pp(e,kp),f=vr(c,!1);"x"===this.props.direction&&"number"!==u.type&&Dr(!1);var d=a.map((function(e){var a=l(e,i),c=a.x,d=a.y,p=a.value,h=a.errorVal;if(!h)return null;var y,m,g=[];if(Array.isArray(h)){var v=_p(h,2);y=v[0],m=v[1]}else y=m=h;if("vertical"===n){var b=u.scale,x=d+r,w=x+o,S=x-o,k=b(p-y),O=b(p+m);g.push({x1:O,y1:w,x2:O,y2:S}),g.push({x1:k,y1:x,x2:O,y2:x}),g.push({x1:k,y1:w,x2:k,y2:S})}else if("horizontal"===n){var j=s.scale,_=c+r,E=_-o,P=_+o,C=j(p-y),M=j(p+m);g.push({x1:E,y1:M,x2:P,y2:M}),g.push({x1:_,y1:C,x2:_,y2:M}),g.push({x1:E,y1:C,x2:P,y2:C})}return t.createElement(Ur,jp({className:"recharts-errorBar",key:"bar-".concat(g.map((function(e){return"".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)})))},f),g.map((function(e){return t.createElement("line",jp({},e,{key:"line-".concat(e.x1,"-").concat(e.x2,"-").concat(e.y1,"-").concat(e.y2)}))})))}));return t.createElement(Ur,{className:"recharts-errorBars"},d)}}],o&&Cp(n.prototype,o),i&&Cp(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);function zp(e){return zp="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},zp(e)}function Rp(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 Bp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Rp(Object(r),!0).forEach((function(t){Fp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fp(e,t,r){return t=function(e){var t=function(e,t){if("object"!=zp(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=zp(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==zp(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Dp(Ip,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"}),Dp(Ip,"displayName","ErrorBar");var $p=function(e){var t=e.children,r=e.formattedGraphicalItems,n=e.legendWidth,o=e.legendContent,i=hr(t,Vo);if(!i)return null;var a,l=Vo.defaultProps,u=void 0!==l?Bp(Bp({},l),i.props):{};return a=i.props&&i.props.payload?i.props&&i.props.payload:"children"===o?(r||[]).reduce((function(e,t){var r=t.item,n=t.props,o=n.sectors||n.data||[];return e.concat(o.map((function(e){return{type:i.props.iconType||r.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,r=t.type.defaultProps,n=void 0!==r?Bp(Bp({},r),t.props):{},o=n.dataKey,i=n.name,a=n.legendType;return{inactive:n.hide,dataKey:o,type:u.iconType||a||"square",color:Xp(t),value:i||o,payload:n}})),Bp(Bp(Bp({},u),Vo.getWithHeight(i,n)),{},{payload:a,item:i})};function Up(e){return Up="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},Up(e)}function Hp(e){return function(e){if(Array.isArray(e))return Wp(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Wp(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wp(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wp(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function qp(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 Vp(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qp(Object(r),!0).forEach((function(t){Gp(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qp(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gp(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Up(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Up(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Up(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kp(e,t,r){return Wt()(e)||Wt()(t)?r:Lt(t)?Ct()(e,t,r):Vt()(t)?t(e):r}function Yp(e,t,r,n){var o=qd()(e,(function(e){return Kp(e,t)}));if("number"===r){var i=o.filter((function(e){return Dt(e)||parseFloat(e)}));return i.length?[Hd()(i),$d()(i)]:[1/0,-1/0]}return(n?o.filter((function(e){return!Wt()(e)})):o).map((function(e){return Lt(e)||e instanceof Date?e:""}))}var Xp=function(e){var t,r,n=e.type.displayName,o=null!==(t=e.type)&&void 0!==t&&t.defaultProps?Vp(Vp({},e.type.defaultProps),e.props):e.props,i=o.stroke,a=o.fill;switch(n){case"Line":r=i;break;case"Area":case"Radar":r=i&&"none"!==i?i:a;break;default:r=a}return r},Zp=function(e,t,r,n,o){var i=pr(t.props.children,Ip).filter((function(e){return function(e,t,r){return!!Wt()(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===r?"xAxis"===t:"y"!==r||"yAxis"===t)}(n,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var n=Kp(t,r);if(Wt()(n))return e;var o=Array.isArray(n)?[Hd()(n),$d()(n)]:[n,n],i=a.reduce((function(e,r){var n=Kp(t,r,0),i=o[0]-Math.abs(Array.isArray(n)?n[0]:n),a=o[1]+Math.abs(Array.isArray(n)?n[1]:n);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},Qp=function(e,t,r,n,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===r&&i&&Zp(e,t,i,n)||Yp(e,i,r,o)}));if("number"===r)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var r=0,n=t.length;r<n;r++)a[t[r]]||(a[t[r]]=!0,e.push(t[r]));return e}),[])},Jp=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},eh=function(e,t,r,n){if(n)return e.map((function(e){return e.coordinate}));var o,i,a=e.map((function(e){return e.coordinate===t&&(o=!0),e.coordinate===r&&(i=!0),e.coordinate}));return o||a.push(t),i||a.push(r),a},th=function(e,t,r){if(!e)return null;var n=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,l="scaleBand"===e.realScaleType?n.bandwidth()/2:2,u=(t||r)&&"category"===i&&n.bandwidth?n.bandwidth()/l:0;return u="angleAxis"===e.axisType&&(null===a||void 0===a?void 0:a.length)>=2?2*At(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:n(t)+u,value:e,offset:u}})).filter((function(e){return!Et()(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:n(e)+u,value:e,index:t,offset:u}})):n.ticks&&!r?n.ticks(e.tickCount).map((function(e){return{coordinate:n(e)+u,value:e,offset:u}})):n.domain().map((function(e,t){return{coordinate:n(e)+u,value:o?o[e]:e,index:t,offset:u}}))},rh=new WeakMap,nh=function(e,t){if("function"!==typeof t)return e;rh.has(e)||rh.set(e,new WeakMap);var r=rh.get(e);if(r.has(t))return r.get(t);var n=function(){e.apply(void 0,arguments),t.apply(void 0,arguments)};return r.set(t,n),n},oh=1e-4,ih={sign:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0,a=0;a<t;
2++a){var l=Et()(e[a][r][1])?e[a][r][0]:e[a][r][1];l>=0?(e[a][r][0]=o,e[a][r][1]=o+l,o=e[a][r][1]):(e[a][r][0]=i,e[a][r][1]=i+l,i=e[a][r][1])}},expand:function(e,t){if((n=e.length)>0){for(var r,n,o,i=0,a=e[0].length;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}Ld(e,t)}},none:Ld,silhouette:function(e,t){if((r=e.length)>0){for(var r,n=0,o=e[t[0]],i=o.length;n<i;++n){for(var a=0,l=0;a<r;++a)l+=e[a][n][1]||0;o[n][1]+=o[n][0]=-l/2}Ld(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(n=(r=e[t[0]]).length)>0){for(var r,n,o,i=0,a=1;a<n;++a){for(var l=0,u=0,s=0;l<o;++l){for(var c=e[t[l]],f=c[a][1]||0,d=(f-(c[a-1][1]||0))/2,p=0;p<l;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,s+=d*f}r[a-1][1]+=r[a-1][0]=i,u&&(i-=s/u)}r[a-1][1]+=r[a-1][0]=i,Ld(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var r=0,n=e[0].length;r<n;++r)for(var o=0,i=0;i<t;++i){var a=Et()(e[i][r][1])?e[i][r][0]:e[i][r][1];a>=0?(e[i][r][0]=o,e[i][r][1]=o+a,o=e[i][r][1]):(e[i][r][0]=0,e[i][r][1]=0)}}},ah=function(e,t,r){var n=t.map((function(e){return e.props.dataKey})),o=ih[r],i=function(){var e=ro([]),t=zd,r=Ld,n=Rd;function o(o){var i,a,l=Array.from(e.apply(this,arguments),Bd),u=l.length,s=-1;for(const e of o)for(i=0,++s;i<u;++i)(l[i][s]=[0,+n(e,l[i].key,s,o)]).data=e;for(i=0,a=Id(t(l));i<u;++i)l[a[i]].index=i;return r(l,a),l}return o.keys=function(t){return arguments.length?(e="function"===typeof t?t:ro(Array.from(t)),o):e},o.value=function(e){return arguments.length?(n="function"===typeof e?e:ro(+e),o):n},o.order=function(e){return arguments.length?(t=null==e?zd:"function"===typeof e?e:ro(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(r=null==e?Ld:e,o):r},o}().keys(n).value((function(e,t){return+Kp(e,t,0)})).order(zd).offset(o);return i(e)};function lh(e){var t=e.axis,r=e.ticks,n=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Wt()(o[t.dataKey])){var l=$t(r,"value",o[t.dataKey]);if(l)return l.coordinate+n/2}return r[i]?r[i].coordinate+n/2:null}var u=Kp(o,Wt()(a)?t.dataKey:a);return Wt()(u)?null:t.scale(u)}var uh=function(e){var t=e.axis,r=e.ticks,n=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return r[a]?r[a].coordinate+n:null;var l=Kp(i,t.dataKey,t.domain[a]);return Wt()(l)?null:t.scale(l)-o/2+n},sh=function(e,t,r){return Object.keys(e).reduce((function(n,o){var i=e[o].stackedData.reduce((function(e,n){var o=n.slice(t,r+1).reduce((function(e,t){return[Hd()(t.concat([e[0]]).filter(Dt)),$d()(t.concat([e[1]]).filter(Dt))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],n[0]),Math.max(i[1],n[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},ch=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,fh=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,dh=function(e,t,r){if(Vt()(e))return e(t,r);
2if(!Array.isArray(e))return t;var n=[];if(Dt(e[0]))n[0]=r?e[0]:Math.min(e[0],t[0]);else if(ch.test(e[0])){var o=+ch.exec(e[0])[1];n[0]=t[0]-o}else Vt()(e[0])?n[0]=e[0](t[0]):n[0]=t[0];if(Dt(e[1]))n[1]=r?e[1]:Math.max(e[1],t[1]);else if(fh.test(e[1])){var i=+fh.exec(e[1])[1];n[1]=t[1]+i}else Vt()(e[1])?n[1]=e[1](t[1]):n[1]=t[1];return n},ph=function(e,t,r){if(e&&e.scale&&e.scale.bandwidth){var n=e.scale.bandwidth();if(!r||n>0)return n}if(e&&t&&t.length>=2){for(var o=Ar()(t,(function(e){return e.coordinate})),i=1/0,a=1,l=o.length;a<l;a++){var u=o[a],s=o[a-1];i=Math.min((u.coordinate||0)-(s.coordinate||0),i)}return i===1/0?0:i}return r?void 0:0},hh=function(e,t,r){return e&&e.length?Gd()(e,Ct()(r,"type.defaultProps.domain"))?t:e:t},yh=function(e,t){var r=e.type.defaultProps?Vp(Vp({},e.type.defaultProps),e.props):e.props,n=r.dataKey,o=r.name,i=r.unit,a=r.formatter,l=r.tooltipType,u=r.chartType,s=r.hide;return Vp(Vp({},vr(e,!1)),{},{dataKey:n,unit:i,formatter:a,name:o||n,color:Xp(e),value:Kp(t,n),type:l,payload:t,chartType:u,hide:s})};function mh(e){return mh="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},mh(e)}function gh(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 vh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gh(Object(r),!0).forEach((function(t){bh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function bh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=mh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mh(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var xh=["Webkit","Moz","O","ms"];function wh(e){return wh="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},wh(e)}function Sh(){return Sh=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},Sh.apply(this,arguments)}function kh(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 Oh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?kh(Object(r),!0).forEach((function(t){Mh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function jh(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,Th(n.key),n)}}function _h(e,t,r){return t=Ph(t),function(e,t){if(t&&("object"===wh(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Eh()?Reflect.construct(t,r||[],Ph(e).constructor):t.apply(e,r))}function Eh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Eh=function(){return!!e})()}
2function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ph(e)}function Ch(e,t){return Ch=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ch(e,t)}function Mh(e,t,r){return(t=Th(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Th(e){var t=function(e,t){if("object"!=wh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==wh(t)?t:t+""}var Ah=function(e){return e.changedTouches&&!!e.changedTouches.length},Nh=function(e){function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Mh(t=_h(this,r,[e]),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),Mh(t,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),Mh(t,"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1},(function(){var e=t.props,r=e.endIndex,n=e.onDragEnd,o=e.startIndex;null===n||void 0===n||n({endIndex:r,startIndex:o})})),t.detachDragEndListener()})),Mh(t,"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),Mh(t,"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),Mh(t,"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),Mh(t,"handleSlideDragStart",(function(e){var r=Ah(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:r.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(t,"startX"),endX:t.handleTravellerDragStart.bind(t,"endX")},t.state={},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ch(e,t)}(r,e),n=r,o=[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(e){var t=e.startX,n=e.endX,o=this.state.scaleValues,i=this.props,a=i.gap,l=i.data.length-1,u=Math.min(t,n),s=Math.max(t,n),c=r.getIndexInRange(o,u),f=r.getIndexInRange(o,s);return{startIndex:c-c%a,endIndex:f===l?l:f-f%a}}},{key:"getTextOfTick",value:function(e){var t=this.props,r=t.data,n=t.tickFormatter,o=t.dataKey,i=Kp(r[e],o,e);return Vt()(n)?n(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,r=t.slideMoveStartX,n=t.startX,o=t.endX,i=this.props,a=i.x,l=i.width,u=i.travellerWidth,s=i.startIndex,c=i.endIndex,f=i.onChange,d=e.pageX-r;d>0?d=Math.min(d,a+l-u-o,a+l-u-n):d<0&&(d=Math.max(d,a-n,a-o));var p=this.getIndex({startX:n+d,endX:o+d});p.startIndex===s&&p.endIndex===c||!f||f(p),this.setState({startX:n+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var r=Ah(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:r.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t=this.state,r=t.brushMoveStartX,n=t.movingTravellerId,o=t.endX,i=t.startX,a=this.state[n],l=this.props,u=l.x,s=l.width,c=l.travellerWidth,f=l.onChange,d=l.gap,p=l.data,h={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+s-c-a):y<0&&(y=Math.max(y,u-a)),h[n]=a+y;var m=this.getIndex(h),g=m.startIndex,v=m.endIndex;this.setState(Mh(Mh({},n,a+y),"brushMoveStartX",e.pageX),(function(){f&&function(){var e=p.length-1;return"startX"===n&&(o>i?g%d===0:v%d===0)||o<i&&v===e||"endX"===n&&(o>i?v%d===0:g%d===0)||o>i&&v===e}()&&f(m)}))}},{key:"handleTravellerMoveKeyboard",value:function(e,t){var r=this,n=this.state,o=n.scaleValues,i=n.startX,a=n.endX,l=this.state[t],u=o.indexOf(l);if(-1!==u){var s=u+e;if(!(-1===s||s>=o.length)){var c=o[s];"startX"===t&&c>=a||"endX"===t&&c<=i||this.setState(Mh({},t,c),(function(){r.props.onChange(r.getIndex({startX:r.state.startX,endX:r.
vendor: 10,157 bytes, line 2
2state.endX}))}))}}}},{key:"renderBackground",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.fill,l=e.stroke;return t.createElement("rect",{stroke:l,fill:a,x:r,y:n,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.data,l=e.children,u=e.padding,s=t.Children.only(l);return s?t.cloneElement(s,{x:r,y:n,width:o,height:i,margin:u,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var o,i,a=this,l=this.props,u=l.y,s=l.travellerWidth,c=l.height,f=l.traveller,d=l.ariaLabel,p=l.data,h=l.startIndex,y=l.endIndex,m=Math.max(e,this.props.x),g=Oh(Oh({},vr(this.props,!1)),{},{x:m,y:u,width:s,height:c}),v=d||"Min value: ".concat(null===(o=p[h])||void 0===o?void 0:o.name,", Max value: ").concat(null===(i=p[y])||void 0===i?void 0:i.name);return t.createElement(Ur,{tabIndex:0,role:"slider","aria-label":v,"aria-valuenow":e,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],onKeyDown:function(e){["ArrowLeft","ArrowRight"].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),a.handleTravellerMoveKeyboard("ArrowRight"===e.key?1:-1,n))},onFocus:function(){a.setState({isTravellerFocused:!0})},onBlur:function(){a.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},r.renderTraveller(f,g))}},{key:"renderSlide",value:function(e,r){var n=this.props,o=n.y,i=n.height,a=n.stroke,l=n.travellerWidth,u=Math.min(e,r)+l,s=Math.max(Math.abs(r-e)-l,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:u,y:o,width:s,height:i})}},{key:"renderText",value:function(){var e=this.props,r=e.startIndex,n=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,l=e.stroke,u=this.state,s=u.startX,c=u.endX,f={pointerEvents:"none",fill:l};return t.createElement(Ur,{className:"recharts-brush-texts"},t.createElement(Cl,Sh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(s,c)-5,y:o+i/2},f),this.getTextOfTick(r)),t.createElement(Cl,Sh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(s,c)+a+5,y:o+i/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,r=e.data,n=e.className,o=e.children,i=e.x,a=e.y,l=e.width,u=e.height,s=e.alwaysShowText,c=this.state,f=c.startX,d=c.endX,p=c.isTextActive,h=c.isSlideMoving,y=c.isTravellerMoving,m=c.isTravellerFocused;if(!r||!r.length||!Dt(i)||!Dt(a)||!Dt(l)||!Dt(u)||l<=0||u<=0)return null;var g=wt("recharts-brush",n),v=1===t.Children.count(o),b=function(e,t){if(!e)return null;var r=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),n=xh.reduce((function(e,n){return vh(vh({},e),{},bh({},n+r,t))}),{});return n[e]=t,n}("userSelect","none");return t.createElement(Ur,{className:g,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:b},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||y||m||s)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(e){var r=e.x,n=e.y,o=e.width,i=e.height,a=e.stroke,l=Math.floor(n+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:r,y:n,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:r+1,y1:l,x2:r+o-1,y2:l,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:r+1,y1:l+2,x2:r+o-1,y2:l+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):Vt()(e)?e(n):r.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var r=e.data,n=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,l=e.startIndex,u=e.endIndex;if(r!==t.prevData||a!==t.prevUpdateId)return Oh({prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n},r&&r.length?function(e){var t=e.data,r=e.startIndex,n=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var l=t.length,u=Va().domain(Mr()(0,l)).range([o,o+i-a]),s=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(n),scale:u,scaleValues:s}}({data:r,width:n,x:o,travellerWidth:i,startIndex:l,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(n!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+n-i]);var s=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:r,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:n,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:s}}return null}},{key:"getIndexInRange",value:function(e,t){for(var r=0,n=e.length-1;n-r>1;){var o=Math.floor((r+n)/2);e[o]>t?n=o:r=o}return t>=e[n]?n:r}}],o&&jh(n.prototype,o),i&&jh(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);function Dh(e){return Dh="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},Dh(e)}function Lh(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 Ih(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Lh(Object(r),!0).forEach((function(t){zh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Dh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Dh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dh(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Mh(Nh,"displayName","Brush"),Mh(Nh,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Rh=Math.PI/180,Bh=function(e){return 180*e/Math.PI},Fh=function(e,t,r,n){return{x:e+Math.cos(-Rh*n)*r,y:t+Math.sin(-Rh*n)*r}},$h=function(e,t){var r=e.x,n=e.y,o=t.cx,i=t.cy,a=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(r-o,2)+Math.pow(n-i,2))}({x:r,y:n},{x:o,y:i});if(a<=0)return{radius:a};var l=(r-o)/a,u=Math.acos(l);return n>i&&(u=2*Math.PI-u),{radius:a,angle:Bh(u),angleInRadian:u}},Uh=function(e,t){var r=t.startAngle,n=t.endAngle,o=Math.floor(r/360),i=Math.floor(n/360);return e+360*Math.min(o,i)},Hh=function(e,t){var r=e.x,n=e.y,o=$h({x:r,y:n},t),i=o.radius,a=o.angle,l=t.innerRadius,u=t.outerRadius;if(i<l||i>u)return!1;if(0===i)return!0;var s,c=function(e){var t=e.startAngle,r=e.endAngle,n=Math.floor(t/360),o=Math.floor(r/360),i=Math.min(n,o);return{startAngle:t-360*i,endAngle:r-360*i}}(t),f=c.startAngle,d=c.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;s=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;s=p>=d&&p<=f}return s?Ih(Ih({},t),{},{radius:i,angle:Uh(p,t)}):null};function Wh(e){return Wh="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},Wh(e)}var qh=["offset"];function Vh(e){return function(e){if(Array.isArray(e))return Gh(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Gh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Gh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Kh(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Yh(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 Xh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yh(Object(r),!0).forEach((function(t){Zh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zh(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Wh(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wh(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qh(){return Qh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qh.apply(this,arguments)}var Jh=function(e,r,n){var o,i,a=e.position,l=e.viewBox,u=e.offset,s=e.className,c=l,f=c.cx,d=c.cy,p=c.innerRadius,h=c.outerRadius,y=c.startAngle,m=c.endAngle,g=c.clockWise,v=(p+h)/2,b=function(e,t){return At(t-e)*Math.min(Math.abs(t-e),360)}(y,m),x=b>=0?1:-1;"insideStart"===a?(o=y+x*u,i=g):"insideEnd"===a?(o=m-x*u,i=!g):"end"===a&&(o=m+x*u,i=g),i=b<=0?i:!i;var w=Fh(f,d,v,o),S=Fh(f,d,v,o+359*(i?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n    A").concat(v,",").concat(v,",0,1,").concat(i?0:1,",\n    ").concat(S.x,",").concat(S.y),O=Wt()(e.id)?zt("recharts-radial-line-"):e.id;return t.createElement("text",Qh({},n,{dominantBaseline:"central",className:wt("recharts-radial-bar-label",s)}),t.createElement("defs",null,t.createElement("path",{id:O,d:k})),t.createElement("textPath",{xlinkHref:"#".concat(O)},r))};function ey(e){var r,n=e.offset,o=Xh({offset:void 0===n?5:n},Kh(e,qh)),i=o.viewBox,a=o.position,l=o.value,u=o.children,s=o.content,c=o.className,f=void 0===c?"":c,d=o.textBreakAll;if(!i||Wt()(l)&&Wt()(u)&&!(0,t.isValidElement)(s)&&!Vt()(s))return null;if((0,t.isValidElement)(s))return(0,t.cloneElement)(s,o);if(Vt()(s)){if(r=(0,t.createElement)(s,o),(0,t.isValidElement)(r))return r}else r=function(e){var t=e.value,r=e.formatter,n=Wt()(e.children)?t:e.children;return Vt()(r)?r(n):n}(o);var p=function(e){return"cx"in e&&Dt(e.cx)}(i),h=vr(o,!0);if(p&&("insideStart"===a||"insideEnd"===a||"end"===a))return Jh(o,r,h);var y=p?function(e){var t=e.viewBox,r=e.offset,n=e.position,o=t,i=o.cx,a=o.cy,l=o.innerRadius,u=o.outerRadius,s=(o.startAngle+o.endAngle)/2;if("outside"===n){var c=Fh(i,a,u+r,s),f=c.x;return{x:f,y:c.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===n)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=Fh(i,a,(l+u)/2,s);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(o):function(e){var t=e.viewBox,r=e.parentViewBox,n=e.offset,o=e.position,i=t,a=i.x,l=i.y,u=i.width,s=i.height,c=s>=0?1:-1,f=c*n,d=c>0?"end":"start",p=c>0?"start":"end",h=u>=0?1:-1,y=h*n,m=h>0?"end":"start",g=h>0?"start":"end";if("top"===o)return Xh(Xh({},{x:a+u/2,y:l-c*n,textAnchor:"middle",verticalAnchor:d}),r?{height:Math.max(l-r.y,0),width:u}:{});if("bottom"===o)return Xh(Xh({},{x:a+u/2,y:l+s+f,textAnchor:"middle",verticalAnchor:p}),r?{height:Math.max(r.y+r.height-(l+s),0),width:u}:{});if("left"===o){var v={x:a-y,y:l+s/2,textAnchor:m,verticalAnchor:"middle"};return Xh(Xh({},v),r?{width:Math.max(v.x-r.x,0),height:s}:{})}if("right"===o){var b={x:a+u+y,y:l+s/2,textAnchor:g,verticalAnchor:"middle"};return Xh(Xh({},b),r?{width:Math.max(r.x+r.width-b.x,0),height:s}:{})}var x=r?{width:u,height:s}:{};return"insideLeft"===o?Xh({x:a+y,y:l+s/2,textAnchor:g,verticalAnchor:"middle"},x):"insideRight"===o?Xh({x:a+u-y,y:l+s/2,textAnchor:m,verticalAnchor:"middle"},x):"insideTop"===o?Xh({x:a+u/2,y:l+f,textAnchor:"middle",verticalAnchor:p},x):"insideBottom"===o?Xh({x:a+u/2,y:l+s-f,textAnchor:"middle",verticalAnchor:d},x):"insideTopLeft"===o?Xh({x:a+y,y:l+f,textAnchor:g,verticalAnchor:p},x):"insideTopRight"===o?Xh({x:a+u-y,y:l+f,textAnchor:m,verticalAnchor:p},x):"insideBottomLeft"===o?Xh({x:a+y,y:l+s-f,textAnchor:g,verticalAnchor:d},x):"insideBottomRight"===o?Xh({x:a+u-y,y:l+s-f,textAnchor:m,verticalAnchor:d},x):Kt()(o)&&(Dt(o.x)||Nt(o.x))&&(Dt(o.y)||Nt(o.y))?Xh({x:a+Rt(o.x,u),y:l+Rt(o.y,s),textAnchor:"end",verticalAnchor:"end"},x):Xh({x:a+u/2,y:l+s/2,textAnchor:"middle",verticalAnchor:"middle"},x)}(o);return t.createElement(Cl,Qh({className:wt("recharts-label",f)},h,y,{breakAll:d}),r)}ey.displayName="Label";var ty=function(e){var t=e.cx,r=e.cy,n=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,l=e.radius,u=e.innerRadius,s=e.outerRadius,c=e.x,f=e.y,d=e.top,p=e.left,h=e.width,y=e.height,m=e.clockWise,g=e.labelViewBox;if(g)return g;if(Dt(h)&&Dt(y)){if(Dt(c)&&Dt(f))return{x:c,y:f,width:h,height:y};if(Dt(d)&&Dt(p))return{x:d,y:p,width:h,height:y}}return Dt(c)&&Dt(f)?{x:c,y:f,width:0,height:0}:Dt(t)&&Dt(r)?{cx:t,cy:r,startAngle:o||n||0,endAngle:i||n||0,innerRadius:u||0,outerRadius:s||l||a||0,clockWise:m}:e.viewBox?e.viewBox:{}};ey.parseViewBox=ty,ey.renderCallByParent=function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var o=e.children,i=ty(e),a=pr(o,ey).map((function(e,n){return(0,t.cloneElement)(e,{viewBox:r||i,key:"label-".concat(n)})}));if(!n)return a;var l=function(e,r){return e?!0===e?t.createElement(ey,{key:"label-implicit",viewBox:r}):Lt(e)?t.createElement(ey,{key:"label-implicit",viewBox:r,value:e}):(0,t.isValidElement)(e)?e.type===ey?(0,t.cloneElement)(e,{key:"label-implicit",viewBox:r}):t.createElement(ey,{key:"label-implicit",content:e,viewBox:r}):Vt()(e)?t.createElement(ey,{key:"label-implicit",content:e,viewBox:r}):Kt()(e)?t.createElement(ey,Qh({viewBox:r},e,{key:"label-implicit"})):null:null}(e.label,r||i);return[l].concat(Vh(a))};var ry=function(e,t){var r=e.alwaysShow,n=e.ifOverflow;return r&&(n="extendDomain"),n===t},ny=r(1733),oy=r.n(ny),iy=r(7002),ay=r.n(iy),ly=function(e){return null};ly.displayName="Cell";var uy=r(4065),sy=r.n(uy);function cy(e){return cy="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},cy(e)}var fy=["valueAccessor"],dy=["data","dataKey","clockWise","id","textBreakAll"];function py(e){return function(e){if(Array.isArray(e))return hy(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return hy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hy(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function yy(){return yy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},yy.apply(this,arguments)}function my(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 gy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?my(Object(r),!0).forEach((function(t){vy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):my(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vy(e,t,r){return t=function(e){var t=function(e,t){if("object"!=cy(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=cy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==cy(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function by(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var xy=function(e){return Array.isArray(e.value)?sy()(e.value):e.value};function wy(e){var r=e.valueAccessor,n=void 0===r?xy:r,o=by(e,fy),i=o.data,a=o.dataKey,l=o.clockWise,u=o.id,s=o.textBreakAll,c=by(o,dy);return i&&i.length?t.createElement(Ur,{className:"recharts-label-list"},i.map((function(e,r){var o=Wt()(a)?n(e,r):Kp(e&&e.payload,a),i=Wt()(u)?{}:{id:"".concat(u,"-").concat(r)};return t.createElement(ey,yy({},vr(e,!0),c,i,{parentViewBox:e.parentViewBox,value:o,textBreakAll:s,viewBox:ey.parseViewBox(Wt()(l)?e:gy(gy({},e),{},{clockWise:l})),key:"label-".concat(r),index:r}))}))):null}wy.displayName="LabelList",wy.renderCallByParent=function(e,r){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&n&&!e.label)return null;var o=pr(e.children,wy).map((function(e,n){return(0,t.cloneElement)(e,{data:r,key:"labelList-".concat(n)})}));return n?[function(e,r){return e?!0===e?t.createElement(wy,{key:"labelList-implicit",data:r}):t.isValidElement(e)||Vt()(e)?t.createElement(wy,{key:"labelList-implicit",data:r,content:e}):Kt()(e)?t.createElement(wy,yy({data:r},e,{key:"labelList-implicit"})):null:null}(e.label,r)].concat(py(o)):o};var Sy=r(2322),ky=r.n(Sy),Oy=r(6361),jy=r.n(Oy);function _y(e){return _y="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},_y(e)}function Ey(){return Ey=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},Ey.apply(this,arguments)}function Py(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Cy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cy(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cy(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function My(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 Ty(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
vendor: 8,070 bytes, line 2
2t%2?My(Object(r),!0).forEach((function(t){Ay(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):My(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ay(e,t,r){return t=function(e){var t=function(e,t){if("object"!=_y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=_y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==_y(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ny=function(e,t,r,n,o){var i,a=r-n;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+r,",").concat(t),i+="L ".concat(e+r-a/2,",").concat(t+o),i+="L ".concat(e+r-a/2-n,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},Dy={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ly=function(e){var r=Ty(Ty({},Dy),e),n=(0,t.useRef)(),o=Py((0,t.useState)(-1),2),i=o[0],a=o[1];(0,t.useEffect)((function(){if(n.current&&n.current.getTotalLength)try{var e=n.current.getTotalLength();e&&a(e)}catch(t){}}),[]);var l=r.x,u=r.y,s=r.upperWidth,c=r.lowerWidth,f=r.height,d=r.className,p=r.animationEasing,h=r.animationDuration,y=r.animationBegin,m=r.isUpdateAnimationActive;if(l!==+l||u!==+u||s!==+s||c!==+c||f!==+f||0===s&&0===c||0===f)return null;var g=wt("recharts-trapezoid",d);return m?t.createElement(ka,{canBegin:i>0,from:{upperWidth:0,lowerWidth:0,height:f,x:l,y:u},to:{upperWidth:s,lowerWidth:c,height:f,x:l,y:u},duration:h,animationEasing:p,isActive:m},(function(e){var o=e.upperWidth,a=e.lowerWidth,l=e.height,u=e.x,s=e.y;return t.createElement(ka,{canBegin:i>0,from:"0px ".concat(-1===i?1:i,"px"),to:"".concat(i,"px 0px"),attributeName:"strokeDasharray",begin:y,duration:h,easing:p},t.createElement("path",Ey({},vr(r,!0),{className:g,d:Ny(u,s,o,a,l),ref:n})))})):t.createElement("g",null,t.createElement("path",Ey({},vr(r,!0),{className:g,d:Ny(l,u,s,c,f)})))};function Iy(e){return Iy="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},Iy(e)}function zy(){return zy=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},zy.apply(this,arguments)}function Ry(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 By(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ry(Object(r),!0).forEach((function(t){Fy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ry(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Fy(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Iy(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Iy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Iy(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var $y=function(e){var t=e.cx,r=e.cy,n=e.radius,o=e.angle,i=e.sign,a=e.isExternal,l=e.cornerRadius,u=e.cornerIsExternal,s=l*(a?1:-1)+n,c=Math.asin(l/s)/Rh,f=u?o:o+i*c,d=u?o-i*c:o;return{center:Fh(t,r,s,f),circleTangency:Fh(t,r,n,f),lineTangency:Fh(t,r,s*Math.cos(c*Rh),d),theta:c}},Uy=function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return At(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),l=i+a,u=Fh(t,r,o,i),s=Fh(t,r,o,l),c="M ".concat(u.x,",").concat(u.y,"\n    A ").concat(o,",").concat(o,",0,\n    ").concat(+(Math.abs(a)>180),",").concat(+(i>l),",\n    ").concat(s.x,",").concat(s.y,"\n  ");if(n>0){var f=Fh(t,r,n,i),d=Fh(t,r,n,l);c+="L ".concat(d.x,",").concat(d.y,"\n            A ").concat(n,",").concat(n,",0,\n            ").concat(+(Math.abs(a)>180),",").concat(+(i<=l),",\n            ").concat(f.x,",").concat(f.y," Z")}else c+="L ".concat(t,",").concat(r," Z");return c},Hy={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},Wy=function(e){var r=By(By({},Hy),e),n=r.cx,o=r.cy,i=r.innerRadius,a=r.outerRadius,l=r.cornerRadius,u=r.forceCornerRadius,s=r.cornerIsExternal,c=r.startAngle,f=r.endAngle,d=r.className;if(a<i||c===f)return null;var p,h=wt("recharts-sector",d),y=a-i,m=Rt(l,y,0,!0);return p=m>0&&Math.abs(c-f)<360?function(e){var t=e.cx,r=e.cy,n=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,l=e.cornerIsExternal,u=e.startAngle,s=e.endAngle,c=At(s-u),f=$y({cx:t,cy:r,radius:o,angle:u,sign:c,cornerRadius:i,cornerIsExternal:l}),d=f.circleTangency,p=f.lineTangency,h=f.theta,y=$y({cx:t,cy:r,radius:o,angle:s,sign:-c,cornerRadius:i,cornerIsExternal:l}),m=y.circleTangency,g=y.lineTangency,v=y.theta,b=l?Math.abs(u-s):Math.abs(u-s)-h-v;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n        a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n      "):Uy({cx:t,cy:r,innerRadius:n,outerRadius:o,startAngle:u,endAngle:s});var x="M ".concat(p.x,",").concat(p.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(d.x,",").concat(d.y,"\n    A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(c<0),",").concat(m.x,",").concat(m.y,"\n    A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(g.x,",").concat(g.y,"\n  ");if(n>0){var w=$y({cx:t,cy:r,radius:n,angle:u,sign:c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),S=w.circleTangency,k=w.lineTangency,O=w.theta,j=$y({cx:t,cy:r,radius:n,angle:s,sign:-c,isExternal:!0,cornerRadius:i,cornerIsExternal:l}),_=j.circleTangency,E=j.lineTangency,P=j.theta,C=l?Math.abs(u-s):Math.abs(u-s)-O-P;if(C<0&&0===i)return"".concat(x,"L").concat(t,",").concat(r,"Z");x+="L".concat(E.x,",").concat(E.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"\n      A").concat(n,",").concat(n,",0,").concat(+(C>180),",").concat(+(c>0),",").concat(S.x,",").concat(S.y,"\n      A").concat(i,",").concat(i,",0,0,").concat(+(c<0),",").concat(k.x,",").concat(k.y,"Z")}else x+="L".concat(t,",").concat(r,"Z");return x}({cx:n,cy:o,innerRadius:i,outerRadius:a,cornerRadius:Math.min(m,y/2),forceCornerRadius:u,cornerIsExternal:s,startAngle:c,endAngle:f}):Uy({cx:n,cy:o,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f}),t.createElement("path",zy({},vr(r,!0),{className:h,d:p,role:"img"}))},qy=["option","shapeType","propTransformer","activeClassName","isActive"];function Vy(e){return Vy="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},Vy(e)}function Gy(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Ky(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 Yy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Ky(Object(r),!0).forEach((function(t){Xy(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ky(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xy(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Vy(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Vy(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Vy(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zy(e,t){return Yy(Yy({},t),e)}function Qy(e){var r=e.shapeType,n=e.elementProps;switch(r){case"rectangle":return t.createElement(Da,n);case"trapezoid":return t.createElement(Ly,n);case"sector":return t.createElement(Wy,n);case"symbols":if(function(e){return"symbols"===e}(r))return t.createElement(xo,n);break;default:return null}}function Jy(e){var r,n=e.option,o=e.shapeType,i=e.propTransformer,a=void 0===i?Zy:i,l=e.activeClassName,u=void 0===l?"recharts-active-shape":l,s=e.isActive,c=Gy(e,qy);if((0,t.isValidElement)(n))r=(0,t.cloneElement)(n,Yy(Yy({},c),function(e){return(0,t.isValidElement)(e)?e.props:e}(n)));else if(Vt()(n))r=n(c);else if(ky()(n)&&!jy()(n)){var f=a(n,c);r=t.createElement(Qy,{shapeType:o,elementProps:f})}else{var d=c;r=t.createElement(Qy,{shapeType:o,elementProps:d})}return s?t.createElement(Ur,{className:u},r):r}function em(e,t){return null!=t&&"trapezoids"in e.props}function tm(e,t){return null!=t&&"sectors"in e.props}function rm(e,t){return null!=t&&"points"in e.props}function nm(e,t){var r,n,o=e.x===(null===t||void 0===t||null===(r=t.labelViewBox)||void 0===r?void 0:r.x)||e.x===t.x,i=e.y===(null===t||void 0===t||null===(n=t.labelViewBox)||void 0===n?void 0:n.y)||e.y===t.y;return o&&i}function om(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function im(e,t){var r=e.x===t.x,n=e.y===t.y,o=e.z===t.z;return r&&n&&o}function am(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,o=function(e,t){var r;return em(e,t)?r="trapezoids":tm(e,t)?r="sectors":rm(e,t)&&(r="points"),r}(r,t),i=function(e,t){var r,n;return em(e,t)?null===(r=t.tooltipPayload)||void 0===r||null===(r=r[0])||void 0===r||null===(r=r.payload)||void 0===r?void 0:r.payload:tm(e,t)?null===(n=t.tooltipPayload)||void 0===n||null===(n=n[0])||void 0===n||null===(n=n.payload)||void 0===n?void 0:n.payload:rm(e,t)?t.payload:{}}(r,t),a=n.filter((function(e,n){var a=Gd()(i,e),l=r.props[o].filter((function(e){var n=function(e,t){var r;return em(e,t)?r=nm:tm(e,t)?r=om:rm(e,t)&&(r=im),r}(r,t);return n(e,t)})),u=r.props[o].indexOf(l[l.length-1]);return a&&n===u}));return n.indexOf(a[a.length-1])}var lm=["x","y"];function um(e){return um="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},um(e)}function sm(){return sm=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},sm.apply(this,arguments)}function cm(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 fm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(r),!0).forEach((function(t){dm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function dm(e,t,r){return t=function(e){var t=function(e,t){if("object"!=um(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=um(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==um(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pm(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function hm(e,t){var r=e.x,n=e.y,o=pm(e,lm),i="".concat(r),a=parseInt(i,10),l="".concat(n),u=parseInt(l,10),s="".concat(t.height||o.height),c=parseInt(s,10),f="".concat(t.width||o.width),d=parseInt(f,10);return fm(fm(fm(fm(fm({},t),o),a?{x:a}:{}),u?{y:u}:{}),{},{height:c,width:d,name:t.name,radius:t.radius})}function ym(e){return t.createElement(Jy,sm({shapeType:"rectangle",propTransformer:hm,activeClassName:"recharts-active-bar"},e))}var mm,gm=["value","background"];function vm(e){return vm="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},vm(e)}function bm(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function xm(){return xm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xm.apply(this,arguments)}function wm(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 Sm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wm(Object(r),!0).forEach((function(t){Pm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function km(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,Cm(n.key),n)}}function Om(e,t,r){return t=_m(t),function(e,t){if(t&&("object"===vm(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,jm()?Reflect.construct(t,r||[],_m(e).constructor):t.apply(e,r))}function jm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(jm=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_m(e)}function Em(e,t){return Em=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Em(e,t)}function Pm(e,t,r){return(t=Cm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Cm(e){var t=function(e,t){if("object"!=vm(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=vm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==vm(t)?t:t+""}var Mm=function(e){function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return Pm(e=Om(this,r,[].concat(n)),"state",{isAnimationFinished:!1}),Pm(e,"id",zt("recharts-bar-")),Pm(e,"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),Pm(e,"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Em(e,t)}(r,e),n=r,o=[{key:"renderRectanglesStatically",value:function(e){var r=this,n=this.props,o=n.shape,i=n.dataKey,a=n.activeIndex,l=n.activeBar,u=vr(this.props,!1);return e&&e.map((function(e,n){var s=n===a,c=s?l:o,f=Sm(Sm(Sm({},u),e),{},{isActive:s,option:c,index:n,dataKey:i,onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd});return t.createElement(Ur,xm({className:"recharts-bar-rectangle"},nr(r.props,e,n),{key:"rectangle-".concat(null===e||void 0===e?void 0:e.x,"-").concat(null===e||void 0===e?void 0:e.y,"-").concat(null===e||void 0===e?void 0:e.value)}),t.createElement(ym,f))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,r=this.props,n=r.data,o=r.layout,i=r.isAnimationActive,a=r.animationBegin,l=r.animationDuration,u=r.animationEasing,s=r.animationId,c=this.state.prevData;return t.createElement(ka,{begin:a,duration:l,isActive:i,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var i=r.t,a=n.map((function(e,t){var r=c&&c[t];if(r){var n=Ft(r.x,e.x),a=Ft(r.y,e.y),l=Ft(r.width,e.width),u=Ft(r.height,e.height);return Sm(Sm({},e),{},{x:n(i),y:a(i),width:l(i),height:u(i)})}if("horizontal"===o){var s=Ft(0,e.height)(i);return Sm(Sm({},e),{},{y:e.y+e.height-s,height:s})}var f=Ft(0,e.width)(i);return Sm(Sm({},e),{},{width:f})}));return t.createElement(Ur,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,r=e.isAnimationActive,n=this.state.prevData;return!(r&&t&&t.length)||n&&Gd()(n,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}}
2,{key:"renderBackground",value:function(){var e=this,r=this.props,n=r.data,o=r.dataKey,i=r.activeIndex,a=vr(this.props.background,!1);return n.map((function(r,n){r.value;var l=r.background,u=bm(r,gm);if(!l)return null;var s=Sm(Sm(Sm(Sm(Sm({},u),{},{fill:"#eee"},l),a),nr(e.props,r,n)),{},{onAnimationStart:e.handleAnimationStart,onAnimationEnd:e.handleAnimationEnd,dataKey:o,index:n,className:"recharts-bar-background-rectangle"});return t.createElement(ym,xm({key:"background-bar-".concat(n),option:e.props.background,isActive:n===i},s))}))}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.data,i=n.xAxis,a=n.yAxis,l=n.layout,u=pr(n.children,Ip);if(!u)return null;var s="vertical"===l?o[0].height/2:o[0].width/2,c=function(e,t){var r=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:r,errorVal:Kp(e,t)}},f={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Ur,f,u.map((function(e){return t.cloneElement(e,{key:"error-bar-".concat(r,"-").concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,offset:s,dataPointFormatter:c})})))}},{key:"render",value:function(){var e=this.props,r=e.hide,n=e.data,o=e.className,i=e.xAxis,a=e.yAxis,l=e.left,u=e.top,s=e.width,c=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(r||!n||!n.length)return null;var h=this.state.isAnimationFinished,y=wt("recharts-bar",o),m=i&&i.allowDataOverflow,g=a&&a.allowDataOverflow,v=m||g,b=Wt()(p)?this.id:p;return t.createElement(Ur,{className:y},m||g?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(b)},t.createElement("rect",{x:m?l:l-s/2,y:g?u:u-c/2,width:m?s:2*s,height:g?c:2*c}))):null,t.createElement(Ur,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(b,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,b),(!f||h)&&wy.renderCallByParent(this.props,n))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curData:e.data,prevData:t.curData}:e.data!==t.curData?{curData:e.data}:null}}],o&&km(n.prototype,o),i&&km(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);function Tm(e){return Tm="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},Tm(e)}function Am(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,Im(n.key),n)}}function Nm(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 Dm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Nm(Object(r),!0).forEach((function(t){Lm(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Nm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lm(e,t,r){return(t=Im(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Im(e){var t=function(e,t){if("object"!=Tm(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Tm(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Tm(t)?t:t+""}mm=Mm,Pm(Mm,"displayName","Bar"),Pm(Mm,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!mn.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),Pm(Mm,"getComposedData",(function(e){var t=e.props,r=e.item,n=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,l=e.xAxisTicks,u=e.yAxisTicks,s=e.stackedData,c=e.dataStartIndex,f=e.dis
2playedData,d=e.offset,p=function(e,t){if(!e)return null;for(var r=0,n=e.length;r<n;r++)if(e[r].item===t)return e[r].position;return null}(n,r);if(!p)return null;var h=t.layout,y=r.type.defaultProps,m=void 0!==y?Sm(Sm({},y),r.props):r.props,g=m.dataKey,v=m.children,b=m.minPointSize,x="horizontal"===h?a:i,w=s?x.scale.domain():null,S=function(e){var t=e.numericAxis,r=t.scale.domain();if("number"===t.type){var n=Math.min(r[0],r[1]),o=Math.max(r[0],r[1]);return n<=0&&o>=0?0:o<0?o:n}return r[0]}({numericAxis:x}),k=pr(v,ly),O=f.map((function(e,t){var n,f,d,y,m,v;s?n=function(e,t){if(!t||2!==t.length||!Dt(t[0])||!Dt(t[1]))return e;var r=Math.min(t[0],t[1]),n=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Dt(e[0])||e[0]<r)&&(o[0]=r),(!Dt(e[1])||e[1]>n)&&(o[1]=n),o[0]>n&&(o[0]=n),o[1]<r&&(o[1]=r),o}(s[c+t],w):(n=Kp(e,g),Array.isArray(n)||(n=[S,n]));var x=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return function(r,n){if("number"===typeof e)return e;var o="number"===typeof r;return o?e(r,n):(o||Dr(!1),t)}}(b,mm.defaultProps.minPointSize)(n[1],t);if("horizontal"===h){var O,j=[a.scale(n[0]),a.scale(n[1])],_=j[0],E=j[1];f=uh({axis:i,ticks:l,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(O=null!==E&&void 0!==E?E:_)&&void 0!==O?O:void 0,y=p.size;var P=_-E;if(m=Number.isNaN(P)?0:P,v={x:f,y:a.y,width:y,height:a.height},Math.abs(x)>0&&Math.abs(m)<Math.abs(x)){var C=At(m||x)*(Math.abs(x)-Math.abs(m));d-=C,m+=C}}else{var M=[i.scale(n[0]),i.scale(n[1])],T=M[0],A=M[1];if(f=T,d=uh({axis:a,ticks:u,bandSize:o,offset:p.offset,entry:e,index:t}),y=A-T,m=p.size,v={x:i.x,y:d,width:i.width,height:m},Math.abs(x)>0&&Math.abs(y)<Math.abs(x))y+=At(y||x)*(Math.abs(x)-Math.abs(y))}return Sm(Sm(Sm({},e),{},{x:f,y:d,width:y,height:m,value:s?n:n[1],payload:e,background:v},k&&k[t]&&k[t].props),{},{tooltipPayload:[yh(r,e)],tooltipPosition:{x:f+y/2,y:d+m/2}})}));return Sm({data:O,layout:h},d)}));var zm=function(e,t){var r=e.x,n=e.y,o=t.x,i=t.y;return{x:Math.min(r,o),y:Math.min(n,i),width:Math.abs(o-r),height:Math.abs(i-n)}},Rm=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}return t=e,r=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.bandAware,n=t.position;if(void 0!==e){if(n)switch(n){case"start":default:return this.scale(e);case"middle":var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(r){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+a}return this.scale(e)}}},{key:"isInRange",value:function(e){var t=this.range(),r=t[0],n=t[t.length-1];return r<=n?e>=r&&e<=n:e>=n&&e<=r}}],n=[{key:"create",value:function(t){return new e(t)}}],r&&Am(t.prototype,r),n&&Am(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r,n}();Lm(Rm,"EPS",1e-4);var Bm=function(e){var t=Object.keys(e).reduce((function(t,r){return Dm(Dm({},t),{},Lm({},r,Rm.create(e[r])))}),{});return Dm(Dm({},t),{},{apply:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=r.bandAware,o=r.position;return oy()(e,(function(e,r){return t[r].apply(e,{bandAware:n,position:o})}))},isInRange:function(e){return ay()(e,(function(e,r){return t[r].isInRange(e)}))}})};function Fm(){return Fm=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},Fm.apply(this,arguments)}function $m(e){return $m="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},$m(e)}function Um(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 Hm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Um(Object(r),!0).forEach((function(t){Ym(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Um(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Wm(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,Xm(n.key),n)}}function qm(e,t,r){return t=Gm(t),function(e,t){if(t&&("object"===$m(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Vm()?Reflect.construct(t,r||[],Gm(e).constructor):t.apply(e,r))}function Vm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Vm=function(){return!!e})()}function Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Gm(e)}function Km(e,t){return Km=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Km(e,t)}function Ym(e,t,r){return(t=Xm(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xm(e){var t=function(e,t){if("object"!=$m(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=$m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==$m(t)?t:t+""}var Zm=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),qm(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Km(e,t)}(r,e),n=r,o=[{key:"render",value:function(){var e=this.props,n=e.x,o=e.y,i=e.r,a=e.alwaysShow,l=e.clipPathId,u=Lt(n),s=Lt(o);if(Ut(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!s)return null;var c=function(e){var t=e.x,r=e.y,n=e.xAxis,o=e.yAxis,i=Bm({x:n.scale,y:o.scale}),a=i.apply({x:t,y:r},{bandAware:!0});return ry(e,"discard")&&!i.isInRange(a)?null:a}(this.props);if(!c)return null;var f=c.x,d=c.y,p=this.props,h=p.shape,y=p.className,m=Hm(Hm({clipPath:ry(this.props,"hidden")?"url(#".concat(l,")"):void 0},vr(this.props,!0)),{},{cx:f,cy:d});return t.createElement(Ur,{className:wt("recharts-reference-dot",y)},r.renderDot(h,m),ey.renderCallByParent(this.props,{x:f-i,y:d-i,width:2*i,height:2*i}))}}],o&&Wm(n.prototype,o),i&&Wm(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);Ym(Zm,"displayName","ReferenceDot"),Ym(Zm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1}),Ym(Zm,"renderDot",(function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Vt()(e)?e(r):t.createElement(Ko,Fm({},r,{cx:r.cx,cy:r.cy,className:"recharts-reference-dot-dot"}))}));var Qm=r(4597),Jm=r.n(Qm),eg=r(8990),tg=r.n(eg),rg=r(5797),ng=r.n(rg)()((function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}}),(function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}));var og=(0,t.createContext)(void 0),ig=(0,t.createContext)(void 0),ag=(0,t.createContext)(void 0),lg=(0,t.createContext)({}),ug=(0,t.createContext)(void 0),sg=(0,t.createContext)(0),cg=(0,t.createContext)(0),fg=function(e){var r=e.state,n=r.xAxisMap,o=r.yAxisMap,i=r.offset,a=e.clipPathId,l=e.children,u=e.width,s=e.height,c=ng(i);return t.createElement(og.Provider,{value:n},t.createElement(ig.Provider,{value:o},t.createElement(lg.Provider,{value:i},t.createElement(ag.Provider,{value:c},t.createElement(ug.Provider,{value:a},t.createElement(sg.Provider,{value:s},t.createElement(cg.Provider,{value:u},l)))))))};var dg=function(e){var r=(0,t.useContext)(og);null==r&&Dr(!1);var n=r[e];return null==n&&Dr(!1),n},pg=function(e){var r=(0,t.useContext)(ig);null==r&&Dr(!1);var n=r[e];return null==n&&Dr(!1),n},hg=function(){return(0,t.useContext)(cg)},yg=function(){return(0,t.useContext)(sg)};function mg(e){return mg="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},mg(e)}function gg(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,jg(n.key),n)}}function vg(e,t,r){return t=xg(t),function(e,t){if(t&&("object"===mg(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,bg()?Reflect.construct(t,r||[],xg(e).constructor):t.apply(e,r))}function bg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(bg=function(){return!!e})()}function xg(e){return xg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xg(e)}function wg(e,t){return wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wg(e,t)}function Sg(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 kg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
2t%2?Sg(Object(r),!0).forEach((function(t){Og(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Og(e,t,r){return(t=jg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jg(e){var t=function(e,t){if("object"!=mg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=mg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==mg(t)?t:t+""}function _g(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"===typeof e)return Eg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eg(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Pg(){return Pg=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},Pg.apply(this,arguments)}function Cg(e){var r=e.x,n=e.y,o=e.segment,i=e.xAxisId,a=e.yAxisId,l=e.shape,u=e.className,s=e.alwaysShow,c=(0,t.useContext)(ug),f=dg(i),d=pg(a),p=(0,t.useContext)(ag);if(!c||!p)return null;Ut(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=function(e,t,r,n,o,i,a,l,u){var s=o.x,c=o.y,f=o.width,d=o.height;if(r){var p=u.y,h=e.y.apply(p,{position:i});if(ry(u,"discard")&&!e.y.isInRange(h))return null;var y=[{x:s+f,y:h},{x:s,y:h}];return"left"===l?y.reverse():y}if(t){var m=u.x,g=e.x.apply(m,{position:i});if(ry(u,"discard")&&!e.x.isInRange(g))return null;var v=[{x:g,y:c+d},{x:g,y:c}];return"top"===a?v.reverse():v}if(n){var b=u.segment.map((function(t){return e.apply(t,{position:i})}));return ry(u,"discard")&&Jm()(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(Bm({x:f.scale,y:d.scale}),Lt(r),Lt(n),o&&2===o.length,p,e.position,f.orientation,d.orientation,e);if(!h)return null;var y=_g(h,2),m=y[0],g=m.x,v=m.y,b=y[1],x=b.x,w=b.y,S=kg(kg({clipPath:ry(e,"hidden")?"url(#".concat(c,")"):void 0},vr(e,!0)),{},{x1:g,y1:v,x2:x,y2:w});return t.createElement(Ur,{className:wt("recharts-reference-line",u)},function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Vt()(e)?e(r):t.createElement("line",Pg({},r,{className:"recharts-reference-line-line"}))}(l,S),ey.renderCallByParent(e,function(e){var t=e.x1,r=e.y1,n=e.x2,o=e.y2;return zm({x:t,y:r},{x:n,y:o})}({x1:g,y1:v,x2:x,y2:w})))}var Mg=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),vg(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wg(e,t)}(r,e),n=r,(o=[{key:"render",value:function(){return t.createElement(Cg,this.props)}}])&&gg(n.prototype,o),i&&gg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);function Tg(){return Tg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tg.apply(this,arguments)}function Ag(e){return Ag="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},Ag(e)}function Ng(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 Dg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ng(Object(r),!0).forEach((function(t){Fg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ng(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Lg(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,$g(n.key),n)}}function Ig(e,t,r){return t=Rg(t),function(e,t){if(t&&("object"===Ag(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,zg()?Reflect.construct(t,r||[],Rg(e).constructor):t.apply(e,r))}function zg(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(zg=function(){return!!e})()}function Rg(e){return Rg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Rg(e)}function Bg(e,t){return Bg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Bg(e,t)}function Fg(e,t,r){return(t=$g(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $g(e){var t=function(e,t){if("object"!=Ag(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Ag(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ag(t)?t:t+""}Og(Mg,"displayName","ReferenceLine"),Og(Mg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});var Ug=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Ig(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Bg(e,t)}(r,e),n=r,(o=[{key:"render",value:function(){var e=this.props,n=e.x1,o=e.x2,i=e.y1,a=e.
vendor: 9,259 bytes, line 2
2y2,l=e.className,u=e.alwaysShow,s=e.clipPathId;Ut(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=Lt(n),f=Lt(o),d=Lt(i),p=Lt(a),h=this.props.shape;if(!c&&!f&&!d&&!p&&!h)return null;var y=function(e,t,r,n,o){var i=o.x1,a=o.x2,l=o.y1,u=o.y2,s=o.xAxis,c=o.yAxis;if(!s||!c)return null;var f=Bm({x:s.scale,y:c.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:r?f.y.apply(l,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:n?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!ry(o,"discard")||f.isInRange(d)&&f.isInRange(p)?zm(d,p):null}(c,f,d,p,this.props);if(!y&&!h)return null;var m=ry(this.props,"hidden")?"url(#".concat(s,")"):void 0;return t.createElement(Ur,{className:wt("recharts-reference-area",l)},r.renderRect(h,Dg(Dg({clipPath:m},vr(this.props,!0)),y)),ey.renderCallByParent(this.props,y))}}])&&Lg(n.prototype,o),i&&Lg(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);function Hg(e){return function(e){if(Array.isArray(e))return Wg(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Wg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wg(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Wg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}Fg(Ug,"displayName","ReferenceArea"),Fg(Ug,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1}),Fg(Ug,"renderRect",(function(e,r){return t.isValidElement(e)?t.cloneElement(e,r):Vt()(e)?e(r):t.createElement(Da,Tg({},r,{className:"recharts-reference-area-rect"}))}));var qg=function(e,t,r,n,o){var i=pr(e,Mg),a=pr(e,Zm),l=[].concat(Hg(i),Hg(a)),u=pr(e,Ug),s="".concat(n,"Id"),c=n[0],f=t;if(l.length&&(f=l.reduce((function(e,t){if(t.props[s]===r&&ry(t.props,"extendDomain")&&Dt(t.props[c])){var n=t.props[c];return[Math.min(e[0],n),Math.max(e[1],n)]}return e}),f)),u.length){var d="".concat(c,"1"),p="".concat(c,"2");f=u.reduce((function(e,t){if(t.props[s]===r&&ry(t.props,"extendDomain")&&Dt(t.props[d])&&Dt(t.props[p])){var n=t.props[d],o=t.props[p];return[Math.min(e[0],n,o),Math.max(e[1],n,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return Dt(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},Vg=r(7283),Gg=new(r.n(Vg)()),Kg="recharts.syncMouseEvents";function Yg(e){return Yg="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},Yg(e)}function Xg(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,Qg(n.key),n)}}function Zg(e,t,r){return(t=Qg(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qg(e){var t=function(e,t){if("object"!=Yg(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Yg(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Yg(t)?t:t+""}var Jg=function(){return e=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Zg(this,"activeIndex",0),Zg(this,"coordinateList",[]),Zg(this,"layout","horizontal")},(t=[{key:"setDetails",value:function(e){var t,r=e.coordinateList,n=void 0===r?null:r,o=e.container,i=void 0===o?null:o,a=e.layout,l=void 0===a?null:a,u=e.offset,s=void 0===u?null:u,c=e.mouseHandlerCallback,f=void 0===c?null:c;this.coordinateList=null!==(t=null!==n&&void 0!==n?n:this.coordinateList)&&void 0!==t?t:[],this.container=null!==i&&void 0!==i?i:this.container,this.layout=null!==l&&void 0!==l?l:this.layout,this.offset=null!==s&&void 0!==s?s:this.offset,this.mouseHandlerCallback=null!==f&&void 0!==f?f:this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){if(0!==this.coordinateList.length)switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"setIndex",value:function(e){this.activeIndex=e}},{key:"spoofMouse",value:function(){var e,t;if("horizontal"===this.layout&&0!==this.coordinateList.length){var r=this.container.getBoundingClientRect(),n=r.x,o=r.y,i=r.height,a=this.coordinateList[this.activeIndex].coordinate,l=(null===(e=window)||void 0===e?void 0:e.scrollX)||0,u=(null===(t=window)||void 0===t?void 0:t.scrollY)||0,s=n+a+l,c=o+this.offset.top+i/2+u;this.mouseHandlerCallback({pageX:s,pageY:c})}}}])&&Xg(e.prototype,t),r&&Xg(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,t,r}();function ev(){}function tv(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function rv(e){this._context=e}function nv(e){this._context=e}function ov(e){this._context=e}rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:tv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:tv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},nv.prototype={areaStart:ev,areaEnd:ev,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:tv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ov.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:tv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};class iv{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}function av(e){this._context=e}function lv(e){this._context=e}function uv(e){return new lv(e)}function sv(e){return e<0?-1:1}function cv(e,t,r){var n=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(n||o<0&&-0),a=(r-e._y1)/(o||n<0&&-0),l=(i*o+a*n)/(n+o);return(sv(i)+sv(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(l))||0}function fv(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function dv(e,t,r){var n=e._x0,o=e._y0,i=e._x1,a=e._y1,l=(i-n)/3;e._context.bezierCurveTo(n+l,o+l*t,i-l,a-l*r,i,a)}function pv(e){this._context=e}function hv(e){this._context=new yv(e)}function yv(e){this._context=e}function mv(e){this._context=e}
vendor: 14,784 bytes, line 2
2function gv(e){var t,r,n=e.length-1,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function vv(e,t){this._context=e,this._t=t}function bv(e){return e[0]}function xv(e){return e[1]}function wv(e,t){var r=ro(!0),n=null,o=uv,i=null,a=so(l);function l(l){var u,s,c,f=(l=Id(l)).length,d=!1;for(null==n&&(i=o(c=a())),u=0;u<=f;++u)!(u<f&&r(s=l[u],u,l))===d&&((d=!d)?i.lineStart():i.lineEnd()),d&&i.point(+e(s,u,l),+t(s,u,l));if(c)return i=null,c+""||null}return e="function"===typeof e?e:void 0===e?bv:ro(e),t="function"===typeof t?t:void 0===t?xv:ro(t),l.x=function(t){return arguments.length?(e="function"===typeof t?t:ro(+t),l):e},l.y=function(e){return arguments.length?(t="function"===typeof e?e:ro(+e),l):t},l.defined=function(e){return arguments.length?(r="function"===typeof e?e:ro(!!e),l):r},l.curve=function(e){return arguments.length?(o=e,null!=n&&(i=o(n)),l):o},l.context=function(e){return arguments.length?(null==e?n=i=null:i=o(n=e),l):n},l}function Sv(e,t,r){var n=null,o=ro(!0),i=null,a=uv,l=null,u=so(s);function s(s){var c,f,d,p,h,y=(s=Id(s)).length,m=!1,g=new Array(y),v=new Array(y);for(null==i&&(l=a(h=u())),c=0;c<=y;++c){if(!(c<y&&o(p=s[c],c,s))===m)if(m=!m)f=c,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),d=c-1;d>=f;--d)l.point(g[d],v[d]);l.lineEnd(),l.areaEnd()}m&&(g[c]=+e(p,c,s),v[c]=+t(p,c,s),l.point(n?+n(p,c,s):g[c],r?+r(p,c,s):v[c]))}if(h)return l=null,h+""||null}function c(){return wv().defined(o).curve(a).context(i)}return e="function"===typeof e?e:void 0===e?bv:ro(+e),t="function"===typeof t?t:ro(void 0===t?0:+t),r="function"===typeof r?r:void 0===r?xv:ro(+r),s.x=function(t){return arguments.length?(e="function"===typeof t?t:ro(+t),n=null,s):e},s.x0=function(t){return arguments.length?(e="function"===typeof t?t:ro(+t),s):e},s.x1=function(e){return arguments.length?(n=null==e?null:"function"===typeof e?e:ro(+e),s):n},s.y=function(e){return arguments.length?(t="function"===typeof e?e:ro(+e),r=null,s):t},s.y0=function(e){return arguments.length?(t="function"===typeof e?e:ro(+e),s):t},s.y1=function(e){return arguments.length?(r=null==e?null:"function"===typeof e?e:ro(+e),s):r},s.lineX0=s.lineY0=function(){return c().x(e).y(t)},s.lineY1=function(){return c().x(e).y(r)},s.lineX1=function(){return c().x(n).y(t)},s.defined=function(e){return arguments.length?(o="function"===typeof e?e:ro(!!e),s):o},s.curve=function(e){return arguments.length?(a=e,null!=i&&(l=a(i)),s):a},s.context=function(e){return arguments.length?(null==e?i=l=null:l=a(i=e),s):i},s}function kv(e){return kv="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},kv(e)}function Ov(){return Ov=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},Ov.apply(this,arguments)}function jv(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 _v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jv(Object(r),!0).forEach((function(t){Ev(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ev(e,t,r){return t=function(e){var t=function(e,t){if("object"!=kv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=kv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==kv(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}av.prototype={areaStart:ev,areaEnd:ev,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},lv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}},pv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:dv(this,this._t0,fv(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,dv(this,fv(this,r=cv(this,e,t)),r);break;default:dv(this,this._t0,r=cv(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(hv.prototype=Object.create(pv.prototype)).point=function(e,t){pv.prototype.point.call(this,t,e)},yv.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,o,i){this._context.bezierCurveTo(t,e,n,r,i,o)}},mv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=gv(e),o=gv(t),i=0,a=1;a<r;++i,++a)this._context.bezierCurveTo(n[0][i],o[0][i],n[1][i],o[1][i],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},vv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}};var Pv={curveBasisClosed:function(e){return new nv(e)},curveBasisOpen:function(e){return new ov(e)},curveBasis:function(e){return new rv(e)},curveBumpX:function(e){return new iv(e,!0)},curveBumpY:function(e){return new iv(e,!1)},curveLinearClosed:function(e){return new av(e)},curveLinear:uv,curveMonotoneX:function(e){return new pv(e)},curveMonotoneY:function(e){return new hv(e)},curveNatural:function(e){return new mv(e)},curveStep:function(e){return new vv(e,.5)},curveStepAfter:function(e){return new vv(e,1)},curveStepBefore:function(e){return new vv(e,0)}},Cv=function(e){return e.x===+e.x&&e.y===+e.y},Mv=function(e){return e.x},Tv=function(e){return e.y},Av=function(e){var t,r=e.type,n=void 0===r?"linear":r,o=e.points,i=void 0===o?[]:o,a=e.baseLine,l=e.layout,u=e.connectNulls,s=void 0!==u&&u,c=function(e,t){if(Vt()(e))return e;var r="curve".concat(Nn()(e));return"curveMonotone"!==r&&"curveBump"!==r||!t?Pv[r]||uv:Pv["".concat(r).concat("vertical"===t?"Y":"X")]}(n,l),f=s?i.filter((function(e){return Cv(e)})):i;if(Array.isArray(a)){var d=s?a.filter((function(e){return Cv(e)})):a,p=f.map((function(e,t){return _v(_v({},e),{},{base:d[t]})}));return(t="vertical"===l?Sv().y(Tv).x1(Mv).x0((function(e){return e.base.x})):Sv().x(Mv).y1(Tv).y0((function(e){return e.base.y}))).defined(Cv).curve(c),t(p)}return(t="vertical"===l&&Dt(a)?Sv().y(Tv).x1(Mv).x0(a):Dt(a)?Sv().x(Mv).y1(Tv).y0(a):wv().x(Mv).y(Tv)).defined(Cv).curve(c),t(f)},Nv=function(e){var r=e.className,n=e.points,o=e.path,i=e.pathRef;if((!n||!n.length)&&!o)return null;var a=n&&n.length?Av(e):o;return t.createElement("path",Ov({},vr(e,!1),rr(e),{className:wt("recharts-curve",r),d:a,ref:i}))};function Dv(e){return Dv="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},Dv(e)}var Lv=["x","y","top","left","width","height","className"];function Iv(){return Iv=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},Iv.apply(this,arguments)}function zv(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 Rv(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Dv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Dv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Dv(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bv(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var Fv=function(e,t,r,n,o,i){return"M".concat(e,",").concat(o,"v").concat(n,"M").concat(i,",").concat(t,"h").concat(r)},$v=function(e){var r=e.x,n=void 0===r?0:r,o=e.y,i=void 0===o?0:o,a=e.top,l=void 0===a?0:a,u=e.left,s=void 0===u?0:u,c=e.width,f=void 0===c?0:c,d=e.height,p=void 0===d?0:d,h=e.className,y=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zv(Object(r),!0).forEach((function(t){Rv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({x:n,y:i,top:l,left:s,width:f,height:p},Bv(e,Lv));return Dt(n)&&Dt(i)&&Dt(f)&&Dt(p)&&Dt(l)&&Dt(s)?t.createElement("path",Iv({},vr(y,!0),{className:wt("recharts-cross",h),d:Fv(n,i,f,p,l,s)})):null};function Uv(e){var t=e.cx,r=e.cy,n=e.radius,o=e.startAngle,i=e.endAngle;return{points:[Fh(t,r,n,o),Fh(t,r,n,i)],cx:t,cy:r,radius:n,startAngle:o,endAngle:i}}function Hv(e,t,r){var n,o,i,a;if("horizontal"===e)i=n=t.x,o=r.top,a=r.top+r.height;else if("vertical"===e)a=o=t.y,n=r.left,i=r.left+r.width;else if(null!=t.cx&&null!=t.cy){if("centric"!==e)return Uv(t);var l=t.cx,u=t.cy,s=t.innerRadius,c=t.outerRadius,f=t.angle,d=Fh(l,u,s,f),p=Fh(l,u,c,f);n=d.x,o=d.y,i=p.x,a=p.y}return[{x:n,y:o},{x:i,y:a}]}function Wv(e){return Wv="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},Wv(e)}function qv(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 Vv(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qv(Object(r),!0).forEach((function(t){Gv(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qv(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Gv(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Wv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Wv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Wv(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kv(e){var r,n,o,i=e.element,a=e.tooltipEventType,l=e.isActive,u=e.activeCoordinate,s=e.activePayload,c=e.offset,f=e.activeTooltipIndex,d=e.tooltipAxisBandSize,p=e.layout,h=e.chartName,y=null!==(r=i.props.cursor)&&void 0!==r?r:null===(n=i.type.defaultProps)||void 0===n?void 0:n.cursor;if(!i||!y||!l||!u||"ScatterChart"!==h&&"axis"!==a)return null;var m=Nv;if("ScatterChart"===h)o=u,m=$v;else if("BarChart"===h)o=function(e,t,r,n){var o=n/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?t.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:t.y-o,width:"horizontal"===e?n:r.width-1,height:"horizontal"===e?r.height-1:n}}(p,u,c,d),m=Da;else if("radial"===p){var g=Uv(u),v=g.cx,b=g.cy,x=g.radius;o={cx:v,cy:b,startAngle:g.startAngle,endAngle:g.endAngle,innerRadius:x,outerRadius:x},m=Wy}else o={points:Hv(p,u,c)},m=Nv;var w=Vv(Vv(Vv(Vv({stroke:"#ccc",pointerEvents:"none"},c),o),vr(y,!1)),{},{payload:s,payloadIndex:f,className:wt("recharts-tooltip-cursor",y.className)});return(0,t.isValidElement)(y)?(0,t.cloneElement)(y,w):(0,t.createElement)(m,w)}var Yv=["item"],Xv=["children","className","width","height","style","compact","title","desc"];function Zv(e){return Zv="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},Zv(e)}function Qv(){return Qv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Qv.apply(this,arguments)}function Jv(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,o,i,a,l=[],u=!0,s=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(l.push(n.value),l.length!==t);u=!0);}catch(e){s=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw o}}return l}}(e,t)||lb(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function eb(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function tb(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,db(n.key),n)}}function rb(e,t,r){return t=ob(t),function(e,t){if(t&&("object"===Zv(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,nb()?Reflect.construct(t,r||[],ob(e).constructor):t.apply(e,r))}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(nb=function(){return!!e})()}function ob(e){return ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ob(e)}function ib(e,t){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ib(e,t)}function ab(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||lb(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lb(e,t){if(e){if("string"===typeof e)return ub(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ub(e,t):void 0}}function ub(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function sb(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 cb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sb(Object(r),!0).forEach((function(t){fb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function fb(e,t,r){return(t=db(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function db(e){var t=function(e,t){if("object"!=Zv(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Zv(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Zv(t)?t:t+""}var pb={xAxis:["bottom","top"],yAxis:["left","right"]},hb={width:"100%",height:"100%"},yb={x:0,y:0};function mb(e){return e}var gb=function(e,t){var r=t.graphicalItems,n=t.dataStartIndex,o=t.dataEndIndex,i=(null!==r&&void 0!==r?r:[]).reduce((function(e,t){var r=t.props.data;return r&&r.length?[].concat(ab(e),ab(r)):e}),[]);return i.length>0?i:e&&e.length&&Dt(n)&&Dt(o)?e.slice(n,o+1):[]};function vb(e){return"number"===e?[0,"auto"]:void 0}var bb=function(e,t,r,n){var o=e.graphicalItems,i=e.tooltipAxis,a=gb(t,e);return r<0||!o||!o.length||r>=a.length?null:o.reduce((function(o,l){var u,s,c=null!==(u=l.props.data)&&void 0!==u?u:t;(c&&e.dataStartIndex+e.dataEndIndex!==0&&e.dataEndIndex-e.dataStartIndex>=r&&(c=c.slice(e.dataStartIndex,e.dataEndIndex+1)),i.dataKey&&!i.allowDuplicatedCategory)?s=$t(void 0===c?a:c,i.dataKey,n):s=c&&c[r]||a[r];return s?[].concat(ab(o),[yh(l,s)]):o}),[])},xb=function(e,t,r,n){var o=n||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radiu
2s}(o,r),a=e.orderedTooltipTicks,l=e.tooltipAxis,u=e.tooltipTicks,s=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null===r||void 0===r?void 0:r.length)&&void 0!==t?t:0;if(a<=1)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var l=o.range,u=0;u<a;u++){var s=u>0?n[u-1].coordinate:n[a-1].coordinate,c=n[u].coordinate,f=u>=a-1?n[0].coordinate:n[u+1].coordinate,d=void 0;if(At(c-s)!==At(f-c)){var p=[];if(At(f-c)===At(l[1]-l[0])){d=f;var h=c+l[1]-l[0];p[0]=Math.min(h,(h+s)/2),p[1]=Math.max(h,(h+s)/2)}else{d=s;var y=f+l[1]-l[0];p[0]=Math.min(c,(y+c)/2),p[1]=Math.max(c,(y+c)/2)}var m=[Math.min(c,(d+c)/2),Math.max(c,(d+c)/2)];if(e>m[0]&&e<=m[1]||e>=p[0]&&e<=p[1]){i=n[u].index;break}}else{var g=Math.min(s,f),v=Math.max(s,f);if(e>(g+c)/2&&e<=(v+c)/2){i=n[u].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b>0&&b<a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2&&e<=(r[b].coordinate+r[b+1].coordinate)/2||b===a-1&&e>(r[b].coordinate+r[b-1].coordinate)/2){i=r[b].index;break}return i}(i,a,u,l);if(s>=0&&u){var c=u[s]&&u[s].value,f=bb(e,t,s,c),d=function(e,t,r,n){var o=t.find((function(e){return e&&e.index===r}));if(o){if("horizontal"===e)return{x:o.coordinate,y:n.y};if("vertical"===e)return{x:n.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=n.radius;return cb(cb(cb({},n),Fh(n.cx,n.cy,a,i)),{},{angle:i,radius:a})}var l=o.coordinate,u=n.angle;return cb(cb(cb({},n),Fh(n.cx,n.cy,l,u)),{},{angle:u,radius:l})}return yb}(r,a,s,o);return{activeTooltipIndex:s,activeLabel:c,activePayload:f,activeCoordinate:d}}return null},wb=function(e,t){var r=t.axes,n=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,c=e.children,f=e.stackOffset,d=Jp(s,o);return r.reduce((function(t,r){var p,h=void 0!==r.type.defaultProps?cb(cb({},r.type.defaultProps),r.props):r.props,y=h.type,m=h.dataKey,g=h.allowDataOverflow,v=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,S=h[i];if(t[S])return t;var k,O,j,_=gb(e.data,{graphicalItems:n.filter((function(e){var t;return(i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i])===S})),dataStartIndex:l,dataEndIndex:u}),E=_.length;(function(e,t,r){if("number"===r&&!0===t&&Array.isArray(e)){var n=null===e||void 0===e?void 0:e[0],o=null===e||void 0===e?void 0:e[1];if(n&&o&&Dt(n)&&Dt(o))return!0}return!1})(h.domain,g,y)&&(k=dh(h.domain,null,g),!d||"number"!==y&&"auto"===b||(j=Yp(_,m,"category")));var P=vb(y);if(!k||0===k.length){var C,M=null!==(C=h.domain)&&void 0!==C?C:P;if(m){if(k=Yp(_,m,y),"category"===y&&d){var T=function(e){if(!Array.isArray(e))return!1;for(var t=e.length,r={},n=0;n<t;n++){if(r[e[n]])return!0;r[e[n]]=!0}return!1}(k);v&&T?(O=k,k=Mr()(0,E)):v||(k=hh(M,k,r).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(ab(e),[t])}),[]))}else if("category"===y)k=v?k.filter((function(e){return""!==e&&!Wt()(e)})):hh(M,k,r).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Wt()(t)?e:[].concat(ab(e),[t])}),[]);else if("number"===y){var A=function(e,t,r,n,o){var i=t.map((function(t){return Zp(e,t,r,o,n)})).filter((function(e){return!Wt()(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(_,n.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===S&&(w||!o)})),m,o,s);A&&(k=A)}!d||"number"!==y&&"auto"===b||(j=Yp(_,m,"category"))}else k=d?Mr()(0,E):a&&a[S]&&a[S].hasStack&&"number"===y?"expand"===f?[0,1]:sh(a[S].stackGroups,l,u):Qp(_,n.filter((function(e){var t=i in e.props?e.props[i]:e.type.defaultProps[i],r="hide"in e.props?e.props.hide:e.type.defaultProps.hide;return t===S&&(w||!r)})),y,s,!0);if("number"===y)k=qg(c,k,S,o,x),M&&(k=dh(M,k,g));else if("category"===y&&M){var N=M;k.every((function(e){return N.indexOf(e)>=0}))&&(k=N)}}return cb(cb({},t),{},fb({},S,cb(cb({},h),{},{axisType:o,domain:k,categoricalDomain:j,duplicateDomain:O,originalDomain:null!==(p=h.domain)&&void 0!==p?p:P,isCategorical:d,layout:s})))}),{})},Sb=function(e,t){var r=t.axisType,n=void 0===r?"xAxis":r,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.children,c="".concat(n,"Id"),f=pr(s,o),d={};return f&&f.length?d=wb(e,{axes:f,graphicalItems:i,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u}):i&&i.length&&(d=function(e,t){var r=t.graphicalItems,n=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,l=t.dataStartIndex,u=t.dataEndIndex,s=e.layout,c=e.children,f=gb(e.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:u}),d=f.length,p=Jp(s,o),h=-1;return r.reduce((function(e,t){var y,m=(void 0!==t.type.defaultProps?cb(cb({},t.type.defaultProps),t.props):t.props)[i],g=vb("number");return e[m]?e:(h++,p?y=Mr()(0,d):a&&a[m]&&a[m].hasStack?(y=sh(a[m].stackGroups,l,u),y=qg(c,y,m,o)):(y=dh(g,Qp(f,r.filter((function(e){var t,r,n=i in e.props?e.props[i]:null===(t=e.type.defaultProps)||void 0===t?void 0:t[i],o="hide"in e.props?e.props.hide:null===(r=e.type.defaultProps)||void 0===r?void 0:r.hide;return n===m&&!o})),"number",s),n.defaultProps.allowDataOverflow),y=qg(c,y,m,o)),cb(cb({},e),{},fb({},m,cb(cb({axisType:o},n.defaultProps),{},{hide:!0,orientation:Ct()(pb,"".concat(o,".").concat(h%2),null),domain:y,originalDomain:g,isCategorical:p,layout:s}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:n,axisIdKey:c,stackGroups:a,dataStartIndex:l,dataEndIndex:u})),d},kb=function(e){var t=e.children,r=e.defaultShowTooltip,n=hr(t,Nh),o=0,i=0;return e.data&&0!==e.data.length&&(i=e.data.length-1),n&&n.props&&(n.props.startIndex>=0&&(o=n.props.startIndex),n.props.endIndex>=0&&(i=n.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:o,dataEndIndex:i,activeTooltipIndex:-1,isTooltipActive:Boolean(r)}},Ob=function(e){return"horizontal"===e?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:"vertical"===e?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:"centric"===e?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},jb=function(e,t){var r=e.props,n=(e.graphicalItems,e.xAxisMap),o=void 0===n?{}:n,i=e.yAxisMap,a=void 0===i?{}:i,l=r.width,u=r.height,s=r.children,c=r.margin||{},f=hr(s,Nh),d=hr(s,Vo),p=Object.keys(a).reduce((function(e,t){var r=a[t],n=r.orientation;return r.mirror||r.hide?e:cb(cb({},e),{},fb({},n,e[n]+r.width))}),{left:c.left||0,right:c.right||0}),h=Object.keys(o).reduce((function(e,t){var r=o[t],n=r.orientation;return r.mirror||r.hide?e:cb(cb({},e),{},fb({},n,Ct()(e,"".concat(n))+r.height))}),{top:c.top||0,bottom:c.bottom||0}),y=cb(cb({},h),p),m=y.bottom;f&&(y.bottom+=f.props.height||Nh.defaultProps.height),d&&t&&(y=function(e,t,r,n){var o=r.children,i=r.width,a=r.margin,l=i-(a.left||0)-(a.right||0),u=$p({children:o,legendWidth:l});if(u){var s=n||{},c=s.width,f=s.height,d=u.align,p=u.verticalAlign,h=u.layout;if(("vertical"===h||"horizontal"===h&&"middle"===p)&&"center"!==d&&Dt(e[d]))return Vp(Vp({},e),{},Gp({},d,e[d]+(c||0)));if(("horizontal"===h||"vertical"===h&&"center"===d)&&"middle"!==p&&Dt(e[p]))return Vp(Vp({},e),{},Gp({},p,e[p]+(f||0)))}return e}(y,0,r,t));var g=l-y.left-y.right,v=u-y.top-y.bottom;return cb(cb({brushBottom:m},y),{},{width:Math.max(g,0),height:Math.max(v,0)})},_b=function(e,t){return"xAxis"===t?e[t].width:"yAxis"===t?e[t].height:void 0},Eb=["type","layout","connectNulls","ref"],Pb=["key"];function Cb(e){return Cb="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},Cb(e)}function Mb(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function Tb(){return Tb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];
2for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Tb.apply(this,arguments)}function Ab(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 Nb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ab(Object(r),!0).forEach((function(t){$b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ab(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Db(e){return function(e){if(Array.isArray(e))return Lb(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"===typeof e)return Lb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Lb(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Lb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ib(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,Ub(n.key),n)}}function zb(e,t,r){return t=Bb(t),function(e,t){if(t&&("object"===Cb(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Rb()?Reflect.construct(t,r||[],Bb(e).constructor):t.apply(e,r))}function Rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Rb=function(){return!!e})()}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bb(e)}function Fb(e,t){return Fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Fb(e,t)}function $b(e,t,r){return(t=Ub(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ub(e){var t=function(e,t){if("object"!=Cb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Cb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Cb(t)?t:t+""}var Hb=function(e){function r(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return $b(e=zb(this,r,[].concat(n)),"state",{isAnimationFinished:!0,totalLength:0}),$b(e,"generateSimpleStrokeDasharray",(function(e,t){return"".concat(t,"px ").concat(e-t,"px")})),$b(e,"getStrokeDasharray",(function(t,n,o){var i=o.reduce((function(e,t){return e+t}));if(!i)return e.generateSimpleStrokeDasharray(n,t);for(var a=Math.floor(t/i),l=t%i,u=n-t,s=[],c=0,f=0;c<o.length;f+=o[c],++c)if(f+o[c]>l){s=[].concat(Db(o.slice(0,c)),[l-f]);break}var d=s.length%2===0?[0,u]:[u];return[].concat(Db(r.repeat(o,a)),Db(s),d).map((function(e){return"".concat(e,"px")})).join(", ")})),$b(e,"id",zt("recharts-line-")),$b(e,"pathRef",(function(t){e.mainCurve=t})),$b(e,"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),$b(e,"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Fb(e,t)}(r,e),n=r,o=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();e!==this.state.totalLength&&this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(t){return 0}}},{key:"renderErrorBar",value:function(e,r){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,o=n.points,i=n.xAxis,a=n.yAxis,l=n.layout,u=pr(n.children,Ip);if(!u)return null;var s=function(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:Kp(e.payload,t)}},c={clipPath:e?"url(#clipPath-".concat(r,")"):null};return t.createElement(Ur,c,u.map((function(e){return t.cloneElement(e,{key:"bar-".concat(e.props.dataKey),data:o,xAxis:i,yAxis:a,layout:l,dataPointFormatter:s})})))}},{key:"renderDots",value:function(e,n,o){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.dot,l=i.points,u=i.dataKey,s=vr(this.props,!1),c=vr(a,!0),f=l.map((function(e,t){var n=Nb(Nb(Nb({key:"dot-".concat(t),r:3},s),c),{},{value:e.value,dataKey:u,cx:e.x,cy:e.y,index:t,payload:e.payload});return r.renderDotItem(a,n)})),d={clipPath:e?"url(#clipPath-".concat(n?"":"dots-").concat(o,")"):null};return t.createElement(Ur,Tb({className:"recharts-line-dots",key:"dots"},d),f)}},{key:"renderCurveStatically",value:function(e,r,n,o){var i=this.props,a=i.type,l=i.layout,u=i.connectNulls,s=(i.ref,Mb(i,Eb)),c=Nb(Nb(Nb({},vr(s,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:r?"url(#clipPath-".concat(n,")"):null,points:e},o),{},{type:a,layout:l,connectNulls:u});return t.createElement(Nv,Tb({},c,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,r){var n=this,o=this.props,i=o.points,a=o.strokeDasharray,l=o.isAnimationActive,u=o.animationBegin,s=o.animationDuration,c=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,y=this.state,m=y.prevPoints,g=y.totalLength;return t.createElement(ka,{begin:u,duration:s,isActive:l,easing:c,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(m){var l=m.length/i.length,u=i.map((function(e,t){var r=Math.floor(t*l);if(m[r]){var n=m[r],i=Ft(n.x,e.x),a=Ft(n.y,e.y);return Nb(Nb({},e),{},{x:i(o),y:a(o)})}if(d){var u=Ft(2*p,e.x),s=Ft(h/2,e.y);return Nb(Nb({},e),{}
2,{x:u(o),y:s(o)})}return Nb(Nb({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,r)}var s,c=Ft(0,g)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));s=n.getStrokeDasharray(c,g,f)}else s=n.generateSimpleStrokeDasharray(g,c);return n.renderCurveStatically(i,e,r,{strokeDasharray:s})}))}},{key:"renderCurve",value:function(e,t){var r=this.props,n=r.points,o=r.isAnimationActive,i=this.state,a=i.prevPoints,l=i.totalLength;return o&&n&&n.length&&(!a&&l>0||!Gd()(a,n))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(n,e,t)}},{key:"render",value:function(){var e,r=this.props,n=r.hide,o=r.dot,i=r.points,a=r.className,l=r.xAxis,u=r.yAxis,s=r.top,c=r.left,f=r.width,d=r.height,p=r.isAnimationActive,h=r.id;if(n||!i||!i.length)return null;var y=this.state.isAnimationFinished,m=1===i.length,g=wt("recharts-line",a),v=l&&l.allowDataOverflow,b=u&&u.allowDataOverflow,x=v||b,w=Wt()(h)?this.id:h,S=null!==(e=vr(o,!1))&&void 0!==e?e:{r:3,strokeWidth:2},k=S.r,O=void 0===k?3:k,j=S.strokeWidth,_=void 0===j?2:j,E=(function(e){return e&&"object"===lr(e)&&"clipDot"in e}(o)?o:{}).clipDot,P=void 0===E||E,C=2*O+_;return t.createElement(Ur,{className:g},v||b?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(w)},t.createElement("rect",{x:v?c:c-f/2,y:b?s:s-d/2,width:v?f:2*f,height:b?d:2*d})),!P&&t.createElement("clipPath",{id:"clipPath-dots-".concat(w)},t.createElement("rect",{x:c-C/2,y:s-C/2,width:f+C,height:d+C}))):null,!m&&this.renderCurve(x,w),this.renderErrorBar(x,w),(m||o)&&this.renderDots(x,P,w),(!p||y)&&wy.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"repeat",value:function(e,t){for(var r=e.length%2!==0?[].concat(Db(e),[0]):e,n=[],o=0;o<t;++o)n=[].concat(Db(n),Db(r));return n}},{key:"renderDotItem",value:function(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(Vt()(e))n=e(r);else{var o=r.key,i=Mb(r,Pb),a=wt("recharts-line-dot","boolean"!==typeof e?e.className:"");n=t.createElement(Ko,Tb({key:o},i,{className:a}))}return n}}],o&&Ib(n.prototype,o),i&&Ib(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.PureComponent);function Wb(e,t,r){if(t<1)return[];if(1===t&&void 0===r)return e;for(var n=[],o=0;o<e.length;o+=t){if(void 0!==r&&!0!==r(e[o]))return;n.push(e[o])}return n}function qb(e,t,r){return function(e){var t=e.width,r=e.height,n=function(e){return(e%180+180)%180}(arguments.length>1&&void 0!==arguments[1]?arguments[1]:0),o=n*Math.PI/180,i=Math.atan(r/t),a=o>i&&o<Math.PI-i?r/Math.sin(o):t/Math.cos(o);return Math.abs(a)}({width:e.width+t.width,height:e.height+t.height},r)}function Vb(e,t,r,n,o){if(e*t<e*n||e*t>e*o)return!1;var i=r();return e*(t-e*i/2-n)>=0&&e*(t+e*i/2-o)<=0}function Gb(e){return Gb="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},Gb(e)}function Kb(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 Yb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Kb(Object(r),!0).forEach((function(t){Xb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Kb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Xb(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Gb(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Gb(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Gb(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Zb(e,t,r){var n=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,l=e.orientation,u=e.interval,s=e.tickFormatter,c=e.unit,f=e.angle;if(!o||!o.length||!n)return[];if(Dt(u)||mn.isSsr)return function(e,t){return Wb(e,t+1)}(o,"number"===typeof u&&Dt(u)?u:0);var d=[],p="top"===l||"bottom"===l?"width":"height",h=c&&"width"===p?el(c,{fontSize:t,letterSpacing:r}):{width:0,height:0},y=function(e,n){var o=Vt()(s)?s(e.value,n):e.value;return"width"===p?qb(el(o,{fontSize:t,letterSpacing:r}),h,f):el(o,{fontSize:t,letterSpacing:r})[p]},m=o.length>
2=2?At(o[1].coordinate-o[0].coordinate):1,g=function(e,t,r){var n="width"===r,o=e.x,i=e.y,a=e.width,l=e.height;return 1===t?{start:n?o:i,end:n?o+a:i+l}:{start:n?o+a:i+l,end:n?o:i}}(i,m,p);return"equidistantPreserveStart"===u?function(e,t,r,n,o){for(var i,a=(n||[]).slice(),l=t.start,u=t.end,s=0,c=1,f=l,d=function(){var t=null===n||void 0===n?void 0:n[s];if(void 0===t)return{v:Wb(n,c)};var i,a=s,d=function(){return void 0===i&&(i=r(t,a)),i},p=t.coordinate,h=0===s||Vb(e,p,d,f,u);h||(s=0,f=l,c+=1),h&&(f=p+e*(d()/2+o),s+=c)};c<=a.length;)if(i=d())return i.v;return[]}(m,g,y,o,a):(d="preserveStart"===u||"preserveStartEnd"===u?function(e,t,r,n,o,i){var a=(n||[]).slice(),l=a.length,u=t.start,s=t.end;if(i){var c=n[l-1],f=r(c,l-1),d=e*(c.coordinate+e*f/2-s);a[l-1]=c=Yb(Yb({},c),{},{tickCoord:d>0?c.coordinate-d*e:c.coordinate}),Vb(e,c.tickCoord,(function(){return f}),u,s)&&(s=c.tickCoord-e*(f/2+o),a[l-1]=Yb(Yb({},c),{},{isShow:!0}))}for(var p=i?l-1:l,h=function(t){var n,i=a[t],l=function(){return void 0===n&&(n=r(i,t)),n};if(0===t){var c=e*(i.coordinate-e*l()/2-u);a[t]=i=Yb(Yb({},i),{},{tickCoord:c<0?i.coordinate-c*e:i.coordinate})}else a[t]=i=Yb(Yb({},i),{},{tickCoord:i.coordinate});Vb(e,i.tickCoord,l,u,s)&&(u=i.tickCoord+e*(l()/2+o),a[t]=Yb(Yb({},i),{},{isShow:!0}))},y=0;y<p;y++)h(y);return a}(m,g,y,o,a,"preserveStartEnd"===u):function(e,t,r,n,o){for(var i=(n||[]).slice(),a=i.length,l=t.start,u=t.end,s=function(t){var n,s=i[t],c=function(){return void 0===n&&(n=r(s,t)),n};if(t===a-1){var f=e*(s.coordinate+e*c()/2-u);i[t]=s=Yb(Yb({},s),{},{tickCoord:f>0?s.coordinate-f*e:s.coordinate})}else i[t]=s=Yb(Yb({},s),{},{tickCoord:s.coordinate});Vb(e,s.tickCoord,c,l,u)&&(u=s.tickCoord-e*(c()/2+o),i[t]=Yb(Yb({},s),{},{isShow:!0}))},c=a-1;c>=0;c--)s(c);return i}(m,g,y,o,a),d.filter((function(e){return e.isShow})))}$b(Hb,"displayName","Line"),$b(Hb,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!mn.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),$b(Hb,"getComposedData",(function(e){var t=e.props,r=e.xAxis,n=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,l=e.bandSize,u=e.displayedData,s=e.offset,c=t.layout,f=u.map((function(e,t){var u=Kp(e,a);return"horizontal"===c?{x:lh({axis:r,ticks:o,bandSize:l,entry:e,index:t}),y:Wt()(u)?null:n.scale(u),value:u,payload:e}:{x:Wt()(u)?null:r.scale(u),y:lh({axis:n,ticks:i,bandSize:l,entry:e,index:t}),value:u,payload:e}}));return Nb({points:f,layout:c},s)}));var Qb=["viewBox"],Jb=["viewBox"],ex=["ticks"];function tx(e){return tx="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},tx(e)}function rx(){return rx=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},rx.apply(this,arguments)}function nx(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 ox(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nx(Object(r),!0).forEach((function(t){fx(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ix(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function ax(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,dx(n.key),n)}}function lx(e,t,r){return t=sx(t),function(e,t){if(t&&("object"===tx(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ux()?Reflect.construct(t,r||[],sx(e).constructor):t.apply(e,r))}function ux(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ux=function(){return!!e})()}
vendor: 4,657 bytes, line 2
2function sx(e){return sx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sx(e)}function cx(e,t){return cx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},cx(e,t)}function fx(e,t,r){return(t=dx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dx(e){var t=function(e,t){if("object"!=tx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=tx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==tx(t)?t:t+""}var px=function(e){function r(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),(t=lx(this,r,[e])).state={fontSize:"",letterSpacing:""},t}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cx(e,t)}(r,e),n=r,o=[{key:"shouldComponentUpdate",value:function(e,t){var r=e.viewBox,n=ix(e,Qb),o=this.props,i=o.viewBox,a=ix(o,Jb);return!Xt(r,i)||!Xt(n,a)||!Xt(t,this.state)}},{key:"componentDidMount",value:function(){var e=this.layerReference;if(e){var t=e.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];t&&this.setState({fontSize:window.getComputedStyle(t).fontSize,letterSpacing:window.getComputedStyle(t).letterSpacing})}}},{key:"getTickLineCoord",value:function(e){var t,r,n,o,i,a,l=this.props,u=l.x,s=l.y,c=l.width,f=l.height,d=l.orientation,p=l.tickSize,h=l.mirror,y=l.tickMargin,m=h?-1:1,g=e.tickSize||p,v=Dt(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=r=e.coordinate,a=(n=(o=s+ +!h*f)-m*g)-m*y,i=v;break;case"left":n=o=e.coordinate,i=(t=(r=u+ +!h*c)-m*g)-m*y,a=v;break;case"right":n=o=e.coordinate,i=(t=(r=u+ +h*c)+m*g)+m*y,a=v;break;default:t=r=e.coordinate,a=(n=(o=s+ +h*f)+m*g)+m*y,i=v}return{line:{x1:t,y1:n,x2:r,y2:o},tick:{x:i,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,r=t.orientation,n=t.mirror;switch(r){case"left":e=n?"start":"end";break;case"right":e=n?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,r=e.mirror,n="end";switch(t){case"left":case"right":n="middle";break;case"top":n=r?"start":"end";break;default:n=r?"end":"start"}return n}},{key:"renderAxisLine",value:function(){var e=this.props,r=e.x,n=e.y,o=e.width,i=e.height,a=e.orientation,l=e.mirror,u=e.axisLine,s=ox(ox(ox({},vr(this.props,!1)),vr(u,!1)),{},{fill:"none"});if("top"===a||"bottom"===a){var c=+("top"===a&&!l||"bottom"===a&&l);s=ox(ox({},s),{},{x1:r,y1:n+c*i,x2:r+o,y2:n+c*i})}else{var f=+("left"===a&&!l||"right"===a&&l);s=ox(ox({},s),{},{x1:r+f*o,y1:n,x2:r+f*o,y2:n+i})}return t.createElement("line",rx({},s,{className:wt("recharts-cartesian-axis-line",Ct()(u,"className"))}))}},{key:"renderTicks",value:function(e,n,o){var i=this,a=this.props,l=a.tickLine,u=a.stroke,s=a.tick,c=a.tickFormatter,f=a.unit,d=Zb(ox(ox({},this.props),{},{ticks:e}),n,o),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),y=vr(this.props,!1),m=vr(s,!1),g=ox(ox({},y),{},{fill:"none"},vr(l,!1)),v=d.map((function(e,n){var o=i.getTickLineCoord(e),a=o.line,v=o.tick,b=ox(ox(ox(ox({textAnchor:p,verticalAnchor:h},y),{},{stroke:"none",fill:u},m),v),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:c});return t.createElement(Ur,rx({className:"recharts-cartesian-axis-tick",key:"tick-".concat(e.value,"-").concat(e.coordinate,"-").concat(e.tickCoord)},nr(i.props,e,n)),l&&t.createElement("line",rx({},g,a,{className:wt("recharts-cartesian-axis-tick-line",Ct()(l,"className"))})),s&&r.renderTickItem(s,b,"".concat(Vt()(c)?c(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},v)}},{key:"render",value:function(){var e=this,r=this.props,n=r.axisLine,o=r.width,i=r.height,a=r.ticksGenerator,l=r.className;if(r.hide)return null;var u=this.props,s=u.ticks,c=ix(u,ex),f=s;return Vt()(a)&&(f=s&&s.length>0?a(this.props):a(c)),o<=0||i<=0||!f||!f.length?null:t.createElement(Ur,{className:wt("recharts-cartesian-axis",l),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),ey.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(e,r,n){return t.isValidElement(e)?t.cloneElement(e,r):Vt()(e)?e
2(r):t.createElement(Cl,rx({},r,{className:"recharts-cartesian-axis-tick-value"}),n)}}],o&&ax(n.prototype,o),i&&ax(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);function hx(e){return hx="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},hx(e)}function yx(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,wx(n.key),n)}}function mx(e,t,r){return t=vx(t),function(e,t){if(t&&("object"===hx(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,gx()?Reflect.construct(t,r||[],vx(e).constructor):t.apply(e,r))}function gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(gx=function(){return!!e})()}function vx(e){return vx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vx(e)}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bx(e,t)}function xx(e,t,r){return(t=wx(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wx(e){var t=function(e,t){if("object"!=hx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=hx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==hx(t)?t:t+""}function Sx(){return Sx=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},Sx.apply(this,arguments)}function kx(e){var r=e.xAxisId,n=hg(),o=yg(),i=dg(r);return null==i?null:t.createElement(px,Sx({},i,{className:wt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(e){return th(e,!0)}}))}fx(px,"displayName","CartesianAxis"),fx(px,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Ox=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),mx(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bx(e,t)}(r,e),n=r,(o=[{key:"render",value:function(){return t.createElement(kx,this.props)}}])&&yx(n.prototype,o),i&&yx(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);function jx(e){return jx="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},jx(e)}function _x(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,Ax(n.key),n)}}function Ex(e,t,r){return t=Cx(t),function(e,t){if(t&&("object"===jx(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Px()?Reflect.construct(t,r||[],Cx(e).constructor):t.apply(e,r))}function Px(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Px=function(){return!!e})()}
2function Cx(e){return Cx=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Cx(e)}function Mx(e,t){return Mx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mx(e,t)}function Tx(e,t,r){return(t=Ax(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ax(e){var t=function(e,t){if("object"!=jx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=jx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==jx(t)?t:t+""}function Nx(){return Nx=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},Nx.apply(this,arguments)}xx(Ox,"displayName","XAxis"),xx(Ox,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});var Dx=function(e){var r=e.yAxisId,n=hg(),o=yg(),i=pg(r);return null==i?null:t.createElement(px,Nx({},i,{className:wt("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:o},ticksGenerator:function(e){return th(e,!0)}}))},Lx=function(e){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),Ex(this,r,arguments)}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mx(e,t)}(r,e),n=r,(o=[{key:"render",value:function(){return t.createElement(Dx,this.props)}}])&&_x(n.prototype,o),i&&_x(n,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o,i}(t.Component);Tx(Lx,"displayName","YAxis"),Tx(Lx,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});var Ix=function(e){var r=e.chartName,n=e.GraphicalChild,o=e.defaultTooltipEventType,i=void 0===o?"axis":o,a=e.validateTooltipEventTypes,l=void 0===a?["axis"]:a,u=e.axisComponents,s=e.legendContent,c=e.formatAxisMap,f=e.defaultProps,d=function(e,t){var r=t.graphicalItems,n=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,l=t.dataEndIndex,s=e.barSize,c=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=Ob(c),y=h.numericAxisName,m=h.cateAxisName,g=function(e){return!(!e||!e.length)&&e.some((function(e){var t=sr(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(r),v=[];return r.forEach((function(r,h){var b=gb(e.data,{graphicalItems:[r],dataStartIndex:a,dataEndIndex:l}),x=void 0!==r.type.defaultProps?cb(cb({},r.type.defaultProps),r.props):r.props,w=x.dataKey,S=x.maxBarSize,k=x["".concat(y,"Id")],O=x["".concat(m,"Id")],j=u.reduce((function(e,r){var n=t["".concat(r.axisType,"Map")],o=x["".concat(r.axisType,"Id")];n&&n[o]||"zAxis"===r.axisType||Dr(!1);var i=n[o];return cb(cb({},e),{},fb(fb({},r.axisType,i),"".concat(r.axisType,"Ticks"),th(i)))}),{}),_=j[m],E=j["".concat(m,"Ticks")],P=n&&n[k]&&n[k].hasStack&&function(e,t){var r,n=(null!==(r=e.type)&&void 0!==r&&r.defaultProps?Vp(Vp({},e.type.defaultProps),e.props):e.props).stackId;if(Lt(n)){var o=t[n];if(o){var i=o.items.indexOf(e);return i>=0?o.stackedData[i]:null}}return null}(r,n[k].stackGroups),C=sr(r.type).indexOf("Bar")>=0,M=ph(_,E),T=[],A=g&&function(e){var t=e.barSize,r=e.totalSize,n=e.stackGroups,o=void 0===n?{}:n;if(!o)return{};for(var i={},a=Object.keys(o),l=0,u=a.length;l<u;l++)for(var s=o[a[l]].stackGroups,c=Object.keys(s),f=0,d=c.length;f<d;f++){var p=s[c[f]],h=p.items,y=p.cateAxisId,m=h.filter((function(e){return sr(e.type).indexOf("Bar")>=0}));if(m&&m.length){var g=m[0].type.defaultProps,v=void 0!==g?Vp(Vp({},g),m[0].props):m[0].props,b=v.barSize,x=v[y];i[x]||(i[x]=[]);var w=Wt()(b)?t:b;i[x].push({item:m[0],stackList:m.slice(1),barSize:Wt()(w)?void 0:Rt(w,r,0)})}}return i}({barSize:s,stackGroups:n,totalSize:_b(j,m)});if(C){var N,D,L=Wt()(S)?p:S,I=null!==(N=null!==(D=ph(_,E,!0))&&void 0!==D?D:L)&&void 0!==N?N:0;T=function(e){var t=e.barGap,r=e.barCategoryGap,n=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,l=i.length;if(l<1)return null;var u,s=Rt(t,n,0,!0),c=[];if(i[0].barSize===+i[0].barSize){var f=!1,d=n/l,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(l-1)*s)>=n&&(p-=(l-1)*s,s=0),p>=n&&d>0&&(f=!0,p=l*(d*=.9));var h={offset:((n-p)/2|0)-s,size:0};u=i.reduce((function(e,t){var r={item:t.item,position:{offset:h.offset+h.size+s,size:f?d:t.barSize}},n=[].concat(Hp(e),[r]);return h=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:h})})),n}),c)}else{var y=Rt(r,n,0,!0);n-2*y-(l-1)*s<=0&&(s=0);var m=(n-2*y-(l-1)*s)/l;m>1&&(m>>=0);var g=a===+a?Math.min(m,a):m;u=i.reduce((function(e,t,r){var n=[].concat(Hp(e),[{item:t.item,position:{offset:y+(m+s)*r+(m-g)/2,size:g}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:n[n.length-1].position})})),n}),c)}return u}({barGap:f,barCategoryGap:d,bandSize:I!==M?I:M,sizeList:A[O],maxBarSize:L}),I!==M&&(T=T.map((function(e){return cb(cb({},e),{},{position:cb(cb({},e.position),{},{offset:e.position.offset-I/2})})})))}var z,R,B=r&&r.type&&r.type.getComposedData;B&&v.push({props:cb(cb({},B(cb(cb({},j),{},{displayedData:b,props:e,dataKey:w,item:r,bandSize:M,barPosition:T,offset:o,stackedData:P,layout:c,dataStartIndex:a,dataEndIndex:l}))),{},fb(fb(fb({key:r.key||"item-".concat(h)},y,j[y]),m,j[m]),"animationId",i)),childIndex:(z=r,R=e.children,dr(R).indexOf(z)),item:r})})),v},p=function(e,t){var o=e.props,i=e.dataStartIndex,a=e.dataEndIndex,l=e.updateId;if(!yr({props:o}))return null;var s=o.children,f=o.layout,p=o.stackOffset,h=o.data,y=o.reverseStackOrder,m=Ob(f),g=m.numericAxisName,v=m.cateAxisName,b=pr(s,n),x=function(e,t,r,n,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o,i=null!==(o=t.type)&&void 0!==o&&o.defaultProps?Vp(Vp({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(i.hide)return e;var l=i[r],u=e[l]||{hasStack:!1,stackGroups:{}};if(Lt(a)){var s=u.stackGroups[a]||{numericAxisId:r,cateAxisId:n,items:[]};s.items.push(t),u.hasStack=!0,u.stackGroups[a]=s}else u.stackGroups[zt("_stackId_")]={numericAxisId:r,cateAxisId:n,items:[t]};return Vp(Vp({},e),{},Gp({},l,u))}),{});return Object.keys(a).reduce((function(t,i){var l=a[i];return l.hasStack&&(l.stackGroups=Object.keys(l.stackGroups).reduce((function(t,i){var a=l.stackGroups[i];return Vp(Vp({},t),{},Gp({},i,{numericAxisId:r,cateAxisId:n,items:a.items,stackedData:ah(e,a.items,o)}))}),{})),Vp(Vp({},t),{},Gp({},i,l))}),{})}(h,b,"".concat(g,"Id"),"".concat(v,"Id"),p,y),w=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return cb(cb({},e),{},fb({},r,Sb(o,cb(cb({},t),{},{graphicalItems:b,stackGroups:t.axisType===g&&x,dataStartIndex:i,dataEndIndex:a}))))}),{}),S=jb(cb(cb({},w),{},{props:o,graphicalItems:b}),null===t||void 0===t?void 0:t.legendBBox);
2Object.keys(w).forEach((function(e){w[e]=c(o,w[e],S,e.replace("Map",""),r)}));var k=function(e){var t=Bt(e),r=th(t,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Ar()(r,(function(e){return e.coordinate})),tooltipAxis:t,tooltipAxisBandSize:ph(t,r)}}(w["".concat(v,"Map")]),O=d(o,cb(cb({},w),{},{dataStartIndex:i,dataEndIndex:a,updateId:l,graphicalItems:b,stackGroups:x,offset:S}));return cb(cb({formattedGraphicalItems:O,graphicalItems:b,offset:S,stackGroups:x},k),w)},h=function(e){function n(e){var o,i,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),fb(a=rb(this,n,[e]),"eventEmitterSymbol",Symbol("rechartsEventEmitter")),fb(a,"accessibilityManager",new Jg),fb(a,"handleLegendBBoxUpdate",(function(e){if(e){var t=a.state,r=t.dataStartIndex,n=t.dataEndIndex,o=t.updateId;a.setState(cb({legendBBox:e},p({props:a.props,dataStartIndex:r,dataEndIndex:n,updateId:o},cb(cb({},a.state),{},{legendBBox:e}))))}})),fb(a,"handleReceiveSyncEvent",(function(e,t,r){if(a.props.syncId===e){if(r===a.eventEmitterSymbol&&"function"!==typeof a.props.syncMethod)return;a.applySyncEvent(t)}})),fb(a,"handleBrushChange",(function(e){var t=e.startIndex,r=e.endIndex;if(t!==a.state.dataStartIndex||r!==a.state.dataEndIndex){var n=a.state.updateId;a.setState((function(){return cb({dataStartIndex:t,dataEndIndex:r},p({props:a.props,dataStartIndex:t,dataEndIndex:r,updateId:n},a.state))})),a.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),fb(a,"handleMouseEnter",(function(e){var t=a.getMouseInfo(e);if(t){var r=cb(cb({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseEnter;Vt()(n)&&n(r,e)}})),fb(a,"triggeredAfterMouseMove",(function(e){var t=a.getMouseInfo(e),r=t?cb(cb({},t),{},{isTooltipActive:!0}):{isTooltipActive:!1};a.setState(r),a.triggerSyncEvent(r);var n=a.props.onMouseMove;Vt()(n)&&n(r,e)})),fb(a,"handleItemMouseEnter",(function(e){a.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),fb(a,"handleItemMouseLeave",(function(){a.setState((function(){return{isTooltipActive:!1}}))})),fb(a,"handleMouseMove",(function(e){e.persist(),a.throttleTriggeredAfterMouseMove(e)})),fb(a,"handleMouseLeave",(function(e){a.throttleTriggeredAfterMouseMove.cancel();var t={isTooltipActive:!1};a.setState(t),a.triggerSyncEvent(t);var r=a.props.onMouseLeave;Vt()(r)&&r(t,e)})),fb(a,"handleOuterEvent",(function(e){var t,r=function(e){var t=e&&e.type;return t&&ur[t]?ur[t]:null}(e),n=Ct()(a.props,"".concat(r));r&&Vt()(n)&&n(null!==(t=/.*touch.*/i.test(r)?a.getMouseInfo(e.changedTouches[0]):a.getMouseInfo(e))&&void 0!==t?t:{},e)})),fb(a,"handleClick",(function(e){var t=a.getMouseInfo(e);if(t){var r=cb(cb({},t),{},{isTooltipActive:!0});a.setState(r),a.triggerSyncEvent(r);var n=a.props.onClick;Vt()(n)&&n(r,e)}})),fb(a,"handleMouseDown",(function(e){var t=a.props.onMouseDown;Vt()(t)&&t(a.getMouseInfo(e),e)})),fb(a,"handleMouseUp",(function(e){var t=a.props.onMouseUp;Vt()(t)&&t(a.getMouseInfo(e),e)})),fb(a,"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.throttleTriggeredAfterMouseMove(e.changedTouches[0])})),fb(a,"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseDown(e.changedTouches[0])})),fb(a,"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&a.handleMouseUp(e.changedTouches[0])})),fb(a,"handleDoubleClick",(function(e){var t=a.props.onDoubleClick;Vt()(t)&&t(a.getMouseInfo(e),e)})),fb(a,"handleContextMenu",(function(e){var t=a.props.onContextMenu;Vt()(t)&&t(a.getMouseInfo(e),e)})),fb(a,"triggerSyncEvent",(function(e){void 0!==a.props.syncId&&Gg.emit(Kg,a.props.syncId,e,a.eventEmitterSymbol)})),fb(a,"applySyncEvent",(function(e){var t=a.props,r=t.layout,n=t.syncMethod,o=a.state.updateId,i=e.dataStartIndex,l=e.dataEndIndex;if(void 0!==e.dataStartIndex||void 0!==e.dataEndIndex)a.setState(cb({dataStartIndex:i,dataEndIndex:l},p({props:a.props,dataStartIndex:i,dataEndIndex:l,updateId:o},a.state)));else if(void 0!==e.activeTooltipIndex){var u=e.chartX,s=e.chartY,c=e.activeTooltipIndex,f=a.state,d=f.offset,h=f.tooltipTicks;if(!d)return;if("function"===typeof n)c=n(h,e);else if("value"===n){c=-1;for(var y=0;
2y<h.length;y++)if(h[y].value===e.activeLabel){c=y;break}}var m=cb(cb({},d),{},{x:d.left,y:d.top}),g=Math.min(u,m.x+m.width),v=Math.min(s,m.y+m.height),b=h[c]&&h[c].value,x=bb(a.state,a.props.data,c),w=h[c]?{x:"horizontal"===r?h[c].coordinate:g,y:"horizontal"===r?v:h[c].coordinate}:yb;a.setState(cb(cb({},e),{},{activeLabel:b,activeCoordinate:w,activePayload:x,activeTooltipIndex:c}))}else a.setState(e)})),fb(a,"renderCursor",(function(e){var n,o=a.state,i=o.isTooltipActive,l=o.activeCoordinate,u=o.activePayload,s=o.offset,c=o.activeTooltipIndex,f=o.tooltipAxisBandSize,d=a.getTooltipEventType(),p=null!==(n=e.props.active)&&void 0!==n?n:i,h=a.props.layout,y=e.key||"_recharts-cursor";return t.createElement(Kv,{key:y,activeCoordinate:l,activePayload:u,activeTooltipIndex:c,chartName:r,element:e,isActive:p,layout:h,offset:s,tooltipAxisBandSize:f,tooltipEventType:d})})),fb(a,"renderPolarAxis",(function(e,r,n){var o=Ct()(e,"type.axisType"),i=Ct()(a.state,"".concat(o,"Map")),l=e.type.defaultProps,u=void 0!==l?cb(cb({},l),e.props):e.props,s=i&&i[u["".concat(o,"Id")]];return(0,t.cloneElement)(e,cb(cb({},s),{},{className:wt(o,s.className),key:e.key||"".concat(r,"-").concat(n),ticks:th(s,!0)}))})),fb(a,"renderPolarGrid",(function(e){var r=e.props,n=r.radialLines,o=r.polarAngles,i=r.polarRadius,l=a.state,u=l.radiusAxisMap,s=l.angleAxisMap,c=Bt(u),f=Bt(s),d=f.cx,p=f.cy,h=f.innerRadius,y=f.outerRadius;return(0,t.cloneElement)(e,{polarAngles:Array.isArray(o)?o:th(f,!0).map((function(e){return e.coordinate})),polarRadius:Array.isArray(i)?i:th(c,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:y,key:e.key||"polar-grid",radialLines:n})})),fb(a,"renderLegend",(function(){var e=a.state.formattedGraphicalItems,r=a.props,n=r.children,o=r.width,i=r.height,l=a.props.margin||{},u=o-(l.left||0)-(l.right||0),c=$p({children:n,formattedGraphicalItems:e,legendWidth:u,legendContent:s});if(!c)return null;var f=c.item,d=eb(c,Yv);return(0,t.cloneElement)(f,cb(cb({},d),{},{chartWidth:o,chartHeight:i,margin:l,onBBoxUpdate:a.handleLegendBBoxUpdate}))})),fb(a,"renderTooltip",(function(){var e,r=a.props,n=r.children,o=r.accessibilityLayer,i=hr(n,Tn);if(!i)return null;var l=a.state,u=l.isTooltipActive,s=l.activeCoordinate,c=l.activePayload,f=l.activeLabel,d=l.offset,p=null!==(e=i.props.active)&&void 0!==e?e:u;return(0,t.cloneElement)(i,{viewBox:cb(cb({},d),{},{x:d.left,y:d.top}),active:p,label:f,payload:p?c:[],coordinate:s,accessibilityLayer:o})})),fb(a,"renderBrush",(function(e){var r=a.props,n=r.margin,o=r.data,i=a.state,l=i.offset,u=i.dataStartIndex,s=i.dataEndIndex,c=i.updateId;return(0,t.cloneElement)(e,{key:e.key||"_recharts-brush",onChange:nh(a.handleBrushChange,e.props.onChange),data:o,x:Dt(e.props.x)?e.props.x:l.left,y:Dt(e.props.y)?e.props.y:l.top+l.height+l.brushBottom-(n.bottom||0),width:Dt(e.props.width)?e.props.width:l.width,startIndex:u,endIndex:s,updateId:"brush-".concat(c)})})),fb(a,"renderReferenceElement",(function(e,r,n){if(!e)return null;var o=a.clipPathId,i=a.state,l=i.xAxisMap,u=i.yAxisMap,s=i.offset,c=e.type.defaultProps||{},f=e.props,d=f.xAxisId,p=void 0===d?c.xAxisId:d,h=f.yAxisId,y=void 0===h?c.yAxisId:h;return(0,t.cloneElement)(e,{key:e.key||"".concat(r,"-").concat(n),xAxis:l[p],yAxis:u[y],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:o})})),fb(a,"renderActivePoints",(function(e){var t=e.item,r=e.activePoint,o=e.basePoint,i=e.childIndex,a=e.isRange,l=[],u=t.props.key,s=void 0!==t.item.type.defaultProps?cb(cb({},t.item.type.defaultProps),t.item.props):t.item.props,c=s.activeDot,f=cb(cb({index:i,dataKey:s.dataKey,cx:r.x,cy:r.y,r:4,fill:Xp(t.item),strokeWidth:2,stroke:"#fff",payload:r.payload,value:r.value},vr(c,!1)),rr(c));return l.push(n.renderActiveDot(c,f,"".concat(u,"-activePoint-").concat(i))),o?l.push(n.renderActiveDot(c,cb(cb({},f),{},{cx:o.x,cy:o.y}),"".concat(u,"-basePoint-").concat(i))):a&&l.push(null),l})),fb(a,"renderGraphicChild",(function(e,r,n){var o=a.filterFormatItem(e,r,n);if(!o)return null;var i=a.getTooltipEventType(),l=a.state,u=l.isTooltipActive,s=l.tooltipAxis,c=l.activeTooltipIndex,f=l.activeLabel,d=hr(a.props.children,Tn),p=o.props,h=p.points,y=p.isRange,m=p.baseLine,g=void 0!==o.item.type.defaultProps?cb(cb({},o.item.type.defaultProps),o.item.props):o.item.props,v=g.activeDot,b=g.hide,x=g.activeBar,w=g.activeShape,S=Boolean(!b&&u&&d&&(v||x||w)),k={};"axis"!==i&&d&&"click"===d.props.trigger?k={onClick:nh(a.handleItemMouseEnter,e.props.onClick)}:"axis"!==i&&(k={onMouseLeave:nh(a.handleItemMouseLeave,e.props.onMouseLeave),onMouseEnter:nh(a.handleItemMouseEnter,e.props.onMouseEnter)});var O=(0,t.cloneElement)(e,cb(cb({},o.props),k));if(S){if(!(c>=0)){var j,_=(null!==(j=a.getItemByXY(a.state.activeCoordinate))&&void 0!==j?j:{graphicalItem:O}).graphicalItem,E=_.item,P=void 0===E?e:E,C=_.childIndex,M=cb(cb(cb({},o.props),k),{},{activeIndex:C});return[(0,t.cloneElement)(P,M),null,null]}var T,A;if(s.dataKey&&!s.allowDuplicatedCategory){var N="function"===typeof s.dataKey?function(e){return"function"===typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());T=$t(h,N,f),A=y&&m&&$t(m,N,f)}else T=null===h||void 0===h?void 0:h[c],A=y&&m&&m[c];if(w||x){var D=void 0!==e.props.activeIndex?e.props.activeIndex:c;return[(0,t.cloneElement)(e,cb(cb(cb({},o.props),k),{},{activeIndex:D})),null,null]}if(!Wt()(T))return[O].concat(ab(a.renderActivePoints({item:o,activePoint:T,basePoint:A,childIndex:c,isRange:y})))}return y?[O,null,null]:[O,null]})),fb(a,"renderCustomized",(function(e,r,n){return(0,t.cloneElement)(e,cb(cb({key:"recharts-customized-".concat(n)},a.props),a.state))})),fb(a,"renderMap",{CartesianGrid:{handler:mb,once:!0},ReferenceArea:{handler:a.renderReferenceElement},ReferenceLine:{handler:mb},ReferenceDot:{handler:a.renderReferenceElement},XAxis:{handler:mb},YAxis:{handler:mb},Brush:{handler:a.renderBrush,once:!0},Bar:{handler:a.renderGraphicChild},Line:{handler:a.renderGraphicChild},Area:{handler:a.renderGraphicChild},Radar:{handler:a.renderGraphicChild},RadialBar:{handler:a.renderGraphicChild},Scatter:{handler:a.renderGraphicChild},Pie:{handler:a.renderGraphicChild},Funnel:{handler:a.renderGraphicChild},Tooltip:{handler:a.renderCursor,once:!0},PolarGrid:{handler:a.renderPolarGrid,once:!0},PolarAngleAxis:{handler:a.renderPolarAxis},PolarRadiusAxis:{handler:a.renderPolarAxis},Customized:{handler:a.renderCustomized}}),a.clipPathId="".concat(null!==(o=e.id)&&void 0!==o?o:zt("recharts"),"-clip"),a.throttleTriggeredAfterMouseMove=kt()(a.triggeredAfterMouseMove,null!==(i=e.throttleDelay)&&void 0!==i?i:1e3/60),a.state={},a}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ib(e,t)}(n,e),o=n,a=[{key:"componentDidMount",value:function(){var e,t;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var e=this.props,t=e.children,r=e.data,n=e.he
vendor: 5,360 bytes, line 2
2ight,o=e.layout,i=hr(t,Tn);if(i){var a=i.props.defaultIndex;if(!("number"!==typeof a||a<0||a>this.state.tooltipTicks.length-1)){var l=this.state.tooltipTicks[a]&&this.state.tooltipTicks[a].value,u=bb(this.state,r,a,l),s=this.state.tooltipTicks[a].coordinate,c=(this.state.offset.top+n)/2,f="horizontal"===o?{x:s,y:c}:{y:s,x:c},d=this.state.formattedGraphicalItems.find((function(e){return"Scatter"===e.item.type.name}));d&&(f=cb(cb({},f),d.props.points[a].tooltipPosition),u=d.props.points[a].tooltipPayload);var p={activeTooltipIndex:a,isTooltipActive:!0,activeLabel:l,activePayload:u,activeCoordinate:f};this.setState(p),this.renderCursor(i),this.accessibilityManager.setIndex(a)}}}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(r=this.props.margin.left)&&void 0!==r?r:0,top:null!==(n=this.props.margin.top)&&void 0!==n?n:0}}),null):null;var r,n}},{key:"componentDidUpdate",value:function(e){br([hr(e.children,Tn)],[hr(this.props.children,Tn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=hr(this.props.children,Tn);if(e&&"boolean"===typeof e.props.shared){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:i}return i}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,r=this.container,n=r.getBoundingClientRect(),o={top:(t=n).top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft},i={chartX:Math.round(e.pageX-o.left),chartY:Math.round(e.pageY-o.top)},a=n.width/r.offsetWidth||1,l=this.inRange(i.chartX,i.chartY,a);if(!l)return null;var u=this.state,s=u.xAxisMap,c=u.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var f=Bt(s).scale,d=Bt(c).scale,p=f&&f.invert?f.invert(i.chartX):null,h=d&&d.invert?d.invert(i.chartY):null;return cb(cb({},i),{},{xValue:p,yValue:h})}var y=xb(this.state,this.props.data,this.props.layout,l);return y?cb(cb({},i),y):null}},{key:"inRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this.props.layout,o=e/r,i=t/r;if("horizontal"===n||"vertical"===n){var a=this.state.offset;return o>=a.left&&o<=a.left+a.width&&i>=a.top&&i<=a.top+a.height?{x:o,y:i}:null}var l=this.state,u=l.angleAxisMap,s=l.radiusAxisMap;if(u&&s){var c=Bt(u);return Hh({x:o,y:i},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),r=hr(e,Tn),n={};return r&&"axis"===t&&(n="click"===r.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu}),cb(cb({},rr(this.props,this.handleOuterEvent)),n)}},{key:"addListener",value:function(){Gg.on(Kg,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Gg.removeListener(Kg,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(e,t,r){for(var n=this.state.formattedGraphicalItems,o=0,i=n.length;o<i;o++){var a=n[o];if(a.item===e||a.props.key===e.key||t===sr(a.item.type)&&r===a.childIndex)return a}return null}},{key:"renderClipPath",value:function(){var e=this.clipPathId,r=this.state.offset,n=r.left,o=r.top,i=r.height,a=r.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:n,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=Jv(t,2),n=r[0],o=r[1];return cb(cb({},e),{},fb({},n,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var r=Jv(t,2),n=r[0],o=r[1];return cb(cb({},e),{},fb({},n,o.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t;return null===(t=this.state.xAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getYScaleByAxisId",value:function(e){var t;return null===(t=this.state.yAxisMap)||void 0===t||null===(t=t[e])||void 0===t?void 0:t.scale}},{key:"getItemByXY",value:function(e){var t=this.state,r=t.formattedGraphicalItems,n=t.activeItem;if(r&&r.length)for(var o=0,i=r.length;o<i;o++){var a=r[o],l=a.props,u=a.item,s=void 0!==u.type.defaultProps?cb(cb({},u.type.defaultProps),u.props):u.props,c=sr(u.type);if("Bar"===c){var f=(l.data||[]).find((function(t){return Aa(e,t)}));if(f)return{graphicalItem:a,payload:f}}else if("RadialBar"===c){var d=(l.data||[]).find((function(t){return Hh(e,t)}));if(d)return{graphicalItem:a,payload:d}}else if(em(a,n)||tm(a,n)||rm(a,n)){var p=am({graphicalItem:a,activeTooltipItem:n,itemData:s.data}),h=void 0===s.activeIndex?p:s.activeIndex;return{graphicalItem:cb(cb({},a),{},{childIndex:h}),payload:rm(a,n)?s.data[p]:a.props.data[p]}}}return null}},{key:"render",value:function(){var e=this;
2if(!yr(this))return null;var r,n,o=this.props,i=o.children,a=o.className,l=o.width,u=o.height,s=o.style,c=o.compact,f=o.title,d=o.desc,p=eb(o,Xv),h=vr(p,!1);if(c)return t.createElement(fg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement(Rr,Qv({},h,{width:l,height:u,title:f,desc:d}),this.renderClipPath(),wr(i,this.renderMap)));this.props.accessibilityLayer&&(h.tabIndex=null!==(r=this.props.tabIndex)&&void 0!==r?r:0,h.role=null!==(n=this.props.role)&&void 0!==n?n:"application",h.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},h.onFocus=function(){e.accessibilityManager.focus()});var y=this.parseEventsOfWrapper();return t.createElement(fg,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},t.createElement("div",Qv({className:wt("recharts-wrapper",a),style:cb({position:"relative",cursor:"default",width:l,height:u},s)},y,{ref:function(t){e.container=t}}),t.createElement(Rr,Qv({},h,{width:l,height:u,title:f,desc:d,style:hb}),this.renderClipPath(),wr(i,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}],a&&tb(o.prototype,a),u&&tb(o,u),Object.defineProperty(o,"prototype",{writable:!1}),o;var o,a,u}(t.Component);fb(h,"displayName",r),fb(h,"defaultProps",cb({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),fb(h,"getDerivedStateFromProps",(function(e,t){var r=e.dataKey,n=e.data,o=e.children,i=e.width,a=e.height,l=e.layout,u=e.stackOffset,s=e.margin,c=t.dataStartIndex,f=t.dataEndIndex;if(void 0===t.updateId){var d=kb(e);return cb(cb(cb({},d),{},{updateId:0},p(cb(cb({props:e},d),{},{updateId:0}),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:u,prevMargin:s,prevChildren:o})}if(r!==t.prevDataKey||n!==t.prevData||i!==t.prevWidth||a!==t.prevHeight||l!==t.prevLayout||u!==t.prevStackOffset||!Xt(s,t.prevMargin)){var h=kb(e),y={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},m=cb(cb({},xb(t,n,l)),{},{updateId:t.updateId+1}),g=cb(cb(cb({},h),y),m);return cb(cb(cb({},g),p(cb({props:e},g),t)),{},{prevDataKey:r,prevData:n,prevWidth:i,prevHeight:a,prevLayout:l,prevStackOffset:u,prevMargin:s,prevChildren:o})}if(!br(o,t.prevChildren)){var v,b,x,w,S=hr(o,Nh),k=S&&null!==(v=null===(b=S.props)||void 0===b?void 0:b.startIndex)&&void 0!==v?v:c,O=S&&null!==(x=null===(w=S.props)||void 0===w?void 0:w.endIndex)&&void 0!==x?x:f,j=k!==c||O!==f,_=!Wt()(n)&&!j?t.updateId:t.updateId+1;return cb(cb({updateId:_},p(cb(cb({props:e},t),{},{updateId:_,dataStartIndex:k,dataEndIndex:O}),t)),{},{prevChildren:o,dataStartIndex:k,dataEndIndex:O})}return null})),fb(h,"renderActiveDot",(function(e,r,n){var o;return o=(0,t.isValidElement)(e)?(0,t.cloneElement)(e,r):Vt()(e)?e(r):t.createElement(Ko,r),t.createElement(Ur,{className:"recharts-active-dot",key:n},o)}));var y=(0,t.forwardRef)((function(e,r){return t.createElement(h,Qv({},e,{ref:r}))}));return y.displayName=h.displayName,y}({chartName:"LineChart",GraphicalChild:Hb,axisComponents:[{axisType:"xAxis",AxisComp:Ox},{axisType:"yAxis",AxisComp:Lx}],formatAxisMap:function(t,r,n,o,i){var a=t.width,l=t.height,u=t.layout,s=t.children,c=Object.keys(r),f={left:n.left,leftMirror:n.left,right:a-n.right,rightMirror:a-n.right,top:n.top,topMirror:n.top,bottom:l-n.bottom,bottomMirror:l-n.bottom},d=!!hr(s,Mm);return c.reduce((function(a,l){var s,c,p,h,y,m=r[l],g=m.orientation,v=m.domain,b=m.padding,x=void 0===b?{}:b,w=m.mirror,S=m.reversed,k="".concat(g).concat(w?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var O=v[1]-v[0],j=1/0,_=m.categoricalDomain.sort();if(_.forEach((function(e,t){t>0&&(j=Math.min((e||0)-(_[t-1]||0),j))})),Number.isFinite(j)){var E=j/O,P="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=E*P/2),"no-gap"===m.padding){var C=Rt(t.barCategoryGap,E*P),M=E*P/2;s=M-C-(M-C)/P*C}}}c="xAxis"===o?[n.left+(x.left||0)+(s||0),n.left+n.width-(x.right||0)-(s||0)]:"yAxis"===o?"horizontal"===u?[n.top+n.height-(x.bottom||0),n.top+(x.top||0)]:[n.top+(x.top||0)+(s||0),n.top+n.height-(x.bottom||0)-(s||0)]:m.range,S&&(c=[c[1],c[0]]);var T=function(t,r,n){var o=t.scale,i=t.type,a=t.layout,l=t.axisType;
2if("auto"===o)return"radial"===a&&"radiusAxis"===l?{scale:Wa(),realScaleType:"band"}:"radial"===a&&"angleAxis"===l?{scale:ps(),realScaleType:"linear"}:"category"===i&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:Va(),realScaleType:"point"}:"category"===i?{scale:Wa(),realScaleType:"band"}:{scale:ps(),realScaleType:"linear"};if(jt()(o)){var u="scale".concat(Nn()(o));return{scale:(e[u]||Va)(),realScaleType:e[u]?u:"point"}}return Vt()(o)?{scale:o}:{scale:Va(),realScaleType:"point"}}(m,i,d),A=T.scale,N=T.realScaleType;A.domain(v).range(c),function(e){var t=e.domain();if(t&&!(t.length<=2)){var r=t.length,n=e.range(),o=Math.min(n[0],n[1])-oh,i=Math.max(n[0],n[1])+oh,a=e(t[0]),l=e(t[r-1]);(a<o||a>i||l<o||l>i)&&e.domain([t[0],t[r-1]])}}(A);var D=function(e,t){var r=t.realScaleType,n=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,l=r||t.scale;if("auto"!==l&&"linear"!==l)return null;if(o&&"number"===n&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain();if(!u.length)return null;var s=wp(u,o,a);return e.domain([Hd()(s),$d()(s)]),{niceTicks:s}}if(o&&"number"===n){var c=e.domain();return{niceTicks:Sp(c,o,a)}}return null}(A,Dm(Dm({},m),{},{realScaleType:N}));"xAxis"===o?(y="top"===g&&!w||"bottom"===g&&w,p=n.left,h=f[k]-y*m.height):"yAxis"===o&&(y="left"===g&&!w||"right"===g&&w,p=f[k]-y*m.width,h=n.top);var L=Dm(Dm(Dm({},m),D),{},{realScaleType:N,x:p,y:h,scale:A,width:"xAxis"===o?n.width:m.width,height:"yAxis"===o?n.height:m.height});return L.bandSize=ph(L,D),m.hide||"xAxis"!==o?m.hide||(f[k]+=(y?-1:1)*L.width):f[k]+=(y?-1:1)*L.height,Dm(Dm({},a),{},Lm({},l,L))}),{})}}),zx=["x1","y1","x2","y2","key"],Rx=["offset"];function Bx(e){return Bx="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},Bx(e)}function Fx(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 $x(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fx(Object(r),!0).forEach((function(t){Ux(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fx(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Ux(e,t,r){return t=function(e){var t=function(e,t){if("object"!=Bx(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=Bx(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Bx(t)?t:t+""}(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hx(){return Hx=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},Hx.apply(this,arguments)}function Wx(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var qx=function(e){var r=e.fill;if(!r||"none"===r)return null;var n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.ry;return t.createElement("rect",{x:o,y:i,ry:u,width:a,height:l,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function Vx(e,r){var n;if(t.isValidElement(e))n=t.cloneElement(e,r);else if(Vt()(e))n=e(r);else{var o=r.x1,i=r.y1,a=r.x2,l=r.y2,u=r.key,s=Wx(r,zx),c=vr(s,!1),f=(c.offset,Wx(c,Rx));n=t.createElement("line",Hx({},f,{x1:o,y1:i,x2:a,y2:l,fill:"none",key:u}))}return n}function Gx(e){var r=e.x,n=e.width,o=e.horizontal,i=void 0===o||o,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(t,o){var a=$x($x({},e),{},{x1:r,y1:t,x2:r+n,y2:t,key:"line-".concat(o),index:o});return Vx(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Kx(e){var r=e.y,n=e.height,o=e.vertical,i=void 0===o||o,a=e.verticalPoints;if(!i||!a||!a.length)return null;var l=a.map((function(t,o){var a=$x($x({},e),{},{x1:t,y1:r,x2:t,y2:r+n,key:"line-".concat(o),index:o});return Vx(i,a)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Yx(e){var r=e.horizontalFill,n=e.fillOpacity,o=e.x,i=e.y,a=e.width,l=e.height,u=e.horizontalPoints,s=e.horizontal;if(!(void 0===s||s)||!r||!r.length)return null;var c=u.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var f=c.map((function(e,u){var s=!c[u+1]?i+l-e:c[u+1]-e;if(s<=0)return null;var f=u%r.length;return t.createElement("rect",{key:"react-".concat(u),y:e,x:o,height:s,width:a,stroke:"none",fill:r[f],fillOpacity:n,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Xx(e){var r=e.vertical,n=void 0===r||r,o=e.verticalFill,i=e.fillOpacity,a=e.x,l=e.y,u=e.width,s=e.he
2ight,c=e.verticalPoints;if(!n||!o||!o.length)return null;var f=c.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==f[0]&&f.unshift(0);var d=f.map((function(e,r){var n=!f[r+1]?a+u-e:f[r+1]-e;if(n<=0)return null;var c=r%o.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:l,width:n,height:s,stroke:"none",fill:o[c],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Zx=function(e,t){var r=e.xAxis,n=e.width,o=e.height,i=e.offset;return eh(Zb($x($x($x({},px.defaultProps),r),{},{ticks:th(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.left,i.left+i.width,t)},Qx=function(e,t){var r=e.yAxis,n=e.width,o=e.height,i=e.offset;return eh(Zb($x($x($x({},px.defaultProps),r),{},{ticks:th(r,!0),viewBox:{x:0,y:0,width:n,height:o}})),i.top,i.top+i.height,t)},Jx={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ew(e){var r,n,o,i,a,l,u=hg(),s=yg(),c=(0,t.useContext)(lg),f=$x($x({},e),{},{stroke:null!==(r=e.stroke)&&void 0!==r?r:Jx.stroke,fill:null!==(n=e.fill)&&void 0!==n?n:Jx.fill,horizontal:null!==(o=e.horizontal)&&void 0!==o?o:Jx.horizontal,horizontalFill:null!==(i=e.horizontalFill)&&void 0!==i?i:Jx.horizontalFill,vertical:null!==(a=e.vertical)&&void 0!==a?a:Jx.vertical,verticalFill:null!==(l=e.verticalFill)&&void 0!==l?l:Jx.verticalFill,x:Dt(e.x)?e.x:c.left,y:Dt(e.y)?e.y:c.top,width:Dt(e.width)?e.width:c.width,height:Dt(e.height)?e.height:c.height}),d=f.x,p=f.y,h=f.width,y=f.height,m=f.syncWithTicks,g=f.horizontalValues,v=f.verticalValues,b=function(){var e=(0,t.useContext)(og);return Bt(e)}(),x=function(){var e=(0,t.useContext)(ig);return tg()(e,(function(e){return ay()(e.domain,Number.isFinite)}))||Bt(e)}();if(!Dt(h)||h<=0||!Dt(y)||y<=0||!Dt(d)||d!==+d||!Dt(p)||p!==+p)return null;var w=f.verticalCoordinatesGenerator||Zx,S=f.horizontalCoordinatesGenerator||Qx,k=f.horizontalPoints,O=f.verticalPoints;if((!k||!k.length)&&Vt()(S)){var j=g&&g.length,_=S({yAxis:x?$x($x({},x),{},{ticks:j?g:x.ticks}):void 0,width:u,height:s,offset:c},!!j||m);Ut(Array.isArray(_),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Bx(_),"]")),Array.isArray(_)&&(k=_)}if((!O||!O.length)&&Vt()(w)){var E=v&&v.length,P=w({xAxis:b?$x($x({},b),{},{ticks:E?v:b.ticks}):void 0,width:u,height:s,offset:c},!!E||m);Ut(Array.isArray(P),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Bx(P),"]")),Array.isArray(P)&&(O=P)}return t.createElement("g",{className:"recharts-cartesian-grid"},t.createElement(qx,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),t.createElement(Gx,Hx({},f,{offset:c,horizontalPoints:k,xAxis:b,yAxis:x})),t.createElement(Kx,Hx({},f,{offset:c,verticalPoints:O,xAxis:b,yAxis:x})),t.createElement(Yx,Hx({},f,{horizontalPoints:k})),t.createElement(Xx,Hx({},f,{verticalPoints:O})))}ew.displayName="CartesianGrid";const tw=v("ChartNoAxesColumn",[["line",{x1:"18",x2:"18",y1:"20",y2:"10",key:"1xfpm4"}],["line",{x1:"12",x2:"12",y1:"20",y2:"4",key:"be30l9"}],["line",{x1:"6",x2:"6",y1:"20",y2:"14",key:"1r4le6"}]]),rw=async(e,t)=>{if(!e||!t)return[];const r=[],n=new Set;for(const a of pe){const l=`source-${a.id}`,u=`layer-${a.id}`;if(n.has(u))continue;let s=!1,c=!1;try{s=e.getSource(l),c=e.getLayer(u)}catch(o){continue}if(!s||!c)continue;n.add(u);const f={tilesetId:a.id,date:a.date,startHour:a.startHour,hourlyData:[]};for(let r=a.startHour;r<=a.endHour;r++){const n=`${a.date}T${String(r).padStart(2,"0")}:00:00`;try{let o=[];try{o=e.queryRenderedFeatures({layers:[u],filter:["all",["==",["get","time"],n]]}).filter((e=>{if(!e.geometry||!e.geometry.coordinates)return!1;const r=e.geometry.coordinates;return Pe(r,t)}))}catch(i){}if(0===o.length)try{o=e.querySourceFeatures(l,{sourceLayer:a.layer,filter:["==",["get","time"],n]}).filter((e=>{if(!e.geometry||!e.geometry.coordinates)return!1;const r=e.geometry.coordinates;return Pe(r,t)}))}catch(i){}if(0===o.length)continue;const s=o.map((e=>{const t=parseFloat(e.properties.PM25);return isNaN(t)?null:t})).filter((e=>null!==e));if(0===s.length)continue;const c=s.reduce(((e,t)=>e+t),0)/s.length,d=Math.max(...s),p=Math.min(...s);f.hourlyData.push({hour:r,averagePM25:Math.round(100*c)/100,maxPM25:Math.round(100*d)/100,minPM25:Math.round(100*p)/100,numPoints:o.length})}catch(o){continue}}f.hourlyData.length>0&&r.push(f)}return r},nw=v("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),ow=e=>{let{title:t,subtitle:r,headerActions:n,isExpanded:i,onClose:a,children:l,icon:u,className:s="",isDarkMode:c,order:f=0}=e;return i?(0,o.jsx)("div",{className:`w-[clamp(20rem,30vw,35rem)] rounded-xl shadow-xl overflow-hidden border-2 ${c?"bg-gray-900/95 border-white":"bg-white/95 border-mahogany"} ${s} backdrop-blur-md`,children:(0,o.jsxs)("div",{className:"w-full h-full flex flex-col",children:[(0,o.jsx)("div",{className:"px-4 py-3 border-b-2 "+(c?"bg-gradient-to-r from-forest-dark/30 to-sage-dark/30 border-white":"bg-gradient-to-r from-cream to-sage-light/30 border-mahogany"),children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{className:"flex items-center gap-3",children:[u&&(0,o.jsx)("div",{className:"p-2 rounded-lg "+(c?"bg-forest/10 text-white":"bg-sage-light text-forest"),children:(0,o.jsx)(u,{className:"w-5 h-5"})}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"text-lg font-semibold leading-none "+(c?"text-white":"text-forest"),children:t}),r&&(0,o.jsx)("div",{className:"text-sm mt-1 "+(c?"text-white/80":"text-forest-light"),children:r})]})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[n,(0,o.jsx)("button",{onClick:a,className:"p-1.5 rounded-lg transition-colors "+(c?"hover:bg-forest/10 text-white hover:text-white":"hover:bg-sage-light text-forest hover:text-forest-dark"),title:"Minimize",children:(0,o.jsx)(nw,{className:"w-5 h-5"})})]})]})}),(0,o.jsx)("div",{className:"flex-1 overflow-hidden "+(c?"bg-gray-900/50":"bg-white/50"),children:l})]})}):(0,o.jsx)("button",{onClick:a,className:`rounded-xl shadow-lg transition-all duration-300 w-12 h-12 flex items-center justify-center backdrop-blur-md\n        ${c?"bg-gray-900/90 hover:bg-gray-800/90 hover:shadow-white/20 hover:shadow-lg border-2 border-white":"bg-white/90 hover:bg-gray-50/90 hover:shadow-ma
2hogany/10 hover:shadow-lg border-2 border-mahogany"} transform hover:scale-105`,children:(0,o.jsx)(u,{className:"w-5 h-5 "+(c?"text-white":"text-forest")})})},iw=e=>{let{x:t,isDarkMode:r}=e;return(0,o.jsx)("line",{x1:t,y1:0,x2:t,y2:"100%",stroke:r?"#4B5563":"#E5E7EB",strokeWidth:1,strokeDasharray:"3 3"})},aw=e=>{let{data:t,isDarkMode:r}=e;const n={min:{label:"Min PM<sub>2.5</sub>",color:"#00e400",textColor:"#006400"},avg:{label:"Avg PM<sub>2.5</sub>",color:"#3B82F6",textColor:"#1D4ED8"},max:{label:"Max PM<sub>2.5</sub>",color:"#ff0000",textColor:"#990000"}};return(0,o.jsx)("div",{className:"h-[clamp(18rem,20vh,25rem)] overflow-auto",children:(0,o.jsxs)("table",{className:"w-full",children:[(0,o.jsx)("thead",{className:"sticky top-0",children:(0,o.jsxs)("tr",{children:[(0,o.jsx)("th",{className:"py-2 px-4 text-left font-medium text-gray-600 bg-transparent",children:"Date & Time"}),Object.entries(n).map((e=>{let[t,n]=e;return(0,o.jsx)("th",{className:"py-2 px-4 text-left font-medium",style:{color:r?n.color:n.textColor,backgroundColor:`${n.color}15`},dangerouslySetInnerHTML:{__html:n.label}},t)}))]})}),(0,o.jsx)("tbody",{children:t.map(((e,t)=>(0,o.jsxs)("tr",{className:"border-b border-mahogany/20",children:[(0,o.jsx)("td",{className:"py-2 px-4 text-gray-600 bg-transparent",children:e.time}),(0,o.jsx)("td",{className:"py-2 px-4",style:{backgroundColor:`${n.min.color}08`},children:(0,o.jsx)("span",{className:"px-2 py-0.5 rounded font-medium",style:{color:r?n.min.color:n.min.textColor,backgroundColor:`${n.min.color}15`},children:e.minPM25.toFixed(1)})}),(0,o.jsx)("td",{className:"py-2 px-4",style:{backgroundColor:`${n.avg.color}08`},children:(0,o.jsx)("span",{className:"px-2 py-0.5 rounded font-medium",style:{color:r?n.avg.color:n.avg.textColor,backgroundColor:`${n.avg.color}15`},children:e.averagePM25.toFixed(1)})}),(0,o.jsx)("td",{className:"py-2 px-4",style:{backgroundColor:`${n.max.color}08`},children:(0,o.jsx)("span",{className:"px-2 py-0.5 rounded font-medium",style:{color:r?n.max.color:n.max.textColor,backgroundColor:`${n.max.color}15`},children:e.maxPM25.toFixed(1)})})]},t)))})]})})},lw=e=>{let{data:t,isDarkMode:r}=e;const n=(()=>{const e=(()=>{const e=[];return[...new Set(pe.map((e=>e.date)))].sort().forEach((t=>{for(let r=0;r<24;r++){const n=`${t} ${String(r).padStart(2,"0")}:00`;e.push(n)}})),e})(),r=new Map(t.map((e=>[e.time,e])));return e.map((e=>{var t,n,o;const i=r.get(e);return{time:e,minPM25:null!==(t=null===i||void 0===i?void 0:i.minPM25)&&void 0!==t?t:0,averagePM25:null!==(n=null===i||void 0===i?void 0:i.averagePM25)&&void 0!==n?n:0,maxPM25:null!==(o=null===i||void 0===i?void 0:i.maxPM25)&&void 0!==o?o:0,hasData:!!i}}))})(),i=n.reduce(((e,t,r)=>{if(0===r)return e;const[o]=n[r-1].time.split(" "),[i]=t.time.split(" ");return o!==i&&e.push(r),e}),[]),a=(()=>{const e=n.flatMap((e=>[e.minPM25,e.averagePM25,e.maxPM25])).filter((e=>void 0!==e&&null!==e&&!isNaN(e)));if(0===e.length)return 100;const t=Math.max(...e);return t<2?Math.ceil(1.05*t):Math.ceil(1.1*t)})(),l=e=>{let{x:t,y:r,payload:n,isDarkMode:i}=e;const[a,l]=n.value.split(" "),u=parseInt(l),s=0===u;if(!s&&!(u%6===0&&0!==u))return null;return s?(0,o.jsx)("text",{x:t,y:r+16,textAnchor:"middle",fill:i?"#9CA3AF":"#6B7280",style:{fontSize:"0.75rem",fontWeight:"bold"},children:(()=>{const[e,t,r]=a.split("-").map(Number);return new Date(e,t-1,r).toLocaleDateString("en-US",{month:"short",day:"numeric"})})()}):(0,o.jsx)("text",{x:t,y:r+12,textAnchor:"middle",fill:i?"#9CA3AF":"#6B7280",style:{fontSize:"0.6875rem"},children:`${u}:00`})},u=e=>{let{active:t,payload:r,label:i,isDarkMode:a}=e;if(t&&r&&r.length){const e=n.find((e=>e.time===i));return(0,o.jsxs)("div",{className:"p-4 shadow-lg rounded-lg border "+(a?"bg-gray-800 border-mahogany/70 text-gray-100":"bg-white border-mahogany/50 text-gray-800"),children:[(0,o.jsx)("p",{className:"font-semibold",children:i}),r.map(((e,t)=>{var r;return(0,o.jsxs)("div",{className:"flex items-center gap-2 mt-1",children:[(0,o.jsx)("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:e.color}}),(0,o.jsxs)("span",{className:a?"text-gray-400":"text-gray-600",children:[e.name,":"]}),(0,o.jsx)("span",{className:"font-medium",children:(null===(r=e.value)||void 0===r?void 0:r.toFixed(1))||"0.0"})]},t)})),!(null!==e&&void 0!==e&&e.hasData)&&(0,o.jsxs)("div",{className:"text-xs mt-1 text-gray-500",children:["No smoke forecasted (PM",(0,o.jsx)("sub",{children:"2.5"})," = 0)"]})]})}return null};return(0,o.jsxs)("div",{className:"h-[clamp(18rem,20vh,25rem)] w-full relative "+(r?"bg-gray-800/30":"bg-white/30"),children:[(0,o.jsx)(Pr,{children:(0,o.jsxs)(Ix,{data:n,margin:{top:20,right:10,left:30,bottom:30},children:[(0,o.jsx)(ew,{strokeDasharray:"3 3",stroke:r?"#374151":"#E5E7EB",vertical:!1}),i.map((e=>(0,o.jsx)(iw,{x:e/(n.length-1)*100+"%",isDarkMode:r},e))),(0,o.jsx)(Ox,{dataKey:"time",height:25,tick:(0,o.jsx)(l,{isDarkMode:r}
2),interval:0,tickSize:3,axisLine:{stroke:r?"#374151":"#E5E7EB"}}),(0,o.jsx)(Lx,{tick:{fill:r?"#9CA3AF":"#6B7280",fontSize:12},domain:[0,a],axisLine:{stroke:r?"#374151":"#E5E7EB"},label:{value:"PM\u2082.\u2085 (\u03bcg/m\xb3)",angle:-90,position:"insideLeft",style:{textAnchor:"middle",fill:r?"#9CA3AF":"#6B7280",fontSize:12,fontWeight:500,paddingLeft:10}}}),(0,o.jsx)(Tn,{content:(0,o.jsx)(u,{isDarkMode:r})}),(0,o.jsx)(Hb,{type:"monotone",dataKey:"maxPM25",name:"Max PM<sub>2.5</sub>",stroke:"#c52222",strokeWidth:2,dot:!1,connectNulls:!1}),(0,o.jsx)(Hb,{type:"monotone",dataKey:"averagePM25",name:"Average PM<sub>2.5</sub>",stroke:"#3B82F6",strokeWidth:2,dot:!1,connectNulls:!1}),(0,o.jsx)(Hb,{type:"monotone",dataKey:"minPM25",name:"Min PM<sub>2.5</sub>",stroke:"#76f163",strokeWidth:2,dot:!1,connectNulls:!1})]})}),(0,o.jsxs)("div",{className:"absolute top-2 right-2 flex items-center gap-3 px-2 py-1 rounded "+(r?"bg-gray-800/80":"bg-white/80"),children:[(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#c52222]"}),(0,o.jsx)("span",{className:r?"text-xs text-gray-400":"text-xs text-gray-600",children:"Max"})]}),(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#3B82F6]"}),(0,o.jsx)("span",{className:r?"text-xs text-gray-400":"text-xs text-gray-600",children:"Avg"})]}),(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)("div",{className:"w-2 h-2 rounded-full bg-[#76f163]"}),(0,o.jsx)("span",{className:r?"text-xs text-gray-400":"text-xs text-gray-600",children:"Min"})]})]})]})},uw=e=>{let{map:r,currentDateTime:n,isPlaying:i,polygon:a,isDarkMode:l,onExpandChange:u,forceExpanded:s=!1}=e;const[c,f]=(0,t.useState)(!1),[d,p]=(0,t.useState)("chart"),[h,y]=(0,t.useState)(null),[m,g]=(0,t.useState)([]),[v,b]=(0,t.useState)(!1),x=(0,t.useCallback)((()=>{g([]),y(null),f(!1),p("chart"),b(!1),null===u||void 0===u||u(!1)}),[u]);(0,t.useEffect)((()=>{a||x();const e=()=>{x()};return window.addEventListener("clearAreaStatistics",e),()=>{window.removeEventListener("clearAreaStatistics",e)}}),[a,x]);const w=(0,t.useCallback)((e=>e.flatMap((e=>e.hourlyData.map((t=>({time:`${e.date} ${String(t.hour).padStart(2,"0")}:00`,averagePM25:t.averagePM25,maxPM25:t.maxPM25,minPM25:t.minPM25,points:t.numPoints}))))).sort(((e,t)=>new Date(e.time)-new Date(t.time)))),[]),S=(0,t.useCallback)((async()=>{if(r&&a)try{b(!0),y(null),await new Promise((e=>setTimeout(e,500))),console.log("Starting area stats calculation..."),console.log("Map instance:",r),console.log("Polygon:",a),console.log("Map style loaded:",r.isStyleLoaded());const e=await rw(r,a);console.log("Raw stats from calculateAreaStats:",e);const t=w(e);console.log("Formatted chart data:",t),0===t.length&&(console.warn("No data found for the selected area. This could be because:"),console.warn("1. The area is outside the data coverage"),console.warn("2. The map layers are not fully loaded yet"),console.warn("3. There is no PM<sub>2.5</sub> data for this location"),y("No smoke forecasted in this area.")),g(t)}catch(e){console.error("Error calculating area stats:",e),y("Failed to calculate area statistics. Please try again."),g([])}finally{b(!1)}}),[r,a,w]);(0,t.useEffect)((()=>{a&&S()}),[a,S]),(0,t.useEffect)((()=>{a||(f(!1),g([]),y(null))}),[a]),(0,t.useEffect)((()=>{a?setTimeout((()=>{f(!0),null===u||void 0===u||u(!0)}),100):(f(!1),g([]),y(null),null===u||void 0===u||u(!1))}),[a,u]);const k=(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)("button",{onClick:()=>p("chart"),className:"px-3 py-1 rounded-md text-sm transition-colors "+("chart"===d?l?"bg-forest/70 text-gold-light":"bg-forest/70 text-cream":l?"bg-gray-800/50 text-gray-300 hover:bg-gray-700/50":"bg-gray-100/50 text-gray-600 hover:bg-gray-200/50"),children:"Chart"}),(0,o.jsx)("button",{onClick:()=>p("table"),className:"px-3 py-1 rounded-md text-sm transition-colors "+("table"===d?l?"bg-forest/70 text-gold-light":"bg-forest/70 text-cream":l?"bg-gray-800/50 text-gray-300 hover:bg-gray-700/50":"bg-gray-100/50 text-gray-600 hover:bg-gray-200/50"),children:"Table"})]}),O=(0,o.jsxs)("div",{className:"px-1",children:[h&&(0,o.jsx)("div",{className:"mb-4 p-4 rounded-lg border "+(l?"bg-rust/50 text-gold-light border-mahogany/50":"bg-rust-light/20 text-rust-dark border-mahogany/30"),children:h}),v&&(0,o.jsx)("div",{className:"h-[clamp(18rem,20vh,25rem)] flex items-center justify-center "+(l?"text-gray-400":"text-gray-500"),children:(0,o.jsx)("p",{children:"Loading statistics..."})}),!v&&!h&&m.length>0&&(0,o.jsxs)(o.Fragment,{children:["chart"===d&&(0,o.jsx)(lw,{data:m,isDarkMode:l}),"table"===d&&(0,o.jsx)(aw,{data:m,isDarkMode:l})]}),!v&&!h&&0===m.length&&(0,o.jsx)("div",{className:"h-[clamp(18rem,20vh,25rem)] flex items-center justify-center "+(l?"text-gray-400":"text-gray-500"),children:(0,o.jsx)("p",{children:"No smoke forecasted in the selected area"})})]});return s?(0,o.jsx)("div",{className:`w-full rounded-xl shadow-xl overflow-hidden border-2 ${l?"bg-gray-900/95 border-white":"bg-white/95 border-mahogany"} backdrop-blur-md`,children:(0,o.jsxs)("div",{className:"w-full h-full flex flex-col",children:[(0,o.jsx)("div",{className:"px-4 py-3 border-b-2 "+(l?"bg-gradient-to-r from-forest-dark/30 to-sage-dark/30 border-white":"bg-gradient-to-r from-cream to-sage-light/30 border-mahogany"),children:(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"text-lg font-semibold leading-none "+(l?"text-white":"text-forest"),children:"Area Statistics"}),(0,o.jsxs)("div",{className:"text-sm mt-1 "+(l?"text-white/80":"text-forest-light"),children:[n.date," ",n.hour.toString().padStart(2,"0"),":00"]})]}),(0,o.jsx)("div",{className:"flex items-center gap-2",children:k})]})}),(0,o.jsx)("div",{className:"flex-1 overflow-hidden "+(l?"bg-gray-900/50":"bg-white/50"),children:O})]})}):(0,o.jsx)("div",{style:{position:"fixed",top:c?"28.125rem":"1.25rem",right:"1.25rem",width:c?"clamp(20rem,30vw,35rem)":"3rem",zIndex:1e3,transition:"all 0.3s ease-in-out"},children:(0,o.jsx)(ow,{title:"Area Statistics",subtitle:`${n.date} ${n.hour.toString().padStart(2,"0")}:00`,headerActions:k,icon:tw,isExpanded:c,onClose:()=>{const e=!c;f(e),null===u||void 0===u||u(e)},isDarkMode:l,order:1,children:O})})},sw=e=>{let{map:r,mapStyle:n,mapboxAccessToken:i,polygon:a,currentDateTime:l,isDarkMode:u,pm25Threshold:s,onExpandChange:c,isPlaying:f,forceExpanded:d=!1}=e;const[p,h]=(0,t.useState)(!1),[y,m]=(0,t.useState)(null),g=(0,t.useRef)(null),v=(0,t.useRef)(!1),b=(0,t.useRef)(new Set),x=(0,t.useRef)(new Set),w=(0,t.useRef)(null),S=(0,t.useCallback)((()=>l||{date:"",hour:0}),[l]);(0,t.useEffect)((()=>{a||(v.current=!1)}),[a]),(0,t.useEffect)((()=>{a||(v.current=!1)}),[a]),(0,t.useEffect)((()=>{var e;const t=null===(e=g.current)||void 0===e?void 0:e.getMap();if(!t||!a)return;const r="overview-polygon",n="overview-polygon-fill",o="overview-polygon-line",i=()=>
2{[n,o].forEach((e=>{t.getLayer(e)&&t.removeLayer(e)})),t.getSource(r)&&t.removeSource(r),t.addSource(r,{type:"geojson",data:{type:"Feature",geometry:{type:"Polygon",coordinates:[a]}}}),t.addLayer({id:n,type:"fill",source:r,paint:{"fill-color":u?"#cea25d":"#2d5954","fill-opacity":u?.3:.2}}),t.addLayer({id:o,type:"line",source:r,paint:{"line-color":u?"#cea25d":"#2d5954","line-width":2}})};return t.isStyleLoaded()?i():t.once("style.load",i),()=>{t.getLayer(o)&&t.removeLayer(o),t.getLayer(n)&&t.removeLayer(n),t.getSource(r)&&t.removeSource(r)}}),[a,u]),(0,t.useEffect)((()=>{if(!a||0===a.length)return h(!1),void(null===c||void 0===c||c(!1));const e=a.reduce(((e,t)=>{let[r,n]=t;return{minLng:Math.min(e.minLng,r),maxLng:Math.max(e.maxLng,r),minLat:Math.min(e.minLat,n),maxLat:Math.max(e.maxLat,n)}}),{minLng:1/0,maxLng:-1/0,minLat:1/0,maxLat:-1/0}),t=1.5*(e.maxLat-e.minLat),r=1.5*(e.maxLng-e.minLng),n={latitude:(e.minLat+e.maxLat)/2,longitude:(e.minLng+e.maxLng)/2},o=Math.log2(180/t)-1,i=Math.log2(360/r)-1,l=Math.min(o,i,9);m({...n,zoom:Math.max(l,3),bearing:0,pitch:0}),h(!0),null===c||void 0===c||c(!0)}),[a,c]);const k=(0,t.useCallback)((e=>{if(e&&l&&!v.current)try{pe.forEach((t=>{const r=`minimap-source-${t.id}`,n=`minimap-layer-${t.id}`;e.getLayer(n)&&e.removeLayer(n),e.getSource(r)&&e.removeSource(r)})),pe.forEach((t=>{const r=`minimap-source-${t.id}`,n=`minimap-layer-${t.id}`;e.addSource(r,{type:"vector",url:`mapbox://${t.id}`}),e.addLayer({id:n,type:"circle",source:r,"source-layer":t.layer,paint:{"circle-radius":["interpolate",["exponential",2],["zoom"],4,2,5,5,6,10,7,55,8,70,9,90],"circle-color":oe(u),"circle-blur":.6,"circle-opacity":u?.8:.6},layout:{visibility:"none"}})})),v.current=!0,console.log("Minimap layers initialized")}catch(t){console.error("Error initializing minimap layers:",t),v.current=!1}}),[l,u]),O=(0,t.useCallback)((e=>{if(e&&e.getStyle())try{const{date:t,hour:r}=S(),n=pe.find((e=>e.date===t&&r>=e.startHour&&r<=e.endHour));if(!n){console.warn("No tileset found for:",{date:t,hour:r});const n=pe[pe.length-1];if(n){console.log("Minimap falling back to last available tileset:",n);const t=`minimap-layer-${n.id}`;if(pe.forEach((t=>{const r=`minimap-layer-${t.id}`;e.getLayer(r)&&e.setLayoutProperty(r,"visibility","none")})),e.getLayer(t)){const r=n.endHour,o=`${n.date}T${String(r).padStart(2,"0")}:00:00`;e.setFilter(t,["all",["==",["get","time"],o],[">=",["coalesce",["to-number",["get","PM25"],0],0],s]]),e.setLayoutProperty(t,"visibility","visible"),console.log(`Showing minimap fallback layer ${t} with time ${o}`)}}return}const o=(r+1)%24,i=0===o?new Date(new Date(t).getTime()+864e5).toISOString().split("T")[0]:t,a=pe.find((e=>e.date===i&&o>=e.startHour&&o<=e.endHour)),l=new Set([n.id]);a&&r===n.endHour&&l.add(a.id);const c=[];x.current.forEach((e=>{const t=e.replace("minimap-layer-","");l.has(t)||c.push(e)})),c.forEach((t=>{const r=`minimap-source-${t.replace("minimap-layer-","")}`;e.getLayer(t)&&e.removeLayer(t),e.getSource(r)&&e.removeSource(r),x.current.delete(t),b.current.delete(r)})),pe.forEach((t=>{const r=`minimap-layer-${t.id}`;e.getLayer(r)&&e.setLayoutProperty(r,"visibility","none")}));const f=`minimap-layer-${n.id}`,d=`${t}T${String(r).padStart(2,"0")}:00:00`;if(!e.getLayer(f)){const t=`minimap-source-${n.id}`;e.getSource(t)||(e.addSource(t,{type:"vector",url:`mapbox://${n.id}`,maxzoom:9}),b.current.add(t)),e.addLayer({id:f,type:"circle",source:t,"source-layer":n.layer,maxzoom:9,paint:{"circle-radius":["interpolate",["exponential",2],["zoom"],4,2,5,5,6,10,7,55,8,70,9,90],"circle-color":oe(u),"circle-blur":.6,"circle-opacity":u?.8:.6},layout:{visibility:"none"}}),x.current.add(f)}if(e.getLayer(f)&&(e.setFilter(f,["all",["==",["get","time"],d],[">=",["coalesce",["to-number",["get","PM25"],null],0],s||0]]),e.setLayoutProperty(f,"visibility","visible"),e.setPaintProperty(f,"circle-opacity",u?.8:.6)),a&&r===n.endHour){const t=`minimap-source-${a.id}`,r=`minimap-layer-${a.id}`;e.getSource(t)||(e.addSource(t,{type:"vector",url:`mapbox://${a.id}`,maxzoom:9}),b.current.add(t)),e.getLayer(r)||(e.addLayer({id:r,type:"circle",s
2ource:t,"source-layer":a.layer,maxzoom:9,paint:{"circle-radius":["interpolate",["exponential",2],["zoom"],4,2,5,5,6,10,7,25,8,50,9,90],"circle-color":oe(u),"circle-blur":.6,"circle-opacity":["interpolate",["linear"],["zoom"],4,u?.9:.75,6,u?.5:.4,7,u?.3:.2,8,u?.2:.15,9,u?.2:.15]},layout:{visibility:"none"}}),x.current.add(r));const n=`${i}T${String(o).padStart(2,"0")}:00:00`;e.setFilter(r,["all",["==",["get","time"],n],[">=",["coalesce",["to-number",["get","PM25"],0],0],s]]),e.setLayoutProperty(r,"visibility","none")}w.current=n.id}catch(t){console.error("Error updating minimap layers:",t)}}),[S,s,u]),j=(0,t.useCallback)((()=>{var e;const t=null===(e=g.current)||void 0===e?void 0:e.getMap();t&&(t.on("style.load",(()=>{v.current=!1,k(t),O()})),t.isStyleLoaded()&&(k(t),O()))}),[k,O]);(0,t.useEffect)((()=>()=>{var e;const t=null===(e=g.current)||void 0===e?void 0:e.getMap();t&&pe.forEach((e=>{const r=`minimap-layer-${e.id}`,n=`minimap-source-${e.id}`;t.getLayer(r)&&t.removeLayer(r),t.getSource(n)&&t.removeSource(n)})),v.current=!1}),[]),(0,t.useEffect)((()=>{var e;(null===(e=g.current)||void 0===e?void 0:e.getMap())&&v.current&&O()}),[O,u,l,s]);const _=(0,t.useCallback)((()=>{const e=!p;if(h(e),null===c||void 0===c||c(e),e){var t;const e=null===(t=g.current)||void 0===t?void 0:t.getMap();e&&!v.current&&(k(e),O())}}),[p,c,k,O]);(0,t.useEffect)((()=>{var e;const t=null===(e=g.current)||void 0===e?void 0:e.getMap();t&&v.current&&O(t)}),[O,u,l,s]);const E=(0,o.jsx)("div",{className:"px-1",children:(0,o.jsx)("div",{className:"w-full h-[clamp(20rem,22.5vh,28rem)] overflow-hidden rounded-lg relative",children:y&&(0,o.jsx)(te,{ref:g,initialViewState:y,style:{width:"100%",height:"100%"},mapStyle:n,mapboxAccessToken:i,interactive:!1,onLoad:j})})});return d?(0,o.jsx)("div",{className:`w-full rounded-xl shadow-xl overflow-hidden border-2 ${u?"bg-gray-900/95 border-white":"bg-white/95 border-mahogany"} backdrop-blur-md`,children:(0,o.jsxs)("div",{className:"w-full h-full flex flex-col",children:[(0,o.jsx)("div",{className:"px-4 py-3 border-b-2 "+(u?"bg-gradient-to-r from-forest-dark/30 to-sage-dark/30 border-white":"bg-gradient-to-r from-cream to-sage-light/30 border-mahogany"),children:(0,o.jsx)("div",{className:"flex items-center justify-between",children:(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"text-lg font-semibold leading-none "+(u?"text-white":"text-forest"),children:"Area Overview"}),(0,o.jsxs)("div",{className:"text-sm mt-1 "+(u?"text-white/80":"text-forest-light"),children:[l.date," ",l.hour.toString().padStart(2,"0"),":00"]})]})})}),(0,o.jsx)("div",{className:"flex-1 overflow-hidden "+(u?"bg-gray-900/50":"bg-white/50"),children:E})]})}):(0,o.jsx)("div",{style:{position:"fixed",top:p?"28.125rem":"1.25rem",right:"1.25rem",width:p?"clamp(20rem,30vw,35rem)":"3rem",zIndex:1e3,transition:"all 0.3s ease-in-out"},children:(0,o.jsx)(ow,{title:"Area Overview",subtitle:`${l.date} ${l.hour.toString().padStart(2,"0")}:00`,icon:te,isExpanded:p,onClose:_,isDarkMode:u,order:2,children:E})})},cw=e=>{let{map:r,mapStyle:n,mapboxAccessToken:i,polygon:a,currentDateTime:l,isDarkMode:u,pm25Threshold:s,isPlaying:c}=e;const[f,d]=(0,t.useState)(!1),[p,h]=(0,t.useState)(!1);return(0,t.useEffect)((()=>{a?(d(!0),h(!0)):(d(!1),h(!1))}),[a]),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)("button",{onClick:()=>d(!f),className:"px-4 py-2 rounded-lg text-sm font-medium transition-all duration-300 backdrop-blur-sm shadow-lg border-2 "+(f?u?"bg-forest/90 text-gold-light border-gold-light":"bg-forest/90 text-cream border-cream":u?"bg-gray-800/90 hover:bg-gray-700/90 text-gray-200 border-white hover:border-gold-light":"bg-white/90 hover:bg-gray-50/90 text-gray-800 border-mahogany hover:border-forest"),children:"Area Statistics"}),(0,o.jsx)("button",{onClick:()=>h(!p),className:"px-4 py-2 rounded-lg text-sm font-medium transition-all duration-300 backdrop-blur-sm shadow-lg border-2 "+(p?u?"bg-forest/90 text-gold-light border-gold-light":"bg-forest/90 text-cream border-cream":u?"bg-gray-800/90 hover:bg-gray-700/90 text-gray-200 border-white hover:border-gold-light":"bg-white/90 hover:bg-gray-50/90 text-gray-800 border-mahogany hover:border-forest"),children:"Area Overview"})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[f&&(0,o.jsx)("div",{className:"w-[clamp(20rem,30vw,35rem)]",children:(0,o.jsx)(uw,{map:r,currentDateTime:l,isPlaying:c,polygon:a,isDarkMode:u,onExpandChange:()=>{},forceExpanded:!0})}),p&&(0,o.jsx)("div",{className:"w-[clamp(20rem,30vw,35rem)]",children:(0,o.jsx)(sw,{map:r,mapStyle:n,mapboxAccessToken:i,polygon:a,currentDateTime:l,isDarkMode:u,pm25Threshold:s,onExpandChange:()=>{},isPlaying:c,forceExpanded:!0})})]})]})},fw=e=>{let{onShowIntro:r}=e;const n=(0,t.useRef)(!1),i=(0,t.useRef)(!1),a=(0,t.useRef)(!1),l=(()=>{const e=(0,t.useRef)(null),[r,n]=(0,t.useState)(null),[o,i]=(0,t.useState)(!1),[a,l]=(0,t.useState)(me);return{mapRef:e,mapInstance:r,setMapInstance:n,isMapLoaded:o,setIsMapLoaded:i,viewport:
2a,setViewport:l}})(),u=(()=>{const e=be(ce,fe),[r,n]=(0,t.useState)(e),[o,i]=(0,t.useState)(!1),[a,l]=(0,t.useState)(3);return{currentHour:r,setCurrentHour:n,isPlaying:o,setIsPlaying:i,playbackSpeed:a,setPlaybackSpeed:l}})(),s=(()=>{const[e,r]=(0,t.useState)(!1),[n,o]=(0,t.useState)(5);return{isDarkMode:e,setIsDarkMode:r,pm25Threshold:n,setPM25Threshold:o}})(),c=(()=>{const[e,r]=(0,t.useState)(!1),[n,o]=(0,t.useState)(!1),[i,a]=(0,t.useState)(null),[l,u]=(0,t.useState)([]),[s,c]=(0,t.useState)(null),[f,d]=(0,t.useState)(0);return{drawingMode:e,setDrawingMode:r,isPointSelected:n,setIsPointSelected:o,polygon:i,setPolygon:a,tempPolygon:l,setTempPolygon:u,mousePosition:s,setMousePosition:c,lastClickTime:f,setLastClickTime:d}})(),f=(()=>{const[e,r]=(0,t.useState)(!1),[n,o]=(0,t.useState)(!1),[i,a]=(0,t.useState)(null);return{showTour:e,setShowTour:r,censusLoading:n,setCensusLoading:o,censusError:i,setCensusError:a}})(),{mapRef:d,mapInstance:p,setMapInstance:h,isMapLoaded:y,setIsMapLoaded:m,viewport:g,setViewport:v}=l,{currentHour:b,setCurrentHour:x,isPlaying:w,setIsPlaying:S,playbackSpeed:k,setPlaybackSpeed:O}=u,{isDarkMode:j,setIsDarkMode:_,pm25Threshold:P,setPM25Threshold:C}=s,{drawingMode:M,setDrawingMode:T,isPointSelected:A,setIsPointSelected:N,polygon:D,setPolygon:L,tempPolygon:I,setTempPolygon:z,mousePosition:R,setMousePosition:B,lastClickTime:F,setLastClickTime:$}=c,{showTour:U,setShowTour:H,censusLoading:W,setCensusLoading:q,censusError:V,setCensusError:G}=f;((e,r,n,o)=>{const i=(0,t.useRef)(null),a=(0,t.useRef)(0),l=(0,t.useRef)(!1),u=(0,t.useRef)(!1);(0,t.useEffect)((()=>{u.current||(n((e=>(0===e&&(setTimeout((()=>n(1)),200),setTimeout((()=>n(0)),400)),e))),u.current=!0)}),[n]),(0,t.useEffect)((()=>{if(!e)return void(i.current&&(cancelAnimationFrame(i.current),i.current=null));const t={1:2e3,2:1e3,3:500,8:125}[r]||1e3,u=r=>{a.current||(a.current=r),r-a.current>=t&&!l.current&&(l.current=!0,n((e=>{const t=e+1;return t>=fe?(o(!1),fe-1):t})),a.current=r,l.current=!1),e&&(i.current=requestAnimationFrame(u))};return a.current=0,i.current=requestAnimationFrame(u),()=>{i.current&&(cancelAnimationFrame(i.current),i.current=null)}}),[e,r,n,o])})(w,k,x,S);const K=(e=>(0,t.useCallback)((()=>{console.log("START_DATE:",ce),console.log("TILESET_INFO tiles:",pe.map((e=>({id:e.id,date:e.date,hours:`${e.startHour}-${e.endHour}`}))));const t=Math.floor(e/24),r=e%24,n=Math.min(t,1);let o;o=r<8?0:r<16?1:2;const i=3*n+o,a=i<pe.length?pe[i]:null;if(!a){console.error(`Failed to get tileset at index ${i}`);const e=new Date(ce.getTime());return e.setUTCDate(e.getUTCDate()+t),e.setUTCHours(r,0,0,0),{date:e.toISOString().split("T")[0],hour:r}}const l=a.date;return console.log(`Current hour ${e} -> Day ${t} (tileset day ${n}), Hour ${r}, Chunk ${o} -> Tileset ${a.id}`),{date:l,hour:r,tileset:a.id,tilesetHourRange:`${a.startHour}-${a.endHour}`}}),[e]))(b),{updateLayers:Y}=Re(d,P,b,y,K,j,n),{handleTourComplete:X}=(e=>{let{showTour:r,setShowTour:n,mapInstance:o,isMapLoaded:i}=e;const a=(0,t.useCallback)((()=>{n(!1),localStorage.setItem("tourCompleted","true")}),[n]);return(0,t.useEffect)((()=>{"true"===localStorage.getItem("tourCompleted")&&n(!1)}),[n]),(0,t.useEffect)((()=>{if(!o||!i)return;const e=()=>{const t=[{selector:".fixed.bottom-4.left-1\\/2.-translate-x-1\\/2",id:"tour-time-controls",attr:"time-controls"},{selector:".fixed.top-4 .flex.items-center.gap-4 > :first-child",id:"tour-pm25-threshold",attr:"pm25-threshold"},{selector:".fixed.top-4 .flex.items-center.gap-4 > :nth-child(2)",id:"tour-date-time",attr:"date-time"},{selector:".fixed.top-4 .flex.items-center.gap-4 > :nth-child(3)",id:"tour-theme-controls",attr:"theme-controls"},{selector:".fixed.top-4 .flex.items-center.gap-4 > :nth-child(3) button",id:"tour-draw-button",attr:"draw-button"},{selector:".fixed.left-4.bottom-4",id:"tour-zoom-controls",attr:"zoom-controls"}];let r=0;t.forEach((e=>{const t=document.querySelector(e.selector);t&&(t.id=e.id,t.setAttribute("data-tour",e.attr),r++)})),r<t.length&&setTimeout(e,1e3)};setTimeout(e,1e3)}),[o,i]),{handleTourComplete:a}})({showTour:U,setShowTour:H,mapInstance:p,isMapLoaded:y});(e=>{let{mapInstance:r,isMapLoaded:n,isDarkMode:o,setCensusLoading:i,setCensusError:a}=e;(0,t.useEffect)((()=>
2{if(r&&n)return(async()=>{i(!0),a(null);try{await Oe.preloadAll(r,o)}catch(e){console.error("Failed to initialize census layer:",e),a(e.message)}finally{i(!1)}})(),()=>{Oe.cleanup(r)}}),[r,n,o,i,a]),(0,t.useEffect)((()=>{r&&n&&Oe.updateColors(r,o)}),[o,r,n])})({mapInstance:p,isMapLoaded:y,isDarkMode:j,setCensusLoading:q,setCensusError:G}),Ie({mapInstance:p,polygon:D,tempPolygon:I,mousePosition:R,drawingMode:M,isDarkMode:j});const{handleMapInteraction:Z,handleMapLoad:Q}=(e=>{let{mapRef:r,mapInstance:n,setMapInstance:o,setIsMapLoaded:i,isMapLoaded:a,setViewport:l,isDarkMode:u,updateLayers:s,needsLayerReinitRef:c,initialSetupDone:f,layerSetupComplete:d}=e;const p=(0,t.useCallback)((e=>{a&&l(e.viewState)}),[a,l]),h=(0,t.useCallback)((()=>{if(!d.current&&(i(!0),r.current)){const e=r.current.getMap();o(e),console.log("Map loaded, initializing layers"),e.isStyleLoaded()?(console.log("Style already loaded, initializing census layer immediately"),Oe.initializeLayer(e,u),d.current=!0):(console.log("Style not loaded yet, waiting for style.load event"),e.once("style.load",(()=>{console.log("Style loaded, initializing census layer"),Oe.initializeLayer(e,u),d.current=!0})))}}),[u,r,i,o,d]);return(0,t.useEffect)((()=>{if(!n||!a)return;const e=()=>{n.isStyleLoaded()&&c.current&&(Oe.initializeLayer(n,u),s(n),c.current=!1)};return f.current||(e(),f.current=!0),n.on("styledata",e),()=>{n.off("styledata",e)}}),[n,a,u,s,f,c]),{handleMapInteraction:p,handleMapLoad:h}})({mapRef:d,mapInstance:p,setMapInstance:h,setIsMapLoaded:m,isMapLoaded:y,setViewport:v,isDarkMode:j,updateLayers:Y,needsLayerReinitRef:n,initialSetupDone:i,layerSetupComplete:a}),{handleMapClick:J,clearPolygon:ee,getCursor:te,startDrawing:ne,finishDrawing:oe}=Le({mapInstance:p,drawingMode:M,setDrawingMode:T,isPointSelected:A,setIsPointSelected:N,polygon:D,setPolygon:L,tempPolygon:I,setTempPolygon:z,setMousePosition:B,lastClickTime:F,setLastClickTime:$,setIsPlaying:S,showTour:U,isDarkMode:j}),{handleThemeChange:ae}=(e=>{let{setIsDarkMode:r,needsLayerReinitRef:n,layerSetupComplete:o}=e;return{handleThemeChange:(0,t.useCallback)((e=>{r(e),n.current=!0}),[r,n])}})({setIsDarkMode:_,needsLayerReinitRef:n,layerSetupComplete:a}),le=j?he:ye;return(0,o.jsxs)("div",{className:"fixed inset-0 overflow-hidden "+(j?"bg-gray-900":"bg-gray-100"),children:[(0,o.jsx)(re,{...g,style:{width:"100%",height:"100%"},mapStyle:le,mapboxAccessToken:ie,onMove:Z,ref:d,onLoad:Q,onClick:J,cursor:te(),projection:"globe"}),!y&&(0,o.jsx)(bt,{isDarkMode:j}),W&&(0,o.jsx)("div",{className:`fixed top-4 left-1/2 -translate-x-1/2 px-4 py-2 rounded-lg ${j?"bg-gray-800 text-gray-200":"bg-white text-gray-800"} shadow-lg z-50`,children:"Loading census data..."}),V&&console.error("Census data error:",V),y&&p&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ct,{map:p,isDarkMode:j}),(0,o.jsxs)("div",{className:"fixed top-4 left-4 z-50 flex flex-col gap-2 pointer-events-auto",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)(rt,{pm25Threshold:P,setPM25Threshold:C,isDarkMode:j}),(0,o.jsx)(et,{isDarkMode:j})]}),D&&(0,o.jsx)("div",{className:"w-80",children:(0,o.jsx)(at,{map:p,polygon:D,isDarkMode:j,currentDateTime:K(),isPlaying:w})})]}),(0,o.jsx)("div",{className:"fixed top-4 right-4 z-50",children:(0,o.jsx)(cw,{map:p,mapStyle:le,mapboxAccessToken:ie,currentDateTime:K(),isPlaying:w,polygon:D,isDarkMode:j,pm25Threshold:P})}),(0,o.jsx)(ht,{drawingMode:M,tempPolygon:I}),(0,o.jsx)(dt,{drawingMode:M,tempPolygon:I,isDarkMode:j,finishDrawing:oe}),(0,o.jsx)(Je,{currentHour:b,setCurrentHour:x,isPlaying:w,setIsPlaying:S,playbackSpeed:k,setPlaybackSpeed:O,getCurrentDateTime:K,drawingMode:M,startDrawing:ne,finishDrawing:oe,clearPolygon:ee,polygon:D,isDarkMode:j,setIsDarkMode:ae,mapInstance:p,pm25Threshold:P,setPM25Threshold:C,setDrawingMode:T,setTempPolygon:z}),U&&(0,o.jsx)(vt,{onComplete:X,isDarkMode:j}),!U&&(0,o.jsx)("div",{className:"fixed z-50 right-4 bottom-4",children:(0,o.jsx)("button",{onClick:r,className:`w-12 h-12 rounded-full shadow-lg backdrop-blur-sm flex items-center justify-center transition-all ${j?"bg-mahogany/90 hover:bg-mahogany/80 text-white border-2 border-white/50":"bg-white/90 hover:bg-gray-50/90 text-mahogany border-2 border-mahogany/50"} hover:scale-110 font-sora`,title:"Show introduction page",children:(0,o.jsx)(E,{className:"w-6 h-6"})})})]}),(0,o.jsx)("div",{className:"fixed left-2 bottom-8 z-40",children:(0,o.jsx)("a",{href:"https://www.traceaq.com/",target:"_blank",rel:"noopener noreferrer",className:"block hover:scale-105 transition-transform duration-200",children:(0,o.jsx)("img",{src:"/wildfire-smoke-tool/TraceAQ.png",alt:"TraceAQ Logo",className:"h-20 opacity-80 hover:opacity-100 transition-opacity duration-200"})})})]})},dw=(pw=()=>{const[e,r]=(0,t.useState)(!0),[n,i]=(0,t.useState)(!1),[a,l]=(0,t.useState)(!1),[u,s]=(0,t.useState)(!1),{info:c,debug:f}=ze("App");return(0,t.useEffect)((()=>{const e=e=>{e.ctrlKey&&e.shiftKey&&"D"===e.key&&(f("Debug dashboard toggled via keyboard shortcut"),s((e=>!e)))};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)}),[f]),(0,o.jsxs)("div",{className:"app font-sora",children:[e?(0,o.jsx)(j,{onComplete:()=>{c("User completed intro"),r(!1),i(!0),l(!0),setTimeout((()=>{i(!1)}),2e3)}}):(0,o.jsxs)(o.Fragment,{children:[n&&(0,o.jsx)("div",{className:"fixed inset-0 z-50",children:(0,o.jsx)(_,{})}),a&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("header",{className:"app-header bg-obsidian text-white"}),(0,o.jsx)("main",{children:(0,o.jsx)(fw,{onShowIntro:()=>{c("User requested to show intro"),r(!0),i(!1),l(!1)}})})]})]}),!1]})},hw="App",class extends t.Component{constructor(e){super(e),this.state={hasError:!1},this.logger=(e=>d.createChildLogger({component:e}))(hw)}static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){this.logger.error("Component Error Boundary",{error:e.message,stack:e.stack,componentStack:t.componentStack}
2),window.__LOGGER_ERROR_BOUNDARY__&&window.__LOGGER_ERROR_BOUNDARY__(e,t)}render(){return this.state.hasError?(0,o.jsxs)("div",{className:"error-boundary p-4 bg-red-50 border border-red-200 rounded",children:[(0,o.jsx)("h2",{className:"text-red-800 font-semibold",children:"Something went wrong"}),(0,o.jsxs)("p",{className:"text-red-600 text-sm mt-2",children:["An error occurred in ",hw,". Please refresh the page or contact support."]})]}):(0,o.jsx)(pw,{...this.props})}});var pw,hw;const yw=e=>{e&&e instanceof Function&&r.e(453).then(r.bind(r,6453)).then((t=>{let{getCLS:r,getFID:n,getFCP:o,getLCP:i,getTTFB:a}=t;r(e),n(e),o(e),i(e),a(e)}))};n.createRoot(document.getElementById("root")).render((0,o.jsx)(t.StrictMode,{children:(0,o.jsx)(dw,{})})),yw()})()})();
3//# sourceMappingURL=main.f4790022.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.