@careevolution/mydatahelps-ui 2.2.1-VB2.2 → 2.2.1-VB2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +0 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/container/SurveyTaskList/SurveyTaskList.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -212,5 +212,5 @@ var i=n[t];i.value*=-1,this.$=i}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
212
212
|
38:14,
|
|
213
213
|
/*! Conditions:: INITIAL */
|
|
214
214
|
/*! Rule:: $ */
|
|
215
|
-
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();void 0!==Ix&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Rx);var Lx={},zx={exports:{}},Fx={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},Bx=function(e,t,n,r){if(!Fx.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Fx[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=Fx[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Bx);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(zx,zx.exports);var qx=zx.exports;Object.defineProperty(Lx,"__esModule",{value:!0}),Lx.flip=Gx;var Hx=function(e){return e&&e.__esModule?e:{default:e}}(qx);function Vx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Hx.default)(e.left,e.right,t),r=Vx(n.left,t),i=Vx(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(Ux(r.right,i.right)?n=(0,Hx.default)(r.left,i.left,t):Ux(r.right,i.left)&&(n=(0,Hx.default)(r.left,i.right,t)),r=Vx(n.left,t),i=Vx(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return $x(i);r.type===i.type&&Wx(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Wx(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=Vx({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Gx(i.operator):i.operator,Vx(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=Vx({type:"MathExpression",operator:"-"===o?Gx(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,Vx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Wx(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=Vx({type:"MathExpression",operator:o,left:r.left,right:i},t),Vx(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Vx({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=Vx({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Vx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Wx(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return Wx(e.left.left.type)&&Wx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Vx(e.left,t)):e;if(Wx(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(Wx(e.left.left.type)&&Wx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Wx(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(Wx(e.right.left.type)&&Wx(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&Wx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Vx(e.value,t):e}function Ux(e,t){return e.type===t.type&&e.value===t.value}function Wx(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Gx(e){return"+"===e?"-":"+"}function $x(e){return Wx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=$x(e.left),e.right=$x(e.right)),e}Lx.default=Vx;var Yx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=Lx,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,c=e.right,s=e.operator,l="";return"MathExpression"===a.type&&r[s]<r[a.operator]?l+="("+o(a,t)+")":l+=o(a,t),l+=" "+e.operator+" ","MathExpression"===c.type&&r[s]<r[c.operator]?l+="("+o(c,t)+")":"MathExpression"===c.type&&"-"===s&&["+","-"].includes(c.operator)?(c.operator=(0,n.flip)(c.operator),l+=o(c,t)):l+=o(c,t),l;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(Yx,Yx.exports);var Xx=Yx.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Nx),r=Rx,i=a(Lx),o=a(Xx);function a(e){return e&&e.__esModule?e:{default:e}}var c=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&c.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var s=r.parser.parse(a),l=(0,i.default)(s,t);e.type="word",e.value=(0,o.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(gx,gx.exports);var Zx=E(gx.exports);function Kx(e){return Kx="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},Kx(e)}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ew(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){return function(e){if(Array.isArray(e))return nw(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 nw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nw(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 nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rw={widthCache:{},cacheCount:0},iw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ow=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],aw="recharts_measurement_span";var cw=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat(function(e){return e.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(tw(e),["-",t.toLowerCase()]):[].concat(tw(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],ow.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},sw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||bb.isSsr)return{width:0,height:0};var n="".concat(e),r=cw(t),i="".concat(n,"-").concat(r);if(rw.widthCache[i])return rw.widthCache[i];try{var o=document.getElementById(aw);o||((o=document.createElement("span")).setAttribute("id",aw),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Qx(Qx({},iw),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var c=o.getBoundingClientRect(),s={width:c.width,height:c.height};return rw.widthCache[i]=s,++rw.cacheCount>2e3&&(rw.cacheCount=0,rw.widthCache={}),s}catch(e){return{width:0,height:0}}},lw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function uw(e){return uw="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},uw(e)}function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(this,arguments)}function pw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kw(r.key),r)}}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hw(e,t)}function mw(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 n,r=yw(e);if(t){var i=yw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===uw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vw(e)}(this,n)}}function vw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yw(e){return yw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yw(e)}function gw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(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 bw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ww(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(n),!0).forEach((function(t){_w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _w(e,t,n){return(t=kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(e){var t=function(e,t){if("object"!==uw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uw(t)?t:String(t)}var Sw=/[ \f\n\r\t\v\u2028\u2029]+/,Ew=function(e){try{var t=[];return Pa(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Sw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:sw(t,e.style).width}})),spaceWidth:e.breakAll?0:sw(" ",e.style).width}}catch(e){return null}},Ow=function(e){return[{words:Pa(e)?[]:e.toString().split(Sw)}]},Aw=function(e,t){if((e.width||e.scaleToFit)&&!bb.isSsr&&t){var n=Ew(e);return n?function(e,t,n,r,i){var o=Ua(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==r||i||c.width+a+n<r))c.words.push(o),c.width+=a+n;else{var s={words:[o],width:a};e.push(s)}return e}),[])},s=c(t);if(!o)return s;for(var l,u=function(t){var n=a.slice(0,t),i=Ew(ww(ww({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=c(i),s=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[s,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=gw(u(h-1),2),v=m[0],y=m[1],g=gw(u(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){l=y;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Ow(e.children)}return Ow(e.children)},Cw=function(t){!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&&hw(e,t)}(a,g);var n,r,i,o=mw(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _w(vw(e=o.call.apply(o,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.dx,r=t.dy,i=t.textAnchor,o=t.verticalAnchor,c=t.scaleToFit,s=t.angle,l=t.lineHeight,u=t.capHeight,f=t.className,p=t.breakAll,d=pw(t,lw),h=this.state.wordsByLines;if(!Wa(d.x)||!Wa(d.y))return null;var m,v=d.x+(Ua(n)?n:0),y=d.y+(Ua(r)?r:0);switch(o){case"start":m=Zx("calc(".concat(u,")"));break;case"middle":m=Zx("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=Zx("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((Ua(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(v,", ").concat(y,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",fw({},xc(d,!0),{x:v,y:y,className:Jr("recharts-text",f),textAnchor:i,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(t,n){return e.createElement("tspan",{x:v,dy:0===n?m:l,key:n},t.words.join(p?"":" "))})))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:Aw(e,n)}}return null}}],r&&dw(n.prototype,r),i&&dw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();_w(Cw,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var Tw=uu;var Pw=E((function(e,t){return Tw(e,t)})),jw=Pi;var Dw=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===c?a==a&&!jw(a):n(a,c)))var c=a,s=o}return s};var Mw=function(e,t){return e>t},Nw=Dw,Iw=Mw,Rw=Vu;var Lw=function(e){return e&&e.length?Nw(e,Rw,Iw):void 0},zw=E(Lw);var Fw=function(e,t){return e<t},Bw=Dw,qw=Fw,Hw=Vu;var Vw=function(e){return e&&e.length?Bw(e,Hw,qw):void 0},Uw=E(Vw),Ww=ca,Gw=nf,$w=yg,Yw=wi;var Xw=sg,Zw=function(e,t){return(Yw(e)?Ww:$w)(e,Gw(t))};var Kw=E((function(e,t){return Xw(Zw(e,t),1)}));function Jw(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qw(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function e_(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Jw,n=(t,n)=>Jw(e(t),n),r=(t,n)=>e(t)-n):(t=e===Jw||e===Qw?e:t_,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function t_(){return 0}function n_(e){return null===e?NaN:+e}const r_=e_(Jw).right;e_(n_).center;class i_ extends Map{constructor(e,t=a_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(o_(this,e))}has(e){return super.has(o_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function o_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function c_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const s_=Math.sqrt(50),l_=Math.sqrt(10),u_=Math.sqrt(2);function f_(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=s_?10:o>=l_?5:o>=u_?2:1;let c,s,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(e*l),s=Math.round(t*l),c/l<e&&++c,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*a,c=Math.round(e/l),s=Math.round(t/l),c*l<e&&++c,s*l>t&&--s),s<c&&.5<=n&&n<2?f_(e,t,2*n):[c,s,l]}function p_(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?f_(t,e,n):f_(e,t,n);if(!(o>=i))return[];const c=o-i+1,s=new Array(c);if(r)if(a<0)for(let e=0;e<c;++e)s[e]=(o-e)/-a;else for(let e=0;e<c;++e)s[e]=(o-e)*a;else if(a<0)for(let e=0;e<c;++e)s[e]=(i+e)/-a;else for(let e=0;e<c;++e)s[e]=(i+e)*a;return s}function d_(e,t,n){return f_(e=+e,t=+t,n=+n)[2]}function h_(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?d_(t,e,n):d_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function m_(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function v_(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function y_(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?c_:function(e=Jw){if(e===Jw)return c_;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,c=Math.log(o),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(o-s)/o)*(a-o/2<0?-1:1);y_(e,t,Math.max(n,Math.floor(t-a*s/o+l)),Math.min(r,Math.floor(t+(o-a)*s/o+l)),i)}const o=e[t];let a=n,c=r;for(g_(e,n,t),i(e[r],o)>0&&g_(e,n,r);a<c;){for(g_(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?g_(e,n,c):(++c,g_(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function g_(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b_(e,t,n=n_){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function x_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function w_(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}const __=Symbol("implicit");function k_(){var e=new i_,t=[],n=[],r=__;function i(i){let o=e.get(i);if(void 0===o){if(r!==__)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new i_;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return k_(t,n).unknown(r)},x_.apply(i,arguments),i}function S_(){var e,t,n=k_().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,s=0,l=0,u=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-s+2*l),c&&(e=Math.floor(e)),p+=(d-p-e*(n-s))*u,t=e*(1-s),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(c=!!e,f()):c},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),f()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return S_(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},x_.apply(f(),arguments)}function E_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return E_(t())},e}function O_(){return E_(S_.apply(null,arguments).paddingInner(1))}function A_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function T_(){}var P_=.7,j_=1/P_,D_="\\s*([+-]?\\d+)\\s*",M_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",N_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I_=/^#([0-9a-f]{3,8})$/,R_=new RegExp(`^rgb\\(${D_},${D_},${D_}\\)$`),L_=new RegExp(`^rgb\\(${N_},${N_},${N_}\\)$`),z_=new RegExp(`^rgba\\(${D_},${D_},${D_},${M_}\\)$`),F_=new RegExp(`^rgba\\(${N_},${N_},${N_},${M_}\\)$`),B_=new RegExp(`^hsl\\(${M_},${N_},${N_}\\)$`),q_=new RegExp(`^hsla\\(${M_},${N_},${N_},${M_}\\)$`),H_={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 V_(){return this.rgb().formatHex()}function U_(){return this.rgb().formatRgb()}function W_(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=I_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?G_(t):3===n?new Z_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$_(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=R_.exec(e))?new Z_(t[1],t[2],t[3],1):(t=L_.exec(e))?new Z_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=z_.exec(e))?$_(t[1],t[2],t[3],t[4]):(t=F_.exec(e))?$_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=B_.exec(e))?nk(t[1],t[2]/100,t[3]/100,1):(t=q_.exec(e))?nk(t[1],t[2]/100,t[3]/100,t[4]):H_.hasOwnProperty(e)?G_(H_[e]):"transparent"===e?new Z_(NaN,NaN,NaN,0):null}function G_(e){return new Z_(e>>16&255,e>>8&255,255&e,1)}function $_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Z_(e,t,n,r)}function Y_(e){return e instanceof T_||(e=W_(e)),e?new Z_((e=e.rgb()).r,e.g,e.b,e.opacity):new Z_}function X_(e,t,n,r){return 1===arguments.length?Y_(e):new Z_(e,t,n,null==r?1:r)}function Z_(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function K_(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}`}function J_(){const e=Q_(this.opacity);return`${1===e?"rgb(":"rgba("}${ek(this.r)}, ${ek(this.g)}, ${ek(this.b)}${1===e?")":`, ${e})`}`}function Q_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ek(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tk(e){return((e=ek(e))<16?"0":"")+e.toString(16)}function nk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ik(e,t,n,r)}function rk(e){if(e instanceof ik)return new ik(e.h,e.s,e.l,e.opacity);if(e instanceof T_||(e=W_(e)),!e)return new ik;if(e instanceof ik)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=t===o?(n-r)/c+6*(n<r):n===o?(r-t)/c+2:(t-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new ik(a,c,s,e.opacity)}function ik(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ok(e){return(e=(e||0)%360)<0?e+360:e}function ak(e){return Math.max(0,Math.min(1,e||0))}function ck(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}A_(T_,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V_,formatHex:V_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rk(this).formatHsl()},formatRgb:U_,toString:U_}),A_(Z_,X_,C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new Z_(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new Z_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Z_(ek(this.r),ek(this.g),ek(this.b),Q_(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:K_,formatHex:K_,formatHex8:function(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}${tk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:J_,toString:J_})),A_(ik,(function(e,t,n,r){return 1===arguments.length?rk(e):new ik(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new ik(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new ik(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Z_(ck(e>=240?e-240:e+120,i,r),ck(e,i,r),ck(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ik(ok(this.h),ak(this.s),ak(this.l),Q_(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=Q_(this.opacity);return`${1===e?"hsl(":"hsla("}${ok(this.h)}, ${100*ak(this.s)}%, ${100*ak(this.l)}%${1===e?")":`, ${e})`}`}}));const sk=Math.PI/180,lk=180/Math.PI,uk=.96422,fk=1,pk=.82521,dk=4/29,hk=6/29,mk=3*hk*hk,vk=hk*hk*hk;function yk(e){if(e instanceof gk)return new gk(e.l,e.a,e.b,e.opacity);if(e instanceof kk)return Sk(e);e instanceof Z_||(e=Y_(e));var t,n,r=_k(e.r),i=_k(e.g),o=_k(e.b),a=bk((.2225045*r+.7168786*i+.0606169*o)/fk);return r===i&&i===o?t=n=a:(t=bk((.4360747*r+.3850649*i+.1430804*o)/uk),n=bk((.0139322*r+.0971045*i+.7141733*o)/pk)),new gk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bk(e){return e>vk?Math.pow(e,1/3):e/mk+dk}function xk(e){return e>hk?e*e*e:mk*(e-dk)}function wk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _k(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sk(e){if(isNaN(e.h))return new gk(e.l,0,0,e.opacity);var t=e.h*sk;return new gk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}A_(gk,(function(e,t,n,r){return 1===arguments.length?yk(e):new gk(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return new gk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Z_(wk(3.1338561*(t=uk*xk(t))-1.6168667*(e=fk*xk(e))-.4906146*(n=pk*xk(n))),wk(-.9787684*t+1.9161415*e+.033454*n),wk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),A_(kk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kk)return new kk(e.h,e.c,e.l,e.opacity);if(e instanceof gk||(e=yk(e)),0===e.a&&0===e.b)return new kk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lk;return new kk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kk(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return new kk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sk(this).rgb()}}));var Ek=-.14861,Ok=1.78277,Ak=-.29227,Ck=-.90649,Tk=1.97294,Pk=Tk*Ck,jk=Tk*Ok,Dk=Ok*Ak-Ck*Ek;function Mk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nk)return new Nk(e.h,e.s,e.l,e.opacity);e instanceof Z_||(e=Y_(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Dk*r+Pk*t-jk*n)/(Dk+Pk-jk),o=r-i,a=(Tk*(n-i)-Ak*o)/Ck,c=Math.sqrt(a*a+o*o)/(Tk*i*(1-i)),s=c?Math.atan2(a,o)*lk-120:NaN;return new Nk(s<0?s+360:s,c,i,e.opacity)}(e):new Nk(e,t,n,null==r?1:r)}function Nk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}A_(Nk,Mk,C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new Nk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new Nk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*sk,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Z_(255*(t+n*(Ek*r+Ok*i)),255*(t+n*(Ak*r+Ck*i)),255*(t+n*(Tk*r)),this.opacity)}}));var Ik=e=>()=>e;function Rk(e,t){return function(n){return e+n*t}}function Lk(e){return 1==(e=+e)?zk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ik(isNaN(t)?n:t)}}function zk(e,t){var n=t-e;return n?Rk(e,n):Ik(isNaN(e)?t:e)}var Fk=function e(t){var n=Lk(t);function r(e,t){var r=n((e=X_(e)).r,(t=X_(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=zk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Bk(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function qk(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yk(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Hk(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Vk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Uk(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Yk(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Wk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gk=new RegExp(Wk.source,"g");function $k(e,t){var n,r,i,o=Wk.lastIndex=Gk.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=Wk.exec(e))&&(r=Gk.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:Vk(n,r)})),o=Gk.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)c[(n=s[r]).i]=n.x(e);return c.join("")})}function Yk(e,t){var n,r=typeof t;return null==t||"boolean"===r?Ik(t):("number"===r?Vk:"string"===r?(n=W_(t))?(t=n,Fk):$k:t instanceof W_?Fk:t instanceof Date?Hk:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Bk:Array.isArray(t)?qk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Uk:Vk)(e,t)}function Xk(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Zk(e){return((e=Math.exp(e))+1/e)/2}function Kk(e){return function t(n){function r(t,r){var i=e((t=Mk(t)).h,(r=Mk(r)).h),o=zk(t.s,r.s),a=zk(t.l,r.l),c=zk(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Jk(e,t){void 0===t&&(t=e,e=Yk);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Qk(e){return+e}!function e(t,n,r){function i(e,i){var o,a,c=e[0],s=e[1],l=e[2],u=i[0],f=i[1],p=i[2],d=u-c,h=f-s,m=d*d+h*h;if(m<1e-12)a=Math.log(p/l)/t,o=function(e){return[c+e*d,s+e*h,l*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),y=(p*p-l*l+r*m)/(2*l*n*v),g=(p*p-l*l-r*m)/(2*p*n*v),b=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=Zk(b),o=l/(n*v)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[c+o*d,s+o*h,l*i/Zk(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Kk((function(e,t){var n=t-e;return n?Rk(e,n>180||n<-180?n-360*Math.round(n/360):n):Ik(isNaN(e)?t:e)})),Kk(zk);var eS=[0,1];function tS(e){return e}function nS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function rS(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=nS(i,r),o=n(a,o)):(r=nS(r,i),o=n(o,a)),function(e){return o(r(e))}}function iS(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=nS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=r_(e,t,1,r)-1;return o[n](i[n](t))}}function oS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function aS(){var e,t,n,r,i,o,a=eS,c=eS,s=Yk,l=tS;function u(){var e=Math.min(a.length,c.length);return l!==tS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?iS:rS,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),c,s)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(c,a.map(e),Vk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Qk),u()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),u()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),s=Xk,u()},f.clamp=function(e){return arguments.length?(l=!!e||tS,u()):l!==tS},f.interpolate=function(e){return arguments.length?(s=e,u()):s},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function cS(){return aS()(tS,tS)}function sS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lS(e){return(e=sS(Math.abs(e)))?e[1]:NaN}var uS,fS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pS(e){if(!(t=fS.exec(e)))throw new Error("invalid format: "+e);var t;return new dS({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 dS(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 hS(e,t){var n=sS(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}pS.prototype=dS.prototype,dS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var mS={"%":(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)=>hS(100*e,t),r:hS,s:function(e,t){var n=sS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(uS=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+sS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function vS(e){return e}var yS,gS,bS,xS=Array.prototype.map,wS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _S(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?vS:(t=xS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,c=t[0],s=0;i>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),o.push(e.substring(i-=c,i+c)),!((s+=c+1)>r));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?vS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xS.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=pS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):mS[g]||(void 0===v&&(v=12),y=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?o:/[%p]/.test(g)?s:"",w=mS[g],_=/[defgprs%]/.test(g);function k(e){var i,o,s,p=b,k=x;if("c"===g)k=w(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,k=("s"===g?wS[8+uS/3]:"")+k+(S&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var E=p.length+e.length+k.length,O=E<h?new Array(h-E+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-k.length:1/0),O=""),n){case"<":e=p+e+k+O;break;case"=":e=p+O+e+k;break;case"^":e=O.slice(0,E=O.length>>1)+p+e+k+O.slice(E);break;default:e=O+p+e+k}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=pS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(lS(t)/3))),i=Math.pow(10,-r),o=wS[8+r/3];return function(e){return n(i*e)+o}}}}function kS(e,t,n,r){var i,o=h_(e,t,n);switch((r=pS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lS(t)/3)))-lS(Math.abs(e)))}(o,a))||(r.precision=i),bS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lS(t)-lS(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-lS(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return gS(r)}function SS(e){var t=e.domain;return e.ticks=function(e){var n=t();return p_(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return kS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,c=o.length-1,s=o[a],l=o[c],u=10;for(l<s&&(i=s,s=l,l=i,i=a,a=c,c=i);u-- >0;){if((i=d_(s,l,n))===r)return o[a]=s,o[c]=l,t(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function ES(){var e=cS();return e.copy=function(){return oS(e,ES())},x_.apply(e,arguments),SS(e)}function OS(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function AS(e){return Math.log(e)}function CS(e){return Math.exp(e)}function TS(e){return-Math.log(-e)}function PS(e){return-Math.exp(-e)}function jS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function DS(e){return(t,n)=>-e(-t,n)}function MS(e){const t=e(AS,CS),n=t.domain;let r,i,o=10;function a(){return r=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)}(o),i=function(e){return 10===e?jS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=DS(r),i=DS(i),e(TS,PS)):e(AS,CS),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],c=t[t.length-1];const s=c<a;s&&([a,c]=[c,a]);let l,u,f=r(a),p=r(c);const d=null==e?10:+e;let h=[];if(!(o%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<o;++l)if(u=f<0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}}else for(;f<=p;++f)for(l=o-1;l>=1;--l)if(u=f>0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}2*h.length<d&&(h=p_(a,c,d))}else h=p_(f,p,Math.min(p-f,d)).map(i);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=pS(n)).precision||(n.trim=!0),n=gS(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(OS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function NS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function RS(e){var t=1,n=e(NS(t),IS(t));return n.constant=function(n){return arguments.length?e(NS(t=+n),IS(t)):t},SS(n)}function LS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FS(e){return e<0?-e*e:e*e}function BS(e){var t=e(tS,tS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(tS,tS):.5===n?e(zS,FS):e(LS(n),LS(1/n)):n},SS(t)}function qS(){var e=BS(aS());return e.copy=function(){return oS(e,qS()).exponent(e.exponent())},x_.apply(e,arguments),e}function HS(e){return Math.sign(e)*e*e}yS=_S({thousands:",",grouping:[3],currency:["$",""]}),gS=yS.format,bS=yS.formatPrefix;const VS=new Date,US=new Date;function WS(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),t(n,o),e(n)}while(c<n&&n<r);return a},i.filter=n=>WS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(VS.setTime(+t),US.setTime(+r),e(VS),e(US),Math.floor(n(VS,US))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const GS=WS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));GS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?WS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):GS:null),GS.range;const $S=1e3,YS=6e4,XS=36e5,ZS=864e5,KS=6048e5,JS=2592e6,QS=31536e6,eE=WS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*$S)}),((e,t)=>(t-e)/$S),(e=>e.getUTCSeconds()));eE.range;const tE=WS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$S)}),((e,t)=>{e.setTime(+e+t*YS)}),((e,t)=>(t-e)/YS),(e=>e.getMinutes()));tE.range;const nE=WS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*YS)}),((e,t)=>(t-e)/YS),(e=>e.getUTCMinutes()));nE.range;const rE=WS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$S-e.getMinutes()*YS)}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getHours()));rE.range;const iE=WS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getUTCHours()));iE.range;const oE=WS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*YS)/ZS),(e=>e.getDate()-1));oE.range;const aE=WS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ZS),(e=>e.getUTCDate()-1));aE.range;const cE=WS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ZS),(e=>Math.floor(e/ZS)));function sE(e){return WS((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())*YS)/KS))}cE.range;const lE=sE(0),uE=sE(1),fE=sE(2),pE=sE(3),dE=sE(4),hE=sE(5),mE=sE(6);function vE(e){return WS((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)/KS))}lE.range,uE.range,fE.range,pE.range,dE.range,hE.range,mE.range;const yE=vE(0),gE=vE(1),bE=vE(2),xE=vE(3),wE=vE(4),_E=vE(5),kE=vE(6);yE.range,gE.range,bE.range,xE.range,wE.range,_E.range,kE.range;const SE=WS((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()));SE.range;const EE=WS((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()));EE.range;const OE=WS((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()));OE.every=e=>isFinite(e=Math.floor(e))&&e>0?WS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,OE.range;const AE=WS((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()));function CE(e,t,n,r,i,o){const a=[[eE,1,$S],[eE,5,5e3],[eE,15,15e3],[eE,30,3e4],[o,1,YS],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,XS],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ZS],[r,2,1728e5],[n,1,KS],[t,1,JS],[t,3,7776e6],[e,1,QS]];function c(t,n,r){const i=Math.abs(n-t)/r,o=e_((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(h_(t/QS,n/QS,r));if(0===o)return GS.every(Math.max(h_(t,n,r),1));const[c,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:c(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},c]}AE.every=e=>isFinite(e=Math.floor(e))&&e>0?WS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,AE.range;const[TE,PE]=CE(AE,EE,yE,cE,iE,nE),[jE,DE]=CE(OE,SE,lE,oE,rE,tE);function ME(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 NE(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 IE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var RE,LE,zE,FE,BE={"-":"",_:" ",0:"0"},qE=/^\s*\d+/,HE=/^%/,VE=/[\\^$*+?|[\]().{}]/g;function UE(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function WE(e){return e.replace(VE,"\\$&")}function GE(e){return new RegExp("^(?:"+e.map(WE).join("|")+")","i")}function $E(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function YE(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function XE(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function KE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function JE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function QE(e,t,n){var r=qE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tO(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nO(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oO(e,t,n){var r=qE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=qE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=qE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fO(e,t,n){var r=HE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pO(e,t,n){var r=qE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dO(e,t,n){var r=qE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hO(e,t){return UE(e.getDate(),t,2)}function mO(e,t){return UE(e.getHours(),t,2)}function vO(e,t){return UE(e.getHours()%12||12,t,2)}function yO(e,t){return UE(1+oE.count(OE(e),e),t,3)}function gO(e,t){return UE(e.getMilliseconds(),t,3)}function bO(e,t){return gO(e,t)+"000"}function xO(e,t){return UE(e.getMonth()+1,t,2)}function wO(e,t){return UE(e.getMinutes(),t,2)}function _O(e,t){return UE(e.getSeconds(),t,2)}function kO(e){var t=e.getDay();return 0===t?7:t}function SO(e,t){return UE(lE.count(OE(e)-1,e),t,2)}function EO(e){var t=e.getDay();return t>=4||0===t?dE(e):dE.ceil(e)}function OO(e,t){return e=EO(e),UE(dE.count(OE(e),e)+(4===OE(e).getDay()),t,2)}function AO(e){return e.getDay()}function CO(e,t){return UE(uE.count(OE(e)-1,e),t,2)}function TO(e,t){return UE(e.getFullYear()%100,t,2)}function PO(e,t){return UE((e=EO(e)).getFullYear()%100,t,2)}function jO(e,t){return UE(e.getFullYear()%1e4,t,4)}function DO(e,t){var n=e.getDay();return UE((e=n>=4||0===n?dE(e):dE.ceil(e)).getFullYear()%1e4,t,4)}function MO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+UE(t/60|0,"0",2)+UE(t%60,"0",2)}function NO(e,t){return UE(e.getUTCDate(),t,2)}function IO(e,t){return UE(e.getUTCHours(),t,2)}function RO(e,t){return UE(e.getUTCHours()%12||12,t,2)}function LO(e,t){return UE(1+aE.count(AE(e),e),t,3)}function zO(e,t){return UE(e.getUTCMilliseconds(),t,3)}function FO(e,t){return zO(e,t)+"000"}function BO(e,t){return UE(e.getUTCMonth()+1,t,2)}function qO(e,t){return UE(e.getUTCMinutes(),t,2)}function HO(e,t){return UE(e.getUTCSeconds(),t,2)}function VO(e){var t=e.getUTCDay();return 0===t?7:t}function UO(e,t){return UE(yE.count(AE(e)-1,e),t,2)}function WO(e){var t=e.getUTCDay();return t>=4||0===t?wE(e):wE.ceil(e)}function GO(e,t){return e=WO(e),UE(wE.count(AE(e),e)+(4===AE(e).getUTCDay()),t,2)}function $O(e){return e.getUTCDay()}function YO(e,t){return UE(gE.count(AE(e)-1,e),t,2)}function XO(e,t){return UE(e.getUTCFullYear()%100,t,2)}function ZO(e,t){return UE((e=WO(e)).getUTCFullYear()%100,t,2)}function KO(e,t){return UE(e.getUTCFullYear()%1e4,t,4)}function JO(e,t){var n=e.getUTCDay();return UE((e=n>=4||0===n?wE(e):wE.ceil(e)).getUTCFullYear()%1e4,t,4)}function QO(){return"+0000"}function eA(){return"%"}function tA(e){return+e}function nA(e){return Math.floor(+e/1e3)}!function(e){RE=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,s=e.shortMonths,l=GE(i),u=$E(i),f=GE(o),p=$E(o),d=GE(a),h=$E(a),m=GE(c),v=$E(c),y=GE(s),g=$E(s),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:hO,e:hO,f:bO,g:PO,G:DO,H:mO,I:vO,j:yO,L:gO,m:xO,M:wO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:tA,s:nA,S:_O,u:kO,U:SO,V:OO,w:AO,W:CO,x:null,X:null,y:TO,Y:jO,Z:MO,"%":eA},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:NO,e:NO,f:FO,g:ZO,G:JO,H:IO,I:RO,j:LO,L:zO,m:BO,M:qO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:tA,s:nA,S:HO,u:VO,U:UO,V:GO,w:$O,W:YO,x:null,X:null,y:XO,Y:KO,Z:QO,"%":eA},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:iO,e:iO,f:uO,g:eO,G:QE,H:aO,I:aO,j:oO,L:lO,m:rO,M:cO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:nO,Q:pO,s:dO,S:sO,u:XE,U:ZE,V:KE,w:YE,W:JE,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:eO,Y:QE,Z:tO,"%":fO};function _(e,t){return function(n){var r,i,o,a=[],c=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(s,c)),null!=(i=BE[r=e.charAt(++c)])?r=e.charAt(++c):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=c+1);return a.push(e.slice(s,c)),a.join("")}}function k(e,t){return function(n){var r,i,o=IE(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=NE(IE(o.y,0,1))).getUTCDay(),r=i>4||0===i?gE.ceil(r):gE(r),r=aE.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ME(IE(o.y,0,1))).getDay(),r=i>4||0===i?uE.ceil(r):uE(r),r=oE.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?NE(IE(o.y,0,1)).getUTCDay():ME(IE(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,NE(o)):ME(o)}}function S(e,t,n,r){for(var i,o,a=0,c=t.length,s=n.length;a<c;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in BE?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(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=_(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),LE=RE.format,RE.parse,zE=RE.utcFormat,FE=RE.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"]});var rA="%Y-%m-%dT%H:%M:%S.%LZ";function iA(e){return new Date(e)}function oA(e){return e instanceof Date?+e:+new Date(+e)}function aA(e,t,n,r,i,o,a,c,s,l){var u=cS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(e){return(s(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?v:r(e)<e?i(e)<e?y:g:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?p(Array.from(e,oA)):p().map(iA)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:l(t)},u.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(OS(n,e)):u},u.copy=function(){return oS(u,aA(e,t,n,r,i,o,a,c,s,l))},u}function cA(){var e,t,n,r,i,o=0,a=1,c=tS,s=!1;function l(t){return null==t||isNaN(t=+t)?i:c(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,c=e(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(c=e,l):c},l.range=u(Yk),l.rangeRound=u(Xk),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function sA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lA(){var e=BS(cA());return e.copy=function(){return sA(e,lA()).exponent(e.exponent())},w_.apply(e,arguments)}function uA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=tS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=Jk(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,s,l]=a,e=o(c=+c),t=o(s=+s),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d):[c,s,l]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(Yk),d.rangeRound=h(Xk),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(s),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d}}function fA(){var e=BS(uA());return e.copy=function(){return sA(e,fA()).exponent(e.exponent())},w_.apply(e,arguments)}Date.prototype.toISOString||zE(rA),+new Date("2000-01-01T00:00:00.000Z")||FE(rA);var pA,dA=Object.freeze({__proto__:null,scaleBand:S_,scalePoint:O_,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Qk),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,Qk):[0,1],SS(r)},scaleLinear:ES,scaleLog:function e(){const t=MS(aS()).domain([1,10]);return t.copy=()=>oS(t,e()).base(t.base()),x_.apply(t,arguments),t},scaleSymlog:function e(){var t=RS(aS());return t.copy=function(){return oS(t,e()).constant(t.constant())},x_.apply(t,arguments)},scaleOrdinal:k_,scaleImplicit:__,scalePow:qS,scaleSqrt:function(){return qS.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=cS(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(HS(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Qk)).map(HS)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},x_.apply(o,arguments),SS(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=b_(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[r_(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Jw),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},x_.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[r_(o,e,0,i)]:t}function s(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return c}return c.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},c.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,s()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return e().domain([n,r]).range(a).unknown(t)},x_.apply(SS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[r_(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},x_.apply(o,arguments)},scaleTime:function(){return x_.apply(aA(jE,DE,OE,SE,lE,oE,rE,tE,eE,LE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return x_.apply(aA(TE,PE,AE,EE,yE,aE,iE,nE,eE,zE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=SS(cA()(tS));return t.copy=function(){return sA(t,e())},w_.apply(t,arguments)},scaleSequentialLog:function e(){var t=MS(cA()).domain([1,10]);return t.copy=function(){return sA(t,e()).base(t.base())},w_.apply(t,arguments)},scaleSequentialPow:lA,scaleSequentialSqrt:function(){return lA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=RS(cA());return t.copy=function(){return sA(t,e()).constant(t.constant())},w_.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=tS;function r(e){if(null!=e&&!isNaN(e=+e))return n((r_(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Jw),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return v_(e);if(t>=1)return m_(e);var r,i=(r-1)*t,o=Math.floor(i),a=m_(y_(e,o).subarray(0,o+1));return a+(v_(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},w_.apply(r,arguments)},scaleDiverging:function e(){var t=SS(uA()(tS));return t.copy=function(){return sA(t,e())},w_.apply(t,arguments)},scaleDivergingLog:function e(){var t=MS(uA()).domain([.1,1,10]);return t.copy=function(){return sA(t,e()).base(t.base())},w_.apply(t,arguments)},scaleDivergingPow:fA,scaleDivergingSqrt:function(){return fA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=RS(uA());return t.copy=function(){return sA(t,e()).constant(t.constant())},w_.apply(t,arguments)},tickFormat:kS}),hA={},mA={},vA=1e9,yA=!0,gA="[DecimalError] ",bA=gA+"Invalid argument: ",xA=gA+"Exponent out of range: ",wA=Math.floor,_A=Math.pow,kA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,SA=1e7,EA=7,OA=9007199254740991,AA=wA(OA/EA),CA={};function TA(e,t){var n,r,i,o,a,c,s,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),yA?FA(t,f):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(r=s,o=-o,c=l.length):(r=l,i=a,c=s.length),o>(c=(a=Math.ceil(f/EA))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,r=l,l=s,s=r),n=0;o;)n=(s[--o]=s[o]+l[o]+n)/SA|0,s[o]%=SA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,yA?FA(t,f):t}function PA(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bA+e)}function jA(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",(n=EA-r.length)&&(o+=RA(n)),o+=r;a=e[t],(n=EA-(r=a+"").length)&&(o+=RA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}CA.absoluteValue=CA.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},CA.comparedTo=CA.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},CA.decimalPlaces=CA.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*EA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},CA.dividedBy=CA.div=function(e){return DA(this,new this.constructor(e))},CA.dividedToIntegerBy=CA.idiv=function(e){var t=this.constructor;return FA(DA(this,new t(e),0,1),t.precision)},CA.equals=CA.eq=function(e){return!this.cmp(e)},CA.exponent=function(){return NA(this)},CA.greaterThan=CA.gt=function(e){return this.cmp(e)>0},CA.greaterThanOrEqualTo=CA.gte=function(e){return this.cmp(e)>=0},CA.isInteger=CA.isint=function(){return this.e>this.d.length-2},CA.isNegative=CA.isneg=function(){return this.s<0},CA.isPositive=CA.ispos=function(){return this.s>0},CA.isZero=function(){return 0===this.s},CA.lessThan=CA.lt=function(e){return this.cmp(e)<0},CA.lessThanOrEqualTo=CA.lte=function(e){return this.cmp(e)<1},CA.logarithm=CA.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(pA))throw Error(gA+"NaN");if(n.s<1)throw Error(gA+(n.s?"NaN":"-Infinity"));return n.eq(pA)?new r(0):(yA=!1,t=DA(LA(n,o),LA(e,o),o),yA=!0,FA(t,i))},CA.minus=CA.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BA(t,e):TA(t,(e.s=-e.s,e))},CA.modulo=CA.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(gA+"NaN");return n.s?(yA=!1,t=DA(n,e,0,1).times(e),yA=!0,n.minus(t)):FA(new r(n),i)},CA.naturalExponential=CA.exp=function(){return MA(this)},CA.naturalLogarithm=CA.ln=function(){return LA(this)},CA.negated=CA.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},CA.plus=CA.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TA(t,e):BA(t,(e.s=-e.s,e))},CA.precision=CA.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(bA+e);if(t=NA(i)+1,n=(r=i.d.length-1)*EA+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},CA.squareRoot=CA.sqrt=function(){var e,t,n,r,i,o,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(gA+"NaN")}for(e=NA(c),yA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=jA(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=wA((e+1)/2)-(e<0||e%2),r=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(i.toString()),i=a=(n=s.precision)+3;;)if(r=(o=r).plus(DA(c,o,a+2)).times(.5),jA(o.d).slice(0,a)===(t=jA(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(FA(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return yA=!0,FA(r,n)},CA.times=CA.mul=function(e){var t,n,r,i,o,a,c,s,l,u=this,f=u.constructor,p=u.d,d=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(s=p.length)<(l=d.length)&&(o=p,p=d,d=o,a=s,s=l,l=a),o=[],r=a=s+l;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=s+r;i>r;)c=o[i]+d[r]*p[i-r-1]+t,o[i--]=c%SA|0,t=c/SA|0;o[i]=(o[i]+t)%SA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,yA?FA(e,f.precision):e},CA.toDecimalPlaces=CA.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(PA(e,0,vA),void 0===t?t=r.rounding:PA(t,0,8),FA(n,e+NA(n)+1,t))},CA.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=qA(r,!0):(PA(e,0,vA),void 0===t?t=i.rounding:PA(t,0,8),n=qA(r=FA(new i(r),e+1,t),!0,e+1)),n},CA.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?qA(i):(PA(e,0,vA),void 0===t?t=o.rounding:PA(t,0,8),n=qA((r=FA(new o(i),e+NA(i)+1,t)).abs(),!1,e+NA(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},CA.toInteger=CA.toint=function(){var e=this,t=e.constructor;return FA(new t(e),NA(e)+1,t.rounding)},CA.toNumber=function(){return+this},CA.toPower=CA.pow=function(e){var t,n,r,i,o,a,c=this,s=c.constructor,l=+(e=new s(e));if(!e.s)return new s(pA);if(!(c=new s(c)).s){if(e.s<1)throw Error(gA+"Infinity");return c}if(c.eq(pA))return c;if(r=s.precision,e.eq(pA))return FA(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=OA){for(i=new s(pA),t=Math.ceil(r/EA+4),yA=!1;n%2&&HA((i=i.times(c)).d,t),0!==(n=wA(n/2));)HA((c=c.times(c)).d,t);return yA=!0,e.s<0?new s(pA).div(i):FA(i,r)}}else if(o<0)throw Error(gA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,yA=!1,i=e.times(LA(c,r+12)),yA=!0,(i=MA(i)).s=o,i},CA.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=qA(i,(n=NA(i))<=o.toExpNeg||n>=o.toExpPos):(PA(e,1,vA),void 0===t?t=o.rounding:PA(t,0,8),r=qA(i=FA(new o(i),e,t),e<=(n=NA(i))||n<=o.toExpNeg,e)),r},CA.toSignificantDigits=CA.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(PA(e,1,vA),void 0===t?t=n.rounding:PA(t,0,8)),FA(new n(this),e,t)},CA.toString=CA.valueOf=CA.val=CA.toJSON=CA[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=NA(e),n=e.constructor;return qA(e,t<=n.toExpNeg||t>=n.toExpPos)};var DA=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%SA|0,r=n/SA|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*SA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S,E=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new E(r);if(!i.s)throw Error(gA+"Division by zero");for(s=r.e-i.e,k=C.length,w=A.length,h=(d=new E(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=E.precision:a?o+(NA(r)-NA(i))+1:o)<0)return new E(0);if(g=g/EA+2|0,l=0,1==k)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*SA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=SA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),k=C.length,w=A.length),x=k,v=(m=A.slice(0,k)).length;v<k;)m[v++]=0;(S=C.slice()).unshift(0),_=C[0],C[1]>=SA/2&&++_;do{u=0,(c=t(C,m,k,v))<0?(y=m[0],k!=v&&(y=y*SA+(m[1]||0)),(u=y/_|0)>1?(u>=SA&&(u=SA-1),1==(c=t(f=e(C,u),m,p=f.length,v=m.length))&&(u--,n(f,k<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<v&&f.unshift(0),n(m,f,v),-1==c&&(c=t(C,m,k,v=m.length))<1&&(u++,n(m,k<v?S:C,v)),v=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[v++]=A[x]||0:(m=[A[x]],v=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,FA(d,a?o+NA(d)+1:o)}}();function MA(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(NA(e)>16)throw Error(xA+NA(e));if(!e.s)return new l(pA);for(null==t?(yA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(_A(2,s))/Math.LN10*2+5|0,n=r=i=new l(pA),l.precision=a;;){if(r=FA(r.times(e),a),n=n.times(++c),jA((o=i.plus(DA(r,n,a))).d).slice(0,a)===jA(i.d).slice(0,a)){for(;s--;)i=FA(i.times(i),a);return l.precision=u,null==t?(yA=!0,FA(i,u)):i}i=o}}function NA(e){for(var t=e.e*EA,n=e.d[0];n>=10;n/=10)t++;return t}function IA(e,t,n){if(t>e.LN10.sd())throw yA=!0,n&&(e.precision=n),Error(gA+"LN10 precision limit exceeded");return FA(new e(e.LN10),t)}function RA(e){for(var t="";e--;)t+="0";return t}function LA(e,t){var n,r,i,o,a,c,s,l,u,f=1,p=e,d=p.d,h=p.constructor,m=h.precision;if(p.s<1)throw Error(gA+(p.s?"NaN":"-Infinity"));if(p.eq(pA))return new h(0);if(null==t?(yA=!1,l=m):l=t,p.eq(10))return null==t&&(yA=!0),IA(h,l);if(l+=10,h.precision=l,r=(n=jA(d)).charAt(0),o=NA(p),!(Math.abs(o)<15e14))return s=IA(h,l+2,m).times(o+""),p=LA(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(yA=!0,FA(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=jA((p=p.times(e)).d)).charAt(0),f++;for(o=NA(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=DA(p.minus(pA),p.plus(pA),l),u=FA(p.times(p),l),i=3;;){if(a=FA(a.times(u),l),jA((s=c.plus(DA(a,new h(i),l))).d).slice(0,l)===jA(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(IA(h,l+2,m).times(o+""))),c=DA(c,new h(f),l),h.precision=m,null==t?(yA=!0,FA(c,m)):c;c=s,i+=2}}function zA(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=wA(n/EA),e.d=[],r=(n+1)%EA,n<0&&(r+=EA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=EA;r<i;)e.d.push(+t.slice(r,r+=EA));t=t.slice(r),r=EA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yA&&(e.e>AA||e.e<-AA))throw Error(xA+n)}else e.s=0,e.e=0,e.d=[0];return e}function FA(e,t,n){var r,i,o,a,c,s,l,u,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=EA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/EA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=EA)-EA+a}if(void 0!==n&&(c=l/(o=_A(10,a-i-1))%10|0,s=t<0||void 0!==f[u+1]||l%o,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?i>0?l/_A(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=NA(e),f.length=1,t=t-o-1,f[0]=_A(10,(EA-t%EA)%EA),e.e=wA(-t/EA)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,o=1,u--):(f.length=u+1,o=_A(10,EA-r),f[u]=i>0?(l/_A(10,a-i)%_A(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==SA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=SA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(yA&&(e.e>AA||e.e<-AA))throw Error(xA+NA(e));return e}function BA(e,t){var n,r,i,o,a,c,s,l,u,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),yA?FA(t,d):t;if(s=e.d,f=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((u=a<0)?(n=s,a=-a,c=f.length):(n=f,r=l,c=s.length),a>(i=Math.max(Math.ceil(d/EA),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((u=(i=s.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(s[i]!=f[i]){u=s[i]<f[i];break}a=0}for(u&&(n=s,s=f,f=n,t.s=-t.s),c=s.length,i=f.length-c;i>0;--i)s[c++]=0;for(i=f.length;i>a;){if(s[--i]<f[i]){for(o=i;o&&0===s[--o];)s[o]=SA-1;--s[o],s[i]+=SA}s[i]-=f[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,yA?FA(t,d):t):new p(0)}function qA(e,t,n){var r,i=NA(e),o=jA(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+RA(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+RA(-i-1)+o,n&&(r=n-a)>0&&(o+=RA(r))):i>=a?(o+=RA(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+RA(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=RA(r))),e.s<0?"-"+o:o}function HA(e,t){if(e.length>t)return e.length=t,!0}function VA(e){if(!e||"object"!=typeof e)throw Error(gA+"Object expected");var t,n,r,i=["precision",1,vA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(wA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(bA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(bA+n+": "+r);this[n]=new this(r)}return this}var UA=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(bA+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])):zA(t,e.toString())}if("string"!=typeof e)throw Error(bA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!kA.test(e))throw Error(bA+e);zA(t,e)}if(o.prototype=CA,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=VA,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});pA=new UA(1);var WA=UA,GA=O(Object.freeze({__proto__:null,get Decimal(){return UA},default:WA})),$A={};function YA(e){return function(e){if(Array.isArray(e))return XA(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 XA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(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 XA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty($A,"__esModule",{value:!0}),$A.memoize=$A.reverse=$A.compose=$A.map=$A.range=$A.curry=$A.PLACE_HOLDER=void 0;var ZA=function(e){return e},KA={"@@functional/placeholder":!0};$A.PLACE_HOLDER=KA;var JA=function(e){return e===KA},QA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&JA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},eC=function e(t,n){return 1===t?n:QA((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==KA})).length;return a>=t?n.apply(void 0,i):e(t-a,QA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return JA(e)?t.shift():e}));return n.apply(void 0,YA(o).concat(t))})))}))},tC=function(e){return eC(e.length,e)};$A.curry=tC;$A.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var nC=tC((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));$A.map=nC;$A.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return ZA;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};$A.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};$A.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var rC={};Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=void 0;var iC=function(e){return e&&e.__esModule?e:{default:e}}(GA),oC=$A;var aC=(0,oC.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),cC=(0,oC.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),sC=(0,oC.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),lC={rangeStep:function(e,t,n){for(var r=new iC.default(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new iC.default(e).abs().log(10).toNumber())+1},interpolateNumber:aC,uninterpolateNumber:cC,uninterpolateTruncation:sC};rC.default=lC,Object.defineProperty(mA,"__esModule",{value:!0}),mA.getTickValuesFixedDomain=mA.getTickValues=mA.getNiceTickValues=void 0;var uC=dC(GA),fC=$A,pC=dC(rC);function dC(e){return e&&e.__esModule?e:{default:e}}function hC(e){return function(e){if(Array.isArray(e))return yC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||vC(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 mC(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 n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||vC(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 vC(e,t){if(e){if("string"==typeof e)return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yC(e,t):void 0}}function yC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gC(e){var t=mC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function bC(e,t,n){if(e.lte(0))return new uC.default(0);var r=pC.default.getDigitCount(e.toNumber()),i=new uC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new uC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new uC.default(Math.ceil(c))}function xC(e,t,n){var r=1,i=new uC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new uC.default(10).pow(pC.default.getDigitCount(e)-1),i=new uC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new uC.default(Math.floor(e)))}else 0===e?i=new uC.default(Math.floor((t-1)/2)):n||(i=new uC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,fC.compose)((0,fC.map)((function(e){return i.add(new uC.default(e-a).mul(r)).toNumber()})),fC.range);return c(0,t)}function wC(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new uC.default(0),tickMin:new uC.default(0),tickMax:new uC.default(0)};var o,a=bC(new uC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new uC.default(0):(o=new uC.default(e).add(t).div(2)).sub(new uC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new uC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?wC(e,t,n,r,i+1):(l<n&&(s=t>0?s+(n-l):s,c=t>0?c:c+(n-l)),{step:a,tickMin:o.sub(new uC.default(c).mul(a)),tickMax:o.add(new uC.default(s).mul(a))})}var _C=(0,fC.memoize)((function(e){var t=mC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=mC(gC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(hC((0,fC.range)(0,i-1).map((function(){return 1/0})))):[].concat(hC((0,fC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,fC.reverse)(u):u}if(s===l)return xC(s,i,o);var f=wC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=pC.default.rangeStep(d,h.add(new uC.default(.1).mul(p)),p);return n>r?(0,fC.reverse)(m):m}));mA.getNiceTickValues=_C;var kC=(0,fC.memoize)((function(e){var t=mC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=mC(gC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return xC(s,i,o);var u=bC(new uC.default(l).sub(s).div(a-1),o,0),f=(0,fC.compose)((0,fC.map)((function(e){return new uC.default(s).add(new uC.default(e).mul(u)).toNumber()})),fC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,fC.reverse)(p):p}));mA.getTickValues=kC;var SC=(0,fC.memoize)((function(e,t){var n=mC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=mC(gC([r,i]),2),c=a[0],s=a[1];if(c===-1/0||s===1/0)return[r,i];if(c===s)return[c];var l=Math.max(t,2),u=bC(new uC.default(s).sub(c).div(l-1),o,0),f=[].concat(hC(pC.default.rangeStep(new uC.default(c),new uC.default(s).sub(new uC.default(.99).mul(u)),u)),[s]);return r>i?(0,fC.reverse)(f):f}));mA.getTickValuesFixedDomain=SC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=mA}(hA);var EC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OC.apply(this,arguments)}function AC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CC(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 CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TC(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function PC(t){var n=t.offset,r=t.layout,i=t.width,o=t.dataKey,a=t.data,c=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,u=TC(t,EC),f=xc(u),p=a.map((function(t,a){var u=c(t,o),p=u.x,d=u.y,h=u.value,m=u.errorVal;if(!m)return null;var v,y,g=[];if(Array.isArray(m)){var b=AC(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var x=s.scale,w=d+n,_=w+i,k=w-i,S=x(h-v),E=x(h+y);g.push({x1:E,y1:_,x2:E,y2:k}),g.push({x1:S,y1:w,x2:E,y2:w}),g.push({x1:S,y1:_,x2:S,y2:k})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-v),j=O(h+y);g.push({x1:C,y1:j,x2:T,y2:j}),g.push({x1:A,y1:P,x2:A,y2:j}),g.push({x1:C,y1:P,x2:T,y2:P})}return e.createElement(jc,OC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",OC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(jc,{className:"recharts-errorBars"},p)}function jC(e){return jC="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},jC(e)}function DC(e){return function(e){if(Array.isArray(e))return MC(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 MC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MC(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 MC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NC(Object(n),!0).forEach((function(t){RC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jC(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LC(e,t,n){return Pa(e)||Pa(t)?n:Wa(t)?Ca(e,t,n):xi(t)?t(e):n}function zC(e,t,n,r){var i=Kw(e,(function(e){return LC(e,t)}));if("number"===n){var o=i.filter((function(e){return Ua(e)||parseFloat(e)}));return o.length?[Uw(o),zw(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Pa(e)})):i).map((function(e){return Wa(e)||e instanceof Date?e:""}))}PC.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},PC.displayName="ErrorBar";var FC=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},BC=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=mc(n,Zd);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:FC(t),value:i||r,payload:t.props}})),IC(IC(IC({},a.props),Zd.getWithHeight(a,i)),{},{payload:t,item:a})):null},qC=function(e,t,n,r,i){var o=hc(t.props.children,PC).filter((function(e){return function(e,t,n){return!!Pa(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=LC(t,n,0),i=_i(r)?[Uw(r),zw(r)]:[r,r],o=a.reduce((function(e,n){var r=LC(t,n,0),o=i[0]-Math.abs(_i(r)?r[0]:r),a=i[1]+Math.abs(_i(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},HC=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&qC(e,t,o,r)||zC(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},VC=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},UC=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},WC=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Ha(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!qa(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},GC=function(e,t,n){var r;return xi(n)?r=n:xi(t)&&(r=t),xi(e)||r?function(t,n,i,o){xi(e)&&e(t,n,i,o),xi(r)&&r(t,n,i,o)}:null},$C=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:S_(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:ES(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:O_(),realScaleType:"point"}:"category"===i?{scale:S_(),realScaleType:"band"}:{scale:ES(),realScaleType:"linear"};if(Ai(r)){var c="scale".concat(tp(r));return{scale:(dA[c]||O_)(),realScaleType:dA[c]?c:"point"}}return xi(r)?{scale:r}:{scale:O_(),realScaleType:"point"}},YC=1e-4,XC=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-YC,o=Math.max(r[0],r[1])+YC,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},ZC=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},KC=function(e,t){if(!t||2!==t.length||!Ua(t[0])||!Ua(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ua(e[0])||e[0]<n)&&(i[0]=n),(!Ua(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JC={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var c=qa(e[a][n][1])?e[a][n][0]:e[a][n][1];c>=0?(e[a][n][0]=i,e[a][n][1]=i+c,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+c,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}ud(e,t)}},none:ud,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}ud(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,s=0,l=0;c<i;++c){for(var u=e[t[c]],f=u[a][1]||0,p=(f-(u[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}s+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=o,s&&(o-=l/s)}n[a-1][1]+=n[a-1][0]=o,ud(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=qa(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QC=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=np([]),t=fd,n=ud,r=pd;function i(i){var o,a,c=Array.from(e.apply(this,arguments),dd),s=c.length,l=-1;for(const e of i)for(o=0,++l;o<s;++o)(c[o][l]=[0,+r(e,c[o].key,l,i)]).data=e;for(o=0,a=mp(t(c));o<s;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:np(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:np(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?fd:"function"==typeof e?e:np(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ud:e,i):n},i}().keys(r).value((function(e,t){return+LC(e,t,0)})).order(fd).offset(JC[n]);return i(e)},eT=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=n||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var s=e.domain();if(!s.length)return null;var l=hA.getNiceTickValues(s,i,a);return e.domain([Uw(l),zw(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:hA.getTickValuesFixedDomain(u,i,a)}}return null},tT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Pa(i[t.dataKey])){var c=Ka(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=LC(i,Pa(a)?t.dataKey:a);return Pa(s)?null:t.scale(s)},nT=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var c=LC(o,t.dataKey,t.domain[a]);return Pa(c)?null:t.scale(c)-i/2+r},rT=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},iT=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[Uw(t.concat([e[0]]).filter(Ua)),zw(t.concat([e[1]]).filter(Ua))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},oT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cT=function(e,t,n){if(xi(e))return e(t,n);if(!_i(e))return t;var r=[];if(Ua(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oT.test(e[0])){var i=+oT.exec(e[0])[1];r[0]=t[0]-i}else xi(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ua(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aT.test(e[1])){var o=+aT.exec(e[1])[1];r[1]=t[1]+o}else xi(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},sT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=ob(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var s=i[a],l=i[a-1];o=Math.min((s.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},lT=function(e,t,n){return e&&e.length?Pw(e,Ca(n,"type.defaultProps.domain"))?t:e:t},uT=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,s=n.chartType;return IC(IC({},xc(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:FC(e),value:LC(t,r),type:c,payload:t,chartType:s})};function fT(e){return fT="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},fT(e)}function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pT(Object(n),!0).forEach((function(t){hT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vT(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 vT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yT=Math.PI/180,gT=function(e){return 180*e/Math.PI},bT=function(e,t,n,r){return{x:e+Math.cos(-yT*r)*n,y:t+Math.sin(-yT*r)*n}},xT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},wT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=Ya(e.cx,o,o/2),u=Ya(e.cy,a,a/2),f=xT(o,a,n),p=Ya(e.innerRadius,f,0),d=Ya(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Pa(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=mT(o=a.range,2);c=m[0],s=m[1]}var v=$C(a,i),y=v.realScaleType,g=v.scale;g.domain(f).range(o),XC(g);var b=eT(g,dT(dT({},a),{},{realScaleType:y})),x=dT(dT(dT({},a),b),{},{range:o,radius:d,realScaleType:y,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return dT(dT({},e),{},hT({},n,x))}),{})},_T=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,s=Math.acos(c);return r>o&&(s=2*Math.PI-s),{radius:a,angle:gT(s),angleInRadian:s}},kT=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},ST=function(e,t){var n=e.x,r=e.y,i=_T({x:n,y:r},t),o=i.radius,a=i.angle,c=t.innerRadius,s=t.outerRadius;if(o<c||o>s)return!1;if(0===o)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=u.startAngle,p=u.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?dT(dT({},t),{},{radius:o,angle:kT(d,t)}):null};function ET(e){return ET="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},ET(e)}function OT(e){return function(e){if(Array.isArray(e))return AT(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 AT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AT(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 AT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CT(Object(n),!0).forEach((function(t){PT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ET(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ET(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ET(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}var DT=function(e){var t=e.value,n=e.formatter,r=Pa(e.children)?t:e.children;return xi(n)?n(r):r},MT=function(t,n,r){var i,o,a=t.position,c=t.viewBox,s=t.offset,l=t.className,u=c,f=u.cx,p=u.cy,d=u.innerRadius,h=u.outerRadius,m=u.startAngle,v=u.endAngle,y=u.clockWise,g=(d+h)/2,b=function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),360)}(m,v),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=y):"insideEnd"===a?(i=v-x*s,o=!y):"end"===a&&(i=v+x*s,o=y),o=b<=0?o:!o;var w=bT(f,p,g,i),_=bT(f,p,g,i+359*(o?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=Pa(t.id)?$a("recharts-radial-line-"):t.id;return e.createElement("text",jT({},r,{dominantBaseline:"central",className:Jr("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:k})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},NT=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,s=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=bT(o,a,s+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=bT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},IT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,c=o.y,s=o.width,l=o.height,u=l>=0?1:-1,f=u*r,p=u>0?"end":"start",d=u>0?"start":"end",h=s>=0?1:-1,m=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return TT(TT({},{x:a+s/2,y:c-u*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(c-n.y,0),width:s}:{});if("bottom"===i)return TT(TT({},{x:a+s/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(c+l),0),width:s}:{});if("left"===i){var g={x:a-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return TT(TT({},g),n?{width:Math.max(g.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+s+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return TT(TT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?TT({x:a+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideRight"===i?TT({x:a+s-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?TT({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?TT({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?TT({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideTopRight"===i?TT({x:a+s-m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideBottomLeft"===i?TT({x:a+m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):"insideBottomRight"===i?TT({x:a+s-m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):ei(i)&&(Ua(i.x)||Va(i.x))&&(Ua(i.y)||Va(i.y))?TT({x:a+Ya(i.x,s),y:c+Ya(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):TT({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},RT=function(e){return"cx"in e&&Ua(e.cx)};function LT(t){var r,i=t.viewBox,o=t.position,a=t.value,c=t.children,s=t.content,l=t.className,f=void 0===l?"":l,p=t.textBreakAll;if(!i||Pa(a)&&Pa(c)&&!u(s)&&!xi(s))return null;if(u(s))return d(s,t);if(xi(s)){if(u(r=n(s,t)))return r}else r=DT(t);var h=RT(i),m=xc(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return MT(t,r,m);var v=h?NT(t):IT(t);return e.createElement(Cw,jT({className:Jr("recharts-label",f)},m,v,{breakAll:p}),r)}LT.displayName="Label",LT.defaultProps={offset:5};var zT=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,s=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Ua(h)&&Ua(m)){if(Ua(u)&&Ua(f))return{x:u,y:f,width:h,height:m};if(Ua(p)&&Ua(d))return{x:p,y:d,width:h,height:m}}return Ua(u)&&Ua(f)?{x:u,y:f,width:0,height:0}:Ua(t)&&Ua(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};LT.parseViewBox=zT,LT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=zT(t),a=hc(i,LT).map((function(e,t){return d(e,{viewBox:n||o,key:"label-".concat(t)})}));if(!r)return a;var c=function(t,n){return t?!0===t?e.createElement(LT,{key:"label-implicit",viewBox:n}):Wa(t)?e.createElement(LT,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===LT?d(t,{key:"label-implicit",viewBox:n}):e.createElement(LT,{key:"label-implicit",content:t,viewBox:n}):xi(t)?e.createElement(LT,{key:"label-implicit",content:t,viewBox:n}):ei(t)?e.createElement(LT,jT({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(OT(a))};var FT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},BT=E(FT);function qT(e){return qT="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},qT(e)}var HT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function VT(e){return function(e){if(Array.isArray(e))return UT(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 UT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UT(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 UT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WT.apply(this,arguments)}function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GT(Object(n),!0).forEach((function(t){YT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XT(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ZT={valueAccessor:function(e){return _i(e.value)?BT(e.value):e.value}};function KT(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=XT(t,HT);return n&&n.length?e.createElement(jc,{className:"recharts-label-list"},n.map((function(t,n){var l=Pa(i)?r(t,n):LC(t&&t.payload,i),u=Pa(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(LT,WT({},xc(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:LT.parseViewBox(Pa(o)?t:$T($T({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function JT(e){return JT="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},JT(e)}function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iP(r.key),r)}}function tP(e,t){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tP(e,t)}function nP(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 n,r=rP(e);if(t){var i=rP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JT(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)}(this,n)}}function rP(e){return rP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rP(e)}function iP(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}KT.displayName="LabelList",KT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=hc(t.children,KT).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(KT,{key:"labelList-implicit",data:n}):e.isValidElement(t)||xi(t)?e.createElement(KT,{key:"labelList-implicit",data:n,content:t}):ei(t)?e.createElement(KT,WT({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(VT(i)):i},KT.defaultProps=ZT;var oP=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,l=c*(a?1:-1)+r,u=Math.asin(c/l)/yT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:bT(t,n,l,f),circleTangency:bT(t,n,r,f),lineTangency:bT(t,n,l*Math.cos(u*yT),p),theta:u}},aP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=bT(t,n,i,o),l=bT(t,n,i,c),u="M ".concat(s.x,",").concat(s.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=bT(t,n,r,o),p=bT(t,n,r,c);u+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},cP=function(t){!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&&tP(e,t)}(a,p);var n,r,i,o=nP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(o<i||l===u)return null;var p,d=Jr("recharts-sector",f),h=o-i,m=Ya(a,h,0,!0);return p=m>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,u=Ha(l-s),f=oP({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=oP({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=c?Math.abs(s-l):Math.abs(s-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):aP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var w=oP({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=w.circleTangency,k=w.lineTangency,S=w.theta,E=oP({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=E.circleTangency,A=E.lineTangency,C=E.theta,T=c?Math.abs(s-l):Math.abs(s-l)-S-C;if(T<0&&0===o)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:l,endAngle:u}):aP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",QT({},xc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&eP(n.prototype,r),i&&eP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function sP(e){return sP="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},sP(e)}function lP(){return lP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lP.apply(this,arguments)}function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uP(Object(n),!0).forEach((function(t){vP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yP(r.key),r)}}function dP(e,t){return dP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dP(e,t)}function hP(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 n,r=mP(e);if(t){var i=mP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sP(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)}(this,n)}}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function vP(e,t,n){return(t=yP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e){var t=function(e,t){if("object"!==sP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sP(t)?t:String(t)}!function(e,t,n){(t=iP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(cP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var gP={curveBasisClosed:function(e){return new Hp(e)},curveBasisOpen:function(e){return new Vp(e)},curveBasis:function(e){return new qp(e)},curveLinearClosed:function(e){return new Qp(e)},curveLinear:yp,curveMonotoneX:function(e){return new id(e)},curveMonotoneY:function(e){return new od(e)},curveNatural:function(e){return new cd(e)},curveStep:function(e){return new ld(e,.5)},curveStepAfter:function(e){return new ld(e,1)},curveStepBefore:function(e){return new ld(e,0)}},bP=function(e){return e.x===+e.x&&e.y===+e.y},xP=function(e){return e.x},wP=function(e){return e.y},_P=function(t){!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&&dP(e,t)}(a,p);var n,r,i,o=hP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(xi(e))return e;var n="curve".concat(tp(e));return"curveMonotone"===n&&t?gP["".concat(n).concat("vertical"===t?"Y":"X")]:gP[n]||yp}(n,o),s=a?r.filter((function(e){return bP(e)})):r;if(_i(i)){var l=a?i.filter((function(e){return bP(e)})):i,u=s.map((function(e,t){return fP(fP({},e),{},{base:l[t]})}));return(e="vertical"===o?wp().y(wP).x1(xP).x0((function(e){return e.base.x})):wp().x(xP).y1(wP).y0((function(e){return e.base.y}))).defined(bP).curve(c),e(u)}return(e="vertical"===o&&Ua(i)?wp().y(wP).x1(xP).x0(i):Ua(i)?wp().x(xP).y1(wP).y0(i):xp().x(xP).y(wP)).defined(bP).curve(c),e(s)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.points,i=t.path,o=t.pathRef;if(!(r&&r.length||i))return null;var a=r&&r.length?this.getPath():i;return e.createElement("path",lP({},xc(this.props),ic(this.props),{className:Jr("recharts-curve",n),d:a,ref:o}))}}],r&&pP(n.prototype,r),i&&pP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function kP(e){return kP="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},kP(e)}function SP(){return SP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SP.apply(this,arguments)}function EP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jP(r.key),r)}}function OP(e,t){return OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OP(e,t)}function AP(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 n,r=TP(e);if(t){var i=TP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CP(e)}(this,n)}}function CP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e){return TP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TP(e)}function PP(e,t,n){return(t=jP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e){var t=function(e,t){if("object"!==kP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kP(t)?t:String(t)}vP(_P,"defaultProps",{type:"linear",points:[],connectNulls:!1});var DP=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),o+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+c*u[1])),o+="L ".concat(e+n,",").concat(t+r-c*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-s*u[2],",").concat(t+r)),o+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-c*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+c*p,"\n L ").concat(e+n,",").concat(t+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},MP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var s=Math.min(i,i+a),l=Math.max(i,i+a),u=Math.min(o,o+c),f=Math.max(o,o+c);return n>=s&&n<=l&&r>=u&&r<=f}return!1},NP=function(t){!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&&OP(e,t)}(a,p);var n,r,i,o=AP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PP(CP(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,c=n.radius,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isAnimationActive,m=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||0===o||0===a)return null;var v=Jr("recharts-rectangle",s);return m?e.createElement(ng,{canBegin:l>0,from:{width:o,height:a,x:r,y:i},to:{width:o,height:a,x:r,y:i},duration:p,animationEasing:f,isActive:m},(function(n){var r=n.width,i=n.height,o=n.x,a=n.y;return e.createElement(ng,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},e.createElement("path",SP({},xc(t.props,!0),{className:v,d:DP(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",SP({},xc(this.props,!0),{className:v,d:DP(r,i,o,a,c)}))}}],r&&EP(n.prototype,r),i&&EP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function IP(e){return IP="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},IP(e)}PP(NP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var RP=["points","className","baseLinePoints","connectNulls"];function LP(){return LP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LP.apply(this,arguments)}function zP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===IP(o)?o:String(o)),r)}var i,o}function BP(e,t){return BP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BP(e,t)}function qP(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 n,r=HP(e);if(t){var i=HP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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)}(this,n)}}function HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}function VP(e){return function(e){if(Array.isArray(e))return UP(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 UP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UP(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 UP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var WP=function(e){return e&&e.x===+e.x&&e.y===+e.y},GP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){WP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),WP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(VP(e),VP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},$P=function(t){!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&&BP(e,t)}(a,p);var n,r,i,o=qP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=zP(t,RP);if(!n||!n.length)return null;var c=Jr("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=GP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(GP(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",LP({},xc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",LP({},xc(a,!0),{fill:"none",d:GP(n,o)})):null,s?e.createElement("path",LP({},xc(a,!0),{fill:"none",d:GP(i,o)})):null)}var u=GP(n,o);return e.createElement("path",LP({},xc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&FP(n.prototype,r),i&&FP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function YP(e){return YP="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},YP(e)}function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}function ZP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==YP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===YP(o)?o:String(o)),r)}var i,o}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function JP(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 n,r=QP(e);if(t){var i=QP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YP(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)}(this,n)}}function QP(e){return QP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QP(e)}var ej=function(t){!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&&KP(e,t)}(a,p);var n,r,i,o=JP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.r,o=t.className,a=Jr("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",XP({},xc(this.props),ic(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&ZP(n.prototype,r),i&&ZP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function tj(e){return tj="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},tj(e)}function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nj.apply(this,arguments)}function rj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cj(r.key),r)}}function ij(e,t){return ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ij(e,t)}function oj(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 n,r=aj(e);if(t){var i=aj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tj(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)}(this,n)}}function aj(e){return aj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aj(e)}function cj(e){var t=function(e,t){if("object"!==tj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tj(t)?t:String(t)}var sj=function(t){!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&&ij(e,t)}(a,p);var n,r,i,o=oj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,c=t.top,s=t.left,l=t.className;return Ua(n)&&Ua(r)&&Ua(i)&&Ua(o)&&Ua(c)&&Ua(s)?e.createElement("path",nj({},xc(this.props,!0),{className:Jr("recharts-cross",l),d:a.getPath(n,r,i,o,c,s)})):null}}],i=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],r&&rj(n.prototype,r),i&&rj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lj(e){return lj="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},lj(e)}function uj(){return uj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uj.apply(this,arguments)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function hj(e,t){return hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hj(e,t)}function mj(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 n,r=vj(e);if(t){var i=vj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lj(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)}(this,n)}}function vj(e){return vj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vj(e)}function yj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=function(e,t){if("object"!==lj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lj(t)?t:String(t)}!function(e,t,n){(t=cj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(sj,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var bj=function(t){!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&&hj(e,t)}(a,p);var n,r,i,o=mj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.polarAngles,o="";return i.forEach((function(t,i){var a=bT(n,r,e,t);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var s=pj({stroke:"#ccc"},xc(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=bT(n,r,i,t),l=bT(n,r,o,t);return e.createElement("line",uj({},s,{key:"line-".concat(a),x1:c.x,y1:c.y,x2:l.x,y2:l.y}))})))}},{key:"renderConcentricCircle",value:function(t,n,r){var i=this.props,o=i.cx,a=i.cy,c=pj(pj({stroke:"#ccc"},xc(this.props)),{},{fill:"none"},r);return e.createElement("circle",uj({},c,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:o,cy:a,r:t}))}},{key:"renderConcentricPolygon",value:function(t,n,r){var i=pj(pj({stroke:"#ccc"},xc(this.props)),{},{fill:"none"},r);return e.createElement("path",uj({},i,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,n=this.props,r=n.polarRadius,i=n.gridType;return r&&r.length?e.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(e,n){return"circle"===i?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:e.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&dj(n.prototype,r),i&&dj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();yj(bj,"displayName","PolarGrid"),yj(bj,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var xj=Dw,wj=nf,_j=Fw;var kj=function(e,t){return e&&e.length?xj(e,wj(t),_j):void 0},Sj=E(kj),Ej=Dw,Oj=Mw,Aj=nf;var Cj=function(e,t){return e&&e.length?Ej(e,Aj(t),Oj):void 0},Tj=E(Cj),Pj=["cx","cy","angle","ticks","axisLine"],jj=["ticks","tick","angle","tickFormatter","stroke"];function Dj(e){return Dj="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},Dj(e)}function Mj(){return Mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mj.apply(this,arguments)}function Nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ij(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nj(Object(n),!0).forEach((function(t){qj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hj(r.key),r)}}function zj(e,t){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zj(e,t)}function Fj(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 n,r=Bj(e);if(t){var i=Bj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Dj(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)}(this,n)}}function Bj(e){return Bj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bj(e)}function qj(e,t,n){return(t=Hj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hj(e){var t=function(e,t){if("object"!==Dj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dj(t)?t:String(t)}var Vj=function(t){!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&&zj(e,t)}(a,p);var n,r,i,o=Fj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return bT(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=Tj(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:Sj(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.angle,o=t.ticks,a=t.axisLine,c=Rj(t,Pj),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=bT(n,r,s[0],i),u=bT(n,r,s[1],i),f=Ij(Ij(Ij({},xc(c)),{},{fill:"none"},xc(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",Mj({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,c=n.tickFormatter,s=n.stroke,l=Rj(n,jj),u=this.getTickTextAnchor(),f=xc(l),p=xc(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=Ij(Ij(Ij(Ij({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:n});return e.createElement(jc,Mj({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},oc(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(jc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.axisLine,i=t.tick;return n&&n.length?e.createElement(jc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),LT.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,Mj({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&Lj(n.prototype,r),i&&Lj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function Uj(e){return Uj="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},Uj(e)}function Wj(){return Wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function Gj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gj(Object(n),!0).forEach((function(t){Jj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qj(r.key),r)}}function Xj(e,t){return Xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xj(e,t)}function Zj(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 n,r=Kj(e);if(t){var i=Kj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Uj(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)}(this,n)}}function Kj(e){return Kj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kj(e)}function Jj(e,t,n){return(t=Qj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qj(e){var t=function(e,t){if("object"!==Uj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Uj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Uj(t)?t:String(t)}qj(Vj,"displayName","PolarRadiusAxis"),qj(Vj,"axisType","radiusAxis"),qj(Vj,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var eD=Math.PI/180,tD=1e-5,nD=function(t){!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&&Xj(e,t)}(a,p);var n,r,i,o=Zj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,c=bT(n,r,i,e.coordinate),s=bT(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*eD);return n>tD?"outer"===t?"start":"end":n<-tD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.axisLine,a=t.axisLineType,c=$j($j({},xc(this.props)),{},{fill:"none"},xc(o));if("circle"===a)return e.createElement(ej,Wj({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return bT(n,r,i,e.coordinate)}));return e.createElement($P,Wj({className:"recharts-polar-angle-axis-line"},c,{points:s}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,c=n.tickFormatter,s=n.stroke,l=xc(this.props),u=xc(i),f=$j($j({},l),{},{fill:"none"},xc(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=$j($j($j({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(jc,Wj({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},oc(t.props,n,r)),o&&e.createElement("line",Wj({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(jc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.radius,i=t.axisLine;return r<=0||!n||!n.length?null:e.createElement(jc,{className:"recharts-polar-angle-axis"},i&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,Wj({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Yj(n.prototype,r),i&&Yj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Jj(nD,"displayName","PolarAngleAxis"),Jj(nD,"axisType","angleAxis"),Jj(nD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var rD=cl(Object.getPrototypeOf,Object),iD=vi,oD=rD,aD=ki,cD=Function.prototype,sD=Object.prototype,lD=cD.toString,uD=sD.hasOwnProperty,fD=lD.call(Object);var pD=function(e){if(!aD(e)||"[object Object]"!=iD(e))return!1;var t=oD(e);if(null===t)return!0;var n=uD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lD.call(n)==fD},dD=E(pD);function hD(e){return hD="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},hD(e)}function mD(){return mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mD.apply(this,arguments)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){kD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function bD(e,t){return bD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bD(e,t)}function xD(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 n,r=_D(e);if(t){var i=_D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}(this,n)}}function wD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(e){return _D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_D(e)}function kD(e,t,n){return(t=SD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SD(e){var t=function(e,t){if("object"!==hD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hD(t)?t:String(t)}var ED=function(t){!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&&bD(e,t)}(a,p);var n,r,i,o=xD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kD(wD(t=o.call(this,e)),"pieRef",null),kD(wD(t),"sectorRefs",[]),kD(wD(t),"id",$a("recharts-pie-")),kD(wD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),xi(e)&&e()})),kD(wD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),xi(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,c=n.valueKey,s=xc(this.props),l=xc(r),u=xc(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=bT(t.cx,t.cy,t.outerRadius+f,p),h=yD(yD(yD(yD({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=yD(yD(yD(yD({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[bT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),v=o;return Pa(o)&&Pa(c)?v="value":Pa(o)&&(v=c),e.createElement(jc,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,LC(t,v)))}));return e.createElement(jc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var n=this,r=this.props,i=r.activeShape,o=r.blendStroke,c=r.inactiveShape;return t.map((function(t,r){var s=c&&n.hasActiveIndex()?c:null,l=n.isActiveIndex(r)?i:s,u=yD(yD({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(jc,mD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},oc(n.props,t,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.sectors,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?Ca(e,"paddingAngle",0):0;if(n){var c=Za(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=yD(yD({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=Za(0,l-f)(i),d=yD(yD({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(jc,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,n=this.props,r=n.hide,i=n.sectors,o=n.className,a=n.label,c=n.cx,s=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!i||!i.length||!Ua(c)||!Ua(s)||!Ua(l)||!Ua(u))return null;var d=Jr("recharts-pie",o);return e.createElement(jc,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),LT.renderCallByParent(this.props,null,!1),(!f||p)&&KT.renderCallByParent(this.props,i,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(_P,mD({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,n,r){if(e.isValidElement(t))return e.cloneElement(t,n);var i=r;return xi(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(Cw,mD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):dD(t)?e.createElement(cP,mD({tabIndex:-1},n,t)):e.createElement(cP,mD({tabIndex:-1},n))}}],r&&gD(n.prototype,r),i&&gD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kD(ED,"displayName","Pie"),kD(ED,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!bb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),kD(ED,"parseDeltaAngle",(function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),360)})),kD(ED,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=xc(e.props),o=hc(r,mx);return n&&n.length?n.map((function(e,t){return yD(yD(yD({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return yD(yD({},i),e.props)})):[]})),kD(ED,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=xT(i,o);return{cx:r+Ya(e.props.cx,i,i/2),cy:n+Ya(e.props.cy,o,o/2),innerRadius:Ya(e.props.innerRadius,a,0),outerRadius:Ya(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),kD(ED,"getComposedData",(function(e){var t=e.item,n=e.offset,r=ED.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,c=i.endAngle,s=i.paddingAngle,l=i.dataKey,u=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=ED.parseCoordinateOfPie(t,n),m=ED.parseDeltaAngle(a,c),v=Math.abs(m),y=l;Pa(l)&&Pa(f)?(ux(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):Pa(l)&&(ux(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var g,b,x=r.filter((function(e){return 0!==LC(e,y,0)})).length,w=v-x*d-(v>=360?x:x-1)*s,_=r.reduce((function(e,t){var n=LC(t,y,0);return e+(Ua(n)?n:0)}),0);_>0&&(g=r.map((function(e,t){var n,r=LC(e,y,0),i=LC(e,u,t),c=(Ua(r)?r:0)/_,l=(n=t?b.endAngle+Ha(m)*s*(0!==r?1:0):a)+Ha(m)*((0!==r?d:0)+c*w),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:y,type:p}],x=bT(h.cx,h.cy,v,f);return b=yD(yD(yD({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},e),h),{},{value:LC(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:Ha(m)*s})})));return yD(yD({},h),{},{sectors:g,data:r})}));var OD=function(e){return e&&e.length?e[0]:void 0},AD=E(OD);function CD(e){return CD="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},CD(e)}function TD(){return TD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TD.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){LD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zD(r.key),r)}}function MD(e,t){return MD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MD(e,t)}function ND(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 n,r=RD(e);if(t){var i=RD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ID(e)}(this,n)}}function ID(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RD(e){return RD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RD(e)}function LD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==CD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CD(t)?t:String(t)}var FD=function(t){!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&&MD(e,t)}(a,p);var n,r,i,o=ND(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LD(ID(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),LD(ID(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),LD(ID(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),LD(ID(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),LD(ID(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(t){var n=this.props,r=n.dot,i=n.dataKey,o=xc(this.props),c=xc(r),s=t.map((function(e,t){var n=jD(jD(jD({key:"dot-".concat(t),r:3},o),c),{},{dataKey:i,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return e.createElement(jc,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(t){var n,r=this.props,i=r.shape,o=r.dot,a=r.isRange,c=r.baseLinePoints,s=r.connectNulls;return n=e.isValidElement(i)?e.cloneElement(i,jD(jD({},this.props),{},{points:t})):xi(i)?i(jD(jD({},this.props),{},{points:t})):e.createElement($P,TD({},xc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(jc,{className:"recharts-radar-polygon"},n,o?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var n=e.t,i=l&&l.length/r.length,o=r.map((function(e,t){var r=l&&l[Math.floor(t*i)];if(r){var o=Za(r.x,e.x),a=Za(r.y,e.y);return jD(jD({},e),{},{x:o(n),y:a(n)})}var c=Za(e.cx,e.x),s=Za(e.cy,e.y);return jD(jD({},e),{},{x:c(n),y:s(n)})}));return t.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&Pw(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.className,i=t.points,o=t.isAnimationActive;if(n||!i||!i.length)return null;var a=this.state.isAnimationFinished,c=Jr("recharts-radar",r);return e.createElement(jc,{className:c},this.renderPolygon(),(!o||a)&&KT.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:"renderDotItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,TD({},n,{className:"recharts-radar-dot"}))}}],r&&DD(n.prototype,r),i&&DD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();LD(FD,"displayName","Radar"),LD(FD,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),LD(FD,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,c=n.cy,s=!1,l=[];r.forEach((function(e,r){var u=LC(e,n.dataKey,r),f=LC(e,i),p=n.scale(u)+(o||0),d=_i(f)?BT(f):f,h=Pa(d)?void 0:t.scale(d);_i(f)&&f.length>=2&&(s=!0),l.push(jD(jD({},bT(a,c,h,p)),{},{name:u,value:f,cx:a,cy:c,radius:h,angle:p,payload:e}))}));var u=[];return s&&l.forEach((function(e){if(_i(e.value)){var n=AD(e.value),r=Pa(n)?void 0:t.scale(n);u.push(jD(jD({},e),{},{radius:r},bT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var BD=["shape","activeShape","activeIndex","cornerRadius"],qD=["value","background"];function HD(e){return HD="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},HD(e)}function VD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VD(Object(n),!0).forEach((function(t){KD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WD(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JD(r.key),r)}}function $D(e,t){return $D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$D(e,t)}function YD(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 n,r=ZD(e);if(t){var i=ZD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XD(e)}(this,n)}}function XD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZD(e){return ZD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZD(e)}function KD(e,t,n){return(t=JD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JD(e){var t=function(e,t){if("object"!==HD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HD(t)?t:String(t)}var QD=function(t){!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&&$D(e,t)}(a,p);var n,r,i,o=YD(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return KD(XD(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),KD(XD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),KD(XD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ha(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,c=n.cornerRadius,s=WD(n,BD),l=xc(s);return e.map((function(e,n){var u=UD(UD(UD(UD({},l),{},{cornerRadius:c},e),oc(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal});return a.renderSectorShape(n===o?i:r,u)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevData;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.startAngle,e.startAngle),o=Za(n.endAngle,e.endAngle);return UD(UD({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=Za(c,a);return UD(UD({},e),{},{endAngle:s(i)})}));return e.createElement(jc,null,t.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=xc(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=WD(e,qD);if(!o)return null;var s=UD(UD(UD(UD(UD({cornerRadius:n},c),{},{fill:"#eee"},o),r),oc(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,s)}))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.background,a=t.isAnimationActive;if(n||!r||!r.length)return null;var c=this.state.isAnimationFinished,s=Jr("recharts-area",i);return e.createElement(jc,{className:s},o&&e.createElement(jc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(jc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&KT.renderCallByParent(UD({},this.props),r))}}],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}},{key:"renderSectorShape",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(cP,n)}}],r&&GD(n.prototype,r),i&&GD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();KD(QD,"displayName","RadialBar"),KD(QD,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),KD(QD,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,c=e.displayedData,s=e.dataKey,l=e.stackedData,u=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=ZC(u,t);if(!d)return null;var h=o.cx,m=o.cy,v=n.layout,y=t.props,g=y.children,b=y.minPointSize,x="radial"===v?o:r,w=l?x.scale.domain():null,_=rT({numericAxis:x}),k=hc(g,mx);return{data:c.map((function(e,c){var u,y,g,x,S,E;if(l?u=KC(l[p+c],w):(u=LC(e,s),_i(u)||(u=[_,u])),"radial"===v){y=nT({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=y+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=Ha(O||b)*(Math.abs(b)-Math.abs(O));E={background:{cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{y=r.scale(u[0]),g=r.scale(u[1]),S=(x=nT({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-y;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=Ha(A||b)*(Math.abs(b)-Math.abs(A))}return UD(UD(UD(UD({},e),E),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:x,endAngle:S},k&&k[c]&&k[c].props),{},{tooltipPayload:[uT(t,e)],tooltipPosition:bT(h,m,(y+g)/2,(x+S)/2)})})),layout:v}}));var eM=Math.ceil,tM=Math.max;var nM=Gb,rM=1/0;var iM=function(e){return e?(e=nM(e))===rM||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},oM=function(e,t,n,r){for(var i=-1,o=tM(eM((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},aM=tb,cM=iM;var sM=E(function(e){return function(t,n,r){return r&&"number"!=typeof r&&aM(t,n,r)&&(n=r=void 0),t=cM(t),void 0===n?(n=t,t=0):n=cM(n),r=void 0===r?t<n?1:-1:cM(r),oM(t,n,r,e)}}());function lM(e){return lM="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},lM(e)}function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){pM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dM=["Webkit","Moz","O","ms"];function hM(e){return hM="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},hM(e)}function mM(){return mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mM.apply(this,arguments)}function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vM(Object(n),!0).forEach((function(t){kM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SM(r.key),r)}}function bM(e,t){return bM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bM(e,t)}function xM(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 n,r=_M(e);if(t){var i=_M(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wM(e)}(this,n)}}function wM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _M(e){return _M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_M(e)}function kM(e,t,n){return(t=SM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e){var t=function(e,t){if("object"!==hM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hM(t)?t:String(t)}var EM=function(e){return e.changedTouches&&!!e.changedTouches.length},OM=function(t){!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&&bM(e,t)}(a,p);var n,r,i,o=xM(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kM(wM(t=o.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),kM(wM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kM(wM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kM(wM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kM(wM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kM(wM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kM(wM(t),"handleSlideDragStart",(function(e){var n=EM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(wM(t),"startX"),endX:t.handleTravellerDragStart.bind(wM(t),"endX")},t.state={},t}return n=a,r=[{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,r=this.state.scaleValues,i=this.props,o=i.gap,c=i.data.length-1,s=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,s),f=a.getIndexInRange(r,l);return{startIndex:u-u%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=LC(n[e],i,e);return xi(r)?r(o,e):o}},{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,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,s=o.travellerWidth,l=o.startIndex,u=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+c-s-i,a+c-s-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===l&&d.endIndex===u||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=EM(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],s=this.props,l=s.x,u=s.width,f=s.travellerWidth,p=s.onChange,d=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-c):v<0&&(v=Math.max(v,l-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((kM(t={},i,c+v),kM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(y))}))}},{key:"renderBackground",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.fill,c=t.stroke;return e.createElement("rect",{stroke:c,fill:a,x:n,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.data,c=t.children,s=t.padding,l=f.only(c);return l?e.cloneElement(l,{x:n,y:r,width:i,height:o,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,n){var r=this.props,i=r.y,o=r.travellerWidth,c=r.height,s=r.traveller,l=Math.max(t,this.props.x),u=yM(yM({},xc(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(jc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(s,u))}},{key:"renderSlide",value:function(t,n){var r=this.props,i=r.y,o=r.height,a=r.stroke,c=r.travellerWidth,s=Math.min(t,n)+c,l=Math.max(Math.abs(n-t)-c,0);return e.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:s,y:i,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,n=t.startIndex,r=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,c=t.stroke,s=this.state,l=s.startX,u=s.endX,f={pointerEvents:"none",fill:c};return e.createElement(jc,{className:"recharts-brush-texts"},e.createElement(Cw,mM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(Cw,mM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:i+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,n=t.data,r=t.className,i=t.children,o=t.x,a=t.y,c=t.width,s=t.height,l=t.alwaysShowText,u=this.state,f=u.startX,p=u.endX,d=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving;if(!n||!n.length||!Ua(o)||!Ua(a)||!Ua(c)||!Ua(s)||c<=0||s<=0)return null;var v=Jr("recharts-brush",r),y=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=dM.reduce((function(e,r){return fM(fM({},e),{},pM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(jc,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.stroke,c=Math.floor(r+o/2)-1;return e.createElement(e.Fragment,null,e.createElement("rect",{x:n,y:r,width:i,height:o,fill:a,stroke:"none"}),e.createElement("line",{x1:n+1,y1:c,x2:n+i-1,y2:c,fill:"none",stroke:"#fff"}),e.createElement("line",{x1:n+1,y1:c+2,x2:n+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return yM({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,s=O_().domain(sM(0,c)).range([i,i+o-a]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:s(n),endX:s(r),scale:s,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],r&&gM(n.prototype,r),i&&gM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kM(OM,"displayName","Brush"),kM(OM,"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 AM=hg;var CM=Xc,TM=nf,PM=function(e,t){var n;return AM(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},jM=wi,DM=tb;var MM=function(e,t,n){var r=jM(e)?CM:PM;return n&&DM(e,t,n)&&(t=void 0),r(e,TM(t))},NM=E(MM),IM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var RM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},LM=hg;var zM=RM,FM=function(e,t){var n=!0;return LM(e,(function(e,r,i){return n=!!t(e,r,i)})),n},BM=nf,qM=wi,HM=tb;var VM=function(e,t,n){var r=qM(e)?zM:FM;return n&&HM(e,t,n)&&(t=void 0),r(e,BM(t))},UM=E(VM),WM=Fg;var GM=function(e,t,n){"__proto__"==t&&WM?WM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$M=GM,YM=pg,XM=nf;var ZM=function(e,t){var n={};return t=XM(t),YM(e,(function(e,r,i){$M(n,r,t(e,r,i))})),n},KM=E(ZM),JM=["value","background"];function QM(e){return QM="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},QM(e)}function eN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){lN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uN(r.key),r)}}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oN(e,t)}function aN(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 n,r=sN(e);if(t){var i=sN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cN(e)}(this,n)}}function cN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sN(e){return sN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sN(e)}function lN(e,t,n){return(t=uN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e){var t=function(e,t){if("object"!==QM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QM(t)?t:String(t)}var fN=function(t){!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&&oN(e,t)}(a,p);var n,r,i,o=aN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lN(cN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),lN(cN(e),"id",$a("recharts-bar-")),lN(cN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),lN(cN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(t){var n=this,r=this.props.shape,i=xc(this.props);return t&&t.map((function(t,o){var c=rN(rN(rN({},i),t),{},{index:o});return e.createElement(jc,tN({className:"recharts-bar-rectangle"},oc(n.props,t,o),{key:"rectangle-".concat(o),role:"img"}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.layout,o=n.isAnimationActive,a=n.animationBegin,c=n.animationDuration,s=n.animationEasing,l=n.animationId,u=this.state.prevData;return e.createElement(ng,{begin:a,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=Za(n.x,e.x),a=Za(n.y,e.y),c=Za(n.width,e.width),s=Za(n.height,e.height);return rN(rN({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=Za(0,e.height)(o);return rN(rN({},e),{},{y:e.y+e.height-l,height:l})}var f=Za(0,e.width)(o);return rN(rN({},e),{},{width:f})}));return e.createElement(jc,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=xc(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=eN(t,JM);if(!i)return null;var c=rN(rN(rN(rN(rN({},o),{},{fill:"#eee"},i),n),oc(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,c=r.layout,s=hc(r.children,PC);if(!s)return null;var l="vertical"===c?i[0].height/2:i[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:LC(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,f,s.map((function(t,n){return e.cloneElement(t,{key:"error-bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.xAxis,a=t.yAxis,c=t.left,s=t.top,l=t.width,u=t.height,f=t.isAnimationActive,p=t.background,d=t.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=Jr("recharts-bar",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=Pa(d)?this.id:d;return e.createElement(jc,{className:m},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(jc,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!f||h)&&KT.renderCallByParent(this.props,r))}}],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}},{key:"renderRectangle",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,n)}}],r&&iN(n.prototype,r),i&&iN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pN(e){return pN="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},pN(e)}function dN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yN(r.key),r)}}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hN(Object(n),!0).forEach((function(t){vN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vN(e,t,n){return(t=yN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yN(e){var t=function(e,t){if("object"!==pN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pN(t)?t:String(t)}lN(fN,"displayName","Bar"),lN(fN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),lN(fN,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,p=e.offset,d=ZC(r,n);if(!d)return null;var h=t.layout,m=n.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=rT({numericAxis:b}),_=hc(y,mx),k=f.map((function(e,t){var r,f,p,m,y,b;if(l?r=KC(l[u+t],x):(r=LC(e,v),_i(r)||(r=[w,r])),"horizontal"===h){var k,S=[a.scale(r[0]),a.scale(r[1])],E=S[0],O=S[1];f=nT({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(k=null!=O?O:E)&&void 0!==k?k:void 0,m=d.size;var A=E-O;if(y=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var C=Ha(y||g)*(Math.abs(g)-Math.abs(y));p-=C,y+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],j=T[1];if(f=P,p=nT({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=j-P,y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=Ha(m||g)*(Math.abs(g)-Math.abs(m))}return rN(rN(rN({},e),{},{x:f,y:p,width:m,height:y,value:l?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[uT(n,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return rN({data:k,layout:h},p)}));var gN=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.layout,s=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!mc(s,fN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],v=m.orientation,y=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,_="".concat(v).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var k=y[1]-y[0],S=1/0,E=m.categoricalDomain.sort();E.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(E[t-1]||0),S))}));var O=S/k,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=Ya(e.barCategoryGap,O*A),T=O*A/2;s=T-C-(T-C)/A*C}}l="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:m.range,w&&(l=[l[1],l[0]]);var P=$C(m,i,f),j=P.scale,D=P.realScaleType;j.domain(y).range(l),XC(j);var M=eT(j,mN(mN({},m),{},{realScaleType:D}));"xAxis"===r?(h="top"===v&&!x||"bottom"===v&&x,p=n.left,d=u[_]-h*m.height):"yAxis"===r&&(h="left"===v&&!x||"right"===v&&x,p=u[_]-h*m.width,d=n.top);var N=mN(mN(mN({},m),M),{},{realScaleType:D,x:p,y:d,scale:j,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return N.bandSize=sT(N,M),m.hide||"xAxis"!==r?m.hide||(u[_]+=(h?-1:1)*N.width):u[_]+=(h?-1:1)*N.height,mN(mN({},o),{},vN({},a,N))}),{})},bN=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},xN=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}var t,n,r;return t=e,n=[{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]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(n){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(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&dN(t.prototype,n),r&&dN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();vN(xN,"EPS",1e-4);var wN=function(e){var t=Object.keys(e).reduce((function(t,n){return mN(mN({},t),{},vN({},n,xN.create(e[n])))}),{});return mN(mN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return KM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return UM(e,(function(e,n){return t[n].isInRange(e)}))}})};function _N(e){return _N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_N(e)}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kN(Object(n),!0).forEach((function(t){EN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_N(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return AN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AN(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 AN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CN.apply(this,arguments)}function TN(t){var n=t.x,r=t.y,i=t.segment,o=t.xAxis,a=t.yAxis,c=t.shape,s=t.className,l=t.alwaysShow,u=t.clipPathId;ux(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,c=o.y,s=o.width,l=o.height,u=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:u});if(IM(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+s,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,v=i.xAxis.orientation,y=e.x.apply(m,{position:u});if(IM(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+l},{x:y,y:c}];return"top"===v?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return IM(i,"discard")&&NM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(wN({x:o.scale,y:a.scale}),Wa(n),Wa(r),i&&2===i.length,t);if(!f)return null;var p=ON(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=SN(SN({clipPath:IM(t,"hidden")?"url(#".concat(u,")"):void 0},xc(t,!0)),{},{x1:h,y1:m,x2:y,y2:g});return e.createElement(jc,{className:Jr("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement("line",CN({},n,{className:"recharts-reference-line-line"}))}(c,b),LT.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return bN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function PN(e){return PN="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},PN(e)}function jN(){return jN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jN.apply(this,arguments)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==PN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TN.displayName="ReferenceLine",TN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function IN(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=Wa(n),s=Wa(r);if(ux(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!s)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=wN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return IM(e,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,f=l.y,p=t.shape,d=t.className,h=MN(MN({clipPath:IM(t,"hidden")?"url(#".concat(a,")"):void 0},xc(t,!0)),{},{cx:u,cy:f});return e.createElement(jc,{className:Jr("recharts-reference-dot",d)},IN.renderDot(p,h),LT.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function RN(e){return RN="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},RN(e)}function LN(){return LN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LN.apply(this,arguments)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}IN.displayName="ReferenceDot",IN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},IN.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,jN({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function qN(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;ux(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Wa(n),u=Wa(r),f=Wa(i),p=Wa(o),d=t.shape;if(!(l||u||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,c=i.y1,s=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var f=wN({x:l.scale,y:u.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(s,{position:"end"}):f.y.rangeMax};return!IM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?bN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=IM(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(jc,{className:Jr("recharts-reference-area",a)},qN.renderRect(d,FN(FN({clipPath:m},xc(t,!0)),h)),LT.renderCallByParent(t,h))}function HN(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function VN(e){return VN="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},VN(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UN(Object(n),!0).forEach((function(t){GN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==VN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,m=a.height,v="top"===c||"bottom"===c?"width":"height",y=(i||[]).slice(),g=l&&"width"===v?sw(l,{fontSize:u,letterSpacing:f})[v]:0,b=y.length,x=b>=2?Ha(y[1].coordinate-y[0].coordinate):1;if(1===x?(n="width"===v?p:d,r="width"===v?p+h:d+m):(n="width"===v?p+h:d+m,r="width"===v?p:d),t){var w=i[b-1],_=xi(o)?o(w.value,b-1):w.value,k=sw(_,{fontSize:u,letterSpacing:f})[v]+g,S=x*(w.coordinate+x*k/2-r);y[b-1]=w=WN(WN({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*k/2-n)>=0&&x*(w.tickCoord+x*k/2-r)<=0&&(r=w.tickCoord-x*(k/2+s),y[b-1]=WN(WN({},w),{},{isShow:!0}))}for(var E=t?b-1:b,O=0;O<E;O++){var A=y[O],C=xi(o)?o(A.value,O):A.value,T=sw(C,{fontSize:u,letterSpacing:f})[v]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);y[O]=A=WN(WN({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else y[O]=A=WN(WN({},A),{},{tickCoord:A.coordinate});x*(A.tickCoord-x*T/2-n)>=0&&x*(A.tickCoord+x*T/2-r)<=0&&(n=A.tickCoord+x*(T/2+s),y[O]=WN(WN({},A),{},{isShow:!0}))}return y}function YN(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,c=e.orientation,s=e.interval,l=e.tickFormatter,u=e.unit;if(!i||!i.length||!r)return[];if(Ua(s)||bb.isSsr)return function(e,t){return HN(e,t+1)}(i,"number"==typeof s&&Ua(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=HN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=HN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=$N({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?$N({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===s):function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,s=e.unit,l=e.fontSize,u=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,m="top"===a||"bottom"===a?"width":"height",v=s&&"width"===m?sw(s,{fontSize:l,letterSpacing:u})[m]:0,y=(r||[]).slice(),g=y.length,b=g>=2?Ha(y[1].coordinate-y[0].coordinate):1;1===b?(t="width"===m?f:p,n="width"===m?f+d:p+h):(t="width"===m?f+d:p+h,n="width"===m?f:p);for(var x=g-1;x>=0;x--){var w=y[x],_=xi(i)?i(w.value,g-x-1):w.value,k=sw(_,{fontSize:l,letterSpacing:u})[m]+v;if(x===g-1){var S=b*(w.coordinate+b*k/2-n);y[x]=w=WN(WN({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else y[x]=w=WN(WN({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*k/2-t)>=0&&b*(w.tickCoord+b*k/2-n)<=0&&(n=w.tickCoord-b*(k/2+c),y[x]=WN(WN({},w),{},{isShow:!0}))}return y}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}qN.displayName="ReferenceArea",qN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},qN.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,LN({},n,{className:"recharts-reference-area-rect"}))};var XN=["viewBox"],ZN=["viewBox"],KN=["ticks"];function JN(e){return JN="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},JN(e)}function QN(){return QN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QN.apply(this,arguments)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach((function(t){cI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function iI(e,t){return iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iI(e,t)}function oI(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 n,r=aI(e);if(t){var i=aI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JN(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)}(this,n)}}function aI(e){return aI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aI(e)}function cI(e,t,n){return(t=sI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sI(e){var t=function(e,t){if("object"!==JN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JN(t)?t:String(t)}var lI=function(t){!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&&iI(e,t)}(a,g);var n,r,i,o=oI(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=nI(e,XN),i=this.props,o=i.viewBox,a=nI(i,ZN);return!Ja(n,o)||!Ja(r,a)||!Ja(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,n,r,i,o,a,c=this.props,s=c.x,l=c.y,u=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,v=h?-1:1,y=e.tickSize||d,g=Ua(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-v*y)-v*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-v*y)-v*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+v*y)+v*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+v*y)+v*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,s=t.axisLine,l=tI(tI(tI({},xc(this.props)),xc(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=tI(tI({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=tI(tI({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",QN({},l,{className:Jr("recharts-cartesian-axis-line",Ca(s,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,c=o.tickLine,s=o.stroke,l=o.tick,u=o.tickFormatter,f=o.unit,p=YN(tI(tI({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=xc(this.props),v=xc(l),y=tI(tI({},m),{},{fill:"none"},xc(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=tI(tI(tI(tI({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},v),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(jc,QN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},oc(i.props,t,n)),c&&e.createElement("line",QN({},y,o,{className:Jr("recharts-cartesian-axis-tick-line",Ca(c,"className"))})),l&&a.renderTickItem(l,b,"".concat(xi(u)?u(t.value,n):t.value).concat(f||"")))}));return e.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,n=this.props,r=n.axisLine,i=n.width,o=n.height,a=n.ticksGenerator,c=n.className;if(n.hide)return null;var s=this.props,l=s.ticks,u=nI(s,KN),f=l;return xi(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(jc,{className:Jr("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),LT.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,QN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&rI(n.prototype,r),i&&rI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();cI(lI,"displayName","CartesianAxis"),cI(lI,"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 uI=["x1","y1","x2","y2","key"];function fI(e){return fI="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},fI(e)}function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pI.apply(this,arguments)}function dI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hI(Object(n),!0).forEach((function(t){xI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wI(r.key),r)}}function yI(e,t){return yI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yI(e,t)}function gI(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 n,r=bI(e);if(t){var i=bI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fI(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)}(this,n)}}function bI(e){return bI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bI(e)}function xI(e,t,n){return(t=wI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e){var t=function(e,t){if("object"!==fI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fI(t)?t:String(t)}var _I=function(t){!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&&yI(e,t)}(a,p);var n,r,i,o=gI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(t){var n=this,r=this.props,i=r.x,o=r.width,c=r.horizontal;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=mI(mI({},n.props),{},{x1:i,y1:e,x2:i+o,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var n=this,r=this.props,i=r.y,o=r.height,c=r.vertical;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=mI(mI({},n.props),{},{x1:e,y1:i,x2:e,y2:i+o,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:o+c-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),x:t,y:a,width:u,height:s,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(t){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:a+s-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),y:t,x:o,height:u,width:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,c=n.height;return e.createElement("rect",{x:i,y:o,width:a,height:c,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.horizontal,c=t.vertical,s=t.horizontalCoordinatesGenerator,l=t.verticalCoordinatesGenerator,u=t.xAxis,f=t.yAxis,p=t.offset,d=t.chartWidth,h=t.chartHeight;if(!Ua(i)||i<=0||!Ua(o)||o<=0||!Ua(n)||n!==+n||!Ua(r)||r!==+r)return null;var m=this.props,v=m.horizontalPoints,y=m.verticalPoints;return v&&v.length||!xi(s)||(v=s({yAxis:f,width:d,height:h,offset:p})),y&&y.length||!xi(l)||(y=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),c&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(y))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(xi(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=dI(n,uI);r=e.createElement("line",pI({},xc(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&vI(n.prototype,r),i&&vI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();xI(_I,"displayName","CartesianGrid"),xI(_I,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var kI=["type","layout","connectNulls","ref"];function SI(e){return SI="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},SI(e)}function EI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OI(){return OI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OI.apply(this,arguments)}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AI(Object(n),!0).forEach((function(t){RI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TI(e){return function(e){if(Array.isArray(e))return PI(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 PI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PI(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 PI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LI(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function MI(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 n,r=II(e);if(t){var i=II(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NI(e)}(this,n)}}function NI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function II(e){return II=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},II(e)}function RI(e,t,n){return(t=LI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LI(e){var t=function(e,t){if("object"!==SI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SI(t)?t:String(t)}var zI=function(t){!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&&DI(e,t)}(a,p);var n,r,i,o=MI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RI(NI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),RI(NI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,c=t-e,s=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>o){s=[].concat(TI(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(TI(a.repeat(n,i)),TI(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),RI(NI(e),"id",$a("recharts-line-")),RI(NI(e),"pathRef",(function(t){e.mainCurve=t})),RI(NI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),RI(NI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,a=r.yAxis,c=r.layout,s=hc(r.children,PC);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:LC(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,u,s.map((function(t,n){return e.cloneElement(t,{key:"bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,c=r.dataKey,s=xc(this.props),l=xc(i,!0),u=o.map((function(e,t){var n=CI(CI(CI({key:"dot-".concat(t),r:3},s),l),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,OI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),u)}},{key:"renderCurveStatically",value:function(t,n,r,i){var o=this.props,a=o.type,c=o.layout,s=o.connectNulls;o.ref;var l=EI(o,kI),u=CI(CI(CI({},xc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:t},i),{},{type:a,layout:c,connectNulls:s});return e.createElement(_P,OI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.strokeDasharray,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=i.animateNewValues,d=i.width,h=i.height,m=this.state,v=m.prevPoints,y=m.totalLength;return e.createElement(ng,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t;if(v){var c=v.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(v[n]){var r=v[n],o=Za(r.x,e.x),a=Za(r.y,e.y);return CI(CI({},e),{},{x:o(i),y:a(i)})}if(p){var s=Za(2*d,e.x),l=Za(h/2,e.y);return CI(CI({},e),{},{x:s(i),y:l(i)})}return CI(CI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=Za(0,y)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-u,"px");return r.renderCurveStatically(o,t,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!Pw(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.xAxis,c=t.yAxis,s=t.top,l=t.left,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,v=Jr("recharts-line",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=Pa(d)?this.id:d;return e.createElement(jc,{className:v},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:l,y:s,width:u,height:f}))):null,!m&&this.renderCurve(y,g),this.renderErrorBar(y,g),(m||r)&&this.renderDots(y,g),(!p||h)&&KT.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 n=e.length%2!=0?[].concat(TI(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(TI(r),TI(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(xi(t))r=t(n);else{var i=Jr("recharts-line-dot",t?t.className:"");r=e.createElement(ej,OI({},n,{className:i}))}return r}}],r&&jI(n.prototype,r),i&&jI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();RI(zI,"displayName","Line"),RI(zI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!bb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),RI(zI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,c=e.bandSize,s=e.displayedData,l=e.offset,u=t.layout;return CI({points:s.map((function(e,t){var s=LC(e,a);return"horizontal"===u?{x:tT({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:Pa(s)?null:r.scale(s),value:s,payload:e}:{x:Pa(s)?null:n.scale(s),y:tT({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var FI=["layout","type","stroke","connectNulls","isRange","ref"];function BI(e){return BI="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},BI(e)}function qI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function HI(){return HI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HI.apply(this,arguments)}function VI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VI(Object(n),!0).forEach((function(t){ZI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KI(r.key),r)}}function GI(e,t){return GI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GI(e,t)}function $I(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 n,r=XI(e);if(t){var i=XI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YI(e)}(this,n)}}function YI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XI(e){return XI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XI(e)}function ZI(e,t,n){return(t=KI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KI(e){var t=function(e,t){if("object"!==BI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BI(t)?t:String(t)}var JI=function(t){!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&&GI(e,t)}(a,p);var n,r,i,o=$I(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZI(YI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),ZI(YI(e),"id",$a("recharts-area-")),ZI(YI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),ZI(YI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(t,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var o=this.props,c=o.dot,s=o.points,l=o.dataKey,u=xc(this.props),f=xc(c,!0),p=s.map((function(e,t){var n=UI(UI(UI({key:"dot-".concat(t),r:3},u),f),{},{dataKey:l,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,HI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].x,c=i[i.length-1].x,s=t*Math.abs(a-c),l=zw(i.map((function(e){return e.y||0})));return Ua(r)&&"number"==typeof r?l=Math.max(r,l):r&&_i(r)&&r.length&&(l=Math.max(zw(r.map((function(e){return e.y||0}))),l)),Ua(l)?e.createElement("rect",{x:a<c?a:a-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].y,c=i[i.length-1].y,s=t*Math.abs(a-c),l=zw(i.map((function(e){return e.x||0})));return Ua(r)&&"number"==typeof r?l=Math.max(r,l):r&&_i(r)&&r.length&&(l=Math.max(zw(r.map((function(e){return e.x||0}))),l)),Ua(l)?e.createElement("rect",{x:0,y:a<c?a:a-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(t,n,r,i){var o=this.props,a=o.layout,c=o.type,s=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var f=qI(o,FI);return e.createElement(jc,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(_P,HI({},xc(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(_P,HI({},xc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(_P,HI({},xc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.baseLine,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return e.createElement(ng,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(i){var c=i.t;if(d){var s,l=d.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*l);if(d[n]){var r=d[n],i=Za(r.x,e.x),o=Za(r.y,e.y);return UI(UI({},e),{},{x:i(c),y:o(c)})}return e}));return s=Ua(a)&&"number"==typeof a?Za(h,a)(c):Pa(a)||qa(a)?Za(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=Za(r.x,e.x),o=Za(r.y,e.y);return UI(UI({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(jc,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(jc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(o,a,t,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,s=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!Pw(c,r)||!Pw(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.top,c=t.left,s=t.xAxis,l=t.yAxis,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,v=Jr("recharts-area",o),y=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=Pa(d)?this.id:d;return e.createElement(jc,{className:v},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:c,y:a,width:u,height:Math.floor(f)}))):null,m?null:this.renderArea(y,g),(r||m)&&this.renderDots(y,g),(!p||h)&&KT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&WI(n.prototype,r),i&&WI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();ZI(JI,"displayName","Area"),ZI(JI,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),ZI(JI,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(Ua(c)&&"number"==typeof c)return c;var s="horizontal"===i?r:n,l=s.scale.domain();if("number"===s.type){var u=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),ZI(JI,"getComposedData",(function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,m=u&&u.length,v=JI.getBaseValue(n,r,i,o),y=!1,g=p.map((function(e,t){var n,r=LC(e,l);m?n=u[f+t]:_i(n=r)?y=!0:n=[v,n];var p=Pa(n[1])||m&&Pa(r);return"horizontal"===h?{x:tT({axis:i,ticks:a,bandSize:s,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tT({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||y?g.map((function(e){return"horizontal"===h?{x:e.x,y:Pa(Ca(e,"value[0]"))||Pa(Ca(e,"y"))?null:o.scale(Ca(e,"value[0]"))}:{x:Pa(Ca(e,"value[0]"))?null:i.scale(Ca(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(v):i.scale(v),UI({points:g,baseLine:t,layout:h,isRange:y},d)})),ZI(JI,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,HI({},n,{className:"recharts-area-dot"}))}));var QI=function(){return null};function eR(e){return eR="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},eR(e)}function tR(){return tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tR.apply(this,arguments)}function nR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uR(r.key),r)}}function oR(e,t){return oR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oR(e,t)}function aR(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 n,r=sR(e);if(t){var i=sR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cR(e)}(this,n)}}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sR(e){return sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sR(e)}function lR(e,t,n){return(t=uR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=function(e,t){if("object"!==eR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eR(t)?t:String(t)}QI.displayName="ZAxis",QI.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var fR=function(t){!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&&oR(e,t)}(a,p);var n,r,i,o=aR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lR(cR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),lR(cR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),lR(cR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),lR(cR(e),"id",$a("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(t){var n=this,r=this.props,i=r.shape,o=r.activeShape,c=r.activeIndex,s=xc(this.props);return t.map((function(t,r){var l=rR(rR({key:"symbol-".concat(r)},s),t);return e.createElement(jc,tR({className:"recharts-scatter-symbol"},oc(n.props,t,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(c===r?o:i,l))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.cx,e.cx),o=Za(n.cy,e.cy),a=Za(n.size,e.size);return rR(rR({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=Za(0,e.size);return rR(rR({},e),{},{size:c(i)})}));return e.createElement(jc,null,t.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.points,r=t.xAxis,i=t.yAxis,o=hc(t.children,PC);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:LC(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:LC(e,t)}}return o.map((function(t,o){var s=t.props.direction;return e.cloneElement(t,{key:o,data:n,xAxis:r,yAxis:i,layout:"x"===s?"vertical":"horizontal",dataPointFormatter:"x"===s?c:a})}))}},{key:"renderLine",value:function(){var t,n,r=this.props,i=r.points,o=r.line,a=r.lineType,c=r.lineJointType,s=xc(this.props),l=xc(o);if("joint"===a)t=i.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var u=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,c=-1/0,s=0,l=0,u=0;u<t;u++)n+=s=e[u].cx||0,r+=l=e[u].cy||0,i+=s*l,o+=s*s,a=Math.min(a,s),c=Math.max(c,s);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:c,a:f,b:(r-f*n)/t}}(i),f=u.xmin,p=u.xmax,d=u.a,h=u.b,m=function(e){return d*e+h};t=[{x:f,y:m(f)},{x:p,y:m(p)}]}var v=rR(rR(rR({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,v):xi(o)?o(v):e.createElement(_P,tR({},v,{type:c})),e.createElement(jc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.points,i=t.line,o=t.className,a=t.xAxis,c=t.yAxis,s=t.left,l=t.top,u=t.width,f=t.height,p=t.id,d=t.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=Jr("recharts-scatter",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,y=Pa(p)?this.id:p;return e.createElement(jc,{className:m,clipPath:v?"url(#clipPath-".concat(y,")"):null},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(jc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&KT.renderCallByParent(this.props,r))}}],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:"renderSymbolItem",value:function(t,n){var r;return e.isValidElement(t)?r=e.cloneElement(t,n):xi(t)?r=t(n):"string"==typeof t&&(r=e.createElement(Sd,tR({},n,{type:t}))),r}}],r&&iR(n.prototype,r),i&&iR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();lR(fR,"displayName","Scatter"),lR(fR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),lR(fR,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,c=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,u=hc(i.props.children,mx),f=Pa(t.dataKey)?i.props.dataKey:t.dataKey,p=Pa(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:QI.defaultProps.range,m=h&&h[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=LC(e,f),h=LC(e,p),g=!Pa(d)&&LC(e,d)||"-",b=[{name:Pa(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:Pa(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:l}];"-"!==g&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:d,type:l});var x=tT({axis:t,ticks:a,bandSize:v,entry:e,index:o,dataKey:f}),w=tT({axis:n,ticks:c,bandSize:y,entry:e,index:o,dataKey:p}),_="-"!==g?r.scale(g):m,k=Math.sqrt(Math.max(_,0)/Math.PI);return rR(rR({},e),{},{cx:x,cy:w,x:x-k,y:w-k,xAxis:t,yAxis:n,zAxis:r,width:2*k,height:2*k,size:_,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return rR({points:g},s)}));var pR=function(){return null};pR.displayName="XAxis",pR.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 dR=function(){return null};dR.displayName="YAxis",dR.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 hR=nf,mR=ml,vR=bl;var yR=function(e){return function(t,n,r){var i=Object(t);if(!mR(t)){var o=hR(n);t=vR(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},gR=iM;var bR=rf,xR=nf,wR=function(e){var t=gR(e),n=t%1;return t==t?n?t-n:t:0},_R=Math.max;var kR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:wR(n);return i<0&&(i=_R(r+i,0)),bR(e,xR(t),i)},SR=E(yR(kR)),ER=vi,OR=ki;var AR=E((function(e){return!0===e||!1===e||OR(e)&&"[object Boolean]"==ER(e)}));function CR(e){return function(e){if(Array.isArray(e))return TR(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 TR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TR(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 TR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var PR=function(e,t,n,r,i){var o=hc(e,TN),a=hc(e,IN),c=[].concat(CR(o),CR(a)),s=hc(e,qN),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&IM(t.props,"extendDomain")&&Ua(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),s.length){var p="".concat(u,"1"),d="".concat(u,"2");f=s.reduce((function(e,t){if(t.props[l]===n&&IM(t.props,"extendDomain")&&Ua(t.props[p])&&Ua(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Ua(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},jR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],c]:e._events[s].push(c):(e._events[s]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,i,o,a){var c=n?n+e:e;if(!this._events[c])return!1;var s,l,u=this._events[c],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];u.fn.apply(u.context,s)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];u[l].fn.apply(u[l].context,s)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==t||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var s=0,l=[],u=c.length;s<u;s++)(c[s].fn!==t||i&&!c[s].once||r&&c[s].context!==r)&&l.push(c[s]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(jR);var DR=new(E(jR.exports));DR.setMaxListeners&&DR.setMaxListeners(10);var MR="recharts.syncMouseEvents",NR=["item"],IR=["children","className","width","height","style","compact","title","desc"];function RR(e){return RR="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},RR(e)}function LR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||GR(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 zR(){return zR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zR.apply(this,arguments)}function FR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KR(r.key),r)}}function qR(e,t){return qR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qR(e,t)}function HR(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 n,r=UR(e);if(t){var i=UR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VR(e)}(this,n)}}function VR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UR(e){return UR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UR(e)}function WR(e){return function(e){if(Array.isArray(e))return $R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||GR(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 GR(e,t){if(e){if("string"==typeof e)return $R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$R(e,t):void 0}}function $R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YR(Object(n),!0).forEach((function(t){ZR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZR(e,t,n){return(t=KR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e){var t=function(e,t){if("object"!==RR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RR(t)?t:String(t)}var JR={xAxis:["bottom","top"],yAxis:["left","right"]},QR={x:0,y:0},eL=Number.isFinite?Number.isFinite:isFinite,tL="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,nL="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,rL=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(WR(e),WR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Ua(i)&&Ua(o)?e.slice(i,o+1):[]};function iL(e){return"number"===e?[0,"auto"]:void 0}var oL=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=rL(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=Ka(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(WR(e),[uT(t,i)]):e}),[])},aL=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,s=0;s<a;s++){var l=s>0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(Ha(u-l)!==Ha(f-u)){var d=[];if(Ha(f-u)===Ha(c[1]-c[0])){p=f;var h=u+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var m=f+c[1]-c[0];d[0]=Math.min(u,(m+u)/2),d[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var y=Math.min(l,f),g=Math.max(l,f);if(e>(y+u)/2&&e<=(g+u)/2){o=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o}(o,a,s,c);if(l>=0&&s){var u=s[l]&&s[l].value,f=oL(e,t,l,u),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return XR(XR(XR({},r),bT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return XR(XR(XR({},r),bT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return QR}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},cL=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,p=VC(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,v=h.dataKey,y=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,_=n.props[o];if(t[_])return t;var k,S,E,O=rL(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===_})),dataStartIndex:c,dataEndIndex:s}),A=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],i=null==e?void 0:e[1];if(r&&i&&Ua(r)&&Ua(i))return!0}return!1})(n.props.domain,y,m)&&(k=cT(n.props.domain,null,y),!p||"number"!==m&&"auto"===b||(E=zC(O,v,"category")));var C=iL(m);if(!k||0===k.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(v){if(k=zC(O,v,m),"category"===m&&p){var j=function(e){if(!_i(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(k);g&&j?(S=k,k=sM(0,A)):g||(k=lT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(WR(e),[t])}),[]))}else if("category"===m)k=g?k.filter((function(e){return""!==e&&!Pa(e)})):lT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Pa(t)?e:[].concat(WR(e),[t])}),[]);else if("number"===m){var D=function(e,t,n,r,i){var o=t.map((function(t){return qC(e,t,n,i,r)})).filter((function(e){return!Pa(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),v,i,l);D&&(k=D)}!p||"number"!==m&&"auto"===b||(E=zC(O,v,"category"))}else k=p?sM(0,A):a&&a[_]&&a[_].hasStack&&"number"===m?"expand"===f?[0,1]:iT(a[_].stackGroups,c,s):HC(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),m,l,!0);if("number"===m)k=PR(u,k,_,i,x),P&&(k=cT(P,k,y));else if("category"===m&&P){var M=P;k.every((function(e){return M.indexOf(e)>=0}))&&(k=M)}}return XR(XR({},t),{},ZR({},_,XR(XR({},n.props),{},{axisType:i,domain:k,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},sL=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=hc(l,i),p={};return f&&f.length?p=cL(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=rL(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=VC(l,i),h=-1;return n.reduce((function(e,t){var m,v=t.props[o],y=iL("number");return e[v]?e:(h++,d?m=sM(0,p):a&&a[v]&&a[v].hasStack?(m=iT(a[v].stackGroups,c,s),m=PR(u,m,v,i)):(m=cT(y,HC(f,n.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=PR(u,m,v,i)),XR(XR({},e),{},ZR({},v,XR(XR({axisType:i},r.defaultProps),{},{hide:!0,orientation:Ca(JR,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:y,isCategorical:d,layout:l}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s})),p},lL=function(e){var t,n,r=e.children,i=e.defaultShowTooltip,o=mc(r,OM);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||0,dataEndIndex:void 0!==(null==o||null===(t=o.props)||void 0===t?void 0:t.endIndex)?null==o||null===(n=o.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Pa(i)&&i}},uL=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"}},fL=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,c=n.width,s=n.height,l=n.children,u=n.margin||{},f=mc(l,OM),p=mc(l,Zd),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:XR(XR({},e),{},ZR({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:XR(XR({},e),{},ZR({},r,Ca(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=XR(XR({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||OM.defaultProps.height),p&&t&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),s=BC({children:i,legendWidth:c}),l=e;if(s){var u=r||{},f=s.align,p=s.verticalAlign,d=s.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Ua(e[f])&&(l=IC(IC({},e),{},RC({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Ua(e[p])&&(l=IC(IC({},e),{},RC({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),XR(XR({brushBottom:v},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},pL=function(t){var r,i=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,s=t.validateTooltipEventTypes,l=void 0===s?["axis"]:s,f=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,v=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,c=t.dataEndIndex,s=e.barSize,l=e.layout,u=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=uL(l),m=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=uc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var s=r[o[a]].stackGroups,l=Object.keys(s),u=0,f=l.length;u<f;u++){var p=s[l[u]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return uc(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:Pa(v)?t:v})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=rL(e.data,{dataStartIndex:a,dataEndIndex:c},n),y=n.props,x=y.dataKey,w=y.maxBarSize,_=n.props["".concat(m,"Id")],k=n.props["".concat(v,"Id")],S=f.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],c=o&&o[a];return XR(XR({},e),{},(ZR(i={},r.axisType,c),ZR(i,"".concat(r.axisType,"Ticks"),WC(c)),i))}),{}),E=S[v],O=S["".concat(v,"Ticks")],A=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Wa(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),C=uc(n.type).indexOf("Bar")>=0,T=sT(E,O),P=[];if(C){var j,D,M=Pa(w)?d:w,N=null!==(j=null!==(D=sT(E,O,!0))&&void 0!==D?D:M)&&void 0!==j?j:0;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var s,l=Ya(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var u=!1,f=r/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&f>0&&(u=!0,p=c*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};s=o.reduce((function(e,t){var n=[].concat(DC(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:u?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ya(n,r,0,!0);r-2*h-(c-1)*l<=0&&(l=0);var m=(r-2*h-(c-1)*l)/c;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(DC(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s}({barGap:u,barCategoryGap:p,bandSize:N!==T?N:T,sizeList:g[k],maxBarSize:M}),N!==T&&(P=P.map((function(e){return XR(XR({},e),{},{position:XR(XR({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,z=n&&n.type&&n.type.getComposedData;z&&b.push({props:XR(XR({},z(XR(XR({},S),{},{displayedData:h,props:e,dataKey:x,item:n,bandSize:T,barPosition:P,offset:i,stackedData:A,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(s)},ZR(I,m,S[m]),ZR(I,v,S[v]),ZR(I,"animationId",o),I)),childIndex:(R=n,L=e.children,dc(L).indexOf(R)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!vc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=uL(l),y=m.numericAxisName,g=m.cateAxisName,b=hc(s,o),x=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],c=e[a]||{hasStack:!1,stackGroups:{}};if(Wa(o)){var s=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),c.hasStack=!0,c.stackGroups[o]=s}else c.stackGroups[$a("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return IC(IC({},e),{},RC({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return IC(IC({},t),{},RC({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QC(e,a.items,i)}))}),{})),IC(IC({},t),{},RC({},o,c))}),{})}(p,b,"".concat(y,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return XR(XR({},e),{},ZR({},i,sL(n,XR(XR({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=fL(XR(XR({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],_,e.replace("Map",""),i)}));var k,S,E=w["".concat(g,"Map")],O=(k=Xa(E),{tooltipTicks:S=WC(k,!1,!0),orderedTooltipTicks:ob(S,(function(e){return e.coordinate})),tooltipAxis:k,tooltipAxisBandSize:sT(k,S)}),A=v(n,XR(XR({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:_}));return XR(XR({formattedGraphicalItems:A,graphicalItems:b,offset:_,stackGroups:x},O),w)};return r=function(t){!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&&qR(e,t)}(f,g);var r,o,a,s=HR(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),ZR(VR(t=s.call(this,e)),"clearDeferId",(function(){!Pa(t.deferId)&&nL&&nL(t.deferId),t.deferId=null})),ZR(VR(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(XR({legendBBox:e},y({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},XR(XR({},t.state),{},{legendBBox:e}))))}})),ZR(VR(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=tL&&tL(t.applySyncEvent.bind(VR(t),r)))})),ZR(VR(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return XR({dataStartIndex:n,dataEndIndex:r},y({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),ZR(VR(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=XR(XR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)}})),ZR(VR(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?XR(XR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)})),ZR(VR(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ZR(VR(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),ZR(VR(t),"handleMouseMove",(function(e){e&&xi(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),ZR(VR(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),xi(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),ZR(VR(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&lc[t]?lc[t]:null}(e),r=Ca(t.props,"".concat(n));n&&xi(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),ZR(VR(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=XR(XR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)}})),ZR(VR(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;xi(n)&&n(t.getMouseInfo(e),e)})),ZR(VR(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;xi(n)&&n(t.getMouseInfo(e),e)})),ZR(VR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),ZR(VR(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),ZR(VR(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),ZR(VR(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return UC(YN(XR(XR(XR({},lI.defaultProps),t),{},{ticks:WC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),ZR(VR(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return UC(YN(XR(XR(XR({},lI.defaultProps),t),{},{ticks:WC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),ZR(VR(t),"axesTicksGenerator",(function(e){return WC(e,!0)})),ZR(VR(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,s=r.offset,l=r.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!a||"ScatterChart"!==i&&"axis"!==f)return null;var p,h=t.props.layout,m=_P;if("ScatterChart"===i)p=a,m=sj;else if("BarChart"===i)p=t.getCursorRectangle(),m=NP;else if("radial"===h){var v=t.getCursorPoints(),y=v.cx,g=v.cy,b=v.radius;p={cx:y,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},m=cP}else p={points:t.getCursorPoints()},m=_P;var x=e.key||"_recharts-cursor",w=XR(XR(XR(XR({stroke:"#ccc",pointerEvents:"none"},s),p),xc(e.props.cursor)),{},{payload:c,payloadIndex:l,key:x,className:"recharts-tooltip-cursor"});return u(e.props.cursor)?d(e.props.cursor,w):n(m,w)})),ZR(VR(t),"renderPolarAxis",(function(e,n,r){var i=Ca(e,"type.axisType"),o=Ca(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,XR(XR({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:WC(a,!0)}))})),ZR(VR(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),ZR(VR(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),ZR(VR(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,c=a.width,s=a.height,l=Xa(r),u=SR(i,(function(e){return UM(e.domain,eL)}))||Xa(i),f=e.props||{};return d(e,{key:e.key||"grid",x:Ua(f.x)?f.x:o.left,y:Ua(f.y)?f.y:o.top,width:Ua(f.width)?f.width:o.width,height:Ua(f.height)?f.height:o.height,xAxis:l,yAxis:u,offset:o,chartWidth:c,chartHeight:s,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),ZR(VR(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,c=a.radiusAxisMap,s=a.angleAxisMap,l=Xa(c),u=Xa(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:_i(i)?i:WC(u,!0).map((function(e){return e.coordinate})),polarRadius:_i(o)?o:WC(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),ZR(VR(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},c=i-(a.left||0)-(a.right||0),s=BC({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=FR(s,NR);return d(l,XR(XR({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),ZR(VR(t),"renderTooltip",(function(){var e=mc(t.props.children,Db);if(!e)return null;var n=t.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,c=n.offset;return d(e,{viewBox:XR(XR({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),ZR(VR(t),"renderBrush",(function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,c=o.dataStartIndex,s=o.dataEndIndex,l=o.updateId;return d(e,{key:e.key||"_recharts-brush",onChange:GC(t.handleBrushChange,null,e.props.onChange),data:i,x:Ua(e.props.x)?e.props.x:a.left,y:Ua(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Ua(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),ZR(VR(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=VR(t).clipPathId,o=t.state,a=o.xAxisMap,c=o.yAxisMap,s=o.offset,l=e.props,u=l.xAxisId,f=l.yAxisId;return d(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:c[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})})),ZR(VR(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,u=XR(XR({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:FC(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},xc(l)),ic(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,XR(XR({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),ZR(VR(t),"renderGraphicChild",(function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,c=a.isTooltipActive,s=a.tooltipAxis,l=a.activeTooltipIndex,u=a.activeLabel,f=mc(t.props.children,Db),p=i.props,h=p.points,m=p.isRange,v=p.baseLine,y=i.item.props,g=y.activeDot,b=!y.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:GC(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:GC(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:GC(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,XR(XR({},i.props),x));if(b){var _,k;if(s.dataKey&&!s.allowDuplicatedCategory){var S="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());_=Ka(h,S,u),k=m&&v&&Ka(v,S,u)}else _=h[l],k=m&&v&&v[l];if(!Pa(_))return[w].concat(WR(t.renderActivePoints({item:i,activePoint:_,basePoint:k,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),ZR(VR(t),"renderCustomized",(function(e,n,r){return d(e,XR(XR({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Pa(e.id)?$a("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=rx(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){Pa(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Pa(e.syncId)&&!Pa(this.props.syncId)&&this.addListener(),!Pa(e.syncId)&&Pa(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Pa(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=mc(this.props.children,Db);if(e&&AR(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container),n=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var c=Xa(o).scale,s=Xa(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return XR(XR({},n),{},{xValue:l,yValue:u})}var f=aL(this.state,this.props.data,this.props.layout,r);return f?XR(XR({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)n=e=a.x,t=c.top,r=c.top+c.height;else if("vertical"===i)r=t=a.y,e=c.left,n=c.left+c.width;else if(!Pa(a.cx)||!Pa(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[bT(s,l,u,f),bT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=bT(d,h,m,y),b=bT(d,h,v,y);e=g.x,t=g.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=Xa(o);return ST({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=mc(e,Db),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),XR(XR({},ic(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){DR.on(MR,this.handleReceiveSyncEvent),DR.setMaxListeners&&DR._maxListeners&&DR.setMaxListeners(DR._maxListeners+1)}},{key:"removeListener",value:function(){DR.removeListener(MR,this.handleReceiveSyncEvent),DR.setMaxListeners&&DR._maxListeners&&DR.setMaxListeners(DR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Pa(t)||DR.emit(MR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Pa(e.dataStartIndex)&&Pa(e.dataEndIndex))if(Pa(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,p=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(p,e);else if("value"===r){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var h=XR(XR({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),v=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=oL(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?v:p[l].coordinate}:QR;this.setState(XR(XR({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(XR({dataStartIndex:o,dataEndIndex:a},y({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===uc(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,n,r,i){var o=this.props,a=o.width,c=o.height;return e.createElement(lI,zR({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:n.key||"".concat(r,"-").concat(i),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,n=this.state.offset,r=n.left,i=n.top,o=n.height,a=n.width;return e.createElement("defs",null,e.createElement("clipPath",{id:t},e.createElement("rect",{x:r,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=LR(t,2),r=n[0],i=n[1];return XR(XR({},e),{},ZR({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=LR(t,2),r=n[0],i=n[1];return XR(XR({},e),{},ZR({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,c=uc(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return MP(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return ST(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!vc(this))return null;var n=this.props,r=n.children,i=n.className,o=n.width,a=n.height,c=n.style,s=n.compact,l=n.title,u=n.desc,f=FR(n,IR),p=xc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return e.createElement(Ac,zR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),kc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",zR({className:Jr("recharts-wrapper",i),style:XR({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(Ac,zR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),kc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&BR(r.prototype,o),a&&BR(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),ZR(r,"displayName",i),ZR(r,"defaultProps",XR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),ZR(r,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,s=e.margin;if(Pa(t.updateId)){var l=lL(e);return XR(XR(XR({},l),{},{updateId:0},y(XR(XR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!Ja(s,t.prevMargin)){var u=lL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=XR(XR({},aL(t,n,a)),{},{updateId:t.updateId+1}),d=XR(XR(XR({},u),f),p);return XR(XR(XR({},d),y(XR({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!wc(r,t.prevChildren)){var h=!Pa(n)?t.updateId:t.updateId+1;return XR(XR({updateId:h},y(XR(XR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),ZR(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):xi(t)?t(n):e.createElement(ej,n),e.createElement(jc,{className:"recharts-active-dot",key:n.key},r)})),r},dL=pL({chartName:"LineChart",GraphicalChild:zI,axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN});pL({chartName:"BarChart",GraphicalChild:fN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN}),pL({chartName:"PieChart",GraphicalChild:ED,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var hL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},mL=GM,vL=wo,yL=Object.prototype.hasOwnProperty;var gL=function(e,t,n){var r=e[t];yL.call(e,t)&&vL(r,n)&&(void 0!==n||t in e)||mL(e,t,n)},bL=gL,xL=GM;var wL=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?xL(n,c,s):bL(n,c,s)}return n},_L=wL,kL=bl;var SL=function(e,t){return e&&_L(t,kL(t),e)};var EL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},OL=Qr,AL=al,CL=EL,TL=Object.prototype.hasOwnProperty;var PL=function(e){if(!OL(e))return CL(e);var t=AL(e),n=[];for(var r in e)("constructor"!=r||!t&&TL.call(e,r))&&n.push(r);return n},jL=il,DL=PL,ML=ml;var NL=function(e){return ML(e)?jL(e,!0):DL(e)},IL=wL,RL=NL;var LL=function(e,t){return e&&IL(t,RL(t),e)},zL={exports:{}};!function(e,t){var n=ii,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(zL,zL.exports);var FL=zL.exports;var BL=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},qL=wL,HL=ks;var VL=function(e,t){return qL(e,HL(e),t)},UL=ps,WL=rD,GL=ks,$L=ys,YL=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)UL(t,GL(e)),e=WL(e);return t}:$L,XL=wL,ZL=YL;var KL=function(e,t){return XL(e,ZL(e),t)},JL=ms,QL=YL,ez=NL;var tz=function(e){return JL(e,ez,QL)},nz=Object.prototype.hasOwnProperty;var rz=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&nz.call(e,"index")&&(n.index=e.index,n.input=e.input),n},iz=ts;var oz=function(e){var t=new e.constructor(e.byteLength);return new iz(t).set(new iz(e)),t},az=oz;var cz=function(e,t){var n=t?az(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sz=/\w*$/;var lz=function(e){var t=new e.constructor(e.source,sz.exec(e));return t.lastIndex=e.lastIndex,t},uz=oi?oi.prototype:void 0,fz=uz?uz.valueOf:void 0;var pz=oz;var dz=oz,hz=cz,mz=lz,vz=function(e){return fz?Object(fz.call(e)):{}},yz=function(e,t){var n=t?pz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var gz=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return dz(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return hz(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return yz(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return mz(e);case"[object Symbol]":return vz(e)}},bz=Qr,xz=Object.create,wz=function(){function e(){}return function(t){if(!bz(t))return{};if(xz)return xz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_z=wz,kz=rD,Sz=al;var Ez=function(e){return"function"!=typeof e.constructor||Sz(e)?{}:_z(kz(e))},Oz=Yl,Az=ki;var Cz=function(e){return Az(e)&&"[object Map]"==Oz(e)},Tz=Us,Pz=Gs&&Gs.isMap,jz=Pz?Tz(Pz):Cz,Dz=Yl,Mz=ki;var Nz=function(e){return Mz(e)&&"[object Set]"==Dz(e)},Iz=Us,Rz=Gs&&Gs.isSet,Lz=Rz?Iz(Rz):Nz,zz=Vc,Fz=hL,Bz=gL,qz=SL,Hz=LL,Vz=FL,Uz=BL,Wz=VL,Gz=KL,$z=kl,Yz=tz,Xz=Yl,Zz=rz,Kz=gz,Jz=Ez,Qz=wi,eF=Is,tF=jz,nF=Qr,rF=Lz,iF=bl,oF=NL,aF="[object Arguments]",cF="[object Function]",sF="[object Object]",lF={};lF[aF]=lF["[object Array]"]=lF["[object ArrayBuffer]"]=lF["[object DataView]"]=lF["[object Boolean]"]=lF["[object Date]"]=lF["[object Float32Array]"]=lF["[object Float64Array]"]=lF["[object Int8Array]"]=lF["[object Int16Array]"]=lF["[object Int32Array]"]=lF["[object Map]"]=lF["[object Number]"]=lF[sF]=lF["[object RegExp]"]=lF["[object Set]"]=lF["[object String]"]=lF["[object Symbol]"]=lF["[object Uint8Array]"]=lF["[object Uint8ClampedArray]"]=lF["[object Uint16Array]"]=lF["[object Uint32Array]"]=!0,lF["[object Error]"]=lF[cF]=lF["[object WeakMap]"]=!1;var uF=function e(t,n,r,i,o,a){var c,s=1&n,l=2&n,u=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),void 0!==c)return c;if(!nF(t))return t;var f=Qz(t);if(f){if(c=Zz(t),!s)return Uz(t,c)}else{var p=Xz(t),d=p==cF||"[object GeneratorFunction]"==p;if(eF(t))return Vz(t,s);if(p==sF||p==aF||d&&!o){if(c=l||d?{}:Jz(t),!s)return l?Gz(t,Hz(c,t)):Wz(t,qz(c,t))}else{if(!lF[p])return o?t:{};c=Kz(t,p,s)}}a||(a=new zz);var h=a.get(t);if(h)return h;a.set(t,c),rF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):tF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?Yz:$z:l?oF:iF)(t);return Fz(m||t,(function(i,o){m&&(i=t[o=i]),Bz(c,o,e(i,n,r,o,t,a))})),c},fF=Ea,pF=Af;var dF=function(e,t){return t.length<2?e:fF(e,pF(t,0,-1))},hF=xa,mF=FT,vF=dF,yF=_a;var gF=function(e,t){return t=hF(t,e),null==(e=vF(e,t))||delete e[yF(mF(t))]},bF=pD;var xF=sg;var wF=function(e){return(null==e?0:e.length)?xF(e,1):[]},_F=wF,kF=Ig,SF=Gg;var EF=function(e){return SF(kF(e,void 0,_F),e+"")},OF=ca,AF=uF,CF=gF,TF=xa,PF=wL,jF=function(e){return bF(e)?void 0:e},DF=tz,MF=EF((function(e,t){var n={};if(null==e)return n;var r=!1;t=OF(t,(function(t){return t=TF(t,e),r||(r=t.length>1),t})),PF(e,DF(e),n),r&&(n=AF(n,7,jF));for(var i=t.length;i--;)CF(n,t[i]);return n})),NF=E(MF),IF=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],RF=["width","height","className","style","children","type"];function LF(e){return LF="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},LF(e)}function zF(){return zF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zF.apply(this,arguments)}function FF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YF(r.key),r)}}function qF(e,t){return qF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qF(e,t)}function HF(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 n,r=UF(e);if(t){var i=UF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===LF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VF(e)}(this,n)}}function VF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UF(e){return UF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UF(e)}function WF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WF(Object(n),!0).forEach((function(t){$F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $F(e,t,n){return(t=YF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=function(e,t){if("object"!==LF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LF(t)?t:String(t)}var XF="value",ZF=function e(t){var n,r,i=t.depth,o=t.node,a=t.index,c=t.valueKey,s=o.children,l=i+1,u=s&&s.length?s.map((function(t,n){return e({depth:l,node:t,index:n,valueKey:c})})):null;return r=s&&s.length?u.reduce((function(e,t){return e+t[XF]}),0):qa(o[c])||o[c]<=0?0:o[c],GF(GF({},o),{},($F(n={children:u},XF,r),$F(n,"depth",i),$F(n,"index",a),n))},KF=function(e,t,n){var r=t*t,i=e.area*e.area,o=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=o.min,c=o.max;return i?Math.max(r*c*n/i,i/(r*a*n)):1/0},JF=function(e,t,n,r){return t===n.width?function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,c=0,s=e.length;c<s;c++)(o=e[c]).x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.width+=n.x+n.width-a,GF(GF({},n),{},{y:n.y+i,height:n.height-i})}(e,t,n,r):function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,c=0,s=e.length;c<s;c++)(o=e[c]).x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height;return o&&(o.height+=n.y+n.height-a),GF(GF({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},QF=function e(t,n){var r=t.children;if(r&&r.length){var i,o,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),c=[],s=1/0,l=Math.min(a.width,a.height),u=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[XF]*n;return GF(GF({},e),{},{area:qa(t)||t<=0?0:t})}))}(r,a.width*a.height/t[XF]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=KF(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=JF(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=JF(c,l,a,!0),c.length=c.area=0),GF(GF({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},eB={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},tB=function(t){!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&&qF(e,t)}(a,p);var n,r,i,o=HF(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $F(VF(e=o.call.apply(o,[this].concat(n))),"state",GF({},eB)),$F(VF(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),$F(VF(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;mc(n.children,Db)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;mc(n.children,Db)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=ZF({depth:0,node:GF(GF({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=QF(s,c),u=this.state.nestIndex;u.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:u})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=ZF({depth:0,node:GF(GF({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=QF(s,c);n=n.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(t,n,r){var i=this,o=this.props,a=o.isAnimationActive,c=o.animationBegin,s=o.animationDuration,l=o.animationEasing,u=o.isUpdateAnimationActive,f=o.type,p=o.animationId,d=o.colorPanel,h=this.state.isAnimationFinished,m=n.width,v=n.height,y=n.x,g=n.y,b=n.depth,x=parseInt("".concat((2*Math.random()-1)*m),10),w={};return(r||"nest"===f)&&(w={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?e.createElement(ng,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:y,y:g,width:m,height:v},to:{x:y,y:g,width:m,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,v=r.height;return e.createElement(ng,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(jc,w,b>2&&!h?null:i.constructor.renderContentItem(t,GF(GF({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:v,x:o,y:p}),f,d)))})):e.createElement(jc,w,this.constructor.renderContentItem(t,GF(GF({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:v,x:y,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=GF(GF(GF({},xc(this.props)),n),{},{root:t}),l=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&t.depth&&"nest"===c?null:e.createElement(jc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,s,l),n.children&&n.children.length?n.children.map((function(e,t){return i.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.nameKey,i=mc(n,Db);if(!i)return null;var o=this.props,a=o.width,c=o.height,s=this.state,l=s.isTooltipActive,u=s.activeNode,f={x:0,y:0,width:a,height:c},p=u?{x:u.x+u.width/2,y:u.y+u.height/2}:null,d=l&&u?[{payload:u,name:LC(u,r,""),value:LC(u,XF)}]:[];return e.cloneElement(i,{viewBox:f,active:l,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var t=this,n=this.props,r=n.nameKey,i=n.nestIndexContent,o=this.state.nestIndex;return e.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},o.map((function(n,o){var a=Ca(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=xi(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat($a()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=t.type,s=FF(t,RF),l=xc(s);return e.createElement("div",{className:Jr("recharts-wrapper",i),style:GF(GF({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(Ac,zF({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),bc(a)),this.renderTooltip(),"nest"===c&&this.renderNestIndex())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=ZF({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=QF(n,e.aspectRatio);return GF(GF({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(t,n,r,i){if(e.isValidElement(t))return e.cloneElement(t,n);if(xi(t))return t(n);var o=n.x,a=n.y,c=n.width,s=n.height,l=n.index,u=null;c>10&&s>10&&n.children&&"nest"===r&&(u=e.createElement($P,{points:[{x:o+2,y:a+s/2},{x:o+6,y:a+s/2+3},{x:o+2,y:a+s/2+6}]}));var f=null,p=sw(n.name);c>20&&s>20&&p.width<c&&p.height<s&&(f=e.createElement("text",{x:o+8,y:a+s/2+7,fontSize:14},n.name));var d=i||IF;return e.createElement("g",null,e.createElement(NP,zF({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},NF(n,"children"),{role:"img"})),u,f)}}],r&&BF(n.prototype,r),i&&BF(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$F(tB,"displayName","Treemap"),$F(tB,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!bb.isSsr,isUpdateAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var nB=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},rB=nf,iB=nB;var oB=function(e,t){return e&&e.length?iB(e,rB(t)):0},aB=E(oB),cB=["width","height","className","style","children"],sB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function lB(e){return lB="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},lB(e)}function uB(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(this,arguments)}function pB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xB(r.key),r)}}function dB(e,t){return dB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dB(e,t)}function hB(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 n,r=vB(e);if(t){var i=vB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mB(e)}(this,n)}}function mB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vB(e)}function yB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yB(Object(n),!0).forEach((function(t){bB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bB(e,t,n){return(t=xB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){var t=function(e,t){if("object"!==lB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lB(t)?t:String(t)}var wB={x:0,y:0},_B=function(e){return e.y+e.dy/2},kB=function(e){return e&&e.value||0},SB=function(e,t){return t.reduce((function(t,n){return t+kB(e[n])}),0)},EB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+_B(o)*kB(t[r])}),0)},OB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+_B(o)*kB(t[r])}),0)},AB=function(e,t){return e.y-t.y},CB=function e(t,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=t[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},TB=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(AB);for(var c=0,s=0;s<a;s++){var l=o[s],u=c-l.y;u>0&&(l.y+=u),c=l.y+l.dy+n}c=t+n;for(var f=a-1;f>=0;f--){var p=o[f],d=p.y+p.dy+n-c;if(!(d>0))break;p.y-=d,c=p.y}}},PB=function(e,t,n,r){for(var i=0,o=t.length;i<o;i++)for(var a=t[i],c=0,s=a.length;c<s;c++){var l=a[c];if(l.sourceLinks.length){var u=SB(n,l.sourceLinks),f=EB(e,n,l.sourceLinks)/u;l.y+=(f-_B(l))*r}}},jB=function(e,t,n,r){for(var i=t.length-1;i>=0;i--)for(var o=t[i],a=0,c=o.length;a<c;a++){var s=o[a];if(s.targetLinks.length){var l=SB(n,s.targetLinks),u=OB(e,n,s.targetLinks)/l;s.y+=(u-_B(s))*r}}},DB=function(e){var t=e.data,n=e.width,r=e.height,i=e.iterations,o=e.nodeWidth,a=e.nodePadding,c=t.links,s=function(e,t,n){for(var r=e.nodes,i=e.links,o=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],i=[],o=[],a=0,c=e.length;a<c;a++){var s=e[a];s.source===t&&(i.push(s.target),o.push(a)),s.target===t&&(n.push(s.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,targetNodes:i}}(i,t);return gB(gB(gB({},e),n),{},{value:Math.max(SB(i,n.sourceLinks),SB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||CB(o,s)}var l=Tj(o,(function(e){return e.depth})).depth;if(l>=1)for(var u=(t-n)/l,f=0,p=o.length;f<p;f++){var d=o[f];d.targetNodes.length||(d.depth=l),d.x=d.depth*u,d.dx=n}return{tree:o,maxDepth:l}}(t,n,o),l=s.tree,u=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t[i.depth]||(t[i.depth]=[]),t[i.depth].push(i)}return t}(l),f=function(e,t,n,r){for(var i=Uw(e.map((function(e){return(t-(e.length-1)*n)/aB(e,kB)}))),o=0,a=e.length;o<a;o++)for(var c=0,s=e[o].length;c<s;c++){var l=e[o][c];l.y=c,l.dy=l.value*i}return r.map((function(e){return gB(gB({},e),{},{dy:kB(e)*i})}))}(u,r,a,c);TB(u,r,a);for(var p=1,d=1;d<=i;d++)jB(l,u,f,p*=.99),TB(u,r,a),PB(l,u,f,p),TB(u,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n],o=0,a=0;i.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),i.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var c=0,s=i.targetLinks.length;c<s;c++){var l=t[i.targetLinks[c]];l&&(l.sy=o,o+=l.dy)}for(var u=0,f=i.sourceLinks.length;u<f;u++){var p=t[i.sourceLinks[u]];p&&(p.ty=a,a+=p.dy)}}}(l,f),{nodes:l,links:f}},MB=function(t){!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&&dB(e,t)}(a,p);var n,r,i,o=hB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bB(mB(e=o.call.apply(o,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,i=r.onMouseEnter,o=mc(r.children,Db);o?this.setState((function(n){return"hover"===o.props.trigger?gB(gB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,i=r.onMouseLeave,o=mc(r.children,Db);o?this.setState((function(e){return"hover"===o.props.trigger?gB(gB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,i=r.onClick,o=mc(r.children,Db);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return gB(gB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return gB(gB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),i&&i(e,t,n)}},{key:"renderLinks",value:function(t,n){var r=this,i=this.props,o=i.linkCurvature,a=i.link,c=i.margin,s=Ca(c,"top")||0,l=Ca(c,"left")||0;return e.createElement(jc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,i){var c=t.sy,u=t.ty,f=t.dy,p=n[t.source],d=n[t.target],h=p.x+p.dx+l,m=d.x+l,v=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),y=v(o),g=v(1-o),b=gB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:y,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:gB(gB({},t),{},{source:p,target:d})},xc(a)),x={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return e.createElement(jc,fB({key:"link".concat(i)},x),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(t){var n=this,r=this.props,i=r.node,o=r.margin,a=Ca(o,"top")||0,c=Ca(o,"left")||0;return e.createElement(jc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,r){var o=t.x,s=t.y,l=t.dx,u=t.dy,f=gB(gB({},xc(i)),{},{x:o+c,y:s+a,width:l,height:u,index:r,payload:t}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return e.createElement(jc,fB({key:"node".concat(r)},p),n.constructor.renderNodeItem(i,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.width,i=t.height,o=t.nameKey,a=mc(n,Db);if(!a)return null;var c=this.state,s=c.isTooltipActive,l=c.activeElement,u=c.activeElementType,f={x:0,y:0,width:r,height:i},p=l?function(e,t){return"node"===t?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}}(l,u):wB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:LC(r,n,""),value:LC(r,"value")}];if(r.source&&r.target){var i=LC(r.source,n,""),o=LC(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:LC(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=uB(t,cB),s=this.state,l=s.links,u=s.nodes,f=xc(c);return e.createElement("div",{className:Jr("recharts-wrapper",i),style:gB(gB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(Ac,fB({},f,{width:n,height:r}),bc(a),this.renderLinks(l,u),this.renderNodes(u)),this.renderTooltip())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,c=e.nodeWidth,s=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||i!==t.prevHeight||!Ja(o,t.prevMargin)||a!==t.prevIterations||c!==t.prevNodeWidth||s!==t.prevNodePadding){var l=r-(o&&o.left||0)-(o&&o.right||0),u=i-(o&&o.top||0)-(o&&o.bottom||0),f=DB({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return gB(gB({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:i,prevMargin:o,prevNodePadding:s,prevNodeWidth:c,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(t,n){if(e.isValidElement(t))return e.cloneElement(t,n);if(xi(t))return t(n);var r=n.sourceX,i=n.sourceY,o=n.sourceControlX,a=n.targetX,c=n.targetY,s=n.targetControlX,l=n.linkWidth,u=uB(n,sB);return e.createElement("path",fB({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(i,"\n C").concat(o,",").concat(i," ").concat(s,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},xc(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,fB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},xc(n),{role:"img"}))}}],r&&pB(n.prototype,r),i&&pB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function NB(e){return NB="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},NB(e)}function IB(){return IB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IB.apply(this,arguments)}function RB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HB(r.key),r)}}function LB(e,t){return LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LB(e,t)}function zB(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 n,r=BB(e);if(t){var i=BB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FB(e)}(this,n)}}function FB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BB(e){return BB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BB(e)}function qB(e,t,n){return(t=HB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HB(e){var t=function(e,t){if("object"!==NB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NB(t)?t:String(t)}bB(MB,"displayName","Sankey"),bB(MB,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),pL({chartName:"RadarChart",GraphicalChild:FD,axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pL({chartName:"ScatterChart",GraphicalChild:fR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR},{axisType:"zAxis",AxisComp:QI}],formatAxisMap:gN}),pL({chartName:"AreaChart",GraphicalChild:JI,axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN}),pL({chartName:"RadialBarChart",GraphicalChild:QD,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pL({chartName:"ComposedChart",GraphicalChild:[zI,JI,fN,fR],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR},{axisType:"zAxis",AxisComp:QI}],formatAxisMap:gN});var VB=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},UB=function(t){!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&&LB(e,t)}(a,p);var n,r,i,o=zB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qB(FB(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.upperWidth,a=n.lowerWidth,c=n.height,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||c!==+c||0===o&&0===a||0===c)return null;var m=Jr("recharts-trapezoid",s);return h?e.createElement(ng,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:c,x:r,y:i},to:{upperWidth:o,lowerWidth:a,height:c,x:r,y:i},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,i=n.lowerWidth,o=n.height,a=n.x,c=n.y;return e.createElement(ng,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},e.createElement("path",IB({},xc(t.props,!0),{className:m,d:VB(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",IB({},xc(this.props,!0),{className:m,d:VB(r,i,o,a,c)})))}}],r&&RB(n.prototype,r),i&&RB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function WB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return GB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GB(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 GB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $B(e){return $B="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},$B(e)}function YB(){return YB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YB.apply(this,arguments)}function XB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XB(Object(n),!0).forEach((function(t){nq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rq(r.key),r)}}function JB(e,t){return JB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JB(e,t)}function QB(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 n,r=tq(e);if(t){var i=tq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eq(e)}(this,n)}}function eq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tq(e){return tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tq(e)}function nq(e,t,n){return(t=rq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rq(e){var t=function(e,t){if("object"!==$B(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$B(t)?t:String(t)}qB(UB,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var iq=function(t){!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&&JB(e,t)}(a,p);var n,r,i,o=QB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nq(eq(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),nq(eq(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),nq(eq(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(t){var n=this,r=this.props.activeShape;return t.map((function(t,i){var o=n.isActiveIndex(i)?r:null,c=ZB(ZB({},t),{},{stroke:t.stroke});return e.createElement(jc,YB({className:"recharts-funnel-trapezoid"},oc(n.props,t,i),{key:"trapezoid-".concat(i),role:"img"}),a.renderTrapezoidItem(o,c))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,n=this.props,r=n.trapezoids,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevTrapezoids;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.x,e.x),o=Za(n.y,e.y),a=Za(n.upperWidth,e.upperWidth),c=Za(n.lowerWidth,e.lowerWidth),s=Za(n.height,e.height);return ZB(ZB({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=Za(e.x+e.upperWidth/2,e.x),f=Za(e.y+e.height/2,e.y),p=Za(0,e.upperWidth),d=Za(0,e.lowerWidth),h=Za(0,e.height);return ZB(ZB({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(jc,null,t.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.trapezoids,i=t.className,o=t.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var c=Jr("recharts-trapezoids",i);return e.createElement(jc,{className:c},this.renderTrapezoids(),(!o||a)&&KT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):dD(t)?e.createElement(UB,YB({},n,t)):e.createElement(UB,n)}}],r&&KB(n.prototype,r),i&&KB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function oq(e){return lt(e).substr(0,10)}function aq(e,t,n){return"FitbitSteps"==e?cq(t,n):"FitbitRestingHeartRates"==e?sq(t,n):"GarminSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}(t,n):"GarminRestingHeartRates"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==e?sq(t,n):"AppleHealthDistanceRunningWalking"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):"GoogleFitSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):cq(t,n)}function cq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[oq(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function sq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[oq(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}function lq(e){var t=[],n=function(r){var i=It({},e);return r&&(i.pageID=r),b.queryDeviceData(i).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?n(e.nextPageID):t}))};return n()}function uq(e,t){var n=e.startDate;t.startDate<n&&(n=t.startDate);var r=e.endDate;return t.endDate>r&&(r=t.endDate),{startDate:n,endDate:r}}function fq(e){e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}));for(var t,n,r=[],i=e[0],o=1;o<e.length;o++)t=i,(n=e[o]).startDate>=t.startDate&&n.startDate<=t.endDate||n.endDate>=t.startDate&&n.endDate<=t.endDate||t.startDate>=n.startDate&&t.startDate<=n.endDate||t.endDate>=n.startDate&&t.endDate<=n.endDate?i=uq(i,e[o]):(r.push(i),i=e[o]);r.push(i);var a=0;return r.forEach((function(e){a+=function(e,t,n){H(2,arguments);var r=oe(e,t)/te;return se(null==n?void 0:n.roundingMethod)(r)}(e.endDate,e.startDate)})),a}function pq(e,t,n){return lq({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(r){var i={};r.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==n)for(var t=function(e){for(var t=[],n=pt(e.startDate),r=pt(e.observationDate),i=Y(new Date(n.getFullYear(),n.getMonth(),n.getDate(),18,0,0,0),{days:-1});i<r;){var o=Y(i,{days:1});if(o>n){var a=new Date(i),c=new Date(o);n>=i&&n<o&&(a=n),r>=i&&r<o&&(c=r),t.push({startDate:a,endDate:c})}i=o}return t}(e),r=0;r<t.length;r++){var o=lt(Y(t[r].startDate,{hours:6})).substring(0,10);i[o]||(i[o]=[]),i[o].push(t[r])}}));for(var o={};e<t;){var a=e.toISOString().substr(0,10),c=i[a];c&&(o[a]=fq(c)),e=Y(e,{days:1})}return o}))}function dq(e,t){return lq({namespace:"AppleHealth",type:"HourlySteps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function hq(e,t,n){return lq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.value)}})),t}))}function mq(e,t,n){return lq({namespace:"Fitbit",type:"HeartRateZone",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!n||e.value==n)&&e.properties&&e.properties.Minutes&&e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.properties.Minutes)}})),t}))}function vq(e,t,n){return lq({namespace:"Fitbit",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substr(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}function yq(e,t){return vq("RestingHeartRate",e,t)}function gq(e,t,n){return lq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var n=lt(Y(pt(e.observationDate),{hours:6})).substr(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function bq(e,t){return vq("Steps",e,t)}function xq(e,t,n,r){return lq({namespace:"Garmin",type:"Daily",observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(t){var n={};return t.forEach((function(t){if(t.startDate&&t.properties&&t.properties[e]&&!(parseInt(t.properties[e])<=0)){var i=t.startDate.substring(0,10);n[i]=Math.round(parseFloat(t.properties[e])),r&&(n[i]=Math.round(n[i]/r))}})),n}))}function wq(e,t){return xq("Steps",e,t)}function _q(e,t,n,r,i){return lq({namespace:"Garmin",type:"Sleep",observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(t){var n={};return t.forEach((function(t){if(t.observationDate&&t.properties&&t.properties[e]&&!(parseInt(t.properties[e])<=0)){var o=lt(Y(pt(t.observationDate),{hours:6})).substr(0,10),a=parseFloat(t.properties[e]);a<0||(i&&(a/=i),n[o]?r&&(n[o]+=parseFloat(t.properties[e])):n[o]=a)}})),n}))}nq(iq,"displayName","Funnel"),nq(iq,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!bb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),nq(iq,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=xc(e.props),o=hc(r,mx);return n&&n.length?n.map((function(e,t){return ZB(ZB(ZB({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return ZB(ZB({},i),e.props)})):[]})),nq(iq,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,c=t.top,s=t.bottom,l=i,u=r;return Fa(n)?u=n:Ai(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),nq(iq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=iq.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,c=i.tooltipType,s=i.lastShapeType,l=i.reversed,u=n.left,f=n.top,p=iq.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,v=p.offsetY,y=Math.max.apply(null,r.map((function(e){return LC(e,o,0)}))),g=r.length,b=d/g,x={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map((function(e,t){var n,i=LC(e,o,0),l=LC(e,a,t),p=i;if(t!==g-1)(n=LC(r[t+1],o,0))instanceof Array&&(n=WB(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=WB(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(y-p)*h/(2*y)+f+25+m,_=b*t+u+v,k=p/y*h,S=n/y*h,E=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+k/2,y:_+b/2};return ZB(ZB({x:w,y:_,width:Math.max(k,S),upperWidth:k,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:E,tooltipPosition:O},NF(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(k-S)/4,y:_,width:Math.abs(k-S)/2+Math.min(k,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return ZB(ZB({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(g-1-t)*b,tooltipPosition:ZB(ZB({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:ZB(ZB({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),pL({chartName:"FunnelChart",GraphicalChild:iq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});var kq,Sq={};function Eq(e,t,n){Sq[e]={provider:t,availabilityCheck:n}}function Oq(e,t){var n=Sq[e];if(!n)throw"Unknown data type:"+e;return n.availabilityCheck(t)}function Aq(e,t,n){var r=Sq[e];return console.log(e),console.log(r),r.provider(t,n).then((function(e){for(var r={};t<n;){var i=oq(t);e[i]&&(r[i]=e[i]),t=Y(t,{days:1})}return r}))}function Cq(e,t){return function(n){var r={namespace:e,type:t,limit:1};return n&&(r.modifiedAfter=n.toISOString()),b.queryDeviceData(r).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function Tq(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;return e.createElement("text",{x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}function Pq(t){var n=s(null),r=n[0],i=n[1],o=s(!1),c=o[0],u=o[1],f=s(!1),p=f[0],d=f[1],h=a(),m=new Date(t.year,t.month,1,0,0,0,0),v=Y(m,{months:1});function y(){var e,n;if(t.previewState&&(d(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var r={};t.lines.forEach((function(e){var n=aq(e.dailyDataType,t.year,t.month);r[e.dailyDataType]=n})),i(r)}if("NoData"==t.previewState){r={};t.lines.forEach((function(e){r[e.dailyDataType]={}})),i(r),u(!1)}if(!t.previewState){!function(){if(!p){var e=t.lines.map((function(e){return Oq(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(d(!0),t.onDataDetected&&t.onDataDetected())}))}}(),h.current=(null!==(e=h.current)&&void 0!==e?e:0)+1;var o=null!==(n=h.current)&&void 0!==n?n:0;u(!0);var a;a=t.lines.map((function(e){return Aq(e.dailyDataType,m,v)})),Promise.all(a).then((function(e){if(o==h.current){for(var n={},r=0;r<t.lines.length;r++)n[t.lines[r].dailyDataType]=e[r];i(n),u(!1)}}))}}l((function(){return y(),b.on("applicationDidBecomeVisible",y),b.on("externalAccountSyncComplete",y),function(){b.off("applicationDidBecomeVisible",y),b.off("externalAccountSyncComplete",y)}}),[t]);for(var g=[],x=m,w=!1;x<v;){var _={day:x.getDate()};g.push(_);var k=oq(x);t.lines.forEach((function(e){r&&(_[e.dailyDataType]=r[e.dailyDataType][k],e.valueConverter&&(_[e.dailyDataType]=e.valueConverter(_[e.dailyDataType])),_[e.dailyDataType]>0&&(w=!0))})),x=Y(x,{days:1})}if(!p)return null;var S=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var n=e[0],r=g.map((function(e){return e[n.dailyDataType]}));if(!(r=r.filter((function(e){return!!e}))).length)return null;var i=r.reduce((function(e,t){return e+t}))/r.length;return i.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1})}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!c&&null!=S&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},S)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!w||c)&&e.createElement("div",null,!w&&!c&&e.createElement("div",{className:"no-data-label"},"No Data"),c&&e.createElement(I,null),e.createElement(hx,{width:"100%",height:150},e.createElement(dL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(_I,{strokeDasharray:"3 3"}),e.createElement(dR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(pR,{id:"myXAxis",tick:Tq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!c&&e.createElement(hx,{width:"100%",height:150},e.createElement(dL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(zI,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(Db,{content:e.createElement((function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=new Date(t.year,t.month,i[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},nt(o,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,i.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(_I,{strokeDasharray:"3 3"}),e.createElement(dR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(pR,{id:"myXAxis",tick:Tq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function jq(t){var n=s(!1),r=n[0],i=n[1],o=new Date,a=s(new Date(o.getFullYear(),o.getMonth(),1,0,0,0,0)),c=a[0],l=a[1];function u(){i(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(Dr,null,br["device-data-no-data"]),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){l(e)}}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.FitbitSteps,label:br.steps}],title:"Fitbit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:"Fitbit "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GarminSteps,label:br.steps}],title:"Garmin "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:"Garmin "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.AppleHealthSteps,label:br.steps}],title:"Apple Health "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.AppleHealthDistanceWalkingRunning,label:br["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+br["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GoogleFitSteps,label:br.steps}],title:"Google Fit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GarminSteps="GarminSteps",e.GarminDistance="GarminDistance",e.GarminFloors="GarminFloors",e.GarminActiveMinutes="GarminActiveMinutes",e.GarminRestingHeartRate="GarminRestingHeartRate",e.GarminMinHeartRate="GarminMinHeartRate",e.GarminMaxHeartRate="GarminMaxHeartRate",e.GarminAverageHeartRate="GarminAverageHeartRate",e.GarminMaxStressLevel="GarminMaxStressLevel",e.GarminAverageStressLevel="GarminAverageStressLevel",e.GarminTotalStressMinutes="GarminTotalStressMinutes",e.GarminLowStressMinutes="GarminLowStressMinutes",e.GarminMediumStressMinutes="GarminMediumStressMinutes",e.GarminHighStressMinutes="GarminHighStressMinutes",e.GarminTotalSleepMinutes="GarminTotalSleepMinutes",e.GarminLightSleepMinutes="GarminLightSleepMinutes",e.GarminDeepSleepMinutes="GarminDeepSleepMinutes",e.GarminRemSleepMinutes="GarminRemSleepMinutes",e.GarminAwakeMinutes="GarminAwakeMinutes",e.GarminSleepScore="GarminSleepScore",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(kq||(kq={})),Eq(kq.AppleHealthDistanceWalkingRunning,(function(e,t){return lq({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["HourlyDistanceWalkingRunning"])),Eq(kq.AppleHealthFlightsClimbed,(function(e,t){return lq({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["HourlySteps"])),Eq(kq.AppleHealthHeartRateRange,(function(e,t){return lq({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(r[t]?(!r[t].MaxHeartRate||n>r[t].MaxHeartRate)&&(r[t].MaxHeartRate=n):r[t]={MaxHeartRate:n}),"HourlyMinimumHeartRate"==e.type&&(r[t]?(!r[t].MinHeartRate||n<r[t].MinHeartRate)&&(r[t].MinHeartRate=n):r[t]={MinHeartRate:n})}}));for(var i={};e<t;){var o=r[oq(e)];o&&o.MaxHeartRate&&o.MinHeartRate&&(i[oq(e)]=o.MaxHeartRate-o.MinHeartRate),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["HourlyMaximumHeartRate"])),Eq(kq.AppleHealthHrv,(function(e,t){return lq({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=lt(pt(e.startDate)).substring(0,10),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["HeartRateVariability"])),Eq(kq.AppleHealthMaxHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10),r=parseFloat(e.value);t[n]?r>t[n]&&(t[n]=r):t[n]=r}})),t}))}),Cq("AppleHealth",["HourlyMaximumHeartRate"])),Eq(kq.AppleHealthRestingHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["RestingHeartRate"])),Eq(kq.AppleHealthSleepMinutes,(function(e,t){return pq(e,t,"Asleep")}),Cq("AppleHealth",["SleepAnalysisInterval"])),Eq(kq.AppleHealthInBedMinutes,(function(e,t){return pq(e,t,"InBed")}),Cq("AppleHealth",["SleepAnalysisInterval"])),Eq(kq.AppleHealthStandMinutes,(function(e,t){return lq({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["AppleStandTime"])),Eq(kq.AppleHealthSteps,dq,Cq("AppleHealth",["HourlySteps"])),Eq(kq.AppleHealthWalkingHeartRateAverage,(function(e,t){return lq({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["WalkingHeartRateAverage"])),Eq(kq.FitbitActiveMinutes,(function(e,t){return hq(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),Cq("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),Eq(kq.FitbitLightlyActiveMinutes,(function(e,t){return hq(e,t,["MinutesLightlyActive"])}),Cq("Fitbit",["MinutesLightlyActive"])),Eq(kq.FitbitFairlyActiveMinutes,(function(e,t){return hq(e,t,["MinutesFairlyActive"])}),Cq("Fitbit",["MinutesFairlyActive"])),Eq(kq.FitbitVeryActiveMinutes,(function(e,t){return hq(e,t,["MinutesVeryActive"])}),Cq("Fitbit",["MinutesVeryActive"])),Eq(kq.FitbitBreathingRate,(function(e,t){return vq("BreathingRate",e,t)}),Cq("Fitbit",["BreathingRate"])),Eq(kq.FitbitCaloriesBurned,(function(e,t){return vq("Calories",e,t)}),Cq("Fitbit",["Calories"])),Eq(kq.FitbitElevatedHeartRateMinutes,(function(e,t){return mq(e,t)}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitFatBurnHeartRateMinutes,(function(e,t){return mq(e,t,"Fat Burn")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitCardioHeartRateMinutes,(function(e,t){return mq(e,t,"Cardio")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitPeakHeartRateMinutes,(function(e,t){return mq(e,t,"Peak")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitFloors,(function(e,t){return vq("Floors",e,t)}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitHrv,(function(e,t){return vq("Hrv",e,t)}),Cq("Fitbit",["Floors"])),Eq(kq.FitbitRestingHeartRate,yq,Cq("Fitbit",["RestingHeartRate"])),Eq(kq.FitbitSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),Cq("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),Eq(kq.FitbitLightSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelLight"])}),Cq("Fitbit",["SleepLevelLight"])),Eq(kq.FitbitRemSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelRem"])}),Cq("Fitbit",["SleepLevelRem"])),Eq(kq.FitbitDeepSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelDeep"])}),Cq("Fitbit",["SleepLevelDeep"])),Eq(kq.FitbitSpO2,(function(e,t){return vq("SpO2",e,t)}),Cq("Fitbit",["SpO2"])),Eq(kq.FitbitSteps,bq,Cq("Fitbit",["Steps"])),Eq(kq.GoogleFitSteps,(function(e,t){return lq({namespace:"GoogleFit",type:"Steps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("GoogleFit",["Steps"])),Eq(kq.GarminSteps,wq,Cq("Garmin",["Daily"])),Eq(kq.GarminDistance,(function(e,t){return xq("DistanceInMeters",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminFloors,(function(e,t){return xq("FloorsClimbed",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminActiveMinutes,(function(e,t){return xq("ActiveTimeInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminRestingHeartRate,(function(e,t){return xq("RestingHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMinHeartRate,(function(e,t){return xq("MinHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMaxHeartRate,(function(e,t){return xq("MaxHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminAverageHeartRate,(function(e,t){return xq("AverageHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMaxStressLevel,(function(e,t){return xq("MaxStressLevel",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminAverageStressLevel,(function(e,t){return xq("AverageStressLevel",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminTotalStressMinutes,(function(e,t){return xq("StressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminLowStressMinutes,(function(e,t){return xq("LowStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMediumStressMinutes,(function(e,t){return xq("MediumStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminHighStressMinutes,(function(e,t){return xq("HighStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminTotalSleepMinutes,(function(e,t){return _q("DurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminRemSleepMinutes,(function(e,t){return _q("RemSleepInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminDeepSleepMinutes,(function(e,t){return _q("DeepSleepDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminLightSleepMinutes,(function(e,t){return _q("LightSleepDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminAwakeMinutes,(function(e,t){return _q("AwakeDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminSleepScore,(function(e,t){return _q("OverallSleepScore.Value",e,t,!1)}),Cq("Garmin",["Sleep"])),Eq(kq.RestingHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){return yq(e,t).then((function(r){var i={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);i[t]||(i[t]=[]),i[t].push(n)}}));for(var o={};e<t;){var a=oq(e);r[a]&&(i[a]||(i[a]=[]),i[a].push(r[a])),i[a]&&(o[a]=i[a].reduce((function(e,t){return e+t}))/i[a].length),e=Y(e,{days:1})}return o}))}))}),(function(e){return Cq("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||Cq("Fitbit",["RestingHeartRate"])(e).then((function(t){return t||Cq("Garmin",["RestingHeartRateInBeatsPerMinute"])(e)}))}))})),Eq(kq.Steps,(function(e,t){var n=bq(e,t),r=dq(e,t),i=wq(e,t);return Promise.all([n,r,i]).then((function(n){for(var r={};e<t;){var i=oq(e),o=null;n[0][i]&&(o=n[0][i]),n[1][i]&&(null==o||n[1][i]>o)&&(o=n[1][i]),o&&(r[i]=o),e=Y(e,{days:1})}return r}))}),(function(e){return Cq("AppleHealth",["Steps"])(e).then((function(t){return t||Cq("Fitbit",["Steps"])(e).then((function(t){return t||Cq("Garmin",["Steps"])(e)}))}))}));var Dq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Mq(t){var n=s(!0),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return i(!1),void p(Dq);f()}function f(){b.getExternalAccounts().then((function(e){p(e),i(!1)}))}function p(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var n;return-1!=(null===(n=t.externalAccountProviderCategories)||void 0===n?void 0:n.indexOf(e.provider.category))}))),c(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(Pt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Er,{externalAccount:t,onAccountRemoved:function(e){return i(!0),void f()},onReconnectAccount:function(e){return function(e){b.connectExternalAccount(e.provider.id)}(e)}}))})),r&&e.createElement(I,null))}function Nq(e,t){var n=a();l((function(){n.current=e}),[e]),l((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}_(".mdhui-external-accounts-loading-indicator {\n text-align: center;\n padding: 16px;\n}\n\n.mdhui-external-accounts-loading-indicator .mdhui-external-accounts-loading-indicator-message {\n color: var(--mdhui-text-color-3);\n margin-left: 8px;\n}");var Iq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchingData",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}}];function Rq(t){var n=s(!1),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Iq[0].status="fetchingData",void c(Iq)):"externalAccountsLoaded"==t.previewState?(Iq[0].status="fetchComplete",void c(Iq)):void b.getExternalAccounts().then((function(e){t.externalAccountCategories&&(e=e.filter((function(e){return t.externalAccountCategories.includes(e.provider.category)}))),e.forEach((function(e){"fetchComplete"==e.status&&ft(new Date,Y(pt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),c(e)}))}l((function(){return b.getDeviceInfo().then((function(e){i("Web"==e.platform)})).catch((function(){i(!0)})).finally((function(){u()})),b.on("externalAccountSyncComplete",u),b.on("applicationDidBecomeVisible",u),function(){b.off("externalAccountSyncComplete",u),b.off("applicationDidBecomeVisible",u)}}),[]);var f=!!a.find((function(e){return"fetchingData"==e.status}));return Nq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},br["external-account-fetching-data"])):null}_(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Lq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function zq(t){var n=s(null),r=n[0],i=n[1],o="",a=[];function c(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Lq)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(a.push("Provider"),o+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-devices"]),l((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r&&r.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(j,{title:o,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):b.openApplication(t.applicationUrl)}},r.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}var Fq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Charge 3",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"},{id:"1009644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.397Z",modifiedDate:"2022-03-14T21:32:51.397Z",identifier:"F-31-A4C138BBAE04",type:"Device",value:"Aria Air",properties:{Battery:"Low",Type:"SCALE",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-01-12T18:34:23+00:00"}];_(".mdhui-connected-devices .connected-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-connected-devices .connected-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-connected-devices .connected-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-connected-devices .connected-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-connected-devices .connected-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-connected-devices .connected-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-empty,\n.mdhui-connected-devices .connected-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}\n");var Bq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",n=["battery-0"],r="f244",i="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Bq);var qq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",n=[128267,"battery","battery-5"],r="f240",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(qq);var Hq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",n=["battery-3"],r="f242",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Hq);var Vq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",n=["battery-2"],r="f243",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Vq);var Uq={};function Wq(){return Wq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wq.apply(this,arguments)}function Gq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",n=["weight"],r="f496",i="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Uq);var $q=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=Gq(t,["color","size"]);return e.createElement("svg",Wq({ref:n,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),e.createElement("circle",{cx:"12",cy:"12",r:"7"}),e.createElement("polyline",{points:"12 9 12 12 13.5 13.5"}),e.createElement("path",{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"}))}));$q.propTypes={color:Sh.string,size:Sh.oneOfType([Sh.string,Sh.number])},$q.displayName="Watch";var Yq=$q;function Xq(t){var n=s([]),r=n[0],i=n[1];function o(){if("connected"!=t.previewState)if("notEnabled"!=t.previewState&&"notConnected"!=t.previewState){var e={namespace:t.providerNamespace,type:"Device"};b.queryDeviceData(e).then((function(e){i(e.deviceDataPoints)}))}else i([]);else i(t.previewData)}if(l((function(){return o(),b.on("applicationDidBecomeVisible",o),b.on("externalAccountSyncComplete",o),function(){b.off("applicationDidBecomeVisible",o),b.off("externalAccountSyncComplete",o)}}),[]),!r.length)return null;var a=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-connected-devices"},e.createElement(jt,{title:t.providerName+" "+br.devices}),r.map((function(t){var n,r,i,o,c,s;return e.createElement("div",{key:t.id.toString(),className:"connected-device"},"TRACKER"==(null===(n=t.properties)||void 0===n?void 0:n.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(Yq,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Uq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},br["last-sync"]," ",ut(pt(t.observationDate),new Date,{locale:a}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:Bq.faBatteryEmpty,rotate:-90})),"Low"==(null===(o=t.properties)||void 0===o?void 0:o.Battery)&&e.createElement("div",{className:"battery-icon battery-low"},e.createElement(P,{icon:Vq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Hq.faBatteryHalf,rotate:-90})),"High"==(null===(s=t.properties)||void 0===s?void 0:s.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:qq.faBatteryFull,rotate:-90})))})))}function Zq(t){return e.createElement(Xq,{providerName:"Fitbit",providerNamespace:"Fitbit",previewData:Fq,previewState:t.previewState})}function Kq(t){var n,r=s(!1),i=r[0],o=r[1],a=new Date,c=s(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),l=c[0],u=c[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){u(e)}}),null===(n=t.charts)||void 0===n?void 0:n.map((function(n){return e.createElement(Pq,{onDataDetected:function(){o(!0)},previewState:"connected"==t.previewState?"WithData":"notEnabled"==t.previewState||"notConnected"==t.previewState?"NoData":void 0,lines:n.lines,title:n.title,syncId:n.syncId,month:f,year:p})})))}function Jq(t){return e.createElement(Kq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:kq.FitbitSteps,label:br.steps}],title:br.steps,syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:kq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Qq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Garmin",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Forerunner 55",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/garmin-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"}];function eH(t){return e.createElement(Xq,{providerName:"Garmin",providerNamespace:"Garmin",previewData:Qq,previewState:t.previewState})}function tH(t){return e.createElement(Kq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:kq.GarminSteps,label:br.steps}],title:br.steps,syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:kq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var nH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACE3AAAhNwEzWJ96AAANGElEQVR42u1de2xT1x3+bF8nJi+HCEUsq1WqYdZIUTElsI2QNaxTVaLRZqKEqNDVJawRSECXpdUaica0Eq1alEI3NaUiNLSBQmk1l2gpqpYmKSPd0nYYmsodbgdrogyhKItfxPFzf+TauS/b99rn2k7wT7KixPH1vd93fs/zO+coQqEQspI+UWYhyBJwWwuVqTc2qdMvA2BgvIoB3Cfy44MApgBYwq+SUdv1THxORab4ABrwGgB19E8t4a+wAxgAYAYwkCmEpJWASZ2+GICRfq1M8ddfBtAFoKtk1DZ1WxEwqdPX0KA/niGW4ARNxMCCJoAG3iTBlqdaBgGYUklESgiY1OkNAA5nMPBCRDxVMmqzzGsCaBtvArBvnkaJR2iNmJp3BEzq9HW0k9NifosdgLFk1GaeFwQsgFGfUm0gSgAdy5vTEFKmMnStI5lDECOAdrQDC8DkiDFJNaQctJIQ+EYAl24D8EE/4yX6mdNPAH0jb+H2k7dIkKDMgp9eEpRZ8NNLQkJOmHa4l7LYs2RVIo5ZMgF0qGmR0+EqSjXI2bQGasMaKMvuBLW2lvV+yDGBwDfDCFy9Ap/ln/CeyYixYAdgkBqiSiKATrIG5IrzlRVa5DU1Iqdul6TPBcesmOl5B55jPQjd9KQ7T6iRkqxJJeCwHBmuolSDvN9tQ+72PyR1nZBjAtNvPg/PkY/SmjGXjNqeIk4AXdv5M+m7parKUHDoDSjvKOe95+s7Bf/VEfgtbNOqKCyA2nAvqNU/h6p8neDnXM+8mE5t+LXY2pEoAmjTc5203c/Zugr5z70ORdES1ij2nGwXbU6oqjJoGhp4ZitgHYJje1O6SLADWCbGFIkNQ02kwVfX6lFw6D0W+L6+U5jasAHTB8+KBs5/cRyuPe1wNtUiYB2K/F1Vvg5F3UehKNWkK1s2EdEAOUJOZYUW2jPnWeDfOrQ3adutKNUgf/9uljYErEOwP/C4aHOo0Oaz/YrdDf/FcdlCUzFtKYdJD4/C9tdY4LtNOzDTeSHp64ZueuDa044CIEKCqnwdFrVuwfTBs1HD3ZzqX0J9/6Mxnbv33DHcevWkVJN2GLMdHolpAD2H208SfM2+jchreS3y+3RHqyA4SduAj0+wHPTUxkoER+wR4DU7N0GzrZk1EMREWbfan5E6WDbEmmOO5wNMpIFZ9ORzLPMgB/gA4Gzei5BjIvJ7XlPj7Pe3bkFxfz8W7ToYFXz/cC/8w7380Vq0BPmm48htrJZyK6aENECO0Z/bWI180/E5kJpq4eu1yeYJF7VuwaJdB1mERwtbvRf+Ct8/rkS0JF6U5Wi4T4pviKoFsTTASBoQzdadrFEmJ/gAZkNZhhZwwfeaOzC1sRJOYxtmOi/wwGdGWW7TDja5v22ScitGSSaIjvuJNk0pSjUsAGZ635c9Fgzd9MD3yVlBEzO1sRKuPe2CoAvJTOcFTHe0zoXR9z8qJcR9nMZUtAYQH/1UpY49+no+T0lA7v0b24reOrQXjs37RAPP1ahYz5SIFqSOAIOBZYtTlaH6+q3s0f/F5aQ0iumcmc9EjAC63CxrV0Nw/HrKUlIu0dxEK4WyksY2rgbUyH0n/qsjKX1yZokizVIjhoA6LDBRFC4mdi3V3WvnBpJF8gRYXUZogHr1+pQSIFTqTsiPVZWxkrfA9zfJagBto7Tyj8ji1IFfwX6ckN2deB7T0MAyawlEUlquH+BqgEEuIJjqqipfl7Iysfon9/ASq0TzGPUvtszlBX85negtGdJCADfrzdm0JjUEGNawErBEJX//7oj5CTkmMPNuPxECKLkIUNfqQRkMUK9eD9Xda3mFr9zaR4iUoOOZH2YNx/vp+YSfhXkdz8n2ZPKYmAQkZZzDZd7cTY/FdXzU2lqoa/8kbzFu2yMcG74LwRs3JLWxKEo1KHjl7Tkf4pjgZcQShYUxqxo6qdOHkgFean09OGaF/eF6WbJiqqoMRacHhcsT5g649rSLeq6i7qOsGparpT7pPqSSUZsiXilC2oN2HxWsrwesQ5jpfgmulno4Gu7DpE4PV0s9KzzM37+bfJRVqkF+24tR38+p2wXtxydiBgJC4M90v0S8CSwpDaCqylD45ge8rgbvuWOYPvl+1DCtsOsAawpQ7IgUCz4XuOmOVlArKnjTjv7hXjg27xN8rvy2F1nX8PWdgtPYRuQemRqQMAFC4Pv6TsF9KH6JV1GqgfbD91h+ggQJQuAzr8udEAqPaveznXPBQWM18ppfZidchFtciBDAnXOVOrEuRGDAOgT3gWcTitWFeoyEgBMiwdlUi8D3N1Fw4HleH6rX3AH3C68T9VNJE8B9iES7GoRICD+05/RpUUTkbF0FTb2RB1y0Ucs1f2GzKRQ8yNUwkDQBzNEfzY4mYzaYUZJv4EMEbowjYPt2jjiDAdSKClBrHhAEjmtWwlLwx2ZRjb/BMSvcL/xethA5KQIUpRos/vIromEZMDuBLjWMFQtcLJK5muA52S5bpwaRMJQ3tUgoLPMc60kY/IB1CG7TDkz97CEe+FRVGbQfvscD323aAa+5g/U319O/kR18Hp7IEFFvKOfZXwCgVlRAUVgcKWcEx6wIjl9DcPw/8H9rhbdPuCoZTg6ZbSlcnxWo+o5lkiiDQfZOjXgEDCLOhhrcGjhVVZZM7ySjaHYvTyNmHaj0EZnbWI1FO5/mlUNCjgk4n9wcuV//xXEEx6yR/1OvXo9pyK4Bg7GqoXHbqYMjdgTHrIz6SgORu1KtuIdlUqSGfYpSDTT7NqL4s3PINx3nge8f7sXUhg28wRL415wJZc52yShTsQgQNcc20/MOK61X1+qJ3mHIOSUa9NzGahR2HcDiL79CXstrgqM+3IoiRCpzfjqZAECCWGKZIFEEeI71sCKWglfehtO+OSlTxB19uY3VCP73BhvwwgKofrQcqh/ooPrxyrhRzUz3SzE7mpUVWmi2Nafa3Vli1YKWAbgmymbX6lF4tJdY4lL82Tkic7dialGxQtNJnV5uAu5irqTkNedO6vRTEDkvLJTWB8esmD72iuTMuOiDI7xsVoqEG2y9PZ/H9R9CxbYUEWAvGbUVxwtDBwA8LMoXdF5AyFXPqsEo7yhHvuk48pon4PvkLHyWzxH45ruo5klRqgFVqYOy7C5JT+If7o2sE/b1W0U7baGaEXPwyCwDYvIAs1gCwomY/+sHkd/SzKqxKIqWIKduFyvODi+wnrXnxTFtuKulHiGniz/SE4zTxSyFZUZEMolZDAEDkksAI3Y4jW1Q13ZDU7896nIfRdES0WZGuXQpPGfIrPeNlhfwyL3095RrgOACjUmd3oIk+kOVFVrk3L8O6lU/jVowEyonKH+4IvK/JKYrYwHv6zsFZdmyqMuYZJDLJaM2g9hSRBeAVxMuio3Y4Rn5CB58BKAtYufDoaRy6dJIdZO5CpFZrVTeUQ7Nzk2Soyqqqgy5v9qInId2ChIfckzA/fxuhJwuVhTnH+6VE/wwphCrAcUA/pfqAJm7fDUMlv/rf0et91CVOqj0y0EtLwdVWRPTzIQnVwDwZuTkXi4FYLHQwu1Ya8S6kIathbnrukiI19yBW0c7IyRy5wWSndMQISdKRm1G0RpAE1ADwov0UpmUBces8JzuwMy7/Sw/wgU/5JiAfeuDcpufqIv04q0THkAathuO1dMTLzfwfnoe/i8u8/IORakGBS8/y4vQSC0SjyGDJaO2mqjPGufDpnRogf/iONymHbwsOzyymcVAv8UiajsBqlKXDvDDGEb3e7HepNVmMB1maKbzAtymHaxlpuHoKHfTY7Oh5OBF+HptooqAKv3ydIA/GG8n9rRs1iHVHEXbT4ibXUdyiqtXeFVQrnNPQdENELFZh9j9gmTZKUtKGUFq72nAOgRn896Ic2UW+6TsoJKEiNo5S8p+QfZ0ERC66cH0wbOzewl1tIoqmqnK10F75rzgZJHYCZ8kxA5S+wUxtECWLcuSMU1U5UpQy8uhLLtzDniBtQjTHa0s8xOtb4igkN2yLFNMEQmfESZExvYTSZv2Se0LMmF2a8aMFf/Fcdgfroev71T0/7HIdjLJZUjc4kcSAXQtoy6d/kCsz3Aa21iba7DeT2KlZBy7Xyf1gIcFv3Wx0AyYTCFoQlsXJ7RChv6iJ+YDAd4zl2Df+mBkuwKZph2fSPRAh4SXKJWM2rrmCwnBETsc25vgNXcgOH5NDvC7Es5xkj3CZL5tY0+qlZIE+EQImI8kZAr4xAhgOOYBZA/xSY0PiOKYDZmeJxCI8w0kjzgkeqI23XJXg9lDzxaaHKFH/nWSF80eZSjO5Mh2lKFsZ8rTN7xsnmvDEcxuQ2+W6wuyx9kKy8I4zlaAiBpkD3ROHwEcIozIHmmeHgIYRBTTRBiR+hNYL9NBQpecBzZnNAEcMpbRIWwd/ZN09GSnE0UzgAHS4eS8JyAKIQbGq1iC7xjE7GpES/iVKYDPGwJuF1FmIcgScFvL/wF1Sa+givPozQAAAABJRU5ErkJggg==",rH="data:image/svg+xml,%3csvg id='medication' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23f7931d' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.65 145.63%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M175.55%2c105.22c3.91%2c4.42 7.55%2c8.5 10.46%2c11.75c1.46%2c1.62 2.74%2c3.04 3.79%2c4.18c1.06%2c1.14 1.87%2c2.01 2.48%2c2.62c4.76%2c4.78 7.69%2c11.31 7.69%2c18.58l0%2c74.84c-0%2c7.28 -2.93%2c13.81 -7.69%2c18.58c-4.77%2c4.76 -11.3%2c7.68 -18.57%2c7.68l-26.32%2c0l-26.31%2c0c-7.26%2c0 -13.8%2c-2.92 -18.57%2c-7.68c-4.76%2c-4.77 -7.69%2c-11.31 -7.69%2c-18.58l0%2c-57.96l0%2c-16.89c0%2c-7.27 2.93%2c-13.8 7.69%2c-18.58c0.61%2c-0.61 1.41%2c-1.48 2.47%2c-2.62c3.9%2c-4.24 11.04%2c-12.28 18.57%2c-20.81l47.67%2c0c1.45%2c1.65 2.9%2c3.29 4.31%2c4.88M101.32%2c110.24c-1.44%2c1.61 -2.7%2c3 -3.72%2c4.09c-1%2c1.11 -1.79%2c1.92 -2.19%2c2.33c-6.56%2c6.56 -10.63%2c15.67 -10.63%2c25.69l0%2c74.84c-0.01%2c10.02 4.07%2c19.13 10.63%2c25.68c6.57%2c6.57 15.67%2c10.65 25.68%2c10.64l52.63%2c0c10.02%2c0.01 19.12%2c-4.07 25.67%2c-10.64c6.56%2c-6.56 10.64%2c-15.66 10.64%2c-25.68l0%2c-57.96l0%2c-16.89c0%2c-10.02 -4.07%2c-19.13 -10.64%2c-25.69c-0.39%2c-0.4 -1.17%2c-1.22 -2.19%2c-2.33c-4.34%2c-4.72 -13.04%2c-14.53 -21.7%2c-24.37l0%2c-1.02l-0.02%2c0l0%2c-21.82l8.16%2c0c8.98%2c0 16.27%2c-8.34 16.27%2c-18.64c-0.02%2c-10.27 -7.3%2c-18.61 -16.28%2c-18.63l-72.33%2c0.03c-9%2c-0.02 -16.28%2c8.32 -16.28%2c18.61c0%2c10.3 7.28%2c18.64 16.27%2c18.64l8.13%2c0l0.02%2c22.72c-2.6%2c2.95 -5.21%2c5.91 -7.7%2c8.72c-3.9%2c4.4 -7.52%2c8.47 -10.41%2c11.68'/%3e %3cpath fill='white' d='M172.37%2c181.84l0%2c4.59c0%2c2.11 -1.48%2c3.82 -3.3%2c3.82l-15.03%2c0l0%2c15.03c0%2c1.82 -1.71%2c3.3 -3.82%2c3.3l-6.75%2c0c-2.11%2c0 -3.81%2c-1.48 -3.81%2c-3.3l0%2c-15.03l-15.04%2c0c-1.82%2c0 -3.3%2c-1.71 -3.3%2c-3.82l0%2c-0.78l0%2c-3.81l0%2c-2.16c0%2c-2.1 1.48%2c-3.81 3.3%2c-3.81l15.04%2c0l0%2c-15.04c0%2c-1.82 1.71%2c-3.29 3.81%2c-3.29l6.75%2c0c2.11%2c0 3.82%2c1.48 3.82%2c3.29l0%2c15.04l15.03%2c0c1.83%2c0 3.3%2c1.71 3.3%2c3.81l0%2c2.16ZM107.23%2c219.96l79.8%2c0l0%2c-76.54l-79.8%2c0l0%2c76.54Z'/%3e%3c/svg%3e",iH="data:image/svg+xml,%3csvg id='report' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 288'%3e %3cpath id='background' fill='%23474c54' d='M143.81%2c0c-79.42%2c0 -143.81%2c64.38 -143.81%2c143.81c0%2c79.44 64.38%2c143.82 143.81%2c143.82c79.42%2c0 143.81%2c-64.39 143.81%2c-143.82c-0%2c-79.43 -64.39%2c-143.81 -143.81%2c-143.81'/%3e %3cpath fill='white' d='M188.88%2c81.07l-90.14%2c0c-2.38%2c0 -4.31%2c1.72 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.12 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M188.88%2c98.89l-90.14%2c0c-2.38%2c0 -4.31%2c1.71 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.13 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M145.74%2c124.36c2.38%2c0 4.31%2c-1.72 4.31%2c-3.83c0%2c-2.12 -1.93%2c-3.84 -4.31%2c-3.84l-47%2c0c-2.38%2c0 -4.3%2c1.72 -4.3%2c3.84c0%2c2.11 1.92%2c3.83 4.3%2c3.83l47%2c0Z'/%3e %3cpath fill='white' d='M208.06%2c221.83c0%2c2.31 -1.87%2c4.17 -4.17%2c4.17l-120.15%2c0c-2.3%2c0 -4.18%2c-1.87 -4.18%2c-4.17l0%2c-156.02c0%2c-2.3 1.88%2c-4.18 4.18%2c-4.18l120.15%2c0c2.3%2c0 4.17%2c1.88 4.17%2c4.18l0%2c156.02ZM203.88%2c53.02l-120.15%2c0c-7.06%2c0 -12.78%2c5.72 -12.78%2c12.78l0%2c156.02c0%2c7.06 5.72%2c12.78 12.78%2c12.78l120.15%2c0c7.06%2c0 12.78%2c-5.72 12.78%2c-12.78l0%2c-156.02c0%2c-7.06 -5.72%2c-12.78 -12.78%2c-12.78'/%3e %3cpath fill='white' d='M122.75%2c167.37h17.9v41.86h-17.9z'/%3e %3cpath fill='white' d='M99.65%2c186.32h17.9v22.91h-17.9z'/%3e %3cpath fill='white' d='M145.86%2c176.39h17.91v32.84h-17.91z'/%3e %3cpath fill='white' d='M168.98%2c162.08h17.9v47.15h-17.9z'/%3e %3cpath fill='white' d='M154.28%2c160.54l-23.11%2c-19.05l-33.7%2c32.35l4.22%2c4.41l29.79%2c-28.61l23.11%2c19.05l32.94%2c-31.59l-4.22%2c-4.4l-29.03%2c27.84Z'/%3e%3c/svg%3e",oH="data:image/svg+xml,%3csvg id='problem' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23a154a1' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.43 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M255.86%2c145.51l-59.15%2c0l0%2c-59.17l-50.28%2c0l0%2c59.17l-59.17%2c0l0%2c50.29l59.17%2c0l0%2c59.15l50.28%2c0l0%2c-59.15l59.15%2c0l0%2c-50.29Z'/%3e %3cpath fill='white' d='M106.17%2c21.07l-18.11%2c31.87l-35.37%2c-11.72l9.19%2c36.12l-33.17%2c15.85l32.18%2c18.93l-12.74%2c36.64l29.72%2c-12.86l-19.5%2c3.14l11.51%2c-30.58l-24.34%2c-14.36l25.12%2c-13.03l-7.39%2c-29.37l28.85%2c9.79l13.73%2c-25.71l13.06%2c27.38l31.18%2c-9.73l-4.48%2c20.11l14.34%2c-29.12l-36.92%2c9.79l-16.86%2c-33.16Z'/%3e %3cpath fill='white' d='M95.58%2c69.15l3.06%2c40.67l12.94%2c0l3.07%2c-40.67l-19.07%2c0Z'/%3e %3cpath fill='white' d='M105.11%2c114.84c-4.38%2c0 -7.93%2c3.55 -7.93%2c7.93c0%2c4.38 3.55%2c7.93 7.93%2c7.93c4.37%2c0 7.92%2c-3.55 7.92%2c-7.93c0%2c-4.38 -3.55%2c-7.93 -7.92%2c-7.93'/%3e%3c/svg%3e",aH="data:image/svg+xml,%3csvg id='procedure' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%234eb848' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M178.18%2c61.38c12.86%2c-12.86 33.78%2c-12.86 46.63%2c0l4.26%2c4.26c12.86%2c12.86 12.86%2c33.78 0%2c46.64l-18.45%2c18.45l7.24%2c7.24l0.01%2c0l18.44%2c-18.44c16.84%2c-16.84 16.84%2c-44.26 0%2c-61.11l-4.26%2c-4.26c-16.85%2c-16.86 -44.26%2c-16.86 -61.1%2c0l-18.44%2c18.44l7.23%2c7.23l18.44%2c-18.44Z'/%3e %3cpath fill='white' d='M130.79%2c210.57l-18.44%2c18.44c-12.86%2c12.86 -33.78%2c12.86 -46.64%2c0l-4.26%2c-4.26c-12.86%2c-12.86 -12.86%2c-33.78 0%2c-46.64l18.45%2c-18.44l-7.24%2c-7.23l-18.44%2c18.45c-16.86%2c16.85 -16.86%2c44.26 0%2c61.11l4.26%2c4.26c16.85%2c16.85 44.26%2c16.85 61.1%2c0.01l18.44%2c-18.44l-0.01%2c-0.01l-7.23%2c-7.23Z'/%3e %3cpath fill='white' d='M229.08%2c224.75l-4.26%2c4.27c-12.86%2c12.86 -33.78%2c12.86 -46.63%2c0l-25.67%2c-25.68l50.9%2c-50.91l25.67%2c25.68c12.86%2c12.87 12.86%2c33.78 0%2c46.64M87.14%2c137.96l-25.68%2c-25.68c-12.85%2c-12.86 -12.85%2c-33.78 0%2c-46.64l4.26%2c-4.26c12.87%2c-12.86 33.78%2c-12.86 46.64%2c0l25.68%2c25.67l-50.9%2c50.91ZM236.31%2c170.88l-25.68%2c-25.69l-65.36%2c-65.36l-25.68%2c-25.67c-16.84%2c-16.85 -44.25%2c-16.85 -61.1%2c0l-4.26%2c4.26c-16.86%2c16.85 -16.86%2c44.27 0%2c61.11l25.67%2c25.67l65.36%2c65.38l25.67%2c25.68c16.84%2c16.85 44.26%2c16.85 61.11%2c-0.01l4.26%2c-4.26c16.85%2c-16.85 16.85%2c-44.26 0%2c-61.11'/%3e %3cpath fill='white' d='M121.51%2c93.92c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.81%2c0c-1.88%2c1.88 -1.88%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.81%2c0'/%3e %3cpath fill='white' d='M87.18%2c59.58c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M87.18%2c114.62c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M59.66%2c87.11c-1.89%2c1.88 -1.89%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M93.94%2c93.99c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0'/%3e %3cpath fill='white' d='M230.88%2c196.47c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.89%2c-4.94 0%2c-6.82'/%3e %3cpath fill='white' d='M196.53%2c168.94c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.89 4.93%2c1.89 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M196.53%2c224c-1.88%2c1.88 -1.88%2c4.93 0%2c6.81c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.81c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0'/%3e %3cpath fill='white' d='M169.01%2c196.47c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.89%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M203.29%2c203.35c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0c-1.88%2c1.87 -1.88%2c4.93 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0'/%3e%3c/svg%3e",cH="data:image/svg+xml,%3csvg viewBox='0 0 292 292' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='immunizations'%3e %3cpath d='M145.63%2c-2.84217094e-14 C65.2%2c-2.84217094e-14 0%2c65.2 0%2c145.63 C0%2c226.07 65.2%2c291.28 145.63%2c291.28 C226.06%2c291.28 291.26%2c226.07 291.26%2c145.63 C291.26%2c65.2 226.06%2c-2.84217094e-14 145.63%2c-2.84217094e-14' id='background' fill='%233054A5' fill-rule='nonzero'%3e%3c/path%3e %3cpath d='M197.11978%2c37.7935761 L197.381623%2c38.0096942 L243.102486%2c76.374054 C247.799291%2c80.3151412 248.02423%2c84.81633 243.777303%2c89.8776203 C239.603599%2c94.851647 235.247384%2c95.4369604 230.708659%2c91.6335605 L230.46961%2c91.4293291 L214.684717%2c110.241032 L237.313265%2c129.228639 C245.330865%2c135.956204 236.000124%2c147.238973 227.954658%2c140.870269 L227.711269%2c140.671852 L212.127928%2c127.595877 L123.611055%2c233.086178 C119.468352%2c238.023259 114.964724%2c238.522176 110.100172%2c234.582929 L109.848235%2c234.375217 L94.5566334%2c221.544039 L68.9882949%2c252.015199 L67.2926598%2c224.960953 L80.2399786%2c209.53094 L64.5148376%2c196.33598 C59.3405626%2c191.994247 58.7477203%2c187.359104 62.7363106%2c182.430551 L62.9430687%2c182.179694 L151.459942%2c76.6893919 C146.435251%2c72.4731754 141.379204%2c68.3109956 136.2918%2c64.2028525 C128.737006%2c58.10226 138.305031%2c46.5484907 145.786436%2c52.4344647 L146.012487%2c52.6181893 L168.963853%2c71.8766726 L184.748747%2c53.0649694 C179.431643%2c48.749482 178.896554%2c44.0610931 183.143481%2c38.9998028 C187.319626%2c34.0228673 191.978392%2c33.6207917 197.11978%2c37.7935761 Z M159.361857%2c83.3198861 L70.7832683%2c188.883738 L116.504132%2c227.248097 L138.334785%2c201.231338 L124.560663%2c189.673477 C116.651559%2c183.03695 125.814437%2c171.956435 133.750199%2c178.239948 L133.990282%2c178.435695 L147.764404%2c189.993556 L157.167266%2c178.787661 L150.889924%2c173.520346 C143.571138%2c167.379155 153.092938%2c155.456529 160.665086%2c161.412069 L160.893929%2c161.598036 L167.171271%2c166.865352 L176.262824%2c156.030462 L162.488702%2c144.472601 C155.169916%2c138.33141 164.788317%2c126.720013 172.154559%2c132.507379 L172.377069%2c132.688103 L186.151191%2c144.245964 L205.082721%2c121.684246 L159.361857%2c83.3198861 Z M192.439376%2c59.4084639 L176.482316%2c78.3769286 L206.864349%2c103.805572 L222.821409%2c84.8371072 L192.439376%2c59.4084639 Z' id='Syringe' fill='white'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e";function sH(t){var n=s(),r=n[0],i=n[1];function o(){if("NoData"!=t.previewState){if("Default"!=t.previewState){var e=new URLSearchParams({View:t.concept}).toString();return b.invokeCustomApi("HealthAndWellnessApi.PatientEventsPreview","GET",e,!0).then((function(e){i(e)}))}i(function(e){switch(e){case"Medications":return{PreviewValues:["atorvastatin 10 MG Oral Tablet","Metformin hydrochloride 500 MG Oral Tablet","atorvastatin 40 MG Oral Tablet"],Count:67};case"Conditions":return{PreviewValues:["Hypertension","Hyperlipidemia","Diabetes"],Count:12};case"Allergies":return{PreviewValues:["Penicillin","Dust","Pollen"],Count:3};case"Immunizations":return{PreviewValues:["Influenza virus vaccine","Tetanus and diphtheria toxoids - preservative free","Pneumococcal conjugate vaccine"],Count:3};case"Reports":return{PreviewValues:["Diagnostic X-Ray","Operative Note"],Count:3};case"Procedures":return{PreviewValues:["INJ TENDON SHEATH/LIGAMENT","DRAIN/INJ JOINT/BURSA W/US","INJ FOR TENDON ORIGIN/INSRT"],Count:3}}}(t.concept))}else i({PreviewValues:[],Count:0})}return l((function(){return o(),b.on("externalAccountSyncComplete",o),b.on("applicationDidBecomeVisible",o),function(){b.off("externalAccountSyncComplete",o),b.off("applicationDidBecomeVisible",o)}}),[t.concept]),r?r.PreviewValues.length?e.createElement(j,{indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,className:"mdhui-health-preview-section",title:function(){switch(t.concept){case"Medications":return br["medications-title"];case"Immunizations":return br["immunizations-title"];case"Reports":return br["reports-title"];case"Allergies":return br["allergies-title"];case"Conditions":return br["conditions-title"];case"Procedures":return br["procedures-title"]}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return rH;case"Immunizations":return cH;case"Reports":return iH;case"Allergies":return nH;case"Conditions":return oH;case"Procedures":return aH}}()}),onClick:function(){return t.onClick()}},e.createElement("div",null,r.PreviewValues.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))):null:e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null))}_(".mdhui-health-preview-section .mdhui-health-preview-icon {\n width: 15px;\n height: 15px;\n margin-right: 8px;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 2px;\n margin-top: 2px;\n font-size: .82em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item:first-child {\n margin-top: 4px;\n}");_(".mdhui-lab-results-summary {\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n}\n\n.mdhui-lab-results-summary .mdhui-hw-section-header .mdhui-hw-section-header-icon {\n position: absolute;\n left: 0;\n top: 0;\n width: 15px;\n}\n\n.mdhui-lab-results-summary .mdhui-important-labs {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-hw-section-indicator {\n position: absolute;\n right: 16px;\n top: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-lab-results-values-container {\n margin-left: -16px;\n margin-right: -16px;\n overflow-y: hidden;\n margin-bottom: -16px;\n width: calc(100% + 32px);\n}\n\n.mdhui-lab-results-values-container.no-overflow {\n overflow-x: hidden;\n}\n\n.mdhui-lab-results-values-slider {\n padding-left: 8px;\n width: 10000px;\n}\n\n.mdhui-lab-results-values-column {\n width: 13em;\n min-width: 160px;\n border-right: solid 1px var(--mdhui-border-color-0);\n float: left;\n}\n\n.mdhui-lab-results-values-column:last-child {\n border: none;\n}");var lH="data:image/svg+xml,%3csvg id='labreport' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%230e90c0' d='M145.6%2c0c-80.41%2c0 -145.6%2c65.2 -145.6%2c145.63c0%2c80.44 65.2%2c145.65 145.6%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M117.4%2c168.37c0%2c-5.12 4.16%2c-9.25 9.26%2c-9.25c5.12%2c0 9.26%2c4.14 9.26%2c9.25c0%2c5.13 -4.14%2c9.28 -9.26%2c9.28c-5.11%2c0 -9.26%2c-4.15 -9.26%2c-9.28M125.4%2c118.36l9.09%2c-15.75l0%2c-28.86l29.31%2c0l0%2c28.86l9.08%2c15.75c4.56%2c7.87 10.48%2c18.16 16.48%2c28.53l-80.42%2c0c5.99%2c-10.37 11.93%2c-20.66 16.46%2c-28.53M174.14%2c99.85l0%2c-26.09l0.28%2c0c10.95%2c0 19.83%2c-7.91 19.83%2c-17.67c0%2c-9.76 -8.88%2c-17.67 -19.83%2c-17.67l-54%2c0c-10.95%2c0 -19.83%2c7.91 -19.83%2c17.67c0%2c9.76 8.87%2c17.67 19.83%2c17.67l3.74%2c0l0%2c26.09l-7.71%2c13.34c-9.48%2c16.43 -25%2c43.31 -34.48%2c59.74l-10.98%2c19.02c-3.1%2c5.37 -4.74%2c10.73 -4.74%2c15.86c0%2c3.14 0.63%2c6.18 1.92%2c8.93c1.92%2c4.13 5.31%2c7.46 9.54%2c9.61c4.24%2c2.17 9.31%2c3.22 15%2c3.23l112.89%2c0c7.58%2c-0.01 14.1%2c-1.9 18.93%2c-5.76c2.4%2c-1.93 4.33%2c-4.34 5.61%2c-7.08c1.28%2c-2.75 1.93%2c-5.79 1.92%2c-8.93c0%2c-5.13 -1.64%2c-10.49 -4.74%2c-15.86l-10.99%2c-19.02c-9.47%2c-16.42 -24.99%2c-43.3 -34.47%2c-59.74l-7.7%2c-13.34Z'/%3e%3c/svg%3e";_(".mdhui-lab-result-with-sparkline {\n padding: 8px;\n padding-top: 16px;\n height: 5.64em;\n box-sizing: border-box;\n position: relative;\n}\n\n.mdhui-lab-result-with-sparkline:first-child {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-title {\n text-transform: uppercase;\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n width: calc(100% - 16px);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-flex {\n display: flex;\n gap: 8px;\n flex-direction: row;\n justify-content: space-between;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-value {\n padding-top: 8px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-quantity {\n font-size: 1.23em;\n font-weight: 700;\n max-width: 3.8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-date {\n font-size: .7em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-container {\n position: relative;\n padding: 8px;\n padding-right: 2em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline {\n width: 70px;\n height: 40px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline rect {\n opacity: .1;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-term-info {\n color: var(--mdhui-color-primary);\n font-size: 24px;\n opacity: .8;\n position: absolute;\n right: 0;\n top: calc(50% - 15px);\n cursor: pointer;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity {\n display: inline-block;\n border-radius: 2px;\n font-size: 0.7em;\n color: #FFF;\n padding-left: 2px;\n padding-right: 2px;\n height: 18px;\n vertical-align: middle;\n line-height: 1.3em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-high {\n background-color: var(--mdhui-color-danger);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-low {\n background-color: var(--mdhui-color-primary);\n}");var uH={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};function fH(t){var n=s(0),r=n[0],i=n[1],o=s(0),c=o[0],u=o[1],f=a(null);return l((function(){var e,t;i((null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0),u((null===(t=f.current)||void 0===t?void 0:t.getBoundingClientRect().height)||0)})),e.createElement("div",{className:"mdhui-lab-result-with-sparkline"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-title"},t.labResultValue.Type),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-flex"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-value"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-quantity"},e.createElement("span",{style:{verticalAlign:"middle"}},t.labResultValue.MostRecentValue)," ","High"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-high"},"H"),"Low"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-low"},"L")),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-date"},nt(pt(t.labResultValue.MostRecentDate),"MM/dd/yy"))),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-container"},!!t.labResultValue.SparklinePoints.length&&e.createElement("svg",{ref:f,className:"mdhui-lab-result-with-sparkline-sparkline"},t.labResultValue.NormalRangeTopY&&e.createElement("rect",{x:"0",y:"0",width:r,height:t.labResultValue.NormalRangeTopY*c,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*c,width:r,height:t.labResultValue.NormalRangeBottomY*c,fill:"var(--mdhui-color-primary)"}),t.labResultValue.SparklinePoints.slice(0,t.labResultValue.SparklinePoints.length-1).map((function(n,i){return e.createElement("line",{key:i,x1:n.X*r,y1:n.Y*c,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*c,style:{stroke:"var(--mdhui-border-color-2)",strokeWidth:2}})})),e.createElement("circle",{cx:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].X*r,cy:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].Y*c,r:"3",fill:"var(--mdhui-color-primary)"})),!!t.labResultValue.TermInformation&&e.createElement("div",{className:"mdhui-lab-result-with-sparkline-term-info",onClick:function(e){return function(e,n){e.preventDefault(),e.stopPropagation(),t.onViewTermInfo(n)}(e,t.labResultValue.TermInformation)}},e.createElement(P,{icon:uH})))))}var pH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},dH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[[{Type:"WBC count",MostRecentValue:"16.6",MostRecentDate:"2021-03-03T23:32:00-05:00",AcuityHighlight:"High",SparklinePoints:[],NormalRangeTopY:null,NormalRangeBottomY:null,TermInformation:{TermNamespace:"LOINC",TermCode:"6690-2",TermFamily:"Reference"}},{Type:"HDL",MostRecentValue:"45.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.7777777777777778},{X:.2660160174679657,Y:.08333333333333337},{X:.3912703143726733,Y:.8935185185185185},{X:.4542408824767116,Y:.8587962962962963}],NormalRangeTopY:null,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2085-9",TermFamily:"Reference"}}],[{Type:"Cholesterol",MostRecentValue:"135.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.39583333333333337},{X:.3912703143726733,Y:.39583333333333337},{X:.4542408824767116,Y:.35416666666666663}],NormalRangeTopY:.08333333333333337,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2093-3",TermFamily:"Reference"}},{Type:"LDL",MostRecentValue:"152.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"High",SparklinePoints:[{X:.2660136408613797,Y:.08333333333333337},{X:.3912703143726733,Y:.16935483870967738},{X:.4542408824767116,Y:.09946236559139787}],NormalRangeTopY:.217741935483871,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"13457-7",TermFamily:"Reference"}}],[{Type:"Glucose",MostRecentValue:"67",MostRecentDate:"2020-04-22T16:27:00+00:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.24160208865208618,Y:.9166666666666667}],NormalRangeTopY:.08333333333333348,NormalRangeBottomY:.7670940170940171,TermInformation:{TermNamespace:"LOINC",TermCode:"2345-7",TermFamily:"Reference"}}]]};function hH(t){var n,r,i,o=s(null),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1];function d(){if("ImportantLabs"!=t.previewState)if("RecentLabs"!=t.previewState){if("NoData"!=t.previewState){return b.invokeCustomApi("HealthAndWellnessApi.LabResults","GET","",!0).then((function(e){c(e)}))}c({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else c(pH);else c(dH)}l((function(){return h()>0&&p(!0),d(),b.on("externalAccountSyncComplete",d),b.on("applicationDidBecomeVisible",d),function(){b.off("externalAccountSyncComplete",d),b.off("applicationDidBecomeVisible",d)}}),[]);var h=function(){var e,t=h.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=h.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t};if(!a)return e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null));if(a&&!a.ImportantLabs.length&&!(null===(n=a.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement(j,{bottomBorder:!0,title:br["lab-results-title"],titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:lH,alt:"Lab Results"}),onClick:function(){a&&t.onClick()},indicatorValue:null===(r=null==a?void 0:a.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=a.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0,className:"mdhui-lab-results-summary mdhui-health-preview-section"},!a&&e.createElement(I,null),a&&e.createElement(e.Fragment,null,!!a.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*a.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*a.ImportantLabs.length+.5+"em"}},a.ImportantLabs.map((function(n,r){return e.createElement("div",{key:r,className:"mdhui-lab-results-values-column"},n.map((function(n,r){return e.createElement(fH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!a.ImportantLabs.length&&e.createElement("div",null,a.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))))}_(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var mH={id:"1",identifier:"SurveyReminder",sentDate:"2022-03-10T13:37:41.16+00:00",statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:0};function vH(t){var n=s(null),r=n[0],i=n[1];function o(){if("Default"!=t.previewState){var e={limit:1,statusCode:"Succeeded"};if(t.hideAfterHours){var n=Y(new Date,{hours:-1*t.hideAfterHours});e.sentAfter=n.toISOString()}t.notificationType&&(e.type=t.notificationType),b.queryNotifications(e).then((function(e){e.notifications.length&&i(e.notifications[0])}))}else i(mH)}return l((function(){return o(),b.on("applicationDidBecomeVisible",o),function(){b.off("applicationDidBecomeVisible",o)}}),[]),r?e.createElement("div",{className:"mdhui-most-recent-notification"},e.createElement(Or,{notification:r}),t.onViewMore&&e.createElement(j,{subtitle:br["all-notifications"],onClick:t.onViewMore})):null}var yH=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:Y(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1}];function gH(t){var n=a(null);return Nq((function(){n.current&&function(e){var t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)}(n.current)&&t.onTrigger()}),t.enabled?1e3:null),e.createElement("div",null,t.enabled&&e.createElement("div",{style:{height:"0px"},ref:n}))}function bH(t){var n=s(!1),r=n[0],i=n[1],o=s(void 0),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1],d=s([]),h=d[0],m=d[1];function v(){if("Default"==t.previewState&&m(yH),t.previewState)return i(!1),void p(!0);if(!r&&!f){i(!0);var e={statusCode:"Succeeded",limit:10};t.notificationType&&(e.type=t.notificationType),a&&(e.pageID=a),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),c(e.nextPageID)}))}}return l((function(){v();var e=function(){m([]),c(void 0),p(!1),v()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Pt,{key:t.id.toString()},e.createElement(Or,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Pt,null,e.createElement(Dr,null,br["no-notifications-received"])),e.createElement(gH,{onTrigger:v,enabled:!r&&!f}))}function xH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==a?void 0:a.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==a?void 0:a.organization.logoUrl)),e.createElement("div",{className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&a&&e.createElement("div",null,e.createElement("div",{style:{backgroundImage:"url('"+f+"')"},className:"logo"}),e.createElement("div",{className:"project-info"},e.createElement("div",{className:"project-name",style:{color:a.organization.color}},a.name),e.createElement("div",{className:"organization-name"},a.organization.name))))}_(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n line-height: normal;\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");_(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var wH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="envelope",n=[128386,9993,61443],r="f0e0",i="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faEnvelope=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(wH);var _H={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="globe",n=[127760],r="f0ac",i="M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faGlobe=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(_H);var kH={};function SH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!a||a.supportEmail||a.supportPhone||a.learnMoreLink&&a.learnMoreTitle?e.createElement("div",{className:"mdhui-project-support"},e.createElement("div",{className:"title"},br.support),r&&e.createElement(I,null),(null==a?void 0:a.learnMoreLink)&&(null==a?void 0:a.learnMoreTitle)&&e.createElement(j,{indicatorIcon:_H.faGlobe,subtitle:a.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(a.learnMoreLink)}}),(null==a?void 0:a.supportEmail)&&e.createElement(j,{indicatorIcon:wH.faEnvelope,subtitle:a.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+a.supportEmail)}}),(null==a?void 0:a.supportPhone)&&e.createElement(j,{indicatorIcon:kH.faPhone,subtitle:a.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+a.supportPhone)}})):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="phone",n=[128222,128379],r="f095",i="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faPhone=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(kH);var EH={},OH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="magnifying-glass",n=[128269,"search"],r="f002",i="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faMagnifyingGlass=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(OH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=OH;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faSearch=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(EH);_(".mdhui-provider-search .title {\n font-weight: bold;\n padding: 16px;\n}\n\n.mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n position: relative;\n padding-right: 96px;\n cursor: pointer;\n font-size: .88em;\n line-height: 1.25em;\n width: 100%;\n}\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 37px;\n width: 64px;\n position: absolute;\n right: 16px;\n top: 8px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color:#FFF;\n border-radius: 4px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}");var AH=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo"},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo"},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo"},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo"},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo"},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo"}],CH=0;function TH(t){var n=s({}),r=n[0],i=n[1],o=s([]),c=o[0],u=o[1],f=s(!0),p=f[0],d=f[1],h=s(""),m=h[0],v=h[1],g=s(0),x=g[0],w=g[1],_=s(0),S=_[0],E=_[1],O=a(m),A=100;function C(){return Rt(this,void 0,void 0,(function(){return Lt(this,(function(e){return b.getExternalAccounts().then((function(e){for(var t={},n=0;n<e.length;n++)t[e[n].provider.id]=e[n];i(t)})),[2]}))}))}function T(e){d(!0);var t=++CH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==CH&&(j(e.externalAccountProviders),E(e.totalExternalAccountProviders),d(!1))}))}function j(e){u(c.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var D=y((function(){return e=T,void 0===(t=300)&&(t=300),function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){return e.apply(r,i)}),t)};var e,t,n}),[]);function M(e){var n;n=e.target.value,O.current=n,v(n),u([]),w(0),t.previewState||D(e.target.value)}function N(){C().then((function(){T(O.current)}))}return l((function(){return function(){if("Default"==t.previewState)return j(AH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),l((function(){p||T(O.current)}),[x]),e.createElement("div",{className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:br.search,type:"text",value:m,onChange:function(e){return M(e)},placeholder:br.search,spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:EH.faSearch}))),e.createElement("div",{className:"search-results"},c&&c.map((function(t){return e.createElement(k,{key:t.id,className:"provider",onClick:function(){return e=t.id,void(r[e]&&"unauthorized"!=r[e].status||b.connectExternalAccount(e));var e}},t.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+t.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},t.name),r[t.id]&&"unauthorized"==r[t.id].status&&e.createElement("div",{className:"provider-status error-status"},br.reconnect),r[t.id]&&"unauthorized"!=r[t.id].status&&e.createElement("div",{className:"provider-status connected-status"},br.connected)))})),p&&e.createElement(I,null)),e.createElement(gH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}_(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var PH=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!0,dueDate:Y(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],jH=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-1}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-2}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function DH(t){var n,r,i=s(!0),o=i[0],a=i[1],c=s(null),u=c[0],f=c[1];function p(t){return e.createElement(Cr,{key:t.id.toString(),task:t,disableClick:o})}function d(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status,surveyName:t.surveys};return r&&(i.pageID=r),b.querySurveyTasks(i).then((function(r){e=e.concat(r.surveyTasks),r.nextPageID?n(r.nextPageID):("incomplete"==t.status&&e.sort((function(e,t){return pt(e.dueDate)>pt(t.dueDate)?1:pt(e.dueDate)<pt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?pt(e.endDate)>pt(t.endDate)?-1:pt(e.endDate)<pt(t.endDate)?1:0:0})),f(e),a(!1))}))},n(null)}else f(jH);else f(PH)}if(l((function(){return d(),b.on("applicationDidBecomeVisible",d),function(){b.off("applicationDidBecomeVisible",d)}}),[]),"complete"==t.status&&!(null==u?void 0:u.length))return null;var h=null!==(n=t.variant)&&void 0!==n?n:"noCard";return e.createElement(MH,{card:"singleCard"==h},e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(jt,{title:t.title,detailLinkText:t.onDetailLinkClick?br["view-all"]+" ("+(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),o&&!u&&e.createElement(I,null),!(null==u?void 0:u.length)&&!o&&e.createElement("div",{className:"empty-message"},br["all-tasks-complete"]),null==u?void 0:u.slice(0,t.limit).map((function(t){return"multiCard"==h?e.createElement(Pt,null,p(t)):p(t)}))))}function MH(t){return t.card?e.createElement(Pt,null,t.children):e.createElement(e.Fragment,null,t.children)}function NH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto",primaryColor:t.primaryColor},(t.showBackButton||t.showCloseButton)&&e.createElement(xr,{title:t.title,showBackButton:t.showBackButton,showCloseButton:t.showCloseButton,subtitle:t.subtitle}),!(t.showBackButton||t.showCloseButton)&&e.createElement(e.Fragment,null,e.createElement(jr,null),e.createElement(Nr,{title:t.title,subtitle:t.subtitle})),t.children)}function IH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["connect-ehr-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["connect-ehr-title-divider"]),r+=br["connect-ehr-title-health-plans"]),r=br["connect-ehr-title-prefix"]+r,e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(Dr,null,br["ehr-intro"]),e.createElement(Pt,null,e.createElement(zq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Pt,null,e.createElement(TH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function RH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,null),e.createElement(Rr,{platforms:["Android"]},e.createElement(Pt,null,e.createElement(j,{title:"Google Fit",subtitle:br["google-fit-share"],onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Pt,null,e.createElement(Xr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Zq,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,null,e.createElement(Zr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(eH,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,{allowOverflow:!0},e.createElement(jq,{previewState:t.preview?"Default":void 0})))}function LH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-devices"]),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(Mq,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function zH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,null),e.createElement(Pt,null,e.createElement(Xr,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(Zq,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Jq,{previewState:t.chartsPreview})))}function FH(t){return e.createElement(dr,null,e.createElement(jr,{color:"var(--main-bg-color)"}),e.createElement(Pt,null,e.createElement(Zr,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(eH,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(tH,{previewState:t.chartsPreview})))}function BH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,{color:"#FFFFFF"}),e.createElement(xH,{previewState:t.preview?"Default":void 0}),e.createElement(Vr,{previewDevicePlatform:t.preview?"Web":void 0,previewProjectPlatforms:t.preview?["Web","Android","iOS"]:void 0}),e.createElement(Pt,null,e.createElement(vH,{notificationType:r,onViewMore:t.notificationsViewUrl?function(){t.notificationsViewUrl&&b.openApplication(t.notificationsViewUrl)}:void 0,previewState:t.preview?"Default":void 0,hideAfterHours:t.notificationHideAfterHours})),e.createElement(DH,{variant:"singleCard",status:"incomplete",limit:3,title:br.tasks,onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,hideDueDate:t.hideTaskDueDate,previewState:t.preview?"IncompleteTasks":void 0}),e.createElement(Pt,null,e.createElement(Xr,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Zr,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,t.ehrConnectApplicationUrl&&e.createElement(Gr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Pt,null,e.createElement(SH,{previewState:t.preview?"Default":void 0})))}function qH(t){var n,r;function i(){b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function o(e){var t=new URLSearchParams({termFamily:e.TermFamily,termNamespace:e.TermNamespace,termCode:e.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+t,{modal:!0})}var a=null!==(n=t.variant)&&void 0!==n?n:"default";function c(n){var r=function(){return e.createElement(sH,{concept:n,onClick:function(){return function(e){b.openApplication("https://hw.careevolutionapps.com/"+e+".html")}(n)},previewState:"default"==t.previewState?"Default":void 0,indicatorPosition:"cardBased"==a?"topRight":"default"})};return"cardBased"==t.variant?e.createElement(Pt,null,r()):r()}return e.createElement(dr,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(jr,null),e.createElement(Rq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(wr,{noTopMargin:!0},e.createElement(hH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0}),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(zq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Pt,null,e.createElement(hH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0})),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pt,null,e.createElement(zq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Pt,null,e.createElement(Gr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function HH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.notifications,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(bH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function VH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.tasks,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),!t.hideIncompleteTasks&&e.createElement(DH,{variant:"multiCard",title:br["incomplete-tasks"],status:"incomplete",hideDueDate:t.hideDueDate,previewState:t.preview?"IncompleteTasks":void 0}),!t.hideCompleteTasks&&e.createElement(DH,{variant:"multiCard",title:br["completed-tasks"],status:"complete",hideDueDate:t.hideDueDate,previewState:t.preview?"CompleteTasks":void 0}))}var UH={},WH={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},GH=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$H={},YH={};function XH(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=XH.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=YH[e];if(r)return r;for(r=YH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))s+=e.slice(r,r+3),r+=2;else if(o<128)s+=c[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[r]);return s}XH.defaultChars=";/?:@&=+$,-_.!~*'()#",XH.componentChars="-_.!~*'()";var ZH=XH,KH={};function JH(e,t){var n;return"string"!=typeof t&&(t=JH.defaultChars),n=function(e){var t,n,r=KH[e];if(r)return r;for(r=KH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=i<<6&1984|63&o)<128?"��":String.fromCharCode(s),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(s=i<<12&61440|o<<6&4032|63&a)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&c))?((s=i<<18&1835008|o<<12&258048|a<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}JH.defaultChars=";/?:@&=+$,#",JH.componentChars="";var QH=JH;function eV(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var tV=/^([a-z0-9.+-]+:)/i,nV=/:[0-9]*$/,rV=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,iV=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),oV=["'"].concat(iV),aV=["%","/","?",";","#"].concat(oV),cV=["/","?","#"],sV=/^[+a-z0-9A-Z_-]{0,63}$/,lV=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,uV={javascript:!0,"javascript:":!0},fV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};eV.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=rV.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=tV.exec(c);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,c=c.substr(l.length)),(t||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===c.substr(0,2))||l&&uV[l]||(c=c.substr(2),this.slashes=!0)),!uV[l]&&(a||l&&!fV[l])){var u,f,p=-1;for(n=0;n<cV.length;n++)-1!==(o=c.indexOf(cV[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(f=-1===p?c.lastIndexOf("@"):c.lastIndexOf("@",p))&&(u=c.slice(0,f),c=c.slice(f+1),this.auth=u),p=-1,n=0;n<aV.length;n++)-1!==(o=c.indexOf(aV[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=c.length),":"===c[p-1]&&p--;var d=c.slice(0,p);c=c.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var v=m[n];if(v&&!v.match(sV)){for(var y="",g=0,b=v.length;g<b;g++)v.charCodeAt(g)>127?y+="x":y+=v[g];if(!y.match(sV)){var x=m.slice(0,n),w=m.slice(n+1),_=v.match(lV);_&&(x.push(_[1]),w.unshift(_[2])),w.length&&(c=w.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=c.indexOf("#");-1!==k&&(this.hash=c.substr(k),c=c.slice(0,k));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),fV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},eV.prototype.parseHost=function(e){var t=nV.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var pV=function(e,t){if(e&&e instanceof eV)return e;var n=new eV;return n.parse(e,t),n};$H.encode=ZH,$H.decode=QH,$H.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},$H.parse=pV;var dV,hV,mV,vV,yV,gV,bV,xV,wV,_V={};function kV(){return hV?dV:(hV=1,dV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function SV(){return vV?mV:(vV=1,mV=/[\0-\x1F\x7F-\x9F]/)}function EV(){return xV?bV:(xV=1,bV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function OV(){return wV||(wV=1,_V.Any=kV(),_V.Cc=SV(),_V.Cf=gV?yV:(gV=1,yV=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),_V.P=GH,_V.Z=EV()),_V}!function(e){var t=Object.prototype.hasOwnProperty;function n(e,n){return t.call(e,n)}function r(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=WH;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=GH;e.lib={},e.lib.mdurl=$H,e.lib.ucmicro=OV(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=n,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(o,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,o){return t||function(e,t){var o=0;return n(s,t)?s[t]:35===t.charCodeAt(0)&&c.test(t)&&r(o="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(o):e}(e,o)}))},e.isValidEntityCode=r,e.fromCodePoint=i,e.escapeHtml=function(e){return l.test(e)?e.replace(u,p):e},e.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return h.test(e)},e.escapeRE=function(e){return e.replace(d,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(UH);var AV={},CV=UH.unescapeAll,TV=UH.unescapeAll;AV.parseLinkLabel=function(e,t,n){var r,i,o,a,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(c=e.pos),e.pos=l,c},AV.parseLinkDestination=function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=CV(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=CV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},AV.parseLinkTitle=function(e,t,n){var r,i,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=o,c.str=TV(e.slice(a+1,t)),c.ok=!0,c;if(40===r&&41===i)return c;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return c};var PV=UH.assign,jV=UH.unescapeAll,DV=UH.escapeHtml,MV={};function NV(){this.rules=PV({},MV)}MV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+DV(e[t].content)+"</code>"},MV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+DV(e[t].content)+"</code></pre>\n"},MV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?jV(u.info).trim():"",p="",d="";return f&&(p=(c=f.split(/(\s+)/g))[0],d=c.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,d)||DV(u.content)).indexOf("<pre")?o+"\n":f?(a=u.attrIndex("class"),s=u.attrs?u.attrs.slice():[],a<0?s.push(["class",n.langPrefix+p]):(s[a]=s[a].slice(),s[a][1]+=" "+n.langPrefix+p),l={attrs:s},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},MV.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},MV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},MV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},MV.text=function(e,t){return DV(e[t].content)},MV.html_block=function(e,t){return e[t].content},MV.html_inline=function(e,t){return e[t].content},NV.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+DV(e.attrs[t][0])+'="'+DV(e.attrs[t][1])+'"';return r},NV.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},NV.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,c=e.length;a<c;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},NV.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},NV.prototype.render=function(e,t,n){var r,i,o,a="",c=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==c[o]?a+=c[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var IV=NV;function RV(){this.__rules__=[],this.__cache__=null}RV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},RV.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},RV.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},RV.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},RV.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},RV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},RV.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},RV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},RV.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},RV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var LV=RV,zV=/\r\n?|\n/g,FV=/\0/g,BV=UH.arrayReplaceAt;function qV(e){return/^<\/a\s*>/i.test(e)}var HV=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,VV=/\((c|tm|r)\)/i,UV=/\((c|tm|r)\)/gi,WV={c:"©",r:"®",tm:"™"};function GV(e,t){return WV[t.toLowerCase()]}function $V(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(UV,GV)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function YV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||HV.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var XV=UH.isWhiteSpace,ZV=UH.isPunctChar,KV=UH.isMdAsciiPunct,JV=/['"]/,QV=/['"]/g;function eU(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function tU(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_;for(x=[],n=0;n<e.length;n++){for(r=e[n],s=e[n].level,g=x.length-1;g>=0&&!(x[g].level<=s);g--);if(x.length=g+1,"text"===r.type){a=0,c=(i=r.content).length;e:for(;a<c&&(QV.lastIndex=a,o=QV.exec(i));){if(v=y=!0,a=o.index+1,b="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(g=n-1;g>=0&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g--)if(e[g].content){u=e[g].content.charCodeAt(e[g].content.length-1);break}if(f=32,a<c)f=i.charCodeAt(a);else for(g=n+1;g<e.length&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g++)if(e[g].content){f=e[g].content.charCodeAt(0);break}if(p=KV(u)||ZV(String.fromCharCode(u)),d=KV(f)||ZV(String.fromCharCode(f)),h=XV(u),(m=XV(f))?v=!1:d&&(h||p||(v=!1)),h?y=!1:p&&(m||d||(y=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(y=v=!1),v&&y&&(v=p,y=d),v||y){if(y)for(g=x.length-1;g>=0&&(l=x[g],!(x[g].level<s));g--)if(l.single===b&&x[g].level===s){l=x[g],b?(w=t.md.options.quotes[2],_=t.md.options.quotes[3]):(w=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=eU(r.content,o.index,_),e[l.token].content=eU(e[l.token].content,l.pos,w),a+=_.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}v?x.push({token:n,pos:o.index,single:b,level:s}):y&&b&&(r.content=eU(r.content,o.index,"’"))}else b&&(r.content=eU(r.content,o.index,"’"))}}}}function nU(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}nU.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},nU.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},nU.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},nU.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},nU.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var rU=nU,iU=rU;function oU(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}oU.prototype.Token=iU;var aU=oU,cU=LV,sU=[["normalize",function(e){var t;t=(t=e.src.replace(zV,"\n")).replace(FV,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b=e.tokens;if(e.md.options.linkify)for(n=0,r=b.length;n<r;n++)if("inline"===b[n].type&&e.md.linkify.pretest(b[n].content))for(d=0,t=(i=b[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(g=a.content,/^<a[>\s]/i.test(g)&&d>0&&d--,qV(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,y=e.md.linkify.match(l),c=[],p=a.level,f=0,y.length>0&&0===y[0].index&&t>0&&"text_special"===i[t-1].type&&(y=y.slice(1)),s=0;s<y.length;s++)h=y[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(v=y[s].text,v=y[s].schema?"mailto:"!==y[s].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(u=y[s].index)>f&&((o=new e.Token("text","",0)).content=l.slice(f,u),o.level=p,c.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",c.push(o),(o=new e.Token("text","",0)).content=v,o.level=p,c.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",c.push(o),f=y[s].lastIndex);f<l.length&&((o=new e.Token("text","",0)).content=l.slice(f),o.level=p,c.push(o)),b[n].children=i=BV(i,t,c)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(VV.test(e.tokens[t].content)&&$V(e.tokens[t].children),HV.test(e.tokens[t].content)&&YV(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&JV.test(e.tokens[t].content)&&tU(e.tokens[t].children,e)}],["text_join",function(e){var t,n,r,i,o,a,c=e.tokens;for(t=0,n=c.length;t<n;t++)if("inline"===c[t].type){for(o=(r=c[t].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=a=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}}]];function lU(){this.ruler=new cU;for(var e=0;e<sU.length;e++)this.ruler.push(sU[e][0],sU[e][1])}lU.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},lU.prototype.State=aU;var uU=lU,fU=UH.isSpace;function pU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function dU(e){var t,n=[],r=0,i=e.length,o=!1,a=0,c="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(c+=e.substring(a,r-1),a=r):(n.push(c+e.substring(a,r)),c="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(c+e.substring(a)),n}var hU=UH.isSpace,mU=UH.isSpace,vU=UH.isSpace;function yU(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!vU(o))?-1:r}function gU(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!vU(n))?-1:i}var bU=UH.normalizeReference,xU=UH.isSpace,wU={},_U="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",kU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",SU=new RegExp("^(?:"+_U+"|"+kU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),EU=new RegExp("^(?:"+_U+"|"+kU+")");wU.HTML_TAG_RE=SU,wU.HTML_OPEN_CLOSE_TAG_RE=EU;var OU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AU=wU.HTML_OPEN_CLOSE_TAG_RE,CU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+OU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(AU.source+"\\s*$"),/^$/,!1]],TU=UH.isSpace,PU=rU,jU=UH.isSpace;function DU(e,t,n,r){var i,o,a,c,s,l,u,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=c=l=u=0,s=(o=this.src).length;c<s;c++){if(i=o.charCodeAt(c),!f){if(jU(i)){l++,9===i?u+=4-u%4:u++;continue}f=!0}10!==i&&c!==s-1||(10!==i&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,a=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}DU.prototype.push=function(e,t,n){var r=new PU(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},DU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},DU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},DU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),jU(t));e++);return e},DU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!jU(this.src.charCodeAt(--e)))return e+1;return e},DU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},DU.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},DU.prototype.getLines=function(e,t,n,r){var i,o,a,c,s,l,u,f=e;if(e>=t)return"";for(l=new Array(t-e),i=0;f<t;f++,i++){for(o=0,u=c=this.bMarks[f],s=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];c<s&&o<n;){if(a=this.src.charCodeAt(c),jU(a))9===a?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(c-u<this.tShift[f]))break;o++}c++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(c,s):this.src.slice(c,s)}return l.join("")},DU.prototype.Token=PU;var MU=DU,NU=LV,IU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(x=e.src.charCodeAt(a++))&&45!==x&&58!==x)return!1;if(a>=e.eMarks[l])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!fU(w))return!1;if(45===x&&fU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!fU(i))return!1;a++}for(u=(o=pU(e,t+1)).split("|"),d=[],c=0;c<u.length;c++){if(!(h=u[c].trim())){if(0===c||c===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?d.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(o=pU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=dU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(f=u.length)||f!==d.length)return!1;if(r)return!0;for(y=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<u.length;c++)p=e.push("th_open","th",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(g=!1,c=0,s=b.length;c<s;c++)if(b[c](e,l,n,!0)){g=!0;break}if(g)break;if(!(o=pU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=dU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=v=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],c=0;c<f;c++)p=e.push("td_open","td",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c]?u[c].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return v&&(p=e.push("tbody_close","tbody",-1),v[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=y,e.line=l,!0},["paragraph","reference"]],["code",function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i,o,a,c,s,l,u,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(s=p,(o=(p=e.skipChars(p,i))-s)<3)return!1;if(u=e.src.slice(s,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((p=s=e.bMarks[c]+e.tShift[c])<(d=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[c]-e.blkIndent>=4||(p=e.skipChars(p,i))-s<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=c+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,c,o,!0),l.markup=u,l.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S=e.lineMax,E=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[t]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=E;E<O&&(o=e.src.charCodeAt(E),hU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,E++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=E>=O,y=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(k=e.sCount[f]<e.blkIndent,!((E=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(E++)||k){if(l)break;for(x=!1,a=0,s=w.length;a<s;a++)if(w[a](e,f,n,!0)){x=!0;break}if(x){e.lineMax=f,0!==e.blkIndent&&(d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[f]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=E;E<O&&(o=e.src.charCodeAt(E),hU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,E++;l=E>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),y.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=E-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=u=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,u[1]=e.line,a=0;a<g.length;a++)e.bMarks[a+t]=d[a],e.tShift[a+t]=g[a],e.sCount[a+t]=y[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(s++))&&45!==i&&95!==i)return!1;for(o=1;s<l;){if((a=e.src.charCodeAt(s++))!==i&&!mU(a))return!1;a===i&&o++}return!(o<3)&&(r||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S,E,O,A,C,T,P,j,D=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(D=!0),(O=gU(e,t))>=0){if(u=!0,C=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(C,O-1)),D&&1!==v)return!1}else{if(!((O=yU(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(j=e.push("ordered_list_open","ol",1),1!==v&&(j.attrs=[["start",v]])):j=e.push("bullet_list_open","ul",1),j.map=d=[t,0],j.markup=String.fromCharCode(m),g=t,A=!1,P=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";g<n;){for(E=O,y=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);E<y;){if(9===(i=e.src.charCodeAt(E)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}E++}if((s=(o=E)>=y?1:b-l)>4&&(s=1),c=l+s,(j=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),j.map=f=[t,0],u&&(j.info=e.src.slice(C,O-1)),S=e.tight,k=e.tShift[t],_=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=y&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=k,e.sCount[t]=_,e.tight=S,(j=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),g=t=e.line,f[1]=g,o=e.bMarks[t],g>=n)break;if(e.sCount[g]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(T=!1,a=0,p=P.length;a<p;a++)if(P[a](e,g,n,!0)){T=!0;break}if(T)break;if(u){if((O=gU(e,g))<0)break;C=e.bMarks[g]+e.tShift[g]}else if((O=yU(e,g))<0)break;if(m!==e.src.charCodeAt(O-1))break}return(j=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),d[1]=g,e.line=g,e.parentType=w,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x=0,w=e.bMarks[t]+e.tShift[t],_=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<_;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===_)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,g=e.md.block.ruler.getRules("reference"),d=e.parentType,e.parentType="reference";k<c&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(y=!1,l=0,u=g.length;l<u;l++)if(g[l](e,k,c,!0)){y=!0;break}if(y)break}for(_=(v=e.getLines(t,k,e.blkIndent,!1).trim()).length,w=1;w<_;w++){if(91===(i=v.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<_&&10===v.charCodeAt(w))&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(w=p+2;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!xU(i))break;if(!(h=e.md.helpers.parseLinkDestination(v,w,_)).ok)return!1;if(s=e.md.normalizeLink(h.str),!e.md.validateLink(s))return!1;for(o=w=h.pos,a=x+=h.lines,m=w;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!xU(i))break;for(h=e.md.helpers.parseLinkTitle(v,w,_),w<_&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<_&&(i=v.charCodeAt(w),xU(i));)w++;if(w<_&&10!==v.charCodeAt(w)&&b)for(b="",w=o,x=a;w<_&&(i=v.charCodeAt(w),xU(i));)w++;return!(w<_&&10!==v.charCodeAt(w))&&(!!(f=bU(v.slice(1,p)))&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:b,href:s}),e.parentType=d,e.line=t+x+1),!0))}],["html_block",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(c=e.src.slice(s,l),i=0;i<CU.length&&!CU[i][0].test(c);i++);if(i===CU.length)return!1;if(r)return CU[i][2];if(o=t+1,!CU[i][1].test(c))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(s=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],c=e.src.slice(s,l),CU[i][1].test(c)){0!==c.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(s))||s>=l)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s<l&&o<=6;)o++,i=e.src.charCodeAt(++s);return!(o>6||s<l&&!TU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&TU(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(c=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(s,l).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,i,o,a,c,s,l,u,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(s))||61===f)&&(s=e.skipChars(s,f),(s=e.skipSpaces(s))>=l)){u=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(f),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}],["paragraph",function(e,t){var n,r,i,o,a,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=c,!0}]];function RU(){this.ruler=new NU;for(var e=0;e<IU.length;e++)this.ruler.push(IU[e][0],IU[e][1],{alt:(IU[e][2]||[]).slice()})}RU.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,c=!1,s=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(a=e.line)<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}},RU.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},RU.prototype.State=MU;var LU=RU;function zU(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var FU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,BU=UH.isSpace,qU=UH.isSpace,HU=[],VU=0;VU<256;VU++)HU.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){HU[e.charCodeAt(0)]=1}));var UU={};function WU(e,t){var n,r,i,o,a,c=[],s=t.length;for(n=0;n<s;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&c.push(o.token-1));for(;c.length;){for(r=(n=c.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}UU.tokenize=function(e,t){var n,r,i,o,a=e.pos,c=e.src.charCodeAt(a);if(t)return!1;if(126!==c)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(c),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},UU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(WU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&WU(e,n[t].delimiters)};var GU={};function $U(e,t){var n,r,i,o,a,c;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],c=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?a+a:a,o.content="",(o=e.tokens[i.token]).type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?a+a:a,o.content="",c&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}GU.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},GU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for($U(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&$U(e,n[t].delimiters)};var YU=UH.normalizeReference,XU=UH.isSpace,ZU=UH.normalizeReference,KU=UH.isSpace,JU=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,QU=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,eW=wU.HTML_TAG_RE;var tW=WH,nW=UH.has,rW=UH.isValidEntityCode,iW=UH.fromCodePoint,oW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,aW=/^&([a-z][a-z0-9]{1,31});/i;function cW(e,t){var n,r,i,o,a,c,s,l,u={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],c=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(s=!0)),!s)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,c=-1,d=-2;break}-1!==c&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}}var sW=rU,lW=UH.isWhiteSpace,uW=UH.isPunctChar,fW=UH.isMdAsciiPunct;function pW(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}pW.prototype.pushPending=function(){var e=new sW("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},pW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new sW(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},pW.prototype.scanDelims=function(e,t){var n,r,i,o,a,c,s,l,u,f=e,p=!0,d=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===m;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,s=fW(n)||uW(String.fromCharCode(n)),u=fW(r)||uW(String.fromCharCode(r)),c=lW(n),(l=lW(r))?p=!1:u&&(c||s||(p=!1)),c?d=!1:s&&(l||u||(d=!1)),t?(o=p,a=d):(o=p&&(!d||s),a=d&&(!p||u)),{can_open:o,can_close:a,length:i}},pW.prototype.Token=sW;var dW=pW,hW=LV,mW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!zU(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){var n,r,i,o,a,c,s;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(r=e.pending.match(FU))&&(i=r[1],!!(o=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=o.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(t||(e.pending=e.pending.slice(0,-i.length),(s=e.push("link_open","a",1)).attrs=[["href",c]],s.markup="linkify",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(a),(s=e.push("link_close","a",-1)).markup="linkify",s.info="auto"),e.pos+=a.length-i.length,!0)))))))))}],["newline",function(e,t){var n,r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<r&&BU(e.src.charCodeAt(o));)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r,i,o,a,c=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(c))return!1;if(++c>=s)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<s&&(n=e.src.charCodeAt(c),qU(n));)c++;return e.pos=c,!0}return o=e.src[c],n>=55296&&n<=56319&&c+1<s&&(r=e.src.charCodeAt(c+1))>=56320&&r<=57343&&(o+=e.src[c+1],c++),i="\\"+o,t||(a=e.push("text_special","",0),n<256&&0!==HU[n]?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0}],["backticks",function(e,t){var n,r,i,o,a,c,s,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(s=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=i),e.pos+=s,!0;for(a=c=u;-1!==(a=e.src.indexOf("`",c));){for(c=a+1;c<r&&96===e.src.charCodeAt(c);)c++;if((l=c-a)===s)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}],["strikethrough",UU.tokenize],["emphasis",GU.tokenize],["link",function(e,t){var n,r,i,o,a,c,s,l,u="",f="",p=e.pos,d=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=o+1)<d&&40===e.src.charCodeAt(c)){for(m=!1,c++;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);if(c>=d)return!1;if(h=c,(s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?c=s.pos:u="",h=c;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<d&&h!==c&&s.ok)for(f=s.str,c=s.pos;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);}(c>=d||41!==e.src.charCodeAt(c))&&(m=!0),c++}if(m){if(void 0===e.env.references)return!1;if(c<d&&91===e.src.charCodeAt(c)?(h=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?i=e.src.slice(h,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[YU(i)]))return e.pos=p,!1;u=l.href,f=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=d,!0}],["image",function(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m="",v=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((s=a+1)<y&&40===e.src.charCodeAt(s)){for(s++;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);if(s>=y)return!1;for(h=s,(u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?s=u.pos:m=""),h=s;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);else f="";if(s>=y||41!==e.src.charCodeAt(s))return e.pos=v,!1;s++}else{if(void 0===e.env.references)return!1;if(s<y&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?o=e.src.slice(h,s++):s=a+1):s=a+1,o||(o=e.src.slice(c,a)),!(l=e.env.references[ZU(o)]))return e.pos=v,!1;m=l.href,f=l.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,d=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=d,p.content=i,f&&n.push(["title",f])),e.pos=s,e.posMax=y,!0}],["autolink",function(e,t){var n,r,i,o,a,c,s=e.pos;if(60!==e.src.charCodeAt(s))return!1;for(a=e.pos,c=e.posMax;;){if(++s>=c)return!1;if(60===(o=e.src.charCodeAt(s)))return!1;if(62===o)break}return n=e.src.slice(a+1,s),QU.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!JU.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,r,i,o,a,c=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(c)||c+2>=i)&&(!(33!==(n=e.src.charCodeAt(c+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(r=e.src.slice(c).match(eW))&&(t||((o=e.push("html_inline","",0)).content=e.src.slice(c,c+r[0].length),a=o.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0))))}],["entity",function(e,t){var n,r,i,o=e.pos,a=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1>=a)return!1;if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(oW))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),(i=e.push("text_special","",0)).content=rW(n)?iW(n):iW(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(aW))&&nW(tW,r[1]))return t||((i=e.push("text_special","",0)).content=tW[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],vW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(cW(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&cW(0,n[t].delimiters)}],["strikethrough",UU.postProcess],["emphasis",GU.postProcess],["fragments_join",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function yW(){var e;for(this.ruler=new hW,e=0;e<mW.length;e++)this.ruler.push(mW[e][0],mW[e][1]);for(this.ruler2=new hW,e=0;e<vW.length;e++)this.ruler2.push(vW[e][0],vW[e][1])}yW.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},yW.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},yW.prototype.parse=function(e,t,n,r){var i,o,a,c=new this.State(e,t,n,r);for(this.tokenize(c),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](c)},yW.prototype.State=dW;var gW,bW,xW=yW;function wW(){return bW?gW:(bW=1,gW=function(e){var t={};e=e||{},t.src_Any=kV().source,t.src_Cc=SV().source,t.src_Z=EV().source,t.src_P=GH.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t})}function _W(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function kW(e){return Object.prototype.toString.call(e)}function SW(e){return"[object Function]"===kW(e)}function EW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var AW={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},CW="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",TW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function PW(e){var t=e.re=wW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(CW),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,function(e){return"[object Object]"===kW(e)}(n))return!function(e){return"[object RegExp]"===kW(e)}(n.validate)?SW(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(SW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===kW(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(EW).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function jW(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function DW(e,t){var n=new jW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function MW(e,t){if(!(this instanceof MW))return new MW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||OW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=_W({},OW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=_W({},AW,e),this.__compiled__={},this.__tlds__=TW,this.__tlds_replaced__=!1,this.re={},PW(this)}MW.prototype.add=function(e,t){return this.__schemas__[e]=t,PW(this),this},MW.prototype.set=function(e){return this.__opts__=_W(this.__opts__,e),this},MW.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(i=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},MW.prototype.pretest=function(e){return this.re.pretest.test(e)},MW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},MW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(DW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(DW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},MW.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,DW(this,0)):null},MW.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),PW(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,PW(this),this)},MW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},MW.prototype.onCompile=function(){};var NW=MW;const IW=2147483647,RW=36,LW=/^xn--/,zW=/[^\0-\x7E]/,FW=/[\x2E\u3002\uFF0E\uFF61]/g,BW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},qW=Math.floor,HW=String.fromCharCode;function VW(e){throw new RangeError(BW[e])}function UW(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(FW,".")).split("."),t).join(".");return r+i}function WW(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const GW=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},$W=function(e,t,n){let r=0;for(e=n?qW(e/700):e>>1,e+=qW(e/t);e>455;r+=RW)e=qW(e/35);return qW(r+36*e/(e+38))},YW=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&VW("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=RW;;i+=RW){s>=n&&VW("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:RW;(a>=RW||a>qW((IW-r)/t))&&VW("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=RW-l;t>qW(IW/u)&&VW("overflow"),t*=u}const l=t.length+1;o=$W(r-a,l,0==a),qW(r/l)>IW-i&&VW("overflow"),i+=qW(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},XW=function(e){const t=[];let n=(e=WW(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(HW(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=IW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>qW((IW-i)/s)&&VW("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>IW&&VW("overflow"),n==r){let e=i;for(let n=RW;;n+=RW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=RW-r;t.push(HW(GW(r+i%a,0))),e=qW(i/a)}t.push(HW(GW(e,0))),o=$W(i,s,c==a),i=0,++c}++i,++r}return t.join("")},ZW={version:"2.1.0",ucs2:{decode:WW,encode:e=>String.fromCodePoint(...e)},decode:YW,encode:XW,toASCII:function(e){return UW(e,(function(e){return zW.test(e)?"xn--"+XW(e):e}))},toUnicode:function(e){return UW(e,(function(e){return LW.test(e)?YW(e.slice(4).toLowerCase()):e}))}};var KW=UH,JW=AV,QW=IV,eG=uU,tG=LU,nG=xW,rG=NW,iG=$H,oG=ZW,aG={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},cG=/^(vbscript|javascript|file|data):/,sG=/^data:image\/(gif|png|jpeg|webp);/;function lG(e){var t=e.trim().toLowerCase();return!cG.test(t)||!!sG.test(t)}var uG=["http:","https:","mailto:"];function fG(e){var t=iG.parse(e,!0);if(t.hostname&&(!t.protocol||uG.indexOf(t.protocol)>=0))try{t.hostname=oG.toASCII(t.hostname)}catch(e){}return iG.encode(iG.format(t))}function pG(e){var t=iG.parse(e,!0);if(t.hostname&&(!t.protocol||uG.indexOf(t.protocol)>=0))try{t.hostname=oG.toUnicode(t.hostname)}catch(e){}return iG.decode(iG.format(t),iG.decode.defaultChars+"%")}function dG(e,t){if(!(this instanceof dG))return new dG(e,t);t||KW.isString(e)||(t=e||{},e="default"),this.inline=new nG,this.block=new tG,this.core=new eG,this.renderer=new QW,this.linkify=new rG,this.validateLink=lG,this.normalizeLink=fG,this.normalizeLinkText=pG,this.utils=KW,this.helpers=KW.assign({},JW),this.options={},this.configure(e),t&&this.set(t)}dG.prototype.set=function(e){return KW.assign(this.options,e),this},dG.prototype.configure=function(e){var t,n=this;if(KW.isString(e)&&!(e=aG[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},dG.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},dG.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},dG.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},dG.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},dG.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},dG.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},dG.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var hG=E(dG),mG={exports:{}},vG={},yG={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(yG);var gG={},bG=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xG=S&&S.__assign||function(){return xG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xG.apply(this,arguments)};Object.defineProperty(gG,"__esModule",{value:!0}),gG.cloneNode=gG.hasChildren=gG.isDocument=gG.isDirective=gG.isComment=gG.isText=gG.isCDATA=gG.isTag=gG.Element=gG.Document=gG.CDATA=gG.NodeWithChildren=gG.ProcessingInstruction=gG.Comment=gG.Text=gG.DataNode=gG.Node=void 0;var wG=yG,_G=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),LG(this,e)},e}();gG.Node=_G;var kG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return bG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(_G);gG.DataNode=kG;var SG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Text,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(kG);gG.Text=SG;var EG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Comment,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(kG);gG.Comment=EG;var OG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=wG.ElementType.Directive,r}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(kG);gG.ProcessingInstruction=OG;var AG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return bG(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(_G);gG.NodeWithChildren=AG;var CG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.CDATA,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(AG);gG.CDATA=CG;var TG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Root,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(AG);gG.Document=TG;var PG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?wG.ElementType.Script:"style"===t?wG.ElementType.Style:wG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(AG);function jG(e){return(0,wG.isTag)(e)}function DG(e){return e.type===wG.ElementType.CDATA}function MG(e){return e.type===wG.ElementType.Text}function NG(e){return e.type===wG.ElementType.Comment}function IG(e){return e.type===wG.ElementType.Directive}function RG(e){return e.type===wG.ElementType.Root}function LG(e,t){var n;if(void 0===t&&(t=!1),MG(e))n=new SG(e.data);else if(NG(e))n=new EG(e.data);else if(jG(e)){var r=t?zG(e.children):[],i=new PG(e.name,xG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xG({},e["x-attribsPrefix"])),n=i}else if(DG(e)){r=t?zG(e.children):[];var o=new CG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(RG(e)){r=t?zG(e.children):[];var a=new TG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!IG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new OG(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function zG(e){for(var t=e.map((function(e){return LG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}gG.Element=PG,gG.isTag=jG,gG.isCDATA=DG,gG.isText=MG,gG.isComment=NG,gG.isDirective=IG,gG.isDocument=RG,gG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},gG.cloneNode=LG,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=yG,i=gG;n(gG,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(vG);var FG={exports:{}},BG={},qG={},HG={},VG={},UG={};Object.defineProperty(UG,"__esModule",{value:!0}),UG.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})));var WG={};Object.defineProperty(WG,"__esModule",{value:!0}),WG.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var GG={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}e.fromCodePoint=null!==(t=String.fromCodePoint)&&void 0!==t?t:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},e.replaceCodePoint=r,e.default=function(t){return(0,e.fromCodePoint)(r(t))}}(GG),function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var n=t(UG);e.htmlDecodeTree=n.default;var r=t(WG);e.xmlDecodeTree=r.default;var i=t(GG);e.decodeCodePoint=i.default;var o,a,c=GG;function s(e){return function(t,n){for(var r="",c=0,s=0;(s=t.indexOf("&",s))>=0;)if(r+=t.slice(c,s),c=s,s+=1,t.charCodeAt(s)!==o.NUM){for(var u=0,f=1,p=0,d=e[p];s<t.length&&!((p=l(e,d,p+1,t.charCodeAt(s)))<0);s++,f++){var h=(d=e[p])&a.VALUE_LENGTH;if(h){var m;if(n&&t.charCodeAt(s)!==o.SEMI||(u=p,f=0),0===(m=(h>>14)-1))break;p+=m}}if(0!==u)r+=1===(m=(e[u]&a.VALUE_LENGTH)>>14)?String.fromCharCode(e[u]&~a.VALUE_LENGTH):2===m?String.fromCharCode(e[u+1]):String.fromCharCode(e[u+1],e[u+2]),c=s-f+1}else{var v=s+1,y=10,g=t.charCodeAt(v);(g|o.To_LOWER_BIT)===o.LOWER_X&&(y=16,s+=1,v+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===y&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(v!==s){var b=t.substring(v,s),x=parseInt(b,y);if(t.charCodeAt(s)===o.SEMI)s+=1;else if(n)continue;r+=(0,i.default)(x),c=s}}return r+t.slice(c)}}function l(e,t,n,r){var i=(t&a.BRANCH_LENGTH)>>7,o=t&a.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var c=r-o;return c<0||c>=i?-1:e[n+c]-1}for(var s=n,l=s+i-1;s<=l;){var u=s+l>>>1,f=e[u];if(f<r)s=u+1;else{if(!(f>r))return e[u+i];l=u-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(o||(o={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(a=e.BinTrieFlags||(e.BinTrieFlags={})),e.determineBranch=l;var u=s(n.default),f=s(r.default);e.decodeHTML=function(e){return u(e,!1)},e.decodeHTMLStrict=function(e){return u(e,!0)},e.decodeXML=function(e){return f(e,!0)}}(VG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t,n,r,i=VG;function o(e){return e===t.Space||e===t.NewLine||e===t.Tab||e===t.FormFeed||e===t.CarriageReturn}function a(e){return e===t.Slash||e===t.Gt||o(e)}function c(e){return e>=t.Zero&&e<=t.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(t||(t={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(n||(n={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(r=e.QuoteType||(e.QuoteType={}));var s={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},l=function(){function e(e,t){var r=e.xmlMode,o=void 0!==r&&r,a=e.decodeEntities,c=void 0===a||a;this.cbs=t,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=o,this.decodeEntities=c,this.entityTrie=o?i.xmlDecodeTree:i.htmlDecodeTree}return e.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?a(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===t.Gt||o(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}return this.isSpecial=!1,this.sectionStart=r+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===s.TitleEnd?this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===t.Lt)},e.prototype.stateCDATASequence=function(e){e===s.Cdata[this.sequenceIndex]?++this.sequenceIndex===s.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=s.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!a(e):function(e){return e>=t.LowerA&&e<=t.LowerZ||e>=t.UpperA&&e<=t.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=n.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===t.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===t.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var r=32|e;this.sectionStart=this.index,this.xmlMode||r!==s.TitleEnd[2]?this.state=this.xmlMode||r!==s.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(s.TitleEnd,3)}else e===t.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){a(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){o(e)||(e===t.Gt?this.state=n.Text:(this.state=this.isTagStartChar(e)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===t.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===t.Slash?this.state=n.InSelfClosingTag:o(e)||(this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===t.Eq||a(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===t.Eq?this.state=n.BeforeAttributeValue:e===t.Slash||e===t.Gt?(this.cbs.onattribend(r.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(r.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===t.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):e===t.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,i){e===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===t.DoubleQuote?r.Double:r.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,t.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,t.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){o(e)||e===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===t.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=e===t.Dash?n.BeforeComment:n.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===t.Dash?(this.state=n.InCommentLike,this.currentSequence=s.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===s.ScriptEnd[3]?this.startSpecial(s.ScriptEnd,4):t===s.StyleEnd[3]?this.startSpecial(s.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===t.Num?this.state=n.BeforeNumericEntity:e===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,i.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var n=this.trieCurrent&i.BinTrieFlags.VALUE_LENGTH;if(n){var r=(n>>14)-1;if(this.allowLegacyEntity()||e===t.Semi){var o=this.index-this.entityExcess+1;o>this.sectionStart&&this.emitPartial(this.sectionStart,o),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===n.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-t.Zero),this.entityExcess++):!function(e){return e>=t.UpperA&&e<=t.UpperF||e>=t.LowerA&&e<=t.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-t.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);this.state===n.Text?this.stateText(e):this.state===n.SpecialStartSequence?this.stateSpecialStartSequence(e):this.state===n.InSpecialTag?this.stateInSpecialTag(e):this.state===n.CDATASequence?this.stateCDATASequence(e):this.state===n.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(e):this.state===n.InAttributeName?this.stateInAttributeName(e):this.state===n.InCommentLike?this.stateInCommentLike(e):this.state===n.InSpecialComment?this.stateInSpecialComment(e):this.state===n.BeforeAttributeName?this.stateBeforeAttributeName(e):this.state===n.InTagName?this.stateInTagName(e):this.state===n.InClosingTagName?this.stateInClosingTagName(e):this.state===n.BeforeTagName?this.stateBeforeTagName(e):this.state===n.AfterAttributeName?this.stateAfterAttributeName(e):this.state===n.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(e):this.state===n.BeforeAttributeValue?this.stateBeforeAttributeValue(e):this.state===n.BeforeClosingTagName?this.stateBeforeClosingTagName(e):this.state===n.AfterClosingTagName?this.stateAfterClosingTagName(e):this.state===n.BeforeSpecialS?this.stateBeforeSpecialS(e):this.state===n.InAttributeValueNq?this.stateInAttributeValueNoQuotes(e):this.state===n.InSelfClosingTag?this.stateInSelfClosingTag(e):this.state===n.InDeclaration?this.stateInDeclaration(e):this.state===n.BeforeDeclaration?this.stateBeforeDeclaration(e):this.state===n.BeforeComment?this.stateBeforeComment(e):this.state===n.InProcessingInstruction?this.stateInProcessingInstruction(e):this.state===n.InNamedEntity?this.stateInNamedEntity(e):this.state===n.BeforeEntity?this.stateBeforeEntity(e):this.state===n.InHexEntity?this.stateInHexEntity(e):this.state===n.InNumericEntity?this.stateInNumericEntity(e):this.stateBeforeNumericEntity(e),this.index++}this.cleanup()},e.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()||this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();e.default=l}(HG);var $G=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),YG=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),XG=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&$G(t,e,n);return YG(t,e),t};Object.defineProperty(qG,"__esModule",{value:!0}),qG.Parser=void 0;var ZG=XG(HG),KG=VG,JG=new Set(["input","option","optgroup","select","button","datalist","textarea"]),QG=new Set(["p"]),e$=new Set(["thead","tbody"]),t$=new Set(["dd","dt"]),n$=new Set(["rt","rp"]),r$=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",QG],["h1",QG],["h2",QG],["h3",QG],["h4",QG],["h5",QG],["h6",QG],["select",JG],["input",JG],["output",JG],["button",JG],["datalist",JG],["textarea",JG],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",t$],["dt",t$],["address",QG],["article",QG],["aside",QG],["blockquote",QG],["details",QG],["div",QG],["dl",QG],["fieldset",QG],["figcaption",QG],["figure",QG],["footer",QG],["form",QG],["header",QG],["hr",QG],["main",QG],["nav",QG],["ol",QG],["pre",QG],["section",QG],["table",QG],["ul",QG],["rt",n$],["rp",n$],["tbody",e$],["tfoot",e$]]),i$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),o$=new Set(["math","svg"]),a$=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),c$=/\s|\//,s$=function(){function e(e,t){var n,r,i,o,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:ZG.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,KG.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&i$.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&r$.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),o$.has(e)?this.foreignContext.push(!0):a$.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,c;this.endIndex=t;var s=this.getSlice(e,t);if(this.lowerCaseTagNames&&(s=s.toLowerCase()),(o$.has(s)||a$.has(s))&&this.foreignContext.pop(),this.isVoidElement(s))this.options.xmlMode||"br"!==s||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(c=(a=this.cbs).onclosetag)||void 0===c||c.call(a,"br",!1));else{var l=this.stack.lastIndexOf(s);if(-1!==l)if(this.cbs.onclosetag)for(var u=this.stack.length-l;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=l;else this.options.xmlMode||"p"!==s||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,KG.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===ZG.QuoteType.Double?'"':e===ZG.QuoteType.Single?"'":e===ZG.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(c$),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,c,s,l,u,f,p;this.endIndex=t;var d=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,d),null===(s=(c=this.cbs).oncdataend)||void 0===s||s.call(c)):(null===(u=(l=this.cbs).oncomment)||void 0===u||u.call(l,"[CDATA[".concat(d,"]]")),null===(p=(f=this.cbs).oncommentend)||void 0===p||p.call(f)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();qG.Parser=s$;var l$={},u$={},f$=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p$=S&&S.__assign||function(){return p$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p$.apply(this,arguments)};Object.defineProperty(u$,"__esModule",{value:!0}),u$.cloneNode=u$.hasChildren=u$.isDocument=u$.isDirective=u$.isComment=u$.isText=u$.isCDATA=u$.isTag=u$.Element=u$.Document=u$.CDATA=u$.NodeWithChildren=u$.ProcessingInstruction=u$.Comment=u$.Text=u$.DataNode=u$.Node=void 0;var d$=yG,h$=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),T$(this,e)},e}();u$.Node=h$;var m$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return f$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(h$);u$.DataNode=m$;var v$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Text,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(m$);u$.Text=v$;var y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Comment,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(m$);u$.Comment=y$;var g$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=d$.ElementType.Directive,r}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(m$);u$.ProcessingInstruction=g$;var b$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return f$(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(h$);u$.NodeWithChildren=b$;var x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.CDATA,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(b$);u$.CDATA=x$;var w$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Root,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(b$);u$.Document=w$;var _$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?d$.ElementType.Script:"style"===t?d$.ElementType.Style:d$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(b$);function k$(e){return(0,d$.isTag)(e)}function S$(e){return e.type===d$.ElementType.CDATA}function E$(e){return e.type===d$.ElementType.Text}function O$(e){return e.type===d$.ElementType.Comment}function A$(e){return e.type===d$.ElementType.Directive}function C$(e){return e.type===d$.ElementType.Root}function T$(e,t){var n;if(void 0===t&&(t=!1),E$(e))n=new v$(e.data);else if(O$(e))n=new y$(e.data);else if(k$(e)){var r=t?P$(e.children):[],i=new _$(e.name,p$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=p$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=p$({},e["x-attribsPrefix"])),n=i}else if(S$(e)){r=t?P$(e.children):[];var o=new x$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(C$(e)){r=t?P$(e.children):[];var a=new w$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!A$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new g$(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function P$(e){for(var t=e.map((function(e){return T$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}u$.Element=_$,u$.isTag=k$,u$.isCDATA=S$,u$.isText=E$,u$.isComment=O$,u$.isDirective=A$,u$.isDocument=C$,u$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},u$.cloneNode=T$,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=yG,i=u$;n(u$,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(l$);var j$={},D$={},M$={},N$={},I$={},R$={};function L$(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(R$,"__esModule",{value:!0}),R$.default=new Map(L$([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(L$([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(L$([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(L$([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var z$={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(n){for(var r,i="",o=0;null!==(r=e.xmlReplacer.exec(n));){var a=r.index,c=n.charCodeAt(a),s=t.get(c);void 0!==s?(i+=n.substring(o,a)+s,o=a+1):(i+="".concat(n.substring(o,a),"&#x").concat((0,e.getCodePoint)(n,a).toString(16),";"),o=e.xmlReplacer.lastIndex+=Number(55296==(64512&c)))}return i+n.substr(o)}function r(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},e.encodeXML=n,e.escape=n,e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(z$);var F$=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I$,"__esModule",{value:!0}),I$.encodeNonAsciiHTML=I$.encodeHTML=void 0;var B$=F$(R$),q$=z$,H$=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function V$(e,t){for(var n,r="",i=0;null!==(n=e.exec(t));){var o=n.index;r+=t.substring(i,o);var a=t.charCodeAt(o),c=B$.default.get(a);if("object"==typeof c){if(o+1<t.length){var s=t.charCodeAt(o+1),l="number"==typeof c.n?c.n===s?c.o:void 0:c.n.get(s);if(void 0!==l){r+=l,i=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)r+=c,i=o+1;else{var u=(0,q$.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}I$.encodeHTML=function(e){return V$(H$,e)},I$.encodeNonAsciiHTML=function(e){return V$(q$.xmlReplacer,e)},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.DecodingMode=e.EntityLevel=void 0;var t,n,r,i=VG,o=I$,a=z$;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(t=e.EntityLevel||(e.EntityLevel={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(n=e.DecodingMode||(e.DecodingMode={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(r=e.EncodingMode||(e.EncodingMode={})),e.decode=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Strict?(0,i.decodeHTMLStrict)(e):(0,i.decodeHTML)(e):(0,i.decodeXML)(e)},e.decodeStrict=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Legacy?(0,i.decodeHTML)(e):(0,i.decodeHTMLStrict)(e):(0,i.decodeXML)(e)},e.encode=function(e,n){void 0===n&&(n=t.XML);var i="number"==typeof n?{level:n}:n;return i.mode===r.UTF8?(0,a.escapeUTF8)(e):i.mode===r.Attribute?(0,a.escapeAttribute)(e):i.mode===r.Text?(0,a.escapeText)(e):i.level===t.HTML?i.mode===r.ASCII?(0,o.encodeNonAsciiHTML)(e):(0,o.encodeHTML)(e):(0,a.encodeXML)(e)};var c=z$;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var s=I$;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var l=VG;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return l.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return l.decodeXML}})}(N$);var U$={};Object.defineProperty(U$,"__esModule",{value:!0}),U$.attributeNames=U$.elementNames=void 0,U$.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),U$.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})));var W$=S&&S.__assign||function(){return W$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W$.apply(this,arguments)},G$=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),$$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Y$=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&G$(t,e,n);return $$(t,e),t};Object.defineProperty(M$,"__esModule",{value:!0}),M$.render=void 0;var X$=Y$(yG),Z$=N$,K$=U$,J$=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Q$(e){return e.replace(/"/g,""")}var eY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function tY(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=nY(n[i],t);return r}function nY(e,t){switch(e.type){case X$.Root:return tY(e.children,t);case X$.Doctype:case X$.Directive:return"<".concat(e.data,">");case X$.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case X$.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case X$.Script:case X$.Style:case X$.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=K$.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&rY.has(e.parent.name)&&(t=W$(W$({},t),{xmlMode:!1})));!t.xmlMode&&iY.has(e.name)&&(t=W$(W$({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),i=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?Q$:t.xmlMode||"utf8"!==t.encodeEntities?Z$.encodeXML:Z$.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=K$.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);i&&(r+=" ".concat(i));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&eY.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=tY(e.children,t)),!t.xmlMode&&eY.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case X$.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&J$.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,Z$.encodeXML)(r):(0,Z$.escapeText)(r));return r}(e,t)}}M$.render=tY,M$.default=tY;var rY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),iY=new Set(["svg","math"]);var oY=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(D$,"__esModule",{value:!0}),D$.innerText=D$.textContent=D$.getText=D$.getInnerHTML=D$.getOuterHTML=void 0;var aY=l$,cY=oY(M$),sY=yG;function lY(e,t){return(0,cY.default)(e,t)}D$.getOuterHTML=lY,D$.getInnerHTML=function(e,t){return(0,aY.hasChildren)(e)?e.children.map((function(e){return lY(e,t)})).join(""):""},D$.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,aY.isCDATA)(t)?e(t.children):(0,aY.isText)(t)?t.data:""},D$.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.hasChildren)(t)&&!(0,aY.isComment)(t)?e(t.children):(0,aY.isText)(t)?t.data:""},D$.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.hasChildren)(t)&&(t.type===sY.ElementType.Tag||(0,aY.isCDATA)(t))?e(t.children):(0,aY.isText)(t)?t.data:""};var uY={};Object.defineProperty(uY,"__esModule",{value:!0}),uY.prevElementSibling=uY.nextElementSibling=uY.getName=uY.hasAttrib=uY.getAttributeValue=uY.getSiblings=uY.getParent=uY.getChildren=void 0;var fY=l$;function pY(e){return(0,fY.hasChildren)(e)?e.children:[]}function dY(e){return e.parent||null}uY.getChildren=pY,uY.getParent=dY,uY.getSiblings=function(e){var t=dY(e);if(null!=t)return pY(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},uY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},uY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},uY.getName=function(e){return e.name},uY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,fY.isTag)(t);)t=t.next;return t},uY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,fY.isTag)(t);)t=t.prev;return t};var hY={};function mY(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(hY,"__esModule",{value:!0}),hY.prepend=hY.prependChild=hY.append=hY.appendChild=hY.replaceElement=hY.removeElement=void 0,hY.removeElement=mY,hY.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},hY.appendChild=function(e,t){if(mY(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},hY.append=function(e,t){mY(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},hY.prependChild=function(e,t){if(mY(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},hY.prepend=function(e,t){mY(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t};var vY={};Object.defineProperty(vY,"__esModule",{value:!0}),vY.findAll=vY.existsOne=vY.findOne=vY.findOneChild=vY.find=vY.filter=void 0;var yY=l$;function gY(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var c=a[o];if(e(c)&&(i.push(c),--r<=0))break;if(n&&(0,yY.hasChildren)(c)&&c.children.length>0){var s=gY(e,c.children,n,r);if(i.push.apply(i,s),(r-=s.length)<=0)break}}return i}vY.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),gY(e,t,n,r)},vY.find=gY,vY.findOneChild=function(e,t){return t.find(e)},vY.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,o=0;o<n.length&&!i;o++){var a=n[o];(0,yY.isTag)(a)&&(t(a)?i=a:r&&a.children.length>0&&(i=e(t,a.children,!0)))}return i},vY.existsOne=function e(t,n){return n.some((function(n){return(0,yY.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},vY.findAll=function(e,t){for(var n,r,i=[],o=t.filter(yY.isTag);r=o.shift();){var a=null===(n=r.children)||void 0===n?void 0:n.filter(yY.isTag);a&&a.length>0&&o.unshift.apply(o,a),e(r)&&i.push(r)}return i};var bY={};Object.defineProperty(bY,"__esModule",{value:!0}),bY.getElementsByTagType=bY.getElementsByTagName=bY.getElementById=bY.getElements=bY.testElement=void 0;var xY=l$,wY=vY,_Y={tag_name:function(e){return"function"==typeof e?function(t){return(0,xY.isTag)(t)&&e(t.name)}:"*"===e?xY.isTag:function(t){return(0,xY.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,xY.isText)(t)&&e(t.data)}:function(t){return(0,xY.isText)(t)&&t.data===e}}};function kY(e,t){return"function"==typeof t?function(n){return(0,xY.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,xY.isTag)(n)&&n.attribs[e]===t}}function SY(e,t){return function(n){return e(n)||t(n)}}function EY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(_Y,t)?_Y[t](n):kY(t,n)}));return 0===t.length?null:t.reduce(SY)}bY.testElement=function(e,t){var n=EY(e);return!n||n(t)},bY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=EY(e);return i?(0,wY.filter)(i,t,n,r):[]},bY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,wY.findOne)(kY("id",e),t,n)},bY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,wY.filter)(_Y.tag_name(e),t,n,r)},bY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,wY.filter)(_Y.tag_type(e),t,n,r)};var OY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=l$;function r(e,r){var i=[],o=[];if(e===r)return 0;for(var a=(0,n.hasChildren)(e)?e:e.parent;a;)i.unshift(a),a=a.parent;for(a=(0,n.hasChildren)(r)?r:r.parent;a;)o.unshift(a),a=a.parent;for(var c=Math.min(i.length,o.length),s=0;s<c&&i[s]===o[s];)s++;if(0===s)return t.DISCONNECTED;var l=i[s-1],u=l.children,f=i[s],p=o[s];return u.indexOf(f)>u.indexOf(p)?l===r?t.FOLLOWING|t.CONTAINED_BY:t.FOLLOWING:l===e?t.PRECEDING|t.CONTAINS:t.PRECEDING}e.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(t=e.DocumentPosition||(e.DocumentPosition={})),e.compareDocumentPosition=r,e.uniqueSort=function(e){return e=e.filter((function(e,t,n){return!n.includes(e,t+1)})),e.sort((function(e,n){var i=r(e,n);return i&t.PRECEDING?-1:i&t.FOLLOWING?1:0})),e}}(OY);var AY={};Object.defineProperty(AY,"__esModule",{value:!0}),AY.getFeed=void 0;var CY=D$,TY=bY;AY.getFeed=function(e){var t=MY(RY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,TY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:DY(n)};IY(r,"id","id",n),IY(r,"title","title",n);var i=null===(t=MY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=NY("summary",n)||NY("content",n);o&&(r.description=o);var a=NY("updated",n);return a&&(r.pubDate=new Date(a)),r}))};IY(r,"id","id",n),IY(r,"title","title",n);var i=null===(t=MY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);IY(r,"description","subtitle",n);var o=NY("updated",n);o&&(r.updated=new Date(o));return IY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=MY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,TY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:DY(t)};IY(n,"id","guid",t),IY(n,"title","title",t),IY(n,"link","link",t),IY(n,"description","description",t);var r=NY("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};IY(i,"title","title",r),IY(i,"link","link",r),IY(i,"description","description",r);var o=NY("lastBuildDate",r);o&&(i.updated=new Date(o));return IY(i,"author","managingEditor",r,!0),i}(t):null};var PY=["url","type","lang"],jY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function DY(e){return(0,TY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=PY;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=jY;o<a.length;o++){var c;t[c=a[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function MY(e,t){return(0,TY.getElementsByTagName)(e,t,!0,1)[0]}function NY(e,t,n){return void 0===n&&(n=!1),(0,CY.textContent)((0,TY.getElementsByTagName)(e,t,n,1)).trim()}function IY(e,t,n,r,i){void 0===i&&(i=!1);var o=NY(n,r,i);o&&(e[t]=o)}function RY(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}!function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(D$,e),n(uY,e),n(hY,e),n(vY,e),n(bY,e),n(OY,e),n(AY,e);var r=l$;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(j$),function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultHandler=e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var o=qG;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=l$;function c(e,t){var n=new a.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}function s(e,t){return c(e,t).children}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}}),e.parseDocument=c,e.parseDOM=s,e.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new o.Parser(r,t)};var l=HG;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(yG);e.ElementType=u;var f=j$;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return f.getFeed}}),e.parseFeed=function(e,t){return void 0===t&&(t={xmlMode:!0}),(0,f.getFeed)(s(e,t))},e.DomUtils=r(j$)}(BG);var LY=BG.Parser,zY=l$.DomHandler,FY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var BY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new zY(void 0,t);return new LY(n,t).end(e),FY(n.dom)};FG.exports=BY,FG.exports.default=BY;var qY=FG.exports,HY={},VY={};VY.SAME=0;function UY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return WY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WY(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 WY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}VY.CAMELCASE=1,VY.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(HY,"__esModule",{value:!0});function GY(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var $Y={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){$Y[e]=new GY(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=UY(e,2),n=t[0],r=t[1];$Y[n]=new GY(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$Y[e]=new GY(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$Y[e]=new GY(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"].forEach((function(e){$Y[e]=new GY(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$Y[e]=new GY(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){$Y[e]=new GY(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){$Y[e]=new GY(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){$Y[e]=new GY(e,5,!1,e.toLowerCase(),null,!1,!1)}));var YY=/[\-\:]([a-z])/g,XY=function(e){return e[1].toUpperCase()};["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"].forEach((function(e){var t=e.replace(YY,XY);$Y[t]=new GY(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(YY,XY);$Y[t]=new GY(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(YY,XY);$Y[t]=new GY(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){$Y[e]=new GY(e,1,!1,e.toLowerCase(),null,!1,!1)}));$Y.xlinkHref=new GY("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){$Y[e]=new GY(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ZY=VY,KY=ZY.CAMELCASE,JY=ZY.SAME,QY=ZY.possibleStandardNames,eX=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),tX=Object.keys(QY).reduce((function(e,t){var n=QY[t];return n===JY?e[t]=t:n===KY?e[t.toLowerCase()]=t:e[t]=n,e}),{});HY.BOOLEAN=3,HY.BOOLEANISH_STRING=2,HY.NUMERIC=5,HY.OVERLOADED_BOOLEAN=4,HY.POSITIVE_NUMERIC=6,HY.RESERVED=0,HY.STRING=1,HY.getPropertyInfo=function(e){return $Y.hasOwnProperty(e)?$Y[e]:null},HY.isCustomAttribute=eX,HY.possibleStandardNames=tX;var nX={},rX={exports:{}},iX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oX=/\n/g,aX=/^\s*/,cX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sX=/^:\s*/,lX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,uX=/^[;\s]*/,fX=/^\s+|\s+$/g,pX="";function dX(e){return e?e.replace(fX,pX):pX}var hX=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(oX);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function c(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){s(aX)}function u(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;pX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,pX===e.charAt(n-1))return c("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=o(),t=s(cX);if(t){if(f(),!s(sX))return c("property missing ':'");var n=s(lX),r=e({type:"declaration",property:dX(t[0].replace(iX,pX)),value:n?dX(n[0].replace(iX,pX)):pX});return s(uX),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()};function mX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=hX(e),c="function"==typeof t,s=0,l=a.length;s<l;s++)i=(n=a[s]).property,o=n.value,c?t(i,o,n):o&&(r||(r={}),r[i]=o);return r}rX.exports=mX,rX.exports.default=mX;var vX=rX.exports,yX={__esModule:!0,camelCase:void 0},gX=/^--[a-zA-Z0-9-]+$/,bX=/-([a-z])/g,xX=/^[^-]+$/,wX=/^-(webkit|moz|ms|o|khtml)-/,_X=/^-(ms)-/,kX=function(e,t){return t.toUpperCase()},SX=function(e,t){return"".concat(t,"-")};yX.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||xX.test(e)||gX.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(_X,SX):e.replace(wX,SX)).replace(bX,kX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(vX),r=yX;e.default=function(e,t){var i={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)})),i):i}}(nX);var EX=nX.default;var OX={reactCompat:!0};var AX=e.version.split(".")[0]>=16,CX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var TX={PRESERVE_CUSTOM_ATTRIBUTES:AX,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"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}},setStyleProp:function(e,t){if(null!=e)try{t.style=EX(e,OX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!CX.has(e.name)},elementsWithNoTextChildren:CX},PX=HY,jX=TX,DX=function(e,t){var n,r,i,o,a,c={},s=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(n in e)if(i=e[n],PX.isCustomAttribute(n))c[n]=i;else if(o=MX(r=n.toLowerCase()))switch(a=PX.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=MX("default"+r)),c[o]=i,a&&a.type){case PX.BOOLEAN:c[o]=!0;break;case PX.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else jX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return jX.setStyleProp(e.style,c),c};function MX(e){return PX.possibleStandardNames[e]}var NX=e,IX=DX,RX=TX,LX=RX.setStyleProp,zX=RX.canTextBeChildOfNode;function FX(e){return RX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&RX.isCustomComponent(e.name,e.attribs)}var BX=function e(t,n){for(var r,i,o,a,c,s=(n=n||{}).library||NX,l=s.cloneElement,u=s.createElement,f=s.isValidElement,p=[],d="function"==typeof n.replace,h=n.trim,m=0,v=t.length;m<v;m++)if(r=t[m],d&&f(o=n.replace(r)))v>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,FX(r)?LX(a.style,a):a&&(a=IX(a,r.name)),c=null,r.type){case"script":case"style":r.children[0]&&(a.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?a.defaultValue=r.children[0].data:r.children&&r.children.length&&(c=e(r.children,n));break;default:continue}v>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!zX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},qX=vG,HX=qY,VX=DX,UX=BX;HX="function"==typeof HX.default?HX.default:HX;var WX={lowerCaseAttributeNames:!1};function GX(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:UX(HX(e,(t=t||{}).htmlparser2||WX),t)}GX.domToReact=UX,GX.htmlToDOM=HX,GX.attributesToProps=VX,GX.Comment=qX.Comment,GX.Element=qX.Element,GX.ProcessingInstruction=qX.ProcessingInstruction,GX.Text=qX.Text,mG.exports=GX,mG.exports.default=GX;var $X=E(mG.exports);function YX(t){var n,r,i,o=new hG;i=null==(i=t.inline?o.renderInline(null!==(n=t.text)&&void 0!==n?n:""):o.render(null!==(r=t.text)&&void 0!==r?r:""))?void 0:i.trim();var a=$X(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}$X.domToReact,$X.htmlToDOM,$X.attributesToProps,$X.Comment,$X.Element,$X.ProcessingInstruction,$X.Text;function XX(t){return e.createElement(dr,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function ZX(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}_(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function KX(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:ZX(t)},e.createElement(YX,{text:t.text,inline:!0})):null}_(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function JX(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:ZX(t)},e.createElement(YX,{text:t.text})):null}_(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function QX(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:ZX(t)},e.createElement(YX,{text:t.text})):null}_(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function eZ(t){var n=ZX(t);if(t.gradient){var r="LeftToRight"===t.gradient.direction?"linear-gradient(to right, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)"):"linear-gradient(to bottom, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)");n.backgroundImage=r}n.letterSpacing=t.letterSpacing,n.textTransform=t.textTransform,n.backgroundColor=t.backgroundColor;var i=t.text?t.text:br["next-button-text"];return e.createElement("button",{className:"mdhui-step-next-button",style:n,onClick:t.onClick},i)}_(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}");function tZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}_(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function nZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}function rZ(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(XX,null,e.createElement(KX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(JX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement("div",{style:{textAlign:"center",width:"100%"}},e.createElement("iframe",{style:{width:"100%",height:r,border:0},src:"https://www.youtube.com/embed/".concat(t.videoId,"?rel=").concat(0,"&cc_lang_pref=").concat(i,"&controls=").concat(1,"&autoplay=").concat(0,"&fs=").concat(1,"&modestbranding=").concat(1),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),e.createElement(QX,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(eZ,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function iZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(""),d=p[0],h=p[1],m=s(),v=m[0],y=m[1],g=s(),x=g[0],w=g[1],_=s({}),k=_[0],S=_[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),y(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(rZ,{title:n,text:o,transcript:u,nextButtonText:v,height:x,videoId:d,styles:k})}_(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");var oZ=150,aZ=2,cZ=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],sZ=!1,lZ=null,uZ=[],fZ=0;function pZ(e,t,n){return e.color=cZ[Math.random()*cZ.length|0],e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function dZ(){var e=window.innerWidth,t=window.innerHeight,n=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},r=document.getElementById("confetti-canvas");null===r&&((r=document.createElement("canvas")).setAttribute("id","confetti-canvas"),r.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(r),r.width=e,r.height=t,window.addEventListener("resize",(function(){r.width=window.innerWidth,r.height=window.innerHeight}),!0));for(var i=r.getContext("2d");uZ.length<oZ;)uZ.push(pZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));sZ=!0,null===lZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===uZ.length?lZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;fZ+=.01;for(var r=0;r<uZ.length;r++)e=uZ[r],!sZ&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(fZ),e.y+=.5*(Math.cos(fZ)+e.diameter+aZ),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(sZ&&uZ.length<=oZ?pZ(e,t,n):(uZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<uZ.length;r++)t=uZ[r],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,n=t.x+t.tilt,e.moveTo(n+t.diameter/2,t.y),e.lineTo(n,t.y+t.tilt+t.diameter/2),e.stroke()}(i),lZ=n(e))}()}function hZ(t){var n;return dZ(),window.setTimeout((function(){sZ=!1}),1200),e.createElement(XX,null,e.createElement(nZ,{srcUrl:t.iconUrl}),e.createElement(KX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(JX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(QX,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(tZ,{srcUrl:t.imageUrl}),e.createElement(eZ,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function mZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(),d=p[0],h=p[1],m=s(),v=m[0],y=m[1],g=s(),x=g[0],w=g[1],_=s({}),k=_[0],S=_[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),y(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(hZ,{title:n,text:o,detailText:u,iconUrl:d,imageUrl:v,nextButtonText:x,styles:k})}export{j as Action,D as ActivityMeter,Vr as AppDownload,NH as BlankView,R as Button,Tt as Calendar,Pt as Card,jt as CardTitle,hZ as CelebrationStep,mZ as CelebrationStepContainer,Gr as ConnectEhr,IH as ConnectEhrView,Xr as ConnectFitbit,Zr as ConnectGarmin,kq as DailyDataType,Mt as DateRangeNavigator,Nt as DayTrackerSymbol,Pq as DeviceDataMonthChart,jq as DeviceDataMonthCharts,RH as DeviceDataView,Mq as ExternalAccountList,Rq as ExternalAccountsLoadingIndicator,zq as ExternalAccountsPreview,LH as ExternalAccountsView,hr as Face,Zq as FitbitDevices,Jq as FitbitMonthCharts,zH as FitbitView,eH as GarminDevices,tH as GarminMonthCharts,FH as GarminView,qH as HealthAndWellnessView,sH as HealthPreviewSection,vr as Histogram,BH as HomeView,hH as LabResultsSummary,dr as Layout,pr as LayoutContext,I as LoadingIndicator,vH as MostRecentNotification,xr as NavigationBar,bH as NotificationList,HH as NotificationsView,Rr as PlatformSpecificContent,xH as ProjectHeader,SH as ProjectSupport,TH as ProviderSearch,TH as RestingHeartRateCalendar,wr as Section,_r as SegmentedControl,mr as ShinyOverlay,Er as SingleExternalAccount,Or as SingleNotification,Cr as SingleSurveyTask,Tr as SparkBarChart,jr as StatusBarBackground,QX as StepDetailText,tZ as StepImage,nZ as StepImageIcon,XX as StepLayout,YX as StepMarkdown,eZ as StepNextButton,JX as StepText,KX as StepTitle,DH as SurveyTaskList,VH as SurveyTasksView,Pr as Switch,Dr as TextBlock,Mr as TrackerItem,k as UnstyledButton,Nr as ViewHeader,Ir as WeekCalendar,rZ as YouTubeStep,iZ as YouTubeStepContainer,Oq as checkDailyDataAvailability,Aq as queryDailyData,Eq as registerDailyDataProvider,Nq as useInterval};
|
|
215
|
+
39:1},rules:[/^(?:(--[\d\-A-Za-z]*))/,/^(?:\s+)/,/^(?:\*)/,/^(?:\/)/,/^(?:\+)/,/^(?:-)/,/^(?:(\d+(\.\d*)?|\.\d+)px\b)/,/^(?:(\d+(\.\d*)?|\.\d+)cm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)mm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)in\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pt\b)/,/^(?:(\d+(\.\d*)?|\.\d+)pc\b)/,/^(?:(\d+(\.\d*)?|\.\d+)deg\b)/,/^(?:(\d+(\.\d*)?|\.\d+)grad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rad\b)/,/^(?:(\d+(\.\d*)?|\.\d+)turn\b)/,/^(?:(\d+(\.\d*)?|\.\d+)s\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ms\b)/,/^(?:(\d+(\.\d*)?|\.\d+)Hz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)kHz\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpi\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dpcm\b)/,/^(?:(\d+(\.\d*)?|\.\d+)dppx\b)/,/^(?:(\d+(\.\d*)?|\.\d+)em\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ex\b)/,/^(?:(\d+(\.\d*)?|\.\d+)ch\b)/,/^(?:(\d+(\.\d*)?|\.\d+)rem\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vw\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vh\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmin\b)/,/^(?:(\d+(\.\d*)?|\.\d+)vmax\b)/,/^(?:(\d+(\.\d*)?|\.\d+)%)/,/^(?:(\d+(\.\d*)?|\.\d+)\b)/,/^(?:(calc))/,/^(?:(var))/,/^(?:([a-z]+))/,/^(?:\()/,/^(?:\))/,/^(?:,)/,/^(?:$)/],conditions:{INITIAL:{rules:[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],inclusive:!0}}};return t}();function a(){this.yy={}}return i.lexer=o,a.prototype=i,i.Parser=a,new a}();void 0!==Ix&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Rx);var Lx={},zx={exports:{}},Fx={px:{px:1,cm:96/2.54,mm:96/25.4,in:96,pt:96/72,pc:16},cm:{px:2.54/96,cm:1,mm:.1,in:2.54,pt:2.54/72,pc:2.54/6},mm:{px:25.4/96,cm:10,mm:1,in:25.4,pt:25.4/72,pc:25.4/6},in:{px:1/96,cm:1/2.54,mm:1/25.4,in:1,pt:1/72,pc:1/6},pt:{px:.75,cm:72/2.54,mm:72/25.4,in:72,pt:1,pc:12},pc:{px:6/96,cm:6/2.54,mm:6/25.4,in:6,pt:6/72,pc:1},deg:{deg:1,grad:.9,rad:180/Math.PI,turn:360},grad:{deg:400/360,grad:1,rad:200/Math.PI,turn:400},rad:{deg:Math.PI/180,grad:Math.PI/200,rad:1,turn:2*Math.PI},turn:{deg:1/360,grad:1/400,rad:.5/Math.PI,turn:1},s:{s:1,ms:.001},ms:{s:1e3,ms:1},Hz:{Hz:1,kHz:1e3},kHz:{Hz:.001,kHz:1},dpi:{dpi:1,dpcm:1/2.54,dppx:1/96},dpcm:{dpi:2.54,dpcm:1,dppx:2.54/96},dppx:{dpi:96,dpcm:96/2.54,dppx:1}},Bx=function(e,t,n,r){if(!Fx.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Fx[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var i=Fx[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(i*r)/r):i};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Bx);t.default=function(e,t,r){switch(e.type){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":return function(e,t,r){t.type===e.type&&(t={type:e.type,value:(0,n.default)(t.value,t.unit,e.unit,r),unit:e.unit});return{left:e,right:t}}(e,t,r);default:return{left:e,right:t}}},e.exports=t.default}(zx,zx.exports);var qx=zx.exports;Object.defineProperty(Lx,"__esModule",{value:!0}),Lx.flip=Gx;var Hx=function(e){return e&&e.__esModule?e:{default:e}}(qx);function Vx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Hx.default)(e.left,e.right,t),r=Vx(n.left,t),i=Vx(n.right,t);"MathExpression"===r.type&&"MathExpression"===i.type&&("/"===r.operator&&"*"===i.operator||"-"===r.operator&&"+"===i.operator||"*"===r.operator&&"/"===i.operator||"+"===r.operator&&"-"===i.operator)&&(Ux(r.right,i.right)?n=(0,Hx.default)(r.left,i.left,t):Ux(r.right,i.left)&&(n=(0,Hx.default)(r.left,i.right,t)),r=Vx(n.left,t),i=Vx(n.right,t));return e.left=r,e.right=i,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,i=n.right,o=n.operator;if("CssVariable"===r.type||"CssVariable"===i.type)return e;if(0===i.value)return r;if(0===r.value&&"+"===o)return i;if(0===r.value&&"-"===o)return $x(i);r.type===i.type&&Wx(r.type)&&((e=Object.assign({},r)).value="+"===o?r.value+i.value:r.value-i.value);if(Wx(r.type)&&("+"===i.operator||"-"===i.operator)&&"MathExpression"===i.type){if(r.type===i.left.type)return(e=Object.assign({},e)).left=Vx({type:"MathExpression",operator:o,left:r,right:i.left},t),e.right=i.right,e.operator="-"===o?Gx(i.operator):i.operator,Vx(e,t);if(r.type===i.right.type)return(e=Object.assign({},e)).left=Vx({type:"MathExpression",operator:"-"===o?Gx(i.operator):i.operator,left:r,right:i.right},t),e.right=i.left,Vx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Wx(i.type)){if(i.type===r.left.type)return(e=Object.assign({},r)).left=Vx({type:"MathExpression",operator:o,left:r.left,right:i},t),Vx(e,t);if(i.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Vx({type:"MathExpression",operator:"-"===o?"+":"-",left:i,right:r.right},t),e.operator="-"===o?"-":"+"):e.right=Vx({type:"MathExpression",operator:o,left:r.right,right:i},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Vx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Wx(e.right.type))return e;if("Value"!==e.right.type)throw new Error('Cannot divide by "'+e.right.unit+'", number expected');if(0===e.right.value)throw new Error("Cannot divide by zero");if("MathExpression"===e.left.type)return Wx(e.left.left.type)&&Wx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Vx(e.left,t)):e;if(Wx(e.left.type))return e.left.value/=e.right.value,e.left;return e}(e,t);case"*":return function(e){if("MathExpression"===e.left.type&&"Value"===e.right.type){if(Wx(e.left.left.type)&&Wx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Wx(e.left.type)&&"Value"===e.right.type)return e.left.value*=e.right.value,e.left;if("Value"===e.left.type&&"MathExpression"===e.right.type){if(Wx(e.right.left.type)&&Wx(e.right.right.type))return e.right.left.value*=e.left.value,e.right.right.value*=e.left.value,e.right}else if("Value"===e.left.type&&Wx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Vx(e.value,t):e}function Ux(e,t){return e.type===t.type&&e.value===t.value}function Wx(e){switch(e){case"LengthValue":case"AngleValue":case"TimeValue":case"FrequencyValue":case"ResolutionValue":case"EmValue":case"ExValue":case"ChValue":case"RemValue":case"VhValue":case"VwValue":case"VminValue":case"VmaxValue":case"PercentageValue":case"Value":return!0}return!1}function Gx(e){return"+"===e?"-":"+"}function $x(e){return Wx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=$x(e.left),e.right=$x(e.right)),e}Lx.default=Vx;var Yx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=o(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=Lx,r={"*":0,"/":0,"+":1,"-":1};function i(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function o(e,t){switch(e.type){case"MathExpression":var a=e.left,c=e.right,s=e.operator,l="";return"MathExpression"===a.type&&r[s]<r[a.operator]?l+="("+o(a,t)+")":l+=o(a,t),l+=" "+e.operator+" ","MathExpression"===c.type&&r[s]<r[c.operator]?l+="("+o(c,t)+")":"MathExpression"===c.type&&"-"===s&&["+","-"].includes(c.operator)?(c.operator=(0,n.flip)(c.operator),l+=o(c,t)):l+=o(c,t),l;case"Value":return i(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+o(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+o(e.value,t)+")":"calc("+o(e.value,t)+")";default:return i(e.value,t)+e.unit}}e.exports=t.default}(Yx,Yx.exports);var Xx=Yx.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Nx),r=Rx,i=a(Lx),o=a(Xx);function a(e){return e&&e.__esModule?e:{default:e}}var c=/((?:\-[a-z]+\-)?calc)/;t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:5;return(0,n.default)(e).walk((function(e){if("function"===e.type&&c.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var s=r.parser.parse(a),l=(0,i.default)(s,t);e.type="word",e.value=(0,o.default)(e.value,l,t)}}}),!0).toString()},e.exports=t.default}(gx,gx.exports);var Zx=E(gx.exports);function Kx(e){return Kx="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},Kx(e)}function Jx(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qx(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jx(Object(n),!0).forEach((function(t){ew(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jx(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ew(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==Kx(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Kx(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Kx(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tw(e){return function(e){if(Array.isArray(e))return nw(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 nw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return nw(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 nw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var rw={widthCache:{},cacheCount:0},iw={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},ow=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],aw="recharts_measurement_span";var cw=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat(function(e){return e.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(tw(e),["-",t.toLowerCase()]):[].concat(tw(e),[t])}),[]).join("")}(n),":").concat((r=n,i=e[n],ow.indexOf(r)>=0&&i===+i?"".concat(i,"px"):i),";");var r,i}),"")},sw=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||bb.isSsr)return{width:0,height:0};var n="".concat(e),r=cw(t),i="".concat(n,"-").concat(r);if(rw.widthCache[i])return rw.widthCache[i];try{var o=document.getElementById(aw);o||((o=document.createElement("span")).setAttribute("id",aw),o.setAttribute("aria-hidden","true"),document.body.appendChild(o));var a=Qx(Qx({},iw),t);Object.keys(a).map((function(e){return o.style[e]=a[e],e})),o.textContent=n;var c=o.getBoundingClientRect(),s={width:c.width,height:c.height};return rw.widthCache[i]=s,++rw.cacheCount>2e3&&(rw.cacheCount=0,rw.widthCache={}),s}catch(e){return{width:0,height:0}}},lw=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function uw(e){return uw="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},uw(e)}function fw(){return fw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fw.apply(this,arguments)}function pw(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function dw(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kw(r.key),r)}}function hw(e,t){return hw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hw(e,t)}function mw(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 n,r=yw(e);if(t){var i=yw(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===uw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return vw(e)}(this,n)}}function vw(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yw(e){return yw=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yw(e)}function gw(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return bw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bw(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 bw(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ww(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xw(Object(n),!0).forEach((function(t){_w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xw(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _w(e,t,n){return(t=kw(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kw(e){var t=function(e,t){if("object"!==uw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==uw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===uw(t)?t:String(t)}var Sw=/[ \f\n\r\t\v\u2028\u2029]+/,Ew=function(e){try{var t=[];return Pa(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Sw)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:sw(t,e.style).width}})),spaceWidth:e.breakAll?0:sw(" ",e.style).width}}catch(e){return null}},Ow=function(e){return[{words:Pa(e)?[]:e.toString().split(Sw)}]},Aw=function(e,t){if((e.width||e.scaleToFit)&&!bb.isSsr&&t){var n=Ew(e);return n?function(e,t,n,r,i){var o=Ua(e.maxLines),a=e.children,c=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var o=t.word,a=t.width,c=e[e.length-1];if(c&&(null==r||i||c.width+a+n<r))c.words.push(o),c.width+=a+n;else{var s={words:[o],width:a};e.push(s)}return e}),[])},s=c(t);if(!o)return s;for(var l,u=function(t){var n=a.slice(0,t),i=Ew(ww(ww({},e),{},{children:n+"…"})).wordsWithComputedWidth,o=c(i),s=o.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>r;return[s,o]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),m=gw(u(h-1),2),v=m[0],y=m[1],g=gw(u(h),1)[0];if(v||g||(f=h+1),v&&g&&(p=h-1),!v&&g){l=y;break}d++}return l||s}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Ow(e.children)}return Ow(e.children)},Cw=function(t){!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&&hw(e,t)}(a,g);var n,r,i,o=mw(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _w(vw(e=o.call.apply(o,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.dx,r=t.dy,i=t.textAnchor,o=t.verticalAnchor,c=t.scaleToFit,s=t.angle,l=t.lineHeight,u=t.capHeight,f=t.className,p=t.breakAll,d=pw(t,lw),h=this.state.wordsByLines;if(!Wa(d.x)||!Wa(d.y))return null;var m,v=d.x+(Ua(n)?n:0),y=d.y+(Ua(r)?r:0);switch(o){case"start":m=Zx("calc(".concat(u,")"));break;case"middle":m=Zx("calc(".concat((h.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:m=Zx("calc(".concat(h.length-1," * -").concat(l,")"))}var g=[];if(c){var b=h[0].width,x=this.props.width;g.push("scale(".concat((Ua(x)?x/b:1)/b,")"))}return s&&g.push("rotate(".concat(s,", ").concat(v,", ").concat(y,")")),g.length&&(d.transform=g.join(" ")),e.createElement("text",fw({},xc(d,!0),{x:v,y:y,className:Jr("recharts-text",f),textAnchor:i,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(t,n){return e.createElement("tspan",{x:v,dy:0===n?m:l,key:n},t.words.join(p?"":" "))})))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:Aw(e,n)}}return null}}],r&&dw(n.prototype,r),i&&dw(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();_w(Cw,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var Tw=uu;var Pw=E((function(e,t){return Tw(e,t)})),jw=Pi;var Dw=function(e,t,n){for(var r=-1,i=e.length;++r<i;){var o=e[r],a=t(o);if(null!=a&&(void 0===c?a==a&&!jw(a):n(a,c)))var c=a,s=o}return s};var Mw=function(e,t){return e>t},Nw=Dw,Iw=Mw,Rw=Vu;var Lw=function(e){return e&&e.length?Nw(e,Rw,Iw):void 0},zw=E(Lw);var Fw=function(e,t){return e<t},Bw=Dw,qw=Fw,Hw=Vu;var Vw=function(e){return e&&e.length?Bw(e,Hw,qw):void 0},Uw=E(Vw),Ww=ca,Gw=nf,$w=yg,Yw=wi;var Xw=sg,Zw=function(e,t){return(Yw(e)?Ww:$w)(e,Gw(t))};var Kw=E((function(e,t){return Xw(Zw(e,t),1)}));function Jw(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Qw(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function e_(e){let t,n,r;function i(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<0?i=t+1:o=t}while(i<o)}return i}return 2!==e.length?(t=Jw,n=(t,n)=>Jw(e(t),n),r=(t,n)=>e(t)-n):(t=e===Jw||e===Qw?e:t_,n=e,r=e),{left:i,center:function(e,t,n=0,o=e.length){const a=i(e,t,n,o-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,i=0,o=e.length){if(i<o){if(0!==t(r,r))return o;do{const t=i+o>>>1;n(e[t],r)<=0?i=t+1:o=t}while(i<o)}return i}}}function t_(){return 0}function n_(e){return null===e?NaN:+e}const r_=e_(Jw).right;e_(n_).center;class i_ extends Map{constructor(e,t=a_){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(o_(this,e))}has(e){return super.has(o_(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function o_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function a_(e){return null!==e&&"object"==typeof e?e.valueOf():e}function c_(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const s_=Math.sqrt(50),l_=Math.sqrt(10),u_=Math.sqrt(2);function f_(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=s_?10:o>=l_?5:o>=u_?2:1;let c,s,l;return i<0?(l=Math.pow(10,-i)/a,c=Math.round(e*l),s=Math.round(t*l),c/l<e&&++c,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*a,c=Math.round(e/l),s=Math.round(t/l),c*l<e&&++c,s*l>t&&--s),s<c&&.5<=n&&n<2?f_(e,t,2*n):[c,s,l]}function p_(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[i,o,a]=r?f_(t,e,n):f_(e,t,n);if(!(o>=i))return[];const c=o-i+1,s=new Array(c);if(r)if(a<0)for(let e=0;e<c;++e)s[e]=(o-e)/-a;else for(let e=0;e<c;++e)s[e]=(o-e)*a;else if(a<0)for(let e=0;e<c;++e)s[e]=(i+e)/-a;else for(let e=0;e<c;++e)s[e]=(i+e)*a;return s}function d_(e,t,n){return f_(e=+e,t=+t,n=+n)[2]}function h_(e,t,n){n=+n;const r=(t=+t)<(e=+e),i=r?d_(t,e,n):d_(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function m_(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n<t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function v_(e,t){let n;if(void 0===t)for(const t of e)null!=t&&(n>t||void 0===n&&t>=t)&&(n=t);else{let r=-1;for(let i of e)null!=(i=t(i,++r,e))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function y_(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=void 0===i?c_:function(e=Jw){if(e===Jw)return c_;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(i);r>n;){if(r-n>600){const o=r-n+1,a=t-n+1,c=Math.log(o),s=.5*Math.exp(2*c/3),l=.5*Math.sqrt(c*s*(o-s)/o)*(a-o/2<0?-1:1);y_(e,t,Math.max(n,Math.floor(t-a*s/o+l)),Math.min(r,Math.floor(t+(o-a)*s/o+l)),i)}const o=e[t];let a=n,c=r;for(g_(e,n,t),i(e[r],o)>0&&g_(e,n,r);a<c;){for(g_(e,a,c),++a,--c;i(e[a],o)<0;)++a;for(;i(e[c],o)>0;)--c}0===i(e[n],o)?g_(e,n,c):(++c,g_(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function g_(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function b_(e,t,n=n_){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}}function x_(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function w_(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}const __=Symbol("implicit");function k_(){var e=new i_,t=[],n=[],r=__;function i(i){let o=e.get(i);if(void 0===o){if(r!==__)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new i_;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return k_(t,n).unknown(r)},x_.apply(i,arguments),i}function S_(){var e,t,n=k_().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,c=!1,s=0,l=0,u=.5;function f(){var n=r().length,f=a<o,p=f?a:o,d=f?o:a;e=(d-p)/Math.max(1,n-s+2*l),c&&(e=Math.floor(e)),p+=(d-p-e*(n-s))*u,t=e*(1-s),c&&(p=Math.round(p),t=Math.round(t));var h=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o}(n).map((function(t){return p+e*t}));return i(f?h.reverse():h)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),f()):r()},n.range=function(e){return arguments.length?([o,a]=e,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(e){return[o,a]=e,o=+o,a=+a,c=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(c=!!e,f()):c},n.padding=function(e){return arguments.length?(s=Math.min(1,l=+e),f()):s},n.paddingInner=function(e){return arguments.length?(s=Math.min(1,e),f()):s},n.paddingOuter=function(e){return arguments.length?(l=+e,f()):l},n.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),f()):u},n.copy=function(){return S_(r(),[o,a]).round(c).paddingInner(s).paddingOuter(l).align(u)},x_.apply(f(),arguments)}function E_(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return E_(t())},e}function O_(){return E_(S_.apply(null,arguments).paddingInner(1))}function A_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function C_(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function T_(){}var P_=.7,j_=1/P_,D_="\\s*([+-]?\\d+)\\s*",M_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",N_="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",I_=/^#([0-9a-f]{3,8})$/,R_=new RegExp(`^rgb\\(${D_},${D_},${D_}\\)$`),L_=new RegExp(`^rgb\\(${N_},${N_},${N_}\\)$`),z_=new RegExp(`^rgba\\(${D_},${D_},${D_},${M_}\\)$`),F_=new RegExp(`^rgba\\(${N_},${N_},${N_},${M_}\\)$`),B_=new RegExp(`^hsl\\(${M_},${N_},${N_}\\)$`),q_=new RegExp(`^hsla\\(${M_},${N_},${N_},${M_}\\)$`),H_={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 V_(){return this.rgb().formatHex()}function U_(){return this.rgb().formatRgb()}function W_(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=I_.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?G_(t):3===n?new Z_(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?$_(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?$_(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=R_.exec(e))?new Z_(t[1],t[2],t[3],1):(t=L_.exec(e))?new Z_(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=z_.exec(e))?$_(t[1],t[2],t[3],t[4]):(t=F_.exec(e))?$_(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=B_.exec(e))?nk(t[1],t[2]/100,t[3]/100,1):(t=q_.exec(e))?nk(t[1],t[2]/100,t[3]/100,t[4]):H_.hasOwnProperty(e)?G_(H_[e]):"transparent"===e?new Z_(NaN,NaN,NaN,0):null}function G_(e){return new Z_(e>>16&255,e>>8&255,255&e,1)}function $_(e,t,n,r){return r<=0&&(e=t=n=NaN),new Z_(e,t,n,r)}function Y_(e){return e instanceof T_||(e=W_(e)),e?new Z_((e=e.rgb()).r,e.g,e.b,e.opacity):new Z_}function X_(e,t,n,r){return 1===arguments.length?Y_(e):new Z_(e,t,n,null==r?1:r)}function Z_(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function K_(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}`}function J_(){const e=Q_(this.opacity);return`${1===e?"rgb(":"rgba("}${ek(this.r)}, ${ek(this.g)}, ${ek(this.b)}${1===e?")":`, ${e})`}`}function Q_(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ek(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function tk(e){return((e=ek(e))<16?"0":"")+e.toString(16)}function nk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ik(e,t,n,r)}function rk(e){if(e instanceof ik)return new ik(e.h,e.s,e.l,e.opacity);if(e instanceof T_||(e=W_(e)),!e)return new ik;if(e instanceof ik)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=t===o?(n-r)/c+6*(n<r):n===o?(r-t)/c+2:(t-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new ik(a,c,s,e.opacity)}function ik(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ok(e){return(e=(e||0)%360)<0?e+360:e}function ak(e){return Math.max(0,Math.min(1,e||0))}function ck(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}A_(T_,W_,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:V_,formatHex:V_,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return rk(this).formatHsl()},formatRgb:U_,toString:U_}),A_(Z_,X_,C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new Z_(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new Z_(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Z_(ek(this.r),ek(this.g),ek(this.b),Q_(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:K_,formatHex:K_,formatHex8:function(){return`#${tk(this.r)}${tk(this.g)}${tk(this.b)}${tk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:J_,toString:J_})),A_(ik,(function(e,t,n,r){return 1===arguments.length?rk(e):new ik(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new ik(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new ik(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,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Z_(ck(e>=240?e-240:e+120,i,r),ck(e,i,r),ck(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ik(ok(this.h),ak(this.s),ak(this.l),Q_(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=Q_(this.opacity);return`${1===e?"hsl(":"hsla("}${ok(this.h)}, ${100*ak(this.s)}%, ${100*ak(this.l)}%${1===e?")":`, ${e})`}`}}));const sk=Math.PI/180,lk=180/Math.PI,uk=.96422,fk=1,pk=.82521,dk=4/29,hk=6/29,mk=3*hk*hk,vk=hk*hk*hk;function yk(e){if(e instanceof gk)return new gk(e.l,e.a,e.b,e.opacity);if(e instanceof kk)return Sk(e);e instanceof Z_||(e=Y_(e));var t,n,r=_k(e.r),i=_k(e.g),o=_k(e.b),a=bk((.2225045*r+.7168786*i+.0606169*o)/fk);return r===i&&i===o?t=n=a:(t=bk((.4360747*r+.3850649*i+.1430804*o)/uk),n=bk((.0139322*r+.0971045*i+.7141733*o)/pk)),new gk(116*a-16,500*(t-a),200*(a-n),e.opacity)}function gk(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function bk(e){return e>vk?Math.pow(e,1/3):e/mk+dk}function xk(e){return e>hk?e*e*e:mk*(e-dk)}function wk(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function _k(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kk(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Sk(e){if(isNaN(e.h))return new gk(e.l,0,0,e.opacity);var t=e.h*sk;return new gk(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}A_(gk,(function(e,t,n,r){return 1===arguments.length?yk(e):new gk(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return new gk(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new gk(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Z_(wk(3.1338561*(t=uk*xk(t))-1.6168667*(e=fk*xk(e))-.4906146*(n=pk*xk(n))),wk(-.9787684*t+1.9161415*e+.033454*n),wk(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),A_(kk,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kk)return new kk(e.h,e.c,e.l,e.opacity);if(e instanceof gk||(e=yk(e)),0===e.a&&0===e.b)return new kk(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*lk;return new kk(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kk(e,t,n,null==r?1:r)}),C_(T_,{brighter(e){return new kk(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kk(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Sk(this).rgb()}}));var Ek=-.14861,Ok=1.78277,Ak=-.29227,Ck=-.90649,Tk=1.97294,Pk=Tk*Ck,jk=Tk*Ok,Dk=Ok*Ak-Ck*Ek;function Mk(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Nk)return new Nk(e.h,e.s,e.l,e.opacity);e instanceof Z_||(e=Y_(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Dk*r+Pk*t-jk*n)/(Dk+Pk-jk),o=r-i,a=(Tk*(n-i)-Ak*o)/Ck,c=Math.sqrt(a*a+o*o)/(Tk*i*(1-i)),s=c?Math.atan2(a,o)*lk-120:NaN;return new Nk(s<0?s+360:s,c,i,e.opacity)}(e):new Nk(e,t,n,null==r?1:r)}function Nk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}A_(Nk,Mk,C_(T_,{brighter(e){return e=null==e?j_:Math.pow(j_,e),new Nk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?P_:Math.pow(P_,e),new Nk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*sk,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Z_(255*(t+n*(Ek*r+Ok*i)),255*(t+n*(Ak*r+Ck*i)),255*(t+n*(Tk*r)),this.opacity)}}));var Ik=e=>()=>e;function Rk(e,t){return function(n){return e+n*t}}function Lk(e){return 1==(e=+e)?zk:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):Ik(isNaN(t)?n:t)}}function zk(e,t){var n=t-e;return n?Rk(e,n):Ik(isNaN(e)?t:e)}var Fk=function e(t){var n=Lk(t);function r(e,t){var r=n((e=X_(e)).r,(t=X_(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=zk(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Bk(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,i=t.slice();return function(o){for(n=0;n<r;++n)i[n]=e[n]*(1-o)+t[n]*o;return i}}function qk(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yk(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}}function Hk(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Vk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Uk(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Yk(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}}var Wk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gk=new RegExp(Wk.source,"g");function $k(e,t){var n,r,i,o=Wk.lastIndex=Gk.lastIndex=0,a=-1,c=[],s=[];for(e+="",t+="";(n=Wk.exec(e))&&(r=Gk.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:Vk(n,r)})),o=Gk.lastIndex;return o<t.length&&(i=t.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?s[0]?function(e){return function(t){return e(t)+""}}(s[0].x):function(e){return function(){return e}}(t):(t=s.length,function(e){for(var n,r=0;r<t;++r)c[(n=s[r]).i]=n.x(e);return c.join("")})}function Yk(e,t){var n,r=typeof t;return null==t||"boolean"===r?Ik(t):("number"===r?Vk:"string"===r?(n=W_(t))?(t=n,Fk):$k:t instanceof W_?Fk:t instanceof Date?Hk:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Bk:Array.isArray(t)?qk:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Uk:Vk)(e,t)}function Xk(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Zk(e){return((e=Math.exp(e))+1/e)/2}function Kk(e){return function t(n){function r(t,r){var i=e((t=Mk(t)).h,(r=Mk(r)).h),o=zk(t.s,r.s),a=zk(t.l,r.l),c=zk(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=c(e),t+""}}return n=+n,r.gamma=t,r}(1)}function Jk(e,t){void 0===t&&(t=e,e=Yk);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}function Qk(e){return+e}!function e(t,n,r){function i(e,i){var o,a,c=e[0],s=e[1],l=e[2],u=i[0],f=i[1],p=i[2],d=u-c,h=f-s,m=d*d+h*h;if(m<1e-12)a=Math.log(p/l)/t,o=function(e){return[c+e*d,s+e*h,l*Math.exp(t*e*a)]};else{var v=Math.sqrt(m),y=(p*p-l*l+r*m)/(2*l*n*v),g=(p*p-l*l-r*m)/(2*p*n*v),b=Math.log(Math.sqrt(y*y+1)-y),x=Math.log(Math.sqrt(g*g+1)-g);a=(x-b)/t,o=function(e){var r=e*a,i=Zk(b),o=l/(n*v)*(i*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[c+o*d,s+o*h,l*i/Zk(t*r+b)]}}return o.duration=1e3*a*t/Math.SQRT2,o}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i}(Math.SQRT2,2,4),Kk((function(e,t){var n=t-e;return n?Rk(e,n>180||n<-180?n-360*Math.round(n/360):n):Ik(isNaN(e)?t:e)})),Kk(zk);var eS=[0,1];function tS(e){return e}function nS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function rS(e,t,n){var r=e[0],i=e[1],o=t[0],a=t[1];return i<r?(r=nS(i,r),o=n(a,o)):(r=nS(r,i),o=n(o,a)),function(e){return o(r(e))}}function iS(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=nS(e[a],e[a+1]),o[a]=n(t[a],t[a+1]);return function(t){var n=r_(e,t,1,r)-1;return o[n](i[n](t))}}function oS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function aS(){var e,t,n,r,i,o,a=eS,c=eS,s=Yk,l=tS;function u(){var e=Math.min(a.length,c.length);return l!==tS&&(l=function(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}(a[0],a[e-1])),r=e>2?iS:rS,i=o=null,f}function f(t){return null==t||isNaN(t=+t)?n:(i||(i=r(a.map(e),c,s)))(e(l(t)))}return f.invert=function(n){return l(t((o||(o=r(c,a.map(e),Vk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Qk),u()):a.slice()},f.range=function(e){return arguments.length?(c=Array.from(e),u()):c.slice()},f.rangeRound=function(e){return c=Array.from(e),s=Xk,u()},f.clamp=function(e){return arguments.length?(l=!!e||tS,u()):l!==tS},f.interpolate=function(e){return arguments.length?(s=e,u()):s},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,u()}}function cS(){return aS()(tS,tS)}function sS(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function lS(e){return(e=sS(Math.abs(e)))?e[1]:NaN}var uS,fS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pS(e){if(!(t=fS.exec(e)))throw new Error("invalid format: "+e);var t;return new dS({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 dS(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 hS(e,t){var n=sS(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}pS.prototype=dS.prototype,dS.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var mS={"%":(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)=>hS(100*e,t),r:hS,s:function(e,t){var n=sS(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(uS=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+sS(e,Math.max(0,t+o-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function vS(e){return e}var yS,gS,bS,xS=Array.prototype.map,wS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _S(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?vS:(t=xS.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var i=e.length,o=[],a=0,c=t[0],s=0;i>0&&c>0&&(s+c+1>r&&(c=Math.max(1,r-s)),o.push(e.substring(i-=c,i+c)),!((s+=c+1)>r));)c=t[a=(a+1)%t.length];return o.reverse().join(n)}),i=void 0===e.currency?"":e.currency[0]+"",o=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",c=void 0===e.numerals?vS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(xS.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",l=void 0===e.minus?"−":e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=pS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,m=e.comma,v=e.precision,y=e.trim,g=e.type;"n"===g?(m=!0,g="g"):mS[g]||(void 0===v&&(v=12),y=!0,g="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?i:"#"===p&&/[boxX]/.test(g)?"0"+g.toLowerCase():"",x="$"===p?o:/[%p]/.test(g)?s:"",w=mS[g],_=/[defgprs%]/.test(g);function k(e){var i,o,s,p=b,k=x;if("c"===g)k=w(e)+k,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:w(Math.abs(e),v),y&&(e=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(!+e[r])break e;i>0&&(i=0)}return i>0?e.slice(0,i)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),p=(S?"("===f?f:l:"-"===f||"("===f?"":f)+p,k=("s"===g?wS[8+uS/3]:"")+k+(S&&"("===f?")":""),_)for(i=-1,o=e.length;++i<o;)if(48>(s=e.charCodeAt(i))||s>57){k=(46===s?a+e.slice(i+1):e.slice(i))+k,e=e.slice(0,i);break}}m&&!d&&(e=r(e,1/0));var E=p.length+e.length+k.length,O=E<h?new Array(h-E+1).join(t):"";switch(m&&d&&(e=r(O+e,O.length?h-k.length:1/0),O=""),n){case"<":e=p+e+k+O;break;case"=":e=p+O+e+k;break;case"^":e=O.slice(0,E=O.length>>1)+p+e+k+O.slice(E);break;default:e=O+p+e+k}return c(e)}return v=void 0===v?6:/[gprs]/.test(g)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v)),k.toString=function(){return e+""},k}return{format:f,formatPrefix:function(e,t){var n=f(((e=pS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(lS(t)/3))),i=Math.pow(10,-r),o=wS[8+r/3];return function(e){return n(i*e)+o}}}}function kS(e,t,n,r){var i,o=h_(e,t,n);switch((r=pS(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(i=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(lS(t)/3)))-lS(Math.abs(e)))}(o,a))||(r.precision=i),bS(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,lS(t)-lS(e))+1}(o,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(e){return Math.max(0,-lS(Math.abs(e)))}(o))||(r.precision=i-2*("%"===r.type))}return gS(r)}function SS(e){var t=e.domain;return e.ticks=function(e){var n=t();return p_(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return kS(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,i,o=t(),a=0,c=o.length-1,s=o[a],l=o[c],u=10;for(l<s&&(i=s,s=l,l=i,i=a,a=c,c=i);u-- >0;){if((i=d_(s,l,n))===r)return o[a]=s,o[c]=l,t(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return e},e}function ES(){var e=cS();return e.copy=function(){return oS(e,ES())},x_.apply(e,arguments),SS(e)}function OS(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e}function AS(e){return Math.log(e)}function CS(e){return Math.exp(e)}function TS(e){return-Math.log(-e)}function PS(e){return-Math.exp(-e)}function jS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function DS(e){return(t,n)=>-e(-t,n)}function MS(e){const t=e(AS,CS),n=t.domain;let r,i,o=10;function a(){return r=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)}(o),i=function(e){return 10===e?jS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(o),n()[0]<0?(r=DS(r),i=DS(i),e(TS,PS)):e(AS,CS),t}return t.base=function(e){return arguments.length?(o=+e,a()):o},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],c=t[t.length-1];const s=c<a;s&&([a,c]=[c,a]);let l,u,f=r(a),p=r(c);const d=null==e?10:+e;let h=[];if(!(o%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++f)for(l=1;l<o;++l)if(u=f<0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}}else for(;f<=p;++f)for(l=o-1;l>=1;--l)if(u=f>0?l/i(-f):l*i(f),!(u<a)){if(u>c)break;h.push(u)}2*h.length<d&&(h=p_(a,c,d))}else h=p_(f,p,Math.min(p-f,d)).map(i);return s?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===o?"s":","),"function"!=typeof n&&(o%1||null!=(n=pS(n)).precision||(n.trim=!0),n=gS(n)),e===1/0)return n;const a=Math.max(1,o*e/t.ticks().length);return e=>{let t=e/i(Math.round(r(e)));return t*o<o-.5&&(t*=o),t<=a?n(e):""}},t.nice=()=>n(OS(n(),{floor:e=>i(Math.floor(r(e))),ceil:e=>i(Math.ceil(r(e)))})),t}function NS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function IS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function RS(e){var t=1,n=e(NS(t),IS(t));return n.constant=function(n){return arguments.length?e(NS(t=+n),IS(t)):t},SS(n)}function LS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function zS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function FS(e){return e<0?-e*e:e*e}function BS(e){var t=e(tS,tS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(tS,tS):.5===n?e(zS,FS):e(LS(n),LS(1/n)):n},SS(t)}function qS(){var e=BS(aS());return e.copy=function(){return oS(e,qS()).exponent(e.exponent())},x_.apply(e,arguments),e}function HS(e){return Math.sign(e)*e*e}yS=_S({thousands:",",grouping:[3],currency:["$",""]}),gS=yS.format,bS=yS.formatPrefix;const VS=new Date,US=new Date;function WS(e,t,n,r){function i(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{const t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let c;do{a.push(c=new Date(+n)),t(n,o),e(n)}while(c<n&&n<r);return a},i.filter=n=>WS((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(i.count=(t,r)=>(VS.setTime(+t),US.setTime(+r),e(VS),e(US),Math.floor(n(VS,US))),i.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?t=>r(t)%e==0:t=>i.count(0,t)%e==0):i:null)),i}const GS=WS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));GS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?WS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):GS:null),GS.range;const $S=1e3,YS=6e4,XS=36e5,ZS=864e5,KS=6048e5,JS=2592e6,QS=31536e6,eE=WS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*$S)}),((e,t)=>(t-e)/$S),(e=>e.getUTCSeconds()));eE.range;const tE=WS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$S)}),((e,t)=>{e.setTime(+e+t*YS)}),((e,t)=>(t-e)/YS),(e=>e.getMinutes()));tE.range;const nE=WS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*YS)}),((e,t)=>(t-e)/YS),(e=>e.getUTCMinutes()));nE.range;const rE=WS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$S-e.getMinutes()*YS)}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getHours()));rE.range;const iE=WS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getUTCHours()));iE.range;const oE=WS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*YS)/ZS),(e=>e.getDate()-1));oE.range;const aE=WS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ZS),(e=>e.getUTCDate()-1));aE.range;const cE=WS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ZS),(e=>Math.floor(e/ZS)));function sE(e){return WS((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())*YS)/KS))}cE.range;const lE=sE(0),uE=sE(1),fE=sE(2),pE=sE(3),dE=sE(4),hE=sE(5),mE=sE(6);function vE(e){return WS((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)/KS))}lE.range,uE.range,fE.range,pE.range,dE.range,hE.range,mE.range;const yE=vE(0),gE=vE(1),bE=vE(2),xE=vE(3),wE=vE(4),_E=vE(5),kE=vE(6);yE.range,gE.range,bE.range,xE.range,wE.range,_E.range,kE.range;const SE=WS((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()));SE.range;const EE=WS((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()));EE.range;const OE=WS((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()));OE.every=e=>isFinite(e=Math.floor(e))&&e>0?WS((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,OE.range;const AE=WS((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()));function CE(e,t,n,r,i,o){const a=[[eE,1,$S],[eE,5,5e3],[eE,15,15e3],[eE,30,3e4],[o,1,YS],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,XS],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,ZS],[r,2,1728e5],[n,1,KS],[t,1,JS],[t,3,7776e6],[e,1,QS]];function c(t,n,r){const i=Math.abs(n-t)/r,o=e_((([,,e])=>e)).right(a,i);if(o===a.length)return e.every(h_(t/QS,n/QS,r));if(0===o)return GS.every(Math.max(h_(t,n,r),1));const[c,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return c.every(s)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const i=n&&"function"==typeof n.range?n:c(e,t,n),o=i?i.range(e,+t+1):[];return r?o.reverse():o},c]}AE.every=e=>isFinite(e=Math.floor(e))&&e>0?WS((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,AE.range;const[TE,PE]=CE(AE,EE,yE,cE,iE,nE),[jE,DE]=CE(OE,SE,lE,oE,rE,tE);function ME(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 NE(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 IE(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var RE,LE,zE,FE,BE={"-":"",_:" ",0:"0"},qE=/^\s*\d+/,HE=/^%/,VE=/[\\^$*+?|[\]().{}]/g;function UE(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function WE(e){return e.replace(VE,"\\$&")}function GE(e){return new RegExp("^(?:"+e.map(WE).join("|")+")","i")}function $E(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function YE(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function XE(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function ZE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function KE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function JE(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function QE(e,t,n){var r=qE.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function tO(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function nO(e,t,n){var r=qE.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function rO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function iO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function oO(e,t,n){var r=qE.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function aO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function cO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function sO(e,t,n){var r=qE.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function lO(e,t,n){var r=qE.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uO(e,t,n){var r=qE.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function fO(e,t,n){var r=HE.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function pO(e,t,n){var r=qE.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function dO(e,t,n){var r=qE.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function hO(e,t){return UE(e.getDate(),t,2)}function mO(e,t){return UE(e.getHours(),t,2)}function vO(e,t){return UE(e.getHours()%12||12,t,2)}function yO(e,t){return UE(1+oE.count(OE(e),e),t,3)}function gO(e,t){return UE(e.getMilliseconds(),t,3)}function bO(e,t){return gO(e,t)+"000"}function xO(e,t){return UE(e.getMonth()+1,t,2)}function wO(e,t){return UE(e.getMinutes(),t,2)}function _O(e,t){return UE(e.getSeconds(),t,2)}function kO(e){var t=e.getDay();return 0===t?7:t}function SO(e,t){return UE(lE.count(OE(e)-1,e),t,2)}function EO(e){var t=e.getDay();return t>=4||0===t?dE(e):dE.ceil(e)}function OO(e,t){return e=EO(e),UE(dE.count(OE(e),e)+(4===OE(e).getDay()),t,2)}function AO(e){return e.getDay()}function CO(e,t){return UE(uE.count(OE(e)-1,e),t,2)}function TO(e,t){return UE(e.getFullYear()%100,t,2)}function PO(e,t){return UE((e=EO(e)).getFullYear()%100,t,2)}function jO(e,t){return UE(e.getFullYear()%1e4,t,4)}function DO(e,t){var n=e.getDay();return UE((e=n>=4||0===n?dE(e):dE.ceil(e)).getFullYear()%1e4,t,4)}function MO(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+UE(t/60|0,"0",2)+UE(t%60,"0",2)}function NO(e,t){return UE(e.getUTCDate(),t,2)}function IO(e,t){return UE(e.getUTCHours(),t,2)}function RO(e,t){return UE(e.getUTCHours()%12||12,t,2)}function LO(e,t){return UE(1+aE.count(AE(e),e),t,3)}function zO(e,t){return UE(e.getUTCMilliseconds(),t,3)}function FO(e,t){return zO(e,t)+"000"}function BO(e,t){return UE(e.getUTCMonth()+1,t,2)}function qO(e,t){return UE(e.getUTCMinutes(),t,2)}function HO(e,t){return UE(e.getUTCSeconds(),t,2)}function VO(e){var t=e.getUTCDay();return 0===t?7:t}function UO(e,t){return UE(yE.count(AE(e)-1,e),t,2)}function WO(e){var t=e.getUTCDay();return t>=4||0===t?wE(e):wE.ceil(e)}function GO(e,t){return e=WO(e),UE(wE.count(AE(e),e)+(4===AE(e).getUTCDay()),t,2)}function $O(e){return e.getUTCDay()}function YO(e,t){return UE(gE.count(AE(e)-1,e),t,2)}function XO(e,t){return UE(e.getUTCFullYear()%100,t,2)}function ZO(e,t){return UE((e=WO(e)).getUTCFullYear()%100,t,2)}function KO(e,t){return UE(e.getUTCFullYear()%1e4,t,4)}function JO(e,t){var n=e.getUTCDay();return UE((e=n>=4||0===n?wE(e):wE.ceil(e)).getUTCFullYear()%1e4,t,4)}function QO(){return"+0000"}function eA(){return"%"}function tA(e){return+e}function nA(e){return Math.floor(+e/1e3)}!function(e){RE=function(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,c=e.months,s=e.shortMonths,l=GE(i),u=$E(i),f=GE(o),p=$E(o),d=GE(a),h=$E(a),m=GE(c),v=$E(c),y=GE(s),g=$E(s),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return s[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:hO,e:hO,f:bO,g:PO,G:DO,H:mO,I:vO,j:yO,L:gO,m:xO,M:wO,p:function(e){return i[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:tA,s:nA,S:_O,u:kO,U:SO,V:OO,w:AO,W:CO,x:null,X:null,y:TO,Y:jO,Z:MO,"%":eA},x={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return s[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:NO,e:NO,f:FO,g:ZO,G:JO,H:IO,I:RO,j:LO,L:zO,m:BO,M:qO,p:function(e){return i[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:tA,s:nA,S:HO,u:VO,U:UO,V:GO,w:$O,W:YO,x:null,X:null,y:XO,Y:KO,Z:QO,"%":eA},w={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=m.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:iO,e:iO,f:uO,g:eO,G:QE,H:aO,I:aO,j:oO,L:lO,m:rO,M:cO,p:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1},q:nO,Q:pO,s:dO,S:sO,u:XE,U:ZE,V:KE,w:YE,W:JE,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:eO,Y:QE,Z:tO,"%":fO};function _(e,t){return function(n){var r,i,o,a=[],c=-1,s=0,l=e.length;for(n instanceof Date||(n=new Date(+n));++c<l;)37===e.charCodeAt(c)&&(a.push(e.slice(s,c)),null!=(i=BE[r=e.charAt(++c)])?r=e.charAt(++c):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),s=c+1);return a.push(e.slice(s,c)),a.join("")}}function k(e,t){return function(n){var r,i,o=IE(1900,void 0,1);if(S(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(t&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=NE(IE(o.y,0,1))).getUTCDay(),r=i>4||0===i?gE.ceil(r):gE(r),r=aE.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=ME(IE(o.y,0,1))).getDay(),r=i>4||0===i?uE.ceil(r):uE(r),r=oE.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?NE(IE(o.y,0,1)).getUTCDay():ME(IE(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,NE(o)):ME(o)}}function S(e,t,n,r){for(var i,o,a=0,c=t.length,s=n.length;a<c;){if(r>=s)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in BE?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),x.x=_(n,x),x.X=_(r,x),x.c=_(t,x),{format:function(e){var t=_(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=_(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),LE=RE.format,RE.parse,zE=RE.utcFormat,FE=RE.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"]});var rA="%Y-%m-%dT%H:%M:%S.%LZ";function iA(e){return new Date(e)}function oA(e){return e instanceof Date?+e:+new Date(+e)}function aA(e,t,n,r,i,o,a,c,s,l){var u=cS(),f=u.invert,p=u.domain,d=l(".%L"),h=l(":%S"),m=l("%I:%M"),v=l("%I %p"),y=l("%a %d"),g=l("%b %d"),b=l("%B"),x=l("%Y");function w(e){return(s(e)<e?d:c(e)<e?h:a(e)<e?m:o(e)<e?v:r(e)<e?i(e)<e?y:g:n(e)<e?b:x)(e)}return u.invert=function(e){return new Date(f(e))},u.domain=function(e){return arguments.length?p(Array.from(e,oA)):p().map(iA)},u.ticks=function(t){var n=p();return e(n[0],n[n.length-1],null==t?10:t)},u.tickFormat=function(e,t){return null==t?w:l(t)},u.nice=function(e){var n=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(OS(n,e)):u},u.copy=function(){return oS(u,aA(e,t,n,r,i,o,a,c,s,l))},u}function cA(){var e,t,n,r,i,o=0,a=1,c=tS,s=!1;function l(t){return null==t||isNaN(t=+t)?i:c(0===n?.5:(t=(r(t)-e)*n,s?Math.max(0,Math.min(1,t)):t))}function u(e){return function(t){var n,r;return arguments.length?([n,r]=t,c=e(n,r),l):[c(0),c(1)]}}return l.domain=function(i){return arguments.length?([o,a]=i,e=r(o=+o),t=r(a=+a),n=e===t?0:1/(t-e),l):[o,a]},l.clamp=function(e){return arguments.length?(s=!!e,l):s},l.interpolator=function(e){return arguments.length?(c=e,l):c},l.range=u(Yk),l.rangeRound=u(Xk),l.unknown=function(e){return arguments.length?(i=e,l):i},function(i){return r=i,e=i(o),t=i(a),n=e===t?0:1/(t-e),l}}function sA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function lA(){var e=BS(cA());return e.copy=function(){return sA(e,lA()).exponent(e.exponent())},w_.apply(e,arguments)}function uA(){var e,t,n,r,i,o,a,c=0,s=.5,l=1,u=1,f=tS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+o(e))-t)*(u*e<u*t?r:i),f(p?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,f=Jk(e,[n,r,i]),d):[f(0),f(.5),f(1)]}}return d.domain=function(a){return arguments.length?([c,s,l]=a,e=o(c=+c),t=o(s=+s),n=o(l=+l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d):[c,s,l]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(Yk),d.rangeRound=h(Xk),d.unknown=function(e){return arguments.length?(a=e,d):a},function(a){return o=a,e=a(c),t=a(s),n=a(l),r=e===t?0:.5/(t-e),i=t===n?0:.5/(n-t),u=t<e?-1:1,d}}function fA(){var e=BS(uA());return e.copy=function(){return sA(e,fA()).exponent(e.exponent())},w_.apply(e,arguments)}Date.prototype.toISOString||zE(rA),+new Date("2000-01-01T00:00:00.000Z")||FE(rA);var pA,dA=Object.freeze({__proto__:null,scaleBand:S_,scalePoint:O_,scaleIdentity:function e(t){var n;function r(e){return null==e||isNaN(e=+e)?n:e}return r.invert=r,r.domain=r.range=function(e){return arguments.length?(t=Array.from(e,Qk),r):t.slice()},r.unknown=function(e){return arguments.length?(n=e,r):n},r.copy=function(){return e(t).unknown(n)},t=arguments.length?Array.from(t,Qk):[0,1],SS(r)},scaleLinear:ES,scaleLog:function e(){const t=MS(aS()).domain([1,10]);return t.copy=()=>oS(t,e()).base(t.base()),x_.apply(t,arguments),t},scaleSymlog:function e(){var t=RS(aS());return t.copy=function(){return oS(t,e()).constant(t.constant())},x_.apply(t,arguments)},scaleOrdinal:k_,scaleImplicit:__,scalePow:qS,scaleSqrt:function(){return qS.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=cS(),r=[0,1],i=!1;function o(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:i?Math.round(r):r}return o.invert=function(e){return n.invert(HS(e))},o.domain=function(e){return arguments.length?(n.domain(e),o):n.domain()},o.range=function(e){return arguments.length?(n.range((r=Array.from(e,Qk)).map(HS)),o):r.slice()},o.rangeRound=function(e){return o.range(e).round(!0)},o.round=function(e){return arguments.length?(i=!!e,o):i},o.clamp=function(e){return arguments.length?(n.clamp(e),o):n.clamp()},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(n.domain(),r).round(i).clamp(n.clamp()).unknown(t)},x_.apply(o,arguments),SS(o)},scaleQuantile:function e(){var t,n=[],r=[],i=[];function o(){var e=0,t=Math.max(1,r.length);for(i=new Array(t-1);++e<t;)i[e-1]=b_(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[r_(i,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?i[t-1]:n[0],t<i.length?i[t]:n[n.length-1]]},a.domain=function(e){if(!arguments.length)return n.slice();n=[];for(let t of e)null==t||isNaN(t=+t)||n.push(t);return n.sort(Jw),o()},a.range=function(e){return arguments.length?(r=Array.from(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return i.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},x_.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,i=1,o=[.5],a=[0,1];function c(e){return null!=e&&e<=e?a[r_(o,e,0,i)]:t}function s(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*r-(e-i)*n)/(i+1);return c}return c.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,s()):[n,r]},c.range=function(e){return arguments.length?(i=(a=Array.from(e)).length-1,s()):a.slice()},c.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,o[0]]:t>=i?[o[i-1],r]:[o[t-1],o[t]]},c.unknown=function(e){return arguments.length?(t=e,c):c},c.thresholds=function(){return o.slice()},c.copy=function(){return e().domain([n,r]).range(a).unknown(t)},x_.apply(SS(c),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],i=1;function o(e){return null!=e&&e<=e?r[r_(n,e,0,i)]:t}return o.domain=function(e){return arguments.length?(n=Array.from(e),i=Math.min(n.length,r.length-1),o):n.slice()},o.range=function(e){return arguments.length?(r=Array.from(e),i=Math.min(n.length,r.length-1),o):r.slice()},o.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(n).range(r).unknown(t)},x_.apply(o,arguments)},scaleTime:function(){return x_.apply(aA(jE,DE,OE,SE,lE,oE,rE,tE,eE,LE).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return x_.apply(aA(TE,PE,AE,EE,yE,aE,iE,nE,eE,zE).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=SS(cA()(tS));return t.copy=function(){return sA(t,e())},w_.apply(t,arguments)},scaleSequentialLog:function e(){var t=MS(cA()).domain([1,10]);return t.copy=function(){return sA(t,e()).base(t.base())},w_.apply(t,arguments)},scaleSequentialPow:lA,scaleSequentialSqrt:function(){return lA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=RS(cA());return t.copy=function(){return sA(t,e()).constant(t.constant())},w_.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=tS;function r(e){if(null!=e&&!isNaN(e=+e))return n((r_(t,e,1)-1)/(t.length-1))}return r.domain=function(e){if(!arguments.length)return t.slice();t=[];for(let n of e)null==n||isNaN(n=+n)||t.push(n);return t.sort(Jw),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return v_(e);if(t>=1)return m_(e);var r,i=(r-1)*t,o=Math.floor(i),a=m_(y_(e,o).subarray(0,o+1));return a+(v_(e.subarray(o+1))-a)*(i-o)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},w_.apply(r,arguments)},scaleDiverging:function e(){var t=SS(uA()(tS));return t.copy=function(){return sA(t,e())},w_.apply(t,arguments)},scaleDivergingLog:function e(){var t=MS(uA()).domain([.1,1,10]);return t.copy=function(){return sA(t,e()).base(t.base())},w_.apply(t,arguments)},scaleDivergingPow:fA,scaleDivergingSqrt:function(){return fA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=RS(uA());return t.copy=function(){return sA(t,e()).constant(t.constant())},w_.apply(t,arguments)},tickFormat:kS}),hA={},mA={},vA=1e9,yA=!0,gA="[DecimalError] ",bA=gA+"Invalid argument: ",xA=gA+"Exponent out of range: ",wA=Math.floor,_A=Math.pow,kA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,SA=1e7,EA=7,OA=9007199254740991,AA=wA(OA/EA),CA={};function TA(e,t){var n,r,i,o,a,c,s,l,u=e.constructor,f=u.precision;if(!e.s||!t.s)return t.s||(t=new u(e)),yA?FA(t,f):t;if(s=e.d,l=t.d,a=e.e,i=t.e,s=s.slice(),o=a-i){for(o<0?(r=s,o=-o,c=l.length):(r=l,i=a,c=s.length),o>(c=(a=Math.ceil(f/EA))>c?a+1:c+1)&&(o=c,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((c=s.length)-(o=l.length)<0&&(o=c,r=l,l=s,s=r),n=0;o;)n=(s[--o]=s[o]+l[o]+n)/SA|0,s[o]%=SA;for(n&&(s.unshift(n),++i),c=s.length;0==s[--c];)s.pop();return t.d=s,t.e=i,yA?FA(t,f):t}function PA(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bA+e)}function jA(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",(n=EA-r.length)&&(o+=RA(n)),o+=r;a=e[t],(n=EA-(r=a+"").length)&&(o+=RA(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return o+a}CA.absoluteValue=CA.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},CA.comparedTo=CA.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},CA.decimalPlaces=CA.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*EA;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},CA.dividedBy=CA.div=function(e){return DA(this,new this.constructor(e))},CA.dividedToIntegerBy=CA.idiv=function(e){var t=this.constructor;return FA(DA(this,new t(e),0,1),t.precision)},CA.equals=CA.eq=function(e){return!this.cmp(e)},CA.exponent=function(){return NA(this)},CA.greaterThan=CA.gt=function(e){return this.cmp(e)>0},CA.greaterThanOrEqualTo=CA.gte=function(e){return this.cmp(e)>=0},CA.isInteger=CA.isint=function(){return this.e>this.d.length-2},CA.isNegative=CA.isneg=function(){return this.s<0},CA.isPositive=CA.ispos=function(){return this.s>0},CA.isZero=function(){return 0===this.s},CA.lessThan=CA.lt=function(e){return this.cmp(e)<0},CA.lessThanOrEqualTo=CA.lte=function(e){return this.cmp(e)<1},CA.logarithm=CA.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(pA))throw Error(gA+"NaN");if(n.s<1)throw Error(gA+(n.s?"NaN":"-Infinity"));return n.eq(pA)?new r(0):(yA=!1,t=DA(LA(n,o),LA(e,o),o),yA=!0,FA(t,i))},CA.minus=CA.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?BA(t,e):TA(t,(e.s=-e.s,e))},CA.modulo=CA.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(gA+"NaN");return n.s?(yA=!1,t=DA(n,e,0,1).times(e),yA=!0,n.minus(t)):FA(new r(n),i)},CA.naturalExponential=CA.exp=function(){return MA(this)},CA.naturalLogarithm=CA.ln=function(){return LA(this)},CA.negated=CA.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},CA.plus=CA.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?TA(t,e):BA(t,(e.s=-e.s,e))},CA.precision=CA.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(bA+e);if(t=NA(i)+1,n=(r=i.d.length-1)*EA+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},CA.squareRoot=CA.sqrt=function(){var e,t,n,r,i,o,a,c=this,s=c.constructor;if(c.s<1){if(!c.s)return new s(0);throw Error(gA+"NaN")}for(e=NA(c),yA=!1,0==(i=Math.sqrt(+c))||i==1/0?(((t=jA(c.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=wA((e+1)/2)-(e<0||e%2),r=new s(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new s(i.toString()),i=a=(n=s.precision)+3;;)if(r=(o=r).plus(DA(c,o,a+2)).times(.5),jA(o.d).slice(0,a)===(t=jA(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(FA(o,n+1,0),o.times(o).eq(c)){r=o;break}}else if("9999"!=t)break;a+=4}return yA=!0,FA(r,n)},CA.times=CA.mul=function(e){var t,n,r,i,o,a,c,s,l,u=this,f=u.constructor,p=u.d,d=(e=new f(e)).d;if(!u.s||!e.s)return new f(0);for(e.s*=u.s,n=u.e+e.e,(s=p.length)<(l=d.length)&&(o=p,p=d,d=o,a=s,s=l,l=a),o=[],r=a=s+l;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=s+r;i>r;)c=o[i]+d[r]*p[i-r-1]+t,o[i--]=c%SA|0,t=c/SA|0;o[i]=(o[i]+t)%SA|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,yA?FA(e,f.precision):e},CA.toDecimalPlaces=CA.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(PA(e,0,vA),void 0===t?t=r.rounding:PA(t,0,8),FA(n,e+NA(n)+1,t))},CA.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=qA(r,!0):(PA(e,0,vA),void 0===t?t=i.rounding:PA(t,0,8),n=qA(r=FA(new i(r),e+1,t),!0,e+1)),n},CA.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?qA(i):(PA(e,0,vA),void 0===t?t=o.rounding:PA(t,0,8),n=qA((r=FA(new o(i),e+NA(i)+1,t)).abs(),!1,e+NA(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},CA.toInteger=CA.toint=function(){var e=this,t=e.constructor;return FA(new t(e),NA(e)+1,t.rounding)},CA.toNumber=function(){return+this},CA.toPower=CA.pow=function(e){var t,n,r,i,o,a,c=this,s=c.constructor,l=+(e=new s(e));if(!e.s)return new s(pA);if(!(c=new s(c)).s){if(e.s<1)throw Error(gA+"Infinity");return c}if(c.eq(pA))return c;if(r=s.precision,e.eq(pA))return FA(c,r);if(a=(t=e.e)>=(n=e.d.length-1),o=c.s,a){if((n=l<0?-l:l)<=OA){for(i=new s(pA),t=Math.ceil(r/EA+4),yA=!1;n%2&&HA((i=i.times(c)).d,t),0!==(n=wA(n/2));)HA((c=c.times(c)).d,t);return yA=!0,e.s<0?new s(pA).div(i):FA(i,r)}}else if(o<0)throw Error(gA+"NaN");return o=o<0&&1&e.d[Math.max(t,n)]?-1:1,c.s=1,yA=!1,i=e.times(LA(c,r+12)),yA=!0,(i=MA(i)).s=o,i},CA.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=qA(i,(n=NA(i))<=o.toExpNeg||n>=o.toExpPos):(PA(e,1,vA),void 0===t?t=o.rounding:PA(t,0,8),r=qA(i=FA(new o(i),e,t),e<=(n=NA(i))||n<=o.toExpNeg,e)),r},CA.toSignificantDigits=CA.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(PA(e,1,vA),void 0===t?t=n.rounding:PA(t,0,8)),FA(new n(this),e,t)},CA.toString=CA.valueOf=CA.val=CA.toJSON=CA[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=NA(e),n=e.constructor;return qA(e,t<=n.toExpNeg||t>=n.toExpPos)};var DA=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%SA|0,r=n/SA|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*SA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S,E=r.constructor,O=r.s==i.s?1:-1,A=r.d,C=i.d;if(!r.s)return new E(r);if(!i.s)throw Error(gA+"Division by zero");for(s=r.e-i.e,k=C.length,w=A.length,h=(d=new E(O)).d=[],l=0;C[l]==(A[l]||0);)++l;if(C[l]>(A[l]||0)&&--s,(g=null==o?o=E.precision:a?o+(NA(r)-NA(i))+1:o)<0)return new E(0);if(g=g/EA+2|0,l=0,1==k)for(u=0,C=C[0],g++;(l<w||u)&&g--;l++)b=u*SA+(A[l]||0),h[l]=b/C|0,u=b%C|0;else{for((u=SA/(C[0]+1)|0)>1&&(C=e(C,u),A=e(A,u),k=C.length,w=A.length),x=k,v=(m=A.slice(0,k)).length;v<k;)m[v++]=0;(S=C.slice()).unshift(0),_=C[0],C[1]>=SA/2&&++_;do{u=0,(c=t(C,m,k,v))<0?(y=m[0],k!=v&&(y=y*SA+(m[1]||0)),(u=y/_|0)>1?(u>=SA&&(u=SA-1),1==(c=t(f=e(C,u),m,p=f.length,v=m.length))&&(u--,n(f,k<p?S:C,p))):(0==u&&(c=u=1),f=C.slice()),(p=f.length)<v&&f.unshift(0),n(m,f,v),-1==c&&(c=t(C,m,k,v=m.length))<1&&(u++,n(m,k<v?S:C,v)),v=m.length):0===c&&(u++,m=[0]),h[l++]=u,c&&m[0]?m[v++]=A[x]||0:(m=[A[x]],v=1)}while((x++<w||void 0!==m[0])&&g--)}return h[0]||h.shift(),d.e=s,FA(d,a?o+NA(d)+1:o)}}();function MA(e,t){var n,r,i,o,a,c=0,s=0,l=e.constructor,u=l.precision;if(NA(e)>16)throw Error(xA+NA(e));if(!e.s)return new l(pA);for(null==t?(yA=!1,a=u):a=t,o=new l(.03125);e.abs().gte(.1);)e=e.times(o),s+=5;for(a+=Math.log(_A(2,s))/Math.LN10*2+5|0,n=r=i=new l(pA),l.precision=a;;){if(r=FA(r.times(e),a),n=n.times(++c),jA((o=i.plus(DA(r,n,a))).d).slice(0,a)===jA(i.d).slice(0,a)){for(;s--;)i=FA(i.times(i),a);return l.precision=u,null==t?(yA=!0,FA(i,u)):i}i=o}}function NA(e){for(var t=e.e*EA,n=e.d[0];n>=10;n/=10)t++;return t}function IA(e,t,n){if(t>e.LN10.sd())throw yA=!0,n&&(e.precision=n),Error(gA+"LN10 precision limit exceeded");return FA(new e(e.LN10),t)}function RA(e){for(var t="";e--;)t+="0";return t}function LA(e,t){var n,r,i,o,a,c,s,l,u,f=1,p=e,d=p.d,h=p.constructor,m=h.precision;if(p.s<1)throw Error(gA+(p.s?"NaN":"-Infinity"));if(p.eq(pA))return new h(0);if(null==t?(yA=!1,l=m):l=t,p.eq(10))return null==t&&(yA=!0),IA(h,l);if(l+=10,h.precision=l,r=(n=jA(d)).charAt(0),o=NA(p),!(Math.abs(o)<15e14))return s=IA(h,l+2,m).times(o+""),p=LA(new h(r+"."+n.slice(1)),l-10).plus(s),h.precision=m,null==t?(yA=!0,FA(p,m)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=jA((p=p.times(e)).d)).charAt(0),f++;for(o=NA(p),r>1?(p=new h("0."+n),o++):p=new h(r+"."+n.slice(1)),c=a=p=DA(p.minus(pA),p.plus(pA),l),u=FA(p.times(p),l),i=3;;){if(a=FA(a.times(u),l),jA((s=c.plus(DA(a,new h(i),l))).d).slice(0,l)===jA(c.d).slice(0,l))return c=c.times(2),0!==o&&(c=c.plus(IA(h,l+2,m).times(o+""))),c=DA(c,new h(f),l),h.precision=m,null==t?(yA=!0,FA(c,m)):c;c=s,i+=2}}function zA(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=wA(n/EA),e.d=[],r=(n+1)%EA,n<0&&(r+=EA),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=EA;r<i;)e.d.push(+t.slice(r,r+=EA));t=t.slice(r),r=EA-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),yA&&(e.e>AA||e.e<-AA))throw Error(xA+n)}else e.s=0,e.e=0,e.d=[0];return e}function FA(e,t,n){var r,i,o,a,c,s,l,u,f=e.d;for(a=1,o=f[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=EA,i=t,l=f[u=0];else{if((u=Math.ceil((r+1)/EA))>=(o=f.length))return e;for(l=o=f[u],a=1;o>=10;o/=10)a++;i=(r%=EA)-EA+a}if(void 0!==n&&(c=l/(o=_A(10,a-i-1))%10|0,s=t<0||void 0!==f[u+1]||l%o,s=n<4?(c||s)&&(0==n||n==(e.s<0?3:2)):c>5||5==c&&(4==n||s||6==n&&(r>0?i>0?l/_A(10,a-i):0:f[u-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(o=NA(e),f.length=1,t=t-o-1,f[0]=_A(10,(EA-t%EA)%EA),e.e=wA(-t/EA)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=u,o=1,u--):(f.length=u+1,o=_A(10,EA-r),f[u]=i>0?(l/_A(10,a-i)%_A(10,i)|0)*o:0),s)for(;;){if(0==u){(f[0]+=o)==SA&&(f[0]=1,++e.e);break}if(f[u]+=o,f[u]!=SA)break;f[u--]=0,o=1}for(r=f.length;0===f[--r];)f.pop();if(yA&&(e.e>AA||e.e<-AA))throw Error(xA+NA(e));return e}function BA(e,t){var n,r,i,o,a,c,s,l,u,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),yA?FA(t,d):t;if(s=e.d,f=t.d,r=t.e,l=e.e,s=s.slice(),a=l-r){for((u=a<0)?(n=s,a=-a,c=f.length):(n=f,r=l,c=s.length),a>(i=Math.max(Math.ceil(d/EA),c)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((u=(i=s.length)<(c=f.length))&&(c=i),i=0;i<c;i++)if(s[i]!=f[i]){u=s[i]<f[i];break}a=0}for(u&&(n=s,s=f,f=n,t.s=-t.s),c=s.length,i=f.length-c;i>0;--i)s[c++]=0;for(i=f.length;i>a;){if(s[--i]<f[i]){for(o=i;o&&0===s[--o];)s[o]=SA-1;--s[o],s[i]+=SA}s[i]-=f[i]}for(;0===s[--c];)s.pop();for(;0===s[0];s.shift())--r;return s[0]?(t.d=s,t.e=r,yA?FA(t,d):t):new p(0)}function qA(e,t,n){var r,i=NA(e),o=jA(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+RA(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+RA(-i-1)+o,n&&(r=n-a)>0&&(o+=RA(r))):i>=a?(o+=RA(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+RA(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=RA(r))),e.s<0?"-"+o:o}function HA(e,t){if(e.length>t)return e.length=t,!0}function VA(e){if(!e||"object"!=typeof e)throw Error(gA+"Object expected");var t,n,r,i=["precision",1,vA,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(wA(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(bA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(bA+n+": "+r);this[n]=new this(r)}return this}var UA=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)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(bA+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])):zA(t,e.toString())}if("string"!=typeof e)throw Error(bA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!kA.test(e))throw Error(bA+e);zA(t,e)}if(o.prototype=CA,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=VA,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});pA=new UA(1);var WA=UA,GA=O(Object.freeze({__proto__:null,get Decimal(){return UA},default:WA})),$A={};function YA(e){return function(e){if(Array.isArray(e))return XA(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 XA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return XA(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 XA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty($A,"__esModule",{value:!0}),$A.memoize=$A.reverse=$A.compose=$A.map=$A.range=$A.curry=$A.PLACE_HOLDER=void 0;var ZA=function(e){return e},KA={"@@functional/placeholder":!0};$A.PLACE_HOLDER=KA;var JA=function(e){return e===KA},QA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&JA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},eC=function e(t,n){return 1===t?n:QA((function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var a=i.filter((function(e){return e!==KA})).length;return a>=t?n.apply(void 0,i):e(t-a,QA((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var o=i.map((function(e){return JA(e)?t.shift():e}));return n.apply(void 0,YA(o).concat(t))})))}))},tC=function(e){return eC(e.length,e)};$A.curry=tC;$A.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var nC=tC((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));$A.map=nC;$A.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return ZA;var r=t.reverse(),i=r[0],o=r.slice(1);return function(){return o.reduce((function(e,t){return t(e)}),i.apply(void 0,arguments))}};$A.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};$A.memoize=function(e){var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((function(e,n){return e===t[n]}))?n:(t=i,n=e.apply(void 0,i))}};var rC={};Object.defineProperty(rC,"__esModule",{value:!0}),rC.default=void 0;var iC=function(e){return e&&e.__esModule?e:{default:e}}(GA),oC=$A;var aC=(0,oC.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),cC=(0,oC.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),sC=(0,oC.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),lC={rangeStep:function(e,t,n){for(var r=new iC.default(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o},getDigitCount:function(e){return 0===e?1:Math.floor(new iC.default(e).abs().log(10).toNumber())+1},interpolateNumber:aC,uninterpolateNumber:cC,uninterpolateTruncation:sC};rC.default=lC,Object.defineProperty(mA,"__esModule",{value:!0}),mA.getTickValuesFixedDomain=mA.getTickValues=mA.getNiceTickValues=void 0;var uC=dC(GA),fC=$A,pC=dC(rC);function dC(e){return e&&e.__esModule?e:{default:e}}function hC(e){return function(e){if(Array.isArray(e))return yC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||vC(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 mC(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 n=[],r=!0,i=!1,o=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}(e,t)||vC(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 vC(e,t){if(e){if("string"==typeof e)return yC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?yC(e,t):void 0}}function yC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function gC(e){var t=mC(e,2),n=t[0],r=t[1],i=n,o=r;return n>r&&(i=r,o=n),[i,o]}function bC(e,t,n){if(e.lte(0))return new uC.default(0);var r=pC.default.getDigitCount(e.toNumber()),i=new uC.default(10).pow(r),o=e.div(i),a=1!==r?.05:.1,c=new uC.default(Math.ceil(o.div(a).toNumber())).add(n).mul(a).mul(i);return t?c:new uC.default(Math.ceil(c))}function xC(e,t,n){var r=1,i=new uC.default(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new uC.default(10).pow(pC.default.getDigitCount(e)-1),i=new uC.default(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new uC.default(Math.floor(e)))}else 0===e?i=new uC.default(Math.floor((t-1)/2)):n||(i=new uC.default(Math.floor(e)));var a=Math.floor((t-1)/2),c=(0,fC.compose)((0,fC.map)((function(e){return i.add(new uC.default(e-a).mul(r)).toNumber()})),fC.range);return c(0,t)}function wC(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new uC.default(0),tickMin:new uC.default(0),tickMax:new uC.default(0)};var o,a=bC(new uC.default(t).sub(e).div(n-1),r,i);o=e<=0&&t>=0?new uC.default(0):(o=new uC.default(e).add(t).div(2)).sub(new uC.default(o).mod(a));var c=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new uC.default(t).sub(o).div(a).toNumber()),l=c+s+1;return l>n?wC(e,t,n,r,i+1):(l<n&&(s=t>0?s+(n-l):s,c=t>0?c:c+(n-l)),{step:a,tickMin:o.sub(new uC.default(c).mul(a)),tickMax:o.add(new uC.default(s).mul(a))})}var _C=(0,fC.memoize)((function(e){var t=mC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=mC(gC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0){var u=l===1/0?[s].concat(hC((0,fC.range)(0,i-1).map((function(){return 1/0})))):[].concat(hC((0,fC.range)(0,i-1).map((function(){return-1/0}))),[l]);return n>r?(0,fC.reverse)(u):u}if(s===l)return xC(s,i,o);var f=wC(s,l,a,o),p=f.step,d=f.tickMin,h=f.tickMax,m=pC.default.rangeStep(d,h.add(new uC.default(.1).mul(p)),p);return n>r?(0,fC.reverse)(m):m}));mA.getNiceTickValues=_C;var kC=(0,fC.memoize)((function(e){var t=mC(e,2),n=t[0],r=t[1],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(i,2),c=mC(gC([n,r]),2),s=c[0],l=c[1];if(s===-1/0||l===1/0)return[n,r];if(s===l)return xC(s,i,o);var u=bC(new uC.default(l).sub(s).div(a-1),o,0),f=(0,fC.compose)((0,fC.map)((function(e){return new uC.default(s).add(new uC.default(e).mul(u)).toNumber()})),fC.range),p=f(0,a).filter((function(e){return e>=s&&e<=l}));return n>r?(0,fC.reverse)(p):p}));mA.getTickValues=kC;var SC=(0,fC.memoize)((function(e,t){var n=mC(e,2),r=n[0],i=n[1],o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=mC(gC([r,i]),2),c=a[0],s=a[1];if(c===-1/0||s===1/0)return[r,i];if(c===s)return[c];var l=Math.max(t,2),u=bC(new uC.default(s).sub(c).div(l-1),o,0),f=[].concat(hC(pC.default.rangeStep(new uC.default(c),new uC.default(s).sub(new uC.default(.99).mul(u)),u)),[s]);return r>i?(0,fC.reverse)(f):f}));mA.getTickValuesFixedDomain=SC,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=mA}(hA);var EC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function OC(){return OC=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OC.apply(this,arguments)}function AC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return CC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CC(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 CC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function TC(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function PC(t){var n=t.offset,r=t.layout,i=t.width,o=t.dataKey,a=t.data,c=t.dataPointFormatter,s=t.xAxis,l=t.yAxis,u=TC(t,EC),f=xc(u),p=a.map((function(t,a){var u=c(t,o),p=u.x,d=u.y,h=u.value,m=u.errorVal;if(!m)return null;var v,y,g=[];if(Array.isArray(m)){var b=AC(m,2);v=b[0],y=b[1]}else v=y=m;if("vertical"===r){var x=s.scale,w=d+n,_=w+i,k=w-i,S=x(h-v),E=x(h+y);g.push({x1:E,y1:_,x2:E,y2:k}),g.push({x1:S,y1:w,x2:E,y2:w}),g.push({x1:S,y1:_,x2:S,y2:k})}else if("horizontal"===r){var O=l.scale,A=p+n,C=A-i,T=A+i,P=O(h-v),j=O(h+y);g.push({x1:C,y1:j,x2:T,y2:j}),g.push({x1:A,y1:P,x2:A,y2:j}),g.push({x1:C,y1:P,x2:T,y2:P})}return e.createElement(jc,OC({className:"recharts-errorBar",key:"bar-".concat(a)},f),g.map((function(t,n){return e.createElement("line",OC({},t,{key:"line-".concat(n)}))})))}));return e.createElement(jc,{className:"recharts-errorBars"},p)}function jC(e){return jC="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},jC(e)}function DC(e){return function(e){if(Array.isArray(e))return MC(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 MC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return MC(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 MC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function NC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NC(Object(n),!0).forEach((function(t){RC(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NC(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RC(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jC(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jC(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LC(e,t,n){return Pa(e)||Pa(t)?n:Wa(t)?Ca(e,t,n):xi(t)?t(e):n}function zC(e,t,n,r){var i=Kw(e,(function(e){return LC(e,t)}));if("number"===n){var o=i.filter((function(e){return Ua(e)||parseFloat(e)}));return o.length?[Uw(o),zw(o)]:[1/0,-1/0]}return(r?i.filter((function(e){return!Pa(e)})):i).map((function(e){return Wa(e)||e instanceof Date?e:""}))}PC.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},PC.displayName="ErrorBar";var FC=function(e){var t,n=e.type.displayName,r=e.props,i=r.stroke,o=r.fill;switch(n){case"Line":t=i;break;case"Area":case"Radar":t=i&&"none"!==i?i:o;break;default:t=o}return t},BC=function(e){var t,n=e.children,r=e.formattedGraphicalItems,i=e.legendWidth,o=e.legendContent,a=mc(n,Zd);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===o?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,i=r.sectors||r.data||[];return e.concat(i.map((function(e){return{type:a.props.iconType||n.props.legendType,value:e.name,color:e.fill,payload:e}})))}),[]):(r||[]).map((function(e){var t=e.item,n=t.props,r=n.dataKey,i=n.name,o=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||o||"square",color:FC(t),value:i||r,payload:t.props}})),IC(IC(IC({},a.props),Zd.getWithHeight(a,i)),{},{payload:t,item:a})):null},qC=function(e,t,n,r,i){var o=hc(t.props.children,PC).filter((function(e){return function(e,t,n){return!!Pa(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,i,e.props.direction)}));if(o&&o.length){var a=o.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=LC(t,n,0),i=_i(r)?[Uw(r),zw(r)]:[r,r],o=a.reduce((function(e,n){var r=LC(t,n,0),o=i[0]-Math.abs(_i(r)?r[0]:r),a=i[1]+Math.abs(_i(r)?r[1]:r);return[Math.min(o,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(o[0],e[0]),Math.max(o[1],e[1])]}),[1/0,-1/0])}return null},HC=function(e,t,n,r,i){var o=t.map((function(t){var o=t.props.dataKey;return"number"===n&&o&&qC(e,t,o,r)||zC(e,o,n,i)}));if("number"===n)return o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return o.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},VC=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},UC=function(e,t,n){var r,i,o=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(i=!0),e.coordinate}));return r||o.push(t),i||o.push(n),o},WC=function(e,t,n){if(!e)return null;var r=e.scale,i=e.duplicateDomain,o=e.type,a=e.range,c="scaleBand"===e.realScaleType?r.bandwidth()/2:2,s=(t||n)&&"category"===o&&r.bandwidth?r.bandwidth()/c:0;return s="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Ha(a[0]-a[1])*s:s,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=i?i.indexOf(e):e;return{coordinate:r(t)+s,value:e,offset:s}})).filter((function(e){return!qa(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+s,value:e,index:t,offset:s}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+s,value:e,offset:s}})):r.domain().map((function(e,t){return{coordinate:r(e)+s,value:i?i[e]:e,index:t,offset:s}}))},GC=function(e,t,n){var r;return xi(n)?r=n:xi(t)&&(r=t),xi(e)||r?function(t,n,i,o){xi(e)&&e(t,n,i,o),xi(r)&&r(t,n,i,o)}:null},$C=function(e,t,n){var r=e.scale,i=e.type,o=e.layout,a=e.axisType;if("auto"===r)return"radial"===o&&"radiusAxis"===a?{scale:S_(),realScaleType:"band"}:"radial"===o&&"angleAxis"===a?{scale:ES(),realScaleType:"linear"}:"category"===i&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:O_(),realScaleType:"point"}:"category"===i?{scale:S_(),realScaleType:"band"}:{scale:ES(),realScaleType:"linear"};if(Ai(r)){var c="scale".concat(tp(r));return{scale:(dA[c]||O_)(),realScaleType:dA[c]?c:"point"}}return xi(r)?{scale:r}:{scale:O_(),realScaleType:"point"}},YC=1e-4,XC=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-YC,o=Math.max(r[0],r[1])+YC,a=e(t[0]),c=e(t[n-1]);(a<i||a>o||c<i||c>o)&&e.domain([t[0],t[n-1]])}},ZC=function(e,t){if(!e)return null;for(var n=0,r=e.length;n<r;n++)if(e[n].item===t)return e[n].position;return null},KC=function(e,t){if(!t||2!==t.length||!Ua(t[0])||!Ua(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Ua(e[0])||e[0]<n)&&(i[0]=n),(!Ua(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},JC={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,a=0;a<t;++a){var c=qa(e[a][n][1])?e[a][n][0]:e[a][n][1];c>=0?(e[a][n][0]=i,e[a][n][1]=i+c,i=e[a][n][1]):(e[a][n][0]=o,e[a][n][1]=o+c,o=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}ud(e,t)}},none:ud,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,c=0;a<n;++a)c+=e[a][r][1]||0;i[r][1]+=i[r][0]=-c/2}ud(e,t)}},wiggle:function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var c=0,s=0,l=0;c<i;++c){for(var u=e[t[c]],f=u[a][1]||0,p=(f-(u[a-1][1]||0))/2,d=0;d<c;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}s+=f,l+=p*f}n[a-1][1]+=n[a-1][0]=o,s&&(o-=l/s)}n[a-1][1]+=n[a-1][0]=o,ud(e,t)}},positive:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var a=qa(e[o][n][1])?e[o][n][0]:e[o][n][1];a>=0?(e[o][n][0]=i,e[o][n][1]=i+a,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}}},QC=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),i=function(){var e=np([]),t=fd,n=ud,r=pd;function i(i){var o,a,c=Array.from(e.apply(this,arguments),dd),s=c.length,l=-1;for(const e of i)for(o=0,++l;o<s;++o)(c[o][l]=[0,+r(e,c[o].key,l,i)]).data=e;for(o=0,a=mp(t(c));o<s;++o)c[a[o]].index=o;return n(c,a),c}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:np(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:np(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?fd:"function"==typeof e?e:np(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?ud:e,i):n},i}().keys(r).value((function(e,t){return+LC(e,t,0)})).order(fd).offset(JC[n]);return i(e)},eT=function(e,t){var n=t.realScaleType,r=t.type,i=t.tickCount,o=t.originalDomain,a=t.allowDecimals,c=n||t.scale;if("auto"!==c&&"linear"!==c)return null;if(i&&"number"===r&&o&&("auto"===o[0]||"auto"===o[1])){var s=e.domain();if(!s.length)return null;var l=hA.getNiceTickValues(s,i,a);return e.domain([Uw(l),zw(l)]),{niceTicks:l}}if(i&&"number"===r){var u=e.domain();return{niceTicks:hA.getTickValuesFixedDomain(u,i,a)}}return null},tT=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,o=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Pa(i[t.dataKey])){var c=Ka(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var s=LC(i,Pa(a)?t.dataKey:a);return Pa(s)?null:t.scale(s)},nT=function(e){var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,o=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var c=LC(o,t.dataKey,t.domain[a]);return Pa(c)?null:t.scale(c)-i/2+r},rT=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},iT=function(e,t,n){return Object.keys(e).reduce((function(r,i){var o=e[i].stackedData.reduce((function(e,r){var i=r.slice(t,n+1).reduce((function(e,t){return[Uw(t.concat([e[0]]).filter(Ua)),zw(t.concat([e[1]]).filter(Ua))]}),[1/0,-1/0]);return[Math.min(e[0],i[0]),Math.max(e[1],i[1])]}),[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},oT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,aT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,cT=function(e,t,n){if(xi(e))return e(t,n);if(!_i(e))return t;var r=[];if(Ua(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(oT.test(e[0])){var i=+oT.exec(e[0])[1];r[0]=t[0]-i}else xi(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ua(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(aT.test(e[1])){var o=+aT.exec(e[1])[1];r[1]=t[1]+o}else xi(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},sT=function(e,t,n){if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=ob(t,(function(e){return e.coordinate})),o=1/0,a=1,c=i.length;a<c;a++){var s=i[a],l=i[a-1];o=Math.min((s.coordinate||0)-(l.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},lT=function(e,t,n){return e&&e.length?Pw(e,Ca(n,"type.defaultProps.domain"))?t:e:t},uT=function(e,t){var n=e.props,r=n.dataKey,i=n.name,o=n.unit,a=n.formatter,c=n.tooltipType,s=n.chartType;return IC(IC({},xc(e)),{},{dataKey:r,unit:o,formatter:a,name:i||r,color:FC(e),value:LC(t,r),type:c,payload:t,chartType:s})};function fT(e){return fT="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},fT(e)}function pT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pT(Object(n),!0).forEach((function(t){hT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==fT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return vT(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 vT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yT=Math.PI/180,gT=function(e){return 180*e/Math.PI},bT=function(e,t,n,r){return{x:e+Math.cos(-yT*r)*n,y:t+Math.sin(-yT*r)*n}},xT=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(e-(n.left||0)-(n.right||0)),Math.abs(t-(n.top||0)-(n.bottom||0)))/2},wT=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.startAngle,s=e.endAngle,l=Ya(e.cx,o,o/2),u=Ya(e.cy,a,a/2),f=xT(o,a,n),p=Ya(e.innerRadius,f,0),d=Ya(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var o,a=t[n],f=a.domain,h=a.reversed;if(Pa(a.range))"angleAxis"===r?o=[c,s]:"radiusAxis"===r&&(o=[p,d]),h&&(o=[o[1],o[0]]);else{var m=mT(o=a.range,2);c=m[0],s=m[1]}var v=$C(a,i),y=v.realScaleType,g=v.scale;g.domain(f).range(o),XC(g);var b=eT(g,dT(dT({},a),{},{realScaleType:y})),x=dT(dT(dT({},a),b),{},{range:o,radius:d,realScaleType:y,scale:g,cx:l,cy:u,innerRadius:p,outerRadius:d,startAngle:c,endAngle:s});return dT(dT({},e),{},hT({},n,x))}),{})},_T=function(e,t){var n=e.x,r=e.y,i=t.cx,o=t.cy,a=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return Math.sqrt(Math.pow(n-i,2)+Math.pow(r-o,2))}({x:n,y:r},{x:i,y:o});if(a<=0)return{radius:a};var c=(n-i)/a,s=Math.acos(c);return r>o&&(s=2*Math.PI-s),{radius:a,angle:gT(s),angleInRadian:s}},kT=function(e,t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),o=Math.floor(r/360);return e+360*Math.min(i,o)},ST=function(e,t){var n=e.x,r=e.y,i=_T({x:n,y:r},t),o=i.radius,a=i.angle,c=t.innerRadius,s=t.outerRadius;if(o<c||o>s)return!1;if(0===o)return!0;var l,u=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-360*o,endAngle:n-360*o}}(t),f=u.startAngle,p=u.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;l=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;l=d>=p&&d<=f}return l?dT(dT({},t),{},{radius:o,angle:kT(d,t)}):null};function ET(e){return ET="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},ET(e)}function OT(e){return function(e){if(Array.isArray(e))return AT(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 AT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AT(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 AT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function TT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?CT(Object(n),!0).forEach((function(t){PT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ET(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ET(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ET(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}var DT=function(e){var t=e.value,n=e.formatter,r=Pa(e.children)?t:e.children;return xi(n)?n(r):r},MT=function(t,n,r){var i,o,a=t.position,c=t.viewBox,s=t.offset,l=t.className,u=c,f=u.cx,p=u.cy,d=u.innerRadius,h=u.outerRadius,m=u.startAngle,v=u.endAngle,y=u.clockWise,g=(d+h)/2,b=function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),360)}(m,v),x=b>=0?1:-1;"insideStart"===a?(i=m+x*s,o=y):"insideEnd"===a?(i=v-x*s,o=!y):"end"===a&&(i=v+x*s,o=y),o=b<=0?o:!o;var w=bT(f,p,g,i),_=bT(f,p,g,i+359*(o?1:-1)),k="M".concat(w.x,",").concat(w.y,"\n A").concat(g,",").concat(g,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=Pa(t.id)?$a("recharts-radial-line-"):t.id;return e.createElement("text",jT({},r,{dominantBaseline:"central",className:Jr("recharts-radial-bar-label",l)}),e.createElement("defs",null,e.createElement("path",{id:S,d:k})),e.createElement("textPath",{xlinkHref:"#".concat(S)},n))},NT=function(e){var t=e.viewBox,n=e.offset,r=e.position,i=t,o=i.cx,a=i.cy,c=i.innerRadius,s=i.outerRadius,l=(i.startAngle+i.endAngle)/2;if("outside"===r){var u=bT(o,a,s+n,l),f=u.x;return{x:f,y:u.y,textAnchor:f>=o?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:o,y:a,textAnchor:"middle",verticalAnchor:"end"};var p=bT(o,a,(c+s)/2,l);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},IT=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,i=e.position,o=t,a=o.x,c=o.y,s=o.width,l=o.height,u=l>=0?1:-1,f=u*r,p=u>0?"end":"start",d=u>0?"start":"end",h=s>=0?1:-1,m=h*r,v=h>0?"end":"start",y=h>0?"start":"end";if("top"===i)return TT(TT({},{x:a+s/2,y:c-u*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(c-n.y,0),width:s}:{});if("bottom"===i)return TT(TT({},{x:a+s/2,y:c+l+f,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(n.y+n.height-(c+l),0),width:s}:{});if("left"===i){var g={x:a-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"};return TT(TT({},g),n?{width:Math.max(g.x-n.x,0),height:l}:{})}if("right"===i){var b={x:a+s+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"};return TT(TT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:l}:{})}var x=n?{width:s,height:l}:{};return"insideLeft"===i?TT({x:a+m,y:c+l/2,textAnchor:y,verticalAnchor:"middle"},x):"insideRight"===i?TT({x:a+s-m,y:c+l/2,textAnchor:v,verticalAnchor:"middle"},x):"insideTop"===i?TT({x:a+s/2,y:c+f,textAnchor:"middle",verticalAnchor:d},x):"insideBottom"===i?TT({x:a+s/2,y:c+l-f,textAnchor:"middle",verticalAnchor:p},x):"insideTopLeft"===i?TT({x:a+m,y:c+f,textAnchor:y,verticalAnchor:d},x):"insideTopRight"===i?TT({x:a+s-m,y:c+f,textAnchor:v,verticalAnchor:d},x):"insideBottomLeft"===i?TT({x:a+m,y:c+l-f,textAnchor:y,verticalAnchor:p},x):"insideBottomRight"===i?TT({x:a+s-m,y:c+l-f,textAnchor:v,verticalAnchor:p},x):ei(i)&&(Ua(i.x)||Va(i.x))&&(Ua(i.y)||Va(i.y))?TT({x:a+Ya(i.x,s),y:c+Ya(i.y,l),textAnchor:"end",verticalAnchor:"end"},x):TT({x:a+s/2,y:c+l/2,textAnchor:"middle",verticalAnchor:"middle"},x)},RT=function(e){return"cx"in e&&Ua(e.cx)};function LT(t){var r,i=t.viewBox,o=t.position,a=t.value,c=t.children,s=t.content,l=t.className,f=void 0===l?"":l,p=t.textBreakAll;if(!i||Pa(a)&&Pa(c)&&!u(s)&&!xi(s))return null;if(u(s))return d(s,t);if(xi(s)){if(u(r=n(s,t)))return r}else r=DT(t);var h=RT(i),m=xc(t,!0);if(h&&("insideStart"===o||"insideEnd"===o||"end"===o))return MT(t,r,m);var v=h?NT(t):IT(t);return e.createElement(Cw,jT({className:Jr("recharts-label",f)},m,v,{breakAll:p}),r)}LT.displayName="Label",LT.defaultProps={offset:5};var zT=function(e){var t=e.cx,n=e.cy,r=e.angle,i=e.startAngle,o=e.endAngle,a=e.r,c=e.radius,s=e.innerRadius,l=e.outerRadius,u=e.x,f=e.y,p=e.top,d=e.left,h=e.width,m=e.height,v=e.clockWise,y=e.labelViewBox;if(y)return y;if(Ua(h)&&Ua(m)){if(Ua(u)&&Ua(f))return{x:u,y:f,width:h,height:m};if(Ua(p)&&Ua(d))return{x:p,y:d,width:h,height:m}}return Ua(u)&&Ua(f)?{x:u,y:f,width:0,height:0}:Ua(t)&&Ua(n)?{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:s||0,outerRadius:l||c||a||0,clockWise:v}:e.viewBox?e.viewBox:{}};LT.parseViewBox=zT,LT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=t.children,o=zT(t),a=hc(i,LT).map((function(e,t){return d(e,{viewBox:n||o,key:"label-".concat(t)})}));if(!r)return a;var c=function(t,n){return t?!0===t?e.createElement(LT,{key:"label-implicit",viewBox:n}):Wa(t)?e.createElement(LT,{key:"label-implicit",viewBox:n,value:t}):u(t)?t.type===LT?d(t,{key:"label-implicit",viewBox:n}):e.createElement(LT,{key:"label-implicit",content:t,viewBox:n}):xi(t)?e.createElement(LT,{key:"label-implicit",content:t,viewBox:n}):ei(t)?e.createElement(LT,jT({viewBox:n},t,{key:"label-implicit"})):null:null}(t.label,n||o);return[c].concat(OT(a))};var FT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},BT=E(FT);function qT(e){return qT="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},qT(e)}var HT=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function VT(e){return function(e){if(Array.isArray(e))return UT(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 UT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UT(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 UT(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WT(){return WT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WT.apply(this,arguments)}function GT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GT(Object(n),!0).forEach((function(t){YT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==qT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==qT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===qT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XT(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var ZT={valueAccessor:function(e){return _i(e.value)?BT(e.value):e.value}};function KT(t){var n=t.data,r=t.valueAccessor,i=t.dataKey,o=t.clockWise,a=t.id,c=t.textBreakAll,s=XT(t,HT);return n&&n.length?e.createElement(jc,{className:"recharts-label-list"},n.map((function(t,n){var l=Pa(i)?r(t,n):LC(t&&t.payload,i),u=Pa(a)?{}:{id:"".concat(a,"-").concat(n)};return e.createElement(LT,WT({},xc(t,!0),s,u,{parentViewBox:t.parentViewBox,index:n,value:l,textBreakAll:c,viewBox:LT.parseViewBox(Pa(o)?t:$T($T({},t),{},{clockWise:o})),key:"label-".concat(n)}))}))):null}function JT(e){return JT="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},JT(e)}function QT(){return QT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QT.apply(this,arguments)}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,iP(r.key),r)}}function tP(e,t){return tP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tP(e,t)}function nP(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 n,r=rP(e);if(t){var i=rP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JT(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)}(this,n)}}function rP(e){return rP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rP(e)}function iP(e){var t=function(e,t){if("object"!==JT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JT(t)?t:String(t)}KT.displayName="LabelList",KT.renderCallByParent=function(t,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!t||!t.children&&r&&!t.label)return null;var i=hc(t.children,KT).map((function(e,t){return d(e,{data:n,key:"labelList-".concat(t)})}));return r?[function(t,n){return t?!0===t?e.createElement(KT,{key:"labelList-implicit",data:n}):e.isValidElement(t)||xi(t)?e.createElement(KT,{key:"labelList-implicit",data:n,content:t}):ei(t)?e.createElement(KT,WT({data:n},t,{key:"labelList-implicit"})):null:null}(t.label,n)].concat(VT(i)):i},KT.defaultProps=ZT;var oP=function(e){var t=e.cx,n=e.cy,r=e.radius,i=e.angle,o=e.sign,a=e.isExternal,c=e.cornerRadius,s=e.cornerIsExternal,l=c*(a?1:-1)+r,u=Math.asin(c/l)/yT,f=s?i:i+o*u,p=s?i-o*u:i;return{center:bT(t,n,l,f),circleTangency:bT(t,n,r,f),lineTangency:bT(t,n,l*Math.cos(u*yT),p),theta:u}},aP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.startAngle,a=function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),359.999)}(o,e.endAngle),c=o+a,s=bT(t,n,i,o),l=bT(t,n,i,c),u="M ".concat(s.x,",").concat(s.y,"\n A ").concat(i,",").concat(i,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o>c),",\n ").concat(l.x,",").concat(l.y,"\n ");if(r>0){var f=bT(t,n,r,o),p=bT(t,n,r,c);u+="L ".concat(p.x,",").concat(p.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(o<=c),",\n ").concat(f.x,",").concat(f.y," Z")}else u+="L ".concat(t,",").concat(n," Z");return u},cP=function(t){!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&&tP(e,t)}(a,p);var n,r,i,o=nP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.cornerRadius,c=t.forceCornerRadius,s=t.cornerIsExternal,l=t.startAngle,u=t.endAngle,f=t.className;if(o<i||l===u)return null;var p,d=Jr("recharts-sector",f),h=o-i,m=Ya(a,h,0,!0);return p=m>0&&Math.abs(l-u)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,i=e.outerRadius,o=e.cornerRadius,a=e.forceCornerRadius,c=e.cornerIsExternal,s=e.startAngle,l=e.endAngle,u=Ha(l-s),f=oP({cx:t,cy:n,radius:i,angle:s,sign:u,cornerRadius:o,cornerIsExternal:c}),p=f.circleTangency,d=f.lineTangency,h=f.theta,m=oP({cx:t,cy:n,radius:i,angle:l,sign:-u,cornerRadius:o,cornerIsExternal:c}),v=m.circleTangency,y=m.lineTangency,g=m.theta,b=c?Math.abs(s-l):Math.abs(s-l)-h-g;if(b<0)return a?"M ".concat(d.x,",").concat(d.y,"\n a").concat(o,",").concat(o,",0,0,1,").concat(2*o,",0\n a").concat(o,",").concat(o,",0,0,1,").concat(2*-o,",0\n "):aP({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:s,endAngle:l});var x="M ".concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,").concat(+(b>180),",").concat(+(u<0),",").concat(v.x,",").concat(v.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(y.x,",").concat(y.y,"\n ");if(r>0){var w=oP({cx:t,cy:n,radius:r,angle:s,sign:u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),_=w.circleTangency,k=w.lineTangency,S=w.theta,E=oP({cx:t,cy:n,radius:r,angle:l,sign:-u,isExternal:!0,cornerRadius:o,cornerIsExternal:c}),O=E.circleTangency,A=E.lineTangency,C=E.theta,T=c?Math.abs(s-l):Math.abs(s-l)-S-C;if(T<0&&0===o)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+="L".concat(A.x,",").concat(A.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(O.x,",").concat(O.y,"\n A").concat(r,",").concat(r,",0,").concat(+(T>180),",").concat(+(u>0),",").concat(_.x,",").concat(_.y,"\n A").concat(o,",").concat(o,",0,0,").concat(+(u<0),",").concat(k.x,",").concat(k.y,"Z")}else x+="L".concat(t,",").concat(n,"Z");return x}({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,h/2),forceCornerRadius:c,cornerIsExternal:s,startAngle:l,endAngle:u}):aP({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:l,endAngle:u}),e.createElement("path",QT({},xc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&eP(n.prototype,r),i&&eP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function sP(e){return sP="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},sP(e)}function lP(){return lP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lP.apply(this,arguments)}function uP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uP(Object(n),!0).forEach((function(t){vP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yP(r.key),r)}}function dP(e,t){return dP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dP(e,t)}function hP(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 n,r=mP(e);if(t){var i=mP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===sP(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)}(this,n)}}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function vP(e,t,n){return(t=yP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yP(e){var t=function(e,t){if("object"!==sP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==sP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===sP(t)?t:String(t)}!function(e,t,n){(t=iP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(cP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var gP={curveBasisClosed:function(e){return new Hp(e)},curveBasisOpen:function(e){return new Vp(e)},curveBasis:function(e){return new qp(e)},curveLinearClosed:function(e){return new Qp(e)},curveLinear:yp,curveMonotoneX:function(e){return new id(e)},curveMonotoneY:function(e){return new od(e)},curveNatural:function(e){return new cd(e)},curveStep:function(e){return new ld(e,.5)},curveStepAfter:function(e){return new ld(e,1)},curveStepBefore:function(e){return new ld(e,0)}},bP=function(e){return e.x===+e.x&&e.y===+e.y},xP=function(e){return e.x},wP=function(e){return e.y},_P=function(t){!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&&dP(e,t)}(a,p);var n,r,i,o=hP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,i=t.baseLine,o=t.layout,a=t.connectNulls,c=function(e,t){if(xi(e))return e;var n="curve".concat(tp(e));return"curveMonotone"===n&&t?gP["".concat(n).concat("vertical"===t?"Y":"X")]:gP[n]||yp}(n,o),s=a?r.filter((function(e){return bP(e)})):r;if(_i(i)){var l=a?i.filter((function(e){return bP(e)})):i,u=s.map((function(e,t){return fP(fP({},e),{},{base:l[t]})}));return(e="vertical"===o?wp().y(wP).x1(xP).x0((function(e){return e.base.x})):wp().x(xP).y1(wP).y0((function(e){return e.base.y}))).defined(bP).curve(c),e(u)}return(e="vertical"===o&&Ua(i)?wp().y(wP).x1(xP).x0(i):Ua(i)?wp().x(xP).y1(wP).y0(i):xp().x(xP).y(wP)).defined(bP).curve(c),e(s)}},{key:"render",value:function(){var t=this.props,n=t.className,r=t.points,i=t.path,o=t.pathRef;if(!(r&&r.length||i))return null;var a=r&&r.length?this.getPath():i;return e.createElement("path",lP({},xc(this.props),ic(this.props),{className:Jr("recharts-curve",n),d:a,ref:o}))}}],r&&pP(n.prototype,r),i&&pP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function kP(e){return kP="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},kP(e)}function SP(){return SP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SP.apply(this,arguments)}function EP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jP(r.key),r)}}function OP(e,t){return OP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OP(e,t)}function AP(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 n,r=TP(e);if(t){var i=TP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return CP(e)}(this,n)}}function CP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function TP(e){return TP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},TP(e)}function PP(e,t,n){return(t=jP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e){var t=function(e,t){if("object"!==kP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kP(t)?t:String(t)}vP(_P,"defaultProps",{type:"linear",points:[],connectNulls:!1});var DP=function(e,t,n,r,i){var o,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),c=r>=0?1:-1,s=n>=0?1:-1,l=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&i instanceof Array){for(var u=[0,0,0,0],f=0;f<4;f++)u[f]=i[f]>a?a:i[f];o="M".concat(e,",").concat(t+c*u[0]),u[0]>0&&(o+="A ".concat(u[0],",").concat(u[0],",0,0,").concat(l,",").concat(e+s*u[0],",").concat(t)),o+="L ".concat(e+n-s*u[1],",").concat(t),u[1]>0&&(o+="A ".concat(u[1],",").concat(u[1],",0,0,").concat(l,",\n ").concat(e+n,",").concat(t+c*u[1])),o+="L ".concat(e+n,",").concat(t+r-c*u[2]),u[2]>0&&(o+="A ".concat(u[2],",").concat(u[2],",0,0,").concat(l,",\n ").concat(e+n-s*u[2],",").concat(t+r)),o+="L ".concat(e+s*u[3],",").concat(t+r),u[3]>0&&(o+="A ".concat(u[3],",").concat(u[3],",0,0,").concat(l,",\n ").concat(e,",").concat(t+r-c*u[3])),o+="Z"}else if(a>0&&i===+i&&i>0){var p=Math.min(a,i);o="M ".concat(e,",").concat(t+c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+s*p,",").concat(t,"\n L ").concat(e+n-s*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n,",").concat(t+c*p,"\n L ").concat(e+n,",").concat(t+r-c*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e+n-s*p,",").concat(t+r,"\n L ").concat(e+s*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(l,",").concat(e,",").concat(t+r-c*p," Z")}else o="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return o},MP=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,i=t.x,o=t.y,a=t.width,c=t.height;if(Math.abs(a)>0&&Math.abs(c)>0){var s=Math.min(i,i+a),l=Math.max(i,i+a),u=Math.min(o,o+c),f=Math.max(o,o+c);return n>=s&&n<=l&&r>=u&&r<=f}return!1},NP=function(t){!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&&OP(e,t)}(a,p);var n,r,i,o=AP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return PP(CP(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.width,a=n.height,c=n.radius,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isAnimationActive,m=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||0===o||0===a)return null;var v=Jr("recharts-rectangle",s);return m?e.createElement(ng,{canBegin:l>0,from:{width:o,height:a,x:r,y:i},to:{width:o,height:a,x:r,y:i},duration:p,animationEasing:f,isActive:m},(function(n){var r=n.width,i=n.height,o=n.x,a=n.y;return e.createElement(ng,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},e.createElement("path",SP({},xc(t.props,!0),{className:v,d:DP(o,a,r,i,c),ref:function(e){t.node=e}})))})):e.createElement("path",SP({},xc(this.props,!0),{className:v,d:DP(r,i,o,a,c)}))}}],r&&EP(n.prototype,r),i&&EP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function IP(e){return IP="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},IP(e)}PP(NP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var RP=["points","className","baseLinePoints","connectNulls"];function LP(){return LP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LP.apply(this,arguments)}function zP(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==IP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==IP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===IP(o)?o:String(o)),r)}var i,o}function BP(e,t){return BP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BP(e,t)}function qP(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 n,r=HP(e);if(t){var i=HP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===IP(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)}(this,n)}}function HP(e){return HP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HP(e)}function VP(e){return function(e){if(Array.isArray(e))return UP(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 UP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UP(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 UP(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var WP=function(e){return e&&e.x===+e.x&&e.y===+e.y},GP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){WP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),WP(e[0])&&t[t.length-1].push(e[0]),t[t.length-1].length<=0&&(t=t.slice(0,-1)),t}(e);t&&(n=[n.reduce((function(e,t){return[].concat(VP(e),VP(t))}),[])]);var r=n.map((function(e){return e.reduce((function(e,t,n){return"".concat(e).concat(0===n?"M":"L").concat(t.x,",").concat(t.y)}),"")})).join("");return 1===n.length?"".concat(r,"Z"):r},$P=function(t){!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&&BP(e,t)}(a,p);var n,r,i,o=qP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.points,r=t.className,i=t.baseLinePoints,o=t.connectNulls,a=zP(t,RP);if(!n||!n.length)return null;var c=Jr("recharts-polygon",r);if(i&&i.length){var s=a.stroke&&"none"!==a.stroke,l=function(e,t,n){var r=GP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(GP(t.reverse(),n).slice(1))}(n,i,o);return e.createElement("g",{className:c},e.createElement("path",LP({},xc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",stroke:"none",d:l})),s?e.createElement("path",LP({},xc(a,!0),{fill:"none",d:GP(n,o)})):null,s?e.createElement("path",LP({},xc(a,!0),{fill:"none",d:GP(i,o)})):null)}var u=GP(n,o);return e.createElement("path",LP({},xc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",className:c,d:u}))}}])&&FP(n.prototype,r),i&&FP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function YP(e){return YP="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},YP(e)}function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}function ZP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(i=r.key,o=void 0,o=function(e,t){if("object"!==YP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===YP(o)?o:String(o)),r)}var i,o}function KP(e,t){return KP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KP(e,t)}function JP(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 n,r=QP(e);if(t){var i=QP(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YP(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)}(this,n)}}function QP(e){return QP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},QP(e)}var ej=function(t){!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&&KP(e,t)}(a,p);var n,r,i,o=JP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.r,o=t.className,a=Jr("recharts-dot",o);return n===+n&&r===+r&&i===+i?e.createElement("circle",XP({},xc(this.props),ic(this.props),{className:a,cx:n,cy:r,r:i})):null}}])&&ZP(n.prototype,r),i&&ZP(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function tj(e){return tj="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},tj(e)}function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nj.apply(this,arguments)}function rj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cj(r.key),r)}}function ij(e,t){return ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ij(e,t)}function oj(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 n,r=aj(e);if(t){var i=aj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tj(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)}(this,n)}}function aj(e){return aj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aj(e)}function cj(e){var t=function(e,t){if("object"!==tj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tj(t)?t:String(t)}var sj=function(t){!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&&ij(e,t)}(a,p);var n,r,i,o=oj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,c=t.top,s=t.left,l=t.className;return Ua(n)&&Ua(r)&&Ua(i)&&Ua(o)&&Ua(c)&&Ua(s)?e.createElement("path",nj({},xc(this.props,!0),{className:Jr("recharts-cross",l),d:a.getPath(n,r,i,o,c,s)})):null}}],i=[{key:"getPath",value:function(e,t,n,r,i,o){return"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n)}}],r&&rj(n.prototype,r),i&&rj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lj(e){return lj="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},lj(e)}function uj(){return uj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uj.apply(this,arguments)}function fj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function pj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fj(Object(n),!0).forEach((function(t){yj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,gj(r.key),r)}}function hj(e,t){return hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hj(e,t)}function mj(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 n,r=vj(e);if(t){var i=vj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lj(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)}(this,n)}}function vj(e){return vj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vj(e)}function yj(e,t,n){return(t=gj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gj(e){var t=function(e,t){if("object"!==lj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lj(t)?t:String(t)}!function(e,t,n){(t=cj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(sj,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var bj=function(t){!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&&hj(e,t)}(a,p);var n,r,i,o=mj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.polarAngles,o="";return i.forEach((function(t,i){var a=bT(n,r,e,t);o+=i?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),o+="Z"}},{key:"renderPolarAngles",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.innerRadius,o=t.outerRadius,a=t.polarAngles,c=t.radialLines;if(!a||!a.length||!c)return null;var s=pj({stroke:"#ccc"},xc(this.props));return e.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(t,a){var c=bT(n,r,i,t),l=bT(n,r,o,t);return e.createElement("line",uj({},s,{key:"line-".concat(a),x1:c.x,y1:c.y,x2:l.x,y2:l.y}))})))}},{key:"renderConcentricCircle",value:function(t,n,r){var i=this.props,o=i.cx,a=i.cy,c=pj(pj({stroke:"#ccc"},xc(this.props)),{},{fill:"none"},r);return e.createElement("circle",uj({},c,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:o,cy:a,r:t}))}},{key:"renderConcentricPolygon",value:function(t,n,r){var i=pj(pj({stroke:"#ccc"},xc(this.props)),{},{fill:"none"},r);return e.createElement("path",uj({},i,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(t)}))}},{key:"renderConcentricPath",value:function(){var t=this,n=this.props,r=n.polarRadius,i=n.gridType;return r&&r.length?e.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(e,n){return"circle"===i?t.renderConcentricCircle(e,n):t.renderConcentricPolygon(e,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:e.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&dj(n.prototype,r),i&&dj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();yj(bj,"displayName","PolarGrid"),yj(bj,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var xj=Dw,wj=nf,_j=Fw;var kj=function(e,t){return e&&e.length?xj(e,wj(t),_j):void 0},Sj=E(kj),Ej=Dw,Oj=Mw,Aj=nf;var Cj=function(e,t){return e&&e.length?Ej(e,Aj(t),Oj):void 0},Tj=E(Cj),Pj=["cx","cy","angle","ticks","axisLine"],jj=["ticks","tick","angle","tickFormatter","stroke"];function Dj(e){return Dj="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},Dj(e)}function Mj(){return Mj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mj.apply(this,arguments)}function Nj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ij(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nj(Object(n),!0).forEach((function(t){qj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rj(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Lj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Hj(r.key),r)}}function zj(e,t){return zj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zj(e,t)}function Fj(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 n,r=Bj(e);if(t){var i=Bj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Dj(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)}(this,n)}}function Bj(e){return Bj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Bj(e)}function qj(e,t,n){return(t=Hj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hj(e){var t=function(e,t){if("object"!==Dj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Dj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Dj(t)?t:String(t)}var Vj=function(t){!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&&zj(e,t)}(a,p);var n,r,i,o=Fj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,i=n.cx,o=n.cy;return bT(i,o,t,r)}},{key:"getTickTextAnchor",value:function(){var e;switch(this.props.orientation){case"left":e="end";break;case"right":e="start";break;default:e="middle"}return e}},{key:"getViewBox",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,i=e.ticks,o=Tj(i,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:Sj(i,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:o.coordinate||0}}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.angle,o=t.ticks,a=t.axisLine,c=Rj(t,Pj),s=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),l=bT(n,r,s[0],i),u=bT(n,r,s[1],i),f=Ij(Ij(Ij({},xc(c)),{},{fill:"none"},xc(a)),{},{x1:l.x,y1:l.y,x2:u.x,y2:u.y});return e.createElement("line",Mj({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.angle,c=n.tickFormatter,s=n.stroke,l=Rj(n,jj),u=this.getTickTextAnchor(),f=xc(l),p=xc(i),d=r.map((function(n,r){var l=t.getTickValueCoord(n),d=Ij(Ij(Ij(Ij({textAnchor:u,transform:"rotate(".concat(90-o,", ").concat(l.x,", ").concat(l.y,")")},f),{},{stroke:"none",fill:s},p),{},{index:r},l),{},{payload:n});return e.createElement(jc,Mj({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},oc(t.props,n,r)),a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(jc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.axisLine,i=t.tick;return n&&n.length?e.createElement(jc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),i&&this.renderTicks(),LT.renderCallByParent(this.props,this.getViewBox())):null}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,Mj({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&Lj(n.prototype,r),i&&Lj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function Uj(e){return Uj="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},Uj(e)}function Wj(){return Wj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wj.apply(this,arguments)}function Gj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gj(Object(n),!0).forEach((function(t){Jj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yj(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Qj(r.key),r)}}function Xj(e,t){return Xj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Xj(e,t)}function Zj(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 n,r=Kj(e);if(t){var i=Kj(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===Uj(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)}(this,n)}}function Kj(e){return Kj=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Kj(e)}function Jj(e,t,n){return(t=Qj(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qj(e){var t=function(e,t){if("object"!==Uj(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Uj(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===Uj(t)?t:String(t)}qj(Vj,"displayName","PolarRadiusAxis"),qj(Vj,"axisType","radiusAxis"),qj(Vj,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var eD=Math.PI/180,tD=1e-5,nD=function(t){!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&&Xj(e,t)}(a,p);var n,r,i,o=Zj(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.orientation,a=t.tickSize||8,c=bT(n,r,i,e.coordinate),s=bT(n,r,i+("inner"===o?-1:1)*a,e.coordinate);return{x1:c.x,y1:c.y,x2:s.x,y2:s.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*eD);return n>tD?"outer"===t?"start":"end":n<-tD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.cx,r=t.cy,i=t.radius,o=t.axisLine,a=t.axisLineType,c=$j($j({},xc(this.props)),{},{fill:"none"},xc(o));if("circle"===a)return e.createElement(ej,Wj({className:"recharts-polar-angle-axis-line"},c,{cx:n,cy:r,r:i}));var s=this.props.ticks.map((function(e){return bT(n,r,i,e.coordinate)}));return e.createElement($P,Wj({className:"recharts-polar-angle-axis-line"},c,{points:s}))}},{key:"renderTicks",value:function(){var t=this,n=this.props,r=n.ticks,i=n.tick,o=n.tickLine,c=n.tickFormatter,s=n.stroke,l=xc(this.props),u=xc(i),f=$j($j({},l),{},{fill:"none"},xc(o)),p=r.map((function(n,r){var p=t.getTickLineCoord(n),d=$j($j($j({textAnchor:t.getTickTextAnchor(n)},l),{},{stroke:"none",fill:s},u),{},{index:r,payload:n,x:p.x2,y:p.y2});return e.createElement(jc,Wj({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},oc(t.props,n,r)),o&&e.createElement("line",Wj({className:"recharts-polar-angle-axis-tick-line"},f,p)),i&&a.renderTickItem(i,d,c?c(n.value,r):n.value))}));return e.createElement(jc,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var t=this.props,n=t.ticks,r=t.radius,i=t.axisLine;return r<=0||!n||!n.length?null:e.createElement(jc,{className:"recharts-polar-angle-axis"},i&&this.renderAxisLine(),this.renderTicks())}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,Wj({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&Yj(n.prototype,r),i&&Yj(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();Jj(nD,"displayName","PolarAngleAxis"),Jj(nD,"axisType","angleAxis"),Jj(nD,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var rD=cl(Object.getPrototypeOf,Object),iD=vi,oD=rD,aD=ki,cD=Function.prototype,sD=Object.prototype,lD=cD.toString,uD=sD.hasOwnProperty,fD=lD.call(Object);var pD=function(e){if(!aD(e)||"[object Object]"!=iD(e))return!1;var t=oD(e);if(null===t)return!0;var n=uD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&lD.call(n)==fD},dD=E(pD);function hD(e){return hD="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},hD(e)}function mD(){return mD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mD.apply(this,arguments)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){kD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function bD(e,t){return bD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bD(e,t)}function xD(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 n,r=_D(e);if(t){var i=_D(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wD(e)}(this,n)}}function wD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _D(e){return _D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_D(e)}function kD(e,t,n){return(t=SD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SD(e){var t=function(e,t){if("object"!==hD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hD(t)?t:String(t)}var ED=function(t){!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&&bD(e,t)}(a,p);var n,r,i,o=xD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kD(wD(t=o.call(this,e)),"pieRef",null),kD(wD(t),"sectorRefs",[]),kD(wD(t),"id",$a("recharts-pie-")),kD(wD(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),xi(e)&&e()})),kD(wD(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),xi(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,i=n.labelLine,o=n.dataKey,c=n.valueKey,s=xc(this.props),l=xc(r),u=xc(i),f=r&&r.offsetRadius||20,p=t.map((function(t,n){var p=(t.startAngle+t.endAngle)/2,d=bT(t.cx,t.cy,t.outerRadius+f,p),h=yD(yD(yD(yD({},s),t),{},{stroke:"none"},l),{},{index:n,textAnchor:a.getTextAnchor(d.x,t.cx)},d),m=yD(yD(yD(yD({},s),t),{},{fill:"none",stroke:t.fill},u),{},{index:n,points:[bT(t.cx,t.cy,t.outerRadius,p),d],key:"line"}),v=o;return Pa(o)&&Pa(c)?v="value":Pa(o)&&(v=c),e.createElement(jc,{key:"label-".concat(n)},i&&a.renderLabelLineItem(i,m),a.renderLabelItem(r,h,LC(t,v)))}));return e.createElement(jc,{className:"recharts-pie-labels"},p)}},{key:"renderSectorsStatically",value:function(t){var n=this,r=this.props,i=r.activeShape,o=r.blendStroke,c=r.inactiveShape;return t.map((function(t,r){var s=c&&n.hasActiveIndex()?c:null,l=n.isActiveIndex(r)?i:s,u=yD(yD({},t),{},{stroke:o?t.fill:t.stroke});return e.createElement(jc,mD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},oc(n.props,t,r),{key:"sector-".concat(r)}),a.renderSectorItem(l,u))}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.sectors,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state,u=l.prevSectors,f=l.prevIsAnimationActive;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=u&&u[t],r=t>0?Ca(e,"paddingAngle",0):0;if(n){var c=Za(n.endAngle-n.startAngle,e.endAngle-e.startAngle),s=yD(yD({},e),{},{startAngle:a+r,endAngle:a+c(i)+r});o.push(s),a=s.endAngle}else{var l=e.endAngle,f=e.startAngle,p=Za(0,l-f)(i),d=yD(yD({},e),{},{startAngle:a+r,endAngle:a+p+r});o.push(d),a=d.endAngle}})),e.createElement(jc,null,t.renderSectorsStatically(o))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var t=this,n=this.props,r=n.hide,i=n.sectors,o=n.className,a=n.label,c=n.cx,s=n.cy,l=n.innerRadius,u=n.outerRadius,f=n.isAnimationActive,p=this.state.isAnimationFinished;if(r||!i||!i.length||!Ua(c)||!Ua(s)||!Ua(l)||!Ua(u))return null;var d=Jr("recharts-pie",o);return e.createElement(jc,{tabIndex:0,className:d,ref:function(e){t.pieRef=e}},this.renderSectors(),a&&this.renderLabels(i),LT.renderCallByParent(this.props,null,!1),(!f||p)&&KT.renderCallByParent(this.props,i,!1))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return t.prevIsAnimationActive!==e.isAnimationActive?{prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:[],isAnimationFinished:!0}:e.isAnimationActive&&e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curSectors:e.sectors,prevSectors:t.curSectors,isAnimationFinished:!0}:e.sectors!==t.curSectors?{curSectors:e.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(e,t){return e>t?"start":e<t?"end":"middle"}},{key:"renderLabelLineItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(_P,mD({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(t,n,r){if(e.isValidElement(t))return e.cloneElement(t,n);var i=r;return xi(t)&&(i=t(n),e.isValidElement(i))?i:e.createElement(Cw,mD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),i)}},{key:"renderSectorItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):dD(t)?e.createElement(cP,mD({tabIndex:-1},n,t)):e.createElement(cP,mD({tabIndex:-1},n))}}],r&&gD(n.prototype,r),i&&gD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kD(ED,"displayName","Pie"),kD(ED,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!bb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),kD(ED,"parseDeltaAngle",(function(e,t){return Ha(t-e)*Math.min(Math.abs(t-e),360)})),kD(ED,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,i=xc(e.props),o=hc(r,mx);return n&&n.length?n.map((function(e,t){return yD(yD(yD({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return yD(yD({},i),e.props)})):[]})),kD(ED,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,i=t.width,o=t.height,a=xT(i,o);return{cx:r+Ya(e.props.cx,i,i/2),cy:n+Ya(e.props.cy,o,o/2),innerRadius:Ya(e.props.innerRadius,a,0),outerRadius:Ya(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(i*i+o*o)/2}})),kD(ED,"getComposedData",(function(e){var t=e.item,n=e.offset,r=ED.getRealPieData(t);if(!r||!r.length)return null;var i=t.props,o=i.cornerRadius,a=i.startAngle,c=i.endAngle,s=i.paddingAngle,l=i.dataKey,u=i.nameKey,f=i.valueKey,p=i.tooltipType,d=Math.abs(t.props.minAngle),h=ED.parseCoordinateOfPie(t,n),m=ED.parseDeltaAngle(a,c),v=Math.abs(m),y=l;Pa(l)&&Pa(f)?(ux(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y="value"):Pa(l)&&(ux(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),y=f);var g,b,x=r.filter((function(e){return 0!==LC(e,y,0)})).length,w=v-x*d-(v>=360?x:x-1)*s,_=r.reduce((function(e,t){var n=LC(t,y,0);return e+(Ua(n)?n:0)}),0);_>0&&(g=r.map((function(e,t){var n,r=LC(e,y,0),i=LC(e,u,t),c=(Ua(r)?r:0)/_,l=(n=t?b.endAngle+Ha(m)*s*(0!==r?1:0):a)+Ha(m)*((0!==r?d:0)+c*w),f=(n+l)/2,v=(h.innerRadius+h.outerRadius)/2,g=[{name:i,value:r,payload:e,dataKey:y,type:p}],x=bT(h.cx,h.cy,v,f);return b=yD(yD(yD({percent:c,cornerRadius:o,name:i,tooltipPayload:g,midAngle:f,middleRadius:v,tooltipPosition:x},e),h),{},{value:LC(e,y),startAngle:n,endAngle:l,payload:e,paddingAngle:Ha(m)*s})})));return yD(yD({},h),{},{sectors:g,data:r})}));var OD=function(e){return e&&e.length?e[0]:void 0},AD=E(OD);function CD(e){return CD="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},CD(e)}function TD(){return TD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TD.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function jD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){LD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zD(r.key),r)}}function MD(e,t){return MD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MD(e,t)}function ND(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 n,r=RD(e);if(t){var i=RD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ID(e)}(this,n)}}function ID(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RD(e){return RD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},RD(e)}function LD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==CD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CD(t)?t:String(t)}var FD=function(t){!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&&MD(e,t)}(a,p);var n,r,i,o=ND(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return LD(ID(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),LD(ID(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),LD(ID(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),LD(ID(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),LD(ID(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(t){var n=this.props,r=n.dot,i=n.dataKey,o=xc(this.props),c=xc(r),s=t.map((function(e,t){var n=jD(jD(jD({key:"dot-".concat(t),r:3},o),c),{},{dataKey:i,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return e.createElement(jc,{className:"recharts-radar-dots"},s)}},{key:"renderPolygonStatically",value:function(t){var n,r=this.props,i=r.shape,o=r.dot,a=r.isRange,c=r.baseLinePoints,s=r.connectNulls;return n=e.isValidElement(i)?e.cloneElement(i,jD(jD({},this.props),{},{points:t})):xi(i)?i(jD(jD({},this.props),{},{points:t})):e.createElement($P,TD({},xc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:t,baseLinePoints:a?c:null,connectNulls:s})),e.createElement(jc,{className:"recharts-radar-polygon"},n,o?this.renderDots(t):null)}},{key:"renderPolygonWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radar-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var n=e.t,i=l&&l.length/r.length,o=r.map((function(e,t){var r=l&&l[Math.floor(t*i)];if(r){var o=Za(r.x,e.x),a=Za(r.y,e.y);return jD(jD({},e),{},{x:o(n),y:a(n)})}var c=Za(e.cx,e.x),s=Za(e.cy,e.y);return jD(jD({},e),{},{x:c(n),y:s(n)})}));return t.renderPolygonStatically(o)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,i=this.state.prevPoints;return!(n&&t&&t.length)||r||i&&Pw(i,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.className,i=t.points,o=t.isAnimationActive;if(n||!i||!i.length)return null;var a=this.state.isAnimationFinished,c=Jr("recharts-radar",r);return e.createElement(jc,{className:c},this.renderPolygon(),(!o||a)&&KT.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:"renderDotItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,TD({},n,{className:"recharts-radar-dot"}))}}],r&&DD(n.prototype,r),i&&DD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();LD(FD,"displayName","Radar"),LD(FD,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),LD(FD,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,i=e.dataKey,o=e.bandSize,a=n.cx,c=n.cy,s=!1,l=[];r.forEach((function(e,r){var u=LC(e,n.dataKey,r),f=LC(e,i),p=n.scale(u)+(o||0),d=_i(f)?BT(f):f,h=Pa(d)?void 0:t.scale(d);_i(f)&&f.length>=2&&(s=!0),l.push(jD(jD({},bT(a,c,h,p)),{},{name:u,value:f,cx:a,cy:c,radius:h,angle:p,payload:e}))}));var u=[];return s&&l.forEach((function(e){if(_i(e.value)){var n=AD(e.value),r=Pa(n)?void 0:t.scale(n);u.push(jD(jD({},e),{},{radius:r},bT(a,c,r,e.angle)))}else u.push(e)})),{points:l,isRange:s,baseLinePoints:u}}));var BD=["shape","activeShape","activeIndex","cornerRadius"],qD=["value","background"];function HD(e){return HD="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},HD(e)}function VD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VD(Object(n),!0).forEach((function(t){KD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WD(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JD(r.key),r)}}function $D(e,t){return $D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$D(e,t)}function YD(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 n,r=ZD(e);if(t){var i=ZD(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===HD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XD(e)}(this,n)}}function XD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZD(e){return ZD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZD(e)}function KD(e,t,n){return(t=JD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JD(e){var t=function(e,t){if("object"!==HD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==HD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===HD(t)?t:String(t)}var QD=function(t){!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&&$D(e,t)}(a,p);var n,r,i,o=YD(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return KD(XD(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),KD(XD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),KD(XD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ha(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,i=n.activeShape,o=n.activeIndex,c=n.cornerRadius,s=WD(n,BD),l=xc(s);return e.map((function(e,n){var u=UD(UD(UD(UD({},l),{},{cornerRadius:c},e),oc(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:s.forceCornerRadius,cornerIsExternal:s.cornerIsExternal});return a.renderSectorShape(n===o?i:r,u)}))}},{key:"renderSectorsWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevData;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"radialBar-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.startAngle,e.startAngle),o=Za(n.endAngle,e.endAngle);return UD(UD({},e),{},{startAngle:r(i),endAngle:o(i)})}var a=e.endAngle,c=e.startAngle,s=Za(c,a);return UD(UD({},e),{},{endAngle:s(i)})}));return e.createElement(jc,null,t.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=xc(this.props.background);return e.map((function(e,i){e.value;var o=e.background,c=WD(e,qD);if(!o)return null;var s=UD(UD(UD(UD(UD({cornerRadius:n},c),{},{fill:"#eee"},o),r),oc(t.props,e,i)),{},{index:i,key:"sector-".concat(i),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(o,s)}))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.background,a=t.isAnimationActive;if(n||!r||!r.length)return null;var c=this.state.isAnimationFinished,s=Jr("recharts-area",i);return e.createElement(jc,{className:s},o&&e.createElement(jc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),e.createElement(jc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||c)&&KT.renderCallByParent(UD({},this.props),r))}}],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}},{key:"renderSectorShape",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(cP,n)}}],r&&GD(n.prototype,r),i&&GD(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();KD(QD,"displayName","RadialBar"),KD(QD,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),KD(QD,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,i=e.radiusAxisTicks,o=e.angleAxis,a=e.angleAxisTicks,c=e.displayedData,s=e.dataKey,l=e.stackedData,u=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=ZC(u,t);if(!d)return null;var h=o.cx,m=o.cy,v=n.layout,y=t.props,g=y.children,b=y.minPointSize,x="radial"===v?o:r,w=l?x.scale.domain():null,_=rT({numericAxis:x}),k=hc(g,mx);return{data:c.map((function(e,c){var u,y,g,x,S,E;if(l?u=KC(l[p+c],w):(u=LC(e,s),_i(u)||(u=[_,u])),"radial"===v){y=nT({axis:r,ticks:i,bandSize:f,offset:d.offset,entry:e,index:c}),S=o.scale(u[1]),x=o.scale(u[0]),g=y+d.size;var O=S-x;if(Math.abs(b)>0&&Math.abs(O)<Math.abs(b))S+=Ha(O||b)*(Math.abs(b)-Math.abs(O));E={background:{cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:n.startAngle,endAngle:n.endAngle}}}else{y=r.scale(u[0]),g=r.scale(u[1]),S=(x=nT({axis:o,ticks:a,bandSize:f,offset:d.offset,entry:e,index:c}))+d.size;var A=g-y;if(Math.abs(b)>0&&Math.abs(A)<Math.abs(b))g+=Ha(A||b)*(Math.abs(b)-Math.abs(A))}return UD(UD(UD(UD({},e),E),{},{payload:e,value:l?u:u[1],cx:h,cy:m,innerRadius:y,outerRadius:g,startAngle:x,endAngle:S},k&&k[c]&&k[c].props),{},{tooltipPayload:[uT(t,e)],tooltipPosition:bT(h,m,(y+g)/2,(x+S)/2)})})),layout:v}}));var eM=Math.ceil,tM=Math.max;var nM=Gb,rM=1/0;var iM=function(e){return e?(e=nM(e))===rM||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},oM=function(e,t,n,r){for(var i=-1,o=tM(eM((t-e)/(n||1)),0),a=Array(o);o--;)a[r?o:++i]=e,e+=n;return a},aM=tb,cM=iM;var sM=E(function(e){return function(t,n,r){return r&&"number"!=typeof r&&aM(t,n,r)&&(n=r=void 0),t=cM(t),void 0===n?(n=t,t=0):n=cM(n),r=void 0===r?t<n?1:-1:cM(r),oM(t,n,r,e)}}());function lM(e){return lM="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},lM(e)}function uM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uM(Object(n),!0).forEach((function(t){pM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function pM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==lM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dM=["Webkit","Moz","O","ms"];function hM(e){return hM="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},hM(e)}function mM(){return mM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mM.apply(this,arguments)}function vM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vM(Object(n),!0).forEach((function(t){kM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gM(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SM(r.key),r)}}function bM(e,t){return bM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bM(e,t)}function xM(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 n,r=_M(e);if(t){var i=_M(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wM(e)}(this,n)}}function wM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _M(e){return _M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_M(e)}function kM(e,t,n){return(t=SM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SM(e){var t=function(e,t){if("object"!==hM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hM(t)?t:String(t)}var EM=function(e){return e.changedTouches&&!!e.changedTouches.length},OM=function(t){!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&&bM(e,t)}(a,p);var n,r,i,o=xM(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),kM(wM(t=o.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),kM(wM(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kM(wM(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kM(wM(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kM(wM(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kM(wM(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kM(wM(t),"handleSlideDragStart",(function(e){var n=EM(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(wM(t),"startX"),endX:t.handleTravellerDragStart.bind(wM(t),"endX")},t.state={},t}return n=a,r=[{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,r=this.state.scaleValues,i=this.props,o=i.gap,c=i.data.length-1,s=Math.min(t,n),l=Math.max(t,n),u=a.getIndexInRange(r,s),f=a.getIndexInRange(r,l);return{startIndex:u-u%o,endIndex:f===c?c:f-f%o}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,i=t.dataKey,o=LC(n[e],i,e);return xi(r)?r(o,e):o}},{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,n=t.slideMoveStartX,r=t.startX,i=t.endX,o=this.props,a=o.x,c=o.width,s=o.travellerWidth,l=o.startIndex,u=o.endIndex,f=o.onChange,p=e.pageX-n;p>0?p=Math.min(p,a+c-s-i,a+c-s-r):p<0&&(p=Math.max(p,a-r,a-i));var d=this.getIndex({startX:r+p,endX:i+p});d.startIndex===l&&d.endIndex===u||!f||f(d),this.setState({startX:r+p,endX:i+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=EM(t)?t.changedTouches[0]:t;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:e,brushMoveStartX:n.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(e){var t,n=this.state,r=n.brushMoveStartX,i=n.movingTravellerId,o=n.endX,a=n.startX,c=this.state[i],s=this.props,l=s.x,u=s.width,f=s.travellerWidth,p=s.onChange,d=s.gap,h=s.data,m={startX:this.state.startX,endX:this.state.endX},v=e.pageX-r;v>0?v=Math.min(v,l+u-f-c):v<0&&(v=Math.max(v,l-c)),m[i]=c+v;var y=this.getIndex(m),g=y.startIndex,b=y.endIndex;this.setState((kM(t={},i,c+v),kM(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===i&&(o>a?g%d==0:b%d==0)||o<a&&b===e||"endX"===i&&(o>a?b%d==0:g%d==0)||o>a&&b===e)&&p(y))}))}},{key:"renderBackground",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.fill,c=t.stroke;return e.createElement("rect",{stroke:c,fill:a,x:n,y:r,width:i,height:o})}},{key:"renderPanorama",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.data,c=t.children,s=t.padding,l=f.only(c);return l?e.cloneElement(l,{x:n,y:r,width:i,height:o,margin:s,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(t,n){var r=this.props,i=r.y,o=r.travellerWidth,c=r.height,s=r.traveller,l=Math.max(t,this.props.x),u=yM(yM({},xc(this.props)),{},{x:l,y:i,width:o,height:c});return e.createElement(jc,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(s,u))}},{key:"renderSlide",value:function(t,n){var r=this.props,i=r.y,o=r.height,a=r.stroke,c=r.travellerWidth,s=Math.min(t,n)+c,l=Math.max(Math.abs(n-t)-c,0);return e.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:s,y:i,width:l,height:o})}},{key:"renderText",value:function(){var t=this.props,n=t.startIndex,r=t.endIndex,i=t.y,o=t.height,a=t.travellerWidth,c=t.stroke,s=this.state,l=s.startX,u=s.endX,f={pointerEvents:"none",fill:c};return e.createElement(jc,{className:"recharts-brush-texts"},e.createElement(Cw,mM({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,u)-5,y:i+o/2},f),this.getTextOfTick(n)),e.createElement(Cw,mM({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,u)+a+5,y:i+o/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var t=this.props,n=t.data,r=t.className,i=t.children,o=t.x,a=t.y,c=t.width,s=t.height,l=t.alwaysShowText,u=this.state,f=u.startX,p=u.endX,d=u.isTextActive,h=u.isSlideMoving,m=u.isTravellerMoving;if(!n||!n.length||!Ua(o)||!Ua(a)||!Ua(c)||!Ua(s)||c<=0||s<=0)return null;var v=Jr("recharts-brush",r),y=1===e.Children.count(i),g=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=dM.reduce((function(e,r){return fM(fM({},e),{},pM({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return e.createElement(jc,{className:v,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:g},this.renderBackground(),y&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||h||m||l)&&this.renderText())}}],i=[{key:"renderDefaultTraveller",value:function(t){var n=t.x,r=t.y,i=t.width,o=t.height,a=t.stroke,c=Math.floor(r+o/2)-1;return e.createElement(e.Fragment,null,e.createElement("rect",{x:n,y:r,width:i,height:o,fill:a,stroke:"none"}),e.createElement("line",{x1:n+1,y1:c,x2:n+i-1,y2:c,fill:"none",stroke:"#fff"}),e.createElement("line",{x1:n+1,y1:c+2,x2:n+i-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):a.renderDefaultTraveller(n)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.x,o=e.travellerWidth,a=e.updateId,c=e.startIndex,s=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return yM({prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,i=e.x,o=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var c=t.length,s=O_().domain(sM(0,c)).range([i,i+o-a]),l=s.domain().map((function(e){return s(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:s(n),endX:s(r),scale:s,scaleValues:l}}({data:n,width:r,x:i,travellerWidth:o,startIndex:c,endIndex:s}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||i!==t.prevX||o!==t.prevTravellerWidth)){t.scale.range([i,i+r-o]);var l=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:o,prevUpdateId:a,prevX:i,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:l}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var i=Math.floor((n+r)/2);e[i]>t?r=i:n=i}return t>=e[r]?r:n}}],r&&gM(n.prototype,r),i&&gM(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();kM(OM,"displayName","Brush"),kM(OM,"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 AM=hg;var CM=Xc,TM=nf,PM=function(e,t){var n;return AM(e,(function(e,r,i){return!(n=t(e,r,i))})),!!n},jM=wi,DM=tb;var MM=function(e,t,n){var r=jM(e)?CM:PM;return n&&DM(e,t,n)&&(t=void 0),r(e,TM(t))},NM=E(MM),IM=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var RM=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0},LM=hg;var zM=RM,FM=function(e,t){var n=!0;return LM(e,(function(e,r,i){return n=!!t(e,r,i)})),n},BM=nf,qM=wi,HM=tb;var VM=function(e,t,n){var r=qM(e)?zM:FM;return n&&HM(e,t,n)&&(t=void 0),r(e,BM(t))},UM=E(VM),WM=Fg;var GM=function(e,t,n){"__proto__"==t&&WM?WM(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$M=GM,YM=pg,XM=nf;var ZM=function(e,t){var n={};return t=XM(t),YM(e,(function(e,r,i){$M(n,r,t(e,r,i))})),n},KM=E(ZM),JM=["value","background"];function QM(e){return QM="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},QM(e)}function eN(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){lN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uN(r.key),r)}}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oN(e,t)}function aN(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 n,r=sN(e);if(t){var i=sN(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cN(e)}(this,n)}}function cN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sN(e){return sN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sN(e)}function lN(e,t,n){return(t=uN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e){var t=function(e,t){if("object"!==QM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QM(t)?t:String(t)}var fN=function(t){!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&&oN(e,t)}(a,p);var n,r,i,o=aN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lN(cN(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),lN(cN(e),"id",$a("recharts-bar-")),lN(cN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),lN(cN(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()})),e}return n=a,r=[{key:"renderRectanglesStatically",value:function(t){var n=this,r=this.props.shape,i=xc(this.props);return t&&t.map((function(t,o){var c=rN(rN(rN({},i),t),{},{index:o});return e.createElement(jc,tN({className:"recharts-bar-rectangle"},oc(n.props,t,o),{key:"rectangle-".concat(o),role:"img"}),a.renderRectangle(r,c))}))}},{key:"renderRectanglesWithAnimation",value:function(){var t=this,n=this.props,r=n.data,i=n.layout,o=n.isAnimationActive,a=n.animationBegin,c=n.animationDuration,s=n.animationEasing,l=n.animationId,u=this.state.prevData;return e.createElement(ng,{begin:a,duration:c,isActive:o,easing:s,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,a=r.map((function(e,t){var n=u&&u[t];if(n){var r=Za(n.x,e.x),a=Za(n.y,e.y),c=Za(n.width,e.width),s=Za(n.height,e.height);return rN(rN({},e),{},{x:r(o),y:a(o),width:c(o),height:s(o)})}if("horizontal"===i){var l=Za(0,e.height)(o);return rN(rN({},e),{},{y:e.y+e.height-l,height:l})}var f=Za(0,e.width)(o);return rN(rN({},e),{},{width:f})}));return e.createElement(jc,null,t.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=xc(this.props.background);return t.map((function(t,r){t.value;var i=t.background,o=eN(t,JM);if(!i)return null;var c=rN(rN(rN(rN(rN({},o),{},{fill:"#eee"},i),n),oc(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,c)}))}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.data,o=r.xAxis,a=r.yAxis,c=r.layout,s=hc(r.children,PC);if(!s)return null;var l="vertical"===c?i[0].height/2:i[0].width/2;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:LC(e,t)}}var f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,f,s.map((function(t,n){return e.cloneElement(t,{key:"error-bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,offset:l,dataPointFormatter:u})})))}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.data,i=t.className,o=t.xAxis,a=t.yAxis,c=t.left,s=t.top,l=t.width,u=t.height,f=t.isAnimationActive,p=t.background,d=t.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=Jr("recharts-bar",i),v=o&&o.allowDataOverflow||a&&a.allowDataOverflow,y=Pa(d)?this.id:d;return e.createElement(jc,{className:m},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:c,y:s,width:l,height:u}))):null,e.createElement(jc,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(y,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,y),(!f||h)&&KT.renderCallByParent(this.props,r))}}],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}},{key:"renderRectangle",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,n)}}],r&&iN(n.prototype,r),i&&iN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pN(e){return pN="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},pN(e)}function dN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yN(r.key),r)}}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hN(Object(n),!0).forEach((function(t){vN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vN(e,t,n){return(t=yN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yN(e){var t=function(e,t){if("object"!==pN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pN(t)?t:String(t)}lN(fN,"displayName","Bar"),lN(fN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),lN(fN,"getComposedData",(function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,o=e.xAxis,a=e.yAxis,c=e.xAxisTicks,s=e.yAxisTicks,l=e.stackedData,u=e.dataStartIndex,f=e.displayedData,p=e.offset,d=ZC(r,n);if(!d)return null;var h=t.layout,m=n.props,v=m.dataKey,y=m.children,g=m.minPointSize,b="horizontal"===h?a:o,x=l?b.scale.domain():null,w=rT({numericAxis:b}),_=hc(y,mx),k=f.map((function(e,t){var r,f,p,m,y,b;if(l?r=KC(l[u+t],x):(r=LC(e,v),_i(r)||(r=[w,r])),"horizontal"===h){var k,S=[a.scale(r[0]),a.scale(r[1])],E=S[0],O=S[1];f=nT({axis:o,ticks:c,bandSize:i,offset:d.offset,entry:e,index:t}),p=null!==(k=null!=O?O:E)&&void 0!==k?k:void 0,m=d.size;var A=E-O;if(y=Number.isNaN(A)?0:A,b={x:f,y:a.y,width:m,height:a.height},Math.abs(g)>0&&Math.abs(y)<Math.abs(g)){var C=Ha(y||g)*(Math.abs(g)-Math.abs(y));p-=C,y+=C}}else{var T=[o.scale(r[0]),o.scale(r[1])],P=T[0],j=T[1];if(f=P,p=nT({axis:a,ticks:s,bandSize:i,offset:d.offset,entry:e,index:t}),m=j-P,y=d.size,b={x:o.x,y:p,width:o.width,height:y},Math.abs(g)>0&&Math.abs(m)<Math.abs(g))m+=Ha(m||g)*(Math.abs(g)-Math.abs(m))}return rN(rN(rN({},e),{},{x:f,y:p,width:m,height:y,value:l?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[uT(n,e)],tooltipPosition:{x:f+m/2,y:p+y/2}})}));return rN({data:k,layout:h},p)}));var gN=function(e,t,n,r,i){var o=e.width,a=e.height,c=e.layout,s=e.children,l=Object.keys(t),u={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!mc(s,fN);return l.reduce((function(o,a){var s,l,p,d,h,m=t[a],v=m.orientation,y=m.domain,g=m.padding,b=void 0===g?{}:g,x=m.mirror,w=m.reversed,_="".concat(v).concat(x?"Mirror":"");if("number"===m.type&&("gap"===m.padding||"no-gap"===m.padding)){var k=y[1]-y[0],S=1/0,E=m.categoricalDomain.sort();E.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(E[t-1]||0),S))}));var O=S/k,A="vertical"===m.layout?n.height:n.width;if("gap"===m.padding&&(s=O*A/2),"no-gap"===m.padding){var C=Ya(e.barCategoryGap,O*A),T=O*A/2;s=T-C-(T-C)/A*C}}l="xAxis"===r?[n.left+(b.left||0)+(s||0),n.left+n.width-(b.right||0)-(s||0)]:"yAxis"===r?"horizontal"===c?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(s||0),n.top+n.height-(b.bottom||0)-(s||0)]:m.range,w&&(l=[l[1],l[0]]);var P=$C(m,i,f),j=P.scale,D=P.realScaleType;j.domain(y).range(l),XC(j);var M=eT(j,mN(mN({},m),{},{realScaleType:D}));"xAxis"===r?(h="top"===v&&!x||"bottom"===v&&x,p=n.left,d=u[_]-h*m.height):"yAxis"===r&&(h="left"===v&&!x||"right"===v&&x,p=u[_]-h*m.width,d=n.top);var N=mN(mN(mN({},m),M),{},{realScaleType:D,x:p,y:d,scale:j,width:"xAxis"===r?n.width:m.width,height:"yAxis"===r?n.height:m.height});return N.bandSize=sT(N,M),m.hide||"xAxis"!==r?m.hide||(u[_]+=(h?-1:1)*N.width):u[_]+=(h?-1:1)*N.height,mN(mN({},o),{},vN({},a,N))}),{})},bN=function(e,t){var n=e.x,r=e.y,i=t.x,o=t.y;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}},xN=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}var t,n,r;return t=e,n=[{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]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+i;case"end":var o=this.bandwidth?this.bandwidth():0;return this.scale(e)+o}if(n){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(),n=t[0],r=t[t.length-1];return n<=r?e>=n&&e<=r:e>=r&&e<=n}}],r=[{key:"create",value:function(t){return new e(t)}}],n&&dN(t.prototype,n),r&&dN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();vN(xN,"EPS",1e-4);var wN=function(e){var t=Object.keys(e).reduce((function(t,n){return mN(mN({},t),{},vN({},n,xN.create(e[n])))}),{});return mN(mN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,i=n.position;return KM(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:i})}))},isInRange:function(e){return UM(e,(function(e,n){return t[n].isInRange(e)}))}})};function _N(e){return _N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_N(e)}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kN(Object(n),!0).forEach((function(t){EN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==_N(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==_N(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===_N(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return AN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return AN(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 AN(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function CN(){return CN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CN.apply(this,arguments)}function TN(t){var n=t.x,r=t.y,i=t.segment,o=t.xAxis,a=t.yAxis,c=t.shape,s=t.className,l=t.alwaysShow,u=t.clipPathId;ux(void 0===l,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,i){var o=i.viewBox,a=o.x,c=o.y,s=o.width,l=o.height,u=i.position;if(n){var f=i.y,p=i.yAxis.orientation,d=e.y.apply(f,{position:u});if(IM(i,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+s,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var m=i.x,v=i.xAxis.orientation,y=e.x.apply(m,{position:u});if(IM(i,"discard")&&!e.x.isInRange(y))return null;var g=[{x:y,y:c+l},{x:y,y:c}];return"top"===v?g.reverse():g}if(r){var b=i.segment.map((function(t){return e.apply(t,{position:u})}));return IM(i,"discard")&&NM(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(wN({x:o.scale,y:a.scale}),Wa(n),Wa(r),i&&2===i.length,t);if(!f)return null;var p=ON(f,2),d=p[0],h=d.x,m=d.y,v=p[1],y=v.x,g=v.y,b=SN(SN({clipPath:IM(t,"hidden")?"url(#".concat(u,")"):void 0},xc(t,!0)),{},{x1:h,y1:m,x2:y,y2:g});return e.createElement(jc,{className:Jr("recharts-reference-line",s)},function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement("line",CN({},n,{className:"recharts-reference-line-line"}))}(c,b),LT.renderCallByParent(t,function(e){var t=e.x1,n=e.y1,r=e.x2,i=e.y2;return bN({x:t,y:n},{x:r,y:i})}({x1:h,y1:m,x2:y,y2:g})))}function PN(e){return PN="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},PN(e)}function jN(){return jN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jN.apply(this,arguments)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?DN(Object(n),!0).forEach((function(t){NN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==PN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==PN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===PN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}TN.displayName="ReferenceLine",TN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function IN(t){var n=t.x,r=t.y,i=t.r,o=t.alwaysShow,a=t.clipPathId,c=Wa(n),s=Wa(r);if(ux(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!s)return null;var l=function(e){var t=e.x,n=e.y,r=e.xAxis,i=e.yAxis,o=wN({x:r.scale,y:i.scale}),a=o.apply({x:t,y:n},{bandAware:!0});return IM(e,"discard")&&!o.isInRange(a)?null:a}(t);if(!l)return null;var u=l.x,f=l.y,p=t.shape,d=t.className,h=MN(MN({clipPath:IM(t,"hidden")?"url(#".concat(a,")"):void 0},xc(t,!0)),{},{cx:u,cy:f});return e.createElement(jc,{className:Jr("recharts-reference-dot",d)},IN.renderDot(p,h),LT.renderCallByParent(t,{x:u-i,y:f-i,width:2*i,height:2*i}))}function RN(e){return RN="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},RN(e)}function LN(){return LN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LN.apply(this,arguments)}function zN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function FN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zN(Object(n),!0).forEach((function(t){BN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function BN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}IN.displayName="ReferenceDot",IN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},IN.renderDot=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,jN({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function qN(t){var n=t.x1,r=t.x2,i=t.y1,o=t.y2,a=t.className,c=t.alwaysShow,s=t.clipPathId;ux(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Wa(n),u=Wa(r),f=Wa(i),p=Wa(o),d=t.shape;if(!(l||u||f||p||d))return null;var h=function(e,t,n,r,i){var o=i.x1,a=i.x2,c=i.y1,s=i.y2,l=i.xAxis,u=i.yAxis;if(!l||!u)return null;var f=wN({x:l.scale,y:u.scale}),p={x:e?f.x.apply(o,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(c,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(s,{position:"end"}):f.y.rangeMax};return!IM(i,"discard")||f.isInRange(p)&&f.isInRange(d)?bN(p,d):null}(l,u,f,p,t);if(!h&&!d)return null;var m=IM(t,"hidden")?"url(#".concat(s,")"):void 0;return e.createElement(jc,{className:Jr("recharts-reference-area",a)},qN.renderRect(d,FN(FN({clipPath:m},xc(t,!0)),h)),LT.renderCallByParent(t,h))}function HN(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],i=0;i<e.length;i+=t){if(void 0!==n&&!0!==n(e[i]))return;r.push(e[i])}return r}function VN(e){return VN="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},VN(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function WN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UN(Object(n),!0).forEach((function(t){GN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function GN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==VN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $N(e,t){var n,r,i=e.ticks,o=e.tickFormatter,a=e.viewBox,c=e.orientation,s=e.minTickGap,l=e.unit,u=e.fontSize,f=e.letterSpacing,p=a.x,d=a.y,h=a.width,m=a.height,v="top"===c||"bottom"===c?"width":"height",y=(i||[]).slice(),g=l&&"width"===v?sw(l,{fontSize:u,letterSpacing:f})[v]:0,b=y.length,x=b>=2?Ha(y[1].coordinate-y[0].coordinate):1;if(1===x?(n="width"===v?p:d,r="width"===v?p+h:d+m):(n="width"===v?p+h:d+m,r="width"===v?p:d),t){var w=i[b-1],_=xi(o)?o(w.value,b-1):w.value,k=sw(_,{fontSize:u,letterSpacing:f})[v]+g,S=x*(w.coordinate+x*k/2-r);y[b-1]=w=WN(WN({},w),{},{tickCoord:S>0?w.coordinate-S*x:w.coordinate}),x*(w.tickCoord-x*k/2-n)>=0&&x*(w.tickCoord+x*k/2-r)<=0&&(r=w.tickCoord-x*(k/2+s),y[b-1]=WN(WN({},w),{},{isShow:!0}))}for(var E=t?b-1:b,O=0;O<E;O++){var A=y[O],C=xi(o)?o(A.value,O):A.value,T=sw(C,{fontSize:u,letterSpacing:f})[v]+g;if(0===O){var P=x*(A.coordinate-x*T/2-n);y[O]=A=WN(WN({},A),{},{tickCoord:P<0?A.coordinate-P*x:A.coordinate})}else y[O]=A=WN(WN({},A),{},{tickCoord:A.coordinate});x*(A.tickCoord-x*T/2-n)>=0&&x*(A.tickCoord+x*T/2-r)<=0&&(n=A.tickCoord+x*(T/2+s),y[O]=WN(WN({},A),{},{isShow:!0}))}return y}function YN(e,t,n){var r=e.tick,i=e.ticks,o=e.viewBox,a=e.minTickGap,c=e.orientation,s=e.interval,l=e.tickFormatter,u=e.unit;if(!i||!i.length||!r)return[];if(Ua(s)||bb.isSsr)return function(e,t){return HN(e,t+1)}(i,"number"==typeof s&&Ua(s)?s:0);var f=[];return"equidistantPreserveStart"===s?function(e){for(var t=1,n=HN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=HN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=$N({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n})):(f="preserveStart"===s||"preserveStartEnd"===s?$N({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n},"preserveStartEnd"===s):function(e){var t,n,r=e.ticks,i=e.tickFormatter,o=e.viewBox,a=e.orientation,c=e.minTickGap,s=e.unit,l=e.fontSize,u=e.letterSpacing,f=o.x,p=o.y,d=o.width,h=o.height,m="top"===a||"bottom"===a?"width":"height",v=s&&"width"===m?sw(s,{fontSize:l,letterSpacing:u})[m]:0,y=(r||[]).slice(),g=y.length,b=g>=2?Ha(y[1].coordinate-y[0].coordinate):1;1===b?(t="width"===m?f:p,n="width"===m?f+d:p+h):(t="width"===m?f+d:p+h,n="width"===m?f:p);for(var x=g-1;x>=0;x--){var w=y[x],_=xi(i)?i(w.value,g-x-1):w.value,k=sw(_,{fontSize:l,letterSpacing:u})[m]+v;if(x===g-1){var S=b*(w.coordinate+b*k/2-n);y[x]=w=WN(WN({},w),{},{tickCoord:S>0?w.coordinate-S*b:w.coordinate})}else y[x]=w=WN(WN({},w),{},{tickCoord:w.coordinate});b*(w.tickCoord-b*k/2-t)>=0&&b*(w.tickCoord+b*k/2-n)<=0&&(n=w.tickCoord-b*(k/2+c),y[x]=WN(WN({},w),{},{isShow:!0}))}return y}({ticks:i,tickFormatter:l,viewBox:o,orientation:c,minTickGap:a,unit:u,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}qN.displayName="ReferenceArea",qN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},qN.renderRect=function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,LN({},n,{className:"recharts-reference-area-rect"}))};var XN=["viewBox"],ZN=["viewBox"],KN=["ticks"];function JN(e){return JN="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},JN(e)}function QN(){return QN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QN.apply(this,arguments)}function eI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eI(Object(n),!0).forEach((function(t){cI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function rI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sI(r.key),r)}}function iI(e,t){return iI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iI(e,t)}function oI(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 n,r=aI(e);if(t){var i=aI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===JN(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)}(this,n)}}function aI(e){return aI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aI(e)}function cI(e,t,n){return(t=sI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sI(e){var t=function(e,t){if("object"!==JN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==JN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===JN(t)?t:String(t)}var lI=function(t){!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&&iI(e,t)}(a,g);var n,r,i,o=oI(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=nI(e,XN),i=this.props,o=i.viewBox,a=nI(i,ZN);return!Ja(n,o)||!Ja(r,a)||!Ja(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,n,r,i,o,a,c=this.props,s=c.x,l=c.y,u=c.width,f=c.height,p=c.orientation,d=c.tickSize,h=c.mirror,m=c.tickMargin,v=h?-1:1,y=e.tickSize||d,g=Ua(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){case"top":t=n=e.coordinate,a=(r=(i=l+ +!h*f)-v*y)-v*m,o=g;break;case"left":r=i=e.coordinate,o=(t=(n=s+ +!h*u)-v*y)-v*m,a=g;break;case"right":r=i=e.coordinate,o=(t=(n=s+ +h*u)+v*y)+v*m,a=g;break;default:t=n=e.coordinate,a=(r=(i=l+ +h*f)+v*y)+v*m,o=g}return{line:{x1:t,y1:r,x2:n,y2:i},tick:{x:o,y:a}}}},{key:"getTickTextAnchor",value:function(){var e,t=this.props,n=t.orientation,r=t.mirror;switch(n){case"left":e=r?"start":"end";break;case"right":e=r?"end":"start";break;default:e="middle"}return e}},{key:"getTickVerticalAnchor",value:function(){var e=this.props,t=e.orientation,n=e.mirror,r="end";switch(t){case"left":case"right":r="middle";break;case"top":r=n?"start":"end";break;default:r=n?"end":"start"}return r}},{key:"renderAxisLine",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.orientation,c=t.mirror,s=t.axisLine,l=tI(tI(tI({},xc(this.props)),xc(s)),{},{fill:"none"});if("top"===a||"bottom"===a){var u=+("top"===a&&!c||"bottom"===a&&c);l=tI(tI({},l),{},{x1:n,y1:r+u*o,x2:n+i,y2:r+u*o})}else{var f=+("left"===a&&!c||"right"===a&&c);l=tI(tI({},l),{},{x1:n+f*i,y1:r,x2:n+f*i,y2:r+o})}return e.createElement("line",QN({},l,{className:Jr("recharts-cartesian-axis-line",Ca(s,"className"))}))}},{key:"renderTicks",value:function(t,n,r){var i=this,o=this.props,c=o.tickLine,s=o.stroke,l=o.tick,u=o.tickFormatter,f=o.unit,p=YN(tI(tI({},this.props),{},{ticks:t}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),m=xc(this.props),v=xc(l),y=tI(tI({},m),{},{fill:"none"},xc(c)),g=p.map((function(t,n){var r=i.getTickLineCoord(t),o=r.line,g=r.tick,b=tI(tI(tI(tI({textAnchor:d,verticalAnchor:h},m),{},{stroke:"none",fill:s},v),g),{},{index:n,payload:t,visibleTicksCount:p.length,tickFormatter:u});return e.createElement(jc,QN({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},oc(i.props,t,n)),c&&e.createElement("line",QN({},y,o,{className:Jr("recharts-cartesian-axis-tick-line",Ca(c,"className"))})),l&&a.renderTickItem(l,b,"".concat(xi(u)?u(t.value,n):t.value).concat(f||"")))}));return e.createElement("g",{className:"recharts-cartesian-axis-ticks"},g)}},{key:"render",value:function(){var t=this,n=this.props,r=n.axisLine,i=n.width,o=n.height,a=n.ticksGenerator,c=n.className;if(n.hide)return null;var s=this.props,l=s.ticks,u=nI(s,KN),f=l;return xi(a)&&(f=l&&l.length>0?a(this.props):a(u)),i<=0||o<=0||!f||!f.length?null:e.createElement(jc,{className:Jr("recharts-cartesian-axis",c),ref:function(e){t.layerReference=e}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),LT.renderCallByParent(this.props))}}],i=[{key:"renderTickItem",value:function(t,n,r){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(Cw,QN({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&rI(n.prototype,r),i&&rI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();cI(lI,"displayName","CartesianAxis"),cI(lI,"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 uI=["x1","y1","x2","y2","key"];function fI(e){return fI="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},fI(e)}function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pI.apply(this,arguments)}function dI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function hI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hI(Object(n),!0).forEach((function(t){xI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wI(r.key),r)}}function yI(e,t){return yI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yI(e,t)}function gI(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 n,r=bI(e);if(t){var i=bI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fI(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)}(this,n)}}function bI(e){return bI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bI(e)}function xI(e,t,n){return(t=wI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wI(e){var t=function(e,t){if("object"!==fI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fI(t)?t:String(t)}var _I=function(t){!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&&yI(e,t)}(a,p);var n,r,i,o=gI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(t){var n=this,r=this.props,i=r.x,o=r.width,c=r.horizontal;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=mI(mI({},n.props),{},{x1:i,y1:e,x2:i+o,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}},{key:"renderVertical",value:function(t){var n=this,r=this.props,i=r.y,o=r.height,c=r.vertical;if(!t||!t.length)return null;var s=t.map((function(e,t){var r=mI(mI({},n.props),{},{x1:e,y1:i,x2:e,y2:i+o,key:"line-".concat(t),index:t});return a.renderLineItem(c,r)}));return e.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}},{key:"renderVerticalStripes",value:function(t){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+o-o)})).sort((function(e,t){return e-t}));o!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:o+c-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),x:t,y:a,width:u,height:s,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},u)}},{key:"renderHorizontalStripes",value:function(t){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,i=r.fillOpacity,o=r.x,a=r.y,c=r.width,s=r.height,l=t.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==l[0]&&l.unshift(0);var u=l.map((function(t,r){var u=l[r+1]?l[r+1]-t:a+s-t;if(u<=0)return null;var f=r%n.length;return e.createElement("rect",{key:"react-".concat(r),y:t,x:o,height:u,width:c,stroke:"none",fill:n[f],fillOpacity:i,className:"recharts-cartesian-grid-bg"})}));return e.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},u)}},{key:"renderBackground",value:function(){var t=this.props.fill;if(!t||"none"===t)return null;var n=this.props,r=n.fillOpacity,i=n.x,o=n.y,a=n.width,c=n.height;return e.createElement("rect",{x:i,y:o,width:a,height:c,stroke:"none",fill:t,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var t=this.props,n=t.x,r=t.y,i=t.width,o=t.height,a=t.horizontal,c=t.vertical,s=t.horizontalCoordinatesGenerator,l=t.verticalCoordinatesGenerator,u=t.xAxis,f=t.yAxis,p=t.offset,d=t.chartWidth,h=t.chartHeight;if(!Ua(i)||i<=0||!Ua(o)||o<=0||!Ua(n)||n!==+n||!Ua(r)||r!==+r)return null;var m=this.props,v=m.horizontalPoints,y=m.verticalPoints;return v&&v.length||!xi(s)||(v=s({yAxis:f,width:d,height:h,offset:p})),y&&y.length||!xi(l)||(y=l({xAxis:u,width:d,height:h,offset:p})),e.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(v),c&&this.renderVertical(y),a&&this.renderHorizontalStripes(v),c&&this.renderVerticalStripes(y))}}],i=[{key:"renderLineItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(xi(t))r=t(n);else{var i=n.x1,o=n.y1,a=n.x2,c=n.y2,s=n.key,l=dI(n,uI);r=e.createElement("line",pI({},xc(l),{x1:i,y1:o,x2:a,y2:c,fill:"none",key:s}))}return r}}],r&&vI(n.prototype,r),i&&vI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();xI(_I,"displayName","CartesianGrid"),xI(_I,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var kI=["type","layout","connectNulls","ref"];function SI(e){return SI="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},SI(e)}function EI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function OI(){return OI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OI.apply(this,arguments)}function AI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function CI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?AI(Object(n),!0).forEach((function(t){RI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TI(e){return function(e){if(Array.isArray(e))return PI(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 PI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PI(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 PI(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LI(r.key),r)}}function DI(e,t){return DI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},DI(e,t)}function MI(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 n,r=II(e);if(t){var i=II(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return NI(e)}(this,n)}}function NI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function II(e){return II=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},II(e)}function RI(e,t,n){return(t=LI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LI(e){var t=function(e,t){if("object"!==SI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SI(t)?t:String(t)}var zI=function(t){!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&&DI(e,t)}(a,p);var n,r,i,o=MI(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RI(NI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),RI(NI(e),"getStrokeDasharray",(function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),i=Math.floor(e/r),o=e%r,c=t-e,s=[],l=0,u=0;;u+=n[l],++l)if(u+n[l]>o){s=[].concat(TI(n.slice(0,l)),[o-u]);break}var f=s.length%2==0?[0,c]:[c];return[].concat(TI(a.repeat(n,i)),TI(s),f).map((function(e){return"".concat(e,"px")})).join(", ")})),RI(NI(e),"id",$a("recharts-line-")),RI(NI(e),"pathRef",(function(t){e.mainCurve=t})),RI(NI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),RI(NI(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1}),e.props.onAnimationStart&&e.props.onAnimationStart()})),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var e=this.getTotalLength();this.setState({totalLength:e})}}},{key:"getTotalLength",value:function(){var e=this.mainCurve;try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch(e){return 0}}},{key:"renderErrorBar",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.points,o=r.xAxis,a=r.yAxis,c=r.layout,s=hc(r.children,PC);if(!s)return null;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:LC(e.payload,t)}}var u={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,u,s.map((function(t,n){return e.cloneElement(t,{key:"bar-".concat(n),data:i,xAxis:o,yAxis:a,layout:c,dataPointFormatter:l})})))}},{key:"renderDots",value:function(t,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,i=r.dot,o=r.points,c=r.dataKey,s=xc(this.props),l=xc(i,!0),u=o.map((function(e,t){var n=CI(CI(CI({key:"dot-".concat(t),r:3},s),l),{},{value:e.value,dataKey:c,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(i,n)})),f={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,OI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),u)}},{key:"renderCurveStatically",value:function(t,n,r,i){var o=this.props,a=o.type,c=o.layout,s=o.connectNulls;o.ref;var l=EI(o,kI),u=CI(CI(CI({},xc(l,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:t},i),{},{type:a,layout:c,connectNulls:s});return e.createElement(_P,OI({},u,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.strokeDasharray,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=i.animateNewValues,d=i.width,h=i.height,m=this.state,v=m.prevPoints,y=m.totalLength;return e.createElement(ng,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(e){var i=e.t;if(v){var c=v.length/o.length,s=o.map((function(e,t){var n=Math.floor(t*c);if(v[n]){var r=v[n],o=Za(r.x,e.x),a=Za(r.y,e.y);return CI(CI({},e),{},{x:o(i),y:a(i)})}if(p){var s=Za(2*d,e.x),l=Za(h/2,e.y);return CI(CI({},e),{},{x:s(i),y:l(i)})}return CI(CI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(s,t,n)}var l,u=Za(0,y)(i);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));l=r.getStrokeDasharray(u,y,f)}else l="".concat(u,"px ").concat(y-u,"px");return r.renderCurveStatically(o,t,n,{strokeDasharray:l})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,i=n.isAnimationActive,o=this.state,a=o.prevPoints,c=o.totalLength;return i&&r&&r.length&&(!a&&c>0||!Pw(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.xAxis,c=t.yAxis,s=t.top,l=t.left,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,v=Jr("recharts-line",o),y=a&&a.allowDataOverflow||c&&c.allowDataOverflow,g=Pa(d)?this.id:d;return e.createElement(jc,{className:v},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:l,y:s,width:u,height:f}))):null,!m&&this.renderCurve(y,g),this.renderErrorBar(y,g),(m||r)&&this.renderDots(y,g),(!p||h)&&KT.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 n=e.length%2!=0?[].concat(TI(e),[0]):e,r=[],i=0;i<t;++i)r=[].concat(TI(r),TI(n));return r}},{key:"renderDotItem",value:function(t,n){var r;if(e.isValidElement(t))r=e.cloneElement(t,n);else if(xi(t))r=t(n);else{var i=Jr("recharts-line-dot",t?t.className:"");r=e.createElement(ej,OI({},n,{className:i}))}return r}}],r&&jI(n.prototype,r),i&&jI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();RI(zI,"displayName","Line"),RI(zI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!bb.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),RI(zI,"getComposedData",(function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,a=e.dataKey,c=e.bandSize,s=e.displayedData,l=e.offset,u=t.layout;return CI({points:s.map((function(e,t){var s=LC(e,a);return"horizontal"===u?{x:tT({axis:n,ticks:i,bandSize:c,entry:e,index:t}),y:Pa(s)?null:r.scale(s),value:s,payload:e}:{x:Pa(s)?null:n.scale(s),y:tT({axis:r,ticks:o,bandSize:c,entry:e,index:t}),value:s,payload:e}})),layout:u},l)}));var FI=["layout","type","stroke","connectNulls","isRange","ref"];function BI(e){return BI="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},BI(e)}function qI(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function HI(){return HI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HI.apply(this,arguments)}function VI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function UI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VI(Object(n),!0).forEach((function(t){ZI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KI(r.key),r)}}function GI(e,t){return GI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},GI(e,t)}function $I(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 n,r=XI(e);if(t){var i=XI(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return YI(e)}(this,n)}}function YI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function XI(e){return XI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},XI(e)}function ZI(e,t,n){return(t=KI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KI(e){var t=function(e,t){if("object"!==BI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BI(t)?t:String(t)}var JI=function(t){!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&&GI(e,t)}(a,p);var n,r,i,o=$I(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return ZI(YI(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!0}),ZI(YI(e),"id",$a("recharts-area-")),ZI(YI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),ZI(YI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(t,n){var r=this.props.isAnimationActive,i=this.state.isAnimationFinished;if(r&&!i)return null;var o=this.props,c=o.dot,s=o.points,l=o.dataKey,u=xc(this.props),f=xc(c,!0),p=s.map((function(e,t){var n=UI(UI(UI({key:"dot-".concat(t),r:3},u),f),{},{dataKey:l,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(c,n)})),d={clipPath:t?"url(#clipPath-".concat(n,")"):null};return e.createElement(jc,HI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].x,c=i[i.length-1].x,s=t*Math.abs(a-c),l=zw(i.map((function(e){return e.y||0})));return Ua(r)&&"number"==typeof r?l=Math.max(r,l):r&&_i(r)&&r.length&&(l=Math.max(zw(r.map((function(e){return e.y||0}))),l)),Ua(l)?e.createElement("rect",{x:a<c?a:a-s,y:0,width:s,height:Math.floor(l+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(t){var n=this.props,r=n.baseLine,i=n.points,o=n.strokeWidth,a=i[0].y,c=i[i.length-1].y,s=t*Math.abs(a-c),l=zw(i.map((function(e){return e.x||0})));return Ua(r)&&"number"==typeof r?l=Math.max(r,l):r&&_i(r)&&r.length&&(l=Math.max(zw(r.map((function(e){return e.x||0}))),l)),Ua(l)?e.createElement("rect",{x:0,y:a<c?a:a-s,width:l+(o?parseInt("".concat(o),10):1),height:Math.floor(s)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(t,n,r,i){var o=this.props,a=o.layout,c=o.type,s=o.stroke,l=o.connectNulls,u=o.isRange;o.ref;var f=qI(o,FI);return e.createElement(jc,{clipPath:r?"url(#clipPath-".concat(i,")"):null},e.createElement(_P,HI({},xc(f,!0),{points:t,connectNulls:l,type:c,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==s&&e.createElement(_P,HI({},xc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:t})),"none"!==s&&u&&e.createElement(_P,HI({},xc(this.props),{className:"recharts-area-curve",layout:a,type:c,connectNulls:l,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(t,n){var r=this,i=this.props,o=i.points,a=i.baseLine,c=i.isAnimationActive,s=i.animationBegin,l=i.animationDuration,u=i.animationEasing,f=i.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return e.createElement(ng,{begin:s,duration:l,isActive:c,easing:u,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(i){var c=i.t;if(d){var s,l=d.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*l);if(d[n]){var r=d[n],i=Za(r.x,e.x),o=Za(r.y,e.y);return UI(UI({},e),{},{x:i(c),y:o(c)})}return e}));return s=Ua(a)&&"number"==typeof a?Za(h,a)(c):Pa(a)||qa(a)?Za(h,0)(c):a.map((function(e,t){var n=Math.floor(t*l);if(h[n]){var r=h[n],i=Za(r.x,e.x),o=Za(r.y,e.y);return UI(UI({},e),{},{x:i(c),y:o(c)})}return e})),r.renderAreaStatically(u,s,t,n)}return e.createElement(jc,null,e.createElement("defs",null,e.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(c))),e.createElement(jc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(o,a,t,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,i=n.baseLine,o=n.isAnimationActive,a=this.state,c=a.prevPoints,s=a.prevBaseLine,l=a.totalLength;return o&&r&&r.length&&(!c&&l>0||!Pw(c,r)||!Pw(s,i))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,i,e,t)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.dot,i=t.points,o=t.className,a=t.top,c=t.left,s=t.xAxis,l=t.yAxis,u=t.width,f=t.height,p=t.isAnimationActive,d=t.id;if(n||!i||!i.length)return null;var h=this.state.isAnimationFinished,m=1===i.length,v=Jr("recharts-area",o),y=s&&s.allowDataOverflow||l&&l.allowDataOverflow,g=Pa(d)?this.id:d;return e.createElement(jc,{className:v},y?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(g)},e.createElement("rect",{x:c,y:a,width:u,height:Math.floor(f)}))):null,m?null:this.renderArea(y,g),(r||m)&&this.renderDots(y,g),(!p||h)&&KT.renderCallByParent(this.props,i))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&WI(n.prototype,r),i&&WI(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();ZI(JI,"displayName","Area"),ZI(JI,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),ZI(JI,"getBaseValue",(function(e,t,n,r){var i=e.layout,o=e.baseValue,a=t.props.baseValue,c=null!=a?a:o;if(Ua(c)&&"number"==typeof c)return c;var s="horizontal"===i?r:n,l=s.scale.domain();if("number"===s.type){var u=Math.max(l[0],l[1]),f=Math.min(l[0],l[1]);return"dataMin"===c?f:"dataMax"===c||u<0?u:Math.max(Math.min(l[0],l[1]),0)}return"dataMin"===c?l[0]:"dataMax"===c?l[1]:l[0]})),ZI(JI,"getComposedData",(function(e){var t,n=e.props,r=e.item,i=e.xAxis,o=e.yAxis,a=e.xAxisTicks,c=e.yAxisTicks,s=e.bandSize,l=e.dataKey,u=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,m=u&&u.length,v=JI.getBaseValue(n,r,i,o),y=!1,g=p.map((function(e,t){var n,r=LC(e,l);m?n=u[f+t]:_i(n=r)?y=!0:n=[v,n];var p=Pa(n[1])||m&&Pa(r);return"horizontal"===h?{x:tT({axis:i,ticks:a,bandSize:s,entry:e,index:t}),y:p?null:o.scale(n[1]),value:n,payload:e}:{x:p?null:i.scale(n[1]),y:tT({axis:o,ticks:c,bandSize:s,entry:e,index:t}),value:n,payload:e}}));return t=m||y?g.map((function(e){return"horizontal"===h?{x:e.x,y:Pa(Ca(e,"value[0]"))||Pa(Ca(e,"y"))?null:o.scale(Ca(e,"value[0]"))}:{x:Pa(Ca(e,"value[0]"))?null:i.scale(Ca(e,"value[0]")),y:e.y}})):"horizontal"===h?o.scale(v):i.scale(v),UI({points:g,baseLine:t,layout:h,isRange:y},d)})),ZI(JI,"renderDotItem",(function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(ej,HI({},n,{className:"recharts-area-dot"}))}));var QI=function(){return null};function eR(e){return eR="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},eR(e)}function tR(){return tR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tR.apply(this,arguments)}function nR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nR(Object(n),!0).forEach((function(t){lR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uR(r.key),r)}}function oR(e,t){return oR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oR(e,t)}function aR(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 n,r=sR(e);if(t){var i=sR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===eR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return cR(e)}(this,n)}}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sR(e){return sR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sR(e)}function lR(e,t,n){return(t=uR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uR(e){var t=function(e,t){if("object"!==eR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==eR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===eR(t)?t:String(t)}QI.displayName="ZAxis",QI.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var fR=function(t){!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&&oR(e,t)}(a,p);var n,r,i,o=aR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return lR(cR(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),lR(cR(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),lR(cR(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),lR(cR(e),"id",$a("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(t){var n=this,r=this.props,i=r.shape,o=r.activeShape,c=r.activeIndex,s=xc(this.props);return t.map((function(t,r){var l=rR(rR({key:"symbol-".concat(r)},s),t);return e.createElement(jc,tR({className:"recharts-scatter-symbol"},oc(n.props,t,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(c===r?o:i,l))}))}},{key:"renderSymbolsWithAnimation",value:function(){var t=this,n=this.props,r=n.points,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevPoints;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(s),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.cx,e.cx),o=Za(n.cy,e.cy),a=Za(n.size,e.size);return rR(rR({},e),{},{cx:r(i),cy:o(i),size:a(i)})}var c=Za(0,e.size);return rR(rR({},e),{},{size:c(i)})}));return e.createElement(jc,null,t.renderSymbolsStatically(o))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.points,r=t.xAxis,i=t.yAxis,o=hc(t.children,PC);if(!o)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:LC(e,t)}}function c(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:LC(e,t)}}return o.map((function(t,o){var s=t.props.direction;return e.cloneElement(t,{key:o,data:n,xAxis:r,yAxis:i,layout:"x"===s?"vertical":"horizontal",dataPointFormatter:"x"===s?c:a})}))}},{key:"renderLine",value:function(){var t,n,r=this.props,i=r.points,o=r.line,a=r.lineType,c=r.lineJointType,s=xc(this.props),l=xc(o);if("joint"===a)t=i.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var u=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,i=0,o=0,a=1/0,c=-1/0,s=0,l=0,u=0;u<t;u++)n+=s=e[u].cx||0,r+=l=e[u].cy||0,i+=s*l,o+=s*s,a=Math.min(a,s),c=Math.max(c,s);var f=t*o!=n*n?(t*i-n*r)/(t*o-n*n):0;return{xmin:a,xmax:c,a:f,b:(r-f*n)/t}}(i),f=u.xmin,p=u.xmax,d=u.a,h=u.b,m=function(e){return d*e+h};t=[{x:f,y:m(f)},{x:p,y:m(p)}]}var v=rR(rR(rR({},s),{},{fill:"none",stroke:s&&s.fill},l),{},{points:t});return n=e.isValidElement(o)?e.cloneElement(o,v):xi(o)?o(v):e.createElement(_P,tR({},v,{type:c})),e.createElement(jc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.points,i=t.line,o=t.className,a=t.xAxis,c=t.yAxis,s=t.left,l=t.top,u=t.width,f=t.height,p=t.id,d=t.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,m=Jr("recharts-scatter",o),v=a&&a.allowDataOverflow||c&&c.allowDataOverflow,y=Pa(p)?this.id:p;return e.createElement(jc,{className:m,clipPath:v?"url(#clipPath-".concat(y,")"):null},v?e.createElement("defs",null,e.createElement("clipPath",{id:"clipPath-".concat(y)},e.createElement("rect",{x:s,y:l,width:u,height:f}))):null,i&&this.renderLine(),this.renderErrorBar(),e.createElement(jc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&KT.renderCallByParent(this.props,r))}}],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:"renderSymbolItem",value:function(t,n){var r;return e.isValidElement(t)?r=e.cloneElement(t,n):xi(t)?r=t(n):"string"==typeof t&&(r=e.createElement(Sd,tR({},n,{type:t}))),r}}],r&&iR(n.prototype,r),i&&iR(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();lR(fR,"displayName","Scatter"),lR(fR,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),lR(fR,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,o=e.displayedData,a=e.xAxisTicks,c=e.yAxisTicks,s=e.offset,l=i.props.tooltipType,u=hc(i.props.children,mx),f=Pa(t.dataKey)?i.props.dataKey:t.dataKey,p=Pa(n.dataKey)?i.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:QI.defaultProps.range,m=h&&h[0],v=t.scale.bandwidth?t.scale.bandwidth():0,y=n.scale.bandwidth?n.scale.bandwidth():0,g=o.map((function(e,o){var s=LC(e,f),h=LC(e,p),g=!Pa(d)&&LC(e,d)||"-",b=[{name:Pa(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:s,payload:e,dataKey:f,type:l},{name:Pa(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:l}];"-"!==g&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:g,payload:e,dataKey:d,type:l});var x=tT({axis:t,ticks:a,bandSize:v,entry:e,index:o,dataKey:f}),w=tT({axis:n,ticks:c,bandSize:y,entry:e,index:o,dataKey:p}),_="-"!==g?r.scale(g):m,k=Math.sqrt(Math.max(_,0)/Math.PI);return rR(rR({},e),{},{cx:x,cy:w,x:x-k,y:w-k,xAxis:t,yAxis:n,zAxis:r,width:2*k,height:2*k,size:_,node:{x:s,y:h,z:g},tooltipPayload:b,tooltipPosition:{x:x,y:w},payload:e},u&&u[o]&&u[o].props)}));return rR({points:g},s)}));var pR=function(){return null};pR.displayName="XAxis",pR.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 dR=function(){return null};dR.displayName="YAxis",dR.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 hR=nf,mR=ml,vR=bl;var yR=function(e){return function(t,n,r){var i=Object(t);if(!mR(t)){var o=hR(n);t=vR(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}},gR=iM;var bR=rf,xR=nf,wR=function(e){var t=gR(e),n=t%1;return t==t?n?t-n:t:0},_R=Math.max;var kR=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:wR(n);return i<0&&(i=_R(r+i,0)),bR(e,xR(t),i)},SR=E(yR(kR)),ER=vi,OR=ki;var AR=E((function(e){return!0===e||!1===e||OR(e)&&"[object Boolean]"==ER(e)}));function CR(e){return function(e){if(Array.isArray(e))return TR(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 TR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TR(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 TR(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var PR=function(e,t,n,r,i){var o=hc(e,TN),a=hc(e,IN),c=[].concat(CR(o),CR(a)),s=hc(e,qN),l="".concat(r,"Id"),u=r[0],f=t;if(c.length&&(f=c.reduce((function(e,t){if(t.props[l]===n&&IM(t.props,"extendDomain")&&Ua(t.props[u])){var r=t.props[u];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),s.length){var p="".concat(u,"1"),d="".concat(u,"2");f=s.reduce((function(e,t){if(t.props[l]===n&&IM(t.props,"extendDomain")&&Ua(t.props[p])&&Ua(t.props[d])){var r=t.props[p],i=t.props[d];return[Math.min(e[0],r,i),Math.max(e[1],r,i)]}return e}),f)}return i&&i.length&&(f=i.reduce((function(e,t){return Ua(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},jR={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,r,o,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var c=new i(r,o||e,a),s=n?n+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],c]:e._events[s].push(c):(e._events[s]=c,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function c(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),c.prototype.eventNames=function(){var e,r,i=[];if(0===this._eventsCount)return i;for(r in e=this._events)t.call(e,r)&&i.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(e)):i},c.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var i=0,o=r.length,a=new Array(o);i<o;i++)a[i]=r[i].fn;return a},c.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},c.prototype.emit=function(e,t,r,i,o,a){var c=n?n+e:e;if(!this._events[c])return!1;var s,l,u=this._events[c],f=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),f){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,r),!0;case 4:return u.fn.call(u.context,t,r,i),!0;case 5:return u.fn.call(u.context,t,r,i,o),!0;case 6:return u.fn.call(u.context,t,r,i,o,a),!0}for(l=1,s=new Array(f-1);l<f;l++)s[l-1]=arguments[l];u.fn.apply(u.context,s)}else{var p,d=u.length;for(l=0;l<d;l++)switch(u[l].once&&this.removeListener(e,u[l].fn,void 0,!0),f){case 1:u[l].fn.call(u[l].context);break;case 2:u[l].fn.call(u[l].context,t);break;case 3:u[l].fn.call(u[l].context,t,r);break;case 4:u[l].fn.call(u[l].context,t,r,i);break;default:if(!s)for(p=1,s=new Array(f-1);p<f;p++)s[p-1]=arguments[p];u[l].fn.apply(u[l].context,s)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,r,i){var o=n?n+e:e;if(!this._events[o])return this;if(!t)return a(this,o),this;var c=this._events[o];if(c.fn)c.fn!==t||i&&!c.once||r&&c.context!==r||a(this,o);else{for(var s=0,l=[],u=c.length;s<u;s++)(c[s].fn!==t||i&&!c[s].once||r&&c[s].context!==r)&&l.push(c[s]);l.length?this._events[o]=1===l.length?l[0]:l:a(this,o)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&a(this,t)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c}(jR);var DR=new(E(jR.exports));DR.setMaxListeners&&DR.setMaxListeners(10);var MR="recharts.syncMouseEvents",NR=["item"],IR=["children","className","width","height","style","compact","title","desc"];function RR(e){return RR="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},RR(e)}function LR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||GR(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 zR(){return zR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zR.apply(this,arguments)}function FR(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KR(r.key),r)}}function qR(e,t){return qR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qR(e,t)}function HR(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 n,r=UR(e);if(t){var i=UR(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===RR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VR(e)}(this,n)}}function VR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UR(e){return UR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UR(e)}function WR(e){return function(e){if(Array.isArray(e))return $R(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||GR(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 GR(e,t){if(e){if("string"==typeof e)return $R(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?$R(e,t):void 0}}function $R(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function YR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function XR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YR(Object(n),!0).forEach((function(t){ZR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZR(e,t,n){return(t=KR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e){var t=function(e,t){if("object"!==RR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RR(t)?t:String(t)}var JR={xAxis:["bottom","top"],yAxis:["left","right"]},QR={x:0,y:0},eL=Number.isFinite?Number.isFinite:isFinite,tL="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,nL="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,rL=function(e,t,n){var r=t.graphicalItems,i=t.dataStartIndex,o=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(WR(e),WR(n)):e}),[]);return a&&a.length>0?a:n&&n.props&&n.props.data&&n.props.data.length>0?n.props.data:e&&e.length&&Ua(i)&&Ua(o)?e.slice(i,o+1):[]};function iL(e){return"number"===e?[0,"auto"]:void 0}var oL=function(e,t,n,r){var i=e.graphicalItems,o=e.tooltipAxis,a=rL(t,e);return n<0||!i||!i.length||n>=a.length?null:i.reduce((function(e,t){if(t.props.hide)return e;var i,c=t.props.data;o.dataKey&&!o.allowDuplicatedCategory?i=Ka(void 0===c?a:c,o.dataKey,r):i=c&&c[n]||a[n];return i?[].concat(WR(e),[uT(t,i)]):e}),[])},aL=function(e,t,n,r){var i=r||{x:e.chartX,y:e.chartY},o=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(i,n),a=e.orderedTooltipTicks,c=e.tooltipAxis,s=e.tooltipTicks,l=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a<=1)return 0;if(i&&"angleAxis"===i.axisType&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var c=i.range,s=0;s<a;s++){var l=s>0?r[s-1].coordinate:r[a-1].coordinate,u=r[s].coordinate,f=s>=a-1?r[0].coordinate:r[s+1].coordinate,p=void 0;if(Ha(u-l)!==Ha(f-u)){var d=[];if(Ha(f-u)===Ha(c[1]-c[0])){p=f;var h=u+c[1]-c[0];d[0]=Math.min(h,(h+l)/2),d[1]=Math.max(h,(h+l)/2)}else{p=l;var m=f+c[1]-c[0];d[0]=Math.min(u,(m+u)/2),d[1]=Math.max(u,(m+u)/2)}var v=[Math.min(u,(p+u)/2),Math.max(u,(p+u)/2)];if(e>v[0]&&e<=v[1]||e>=d[0]&&e<=d[1]){o=r[s].index;break}}else{var y=Math.min(l,f),g=Math.max(l,f);if(e>(y+u)/2&&e<=(g+u)/2){o=r[s].index;break}}}else for(var b=0;b<a;b++)if(0===b&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b>0&&b<a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2&&e<=(n[b].coordinate+n[b+1].coordinate)/2||b===a-1&&e>(n[b].coordinate+n[b-1].coordinate)/2){o=n[b].index;break}return o}(o,a,s,c);if(l>=0&&s){var u=s[l]&&s[l].value,f=oL(e,t,l,u),p=function(e,t,n,r){var i=t.find((function(e){return e&&e.index===n}));if(i){if("horizontal"===e)return{x:i.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:i.coordinate};if("centric"===e){var o=i.coordinate,a=r.radius;return XR(XR(XR({},r),bT(r.cx,r.cy,a,o)),{},{angle:o,radius:a})}var c=i.coordinate,s=r.angle;return XR(XR(XR({},r),bT(r.cx,r.cy,c,s)),{},{angle:s,radius:c})}return QR}(n,a,l,i);return{activeTooltipIndex:l,activeLabel:u,activePayload:f,activeCoordinate:p}}return null},cL=function(e,t){var n=t.axes,r=t.graphicalItems,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=e.stackOffset,p=VC(l,i),d=n.reduce((function(t,n){var d,h=n.props,m=h.type,v=h.dataKey,y=h.allowDataOverflow,g=h.allowDuplicatedCategory,b=h.scale,x=h.ticks,w=h.includeHidden,_=n.props[o];if(t[_])return t;var k,S,E,O=rL(e.data,{graphicalItems:r.filter((function(e){return e.props[o]===_})),dataStartIndex:c,dataEndIndex:s}),A=O.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],i=null==e?void 0:e[1];if(r&&i&&Ua(r)&&Ua(i))return!0}return!1})(n.props.domain,y,m)&&(k=cT(n.props.domain,null,y),!p||"number"!==m&&"auto"===b||(E=zC(O,v,"category")));var C=iL(m);if(!k||0===k.length){var T,P=null!==(T=n.props.domain)&&void 0!==T?T:C;if(v){if(k=zC(O,v,m),"category"===m&&p){var j=function(e){if(!_i(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(k);g&&j?(S=k,k=sM(0,A)):g||(k=lT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(WR(e),[t])}),[]))}else if("category"===m)k=g?k.filter((function(e){return""!==e&&!Pa(e)})):lT(P,k,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Pa(t)?e:[].concat(WR(e),[t])}),[]);else if("number"===m){var D=function(e,t,n,r,i){var o=t.map((function(t){return qC(e,t,n,i,r)})).filter((function(e){return!Pa(e)}));return o&&o.length?o.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),v,i,l);D&&(k=D)}!p||"number"!==m&&"auto"===b||(E=zC(O,v,"category"))}else k=p?sM(0,A):a&&a[_]&&a[_].hasStack&&"number"===m?"expand"===f?[0,1]:iT(a[_].stackGroups,c,s):HC(O,r.filter((function(e){return e.props[o]===_&&(w||!e.props.hide)})),m,l,!0);if("number"===m)k=PR(u,k,_,i,x),P&&(k=cT(P,k,y));else if("category"===m&&P){var M=P;k.every((function(e){return M.indexOf(e)>=0}))&&(k=M)}}return XR(XR({},t),{},ZR({},_,XR(XR({},n.props),{},{axisType:i,domain:k,categoricalDomain:E,duplicateDomain:S,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:C,isCategorical:p,layout:l})))}),{});return d},sL=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,i=t.AxisComp,o=t.graphicalItems,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.children,u="".concat(r,"Id"),f=hc(l,i),p={};return f&&f.length?p=cL(e,{axes:f,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s}):o&&o.length&&(p=function(e,t){var n=t.graphicalItems,r=t.Axis,i=t.axisType,o=t.axisIdKey,a=t.stackGroups,c=t.dataStartIndex,s=t.dataEndIndex,l=e.layout,u=e.children,f=rL(e.data,{graphicalItems:n,dataStartIndex:c,dataEndIndex:s}),p=f.length,d=VC(l,i),h=-1;return n.reduce((function(e,t){var m,v=t.props[o],y=iL("number");return e[v]?e:(h++,d?m=sM(0,p):a&&a[v]&&a[v].hasStack?(m=iT(a[v].stackGroups,c,s),m=PR(u,m,v,i)):(m=cT(y,HC(f,n.filter((function(e){return e.props[o]===v&&!e.props.hide})),"number",l),r.defaultProps.allowDataOverflow),m=PR(u,m,v,i)),XR(XR({},e),{},ZR({},v,XR(XR({axisType:i},r.defaultProps),{},{hide:!0,orientation:Ca(JR,"".concat(i,".").concat(h%2),null),domain:m,originalDomain:y,isCategorical:d,layout:l}))))}),{})}(e,{Axis:i,graphicalItems:o,axisType:r,axisIdKey:u,stackGroups:a,dataStartIndex:c,dataEndIndex:s})),p},lL=function(e){var t,n,r=e.children,i=e.defaultShowTooltip,o=mc(r,OM);return{chartX:0,chartY:0,dataStartIndex:o&&o.props&&o.props.startIndex||0,dataEndIndex:void 0!==(null==o||null===(t=o.props)||void 0===t?void 0:t.endIndex)?null==o||null===(n=o.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Pa(i)&&i}},uL=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"}},fL=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),i=void 0===r?{}:r,o=e.yAxisMap,a=void 0===o?{}:o,c=n.width,s=n.height,l=n.children,u=n.margin||{},f=mc(l,OM),p=mc(l,Zd),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:XR(XR({},e),{},ZR({},r,e[r]+n.width))}),{left:u.left||0,right:u.right||0}),h=Object.keys(i).reduce((function(e,t){var n=i[t],r=n.orientation;return n.mirror||n.hide?e:XR(XR({},e),{},ZR({},r,Ca(e,"".concat(r))+n.height))}),{top:u.top||0,bottom:u.bottom||0}),m=XR(XR({},h),d),v=m.bottom;return f&&(m.bottom+=f.props.height||OM.defaultProps.height),p&&t&&(m=function(e,t,n,r){var i=n.children,o=n.width,a=n.margin,c=o-(a.left||0)-(a.right||0),s=BC({children:i,legendWidth:c}),l=e;if(s){var u=r||{},f=s.align,p=s.verticalAlign,d=s.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Ua(e[f])&&(l=IC(IC({},e),{},RC({},f,l[f]+(u.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Ua(e[p])&&(l=IC(IC({},e),{},RC({},p,l[p]+(u.height||0))))}return l}(m,0,n,t)),XR(XR({brushBottom:v},m),{},{width:c-m.left-m.right,height:s-m.top-m.bottom})},pL=function(t){var r,i=t.chartName,o=t.GraphicalChild,a=t.defaultTooltipEventType,c=void 0===a?"axis":a,s=t.validateTooltipEventTypes,l=void 0===s?["axis"]:s,f=t.axisComponents,p=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,v=function(e,t){var n=t.graphicalItems,r=t.stackGroups,i=t.offset,o=t.updateId,a=t.dataStartIndex,c=t.dataEndIndex,s=e.barSize,l=e.layout,u=e.barGap,p=e.barCategoryGap,d=e.maxBarSize,h=uL(l),m=h.numericAxisName,v=h.cateAxisName,y=function(e){return!(!e||!e.length)&&e.some((function(e){var t=uc(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),g=y&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var i={},o=Object.keys(r),a=0,c=o.length;a<c;a++)for(var s=r[o[a]].stackGroups,l=Object.keys(s),u=0,f=l.length;u<f;u++){var p=s[l[u]],d=p.items,h=p.cateAxisId,m=d.filter((function(e){return uc(e.type).indexOf("Bar")>=0}));if(m&&m.length){var v=m[0].props.barSize,y=m[0].props[h];i[y]||(i[y]=[]),i[y].push({item:m[0],stackList:m.slice(1),barSize:Pa(v)?t:v})}}return i}({barSize:s,stackGroups:r}),b=[];return n.forEach((function(n,s){var h=rL(e.data,{dataStartIndex:a,dataEndIndex:c},n),y=n.props,x=y.dataKey,w=y.maxBarSize,_=n.props["".concat(m,"Id")],k=n.props["".concat(v,"Id")],S=f.reduce((function(e,r){var i,o=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],c=o&&o[a];return XR(XR({},e),{},(ZR(i={},r.axisType,c),ZR(i,"".concat(r.axisType,"Ticks"),WC(c)),i))}),{}),E=S[v],O=S["".concat(v,"Ticks")],A=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Wa(n)){var r=t[n];if(r&&r.items.length){for(var i=-1,o=0,a=r.items.length;o<a;o++)if(r.items[o]===e){i=o;break}return i>=0?r.stackedData[i]:null}}return null}(n,r[_].stackGroups),C=uc(n.type).indexOf("Bar")>=0,T=sT(E,O),P=[];if(C){var j,D,M=Pa(w)?d:w,N=null!==(j=null!==(D=sT(E,O,!0))&&void 0!==D?D:M)&&void 0!==j?j:0;P=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,i=e.sizeList,o=void 0===i?[]:i,a=e.maxBarSize,c=o.length;if(c<1)return null;var s,l=Ya(t,r,0,!0);if(o[0].barSize===+o[0].barSize){var u=!1,f=r/c,p=o.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(c-1)*l)>=r&&(p-=(c-1)*l,l=0),p>=r&&f>0&&(u=!0,p=c*(f*=.9));var d={offset:((r-p)/2>>0)-l,size:0};s=o.reduce((function(e,t){var n=[].concat(DC(e),[{item:t.item,position:{offset:d.offset+d.size+l,size:u?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Ya(n,r,0,!0);r-2*h-(c-1)*l<=0&&(l=0);var m=(r-2*h-(c-1)*l)/c;m>1&&(m>>=0);var v=a===+a?Math.min(m,a):m;s=o.reduce((function(e,t,n){var r=[].concat(DC(e),[{item:t.item,position:{offset:h+(m+l)*n+(m-v)/2,size:v}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return s}({barGap:u,barCategoryGap:p,bandSize:N!==T?N:T,sizeList:g[k],maxBarSize:M}),N!==T&&(P=P.map((function(e){return XR(XR({},e),{},{position:XR(XR({},e.position),{},{offset:e.position.offset-N/2})})})))}var I,R,L,z=n&&n.type&&n.type.getComposedData;z&&b.push({props:XR(XR({},z(XR(XR({},S),{},{displayedData:h,props:e,dataKey:x,item:n,bandSize:T,barPosition:P,offset:i,stackedData:A,layout:l,dataStartIndex:a,dataEndIndex:c}))),{},(I={key:n.key||"item-".concat(s)},ZR(I,m,S[m]),ZR(I,v,S[v]),ZR(I,"animationId",o),I)),childIndex:(R=n,L=e.children,dc(L).indexOf(R)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,c=e.updateId;if(!vc({props:n}))return null;var s=n.children,l=n.layout,u=n.stackOffset,p=n.data,d=n.reverseStackOrder,m=uL(l),y=m.numericAxisName,g=m.cateAxisName,b=hc(s,o),x=function(e,t,n,r,i,o){if(!e)return null;var a=(o?t.reverse():t).reduce((function(e,t){var i=t.props,o=i.stackId;if(i.hide)return e;var a=t.props[n],c=e[a]||{hasStack:!1,stackGroups:{}};if(Wa(o)){var s=c.stackGroups[o]||{numericAxisId:n,cateAxisId:r,items:[]};s.items.push(t),c.hasStack=!0,c.stackGroups[o]=s}else c.stackGroups[$a("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return IC(IC({},e),{},RC({},a,c))}),{});return Object.keys(a).reduce((function(t,o){var c=a[o];return c.hasStack&&(c.stackGroups=Object.keys(c.stackGroups).reduce((function(t,o){var a=c.stackGroups[o];return IC(IC({},t),{},RC({},o,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:QC(e,a.items,i)}))}),{})),IC(IC({},t),{},RC({},o,c))}),{})}(p,b,"".concat(y,"Id"),"".concat(g,"Id"),u,d),w=f.reduce((function(e,t){var i="".concat(t.axisType,"Map");return XR(XR({},e),{},ZR({},i,sL(n,XR(XR({},t),{},{graphicalItems:b,stackGroups:t.axisType===y&&x,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=fL(XR(XR({},w),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(w).forEach((function(e){w[e]=h(n,w[e],_,e.replace("Map",""),i)}));var k,S,E=w["".concat(g,"Map")],O=(k=Xa(E),{tooltipTicks:S=WC(k,!1,!0),orderedTooltipTicks:ob(S,(function(e){return e.coordinate})),tooltipAxis:k,tooltipAxisBandSize:sT(k,S)}),A=v(n,XR(XR({},w),{},{dataStartIndex:r,dataEndIndex:a,updateId:c,graphicalItems:b,stackGroups:x,offset:_}));return XR(XR({formattedGraphicalItems:A,graphicalItems:b,offset:_,stackGroups:x},O),w)};return r=function(t){!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&&qR(e,t)}(f,g);var r,o,a,s=HR(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),ZR(VR(t=s.call(this,e)),"clearDeferId",(function(){!Pa(t.deferId)&&nL&&nL(t.deferId),t.deferId=null})),ZR(VR(t),"handleLegendBBoxUpdate",(function(e){if(e){var n=t.state,r=n.dataStartIndex,i=n.dataEndIndex,o=n.updateId;t.setState(XR({legendBBox:e},y({props:t.props,dataStartIndex:r,dataEndIndex:i,updateId:o},XR(XR({},t.state),{},{legendBBox:e}))))}})),ZR(VR(t),"handleReceiveSyncEvent",(function(e,n,r){t.props.syncId===e&&n!==t.uniqueChartId&&(t.clearDeferId(),t.deferId=tL&&tL(t.applySyncEvent.bind(VR(t),r)))})),ZR(VR(t),"handleBrushChange",(function(e){var n=e.startIndex,r=e.endIndex;if(n!==t.state.dataStartIndex||r!==t.state.dataEndIndex){var i=t.state.updateId;t.setState((function(){return XR({dataStartIndex:n,dataEndIndex:r},y({props:t.props,dataStartIndex:n,dataEndIndex:r,updateId:i},t.state))})),t.triggerSyncEvent({dataStartIndex:n,dataEndIndex:r})}})),ZR(VR(t),"handleMouseEnter",(function(e){var n=t.props.onMouseEnter,r=t.getMouseInfo(e);if(r){var i=XR(XR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)}})),ZR(VR(t),"triggeredAfterMouseMove",(function(e){var n=t.props.onMouseMove,r=t.getMouseInfo(e),i=r?XR(XR({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)})),ZR(VR(t),"handleItemMouseEnter",(function(e){t.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),ZR(VR(t),"handleItemMouseLeave",(function(){t.setState((function(){return{isTooltipActive:!1}}))})),ZR(VR(t),"handleMouseMove",(function(e){e&&xi(e.persist)&&e.persist(),t.triggeredAfterMouseMove(e)})),ZR(VR(t),"handleMouseLeave",(function(e){var n=t.props.onMouseLeave,r={isTooltipActive:!1};t.setState(r),t.triggerSyncEvent(r),xi(n)&&n(r,e),t.cancelThrottledTriggerAfterMouseMove()})),ZR(VR(t),"handleOuterEvent",(function(e){var n=function(e){var t=e&&e.type;return t&&lc[t]?lc[t]:null}(e),r=Ca(t.props,"".concat(n));n&&xi(r)&&r(/.*touch.*/i.test(n)?t.getMouseInfo(e.changedTouches[0]):t.getMouseInfo(e),e)})),ZR(VR(t),"handleClick",(function(e){var n=t.props.onClick,r=t.getMouseInfo(e);if(r){var i=XR(XR({},r),{},{isTooltipActive:!0});t.setState(i),t.triggerSyncEvent(i),xi(n)&&n(i,e)}})),ZR(VR(t),"handleMouseDown",(function(e){var n=t.props.onMouseDown;xi(n)&&n(t.getMouseInfo(e),e)})),ZR(VR(t),"handleMouseUp",(function(e){var n=t.props.onMouseUp;xi(n)&&n(t.getMouseInfo(e),e)})),ZR(VR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseMove(e.changedTouches[0])})),ZR(VR(t),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseDown(e.changedTouches[0])})),ZR(VR(t),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleMouseUp(e.changedTouches[0])})),ZR(VR(t),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,i=e.offset;return UC(YN(XR(XR(XR({},lI.defaultProps),t),{},{ticks:WC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.left,i.left+i.width)})),ZR(VR(t),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,i=e.offset;return UC(YN(XR(XR(XR({},lI.defaultProps),t),{},{ticks:WC(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),i.top,i.top+i.height)})),ZR(VR(t),"axesTicksGenerator",(function(e){return WC(e,!0)})),ZR(VR(t),"renderCursor",(function(e){var r=t.state,o=r.isTooltipActive,a=r.activeCoordinate,c=r.activePayload,s=r.offset,l=r.activeTooltipIndex,f=t.getTooltipEventType();if(!e||!e.props.cursor||!o||!a||"ScatterChart"!==i&&"axis"!==f)return null;var p,h=t.props.layout,m=_P;if("ScatterChart"===i)p=a,m=sj;else if("BarChart"===i)p=t.getCursorRectangle(),m=NP;else if("radial"===h){var v=t.getCursorPoints(),y=v.cx,g=v.cy,b=v.radius;p={cx:y,cy:g,startAngle:v.startAngle,endAngle:v.endAngle,innerRadius:b,outerRadius:b},m=cP}else p={points:t.getCursorPoints()},m=_P;var x=e.key||"_recharts-cursor",w=XR(XR(XR(XR({stroke:"#ccc",pointerEvents:"none"},s),p),xc(e.props.cursor)),{},{payload:c,payloadIndex:l,key:x,className:"recharts-tooltip-cursor"});return u(e.props.cursor)?d(e.props.cursor,w):n(m,w)})),ZR(VR(t),"renderPolarAxis",(function(e,n,r){var i=Ca(e,"type.axisType"),o=Ca(t.state,"".concat(i,"Map")),a=o&&o[e.props["".concat(i,"Id")]];return d(e,XR(XR({},a),{},{className:i,key:e.key||"".concat(n,"-").concat(r),ticks:WC(a,!0)}))})),ZR(VR(t),"renderXAxis",(function(e,n,r){var i=t.state.xAxisMap[e.props.xAxisId];return t.renderAxis(i,e,n,r)})),ZR(VR(t),"renderYAxis",(function(e,n,r){var i=t.state.yAxisMap[e.props.yAxisId];return t.renderAxis(i,e,n,r)})),ZR(VR(t),"renderGrid",(function(e){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,o=n.offset,a=t.props,c=a.width,s=a.height,l=Xa(r),u=SR(i,(function(e){return UM(e.domain,eL)}))||Xa(i),f=e.props||{};return d(e,{key:e.key||"grid",x:Ua(f.x)?f.x:o.left,y:Ua(f.y)?f.y:o.top,width:Ua(f.width)?f.width:o.width,height:Ua(f.height)?f.height:o.height,xAxis:l,yAxis:u,offset:o,chartWidth:c,chartHeight:s,verticalCoordinatesGenerator:f.verticalCoordinatesGenerator||t.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:f.horizontalCoordinatesGenerator||t.horizontalCoordinatesGenerator})})),ZR(VR(t),"renderPolarGrid",(function(e){var n=e.props,r=n.radialLines,i=n.polarAngles,o=n.polarRadius,a=t.state,c=a.radiusAxisMap,s=a.angleAxisMap,l=Xa(c),u=Xa(s),f=u.cx,p=u.cy,h=u.innerRadius,m=u.outerRadius;return d(e,{polarAngles:_i(i)?i:WC(u,!0).map((function(e){return e.coordinate})),polarRadius:_i(o)?o:WC(l,!0).map((function(e){return e.coordinate})),cx:f,cy:p,innerRadius:h,outerRadius:m,key:e.key||"polar-grid",radialLines:r})})),ZR(VR(t),"renderLegend",(function(){var e=t.state.formattedGraphicalItems,n=t.props,r=n.children,i=n.width,o=n.height,a=t.props.margin||{},c=i-(a.left||0)-(a.right||0),s=BC({children:r,formattedGraphicalItems:e,legendWidth:c,legendContent:p});if(!s)return null;var l=s.item,u=FR(s,NR);return d(l,XR(XR({},u),{},{chartWidth:i,chartHeight:o,margin:a,ref:function(e){t.legendInstance=e},onBBoxUpdate:t.handleLegendBBoxUpdate}))})),ZR(VR(t),"renderTooltip",(function(){var e=mc(t.props.children,Db);if(!e)return null;var n=t.state,r=n.isTooltipActive,i=n.activeCoordinate,o=n.activePayload,a=n.activeLabel,c=n.offset;return d(e,{viewBox:XR(XR({},c),{},{x:c.left,y:c.top}),active:r,label:a,payload:r?o:[],coordinate:i})})),ZR(VR(t),"renderBrush",(function(e){var n=t.props,r=n.margin,i=n.data,o=t.state,a=o.offset,c=o.dataStartIndex,s=o.dataEndIndex,l=o.updateId;return d(e,{key:e.key||"_recharts-brush",onChange:GC(t.handleBrushChange,null,e.props.onChange),data:i,x:Ua(e.props.x)?e.props.x:a.left,y:Ua(e.props.y)?e.props.y:a.top+a.height+a.brushBottom-(r.bottom||0),width:Ua(e.props.width)?e.props.width:a.width,startIndex:c,endIndex:s,updateId:"brush-".concat(l)})})),ZR(VR(t),"renderReferenceElement",(function(e,n,r){if(!e)return null;var i=VR(t).clipPathId,o=t.state,a=o.xAxisMap,c=o.yAxisMap,s=o.offset,l=e.props,u=l.xAxisId,f=l.yAxisId;return d(e,{key:e.key||"".concat(n,"-").concat(r),xAxis:a[u],yAxis:c[f],viewBox:{x:s.left,y:s.top,width:s.width,height:s.height},clipPathId:i})})),ZR(VR(t),"renderActivePoints",(function(e){var t=e.item,n=e.activePoint,r=e.basePoint,i=e.childIndex,o=e.isRange,a=[],c=t.props.key,s=t.item.props,l=s.activeDot,u=XR(XR({index:i,dataKey:s.dataKey,cx:n.x,cy:n.y,r:4,fill:FC(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(c,"-activePoint-").concat(i)},xc(l)),ic(l));return a.push(f.renderActiveDot(l,u)),r?a.push(f.renderActiveDot(l,XR(XR({},u),{},{cx:r.x,cy:r.y,key:"".concat(c,"-basePoint-").concat(i)}))):o&&a.push(null),a})),ZR(VR(t),"renderGraphicChild",(function(e,n,r){var i=t.filterFormatItem(e,n,r);if(!i)return null;var o=t.getTooltipEventType(),a=t.state,c=a.isTooltipActive,s=a.tooltipAxis,l=a.activeTooltipIndex,u=a.activeLabel,f=mc(t.props.children,Db),p=i.props,h=p.points,m=p.isRange,v=p.baseLine,y=i.item.props,g=y.activeDot,b=!y.hide&&c&&f&&g&&l>=0,x={};"axis"!==o&&f&&"click"===f.props.trigger?x={onClick:GC(t.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==o&&(x={onMouseLeave:GC(t.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:GC(t.handleItemMouseEnter,null,e.props.onMouseEnter)});var w=d(e,XR(XR({},i.props),x));if(b){var _,k;if(s.dataKey&&!s.allowDuplicatedCategory){var S="function"==typeof s.dataKey?function(e){return"function"==typeof s.dataKey?s.dataKey(e.payload):null}:"payload.".concat(s.dataKey.toString());_=Ka(h,S,u),k=m&&v&&Ka(v,S,u)}else _=h[l],k=m&&v&&v[l];if(!Pa(_))return[w].concat(WR(t.renderActivePoints({item:i,activePoint:_,basePoint:k,childIndex:l,isRange:m})))}return m?[w,null,null]:[w,null]})),ZR(VR(t),"renderCustomized",(function(e,n,r){return d(e,XR(XR({key:"recharts-customized-".concat(r)},t.props),t.state))})),t.uniqueChartId=Pa(e.id)?$a("recharts"):e.id,t.clipPathId="".concat(t.uniqueChartId,"-clip"),e.throttleDelay&&(t.triggeredAfterMouseMove=rx(t.triggeredAfterMouseMove,e.throttleDelay)),t.state={},t}return r=f,o=[{key:"componentDidMount",value:function(){Pa(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Pa(e.syncId)&&!Pa(this.props.syncId)&&this.addListener(),!Pa(e.syncId)&&Pa(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Pa(this.props.syncId)||this.removeListener(),this.cancelThrottledTriggerAfterMouseMove()}},{key:"cancelThrottledTriggerAfterMouseMove",value:function(){"function"==typeof this.triggeredAfterMouseMove.cancel&&this.triggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var e=mc(this.props.children,Db);if(e&&AR(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:c}return c}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t=function(e){var t=e.ownerDocument.documentElement,n={top:0,left:0};return void 0!==e.getBoundingClientRect&&(n=e.getBoundingClientRect()),{top:n.top+window.pageYOffset-t.clientTop,left:n.left+window.pageXOffset-t.clientLeft}}(this.container),n=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,t),r=this.inRange(n.chartX,n.chartY);if(!r)return null;var i=this.state,o=i.xAxisMap,a=i.yAxisMap;if("axis"!==this.getTooltipEventType()&&o&&a){var c=Xa(o).scale,s=Xa(a).scale,l=c&&c.invert?c.invert(n.chartX):null,u=s&&s.invert?s.invert(n.chartY):null;return XR(XR({},n),{},{xValue:l,yValue:u})}var f=aL(this.state,this.props.data,this.props.layout,r);return f?XR(XR({},n),f):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,i=t.tooltipAxisBandSize,o=i/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-o:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-o,width:"horizontal"===e?i:r.width-1,height:"horizontal"===e?r.height-1:i}}},{key:"getCursorPoints",value:function(){var e,t,n,r,i=this.props.layout,o=this.state,a=o.activeCoordinate,c=o.offset;if("horizontal"===i)n=e=a.x,t=c.top,r=c.top+c.height;else if("vertical"===i)r=t=a.y,e=c.left,n=c.left+c.width;else if(!Pa(a.cx)||!Pa(a.cy)){if("centric"!==i){var s=a.cx,l=a.cy,u=a.radius,f=a.startAngle,p=a.endAngle;return{points:[bT(s,l,u,f),bT(s,l,u,p)],cx:s,cy:l,radius:u,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,m=a.innerRadius,v=a.outerRadius,y=a.angle,g=bT(d,h,m,y),b=bT(d,h,v,y);e=g.x,t=g.y,n=b.x,r=b.y}return[{x:e,y:t},{x:n,y:r}]}},{key:"inRange",value:function(e,t){var n=this.props.layout;if("horizontal"===n||"vertical"===n){var r=this.state.offset;return e>=r.left&&e<=r.left+r.width&&t>=r.top&&t<=r.top+r.height?{x:e,y:t}:null}var i=this.state,o=i.angleAxisMap,a=i.radiusAxisMap;if(o&&a){var c=Xa(o);return ST({x:e,y:t},c)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=mc(e,Db),r={};return n&&"axis"===t&&(r="click"===n.props.trigger?{onClick:this.handleClick}:{onMouseEnter:this.handleMouseEnter,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd}),XR(XR({},ic(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){DR.on(MR,this.handleReceiveSyncEvent),DR.setMaxListeners&&DR._maxListeners&&DR.setMaxListeners(DR._maxListeners+1)}},{key:"removeListener",value:function(){DR.removeListener(MR,this.handleReceiveSyncEvent),DR.setMaxListeners&&DR._maxListeners&&DR.setMaxListeners(DR._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Pa(t)||DR.emit(MR,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,i=this.state.updateId,o=e.dataStartIndex,a=e.dataEndIndex;if(Pa(e.dataStartIndex)&&Pa(e.dataEndIndex))if(Pa(e.activeTooltipIndex))this.setState(e);else{var c=e.chartX,s=e.chartY,l=e.activeTooltipIndex,u=this.state,f=u.offset,p=u.tooltipTicks;if(!f)return;if("function"==typeof r)l=r(p,e);else if("value"===r){l=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){l=d;break}}var h=XR(XR({},f),{},{x:f.left,y:f.top}),m=Math.min(c,h.x+h.width),v=Math.min(s,h.y+h.height),g=p[l]&&p[l].value,b=oL(this.state,this.props.data,l),x=p[l]?{x:"horizontal"===n?p[l].coordinate:m,y:"horizontal"===n?v:p[l].coordinate}:QR;this.setState(XR(XR({},e),{},{activeLabel:g,activeCoordinate:x,activePayload:b,activeTooltipIndex:l}))}else this.setState(XR({dataStartIndex:o,dataEndIndex:a},y({props:this.props,dataStartIndex:o,dataEndIndex:a,updateId:i},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,i=0,o=r.length;i<o;i++){var a=r[i];if(a.item===e||a.props.key===e.key||t===uc(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(t,n,r,i){var o=this.props,a=o.width,c=o.height;return e.createElement(lI,zR({},t,{className:"recharts-".concat(t.axisType," ").concat(t.axisType),key:n.key||"".concat(r,"-").concat(i),viewBox:{x:0,y:0,width:a,height:c},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var t=this.clipPathId,n=this.state.offset,r=n.left,i=n.top,o=n.height,a=n.width;return e.createElement("defs",null,e.createElement("clipPath",{id:t},e.createElement("rect",{x:r,y:i,height:o,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=LR(t,2),r=n[0],i=n[1];return XR(XR({},e),{},ZR({},r,i.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=LR(t,2),r=n[0],i=n[1];return XR(XR({},e),{},ZR({},r,i.scale))}),{}):null}},{key:"getXScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.xAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getYScaleByAxisId",value:function(e){var t,n;return null===(t=this.state.yAxisMap)||void 0===t||null===(n=t[e])||void 0===n?void 0:n.scale}},{key:"getItemByXY",value:function(e){var t=this.state.formattedGraphicalItems;if(t&&t.length)for(var n=0,r=t.length;n<r;n++){var i=t[n],o=i.props,a=i.item,c=uc(a.type);if("Bar"===c){var s=(o.data||[]).find((function(t){return MP(e,t)}));if(s)return{graphicalItem:i,payload:s}}else if("RadialBar"===c){var l=(o.data||[]).find((function(t){return ST(e,t)}));if(l)return{graphicalItem:i,payload:l}}}return null}},{key:"render",value:function(){var t=this;if(!vc(this))return null;var n=this.props,r=n.children,i=n.className,o=n.width,a=n.height,c=n.style,s=n.compact,l=n.title,u=n.desc,f=FR(n,IR),p=xc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(s)return e.createElement(Ac,zR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),kc(r,d));var h=this.parseEventsOfWrapper();return e.createElement("div",zR({className:Jr("recharts-wrapper",i),style:XR({position:"relative",cursor:"default",width:o,height:a},c)},h,{ref:function(e){t.container=e},role:"region"}),e.createElement(Ac,zR({},p,{width:o,height:a,title:l,desc:u}),this.renderClipPath(),kc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&BR(r.prototype,o),a&&BR(r,a),Object.defineProperty(r,"prototype",{writable:!1}),f}(),ZR(r,"displayName",i),ZR(r,"defaultProps",XR({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),ZR(r,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,i=e.width,o=e.height,a=e.layout,c=e.stackOffset,s=e.margin;if(Pa(t.updateId)){var l=lL(e);return XR(XR(XR({},l),{},{updateId:0},y(XR(XR({props:e},l),{},{updateId:0}),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(n!==t.prevData||i!==t.prevWidth||o!==t.prevHeight||a!==t.prevLayout||c!==t.prevStackOffset||!Ja(s,t.prevMargin)){var u=lL(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=XR(XR({},aL(t,n,a)),{},{updateId:t.updateId+1}),d=XR(XR(XR({},u),f),p);return XR(XR(XR({},d),y(XR({props:e},d),t)),{},{prevData:n,prevWidth:i,prevHeight:o,prevLayout:a,prevStackOffset:c,prevMargin:s,prevChildren:r})}if(!wc(r,t.prevChildren)){var h=!Pa(n)?t.updateId:t.updateId+1;return XR(XR({updateId:h},y(XR(XR({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null})),ZR(r,"renderActiveDot",(function(t,n){var r;return r=u(t)?d(t,n):xi(t)?t(n):e.createElement(ej,n),e.createElement(jc,{className:"recharts-active-dot",key:n.key},r)})),r},dL=pL({chartName:"LineChart",GraphicalChild:zI,axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN});pL({chartName:"BarChart",GraphicalChild:fN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN}),pL({chartName:"PieChart",GraphicalChild:ED,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var hL=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},mL=GM,vL=wo,yL=Object.prototype.hasOwnProperty;var gL=function(e,t,n){var r=e[t];yL.call(e,t)&&vL(r,n)&&(void 0!==n||t in e)||mL(e,t,n)},bL=gL,xL=GM;var wL=function(e,t,n,r){var i=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var c=t[o],s=r?r(n[c],e[c],c,n,e):void 0;void 0===s&&(s=e[c]),i?xL(n,c,s):bL(n,c,s)}return n},_L=wL,kL=bl;var SL=function(e,t){return e&&_L(t,kL(t),e)};var EL=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},OL=Qr,AL=al,CL=EL,TL=Object.prototype.hasOwnProperty;var PL=function(e){if(!OL(e))return CL(e);var t=AL(e),n=[];for(var r in e)("constructor"!=r||!t&&TL.call(e,r))&&n.push(r);return n},jL=il,DL=PL,ML=ml;var NL=function(e){return ML(e)?jL(e,!0):DL(e)},IL=wL,RL=NL;var LL=function(e,t){return e&&IL(t,RL(t),e)},zL={exports:{}};!function(e,t){var n=ii,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,a=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}(zL,zL.exports);var FL=zL.exports;var BL=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},qL=wL,HL=ks;var VL=function(e,t){return qL(e,HL(e),t)},UL=ps,WL=rD,GL=ks,$L=ys,YL=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)UL(t,GL(e)),e=WL(e);return t}:$L,XL=wL,ZL=YL;var KL=function(e,t){return XL(e,ZL(e),t)},JL=ms,QL=YL,ez=NL;var tz=function(e){return JL(e,ez,QL)},nz=Object.prototype.hasOwnProperty;var rz=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&nz.call(e,"index")&&(n.index=e.index,n.input=e.input),n},iz=ts;var oz=function(e){var t=new e.constructor(e.byteLength);return new iz(t).set(new iz(e)),t},az=oz;var cz=function(e,t){var n=t?az(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sz=/\w*$/;var lz=function(e){var t=new e.constructor(e.source,sz.exec(e));return t.lastIndex=e.lastIndex,t},uz=oi?oi.prototype:void 0,fz=uz?uz.valueOf:void 0;var pz=oz;var dz=oz,hz=cz,mz=lz,vz=function(e){return fz?Object(fz.call(e)):{}},yz=function(e,t){var n=t?pz(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var gz=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return dz(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return hz(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return yz(e,n);case"[object Map]":case"[object Set]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return mz(e);case"[object Symbol]":return vz(e)}},bz=Qr,xz=Object.create,wz=function(){function e(){}return function(t){if(!bz(t))return{};if(xz)return xz(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),_z=wz,kz=rD,Sz=al;var Ez=function(e){return"function"!=typeof e.constructor||Sz(e)?{}:_z(kz(e))},Oz=Yl,Az=ki;var Cz=function(e){return Az(e)&&"[object Map]"==Oz(e)},Tz=Us,Pz=Gs&&Gs.isMap,jz=Pz?Tz(Pz):Cz,Dz=Yl,Mz=ki;var Nz=function(e){return Mz(e)&&"[object Set]"==Dz(e)},Iz=Us,Rz=Gs&&Gs.isSet,Lz=Rz?Iz(Rz):Nz,zz=Vc,Fz=hL,Bz=gL,qz=SL,Hz=LL,Vz=FL,Uz=BL,Wz=VL,Gz=KL,$z=kl,Yz=tz,Xz=Yl,Zz=rz,Kz=gz,Jz=Ez,Qz=wi,eF=Is,tF=jz,nF=Qr,rF=Lz,iF=bl,oF=NL,aF="[object Arguments]",cF="[object Function]",sF="[object Object]",lF={};lF[aF]=lF["[object Array]"]=lF["[object ArrayBuffer]"]=lF["[object DataView]"]=lF["[object Boolean]"]=lF["[object Date]"]=lF["[object Float32Array]"]=lF["[object Float64Array]"]=lF["[object Int8Array]"]=lF["[object Int16Array]"]=lF["[object Int32Array]"]=lF["[object Map]"]=lF["[object Number]"]=lF[sF]=lF["[object RegExp]"]=lF["[object Set]"]=lF["[object String]"]=lF["[object Symbol]"]=lF["[object Uint8Array]"]=lF["[object Uint8ClampedArray]"]=lF["[object Uint16Array]"]=lF["[object Uint32Array]"]=!0,lF["[object Error]"]=lF[cF]=lF["[object WeakMap]"]=!1;var uF=function e(t,n,r,i,o,a){var c,s=1&n,l=2&n,u=4&n;if(r&&(c=o?r(t,i,o,a):r(t)),void 0!==c)return c;if(!nF(t))return t;var f=Qz(t);if(f){if(c=Zz(t),!s)return Uz(t,c)}else{var p=Xz(t),d=p==cF||"[object GeneratorFunction]"==p;if(eF(t))return Vz(t,s);if(p==sF||p==aF||d&&!o){if(c=l||d?{}:Jz(t),!s)return l?Gz(t,Hz(c,t)):Wz(t,qz(c,t))}else{if(!lF[p])return o?t:{};c=Kz(t,p,s)}}a||(a=new zz);var h=a.get(t);if(h)return h;a.set(t,c),rF(t)?t.forEach((function(i){c.add(e(i,n,r,i,t,a))})):tF(t)&&t.forEach((function(i,o){c.set(o,e(i,n,r,o,t,a))}));var m=f?void 0:(u?l?Yz:$z:l?oF:iF)(t);return Fz(m||t,(function(i,o){m&&(i=t[o=i]),Bz(c,o,e(i,n,r,o,t,a))})),c},fF=Ea,pF=Af;var dF=function(e,t){return t.length<2?e:fF(e,pF(t,0,-1))},hF=xa,mF=FT,vF=dF,yF=_a;var gF=function(e,t){return t=hF(t,e),null==(e=vF(e,t))||delete e[yF(mF(t))]},bF=pD;var xF=sg;var wF=function(e){return(null==e?0:e.length)?xF(e,1):[]},_F=wF,kF=Ig,SF=Gg;var EF=function(e){return SF(kF(e,void 0,_F),e+"")},OF=ca,AF=uF,CF=gF,TF=xa,PF=wL,jF=function(e){return bF(e)?void 0:e},DF=tz,MF=EF((function(e,t){var n={};if(null==e)return n;var r=!1;t=OF(t,(function(t){return t=TF(t,e),r||(r=t.length>1),t})),PF(e,DF(e),n),r&&(n=AF(n,7,jF));for(var i=t.length;i--;)CF(n,t[i]);return n})),NF=E(MF),IF=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],RF=["width","height","className","style","children","type"];function LF(e){return LF="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},LF(e)}function zF(){return zF=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zF.apply(this,arguments)}function FF(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function BF(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YF(r.key),r)}}function qF(e,t){return qF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qF(e,t)}function HF(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 n,r=UF(e);if(t){var i=UF(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===LF(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VF(e)}(this,n)}}function VF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UF(e){return UF=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},UF(e)}function WF(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function GF(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WF(Object(n),!0).forEach((function(t){$F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WF(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $F(e,t,n){return(t=YF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YF(e){var t=function(e,t){if("object"!==LF(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==LF(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===LF(t)?t:String(t)}var XF="value",ZF=function e(t){var n,r,i=t.depth,o=t.node,a=t.index,c=t.valueKey,s=o.children,l=i+1,u=s&&s.length?s.map((function(t,n){return e({depth:l,node:t,index:n,valueKey:c})})):null;return r=s&&s.length?u.reduce((function(e,t){return e+t[XF]}),0):qa(o[c])||o[c]<=0?0:o[c],GF(GF({},o),{},($F(n={children:u},XF,r),$F(n,"depth",i),$F(n,"index",a),n))},KF=function(e,t,n){var r=t*t,i=e.area*e.area,o=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=o.min,c=o.max;return i?Math.max(r*c*n/i,i/(r*a*n)):1/0},JF=function(e,t,n,r){return t===n.width?function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.height)&&(i=n.height);for(var o,a=n.x,c=0,s=e.length;c<s;c++)(o=e[c]).x=a,o.y=n.y,o.height=i,o.width=Math.min(i?Math.round(o.area/i):0,n.x+n.width-a),a+=o.width;return o.width+=n.x+n.width-a,GF(GF({},n),{},{y:n.y+i,height:n.height-i})}(e,t,n,r):function(e,t,n,r){var i=t?Math.round(e.area/t):0;(r||i>n.width)&&(i=n.width);for(var o,a=n.y,c=0,s=e.length;c<s;c++)(o=e[c]).x=n.x,o.y=a,o.width=i,o.height=Math.min(i?Math.round(o.area/i):0,n.y+n.height-a),a+=o.height;return o&&(o.height+=n.y+n.height-a),GF(GF({},n),{},{x:n.x+i,width:n.width-i})}(e,t,n,r)},QF=function e(t,n){var r=t.children;if(r&&r.length){var i,o,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),c=[],s=1/0,l=Math.min(a.width,a.height),u=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[XF]*n;return GF(GF({},e),{},{area:qa(t)||t<=0?0:t})}))}(r,a.width*a.height/t[XF]),f=u.slice();for(c.area=0;f.length>0;)c.push(i=f[0]),c.area+=i.area,(o=KF(c,l,n))<=s?(f.shift(),s=o):(c.area-=c.pop().area,a=JF(c,l,a,!1),l=Math.min(a.width,a.height),c.length=c.area=0,s=1/0);return c.length&&(a=JF(c,l,a,!0),c.length=c.area=0),GF(GF({},t),{},{children:u.map((function(t){return e(t,n)}))})}return t},eB={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},tB=function(t){!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&&qF(e,t)}(a,p);var n,r,i,o=HF(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return $F(VF(e=o.call.apply(o,[this].concat(n))),"state",GF({},eB)),$F(VF(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),$F(VF(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;mc(n.children,Db)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;mc(n.children,Db)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=ZF({depth:0,node:GF(GF({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=QF(s,c),u=this.state.nestIndex;u.push(e),this.setState({formatRoot:l,currentRoot:s,nestIndex:u})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,i=r.width,o=r.height,a=r.dataKey,c=r.aspectRatio,s=ZF({depth:0,node:GF(GF({},e),{},{x:0,y:0,width:i,height:o}),index:0,valueKey:a}),l=QF(s,c);n=n.slice(0,t+1),this.setState({formatRoot:l,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(t,n,r){var i=this,o=this.props,a=o.isAnimationActive,c=o.animationBegin,s=o.animationDuration,l=o.animationEasing,u=o.isUpdateAnimationActive,f=o.type,p=o.animationId,d=o.colorPanel,h=this.state.isAnimationFinished,m=n.width,v=n.height,y=n.x,g=n.y,b=n.depth,x=parseInt("".concat((2*Math.random()-1)*m),10),w={};return(r||"nest"===f)&&(w={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?e.createElement(ng,{begin:c,duration:s,isActive:a,easing:l,key:"treemap-".concat(p),from:{x:y,y:g,width:m,height:v},to:{x:y,y:g,width:m,height:v},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var o=r.x,p=r.y,m=r.width,v=r.height;return e.createElement(ng,{from:"translate(".concat(x,"px, ").concat(x,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:c,easing:l,isActive:a,duration:s},e.createElement(jc,w,b>2&&!h?null:i.constructor.renderContentItem(t,GF(GF({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!u,width:m,height:v,x:o,y:p}),f,d)))})):e.createElement(jc,w,this.constructor.renderContentItem(t,GF(GF({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:m,height:v,x:y,y:g}),f,d))}},{key:"renderNode",value:function(t,n,r){var i=this,o=this.props,a=o.content,c=o.type,s=GF(GF(GF({},xc(this.props)),n),{},{root:t}),l=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&t.depth&&"nest"===c?null:e.createElement(jc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,s,l),n.children&&n.children.length?n.children.map((function(e,t){return i.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.nameKey,i=mc(n,Db);if(!i)return null;var o=this.props,a=o.width,c=o.height,s=this.state,l=s.isTooltipActive,u=s.activeNode,f={x:0,y:0,width:a,height:c},p=u?{x:u.x+u.width/2,y:u.y+u.height/2}:null,d=l&&u?[{payload:u,name:LC(u,r,""),value:LC(u,XF)}]:[];return e.cloneElement(i,{viewBox:f,active:l,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var t=this,n=this.props,r=n.nameKey,i=n.nestIndexContent,o=this.state.nestIndex;return e.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},o.map((function(n,o){var a=Ca(n,r,"root"),c=null;return e.isValidElement(i)&&(c=e.cloneElement(i,n,o)),c=xi(i)?i(n,o):a,e.createElement("div",{onClick:t.handleNestIndex.bind(t,n,o),key:"nest-index-".concat($a()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},c)})))}},{key:"render",value:function(){if(!vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=t.type,s=FF(t,RF),l=xc(s);return e.createElement("div",{className:Jr("recharts-wrapper",i),style:GF(GF({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(Ac,zF({},l,{width:n,height:"nest"===c?r-30:r}),this.renderAllNodes(),bc(a)),this.renderTooltip(),"nest"===c&&this.renderNestIndex())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=ZF({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=QF(n,e.aspectRatio);return GF(GF({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(t,n,r,i){if(e.isValidElement(t))return e.cloneElement(t,n);if(xi(t))return t(n);var o=n.x,a=n.y,c=n.width,s=n.height,l=n.index,u=null;c>10&&s>10&&n.children&&"nest"===r&&(u=e.createElement($P,{points:[{x:o+2,y:a+s/2},{x:o+6,y:a+s/2+3},{x:o+2,y:a+s/2+6}]}));var f=null,p=sw(n.name);c>20&&s>20&&p.width<c&&p.height<s&&(f=e.createElement("text",{x:o+8,y:a+s/2+7,fontSize:14},n.name));var d=i||IF;return e.createElement("g",null,e.createElement(NP,zF({fill:n.depth<2?d[l%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},NF(n,"children"),{role:"img"})),u,f)}}],r&&BF(n.prototype,r),i&&BF(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();$F(tB,"displayName","Treemap"),$F(tB,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!bb.isSsr,isUpdateAnimationActive:!bb.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var nB=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n},rB=nf,iB=nB;var oB=function(e,t){return e&&e.length?iB(e,rB(t)):0},aB=E(oB),cB=["width","height","className","style","children"],sB=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function lB(e){return lB="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},lB(e)}function uB(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fB(){return fB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fB.apply(this,arguments)}function pB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xB(r.key),r)}}function dB(e,t){return dB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dB(e,t)}function hB(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 n,r=vB(e);if(t){var i=vB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mB(e)}(this,n)}}function mB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vB(e){return vB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},vB(e)}function yB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yB(Object(n),!0).forEach((function(t){bB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bB(e,t,n){return(t=xB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){var t=function(e,t){if("object"!==lB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lB(t)?t:String(t)}var wB={x:0,y:0},_B=function(e){return e.y+e.dy/2},kB=function(e){return e&&e.value||0},SB=function(e,t){return t.reduce((function(t,n){return t+kB(e[n])}),0)},EB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.source];return n+_B(o)*kB(t[r])}),0)},OB=function(e,t,n){return n.reduce((function(n,r){var i=t[r],o=e[i.target];return n+_B(o)*kB(t[r])}),0)},AB=function(e,t){return e.y-t.y},CB=function e(t,n){for(var r=n.targetNodes,i=0,o=r.length;i<o;i++){var a=t[r[i]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},TB=function(e,t,n){for(var r=0,i=e.length;r<i;r++){var o=e[r],a=o.length;o.sort(AB);for(var c=0,s=0;s<a;s++){var l=o[s],u=c-l.y;u>0&&(l.y+=u),c=l.y+l.dy+n}c=t+n;for(var f=a-1;f>=0;f--){var p=o[f],d=p.y+p.dy+n-c;if(!(d>0))break;p.y-=d,c=p.y}}},PB=function(e,t,n,r){for(var i=0,o=t.length;i<o;i++)for(var a=t[i],c=0,s=a.length;c<s;c++){var l=a[c];if(l.sourceLinks.length){var u=SB(n,l.sourceLinks),f=EB(e,n,l.sourceLinks)/u;l.y+=(f-_B(l))*r}}},jB=function(e,t,n,r){for(var i=t.length-1;i>=0;i--)for(var o=t[i],a=0,c=o.length;a<c;a++){var s=o[a];if(s.targetLinks.length){var l=SB(n,s.targetLinks),u=OB(e,n,s.targetLinks)/l;s.y+=(u-_B(s))*r}}},DB=function(e){var t=e.data,n=e.width,r=e.height,i=e.iterations,o=e.nodeWidth,a=e.nodePadding,c=t.links,s=function(e,t,n){for(var r=e.nodes,i=e.links,o=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],i=[],o=[],a=0,c=e.length;a<c;a++){var s=e[a];s.source===t&&(i.push(s.target),o.push(a)),s.target===t&&(n.push(s.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:o,targetNodes:i}}(i,t);return gB(gB(gB({},e),n),{},{value:Math.max(SB(i,n.sourceLinks),SB(i,n.targetLinks)),depth:0})})),a=0,c=o.length;a<c;a++){var s=o[a];s.sourceNodes.length||CB(o,s)}var l=Tj(o,(function(e){return e.depth})).depth;if(l>=1)for(var u=(t-n)/l,f=0,p=o.length;f<p;f++){var d=o[f];d.targetNodes.length||(d.depth=l),d.x=d.depth*u,d.dx=n}return{tree:o,maxDepth:l}}(t,n,o),l=s.tree,u=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n];t[i.depth]||(t[i.depth]=[]),t[i.depth].push(i)}return t}(l),f=function(e,t,n,r){for(var i=Uw(e.map((function(e){return(t-(e.length-1)*n)/aB(e,kB)}))),o=0,a=e.length;o<a;o++)for(var c=0,s=e[o].length;c<s;c++){var l=e[o][c];l.y=c,l.dy=l.value*i}return r.map((function(e){return gB(gB({},e),{},{dy:kB(e)*i})}))}(u,r,a,c);TB(u,r,a);for(var p=1,d=1;d<=i;d++)jB(l,u,f,p*=.99),TB(u,r,a),PB(l,u,f,p),TB(u,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var i=e[n],o=0,a=0;i.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),i.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var c=0,s=i.targetLinks.length;c<s;c++){var l=t[i.targetLinks[c]];l&&(l.sy=o,o+=l.dy)}for(var u=0,f=i.sourceLinks.length;u<f;u++){var p=t[i.sourceLinks[u]];p&&(p.ty=a,a+=p.dy)}}}(l,f),{nodes:l,links:f}},MB=function(t){!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&&dB(e,t)}(a,p);var n,r,i,o=hB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return bB(mB(e=o.call.apply(o,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,i=r.onMouseEnter,o=mc(r.children,Db);o?this.setState((function(n){return"hover"===o.props.trigger?gB(gB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,i=r.onMouseLeave,o=mc(r.children,Db);o?this.setState((function(e){return"hover"===o.props.trigger?gB(gB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){i&&i(e,t,n)})):i&&i(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,i=r.onClick,o=mc(r.children,Db);o&&"click"===o.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return gB(gB({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return gB(gB({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),i&&i(e,t,n)}},{key:"renderLinks",value:function(t,n){var r=this,i=this.props,o=i.linkCurvature,a=i.link,c=i.margin,s=Ca(c,"top")||0,l=Ca(c,"left")||0;return e.createElement(jc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},t.map((function(t,i){var c=t.sy,u=t.ty,f=t.dy,p=n[t.source],d=n[t.target],h=p.x+p.dx+l,m=d.x+l,v=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,m),y=v(o),g=v(1-o),b=gB({sourceX:h,targetX:m,sourceY:p.y+c+f/2+s,targetY:d.y+u+f/2+s,sourceControlX:y,targetControlX:g,sourceRelativeY:c,targetRelativeY:u,linkWidth:f,index:i,payload:gB(gB({},t),{},{source:p,target:d})},xc(a)),x={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return e.createElement(jc,fB({key:"link".concat(i)},x),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(t){var n=this,r=this.props,i=r.node,o=r.margin,a=Ca(o,"top")||0,c=Ca(o,"left")||0;return e.createElement(jc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},t.map((function(t,r){var o=t.x,s=t.y,l=t.dx,u=t.dy,f=gB(gB({},xc(i)),{},{x:o+c,y:s+a,width:l,height:u,index:r,payload:t}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return e.createElement(jc,fB({key:"node".concat(r)},p),n.constructor.renderNodeItem(i,f))})))}},{key:"renderTooltip",value:function(){var t=this.props,n=t.children,r=t.width,i=t.height,o=t.nameKey,a=mc(n,Db);if(!a)return null;var c=this.state,s=c.isTooltipActive,l=c.activeElement,u=c.activeElementType,f={x:0,y:0,width:r,height:i},p=l?function(e,t){return"node"===t?{x:e.x+e.width/2,y:e.y+e.height/2}:{x:(e.sourceX+e.targetX)/2,y:(e.sourceY+e.targetY)/2}}(l,u):wB,d=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:LC(r,n,""),value:LC(r,"value")}];if(r.source&&r.target){var i=LC(r.source,n,""),o=LC(r.target,n,"");return[{payload:e,name:"".concat(i," - ").concat(o),value:LC(r,"value")}]}return[]}(l,u,o):[];return e.cloneElement(a,{viewBox:f,active:s,coordinate:p,label:"",payload:d})}},{key:"render",value:function(){if(!vc(this))return null;var t=this.props,n=t.width,r=t.height,i=t.className,o=t.style,a=t.children,c=uB(t,cB),s=this.state,l=s.links,u=s.nodes,f=xc(c);return e.createElement("div",{className:Jr("recharts-wrapper",i),style:gB(gB({},o),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},e.createElement(Ac,fB({},f,{width:n,height:r}),bc(a),this.renderLinks(l,u),this.renderNodes(u)),this.renderTooltip())}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,i=e.height,o=e.margin,a=e.iterations,c=e.nodeWidth,s=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||i!==t.prevHeight||!Ja(o,t.prevMargin)||a!==t.prevIterations||c!==t.prevNodeWidth||s!==t.prevNodePadding){var l=r-(o&&o.left||0)-(o&&o.right||0),u=i-(o&&o.top||0)-(o&&o.bottom||0),f=DB({data:n,width:l,height:u,iterations:a,nodeWidth:c,nodePadding:s}),p=f.links,d=f.nodes;return gB(gB({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:i,prevMargin:o,prevNodePadding:s,prevNodeWidth:c,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(t,n){if(e.isValidElement(t))return e.cloneElement(t,n);if(xi(t))return t(n);var r=n.sourceX,i=n.sourceY,o=n.sourceControlX,a=n.targetX,c=n.targetY,s=n.targetControlX,l=n.linkWidth,u=uB(n,sB);return e.createElement("path",fB({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(i,"\n C").concat(o,",").concat(i," ").concat(s,",").concat(c," ").concat(a,",").concat(c,"\n "),fill:"none",stroke:"#333",strokeWidth:l,strokeOpacity:"0.2"},xc(u)))}},{key:"renderNodeItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):e.createElement(NP,fB({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},xc(n),{role:"img"}))}}],r&&pB(n.prototype,r),i&&pB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function NB(e){return NB="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},NB(e)}function IB(){return IB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},IB.apply(this,arguments)}function RB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HB(r.key),r)}}function LB(e,t){return LB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LB(e,t)}function zB(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 n,r=BB(e);if(t){var i=BB(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NB(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FB(e)}(this,n)}}function FB(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BB(e){return BB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BB(e)}function qB(e,t,n){return(t=HB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HB(e){var t=function(e,t){if("object"!==NB(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NB(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NB(t)?t:String(t)}bB(MB,"displayName","Sankey"),bB(MB,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),pL({chartName:"RadarChart",GraphicalChild:FD,axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pL({chartName:"ScatterChart",GraphicalChild:fR,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR},{axisType:"zAxis",AxisComp:QI}],formatAxisMap:gN}),pL({chartName:"AreaChart",GraphicalChild:JI,axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR}],formatAxisMap:gN}),pL({chartName:"RadialBarChart",GraphicalChild:QD,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:nD},{axisType:"radiusAxis",AxisComp:Vj}],formatAxisMap:wT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),pL({chartName:"ComposedChart",GraphicalChild:[zI,JI,fN,fR],axisComponents:[{axisType:"xAxis",AxisComp:pR},{axisType:"yAxis",AxisComp:dR},{axisType:"zAxis",AxisComp:QI}],formatAxisMap:gN});var VB=function(e,t,n,r,i){var o,a=n-r;return o="M ".concat(e,",").concat(t),o+="L ".concat(e+n,",").concat(t),o+="L ".concat(e+n-a/2,",").concat(t+i),o+="L ".concat(e+n-a/2-r,",").concat(t+i),o+="L ".concat(e,",").concat(t," Z")},UB=function(t){!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&&LB(e,t)}(a,p);var n,r,i,o=zB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qB(FB(e=o.call.apply(o,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var t=this,n=this.props,r=n.x,i=n.y,o=n.upperWidth,a=n.lowerWidth,c=n.height,s=n.className,l=this.state.totalLength,u=this.props,f=u.animationEasing,p=u.animationDuration,d=u.animationBegin,h=u.isUpdateAnimationActive;if(r!==+r||i!==+i||o!==+o||a!==+a||c!==+c||0===o&&0===a||0===c)return null;var m=Jr("recharts-trapezoid",s);return h?e.createElement(ng,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:c,x:r,y:i},to:{upperWidth:o,lowerWidth:a,height:c,x:r,y:i},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,i=n.lowerWidth,o=n.height,a=n.x,c=n.y;return e.createElement(ng,{canBegin:l>0,from:"0px ".concat(-1===l?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},e.createElement("path",IB({},xc(t.props,!0),{className:m,d:VB(a,c,r,i,o),ref:function(e){t.node=e}})))})):e.createElement("g",null,e.createElement("path",IB({},xc(this.props,!0),{className:m,d:VB(r,i,o,a,c)})))}}],r&&RB(n.prototype,r),i&&RB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function WB(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,c=[],s=!0,l=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=o.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,i=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw i}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return GB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return GB(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 GB(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $B(e){return $B="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},$B(e)}function YB(){return YB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YB.apply(this,arguments)}function XB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ZB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?XB(Object(n),!0).forEach((function(t){nq(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KB(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rq(r.key),r)}}function JB(e,t){return JB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},JB(e,t)}function QB(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 n,r=tq(e);if(t){var i=tq(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eq(e)}(this,n)}}function eq(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tq(e){return tq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tq(e)}function nq(e,t,n){return(t=rq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rq(e){var t=function(e,t){if("object"!==$B(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$B(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$B(t)?t:String(t)}qB(UB,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var iq=function(t){!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&&JB(e,t)}(a,p);var n,r,i,o=QB(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return nq(eq(e=o.call.apply(o,[this].concat(n))),"state",{isAnimationFinished:!1}),nq(eq(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),xi(t)&&t()})),nq(eq(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),xi(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(t){var n=this,r=this.props.activeShape;return t.map((function(t,i){var o=n.isActiveIndex(i)?r:null,c=ZB(ZB({},t),{},{stroke:t.stroke});return e.createElement(jc,YB({className:"recharts-funnel-trapezoid"},oc(n.props,t,i),{key:"trapezoid-".concat(i),role:"img"}),a.renderTrapezoidItem(o,c))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var t=this,n=this.props,r=n.trapezoids,i=n.isAnimationActive,o=n.animationBegin,a=n.animationDuration,c=n.animationEasing,s=n.animationId,l=this.state.prevTrapezoids;return e.createElement(ng,{begin:o,duration:a,isActive:i,easing:c,from:{t:0},to:{t:1},key:"funnel-".concat(s),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var i=n.t,o=r.map((function(e,t){var n=l&&l[t];if(n){var r=Za(n.x,e.x),o=Za(n.y,e.y),a=Za(n.upperWidth,e.upperWidth),c=Za(n.lowerWidth,e.lowerWidth),s=Za(n.height,e.height);return ZB(ZB({},e),{},{x:r(i),y:o(i),upperWidth:a(i),lowerWidth:c(i),height:s(i)})}var u=Za(e.x+e.upperWidth/2,e.x),f=Za(e.y+e.height/2,e.y),p=Za(0,e.upperWidth),d=Za(0,e.lowerWidth),h=Za(0,e.height);return ZB(ZB({},e),{},{x:u(i),y:f(i),upperWidth:p(i),lowerWidth:d(i),height:h(i)})}));return e.createElement(jc,null,t.renderTrapezoidsStatically(o))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&Pw(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var t=this.props,n=t.hide,r=t.trapezoids,i=t.className,o=t.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var c=Jr("recharts-trapezoids",i);return e.createElement(jc,{className:c},this.renderTrapezoids(),(!o||a)&&KT.renderCallByParent(this.props,r))}}],i=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(t,n){return e.isValidElement(t)?e.cloneElement(t,n):xi(t)?t(n):dD(t)?e.createElement(UB,YB({},n,t)):e.createElement(UB,n)}}],r&&KB(n.prototype,r),i&&KB(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}();function oq(e){return lt(e).substr(0,10)}function aq(e,t,n){return"FitbitSteps"==e?cq(t,n):"FitbitRestingHeartRates"==e?sq(t,n):"GarminSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}(t,n):"GarminRestingHeartRates"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}(t,n):"AppleHealthSteps"==e?sq(t,n):"AppleHealthDistanceRunningWalking"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):"GoogleFitSteps"==e?function(e,t){var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};for(;n<r;)i[oq(n)]=Math.floor(500*Math.random()),n=Y(n,{hours:1});return i}(t,n):cq(t,n)}function cq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[oq(n)]=3e3+Math.floor(1e4*Math.random()),n=Y(n,{days:1});return i}function sq(e,t){for(var n=new Date(e,t,1,0,0,0,0),r=Y(n,{months:1}),i={};n<r;)i[oq(n)]=60+Math.floor(5*Math.random()),n=Y(n,{days:1});return i}function lq(e){var t=[],n=function(r){var i=It({},e);return r&&(i.pageID=r),b.queryDeviceData(i).then((function(e){return t=t.concat(e.deviceDataPoints),e.nextPageID?n(e.nextPageID):t}))};return n()}function uq(e,t){var n=e.startDate;t.startDate<n&&(n=t.startDate);var r=e.endDate;return t.endDate>r&&(r=t.endDate),{startDate:n,endDate:r}}function fq(e){e=e.sort((function(e,t){return e.startDate.getTime()-t.startDate.getTime()}));for(var t,n,r=[],i=e[0],o=1;o<e.length;o++)t=i,(n=e[o]).startDate>=t.startDate&&n.startDate<=t.endDate||n.endDate>=t.startDate&&n.endDate<=t.endDate||t.startDate>=n.startDate&&t.startDate<=n.endDate||t.endDate>=n.startDate&&t.endDate<=n.endDate?i=uq(i,e[o]):(r.push(i),i=e[o]);r.push(i);var a=0;return r.forEach((function(e){a+=function(e,t,n){H(2,arguments);var r=oe(e,t)/te;return se(null==n?void 0:n.roundingMethod)(r)}(e.endDate,e.startDate)})),a}function pq(e,t,n){return lq({namespace:"AppleHealth",type:"SleepAnalysisInterval",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(r){var i={};r.forEach((function(e){if(e.observationDate&&e.startDate&&e.value==n)for(var t=function(e){for(var t=[],n=pt(e.startDate),r=pt(e.observationDate),i=Y(new Date(n.getFullYear(),n.getMonth(),n.getDate(),18,0,0,0),{days:-1});i<r;){var o=Y(i,{days:1});if(o>n){var a=new Date(i),c=new Date(o);n>=i&&n<o&&(a=n),r>=i&&r<o&&(c=r),t.push({startDate:a,endDate:c})}i=o}return t}(e),r=0;r<t.length;r++){var o=lt(Y(t[r].startDate,{hours:6})).substring(0,10);i[o]||(i[o]=[]),i[o].push(t[r])}}));for(var o={};e<t;){var a=e.toISOString().substr(0,10),c=i[a];c&&(o[a]=fq(c)),e=Y(e,{days:1})}return o}))}function dq(e,t){return lq({namespace:"AppleHealth",type:"HourlySteps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function hq(e,t,n){return lq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=e.startDate.substr(0,10);t[n]||(t[n]=0),t[n]+=parseInt(e.value)}})),t}))}function mq(e,t,n){return lq({namespace:"Fitbit",type:"HeartRateZone",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if("Out of Range"!=e.value&&(!n||e.value==n)&&e.properties&&e.properties.Minutes&&e.startDate){var r=e.startDate.substr(0,10);t[r]||(t[r]=0),t[r]+=parseInt(e.properties.Minutes)}})),t}))}function vq(e,t,n){return lq({namespace:"Fitbit",type:e,observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate&&0!=parseInt(e.value)){var n=e.startDate.substr(0,10);t[n]=Math.round(parseFloat(e.value))}})),t}))}function yq(e,t){return vq("RestingHeartRate",e,t)}function gq(e,t,n){return lq({namespace:"Fitbit",type:n,observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.observationDate){var n=lt(Y(pt(e.observationDate),{hours:6})).substr(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}function bq(e,t){return vq("Steps",e,t)}function xq(e,t,n,r){return lq({namespace:"Garmin",type:"Daily",observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(t){var n={};return t.forEach((function(t){if(t.startDate&&t.properties&&t.properties[e]&&!(parseInt(t.properties[e])<=0)){var i=t.startDate.substring(0,10);n[i]=Math.round(parseFloat(t.properties[e])),r&&(n[i]=Math.round(n[i]/r))}})),n}))}function wq(e,t){return xq("Steps",e,t)}function _q(e,t,n,r,i){return lq({namespace:"Garmin",type:"Sleep",observedAfter:Y(t,{days:-1}).toISOString(),observedBefore:Y(n,{days:1}).toISOString()}).then((function(t){var n={};return t.forEach((function(t){if(t.observationDate&&t.properties&&t.properties[e]&&!(parseInt(t.properties[e])<=0)){var o=lt(Y(pt(t.observationDate),{hours:6})).substr(0,10),a=parseFloat(t.properties[e]);a<0||(i&&(a/=i),n[o]?r&&(n[o]+=parseFloat(t.properties[e])):n[o]=a)}})),n}))}nq(iq,"displayName","Funnel"),nq(iq,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!bb.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),nq(iq,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,i=xc(e.props),o=hc(r,mx);return n&&n.length?n.map((function(e,t){return ZB(ZB(ZB({payload:e},i),e),o&&o[t]&&o[t].props)})):o&&o.length?o.map((function(e){return ZB(ZB({},i),e.props)})):[]})),nq(iq,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,i=t.height,o=t.left,a=t.right,c=t.top,s=t.bottom,l=i,u=r;return Fa(n)?u=n:Ai(n)&&(u=u*parseFloat(n)/100),{realWidth:u-o-a-50,realHeight:l-s-c,offsetX:(r-u)/2,offsetY:(i-l)/2}})),nq(iq,"getComposedData",(function(e){var t=e.item,n=e.offset,r=iq.getRealFunnelData(t),i=t.props,o=i.dataKey,a=i.nameKey,c=i.tooltipType,s=i.lastShapeType,l=i.reversed,u=n.left,f=n.top,p=iq.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,m=p.offsetX,v=p.offsetY,y=Math.max.apply(null,r.map((function(e){return LC(e,o,0)}))),g=r.length,b=d/g,x={x:n.left,y:n.top,width:n.width,height:n.height},w=r.map((function(e,t){var n,i=LC(e,o,0),l=LC(e,a,t),p=i;if(t!==g-1)(n=LC(r[t+1],o,0))instanceof Array&&(n=WB(n,1)[0]);else if(i instanceof Array&&2===i.length){var d=WB(i,2);p=d[0],n=d[1]}else n="rectangle"===s?p:0;var w=(y-p)*h/(2*y)+f+25+m,_=b*t+u+v,k=p/y*h,S=n/y*h,E=[{name:l,value:p,payload:e,dataKey:o,type:c}],O={x:w+k/2,y:_+b/2};return ZB(ZB({x:w,y:_,width:Math.max(k,S),upperWidth:k,lowerWidth:S,height:b,name:l,val:p,tooltipPayload:E,tooltipPosition:O},NF(e,"width")),{},{payload:e,parentViewBox:x,labelViewBox:{x:w+(k-S)/4,y:_,width:Math.abs(k-S)/2+Math.min(k,S),height:b}})}));return l&&(w=w.map((function(e,t){var n=e.y-t*b+(g-1-t)*b;return ZB(ZB({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(g-1-t)*b,tooltipPosition:ZB(ZB({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:ZB(ZB({},e.labelViewBox),{},{y:n})})}))),{trapezoids:w,data:r}})),pL({chartName:"FunnelChart",GraphicalChild:iq,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});var kq,Sq={};function Eq(e,t,n){Sq[e]={provider:t,availabilityCheck:n}}function Oq(e,t){var n=Sq[e];if(!n)throw"Unknown data type:"+e;return n.availabilityCheck(t)}function Aq(e,t,n){var r=Sq[e];return console.log(e),console.log(r),r.provider(t,n).then((function(e){for(var r={};t<n;){var i=oq(t);e[i]&&(r[i]=e[i]),t=Y(t,{days:1})}return r}))}function Cq(e,t){return function(n){var r={namespace:e,type:t,limit:1};return n&&(r.modifiedAfter=n.toISOString()),b.queryDeviceData(r).then((function(e){return e.deviceDataPoints.length>0})).catch((function(){return!1}))}}function Tq(t){var n=t.x,r=t.y;t.stroke;var i=t.payload.value;return e.createElement("text",{x:n,y:r+15,textAnchor:"middle",fontSize:"12"},i)}function Pq(t){var n=s(null),r=n[0],i=n[1],o=s(!1),c=o[0],u=o[1],f=s(!1),p=f[0],d=f[1],h=a(),m=new Date(t.year,t.month,1,0,0,0,0),v=Y(m,{months:1});function y(){var e,n;if(t.previewState&&(d(!0),t.onDataDetected&&t.onDataDetected()),"Loading"==t.previewState&&u(!0),"WithData"==t.previewState){var r={};t.lines.forEach((function(e){var n=aq(e.dailyDataType,t.year,t.month);r[e.dailyDataType]=n})),i(r)}if("NoData"==t.previewState){r={};t.lines.forEach((function(e){r[e.dailyDataType]={}})),i(r),u(!1)}if(!t.previewState){!function(){if(!p){var e=t.lines.map((function(e){return Oq(e.dailyDataType)}));Promise.all(e).then((function(e){e.find((function(e){return e}))&&(d(!0),t.onDataDetected&&t.onDataDetected())}))}}(),h.current=(null!==(e=h.current)&&void 0!==e?e:0)+1;var o=null!==(n=h.current)&&void 0!==n?n:0;u(!0);var a;a=t.lines.map((function(e){return Aq(e.dailyDataType,m,v)})),Promise.all(a).then((function(e){if(o==h.current){for(var n={},r=0;r<t.lines.length;r++)n[t.lines[r].dailyDataType]=e[r];i(n),u(!1)}}))}}l((function(){return y(),b.on("applicationDidBecomeVisible",y),b.on("externalAccountSyncComplete",y),function(){b.off("applicationDidBecomeVisible",y),b.off("externalAccountSyncComplete",y)}}),[t]);for(var g=[],x=m,w=!1;x<v;){var _={day:x.getDate()};g.push(_);var k=oq(x);t.lines.forEach((function(e){r&&(_[e.dailyDataType]=r[e.dailyDataType][k],e.valueConverter&&(_[e.dailyDataType]=e.valueConverter(_[e.dailyDataType])),_[e.dailyDataType]>0&&(w=!0))})),x=Y(x,{days:1})}if(!p)return null;var S=function(){var e=t.lines.filter((function(e){return e.showAverage}));if(0==e.length)return null;if(e.length>1)return console.error("Only one line can display an average"),null;var n=e[0],r=g.map((function(e){return e[n.dailyDataType]}));if(!(r=r.filter((function(e){return!!e}))).length)return null;var i=r.reduce((function(e,t){return e+t}))/r.length;return i.toLocaleString("en-US",{minimumFractionDigits:0,maximumFractionDigits:1})}();return e.createElement("div",{className:"mdhui-device-data-month-chart"},t.title&&e.createElement("div",{className:"title"},t.title),!c&&null!=S&&e.createElement("div",{className:"average"},"Daily Average: ",e.createElement("span",{className:"average-value"},S)),e.createElement("div",{style:{clear:"both"}}),e.createElement("div",{className:"chart-container"},(!w||c)&&e.createElement("div",null,!w&&!c&&e.createElement("div",{className:"no-data-label"},"No Data"),c&&e.createElement(I,null),e.createElement(hx,{width:"100%",height:150},e.createElement(dL,{width:400,height:400,data:g,syncId:t.syncId},e.createElement(_I,{strokeDasharray:"3 3"}),e.createElement(dR,{axisLine:!1,interval:0,tickLine:!1,width:30,scale:"linear"}),e.createElement(pR,{id:"myXAxis",tick:Tq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))),w&&!c&&e.createElement(hx,{width:"100%",height:150},e.createElement(dL,{width:400,height:400,data:g,syncId:t.syncId},t.lines.map((function(t){return e.createElement(zI,{key:t.dailyDataType,type:"monotone",dataKey:t.dailyDataType,stroke:"var(--mdhui-color-primary)"})})),e.createElement(Db,{content:e.createElement((function(n){var r=n.active,i=n.payload;if(n.label,r&&i&&i.length){var o=new Date(t.year,t.month,i[0].payload.day),a={};return t.lines.forEach((function(e){a[e.dailyDataType]=e.label})),e.createElement("div",{className:"graph-tooltip"},e.createElement("div",{className:"graph-date"},nt(o,"MM/dd/yyyy")),e.createElement("table",{className:"payload-values"},e.createElement("tbody",null,i.map((function(t){return e.createElement("tr",{key:t.dataKey},e.createElement("th",null,a[t.dataKey]),e.createElement("td",null,parseFloat(t.value.toFixed(2))))})))))}return null}),null)}),e.createElement(_I,{strokeDasharray:"3 3"}),e.createElement(dR,{tickFormatter:function(e){return e>=1e4?Math.floor(e/1e3)+"K":e},axisLine:!1,interval:0,tickLine:!1,width:30}),e.createElement(pR,{id:"myXAxis",tick:Tq,axisLine:!1,dataKey:"day",tickMargin:0,minTickGap:0,tickLine:!1,interval:1})))))}function jq(t){var n=s(!1),r=n[0],i=n[1],o=new Date,a=s(new Date(o.getFullYear(),o.getMonth(),1,0,0,0,0)),c=a[0],l=a[1];function u(){i(!0)}var f=c.getMonth(),p=c.getFullYear();return e.createElement(e.Fragment,null,!r&&e.createElement(Dr,null,br["device-data-no-data"]),e.createElement("div",{style:{display:r?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:c,onIntervalChange:function(e){l(e)}}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.FitbitSteps,label:br.steps}],title:"Fitbit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:"Fitbit "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GarminSteps,label:br.steps}],title:"Garmin "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:"Garmin "+br["resting-heart-rate"],month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.AppleHealthSteps,label:br.steps}],title:"Apple Health "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.AppleHealthDistanceWalkingRunning,label:br["distance-traveled"],valueConverter:function(e){return 621371e-9*e}}],title:"Apple Health "+br["distance-traveled"]+" (Miles)",month:f,year:p,syncId:"DeviceDataCharts"}),e.createElement(Pq,{onDataDetected:function(){return u()},previewState:"Default"==t.previewState?"WithData":void 0,lines:[{showAverage:!0,dailyDataType:kq.GoogleFitSteps,label:br.steps}],title:"Google Fit "+br.steps,month:f,year:p,syncId:"DeviceDataCharts"})))}!function(e){e.AppleHealthDistanceWalkingRunning="AppleHealthDistanceWalkingRunning",e.AppleHealthFlightsClimbed="AppleHealthFlightsClimbed",e.AppleHealthHeartRateRange="AppleHealthHeartRateRange",e.AppleHealthHrv="AppleHealthHrv",e.AppleHealthMaxHeartRate="AppleHealthMaxHeartRate",e.AppleHealthRestingHeartRate="AppleHealthRestingHeartRate",e.AppleHealthSleepMinutes="AppleHealthSleepMinutes",e.AppleHealthInBedMinutes="AppleHealthInBedMinutes",e.AppleHealthStandMinutes="AppleHealthStandMinutes",e.AppleHealthSteps="AppleHealthSteps",e.AppleHealthWalkingHeartRateAverage="AppleHealthWalkingHeartRateAverage",e.FitbitActiveMinutes="FitbitActiveMinutes",e.FitbitLightlyActiveMinutes="FitbitLightlyActiveMinutes",e.FitbitFairlyActiveMinutes="FitbitFairlyActiveMinutes",e.FitbitVeryActiveMinutes="FitbitVeryActiveMinutes",e.FitbitBreathingRate="FitbitBreathingRate",e.FitbitCaloriesBurned="FitbitCaloriesBurned",e.FitbitElevatedHeartRateMinutes="FitbitElevatedHeartRateMinutes",e.FitbitFatBurnHeartRateMinutes="FitbitFatBurnHeartRateMinutes",e.FitbitCardioHeartRateMinutes="FitbitCardioHeartRateMinutes",e.FitbitPeakHeartRateMinutes="FitbitPeakHeartRateMinutes",e.FitbitFloors="FitbitFloors",e.FitbitHrv="FitbitHrv",e.FitbitRestingHeartRate="FitbitRestingHeartRate",e.FitbitSleepMinutes="FitbitSleepMinutes",e.FitbitLightSleepMinutes="FitbitLightSleepMinutes",e.FitbitRemSleepMinutes="FitbitRemSleepMinutes",e.FitbitDeepSleepMinutes="FitbitDeepSleepMinutes",e.FitbitSpO2="FitbitSpO2",e.FitbitSteps="FitbitSteps",e.GarminSteps="GarminSteps",e.GarminDistance="GarminDistance",e.GarminFloors="GarminFloors",e.GarminActiveMinutes="GarminActiveMinutes",e.GarminRestingHeartRate="GarminRestingHeartRate",e.GarminMinHeartRate="GarminMinHeartRate",e.GarminMaxHeartRate="GarminMaxHeartRate",e.GarminAverageHeartRate="GarminAverageHeartRate",e.GarminMaxStressLevel="GarminMaxStressLevel",e.GarminAverageStressLevel="GarminAverageStressLevel",e.GarminTotalStressMinutes="GarminTotalStressMinutes",e.GarminLowStressMinutes="GarminLowStressMinutes",e.GarminMediumStressMinutes="GarminMediumStressMinutes",e.GarminHighStressMinutes="GarminHighStressMinutes",e.GarminTotalSleepMinutes="GarminTotalSleepMinutes",e.GarminLightSleepMinutes="GarminLightSleepMinutes",e.GarminDeepSleepMinutes="GarminDeepSleepMinutes",e.GarminRemSleepMinutes="GarminRemSleepMinutes",e.GarminAwakeMinutes="GarminAwakeMinutes",e.GarminSleepScore="GarminSleepScore",e.GoogleFitSteps="GoogleFitSteps",e.Steps="Steps",e.RestingHeartRate="RestingHeartRate"}(kq||(kq={})),Eq(kq.AppleHealthDistanceWalkingRunning,(function(e,t){return lq({namespace:"AppleHealth",type:"HourlyDistanceWalkingRunning",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["HourlyDistanceWalkingRunning"])),Eq(kq.AppleHealthFlightsClimbed,(function(e,t){return lq({namespace:"AppleHealth",type:"FlightsClimbed",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["HourlySteps"])),Eq(kq.AppleHealthHeartRateRange,(function(e,t){return lq({namespace:"AppleHealth",type:["HourlyMaximumHeartRate","HourlyMinimumHeartRate"],observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);"HourlyMaximumHeartRate"==e.type&&(r[t]?(!r[t].MaxHeartRate||n>r[t].MaxHeartRate)&&(r[t].MaxHeartRate=n):r[t]={MaxHeartRate:n}),"HourlyMinimumHeartRate"==e.type&&(r[t]?(!r[t].MinHeartRate||n<r[t].MinHeartRate)&&(r[t].MinHeartRate=n):r[t]={MinHeartRate:n})}}));for(var i={};e<t;){var o=r[oq(e)];o&&o.MaxHeartRate&&o.MinHeartRate&&(i[oq(e)]=o.MaxHeartRate-o.MinHeartRate),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["HourlyMaximumHeartRate"])),Eq(kq.AppleHealthHrv,(function(e,t){return lq({namespace:"AppleHealth",type:"HeartRateVariability",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=lt(pt(e.startDate)).substring(0,10),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["HeartRateVariability"])),Eq(kq.AppleHealthMaxHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"HourlyMaximumHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10),r=parseFloat(e.value);t[n]?r>t[n]&&(t[n]=r):t[n]=r}})),t}))}),Cq("AppleHealth",["HourlyMaximumHeartRate"])),Eq(kq.AppleHealthRestingHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["RestingHeartRate"])),Eq(kq.AppleHealthSleepMinutes,(function(e,t){return pq(e,t,"Asleep")}),Cq("AppleHealth",["SleepAnalysisInterval"])),Eq(kq.AppleHealthInBedMinutes,(function(e,t){return pq(e,t,"InBed")}),Cq("AppleHealth",["SleepAnalysisInterval"])),Eq(kq.AppleHealthStandMinutes,(function(e,t){return lq({namespace:"AppleHealth",type:"AppleStandTime",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=oq(pt(e.startDate));t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("AppleHealth",["AppleStandTime"])),Eq(kq.AppleHealthSteps,dq,Cq("AppleHealth",["HourlySteps"])),Eq(kq.AppleHealthWalkingHeartRateAverage,(function(e,t){return lq({namespace:"AppleHealth",type:"WalkingHeartRateAverage",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){var r={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);r[t]||(r[t]=[]),r[t].push(n)}}));for(var i={};e<t;){var o=e.toISOString().substr(0,10);r[o]&&(i[o]=r[o].reduce((function(e,t){return e+t}))/r[o].length),e=Y(e,{days:1})}return i}))}),Cq("AppleHealth",["WalkingHeartRateAverage"])),Eq(kq.FitbitActiveMinutes,(function(e,t){return hq(e,t,["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])}),Cq("Fitbit",["MinutesVeryActive","MinutesFairlyActive","MinutesLightlyActive"])),Eq(kq.FitbitLightlyActiveMinutes,(function(e,t){return hq(e,t,["MinutesLightlyActive"])}),Cq("Fitbit",["MinutesLightlyActive"])),Eq(kq.FitbitFairlyActiveMinutes,(function(e,t){return hq(e,t,["MinutesFairlyActive"])}),Cq("Fitbit",["MinutesFairlyActive"])),Eq(kq.FitbitVeryActiveMinutes,(function(e,t){return hq(e,t,["MinutesVeryActive"])}),Cq("Fitbit",["MinutesVeryActive"])),Eq(kq.FitbitBreathingRate,(function(e,t){return vq("BreathingRate",e,t)}),Cq("Fitbit",["BreathingRate"])),Eq(kq.FitbitCaloriesBurned,(function(e,t){return vq("Calories",e,t)}),Cq("Fitbit",["Calories"])),Eq(kq.FitbitElevatedHeartRateMinutes,(function(e,t){return mq(e,t)}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitFatBurnHeartRateMinutes,(function(e,t){return mq(e,t,"Fat Burn")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitCardioHeartRateMinutes,(function(e,t){return mq(e,t,"Cardio")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitPeakHeartRateMinutes,(function(e,t){return mq(e,t,"Peak")}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitFloors,(function(e,t){return vq("Floors",e,t)}),Cq("Fitbit",["HeartRateZone"])),Eq(kq.FitbitHrv,(function(e,t){return vq("Hrv",e,t)}),Cq("Fitbit",["Floors"])),Eq(kq.FitbitRestingHeartRate,yq,Cq("Fitbit",["RestingHeartRate"])),Eq(kq.FitbitSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])}),Cq("Fitbit",["SleepLevelRem","SleepLevelLight","SleepLevelDeep","SleepLevelAsleep"])),Eq(kq.FitbitLightSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelLight"])}),Cq("Fitbit",["SleepLevelLight"])),Eq(kq.FitbitRemSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelRem"])}),Cq("Fitbit",["SleepLevelRem"])),Eq(kq.FitbitDeepSleepMinutes,(function(e,t){return gq(e,t,["SleepLevelDeep"])}),Cq("Fitbit",["SleepLevelDeep"])),Eq(kq.FitbitSpO2,(function(e,t){return vq("SpO2",e,t)}),Cq("Fitbit",["SpO2"])),Eq(kq.FitbitSteps,bq,Cq("Fitbit",["Steps"])),Eq(kq.GoogleFitSteps,(function(e,t){return lq({namespace:"GoogleFit",type:"Steps",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(e){var t={};return e.forEach((function(e){if(e.startDate){var n=lt(pt(e.startDate)).substring(0,10);t[n]||(t[n]=0),t[n]+=parseFloat(e.value)}})),t}))}),Cq("GoogleFit",["Steps"])),Eq(kq.GarminSteps,wq,Cq("Garmin",["Daily"])),Eq(kq.GarminDistance,(function(e,t){return xq("DistanceInMeters",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminFloors,(function(e,t){return xq("FloorsClimbed",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminActiveMinutes,(function(e,t){return xq("ActiveTimeInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminRestingHeartRate,(function(e,t){return xq("RestingHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMinHeartRate,(function(e,t){return xq("MinHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMaxHeartRate,(function(e,t){return xq("MaxHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminAverageHeartRate,(function(e,t){return xq("AverageHeartRateInBeatsPerMinute",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMaxStressLevel,(function(e,t){return xq("MaxStressLevel",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminAverageStressLevel,(function(e,t){return xq("AverageStressLevel",e,t)}),Cq("Garmin",["Daily"])),Eq(kq.GarminTotalStressMinutes,(function(e,t){return xq("StressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminLowStressMinutes,(function(e,t){return xq("LowStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminMediumStressMinutes,(function(e,t){return xq("MediumStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminHighStressMinutes,(function(e,t){return xq("HighStressDurationInSeconds",e,t,60)}),Cq("Garmin",["Daily"])),Eq(kq.GarminTotalSleepMinutes,(function(e,t){return _q("DurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminRemSleepMinutes,(function(e,t){return _q("RemSleepInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminDeepSleepMinutes,(function(e,t){return _q("DeepSleepDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminLightSleepMinutes,(function(e,t){return _q("LightSleepDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminAwakeMinutes,(function(e,t){return _q("AwakeDurationInSeconds",e,t,!0,60)}),Cq("Garmin",["Sleep"])),Eq(kq.GarminSleepScore,(function(e,t){return _q("OverallSleepScore.Value",e,t,!1)}),Cq("Garmin",["Sleep"])),Eq(kq.RestingHeartRate,(function(e,t){return lq({namespace:"AppleHealth",type:"RestingHeartRate",observedAfter:Y(e,{days:-1}).toISOString(),observedBefore:Y(t,{days:1}).toISOString()}).then((function(n){return yq(e,t).then((function(r){var i={};n.forEach((function(e){if(e.startDate){var t=oq(pt(e.startDate)),n=parseFloat(e.value);i[t]||(i[t]=[]),i[t].push(n)}}));for(var o={};e<t;){var a=oq(e);r[a]&&(i[a]||(i[a]=[]),i[a].push(r[a])),i[a]&&(o[a]=i[a].reduce((function(e,t){return e+t}))/i[a].length),e=Y(e,{days:1})}return o}))}))}),(function(e){return Cq("AppleHealth",["RestingHeartRate"])(e).then((function(t){return t||Cq("Fitbit",["RestingHeartRate"])(e).then((function(t){return t||Cq("Garmin",["RestingHeartRateInBeatsPerMinute"])(e)}))}))})),Eq(kq.Steps,(function(e,t){var n=bq(e,t),r=dq(e,t),i=wq(e,t);return Promise.all([n,r,i]).then((function(n){for(var r={};e<t;){var i=oq(e),o=null;n[0][i]&&(o=n[0][i]),n[1][i]&&(null==o||n[1][i]>o)&&(o=n[1][i]),o&&(r[i]=o),e=Y(e,{days:1})}return r}))}),(function(e){return Cq("AppleHealth",["Steps"])(e).then((function(t){return t||Cq("Fitbit",["Steps"])(e).then((function(t){return t||Cq("Garmin",["Steps"])(e)}))}))}));var Dq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function Mq(t){var n=s(!0),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return i(!1),void p(Dq);f()}function f(){b.getExternalAccounts().then((function(e){p(e),i(!1)}))}function p(e){t.externalAccountProviderCategories&&(e=e.filter((function(e){var n;return-1!=(null===(n=t.externalAccountProviderCategories)||void 0===n?void 0:n.indexOf(e.provider.category))}))),c(e),t.onExternalAccountsLoaded&&t.onExternalAccountsLoaded(e)}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),b.on("externalAccountSyncComplete",u),function(){b.off("applicationDidBecomeVisible",u),b.off("externalAccountSyncComplete",u)}}),[]),e.createElement("div",{className:"mdhui-external-account-list"},a&&a.map((function(t){return e.createElement(Pt,{key:t.id.toString()+t.lastRefreshDate},e.createElement(Er,{externalAccount:t,onAccountRemoved:function(e){return i(!0),void f()},onReconnectAccount:function(e){return function(e){b.connectExternalAccount(e.provider.id)}(e)}}))})),r&&e.createElement(I,null))}function Nq(e,t){var n=a();l((function(){n.current=e}),[e]),l((function(){if(null!==t){var e=setInterval((function(){n.current&&n.current()}),t);return function(){return clearInterval(e)}}}),[t])}_(".mdhui-external-accounts-loading-indicator {\n text-align: center;\n padding: 16px;\n}\n\n.mdhui-external-accounts-loading-indicator .mdhui-external-accounts-loading-indicator-message {\n color: var(--mdhui-text-color-3);\n margin-left: 8px;\n}");var Iq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchingData",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}}];function Rq(t){var n=s(!1),r=n[0],i=n[1],o=s([]),a=o[0],c=o[1];function u(){return"externalAccountsFetchingData"==t.previewState?(Iq[0].status="fetchingData",void c(Iq)):"externalAccountsLoaded"==t.previewState?(Iq[0].status="fetchComplete",void c(Iq)):void b.getExternalAccounts().then((function(e){t.externalAccountCategories&&(e=e.filter((function(e){return t.externalAccountCategories.includes(e.provider.category)}))),e.forEach((function(e){"fetchComplete"==e.status&&ft(new Date,Y(pt(e.lastRefreshDate),{hours:3}))&&(b.refreshExternalAccount(e.id),e.status="fetchingData")})),c(e)}))}l((function(){return b.getDeviceInfo().then((function(e){i("Web"==e.platform)})).catch((function(){i(!0)})).finally((function(){u()})),b.on("externalAccountSyncComplete",u),b.on("applicationDidBecomeVisible",u),function(){b.off("externalAccountSyncComplete",u),b.off("applicationDidBecomeVisible",u)}}),[]);var f=!!a.find((function(e){return"fetchingData"==e.status}));return Nq((function(){u()}),r&&f?5e3:null),f?e.createElement("div",{className:"mdhui-external-accounts-loading-indicator"},e.createElement(I,{variant:"inline"}),e.createElement("span",{className:"mdhui-external-accounts-loading-indicator-message"},br["external-account-fetching-data"])):null}_(".mdhui-external-accounts-preview .external-account-title {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}");var Lq=[{id:1,lastRefreshDate:Y(new Date,{days:-1}).toISOString(),status:"fetchComplete",provider:{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"}},{id:2,lastRefreshDate:Y(new Date,{hours:-8}).toISOString(),status:"unauthorized",provider:{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"}},{id:3,lastRefreshDate:Y(new Date,{hours:-2}).toISOString(),status:"fetchComplete",provider:{id:17,name:"CMS Sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/17/logo"}},{id:4,lastRefreshDate:Y(new Date,{hours:-3}).toISOString(),status:"fetchComplete",provider:{id:2,name:"Fitbit Staging",category:"Device Manufacturer",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/2/logo"}}];function zq(t){var n=s(null),r=n[0],i=n[1],o="",a=[];function c(){"Default"!=t.previewState?b.getExternalAccounts().then((function(e){u(e)})):u(Lq)}function u(e){a&&(e=e.filter((function(e){return-1!=(null==a?void 0:a.indexOf(e.provider.category))}))),i(e)}return t.excludeProviders||(a.push("Provider"),o+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(a.push("Health Plan"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(a.push("Device Manufacturer"),o.length>0&&(o+=br["external-accounts-title-divider"]),o+=br["external-accounts-title-devices"]),l((function(){return c(),b.on("applicationDidBecomeVisible",c),function(){b.off("applicationDidBecomeVisible",c)}}),[]),r&&r.length?e.createElement("div",{className:"mdhui-external-accounts-preview"},e.createElement(j,{title:o,onClick:function(){"preview"==t.applicationUrl?console.log("PREVIEW: Opening the external accounts application."):b.openApplication(t.applicationUrl)}},r.map((function(t){return e.createElement("div",{key:t.id,className:"external-account-title"},t.provider.name)})))):null}var Fq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Charge 3",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"},{id:"1009644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Fitbit",insertedDate:"2022-03-14T21:32:51.397Z",modifiedDate:"2022-03-14T21:32:51.397Z",identifier:"F-31-A4C138BBAE04",type:"Device",value:"Aria Air",properties:{Battery:"Low",Type:"SCALE",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/fitbit-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-01-12T18:34:23+00:00"}];_(".mdhui-connected-devices .connected-device {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n padding: 16px;\n position: relative;\n padding-left: 48px;\n}\n\n.mdhui-connected-devices .connected-device:last-child {\n border-bottom: none;\n}\n\n.mdhui-connected-devices .connected-device .device-icon {\n position: absolute;\n left: 16px;\n top: calc(50% - 8px);\n color: var(--mdhui-text-color-2);\n font-size: 16px;\n}\n\n.mdhui-connected-devices .connected-device .device-title {\n font-weight: bold;\n font-size: .88em;\n}\n\n.mdhui-connected-devices .connected-device .device-sync {\n font-size: .88em;\n color: var(--mdhui-text-color-2);\n}\n\n\n.mdhui-connected-devices .connected-device .battery-icon {\n position: absolute;\n font-size: 21px;\n right: 16px;\n top: calc(50% - 11px);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-empty,\n.mdhui-connected-devices .connected-device .battery-icon.battery-low {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-medium {\n color: var(--mdhui-color-warning);\n}\n\n.mdhui-connected-devices .connected-device .battery-icon.battery-high {\n color: var(--mdhui-color-success);\n}\n");var Bq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-empty",n=["battery-0"],r="f244",i="M80 160c-8.8 0-16 7.2-16 16V336c0 8.8 7.2 16 16 16H464c8.8 0 16-7.2 16-16V176c0-8.8-7.2-16-16-16H80zM0 176c0-44.2 35.8-80 80-80H464c44.2 0 80 35.8 80 80v16c17.7 0 32 14.3 32 32v64c0 17.7-14.3 32-32 32v16c0 44.2-35.8 80-80 80H80c-44.2 0-80-35.8-80-80V176z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryEmpty=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Bq);var qq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-full",n=[128267,"battery","battery-5"],r="f240",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm368 96H96V320H448V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryFull=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(qq);var Hq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-half",n=["battery-3"],r="f242",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm208 96H96V320H288V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryHalf=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Hq);var Vq={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="battery-quarter",n=["battery-2"],r="f243",i="M464 160c8.8 0 16 7.2 16 16V336c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V176c0-8.8 7.2-16 16-16H464zM80 96C35.8 96 0 131.8 0 176V336c0 44.2 35.8 80 80 80H464c44.2 0 80-35.8 80-80V320c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32V176c0-44.2-35.8-80-80-80H80zm112 96H96V320h96V192z";e.definition={prefix:"fas",iconName:t,icon:[576,512,n,r,i]},e.faBatteryQuarter=e.definition,e.prefix="fas",e.iconName=t,e.width=576,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Vq);var Uq={};function Wq(){return Wq=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wq.apply(this,arguments)}function Gq(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="weight-scale",n=["weight"],r="f496",i="M128 176a128 128 0 1 1 256 0 128 128 0 1 1 -256 0zM391.8 64C359.5 24.9 310.7 0 256 0S152.5 24.9 120.2 64H64C28.7 64 0 92.7 0 128V448c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H391.8zM296 224c0-10.6-4.1-20.2-10.9-27.4l33.6-78.3c3.5-8.1-.3-17.5-8.4-21s-17.5 .3-21 8.4L255.7 184c-22 .1-39.7 18-39.7 40c0 22.1 17.9 40 40 40s40-17.9 40-40z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faWeightScale=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(Uq);var $q=t((function(t,n){var r=t.color,i=void 0===r?"currentColor":r,o=t.size,a=void 0===o?24:o,c=Gq(t,["color","size"]);return e.createElement("svg",Wq({ref:n,xmlns:"http://www.w3.org/2000/svg",width:a,height:a,viewBox:"0 0 24 24",fill:"none",stroke:i,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},c),e.createElement("circle",{cx:"12",cy:"12",r:"7"}),e.createElement("polyline",{points:"12 9 12 12 13.5 13.5"}),e.createElement("path",{d:"M16.51 17.35l-.35 3.83a2 2 0 0 1-2 1.82H9.83a2 2 0 0 1-2-1.82l-.35-3.83m.01-10.7l.35-3.83A2 2 0 0 1 9.83 1h4.35a2 2 0 0 1 2 1.82l.35 3.83"}))}));$q.propTypes={color:Sh.string,size:Sh.oneOfType([Sh.string,Sh.number])},$q.displayName="Watch";var Yq=$q;function Xq(t){var n=s([]),r=n[0],i=n[1];function o(){if("connected"!=t.previewState)if("notEnabled"!=t.previewState&&"notConnected"!=t.previewState){var e={namespace:t.providerNamespace,type:"Device"};b.queryDeviceData(e).then((function(e){i(e.deviceDataPoints)}))}else i([]);else i(t.previewData)}if(l((function(){return o(),b.on("applicationDidBecomeVisible",o),b.on("externalAccountSyncComplete",o),function(){b.off("applicationDidBecomeVisible",o),b.off("externalAccountSyncComplete",o)}}),[]),!r.length)return null;var a=b.getCurrentLanguage().toLowerCase().startsWith("es")?Ct:Ze;return e.createElement("div",{className:"mdhui-connected-devices"},e.createElement(jt,{title:t.providerName+" "+br.devices}),r.map((function(t){var n,r,i,o,c,s;return e.createElement("div",{key:t.id.toString(),className:"connected-device"},"TRACKER"==(null===(n=t.properties)||void 0===n?void 0:n.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(Yq,{size:"16"})),"SCALE"==(null===(r=t.properties)||void 0===r?void 0:r.Type)&&e.createElement("div",{className:"device-icon"},e.createElement(P,{icon:Uq.faWeightScale})),e.createElement("div",{className:"device-info"},e.createElement("div",{className:"device-title"},t.value),t.observationDate&&e.createElement("div",{className:"device-sync"},br["last-sync"]," ",ut(pt(t.observationDate),new Date,{locale:a}))),"Empty"==(null===(i=t.properties)||void 0===i?void 0:i.Battery)&&e.createElement("div",{className:"battery-icon battery-empty"},e.createElement(P,{icon:Bq.faBatteryEmpty,rotate:-90})),"Low"==(null===(o=t.properties)||void 0===o?void 0:o.Battery)&&e.createElement("div",{className:"battery-icon battery-low"},e.createElement(P,{icon:Vq.faBatteryQuarter,rotate:-90})),"Medium"==(null===(c=t.properties)||void 0===c?void 0:c.Battery)&&e.createElement("div",{className:"battery-icon battery-medium"},e.createElement(P,{icon:Hq.faBatteryHalf,rotate:-90})),"High"==(null===(s=t.properties)||void 0===s?void 0:s.Battery)&&e.createElement("div",{className:"battery-icon battery-high"},e.createElement(P,{icon:qq.faBatteryFull,rotate:-90})))})))}function Zq(t){return e.createElement(Xq,{providerName:"Fitbit",providerNamespace:"Fitbit",previewData:Fq,previewState:t.previewState})}function Kq(t){var n,r=s(!1),i=r[0],o=r[1],a=new Date,c=s(new Date(a.getFullYear(),a.getMonth(),1,0,0,0,0)),l=c[0],u=c[1];var f=l.getMonth(),p=l.getFullYear();return e.createElement("div",{style:{display:i?"block":"none"}},e.createElement(Mt,{intervalType:"Month",intervalStart:l,onIntervalChange:function(e){u(e)}}),null===(n=t.charts)||void 0===n?void 0:n.map((function(n){return e.createElement(Pq,{onDataDetected:function(){o(!0)},previewState:"connected"==t.previewState?"WithData":"notEnabled"==t.previewState||"notConnected"==t.previewState?"NoData":void 0,lines:n.lines,title:n.title,syncId:n.syncId,month:f,year:p})})))}function Jq(t){return e.createElement(Kq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:kq.FitbitSteps,label:br.steps}],title:br.steps,syncId:"fitbit"},{lines:[{showAverage:!0,dailyDataType:kq.FitbitRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var Qq=[{id:"1109644c-dea3-ec11-aaab-f47bb6835a10",namespace:"Garmin",insertedDate:"2022-03-14T21:32:51.413Z",modifiedDate:"2022-03-14T21:32:51.413Z",identifier:"806637943",type:"Device",value:"Forerunner 55",properties:{Battery:"High",Type:"TRACKER",DataLakeUrl:"https://pep-device-data-qa.s3.amazonaws.com/garmin-devices/d9134fe6-a777-ec11-aaa8-89aad5fbf200/devices.json"},observationDate:"2022-03-14T17:31:24+00:00"}];function eH(t){return e.createElement(Xq,{providerName:"Garmin",providerNamespace:"Garmin",previewData:Qq,previewState:t.previewState})}function tH(t){return e.createElement(Kq,{previewState:t.previewState,charts:[{lines:[{showAverage:!0,dailyDataType:kq.GarminSteps,label:br.steps}],title:br.steps,syncId:"garmin"},{lines:[{showAverage:!0,dailyDataType:kq.GarminRestingHeartRate,label:br["resting-heart-rate"]}],title:br["resting-heart-rate"],syncId:"DeviceDataCharts"}]})}var nH="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGAAAABgCAYAAADimHc4AAAACXBIWXMAACE3AAAhNwEzWJ96AAANGElEQVR42u1de2xT1x3+bF8nJi+HCEUsq1WqYdZIUTElsI2QNaxTVaLRZqKEqNDVJawRSECXpdUaica0Eq1alEI3NaUiNLSBQmk1l2gpqpYmKSPd0nYYmsodbgdrogyhKItfxPFzf+TauS/b99rn2k7wT7KixPH1vd93fs/zO+coQqEQspI+UWYhyBJwWwuVqTc2qdMvA2BgvIoB3Cfy44MApgBYwq+SUdv1THxORab4ABrwGgB19E8t4a+wAxgAYAYwkCmEpJWASZ2+GICRfq1M8ddfBtAFoKtk1DZ1WxEwqdPX0KA/niGW4ARNxMCCJoAG3iTBlqdaBgGYUklESgiY1OkNAA5nMPBCRDxVMmqzzGsCaBtvArBvnkaJR2iNmJp3BEzq9HW0k9NifosdgLFk1GaeFwQsgFGfUm0gSgAdy5vTEFKmMnStI5lDECOAdrQDC8DkiDFJNaQctJIQ+EYAl24D8EE/4yX6mdNPAH0jb+H2k7dIkKDMgp9eEpRZ8NNLQkJOmHa4l7LYs2RVIo5ZMgF0qGmR0+EqSjXI2bQGasMaKMvuBLW2lvV+yDGBwDfDCFy9Ap/ln/CeyYixYAdgkBqiSiKATrIG5IrzlRVa5DU1Iqdul6TPBcesmOl5B55jPQjd9KQ7T6iRkqxJJeCwHBmuolSDvN9tQ+72PyR1nZBjAtNvPg/PkY/SmjGXjNqeIk4AXdv5M+m7parKUHDoDSjvKOe95+s7Bf/VEfgtbNOqKCyA2nAvqNU/h6p8neDnXM+8mE5t+LXY2pEoAmjTc5203c/Zugr5z70ORdES1ij2nGwXbU6oqjJoGhp4ZitgHYJje1O6SLADWCbGFIkNQ02kwVfX6lFw6D0W+L6+U5jasAHTB8+KBs5/cRyuPe1wNtUiYB2K/F1Vvg5F3UehKNWkK1s2EdEAOUJOZYUW2jPnWeDfOrQ3adutKNUgf/9uljYErEOwP/C4aHOo0Oaz/YrdDf/FcdlCUzFtKYdJD4/C9tdY4LtNOzDTeSHp64ZueuDa044CIEKCqnwdFrVuwfTBs1HD3ZzqX0J9/6Mxnbv33DHcevWkVJN2GLMdHolpAD2H208SfM2+jchreS3y+3RHqyA4SduAj0+wHPTUxkoER+wR4DU7N0GzrZk1EMREWbfan5E6WDbEmmOO5wNMpIFZ9ORzLPMgB/gA4Gzei5BjIvJ7XlPj7Pe3bkFxfz8W7ToYFXz/cC/8w7380Vq0BPmm48htrJZyK6aENECO0Z/bWI180/E5kJpq4eu1yeYJF7VuwaJdB1mERwtbvRf+Ct8/rkS0JF6U5Wi4T4pviKoFsTTASBoQzdadrFEmJ/gAZkNZhhZwwfeaOzC1sRJOYxtmOi/wwGdGWW7TDja5v22ScitGSSaIjvuJNk0pSjUsAGZ635c9Fgzd9MD3yVlBEzO1sRKuPe2CoAvJTOcFTHe0zoXR9z8qJcR9nMZUtAYQH/1UpY49+no+T0lA7v0b24reOrQXjs37RAPP1ahYz5SIFqSOAIOBZYtTlaH6+q3s0f/F5aQ0iumcmc9EjAC63CxrV0Nw/HrKUlIu0dxEK4WyksY2rgbUyH0n/qsjKX1yZokizVIjhoA6LDBRFC4mdi3V3WvnBpJF8gRYXUZogHr1+pQSIFTqTsiPVZWxkrfA9zfJagBto7Tyj8ji1IFfwX6ckN2deB7T0MAyawlEUlquH+BqgEEuIJjqqipfl7Iysfon9/ASq0TzGPUvtszlBX85negtGdJCADfrzdm0JjUEGNawErBEJX//7oj5CTkmMPNuPxECKLkIUNfqQRkMUK9eD9Xda3mFr9zaR4iUoOOZH2YNx/vp+YSfhXkdz8n2ZPKYmAQkZZzDZd7cTY/FdXzU2lqoa/8kbzFu2yMcG74LwRs3JLWxKEo1KHjl7Tkf4pjgZcQShYUxqxo6qdOHkgFean09OGaF/eF6WbJiqqoMRacHhcsT5g649rSLeq6i7qOsGparpT7pPqSSUZsiXilC2oN2HxWsrwesQ5jpfgmulno4Gu7DpE4PV0s9KzzM37+bfJRVqkF+24tR38+p2wXtxydiBgJC4M90v0S8CSwpDaCqylD45ge8rgbvuWOYPvl+1DCtsOsAawpQ7IgUCz4XuOmOVlArKnjTjv7hXjg27xN8rvy2F1nX8PWdgtPYRuQemRqQMAFC4Pv6TsF9KH6JV1GqgfbD91h+ggQJQuAzr8udEAqPaveznXPBQWM18ppfZidchFtciBDAnXOVOrEuRGDAOgT3gWcTitWFeoyEgBMiwdlUi8D3N1Fw4HleH6rX3AH3C68T9VNJE8B9iES7GoRICD+05/RpUUTkbF0FTb2RB1y0Ucs1f2GzKRQ8yNUwkDQBzNEfzY4mYzaYUZJv4EMEbowjYPt2jjiDAdSKClBrHhAEjmtWwlLwx2ZRjb/BMSvcL/xethA5KQIUpRos/vIromEZMDuBLjWMFQtcLJK5muA52S5bpwaRMJQ3tUgoLPMc60kY/IB1CG7TDkz97CEe+FRVGbQfvscD323aAa+5g/U319O/kR18Hp7IEFFvKOfZXwCgVlRAUVgcKWcEx6wIjl9DcPw/8H9rhbdPuCoZTg6ZbSlcnxWo+o5lkiiDQfZOjXgEDCLOhhrcGjhVVZZM7ySjaHYvTyNmHaj0EZnbWI1FO5/mlUNCjgk4n9wcuV//xXEEx6yR/1OvXo9pyK4Bg7GqoXHbqYMjdgTHrIz6SgORu1KtuIdlUqSGfYpSDTT7NqL4s3PINx3nge8f7sXUhg28wRL415wJZc52yShTsQgQNcc20/MOK61X1+qJ3mHIOSUa9NzGahR2HcDiL79CXstrgqM+3IoiRCpzfjqZAECCWGKZIFEEeI71sCKWglfehtO+OSlTxB19uY3VCP73BhvwwgKofrQcqh/ooPrxyrhRzUz3SzE7mpUVWmi2Nafa3Vli1YKWAbgmymbX6lF4tJdY4lL82Tkic7dialGxQtNJnV5uAu5irqTkNedO6vRTEDkvLJTWB8esmD72iuTMuOiDI7xsVoqEG2y9PZ/H9R9CxbYUEWAvGbUVxwtDBwA8LMoXdF5AyFXPqsEo7yhHvuk48pon4PvkLHyWzxH45ruo5klRqgFVqYOy7C5JT+If7o2sE/b1W0U7baGaEXPwyCwDYvIAs1gCwomY/+sHkd/SzKqxKIqWIKduFyvODi+wnrXnxTFtuKulHiGniz/SE4zTxSyFZUZEMolZDAEDkksAI3Y4jW1Q13ZDU7896nIfRdES0WZGuXQpPGfIrPeNlhfwyL3095RrgOACjUmd3oIk+kOVFVrk3L8O6lU/jVowEyonKH+4IvK/JKYrYwHv6zsFZdmyqMuYZJDLJaM2g9hSRBeAVxMuio3Y4Rn5CB58BKAtYufDoaRy6dJIdZO5CpFZrVTeUQ7Nzk2Soyqqqgy5v9qInId2ChIfckzA/fxuhJwuVhTnH+6VE/wwphCrAcUA/pfqAJm7fDUMlv/rf0et91CVOqj0y0EtLwdVWRPTzIQnVwDwZuTkXi4FYLHQwu1Ya8S6kIathbnrukiI19yBW0c7IyRy5wWSndMQISdKRm1G0RpAE1ADwov0UpmUBces8JzuwMy7/Sw/wgU/5JiAfeuDcpufqIv04q0THkAathuO1dMTLzfwfnoe/i8u8/IORakGBS8/y4vQSC0SjyGDJaO2mqjPGufDpnRogf/iONymHbwsOzyymcVAv8UiajsBqlKXDvDDGEb3e7HepNVmMB1maKbzAtymHaxlpuHoKHfTY7Oh5OBF+HptooqAKv3ydIA/GG8n9rRs1iHVHEXbT4ibXUdyiqtXeFVQrnNPQdENELFZh9j9gmTZKUtKGUFq72nAOgRn896Ic2UW+6TsoJKEiNo5S8p+QfZ0ERC66cH0wbOzewl1tIoqmqnK10F75rzgZJHYCZ8kxA5S+wUxtECWLcuSMU1U5UpQy8uhLLtzDniBtQjTHa0s8xOtb4igkN2yLFNMEQmfESZExvYTSZv2Se0LMmF2a8aMFf/Fcdgfroev71T0/7HIdjLJZUjc4kcSAXQtoy6d/kCsz3Aa21iba7DeT2KlZBy7Xyf1gIcFv3Wx0AyYTCFoQlsXJ7RChv6iJ+YDAd4zl2Df+mBkuwKZph2fSPRAh4SXKJWM2rrmCwnBETsc25vgNXcgOH5NDvC7Es5xkj3CZL5tY0+qlZIE+EQImI8kZAr4xAhgOOYBZA/xSY0PiOKYDZmeJxCI8w0kjzgkeqI23XJXg9lDzxaaHKFH/nWSF80eZSjO5Mh2lKFsZ8rTN7xsnmvDEcxuQ2+W6wuyx9kKy8I4zlaAiBpkD3ROHwEcIozIHmmeHgIYRBTTRBiR+hNYL9NBQpecBzZnNAEcMpbRIWwd/ZN09GSnE0UzgAHS4eS8JyAKIQbGq1iC7xjE7GpES/iVKYDPGwJuF1FmIcgScFvL/wF1Sa+givPozQAAAABJRU5ErkJggg==",rH="data:image/svg+xml,%3csvg id='medication' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23f7931d' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.65 145.63%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M175.55%2c105.22c3.91%2c4.42 7.55%2c8.5 10.46%2c11.75c1.46%2c1.62 2.74%2c3.04 3.79%2c4.18c1.06%2c1.14 1.87%2c2.01 2.48%2c2.62c4.76%2c4.78 7.69%2c11.31 7.69%2c18.58l0%2c74.84c-0%2c7.28 -2.93%2c13.81 -7.69%2c18.58c-4.77%2c4.76 -11.3%2c7.68 -18.57%2c7.68l-26.32%2c0l-26.31%2c0c-7.26%2c0 -13.8%2c-2.92 -18.57%2c-7.68c-4.76%2c-4.77 -7.69%2c-11.31 -7.69%2c-18.58l0%2c-57.96l0%2c-16.89c0%2c-7.27 2.93%2c-13.8 7.69%2c-18.58c0.61%2c-0.61 1.41%2c-1.48 2.47%2c-2.62c3.9%2c-4.24 11.04%2c-12.28 18.57%2c-20.81l47.67%2c0c1.45%2c1.65 2.9%2c3.29 4.31%2c4.88M101.32%2c110.24c-1.44%2c1.61 -2.7%2c3 -3.72%2c4.09c-1%2c1.11 -1.79%2c1.92 -2.19%2c2.33c-6.56%2c6.56 -10.63%2c15.67 -10.63%2c25.69l0%2c74.84c-0.01%2c10.02 4.07%2c19.13 10.63%2c25.68c6.57%2c6.57 15.67%2c10.65 25.68%2c10.64l52.63%2c0c10.02%2c0.01 19.12%2c-4.07 25.67%2c-10.64c6.56%2c-6.56 10.64%2c-15.66 10.64%2c-25.68l0%2c-57.96l0%2c-16.89c0%2c-10.02 -4.07%2c-19.13 -10.64%2c-25.69c-0.39%2c-0.4 -1.17%2c-1.22 -2.19%2c-2.33c-4.34%2c-4.72 -13.04%2c-14.53 -21.7%2c-24.37l0%2c-1.02l-0.02%2c0l0%2c-21.82l8.16%2c0c8.98%2c0 16.27%2c-8.34 16.27%2c-18.64c-0.02%2c-10.27 -7.3%2c-18.61 -16.28%2c-18.63l-72.33%2c0.03c-9%2c-0.02 -16.28%2c8.32 -16.28%2c18.61c0%2c10.3 7.28%2c18.64 16.27%2c18.64l8.13%2c0l0.02%2c22.72c-2.6%2c2.95 -5.21%2c5.91 -7.7%2c8.72c-3.9%2c4.4 -7.52%2c8.47 -10.41%2c11.68'/%3e %3cpath fill='white' d='M172.37%2c181.84l0%2c4.59c0%2c2.11 -1.48%2c3.82 -3.3%2c3.82l-15.03%2c0l0%2c15.03c0%2c1.82 -1.71%2c3.3 -3.82%2c3.3l-6.75%2c0c-2.11%2c0 -3.81%2c-1.48 -3.81%2c-3.3l0%2c-15.03l-15.04%2c0c-1.82%2c0 -3.3%2c-1.71 -3.3%2c-3.82l0%2c-0.78l0%2c-3.81l0%2c-2.16c0%2c-2.1 1.48%2c-3.81 3.3%2c-3.81l15.04%2c0l0%2c-15.04c0%2c-1.82 1.71%2c-3.29 3.81%2c-3.29l6.75%2c0c2.11%2c0 3.82%2c1.48 3.82%2c3.29l0%2c15.04l15.03%2c0c1.83%2c0 3.3%2c1.71 3.3%2c3.81l0%2c2.16ZM107.23%2c219.96l79.8%2c0l0%2c-76.54l-79.8%2c0l0%2c76.54Z'/%3e%3c/svg%3e",iH="data:image/svg+xml,%3csvg id='report' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 288 288'%3e %3cpath id='background' fill='%23474c54' d='M143.81%2c0c-79.42%2c0 -143.81%2c64.38 -143.81%2c143.81c0%2c79.44 64.38%2c143.82 143.81%2c143.82c79.42%2c0 143.81%2c-64.39 143.81%2c-143.82c-0%2c-79.43 -64.39%2c-143.81 -143.81%2c-143.81'/%3e %3cpath fill='white' d='M188.88%2c81.07l-90.14%2c0c-2.38%2c0 -4.31%2c1.72 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.12 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M188.88%2c98.89l-90.14%2c0c-2.38%2c0 -4.31%2c1.71 -4.31%2c3.84c0%2c2.12 1.93%2c3.84 4.31%2c3.84l90.14%2c0c2.38%2c0 4.3%2c-1.72 4.3%2c-3.84c0%2c-2.13 -1.92%2c-3.84 -4.3%2c-3.84'/%3e %3cpath fill='white' d='M145.74%2c124.36c2.38%2c0 4.31%2c-1.72 4.31%2c-3.83c0%2c-2.12 -1.93%2c-3.84 -4.31%2c-3.84l-47%2c0c-2.38%2c0 -4.3%2c1.72 -4.3%2c3.84c0%2c2.11 1.92%2c3.83 4.3%2c3.83l47%2c0Z'/%3e %3cpath fill='white' d='M208.06%2c221.83c0%2c2.31 -1.87%2c4.17 -4.17%2c4.17l-120.15%2c0c-2.3%2c0 -4.18%2c-1.87 -4.18%2c-4.17l0%2c-156.02c0%2c-2.3 1.88%2c-4.18 4.18%2c-4.18l120.15%2c0c2.3%2c0 4.17%2c1.88 4.17%2c4.18l0%2c156.02ZM203.88%2c53.02l-120.15%2c0c-7.06%2c0 -12.78%2c5.72 -12.78%2c12.78l0%2c156.02c0%2c7.06 5.72%2c12.78 12.78%2c12.78l120.15%2c0c7.06%2c0 12.78%2c-5.72 12.78%2c-12.78l0%2c-156.02c0%2c-7.06 -5.72%2c-12.78 -12.78%2c-12.78'/%3e %3cpath fill='white' d='M122.75%2c167.37h17.9v41.86h-17.9z'/%3e %3cpath fill='white' d='M99.65%2c186.32h17.9v22.91h-17.9z'/%3e %3cpath fill='white' d='M145.86%2c176.39h17.91v32.84h-17.91z'/%3e %3cpath fill='white' d='M168.98%2c162.08h17.9v47.15h-17.9z'/%3e %3cpath fill='white' d='M154.28%2c160.54l-23.11%2c-19.05l-33.7%2c32.35l4.22%2c4.41l29.79%2c-28.61l23.11%2c19.05l32.94%2c-31.59l-4.22%2c-4.4l-29.03%2c27.84Z'/%3e%3c/svg%3e",oH="data:image/svg+xml,%3csvg id='problem' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%23a154a1' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.43 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M255.86%2c145.51l-59.15%2c0l0%2c-59.17l-50.28%2c0l0%2c59.17l-59.17%2c0l0%2c50.29l59.17%2c0l0%2c59.15l50.28%2c0l0%2c-59.15l59.15%2c0l0%2c-50.29Z'/%3e %3cpath fill='white' d='M106.17%2c21.07l-18.11%2c31.87l-35.37%2c-11.72l9.19%2c36.12l-33.17%2c15.85l32.18%2c18.93l-12.74%2c36.64l29.72%2c-12.86l-19.5%2c3.14l11.51%2c-30.58l-24.34%2c-14.36l25.12%2c-13.03l-7.39%2c-29.37l28.85%2c9.79l13.73%2c-25.71l13.06%2c27.38l31.18%2c-9.73l-4.48%2c20.11l14.34%2c-29.12l-36.92%2c9.79l-16.86%2c-33.16Z'/%3e %3cpath fill='white' d='M95.58%2c69.15l3.06%2c40.67l12.94%2c0l3.07%2c-40.67l-19.07%2c0Z'/%3e %3cpath fill='white' d='M105.11%2c114.84c-4.38%2c0 -7.93%2c3.55 -7.93%2c7.93c0%2c4.38 3.55%2c7.93 7.93%2c7.93c4.37%2c0 7.92%2c-3.55 7.92%2c-7.93c0%2c-4.38 -3.55%2c-7.93 -7.92%2c-7.93'/%3e%3c/svg%3e",aH="data:image/svg+xml,%3csvg id='procedure' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%234eb848' d='M145.63%2c0c-80.43%2c0 -145.63%2c65.2 -145.63%2c145.63c0%2c80.44 65.2%2c145.64 145.63%2c145.64c80.43%2c0 145.63%2c-65.21 145.63%2c-145.64c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M178.18%2c61.38c12.86%2c-12.86 33.78%2c-12.86 46.63%2c0l4.26%2c4.26c12.86%2c12.86 12.86%2c33.78 0%2c46.64l-18.45%2c18.45l7.24%2c7.24l0.01%2c0l18.44%2c-18.44c16.84%2c-16.84 16.84%2c-44.26 0%2c-61.11l-4.26%2c-4.26c-16.85%2c-16.86 -44.26%2c-16.86 -61.1%2c0l-18.44%2c18.44l7.23%2c7.23l18.44%2c-18.44Z'/%3e %3cpath fill='white' d='M130.79%2c210.57l-18.44%2c18.44c-12.86%2c12.86 -33.78%2c12.86 -46.64%2c0l-4.26%2c-4.26c-12.86%2c-12.86 -12.86%2c-33.78 0%2c-46.64l18.45%2c-18.44l-7.24%2c-7.23l-18.44%2c18.45c-16.86%2c16.85 -16.86%2c44.26 0%2c61.11l4.26%2c4.26c16.85%2c16.85 44.26%2c16.85 61.1%2c0.01l18.44%2c-18.44l-0.01%2c-0.01l-7.23%2c-7.23Z'/%3e %3cpath fill='white' d='M229.08%2c224.75l-4.26%2c4.27c-12.86%2c12.86 -33.78%2c12.86 -46.63%2c0l-25.67%2c-25.68l50.9%2c-50.91l25.67%2c25.68c12.86%2c12.87 12.86%2c33.78 0%2c46.64M87.14%2c137.96l-25.68%2c-25.68c-12.85%2c-12.86 -12.85%2c-33.78 0%2c-46.64l4.26%2c-4.26c12.87%2c-12.86 33.78%2c-12.86 46.64%2c0l25.68%2c25.67l-50.9%2c50.91ZM236.31%2c170.88l-25.68%2c-25.69l-65.36%2c-65.36l-25.68%2c-25.67c-16.84%2c-16.85 -44.25%2c-16.85 -61.1%2c0l-4.26%2c4.26c-16.86%2c16.85 -16.86%2c44.27 0%2c61.11l25.67%2c25.67l65.36%2c65.38l25.67%2c25.68c16.84%2c16.85 44.26%2c16.85 61.11%2c-0.01l4.26%2c-4.26c16.85%2c-16.85 16.85%2c-44.26 0%2c-61.11'/%3e %3cpath fill='white' d='M121.51%2c93.92c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.81%2c0c-1.88%2c1.88 -1.88%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.81%2c0'/%3e %3cpath fill='white' d='M87.18%2c59.58c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M87.18%2c114.62c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M59.66%2c87.11c-1.89%2c1.88 -1.89%2c4.93 0%2c6.82c1.88%2c1.88 4.94%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M93.94%2c93.99c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0'/%3e %3cpath fill='white' d='M230.88%2c196.47c-1.88%2c-1.88 -4.94%2c-1.88 -6.82%2c0c-1.89%2c1.88 -1.89%2c4.94 0%2c6.82c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.89%2c-4.94 0%2c-6.82'/%3e %3cpath fill='white' d='M196.53%2c168.94c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.88%2c1.89 4.93%2c1.89 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.82c-1.88%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M196.53%2c224c-1.88%2c1.88 -1.88%2c4.93 0%2c6.81c1.88%2c1.88 4.93%2c1.88 6.82%2c0c1.89%2c-1.88 1.89%2c-4.93 0%2c-6.81c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0'/%3e %3cpath fill='white' d='M169.01%2c196.47c-1.88%2c1.88 -1.88%2c4.94 0%2c6.82c1.89%2c1.88 4.93%2c1.88 6.82%2c0c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.89%2c-1.88 -4.93%2c-1.88 -6.82%2c0'/%3e %3cpath fill='white' d='M203.29%2c203.35c1.88%2c-1.88 1.88%2c-4.94 0%2c-6.82c-1.88%2c-1.89 -4.93%2c-1.89 -6.82%2c0c-1.88%2c1.87 -1.88%2c4.93 0%2c6.82c1.89%2c1.88 4.94%2c1.88 6.82%2c0'/%3e%3c/svg%3e",cH="data:image/svg+xml,%3csvg viewBox='0 0 292 292' version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'%3e %3cg id='Page-1' stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3e %3cg id='immunizations'%3e %3cpath d='M145.63%2c-2.84217094e-14 C65.2%2c-2.84217094e-14 0%2c65.2 0%2c145.63 C0%2c226.07 65.2%2c291.28 145.63%2c291.28 C226.06%2c291.28 291.26%2c226.07 291.26%2c145.63 C291.26%2c65.2 226.06%2c-2.84217094e-14 145.63%2c-2.84217094e-14' id='background' fill='%233054A5' fill-rule='nonzero'%3e%3c/path%3e %3cpath d='M197.11978%2c37.7935761 L197.381623%2c38.0096942 L243.102486%2c76.374054 C247.799291%2c80.3151412 248.02423%2c84.81633 243.777303%2c89.8776203 C239.603599%2c94.851647 235.247384%2c95.4369604 230.708659%2c91.6335605 L230.46961%2c91.4293291 L214.684717%2c110.241032 L237.313265%2c129.228639 C245.330865%2c135.956204 236.000124%2c147.238973 227.954658%2c140.870269 L227.711269%2c140.671852 L212.127928%2c127.595877 L123.611055%2c233.086178 C119.468352%2c238.023259 114.964724%2c238.522176 110.100172%2c234.582929 L109.848235%2c234.375217 L94.5566334%2c221.544039 L68.9882949%2c252.015199 L67.2926598%2c224.960953 L80.2399786%2c209.53094 L64.5148376%2c196.33598 C59.3405626%2c191.994247 58.7477203%2c187.359104 62.7363106%2c182.430551 L62.9430687%2c182.179694 L151.459942%2c76.6893919 C146.435251%2c72.4731754 141.379204%2c68.3109956 136.2918%2c64.2028525 C128.737006%2c58.10226 138.305031%2c46.5484907 145.786436%2c52.4344647 L146.012487%2c52.6181893 L168.963853%2c71.8766726 L184.748747%2c53.0649694 C179.431643%2c48.749482 178.896554%2c44.0610931 183.143481%2c38.9998028 C187.319626%2c34.0228673 191.978392%2c33.6207917 197.11978%2c37.7935761 Z M159.361857%2c83.3198861 L70.7832683%2c188.883738 L116.504132%2c227.248097 L138.334785%2c201.231338 L124.560663%2c189.673477 C116.651559%2c183.03695 125.814437%2c171.956435 133.750199%2c178.239948 L133.990282%2c178.435695 L147.764404%2c189.993556 L157.167266%2c178.787661 L150.889924%2c173.520346 C143.571138%2c167.379155 153.092938%2c155.456529 160.665086%2c161.412069 L160.893929%2c161.598036 L167.171271%2c166.865352 L176.262824%2c156.030462 L162.488702%2c144.472601 C155.169916%2c138.33141 164.788317%2c126.720013 172.154559%2c132.507379 L172.377069%2c132.688103 L186.151191%2c144.245964 L205.082721%2c121.684246 L159.361857%2c83.3198861 Z M192.439376%2c59.4084639 L176.482316%2c78.3769286 L206.864349%2c103.805572 L222.821409%2c84.8371072 L192.439376%2c59.4084639 Z' id='Syringe' fill='white'%3e%3c/path%3e %3c/g%3e %3c/g%3e%3c/svg%3e";function sH(t){var n=s(),r=n[0],i=n[1];function o(){if("NoData"!=t.previewState){if("Default"!=t.previewState){var e=new URLSearchParams({View:t.concept}).toString();return b.invokeCustomApi("HealthAndWellnessApi.PatientEventsPreview","GET",e,!0).then((function(e){i(e)}))}i(function(e){switch(e){case"Medications":return{PreviewValues:["atorvastatin 10 MG Oral Tablet","Metformin hydrochloride 500 MG Oral Tablet","atorvastatin 40 MG Oral Tablet"],Count:67};case"Conditions":return{PreviewValues:["Hypertension","Hyperlipidemia","Diabetes"],Count:12};case"Allergies":return{PreviewValues:["Penicillin","Dust","Pollen"],Count:3};case"Immunizations":return{PreviewValues:["Influenza virus vaccine","Tetanus and diphtheria toxoids - preservative free","Pneumococcal conjugate vaccine"],Count:3};case"Reports":return{PreviewValues:["Diagnostic X-Ray","Operative Note"],Count:3};case"Procedures":return{PreviewValues:["INJ TENDON SHEATH/LIGAMENT","DRAIN/INJ JOINT/BURSA W/US","INJ FOR TENDON ORIGIN/INSRT"],Count:3}}}(t.concept))}else i({PreviewValues:[],Count:0})}return l((function(){return o(),b.on("externalAccountSyncComplete",o),b.on("applicationDidBecomeVisible",o),function(){b.off("externalAccountSyncComplete",o),b.off("applicationDidBecomeVisible",o)}}),[t.concept]),r?r.PreviewValues.length?e.createElement(j,{indicatorPosition:t.indicatorPosition,bottomBorder:!0,indicatorValue:r.Count,className:"mdhui-health-preview-section",title:function(){switch(t.concept){case"Medications":return br["medications-title"];case"Immunizations":return br["immunizations-title"];case"Reports":return br["reports-title"];case"Allergies":return br["allergies-title"];case"Conditions":return br["conditions-title"];case"Procedures":return br["procedures-title"]}}(),titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:function(){switch(t.concept){case"Medications":return rH;case"Immunizations":return cH;case"Reports":return iH;case"Allergies":return nH;case"Conditions":return oH;case"Procedures":return aH}}()}),onClick:function(){return t.onClick()}},e.createElement("div",null,r.PreviewValues.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))):null:e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null))}_(".mdhui-health-preview-section .mdhui-health-preview-icon {\n width: 15px;\n height: 15px;\n margin-right: 8px;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item {\n white-space: nowrap;\n width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n margin-bottom: 2px;\n margin-top: 2px;\n font-size: .82em;\n color: var(--mdhui-text-color-2);\n box-sizing: border-box;\n}\n\n.mdhui-health-preview-section .mdhui-health-preview-item:first-child {\n margin-top: 4px;\n}");_(".mdhui-lab-results-summary {\n padding: 16px;\n background: var(--mdhui-background-color-0);\n position: relative;\n width: 100%;\n}\n\n.mdhui-lab-results-summary .mdhui-hw-section-header .mdhui-hw-section-header-icon {\n position: absolute;\n left: 0;\n top: 0;\n width: 15px;\n}\n\n.mdhui-lab-results-summary .mdhui-important-labs {\n background: var(--mdhui-background-color-0);\n}\n\n.mdhui-hw-section-indicator {\n position: absolute;\n right: 16px;\n top: 16px;\n font-size: 16px;\n color: var(--mdhui-text-color-3);\n}\n\n.mdhui-lab-results-values-container {\n margin-left: -16px;\n margin-right: -16px;\n overflow-y: hidden;\n margin-bottom: -16px;\n width: calc(100% + 32px);\n}\n\n.mdhui-lab-results-values-container.no-overflow {\n overflow-x: hidden;\n}\n\n.mdhui-lab-results-values-slider {\n padding-left: 8px;\n width: 10000px;\n}\n\n.mdhui-lab-results-values-column {\n width: 13em;\n min-width: 160px;\n border-right: solid 1px var(--mdhui-border-color-0);\n float: left;\n}\n\n.mdhui-lab-results-values-column:last-child {\n border: none;\n}");var lH="data:image/svg+xml,%3csvg id='labreport' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 292 292'%3e %3cpath id='background' fill='%230e90c0' d='M145.6%2c0c-80.41%2c0 -145.6%2c65.2 -145.6%2c145.63c0%2c80.44 65.2%2c145.65 145.6%2c145.65c80.43%2c0 145.63%2c-65.21 145.63%2c-145.65c0%2c-80.43 -65.2%2c-145.63 -145.63%2c-145.63'/%3e %3cpath fill='white' d='M117.4%2c168.37c0%2c-5.12 4.16%2c-9.25 9.26%2c-9.25c5.12%2c0 9.26%2c4.14 9.26%2c9.25c0%2c5.13 -4.14%2c9.28 -9.26%2c9.28c-5.11%2c0 -9.26%2c-4.15 -9.26%2c-9.28M125.4%2c118.36l9.09%2c-15.75l0%2c-28.86l29.31%2c0l0%2c28.86l9.08%2c15.75c4.56%2c7.87 10.48%2c18.16 16.48%2c28.53l-80.42%2c0c5.99%2c-10.37 11.93%2c-20.66 16.46%2c-28.53M174.14%2c99.85l0%2c-26.09l0.28%2c0c10.95%2c0 19.83%2c-7.91 19.83%2c-17.67c0%2c-9.76 -8.88%2c-17.67 -19.83%2c-17.67l-54%2c0c-10.95%2c0 -19.83%2c7.91 -19.83%2c17.67c0%2c9.76 8.87%2c17.67 19.83%2c17.67l3.74%2c0l0%2c26.09l-7.71%2c13.34c-9.48%2c16.43 -25%2c43.31 -34.48%2c59.74l-10.98%2c19.02c-3.1%2c5.37 -4.74%2c10.73 -4.74%2c15.86c0%2c3.14 0.63%2c6.18 1.92%2c8.93c1.92%2c4.13 5.31%2c7.46 9.54%2c9.61c4.24%2c2.17 9.31%2c3.22 15%2c3.23l112.89%2c0c7.58%2c-0.01 14.1%2c-1.9 18.93%2c-5.76c2.4%2c-1.93 4.33%2c-4.34 5.61%2c-7.08c1.28%2c-2.75 1.93%2c-5.79 1.92%2c-8.93c0%2c-5.13 -1.64%2c-10.49 -4.74%2c-15.86l-10.99%2c-19.02c-9.47%2c-16.42 -24.99%2c-43.3 -34.47%2c-59.74l-7.7%2c-13.34Z'/%3e%3c/svg%3e";_(".mdhui-lab-result-with-sparkline {\n padding: 8px;\n padding-top: 16px;\n height: 5.64em;\n box-sizing: border-box;\n position: relative;\n}\n\n.mdhui-lab-result-with-sparkline:first-child {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-title {\n text-transform: uppercase;\n font-size: .7em;\n color: var(--mdhui-text-color-2);\n white-space: nowrap;\n width: calc(100% - 16px);\n text-overflow: ellipsis;\n overflow: hidden;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-flex {\n display: flex;\n gap: 8px;\n flex-direction: row;\n justify-content: space-between;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-value {\n padding-top: 8px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-quantity {\n font-size: 1.23em;\n font-weight: 700;\n max-width: 3.8em;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-date {\n font-size: .7em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-container {\n position: relative;\n padding: 8px;\n padding-right: 2em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline {\n width: 70px;\n height: 40px;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-sparkline rect {\n opacity: .1;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-term-info {\n color: var(--mdhui-color-primary);\n font-size: 24px;\n opacity: .8;\n position: absolute;\n right: 0;\n top: calc(50% - 15px);\n cursor: pointer;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity {\n display: inline-block;\n border-radius: 2px;\n font-size: 0.7em;\n color: #FFF;\n padding-left: 2px;\n padding-right: 2px;\n height: 18px;\n vertical-align: middle;\n line-height: 1.3em;\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-high {\n background-color: var(--mdhui-color-danger);\n}\n\n.mdhui-lab-result-with-sparkline .mdhui-lab-result-with-sparkline-acuity.mdhui-lab-result-with-sparkline-acuity-low {\n background-color: var(--mdhui-color-primary);\n}");var uH={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};function fH(t){var n=s(0),r=n[0],i=n[1],o=s(0),c=o[0],u=o[1],f=a(null);return l((function(){var e,t;i((null===(e=f.current)||void 0===e?void 0:e.getBoundingClientRect().width)||0),u((null===(t=f.current)||void 0===t?void 0:t.getBoundingClientRect().height)||0)})),e.createElement("div",{className:"mdhui-lab-result-with-sparkline"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-title"},t.labResultValue.Type),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-flex"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-value"},e.createElement("div",{className:"mdhui-lab-result-with-sparkline-quantity"},e.createElement("span",{style:{verticalAlign:"middle"}},t.labResultValue.MostRecentValue)," ","High"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-high"},"H"),"Low"==t.labResultValue.AcuityHighlight&&e.createElement("span",{className:"mdhui-lab-result-with-sparkline-acuity mdhui-lab-result-with-sparkline-acuity-low"},"L")),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-date"},nt(pt(t.labResultValue.MostRecentDate),"MM/dd/yy"))),e.createElement("div",{className:"mdhui-lab-result-with-sparkline-container"},!!t.labResultValue.SparklinePoints.length&&e.createElement("svg",{ref:f,className:"mdhui-lab-result-with-sparkline-sparkline"},t.labResultValue.NormalRangeTopY&&e.createElement("rect",{x:"0",y:"0",width:r,height:t.labResultValue.NormalRangeTopY*c,fill:"var(--mdhui-color-danger)"}),t.labResultValue.NormalRangeBottomY&&e.createElement("rect",{x:"0",y:t.labResultValue.NormalRangeBottomY*c,width:r,height:t.labResultValue.NormalRangeBottomY*c,fill:"var(--mdhui-color-primary)"}),t.labResultValue.SparklinePoints.slice(0,t.labResultValue.SparklinePoints.length-1).map((function(n,i){return e.createElement("line",{key:i,x1:n.X*r,y1:n.Y*c,x2:t.labResultValue.SparklinePoints[i+1].X*r,y2:t.labResultValue.SparklinePoints[i+1].Y*c,style:{stroke:"var(--mdhui-border-color-2)",strokeWidth:2}})})),e.createElement("circle",{cx:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].X*r,cy:t.labResultValue.SparklinePoints[t.labResultValue.SparklinePoints.length-1].Y*c,r:"3",fill:"var(--mdhui-color-primary)"})),!!t.labResultValue.TermInformation&&e.createElement("div",{className:"mdhui-lab-result-with-sparkline-term-info",onClick:function(e){return function(e,n){e.preventDefault(),e.stopPropagation(),t.onViewTermInfo(n)}(e,t.labResultValue.TermInformation)}},e.createElement(P,{icon:uH})))))}var pH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[]},dH={RecentLabs:{TotalLabReports:53,RecentLabReports:["CORONAVIRUS (COVID-19), PCR - Final result","VWP","CBC"]},ImportantLabs:[[{Type:"WBC count",MostRecentValue:"16.6",MostRecentDate:"2021-03-03T23:32:00-05:00",AcuityHighlight:"High",SparklinePoints:[],NormalRangeTopY:null,NormalRangeBottomY:null,TermInformation:{TermNamespace:"LOINC",TermCode:"6690-2",TermFamily:"Reference"}},{Type:"HDL",MostRecentValue:"45.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.7777777777777778},{X:.2660160174679657,Y:.08333333333333337},{X:.3912703143726733,Y:.8935185185185185},{X:.4542408824767116,Y:.8587962962962963}],NormalRangeTopY:null,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2085-9",TermFamily:"Reference"}}],[{Type:"Cholesterol",MostRecentValue:"135.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.2660136408613797,Y:.39583333333333337},{X:.3912703143726733,Y:.39583333333333337},{X:.4542408824767116,Y:.35416666666666663}],NormalRangeTopY:.08333333333333337,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"2093-3",TermFamily:"Reference"}},{Type:"LDL",MostRecentValue:"152.0",MostRecentDate:"2021-02-27T08:25:00-05:00",AcuityHighlight:"High",SparklinePoints:[{X:.2660136408613797,Y:.08333333333333337},{X:.3912703143726733,Y:.16935483870967738},{X:.4542408824767116,Y:.09946236559139787}],NormalRangeTopY:.217741935483871,NormalRangeBottomY:.9166666666666666,TermInformation:{TermNamespace:"LOINC",TermCode:"13457-7",TermFamily:"Reference"}}],[{Type:"Glucose",MostRecentValue:"67",MostRecentDate:"2020-04-22T16:27:00+00:00",AcuityHighlight:"Normal",SparklinePoints:[{X:.24160208865208618,Y:.9166666666666667}],NormalRangeTopY:.08333333333333348,NormalRangeBottomY:.7670940170940171,TermInformation:{TermNamespace:"LOINC",TermCode:"2345-7",TermFamily:"Reference"}}]]};function hH(t){var n,r,i,o=s(null),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1];function d(){if("ImportantLabs"!=t.previewState)if("RecentLabs"!=t.previewState){if("NoData"!=t.previewState){return b.invokeCustomApi("HealthAndWellnessApi.LabResults","GET","",!0).then((function(e){c(e)}))}c({ImportantLabs:[],RecentLabs:{RecentLabReports:[]}})}else c(pH);else c(dH)}l((function(){return h()>0&&p(!0),d(),b.on("externalAccountSyncComplete",d),b.on("applicationDidBecomeVisible",d),function(){b.off("externalAccountSyncComplete",d),b.off("applicationDidBecomeVisible",d)}}),[]);var h=function(){var e,t=h.width;return void 0===t&&((e=document.createElement("div")).innerHTML='<div style="width:50px;height:50px;position:absolute;left:-50px;top:-50px;overflow:auto;"><div style="width:1px;height:100px;"></div></div>',e=e.firstChild,document.body.appendChild(e),t=h.width=e.offsetWidth-e.clientWidth,document.body.removeChild(e)),t};if(!a)return e.createElement("div",{className:"mdhui-health-preview-section"},e.createElement(I,null));if(a&&!a.ImportantLabs.length&&!(null===(n=a.RecentLabs)||void 0===n?void 0:n.RecentLabReports.length))return null;return e.createElement(j,{bottomBorder:!0,title:br["lab-results-title"],titleIcon:e.createElement("img",{className:"mdhui-health-preview-icon",src:lH,alt:"Lab Results"}),onClick:function(){a&&t.onClick()},indicatorValue:null===(r=null==a?void 0:a.RecentLabs)||void 0===r?void 0:r.TotalLabReports,indicatorPosition:(null===(i=a.ImportantLabs)||void 0===i?void 0:i.length)?"topRight":void 0,className:"mdhui-lab-results-summary mdhui-health-preview-section"},!a&&e.createElement(I,null),a&&e.createElement(e.Fragment,null,!!a.ImportantLabs.length&&e.createElement("div",{className:"mdhui-lab-results-values-container"+(f?" no-overflow":""),style:{height:5.64*a.ImportantLabs[0].length+"em"}},e.createElement("div",{className:"mdhui-lab-results-values-slider",style:{width:13*a.ImportantLabs.length+.5+"em"}},a.ImportantLabs.map((function(n,r){return e.createElement("div",{key:r,className:"mdhui-lab-results-values-column"},n.map((function(n,r){return e.createElement(fH,{onViewTermInfo:function(e){return t.onViewTermInfo(e)},labResultValue:n,key:r})})))})))),!a.ImportantLabs.length&&e.createElement("div",null,a.RecentLabs.RecentLabReports.map((function(t){return e.createElement("div",{key:t,className:"mdhui-health-preview-item"},t)})))))}_(".mdhui-most-recent-notification .mdhui-notification {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-most-recent-notification .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var mH={id:"1",identifier:"SurveyReminder",sentDate:"2022-03-10T13:37:41.16+00:00",statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:0};function vH(t){var n=s(null),r=n[0],i=n[1];function o(){if("Default"!=t.previewState){var e={limit:1,statusCode:"Succeeded"};if(t.hideAfterHours){var n=Y(new Date,{hours:-1*t.hideAfterHours});e.sentAfter=n.toISOString()}t.notificationType&&(e.type=t.notificationType),b.queryNotifications(e).then((function(e){e.notifications.length&&i(e.notifications[0])}))}else i(mH)}return l((function(){return o(),b.on("applicationDidBecomeVisible",o),function(){b.off("applicationDidBecomeVisible",o)}}),[]),r?e.createElement("div",{className:"mdhui-most-recent-notification"},e.createElement(Or,{notification:r}),t.onViewMore&&e.createElement(j,{subtitle:br["all-notifications"],onClick:t.onViewMore})):null}var yH=[{id:"1",identifier:"SurveyReminder",sentDate:(new Date).toISOString(),statusCode:"Succeeded",type:"Push",content:{body:"Thank you for completing your surveys!"},recipients:[],contentVersion:1},{id:"2",identifier:"SurveyReminder",sentDate:Y(new Date,{hours:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Please Complete Your Surveys",body:"Your latest surveys are due"},recipients:[],contentVersion:1},{id:"4",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-1}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Have you received your Fitbit? Connect it!"},recipients:[],contentVersion:1},{id:"5",identifier:"SurveyReminder",sentDate:Y(new Date,{days:-2}).toISOString(),statusCode:"Succeeded",type:"Push",content:{title:"Consent and get a Fitbit",body:"Are you missing out on a Fitbit device? Complete your consent - you could get a new Fitbit at no cost to you!"},recipients:[],contentVersion:1}];function gH(t){var n=a(null);return Nq((function(){n.current&&function(e){var t=e.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(t.bottom<0||t.top-n>=0)}(n.current)&&t.onTrigger()}),t.enabled?1e3:null),e.createElement("div",null,t.enabled&&e.createElement("div",{style:{height:"0px"},ref:n}))}function bH(t){var n=s(!1),r=n[0],i=n[1],o=s(void 0),a=o[0],c=o[1],u=s(!1),f=u[0],p=u[1],d=s([]),h=d[0],m=d[1];function v(){if("Default"==t.previewState&&m(yH),t.previewState)return i(!1),void p(!0);if(!r&&!f){i(!0);var e={statusCode:"Succeeded",limit:10};t.notificationType&&(e.type=t.notificationType),a&&(e.pageID=a),b.queryNotifications(e).then((function(e){m(h.concat(e.notifications)),i(!1),e.nextPageID||p(!0),c(e.nextPageID)}))}}return l((function(){v();var e=function(){m([]),c(void 0),p(!1),v()};return b.on("applicationDidBecomeVisible",e),function(){b.off("applicationDidBecomeVisible",e)}}),[]),e.createElement("div",{className:"mdhui-notification-list"},h&&h.map((function(t){return e.createElement(Pt,{key:t.id.toString()},e.createElement(Or,{notification:t}))})),r&&!f&&e.createElement(I,null),!r&&f&&0==h.length&&e.createElement(Pt,null,e.createElement(Dr,null,br["no-notifications-received"])),e.createElement(gH,{onTrigger:v,enabled:!r&&!f}))}function xH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({name:"My Project Name",organization:{name:"My Organization Name",color:"#0076BE",logoUrl:"https://rkstudio.careevolution.com/inv/api/researchkit/organizationbrandingimage/1e1853a2-50d3-4e26-863d-d8546bce63e3"}}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]);var f=null==a?void 0:a.organization.logoUrl;return f&&!(null==f?void 0:f.startsWith("http"))&&(f=b.baseUrl+(null==a?void 0:a.organization.logoUrl)),e.createElement("div",{className:"mdhui-project-header"},r&&e.createElement(I,null),!r&&a&&e.createElement("div",null,e.createElement("div",{style:{backgroundImage:"url('"+f+"')"},className:"logo"}),e.createElement("div",{className:"project-info"},e.createElement("div",{className:"project-name",style:{color:a.organization.color}},a.name),e.createElement("div",{className:"organization-name"},a.organization.name))))}_(".mdhui-project-header\n{\n padding: 16px;\n text-align: center;\n background: #FFF;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n line-height: normal;\n}\n\n .mdhui-project-header .logo\n {\n display: inline-block;\n width: 48px;\n height: 48px;\n background-size: contain;\n background-position: center center;\n background-repeat: no-repeat;\n vertical-align: middle;\n }\n\n .mdhui-project-header .project-info\n {\n display: inline-block;\n text-align: left;\n padding-left: 16px;\n vertical-align: top;\n padding-right: 16px;\n max-width: calc(100% - 80px);\n }\n\n .mdhui-project-header .project-info .project-name\n {\n font-weight: bold;\n font-size: 1.5em;\n max-width: 100%;\n }\n\n .mdhui-project-header .project-info .organization-name\n {\n max-width: 100%;\n color: #333;\n }\n");_(".mdhui-project-support>.title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-project-support .mdhui-action {\n color: var(--mdhui-color-primary);\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-project-support .mdhui-action .subtitle {\n color: var(--mdhui-color-primary);\n}");var wH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="envelope",n=[128386,9993,61443],r="f0e0",i="M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48H48zM0 176V384c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faEnvelope=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(wH);var _H={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="globe",n=[127760],r="f0ac",i="M352 256c0 22.2-1.2 43.6-3.3 64H163.3c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64H348.7c2.2 20.4 3.3 41.8 3.3 64zm28.8-64H503.9c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64H380.8c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32H376.7c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0H167.7c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0H18.6C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192H131.2c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64H8.1C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6H344.3c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352H135.3zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6H493.4z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faGlobe=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(_H);var kH={};function SH(t){var n=s(!0),r=n[0],i=n[1],o=s(null),a=o[0],c=o[1];function u(){if("Default"==t.previewState)return c({supportEmail:"test@example.com",supportPhone:"555-555-1212",learnMoreLink:"https://mydatahelps.org",learnMoreTitle:"Project Home Page"}),void i(!1);b.getProjectInfo().then((function(e){c(e),i(!1)}))}return l((function(){return u(),b.on("applicationDidBecomeVisible",u),function(){b.off("applicationDidBecomeVisible",u)}}),[]),!a||a.supportEmail||a.supportPhone||a.learnMoreLink&&a.learnMoreTitle?e.createElement("div",{className:"mdhui-project-support"},e.createElement("div",{className:"title"},br.support),r&&e.createElement(I,null),(null==a?void 0:a.learnMoreLink)&&(null==a?void 0:a.learnMoreTitle)&&e.createElement(j,{indicatorIcon:_H.faGlobe,subtitle:a.learnMoreTitle,onClick:function(){return b.openEmbeddedUrl(a.learnMoreLink)}}),(null==a?void 0:a.supportEmail)&&e.createElement(j,{indicatorIcon:wH.faEnvelope,subtitle:a.supportEmail,onClick:function(){return b.openExternalUrl("mailto:"+a.supportEmail)}}),(null==a?void 0:a.supportPhone)&&e.createElement(j,{indicatorIcon:kH.faPhone,subtitle:a.supportPhone,onClick:function(){return b.openExternalUrl("tel:"+a.supportPhone)}})):null}!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="phone",n=[128222,128379],r="f095",i="M164.9 24.6c-7.7-18.6-28-28.5-47.4-23.2l-88 24C12.1 30.2 0 46 0 64C0 311.4 200.6 512 448 512c18 0 33.8-12.1 38.6-29.5l24-88c5.3-19.4-4.6-39.7-23.2-47.4l-96-40c-16.3-6.8-35.2-2.1-46.3 11.6L304.7 368C234.3 334.7 177.3 277.7 144 207.3L193.3 167c13.7-11.2 18.4-30 11.6-46.3l-40-96z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faPhone=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(kH);var EH={},OH={};!function(e){Object.defineProperty(e,"__esModule",{value:!0});var t="magnifying-glass",n=[128269,"search"],r="f002",i="M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z";e.definition={prefix:"fas",iconName:t,icon:[512,512,n,r,i]},e.faMagnifyingGlass=e.definition,e.prefix="fas",e.iconName=t,e.width=512,e.height=512,e.ligatures=n,e.unicode=r,e.svgPathData=i,e.aliases=n}(OH),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=OH;e.definition={prefix:t.prefix,iconName:t.iconName,icon:[t.width,t.height,t.aliases,t.unicode,t.svgPathData]},e.faSearch=e.definition,e.prefix=t.prefix,e.iconName=t.iconName,e.width=t.width,e.height=t.height,e.ligatures=t.aliases,e.unicode=t.unicode,e.svgPathData=t.svgPathData,e.aliases=t.aliases}(EH);_(".mdhui-provider-search .title {\n font-weight: bold;\n padding: 16px;\n}\n\n.mdhui-provider-search .search-bar-wrapper {\n text-align: left;\n box-sizing: border-box;\n font-weight: bold;\n border-bottom: solid 1px var(--mdhui-border-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar {\n position: relative;\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar input {\n padding: 0;\n margin: 0;\n border: 0;\n width: 100%;\n line-height: 1.5em;\n padding-left: 40px;\n box-sizing: border-box;\n font-size: .88em;\n padding-top: 8px;\n padding-bottom: 8px;\n border: none;\n background: var(--mdhui-background-color-0);\n color: var(--mdhui-text-color-1);\n}\n\n.mdhui-provider-search .search-bar-wrapper .search-bar .fa-magnifying-glass {\n position: absolute;\n left: 16px;\n top: 12px;\n color: var(--mdhui-text-color-4);\n font-size: .8em;\n}\n\n.mdhui-provider-search .search-results .provider {\n border-bottom: solid 1px var(--mdhui-border-color-1);\n padding: 16px;\n position: relative;\n padding-right: 96px;\n cursor: pointer;\n font-size: .88em;\n line-height: 1.25em;\n width: 100%;\n}\n\n.mdhui-provider-search .search-results .provider .provider-logo {\n height: 37px;\n width: 64px;\n position: absolute;\n right: 16px;\n top: 8px;\n background-size: contain;\n background-repeat: no-repeat;\n background-position: center center;\n background-color:#FFF;\n border-radius: 4px;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status {\n font-size: .88em;\n font-weight: bold;\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.error-status {\n color: var(--mdhui-color-danger);\n}\n\n.mdhui-provider-search .search-results .provider .provider-status.connected-status {\n color: var(--mdhui-color-success);\n}");var AH=[{id:20,name:"1upHealth sandbox",category:"Health Plan",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/20/logo"},{id:13,name:"A Woman's Place, LLC",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/13/logo"},{id:130,name:"Abington Jefferson Health",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/130/logo"},{id:41,name:"Access Community Health Network",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/41/logo"},{id:125,name:"Aurora Health Care - myAurora",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/125/logo"},{id:1,name:"CareEvolution FHIR",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/1/logo"},{id:37,name:"Cedars-Sinai Health System",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/37/logo"},{id:27,name:"Maui Medical Group",category:"Provider",logoUrl:"https://mdhorg.ce.dev/api/v1/delegated/externalaccountproviders/27/logo"}],CH=0;function TH(t){var n=s({}),r=n[0],i=n[1],o=s([]),c=o[0],u=o[1],f=s(!0),p=f[0],d=f[1],h=s(""),m=h[0],v=h[1],g=s(0),x=g[0],w=g[1],_=s(0),S=_[0],E=_[1],O=a(m),A=100;function C(){return Rt(this,void 0,void 0,(function(){return Lt(this,(function(e){return b.getExternalAccounts().then((function(e){for(var t={},n=0;n<e.length;n++)t[e[n].provider.id]=e[n];i(t)})),[2]}))}))}function T(e){d(!0);var t=++CH;b.getExternalAccountProviders(e,null,A,x).then((function(e){t==CH&&(j(e.externalAccountProviders),E(e.totalExternalAccountProviders),d(!1))}))}function j(e){u(c.concat(e.filter((function(e){var n;return-1!=(null===(n=t.providerCategories)||void 0===n?void 0:n.indexOf(e.category))}))))}var D=y((function(){return e=T,void 0===(t=300)&&(t=300),function(){for(var r=this,i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];clearTimeout(n),n=setTimeout((function(){return e.apply(r,i)}),t)};var e,t,n}),[]);function M(e){var n;n=e.target.value,O.current=n,v(n),u([]),w(0),t.previewState||D(e.target.value)}function N(){C().then((function(){T(O.current)}))}return l((function(){return function(){if("Default"==t.previewState)return j(AH),void d(!1);C().then((function(){T("")}))}(),b.on("applicationDidBecomeVisible",N),function(){b.off("applicationDidBecomeVisible",N)}}),[]),l((function(){p||T(O.current)}),[x]),e.createElement("div",{className:"mdhui-provider-search"},e.createElement("div",{className:"search-bar-wrapper"},e.createElement("div",{className:"search-bar"},e.createElement("input",{title:br.search,type:"text",value:m,onChange:function(e){return M(e)},placeholder:br.search,spellCheck:"false",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off"}),e.createElement(P,{icon:EH.faSearch}))),e.createElement("div",{className:"search-results"},c&&c.map((function(t){return e.createElement(k,{key:t.id,className:"provider",onClick:function(){return e=t.id,void(r[e]&&"unauthorized"!=r[e].status||b.connectExternalAccount(e));var e}},t.logoUrl&&e.createElement("div",{className:"provider-logo",style:{backgroundImage:"url('"+t.logoUrl+"')"}}),e.createElement("div",{className:"provider-info"},e.createElement("div",{className:"provider-name"},t.name),r[t.id]&&"unauthorized"==r[t.id].status&&e.createElement("div",{className:"provider-status error-status"},br.reconnect),r[t.id]&&"unauthorized"!=r[t.id].status&&e.createElement("div",{className:"provider-status connected-status"},br.connected)))})),p&&e.createElement(I,null)),e.createElement(gH,{onTrigger:function(){w(x+1)},enabled:(x+1)*A<S}))}_(".mdhui-survey-task-list .mdhui-single-survey-task {\n border-bottom: solid 1px var(--mdhui-border-color-0);\n}\n\n.mdhui-survey-task-list .mdhui-single-survey-task:last-child {\n border: none;\n}\n\n.mdhui-survey-task-list .title {\n font-weight: bold;\n padding: 16px;\n padding-bottom: 0;\n}\n\n.mdhui-survey-task-list .empty-message {\n padding: 16px;\n font-size: .88em;\n}");var PH=[{id:"ecf8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Mood Survey",surveyDisplayName:"Mood Survey",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:-1}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"incomplete",hasSavedProgress:!0,dueDate:Y(new Date,{days:0}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:1}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"incomplete",hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"}],jH=[{id:"2c9ab4d9-80a4-ec11-aaab-f47bb6835a10",surveyID:"a7f58ba8-9777-ec11-aaa8-89aad5fbf200",surveyName:"SDOH: Followup",surveyDisplayName:"Social Determinants of Health: Followup",surveyDescription:"5 minutes",status:"complete",endDate:(new Date).toISOString(),hasSavedProgress:!1,dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:26.703Z",modifiedDate:"2022-03-15T16:56:26.703Z",linkIdentifier:"1"},{id:"b1c9bcd2-80a4-ec11-aaab-f47bb6835a10",surveyID:"cd452353-7674-ec11-aaa8-89aad5fbf200",surveyName:"Alcohol and Tobacco",surveyDisplayName:"Alcohol and Tobacco",surveyDescription:"5 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-1}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-15T16:56:15.007Z",modifiedDate:"2022-03-15T16:56:15.007Z",linkIdentifier:"1"},{id:"e7f8a7df-caa3-ec11-aaab-f47bb6835a10",surveyID:"53ad3e98-9777-ec11-aaa8-89aad5fbf200",surveyName:"Pregnancy (Followup)",surveyDisplayName:"Pregnancy: Followup",surveyDescription:"3 minutes",status:"complete",hasSavedProgress:!1,endDate:Y(new Date,{days:-2}).toISOString(),dueDate:Y(new Date,{days:10}).toISOString(),insertedDate:"2022-03-14T19:13:48.283Z",modifiedDate:"2022-03-14T19:13:48.283Z",linkIdentifier:"1"}];function DH(t){var n,r,i=s(!0),o=i[0],a=i[1],c=s(null),u=c[0],f=c[1];function p(t){return e.createElement(Cr,{key:t.id.toString(),task:t,disableClick:o})}function d(){if("IncompleteTasks"!=t.previewState)if("CompleteTasks"!=t.previewState){var e,n;e=[],n=function(r){var i={status:t.status,surveyName:t.surveys};return r&&(i.pageID=r),b.querySurveyTasks(i).then((function(r){e=e.concat(r.surveyTasks),r.nextPageID?n(r.nextPageID):("incomplete"==t.status&&e.sort((function(e,t){return pt(e.dueDate)>pt(t.dueDate)?1:pt(e.dueDate)<pt(t.dueDate)?-1:0})),"complete"==t.status&&e.sort((function(e,t){return e.endDate&&t.endDate?pt(e.endDate)>pt(t.endDate)?-1:pt(e.endDate)<pt(t.endDate)?1:0:0})),f(e),a(!1))}))},n(null)}else f(jH);else f(PH)}if(l((function(){return d(),b.on("applicationDidBecomeVisible",d),function(){b.off("applicationDidBecomeVisible",d)}}),[t.previewState]),"complete"==t.status&&!(null==u?void 0:u.length))return null;var h=null!==(n=t.variant)&&void 0!==n?n:"noCard";return e.createElement(MH,{card:"singleCard"==h},e.createElement("div",{className:"mdhui-survey-task-list"},t.title&&e.createElement(jt,{title:t.title,detailLinkText:t.onDetailLinkClick?br["view-all"]+" ("+(null!==(r=null==u?void 0:u.length)&&void 0!==r?r:0)+")":void 0,onDetailClick:t.onDetailLinkClick}),o&&!u&&e.createElement(I,null),!(null==u?void 0:u.length)&&!o&&e.createElement("div",{className:"empty-message"},br["all-tasks-complete"]),null==u?void 0:u.slice(0,t.limit).map((function(t){return"multiCard"==h?e.createElement(Pt,{key:t.id},p(t)):p(t)}))))}function MH(t){return t.card?e.createElement(Pt,null,t.children):e.createElement(e.Fragment,null,t.children)}function NH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto",primaryColor:t.primaryColor},(t.showBackButton||t.showCloseButton)&&e.createElement(xr,{title:t.title,showBackButton:t.showBackButton,showCloseButton:t.showCloseButton,subtitle:t.subtitle}),!(t.showBackButton||t.showCloseButton)&&e.createElement(e.Fragment,null,e.createElement(jr,null),e.createElement(Nr,{title:t.title,subtitle:t.subtitle})),t.children)}function IH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["connect-ehr-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["connect-ehr-title-divider"]),r+=br["connect-ehr-title-health-plans"]),r=br["connect-ehr-title-prefix"]+r,e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(Dr,null,br["ehr-intro"]),e.createElement(Pt,null,e.createElement(zq,{previewState:t.preview?"Default":void 0,applicationUrl:t.externalAccountsApplicationUrl,excludeProviders:t.excludeProviders,excludeHealthPlans:t.excludeHealthPlans,excludeDeviceManufacturers:!0})),e.createElement(Pt,null,e.createElement(TH,{previewState:t.preview?"Default":void 0,providerCategories:i})))}function RH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,null),e.createElement(Rr,{platforms:["Android"]},e.createElement(Pt,null,e.createElement(j,{title:"Google Fit",subtitle:br["google-fit-share"],onClick:function(){return b.showGoogleFitSettings()}}))),e.createElement(Pt,null,e.createElement(Xr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Zq,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,null,e.createElement(Zr,{previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(eH,{previewState:t.preview?"connected":void 0})),e.createElement(Pt,{allowOverflow:!0},e.createElement(jq,{previewState:t.preview?"Default":void 0})))}function LH(t){var n,r="",i=[];return t.excludeProviders||(i.push("Provider"),r+=br["external-accounts-title-providers"]),t.excludeHealthPlans||(i.push("Health Plan"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-health-plans"]),t.excludeDeviceManufacturers||(i.push("Device Manufacturer"),r.length>0&&(r+=br["external-accounts-title-divider"]),r+=br["external-accounts-title-devices"]),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:r,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(Mq,{previewState:t.preview?"Default":void 0,externalAccountProviderCategories:i,onExternalAccountsLoaded:function(e){0===e.length&&("Modal"===t.presentation?b.dismiss():b.back())}}))}function zH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,null),e.createElement(Pt,null,e.createElement(Xr,{previewState:t.connectPreview,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(Zq,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(Jq,{previewState:t.chartsPreview})))}function FH(t){return e.createElement(dr,null,e.createElement(jr,{color:"var(--main-bg-color)"}),e.createElement(Pt,null,e.createElement(Zr,{previewState:t.connectPreview,garminProviderID:t.garminProviderID,disabledBehavior:"displayError"})),e.createElement(Pt,null,e.createElement(eH,{previewState:t.devicesPreview})),e.createElement(Pt,{allowOverflow:!0},e.createElement(tH,{previewState:t.chartsPreview})))}function BH(t){var n,r="Push";t.notificationType&&(r=t.notificationType);return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},e.createElement(jr,{color:"#FFFFFF"}),e.createElement(xH,{previewState:t.preview?"Default":void 0}),e.createElement(Vr,{previewDevicePlatform:t.preview?"Web":void 0,previewProjectPlatforms:t.preview?["Web","Android","iOS"]:void 0}),e.createElement(Pt,null,e.createElement(vH,{notificationType:r,onViewMore:t.notificationsViewUrl?function(){t.notificationsViewUrl&&b.openApplication(t.notificationsViewUrl)}:void 0,previewState:t.preview?"Default":void 0,hideAfterHours:t.notificationHideAfterHours})),e.createElement(DH,{variant:"singleCard",status:"incomplete",limit:3,title:br.tasks,onDetailLinkClick:t.tasksViewUrl?function(){t.tasksViewUrl&&b.openApplication(t.tasksViewUrl)}:void 0,hideDueDate:t.hideTaskDueDate,previewState:t.preview?"IncompleteTasks":void 0}),e.createElement(Pt,null,e.createElement(Xr,{title:"Fitbit",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,e.createElement(Zr,{title:"Garmin",previewState:t.preview?"notConnected":void 0})),e.createElement(Pt,null,t.ehrConnectApplicationUrl&&e.createElement(Gr,{previewState:t.preview?"enabled":void 0,applicationUrl:t.ehrConnectApplicationUrl})),e.createElement(Pt,null,e.createElement(SH,{previewState:t.preview?"Default":void 0})))}function qH(t){var n,r;function i(){b.openApplication("https://hw.careevolutionapps.com/LabReports.html?lang="+b.getCurrentLanguage())}function o(e){var t=new URLSearchParams({termFamily:e.TermFamily,termNamespace:e.TermNamespace,termCode:e.TermCode,lang:b.getCurrentLanguage()}).toString();b.openApplication("https://hw.careevolutionapps.com/TermInformation.html?"+t,{modal:!0})}var a=null!==(n=t.variant)&&void 0!==n?n:"default";function c(n){var r=function(){return e.createElement(sH,{concept:n,onClick:function(){return function(e){b.openApplication("https://hw.careevolutionapps.com/"+e+".html")}(n)},previewState:"default"==t.previewState?"Default":void 0,indicatorPosition:"cardBased"==a?"topRight":"default"})};return"cardBased"==t.variant?e.createElement(Pt,null,r()):r()}return e.createElement(dr,{colorScheme:null!==(r=t.colorScheme)&&void 0!==r?r:"auto"},e.createElement(jr,null),e.createElement(Rq,{previewState:"default"==t.previewState?"externalAccountsLoaded":void 0,externalAccountCategories:["Provider","Health Plan"]}),"default"==a&&e.createElement(wr,{noTopMargin:!0},e.createElement(hH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0}),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(zq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0})),"cardBased"==a&&e.createElement(e.Fragment,null,e.createElement(Pt,null,e.createElement(hH,{onViewTermInfo:function(e){return o(e)},onClick:function(){return i()},previewState:"default"==t.previewState?"ImportantLabs":void 0})),c("Medications"),c("Immunizations"),c("Reports"),c("Allergies"),c("Conditions"),c("Procedures"),e.createElement(Pt,null,e.createElement(zq,{excludeDeviceManufacturers:!0,applicationUrl:t.externalAccountsApplicationUrl,previewState:"default"==t.previewState?"Default":void 0}))),e.createElement(Pt,null,e.createElement(Gr,{bottomBorder:!0,applicationUrl:t.connectEhrApplicationUrl,previewState:"default"==t.previewState?"enabledConnected":void 0})))}function HH(t){var n,r="Push";return t.notificationType&&(r=t.notificationType),e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.notifications,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),e.createElement(bH,{notificationType:r,previewState:t.preview?"Default":void 0}))}function VH(t){var n;return e.createElement(dr,{colorScheme:null!==(n=t.colorScheme)&&void 0!==n?n:"auto"},t.presentation&&e.createElement(xr,{title:br.tasks,showBackButton:"Push"==t.presentation,showCloseButton:"Modal"==t.presentation}),!t.presentation&&e.createElement(jr,null),!t.hideIncompleteTasks&&e.createElement(DH,{variant:"multiCard",title:br["incomplete-tasks"],status:"incomplete",hideDueDate:t.hideDueDate,previewState:t.preview?"IncompleteTasks":void 0}),!t.hideCompleteTasks&&e.createElement(DH,{variant:"multiCard",title:br["completed-tasks"],status:"complete",hideDueDate:t.hideDueDate,previewState:t.preview?"CompleteTasks":void 0}))}var UH={},WH={Aacute:"Á",aacute:"á",Abreve:"Ă",abreve:"ă",ac:"∾",acd:"∿",acE:"∾̳",Acirc:"Â",acirc:"â",acute:"´",Acy:"А",acy:"а",AElig:"Æ",aelig:"æ",af:"",Afr:"𝔄",afr:"𝔞",Agrave:"À",agrave:"à",alefsym:"ℵ",aleph:"ℵ",Alpha:"Α",alpha:"α",Amacr:"Ā",amacr:"ā",amalg:"⨿",amp:"&",AMP:"&",andand:"⩕",And:"⩓",and:"∧",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angmsd:"∡",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",Aogon:"Ą",aogon:"ą",Aopf:"𝔸",aopf:"𝕒",apacir:"⩯",ap:"≈",apE:"⩰",ape:"≊",apid:"≋",apos:"'",ApplyFunction:"",approx:"≈",approxeq:"≊",Aring:"Å",aring:"å",Ascr:"𝒜",ascr:"𝒶",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",Bcy:"Б",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",Beta:"Β",beta:"β",beth:"ℶ",between:"≬",Bfr:"𝔅",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bNot:"⫭",bnot:"⌐",Bopf:"𝔹",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxHd:"╤",boxhD:"╥",boxHD:"╦",boxhu:"┴",boxHu:"╧",boxhU:"╨",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsolb:"⧅",bsol:"\\",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",Bumpeq:"≎",bumpeq:"≏",Cacute:"Ć",cacute:"ć",capand:"⩄",capbrcup:"⩉",capcap:"⩋",cap:"∩",Cap:"⋒",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",Ccaron:"Č",ccaron:"č",Ccedil:"Ç",ccedil:"ç",Ccirc:"Ĉ",ccirc:"ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",Cdot:"Ċ",cdot:"ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",CHcy:"Ч",chcy:"ч",check:"✓",checkmark:"✓",Chi:"Χ",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cir:"○",cirE:"⧃",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",Colone:"⩴",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",Cscr:"𝒞",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cup:"∪",Cup:"⋓",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",Darr:"↡",dArr:"⇓",dash:"‐",Dashv:"⫤",dashv:"⊣",dbkarow:"⤏",dblac:"˝",Dcaron:"Ď",dcaron:"ď",Dcy:"Д",dcy:"д",ddagger:"‡",ddarr:"⇊",DD:"ⅅ",dd:"ⅆ",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",Delta:"Δ",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"𝔇",dfr:"𝔡",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",DJcy:"Ђ",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",Dopf:"𝔻",dopf:"𝕕",Dot:"¨",dot:"˙",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrowBar:"⤓",downarrow:"↓",DownArrow:"↓",Downarrow:"⇓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVectorBar:"⥖",DownLeftVector:"↽",DownRightTeeVector:"⥟",DownRightVectorBar:"⥗",DownRightVector:"⇁",DownTeeArrow:"↧",DownTee:"⊤",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",Dscr:"𝒟",dscr:"𝒹",DScy:"Ѕ",dscy:"ѕ",dsol:"⧶",Dstrok:"Đ",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",DZcy:"Џ",dzcy:"џ",dzigrarr:"⟿",Eacute:"É",eacute:"é",easter:"⩮",Ecaron:"Ě",ecaron:"ě",Ecirc:"Ê",ecirc:"ê",ecir:"≖",ecolon:"≕",Ecy:"Э",ecy:"э",eDDot:"⩷",Edot:"Ė",edot:"ė",eDot:"≑",ee:"ⅇ",efDot:"≒",Efr:"𝔈",efr:"𝔢",eg:"⪚",Egrave:"È",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",Emacr:"Ē",emacr:"ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp13:" ",emsp14:" ",emsp:" ",ENG:"Ŋ",eng:"ŋ",ensp:" ",Eogon:"Ę",eogon:"ę",Eopf:"𝔼",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",Epsilon:"Ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",Esim:"⩳",esim:"≂",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",Fcy:"Ф",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",Ffr:"𝔉",ffr:"𝔣",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",Fopf:"𝔽",fopf:"𝕗",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",Gamma:"Γ",gamma:"γ",Gammad:"Ϝ",gammad:"ϝ",gap:"⪆",Gbreve:"Ğ",gbreve:"ğ",Gcedil:"Ģ",Gcirc:"Ĝ",gcirc:"ĝ",Gcy:"Г",gcy:"г",Gdot:"Ġ",gdot:"ġ",ge:"≥",gE:"≧",gEl:"⪌",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",gescc:"⪩",ges:"⩾",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",Gfr:"𝔊",gfr:"𝔤",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",GJcy:"Ѓ",gjcy:"ѓ",gla:"⪥",gl:"≷",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",Gopf:"𝔾",gopf:"𝕘",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gtcc:"⪧",gtcir:"⩺",gt:">",GT:">",Gt:"≫",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",HARDcy:"Ъ",hardcy:"ъ",harrcir:"⥈",harr:"↔",hArr:"⇔",harrw:"↭",Hat:"^",hbar:"ℏ",Hcirc:"Ĥ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",Iacute:"Í",iacute:"í",ic:"",Icirc:"Î",icirc:"î",Icy:"И",icy:"и",Idot:"İ",IEcy:"Е",iecy:"е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",Igrave:"Ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",IJlig:"IJ",ijlig:"ij",Imacr:"Ī",imacr:"ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",Im:"ℑ",imof:"⊷",imped:"Ƶ",Implies:"⇒",incare:"℅",in:"∈",infin:"∞",infintie:"⧝",inodot:"ı",intcal:"⊺",int:"∫",Int:"∬",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"",InvisibleTimes:"",IOcy:"Ё",iocy:"ё",Iogon:"Į",iogon:"į",Iopf:"𝕀",iopf:"𝕚",Iota:"Ι",iota:"ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",Itilde:"Ĩ",itilde:"ĩ",Iukcy:"І",iukcy:"і",Iuml:"Ï",iuml:"ï",Jcirc:"Ĵ",jcirc:"ĵ",Jcy:"Й",jcy:"й",Jfr:"𝔍",jfr:"𝔧",jmath:"ȷ",Jopf:"𝕁",jopf:"𝕛",Jscr:"𝒥",jscr:"𝒿",Jsercy:"Ј",jsercy:"ј",Jukcy:"Є",jukcy:"є",Kappa:"Κ",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"ķ",Kcy:"К",kcy:"к",Kfr:"𝔎",kfr:"𝔨",kgreen:"ĸ",KHcy:"Х",khcy:"х",KJcy:"Ќ",kjcy:"ќ",Kopf:"𝕂",kopf:"𝕜",Kscr:"𝒦",kscr:"𝓀",lAarr:"⇚",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",Lambda:"Λ",lambda:"λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larrb:"⇤",larrbfs:"⤟",larr:"←",Larr:"↞",lArr:"⇐",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",latail:"⤙",lAtail:"⤛",lat:"⪫",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ļ",lcedil:"ļ",lceil:"⌈",lcub:"{",Lcy:"Л",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",LeftArrowBar:"⇤",leftarrow:"←",LeftArrow:"←",Leftarrow:"⇐",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVectorBar:"⥙",LeftDownVector:"⇃",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",LeftRightArrow:"↔",Leftrightarrow:"⇔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTeeArrow:"↤",LeftTee:"⊣",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangleBar:"⧏",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVectorBar:"⥘",LeftUpVector:"↿",LeftVectorBar:"⥒",LeftVector:"↼",lEg:"⪋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",lescc:"⪨",les:"⩽",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",Lfr:"𝔏",lfr:"𝔩",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",LJcy:"Љ",ljcy:"љ",llarr:"⇇",ll:"≪",Ll:"⋘",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",Lmidot:"Ŀ",lmidot:"ŀ",lmoustache:"⎰",lmoust:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",LongLeftArrow:"⟵",Longleftarrow:"⟸",longleftrightarrow:"⟷",LongLeftRightArrow:"⟷",Longleftrightarrow:"⟺",longmapsto:"⟼",longrightarrow:"⟶",LongRightArrow:"⟶",Longrightarrow:"⟹",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",Lopf:"𝕃",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",Lstrok:"Ł",lstrok:"ł",ltcc:"⪦",ltcir:"⩹",lt:"<",LT:"<",Lt:"≪",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",Map:"⤅",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",Mcy:"М",mcy:"м",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",mfr:"𝔪",mho:"℧",micro:"µ",midast:"*",midcir:"⫰",mid:"∣",middot:"·",minusb:"⊟",minus:"−",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",Mopf:"𝕄",mopf:"𝕞",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",Mu:"Μ",mu:"μ",multimap:"⊸",mumap:"⊸",nabla:"∇",Nacute:"Ń",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natural:"♮",naturals:"ℕ",natur:"♮",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",Ncaron:"Ň",ncaron:"ň",Ncedil:"Ņ",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",Ncy:"Н",ncy:"н",ndash:"–",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",ne:"≠",nedot:"≐̸",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",Nfr:"𝔑",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",nGt:"≫⃒",ngt:"≯",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",NJcy:"Њ",njcy:"њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nlE:"≦̸",nle:"≰",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nLt:"≪⃒",nlt:"≮",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",Not:"⫬",not:"¬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangleBar:"⧏̸",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangleBar:"⧐̸",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",nparallel:"∦",npar:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",nprec:"⊀",npreceq:"⪯̸",npre:"⪯̸",nrarrc:"⤳̸",nrarr:"↛",nrArr:"⇏",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",Nscr:"𝒩",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",Ntilde:"Ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",Nu:"Ν",nu:"ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",Oacute:"Ó",oacute:"ó",oast:"⊛",Ocirc:"Ô",ocirc:"ô",ocir:"⊚",Ocy:"О",ocy:"о",odash:"⊝",Odblac:"Ő",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",OElig:"Œ",oelig:"œ",ofcir:"⦿",Ofr:"𝔒",ofr:"𝔬",ogon:"˛",Ograve:"Ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",Omacr:"Ō",omacr:"ō",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",omid:"⦶",ominus:"⊖",Oopf:"𝕆",oopf:"𝕠",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",orarr:"↻",Or:"⩔",or:"∨",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",Oscr:"𝒪",oscr:"ℴ",Oslash:"Ø",oslash:"ø",osol:"⊘",Otilde:"Õ",otilde:"õ",otimesas:"⨶",Otimes:"⨷",otimes:"⊗",Ouml:"Ö",ouml:"ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",para:"¶",parallel:"∥",par:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",Pcy:"П",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",Pfr:"𝔓",pfr:"𝔭",Phi:"Φ",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",Pi:"Π",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plus:"+",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",prap:"⪷",Pr:"⪻",pr:"≺",prcue:"≼",precapprox:"⪷",prec:"≺",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",pre:"⪯",prE:"⪳",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportional:"∝",Proportion:"∷",propto:"∝",prsim:"≾",prurel:"⊰",Pscr:"𝒫",pscr:"𝓅",Psi:"Ψ",psi:"ψ",puncsp:" ",Qfr:"𝔔",qfr:"𝔮",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",Qscr:"𝒬",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",Racute:"Ŕ",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarr:"→",Rarr:"↠",rArr:"⇒",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",Rarrtl:"⤖",rarrtl:"↣",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",Rcaron:"Ř",rcaron:"ř",Rcedil:"Ŗ",rcedil:"ŗ",rceil:"⌉",rcub:"}",Rcy:"Р",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",Re:"ℜ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",Rho:"Ρ",rho:"ρ",rhov:"ϱ",RightAngleBracket:"⟩",RightArrowBar:"⇥",rightarrow:"→",RightArrow:"→",Rightarrow:"⇒",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVectorBar:"⥕",RightDownVector:"⇂",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTeeArrow:"↦",RightTee:"⊢",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangleBar:"⧐",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVectorBar:"⥔",RightUpVector:"↾",RightVectorBar:"⥓",RightVector:"⇀",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoustache:"⎱",rmoust:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",Sacute:"Ś",sacute:"ś",sbquo:"‚",scap:"⪸",Scaron:"Š",scaron:"š",Sc:"⪼",sc:"≻",sccue:"≽",sce:"⪰",scE:"⪴",Scedil:"Ş",scedil:"ş",Scirc:"Ŝ",scirc:"ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",Scy:"С",scy:"с",sdotb:"⊡",sdot:"⋅",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",Sfr:"𝔖",sfr:"𝔰",sfrown:"⌢",sharp:"♯",SHCHcy:"Щ",shchcy:"щ",SHcy:"Ш",shcy:"ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",SOFTcy:"Ь",softcy:"ь",solbar:"⌿",solb:"⧄",sol:"/",Sopf:"𝕊",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squ:"□",squf:"▪",srarr:"→",Sscr:"𝒮",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",Star:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",subE:"⫅",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succapprox:"⪸",succ:"≻",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup1:"¹",sup2:"²",sup3:"³",sup:"⊃",Sup:"⋑",supdot:"⪾",supdsub:"⫘",supE:"⫆",supe:"⊇",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",Tau:"Τ",tau:"τ",tbrk:"⎴",Tcaron:"Ť",tcaron:"ť",Tcedil:"Ţ",tcedil:"ţ",Tcy:"Т",tcy:"т",tdot:"⃛",telrec:"⌕",Tfr:"𝔗",tfr:"𝔱",there4:"∴",therefore:"∴",Therefore:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:" ",ThinSpace:" ",thinsp:" ",thkap:"≈",thksim:"∼",THORN:"Þ",thorn:"þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",timesbar:"⨱",timesb:"⊠",times:"×",timesd:"⨰",tint:"∭",toea:"⤨",topbot:"⌶",topcir:"⫱",top:"⊤",Topf:"𝕋",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",Tscr:"𝒯",tscr:"𝓉",TScy:"Ц",tscy:"ц",TSHcy:"Ћ",tshcy:"ћ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",Uacute:"Ú",uacute:"ú",uarr:"↑",Uarr:"↟",uArr:"⇑",Uarrocir:"⥉",Ubrcy:"Ў",ubrcy:"ў",Ubreve:"Ŭ",ubreve:"ŭ",Ucirc:"Û",ucirc:"û",Ucy:"У",ucy:"у",udarr:"⇅",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"𝔘",ufr:"𝔲",Ugrave:"Ù",ugrave:"ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",Umacr:"Ū",umacr:"ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",uogon:"ų",Uopf:"𝕌",uopf:"𝕦",UpArrowBar:"⤒",uparrow:"↑",UpArrow:"↑",Uparrow:"⇑",UpArrowDownArrow:"⇅",updownarrow:"↕",UpDownArrow:"↕",Updownarrow:"⇕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",UpTeeArrow:"↥",UpTee:"⊥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",Uring:"Ů",uring:"ů",urtri:"◹",Uscr:"𝒰",uscr:"𝓊",utdot:"⋰",Utilde:"Ũ",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",Uuml:"Ü",uuml:"ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",Vcy:"В",vcy:"в",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",veebar:"⊻",vee:"∨",Vee:"⋁",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",Vopf:"𝕍",vopf:"𝕧",vprop:"∝",vrtri:"⊳",Vscr:"𝒱",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",Vvdash:"⊪",vzigzag:"⦚",Wcirc:"Ŵ",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",Wfr:"𝔚",wfr:"𝔴",Wopf:"𝕎",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",Wscr:"𝒲",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",Xfr:"𝔛",xfr:"𝔵",xharr:"⟷",xhArr:"⟺",Xi:"Ξ",xi:"ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",Xopf:"𝕏",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",Xscr:"𝒳",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",Yacute:"Ý",yacute:"ý",YAcy:"Я",yacy:"я",Ycirc:"Ŷ",ycirc:"ŷ",Ycy:"Ы",ycy:"ы",yen:"¥",Yfr:"𝔜",yfr:"𝔶",YIcy:"Ї",yicy:"ї",Yopf:"𝕐",yopf:"𝕪",Yscr:"𝒴",yscr:"𝓎",YUcy:"Ю",yucy:"ю",yuml:"ÿ",Yuml:"Ÿ",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"З",zcy:"з",Zdot:"Ż",zdot:"ż",zeetrf:"ℨ",ZeroWidthSpace:"",Zeta:"Ζ",zeta:"ζ",zfr:"𝔷",Zfr:"ℨ",ZHcy:"Ж",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",Zscr:"𝒵",zscr:"𝓏",zwj:"",zwnj:""},GH=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,$H={},YH={};function XH(e,t,n){var r,i,o,a,c,s="";for("string"!=typeof t&&(n=t,t=XH.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,r=YH[e];if(r)return r;for(r=YH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?r.push(n):r.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)r[e.charCodeAt(t)]=e[t];return r}(t),r=0,i=e.length;r<i;r++)if(o=e.charCodeAt(r),n&&37===o&&r+2<i&&/^[0-9a-f]{2}$/i.test(e.slice(r+1,r+3)))s+=e.slice(r,r+3),r+=2;else if(o<128)s+=c[o];else if(o>=55296&&o<=57343){if(o>=55296&&o<=56319&&r+1<i&&(a=e.charCodeAt(r+1))>=56320&&a<=57343){s+=encodeURIComponent(e[r]+e[r+1]),r++;continue}s+="%EF%BF%BD"}else s+=encodeURIComponent(e[r]);return s}XH.defaultChars=";/?:@&=+$,-_.!~*'()#",XH.componentChars="-_.!~*'()";var ZH=XH,KH={};function JH(e,t){var n;return"string"!=typeof t&&(t=JH.defaultChars),n=function(e){var t,n,r=KH[e];if(r)return r;for(r=KH[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),r.push(n);for(t=0;t<e.length;t++)r[n=e.charCodeAt(t)]="%"+("0"+n.toString(16).toUpperCase()).slice(-2);return r}(t),e.replace(/(%[a-f0-9]{2})+/gi,(function(e){var t,r,i,o,a,c,s,l="";for(t=0,r=e.length;t<r;t+=3)(i=parseInt(e.slice(t+1,t+3),16))<128?l+=n[i]:192==(224&i)&&t+3<r&&128==(192&(o=parseInt(e.slice(t+4,t+6),16)))?(l+=(s=i<<6&1984|63&o)<128?"��":String.fromCharCode(s),t+=3):224==(240&i)&&t+6<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),128==(192&o)&&128==(192&a))?(l+=(s=i<<12&61440|o<<6&4032|63&a)<2048||s>=55296&&s<=57343?"���":String.fromCharCode(s),t+=6):240==(248&i)&&t+9<r&&(o=parseInt(e.slice(t+4,t+6),16),a=parseInt(e.slice(t+7,t+9),16),c=parseInt(e.slice(t+10,t+12),16),128==(192&o)&&128==(192&a)&&128==(192&c))?((s=i<<18&1835008|o<<12&258048|a<<6&4032|63&c)<65536||s>1114111?l+="����":(s-=65536,l+=String.fromCharCode(55296+(s>>10),56320+(1023&s))),t+=9):l+="�";return l}))}JH.defaultChars=";/?:@&=+$,#",JH.componentChars="";var QH=JH;function eV(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var tV=/^([a-z0-9.+-]+:)/i,nV=/:[0-9]*$/,rV=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,iV=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),oV=["'"].concat(iV),aV=["%","/","?",";","#"].concat(oV),cV=["/","?","#"],sV=/^[+a-z0-9A-Z_-]{0,63}$/,lV=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,uV={javascript:!0,"javascript:":!0},fV={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};eV.prototype.parse=function(e,t){var n,r,i,o,a,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var s=rV.exec(c);if(s)return this.pathname=s[1],s[2]&&(this.search=s[2]),this}var l=tV.exec(c);if(l&&(i=(l=l[0]).toLowerCase(),this.protocol=l,c=c.substr(l.length)),(t||l||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(!(a="//"===c.substr(0,2))||l&&uV[l]||(c=c.substr(2),this.slashes=!0)),!uV[l]&&(a||l&&!fV[l])){var u,f,p=-1;for(n=0;n<cV.length;n++)-1!==(o=c.indexOf(cV[n]))&&(-1===p||o<p)&&(p=o);for(-1!==(f=-1===p?c.lastIndexOf("@"):c.lastIndexOf("@",p))&&(u=c.slice(0,f),c=c.slice(f+1),this.auth=u),p=-1,n=0;n<aV.length;n++)-1!==(o=c.indexOf(aV[n]))&&(-1===p||o<p)&&(p=o);-1===p&&(p=c.length),":"===c[p-1]&&p--;var d=c.slice(0,p);c=c.slice(p),this.parseHost(d),this.hostname=this.hostname||"";var h="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!h){var m=this.hostname.split(/\./);for(n=0,r=m.length;n<r;n++){var v=m[n];if(v&&!v.match(sV)){for(var y="",g=0,b=v.length;g<b;g++)v.charCodeAt(g)>127?y+="x":y+=v[g];if(!y.match(sV)){var x=m.slice(0,n),w=m.slice(n+1),_=v.match(lV);_&&(x.push(_[1]),w.unshift(_[2])),w.length&&(c=w.join(".")+c),this.hostname=x.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),h&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var k=c.indexOf("#");-1!==k&&(this.hash=c.substr(k),c=c.slice(0,k));var S=c.indexOf("?");return-1!==S&&(this.search=c.substr(S),c=c.slice(0,S)),c&&(this.pathname=c),fV[i]&&this.hostname&&!this.pathname&&(this.pathname=""),this},eV.prototype.parseHost=function(e){var t=nV.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var pV=function(e,t){if(e&&e instanceof eV)return e;var n=new eV;return n.parse(e,t),n};$H.encode=ZH,$H.decode=QH,$H.format=function(e){var t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||""},$H.parse=pV;var dV,hV,mV,vV,yV,gV,bV,xV,wV,_V={};function kV(){return hV?dV:(hV=1,dV=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/)}function SV(){return vV?mV:(vV=1,mV=/[\0-\x1F\x7F-\x9F]/)}function EV(){return xV?bV:(xV=1,bV=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/)}function OV(){return wV||(wV=1,_V.Any=kV(),_V.Cc=SV(),_V.Cf=gV?yV:(gV=1,yV=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/),_V.P=GH,_V.Z=EV()),_V}!function(e){var t=Object.prototype.hasOwnProperty;function n(e,n){return t.call(e,n)}function r(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function i(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var o=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,a=new RegExp(o.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),c=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,s=WH;var l=/[&<>"]/,u=/[&<>"]/g,f={"&":"&","<":"<",">":">",'"':"""};function p(e){return f[e]}var d=/[.?*+^$[\]\\(){}|-]/g;var h=GH;e.lib={},e.lib.mdurl=$H,e.lib.ucmicro=OV(),e.assign=function(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e},e.isString=function(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)},e.has=n,e.unescapeMd=function(e){return e.indexOf("\\")<0?e:e.replace(o,"$1")},e.unescapeAll=function(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(a,(function(e,t,o){return t||function(e,t){var o=0;return n(s,t)?s[t]:35===t.charCodeAt(0)&&c.test(t)&&r(o="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?i(o):e}(e,o)}))},e.isValidEntityCode=r,e.fromCodePoint=i,e.escapeHtml=function(e){return l.test(e)?e.replace(u,p):e},e.arrayReplaceAt=function(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))},e.isSpace=function(e){switch(e){case 9:case 32:return!0}return!1},e.isWhiteSpace=function(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1},e.isMdAsciiPunct=function(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}},e.isPunctChar=function(e){return h.test(e)},e.escapeRE=function(e){return e.replace(d,"\\$&")},e.normalizeReference=function(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}}(UH);var AV={},CV=UH.unescapeAll,TV=UH.unescapeAll;AV.parseLinkLabel=function(e,t,n){var r,i,o,a,c=-1,s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(93===(o=e.src.charCodeAt(e.pos))&&0===--r){i=!0;break}if(a=e.pos,e.md.inline.skipToken(e),91===o)if(a===e.pos-1)r++;else if(n)return e.pos=l,-1}return i&&(c=e.pos),e.pos=l,c},AV.parseLinkDestination=function(e,t,n){var r,i,o=t,a={ok:!1,pos:0,lines:0,str:""};if(60===e.charCodeAt(t)){for(t++;t<n;){if(10===(r=e.charCodeAt(t)))return a;if(60===r)return a;if(62===r)return a.pos=t+1,a.str=CV(e.slice(o+1,t)),a.ok=!0,a;92===r&&t+1<n?t+=2:t++}return a}for(i=0;t<n&&32!==(r=e.charCodeAt(t))&&!(r<32||127===r);)if(92===r&&t+1<n){if(32===e.charCodeAt(t+1))break;t+=2}else{if(40===r&&++i>32)return a;if(41===r){if(0===i)break;i--}t++}return o===t||0!==i||(a.str=CV(e.slice(o,t)),a.lines=0,a.pos=t,a.ok=!0),a},AV.parseLinkTitle=function(e,t,n){var r,i,o=0,a=t,c={ok:!1,pos:0,lines:0,str:""};if(t>=n)return c;if(34!==(i=e.charCodeAt(t))&&39!==i&&40!==i)return c;for(t++,40===i&&(i=41);t<n;){if((r=e.charCodeAt(t))===i)return c.pos=t+1,c.lines=o,c.str=TV(e.slice(a+1,t)),c.ok=!0,c;if(40===r&&41===i)return c;10===r?o++:92===r&&t+1<n&&(t++,10===e.charCodeAt(t)&&o++),t++}return c};var PV=UH.assign,jV=UH.unescapeAll,DV=UH.escapeHtml,MV={};function NV(){this.rules=PV({},MV)}MV.code_inline=function(e,t,n,r,i){var o=e[t];return"<code"+i.renderAttrs(o)+">"+DV(e[t].content)+"</code>"},MV.code_block=function(e,t,n,r,i){var o=e[t];return"<pre"+i.renderAttrs(o)+"><code>"+DV(e[t].content)+"</code></pre>\n"},MV.fence=function(e,t,n,r,i){var o,a,c,s,l,u=e[t],f=u.info?jV(u.info).trim():"",p="",d="";return f&&(p=(c=f.split(/(\s+)/g))[0],d=c.slice(2).join("")),0===(o=n.highlight&&n.highlight(u.content,p,d)||DV(u.content)).indexOf("<pre")?o+"\n":f?(a=u.attrIndex("class"),s=u.attrs?u.attrs.slice():[],a<0?s.push(["class",n.langPrefix+p]):(s[a]=s[a].slice(),s[a][1]+=" "+n.langPrefix+p),l={attrs:s},"<pre><code"+i.renderAttrs(l)+">"+o+"</code></pre>\n"):"<pre><code"+i.renderAttrs(u)+">"+o+"</code></pre>\n"},MV.image=function(e,t,n,r,i){var o=e[t];return o.attrs[o.attrIndex("alt")][1]=i.renderInlineAsText(o.children,n,r),i.renderToken(e,t,n)},MV.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},MV.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},MV.text=function(e,t){return DV(e[t].content)},MV.html_block=function(e,t){return e[t].content},MV.html_inline=function(e,t){return e[t].content},NV.prototype.renderAttrs=function(e){var t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+DV(e.attrs[t][0])+'="'+DV(e.attrs[t][1])+'"';return r},NV.prototype.renderToken=function(e,t,n){var r,i="",o=!1,a=e[t];return a.hidden?"":(a.block&&-1!==a.nesting&&t&&e[t-1].hidden&&(i+="\n"),i+=(-1===a.nesting?"</":"<")+a.tag,i+=this.renderAttrs(a),0===a.nesting&&n.xhtmlOut&&(i+=" /"),a.block&&(o=!0,1===a.nesting&&t+1<e.length&&("inline"===(r=e[t+1]).type||r.hidden||-1===r.nesting&&r.tag===a.tag)&&(o=!1)),i+=o?">\n":">")},NV.prototype.renderInline=function(e,t,n){for(var r,i="",o=this.rules,a=0,c=e.length;a<c;a++)void 0!==o[r=e[a].type]?i+=o[r](e,a,t,n,this):i+=this.renderToken(e,a,t);return i},NV.prototype.renderInlineAsText=function(e,t,n){for(var r="",i=0,o=e.length;i<o;i++)"text"===e[i].type?r+=e[i].content:"image"===e[i].type?r+=this.renderInlineAsText(e[i].children,t,n):"softbreak"===e[i].type&&(r+="\n");return r},NV.prototype.render=function(e,t,n){var r,i,o,a="",c=this.rules;for(r=0,i=e.length;r<i;r++)"inline"===(o=e[r].type)?a+=this.renderInline(e[r].children,t,n):void 0!==c[o]?a+=c[e[r].type](e,r,t,n,this):a+=this.renderToken(e,r,t,n);return a};var IV=NV;function RV(){this.__rules__=[],this.__cache__=null}RV.prototype.__find__=function(e){for(var t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},RV.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},RV.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},RV.prototype.before=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},RV.prototype.after=function(e,t,n,r){var i=this.__find__(e),o=r||{};if(-1===i)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:o.alt||[]}),this.__cache__=null},RV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},RV.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)}),this),this.__cache__=null,n},RV.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach((function(e){e.enabled=!1})),this.enable(e,t)},RV.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);var n=[];return e.forEach((function(e){var r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)}),this),this.__cache__=null,n},RV.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]};var LV=RV,zV=/\r\n?|\n/g,FV=/\0/g,BV=UH.arrayReplaceAt;function qV(e){return/^<\/a\s*>/i.test(e)}var HV=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,VV=/\((c|tm|r)\)/i,UV=/\((c|tm|r)\)/gi,WV={c:"©",r:"®",tm:"™"};function GV(e,t){return WV[t.toLowerCase()]}function $V(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||(n.content=n.content.replace(UV,GV)),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}function YV(e){var t,n,r=0;for(t=e.length-1;t>=0;t--)"text"!==(n=e[t]).type||r||HV.test(n.content)&&(n.content=n.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===n.type&&"auto"===n.info&&r--,"link_close"===n.type&&"auto"===n.info&&r++}var XV=UH.isWhiteSpace,ZV=UH.isPunctChar,KV=UH.isMdAsciiPunct,JV=/['"]/,QV=/['"]/g;function eU(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function tU(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_;for(x=[],n=0;n<e.length;n++){for(r=e[n],s=e[n].level,g=x.length-1;g>=0&&!(x[g].level<=s);g--);if(x.length=g+1,"text"===r.type){a=0,c=(i=r.content).length;e:for(;a<c&&(QV.lastIndex=a,o=QV.exec(i));){if(v=y=!0,a=o.index+1,b="'"===o[0],u=32,o.index-1>=0)u=i.charCodeAt(o.index-1);else for(g=n-1;g>=0&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g--)if(e[g].content){u=e[g].content.charCodeAt(e[g].content.length-1);break}if(f=32,a<c)f=i.charCodeAt(a);else for(g=n+1;g<e.length&&("softbreak"!==e[g].type&&"hardbreak"!==e[g].type);g++)if(e[g].content){f=e[g].content.charCodeAt(0);break}if(p=KV(u)||ZV(String.fromCharCode(u)),d=KV(f)||ZV(String.fromCharCode(f)),h=XV(u),(m=XV(f))?v=!1:d&&(h||p||(v=!1)),h?y=!1:p&&(m||d||(y=!1)),34===f&&'"'===o[0]&&u>=48&&u<=57&&(y=v=!1),v&&y&&(v=p,y=d),v||y){if(y)for(g=x.length-1;g>=0&&(l=x[g],!(x[g].level<s));g--)if(l.single===b&&x[g].level===s){l=x[g],b?(w=t.md.options.quotes[2],_=t.md.options.quotes[3]):(w=t.md.options.quotes[0],_=t.md.options.quotes[1]),r.content=eU(r.content,o.index,_),e[l.token].content=eU(e[l.token].content,l.pos,w),a+=_.length-1,l.token===n&&(a+=w.length-1),c=(i=r.content).length,x.length=g;continue e}v?x.push({token:n,pos:o.index,single:b,level:s}):y&&b&&(r.content=eU(r.content,o.index,"’"))}else b&&(r.content=eU(r.content,o.index,"’"))}}}}function nU(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}nU.prototype.attrIndex=function(e){var t,n,r;if(!this.attrs)return-1;for(n=0,r=(t=this.attrs).length;n<r;n++)if(t[n][0]===e)return n;return-1},nU.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},nU.prototype.attrSet=function(e,t){var n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},nU.prototype.attrGet=function(e){var t=this.attrIndex(e),n=null;return t>=0&&(n=this.attrs[t][1]),n},nU.prototype.attrJoin=function(e,t){var n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t};var rU=nU,iU=rU;function oU(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}oU.prototype.Token=iU;var aU=oU,cU=LV,sU=[["normalize",function(e){var t;t=(t=e.src.replace(zV,"\n")).replace(FV,"�"),e.src=t}],["block",function(e){var t;e.inlineMode?((t=new e.Token("inline","",0)).content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){var t,n,r,i=e.tokens;for(n=0,r=i.length;n<r;n++)"inline"===(t=i[n]).type&&e.md.inline.parse(t.content,e.md,e.env,t.children)}],["linkify",function(e){var t,n,r,i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b=e.tokens;if(e.md.options.linkify)for(n=0,r=b.length;n<r;n++)if("inline"===b[n].type&&e.md.linkify.pretest(b[n].content))for(d=0,t=(i=b[n].children).length-1;t>=0;t--)if("link_close"!==(a=i[t]).type){if("html_inline"===a.type&&(g=a.content,/^<a[>\s]/i.test(g)&&d>0&&d--,qV(a.content)&&d++),!(d>0)&&"text"===a.type&&e.md.linkify.test(a.content)){for(l=a.content,y=e.md.linkify.match(l),c=[],p=a.level,f=0,y.length>0&&0===y[0].index&&t>0&&"text_special"===i[t-1].type&&(y=y.slice(1)),s=0;s<y.length;s++)h=y[s].url,m=e.md.normalizeLink(h),e.md.validateLink(m)&&(v=y[s].text,v=y[s].schema?"mailto:"!==y[s].schema||/^mailto:/i.test(v)?e.md.normalizeLinkText(v):e.md.normalizeLinkText("mailto:"+v).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+v).replace(/^http:\/\//,""),(u=y[s].index)>f&&((o=new e.Token("text","",0)).content=l.slice(f,u),o.level=p,c.push(o)),(o=new e.Token("link_open","a",1)).attrs=[["href",m]],o.level=p++,o.markup="linkify",o.info="auto",c.push(o),(o=new e.Token("text","",0)).content=v,o.level=p,c.push(o),(o=new e.Token("link_close","a",-1)).level=--p,o.markup="linkify",o.info="auto",c.push(o),f=y[s].lastIndex);f<l.length&&((o=new e.Token("text","",0)).content=l.slice(f),o.level=p,c.push(o)),b[n].children=i=BV(i,t,c)}}else for(t--;i[t].level!==a.level&&"link_open"!==i[t].type;)t--}],["replacements",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(VV.test(e.tokens[t].content)&&$V(e.tokens[t].children),HV.test(e.tokens[t].content)&&YV(e.tokens[t].children))}],["smartquotes",function(e){var t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&JV.test(e.tokens[t].content)&&tU(e.tokens[t].children,e)}],["text_join",function(e){var t,n,r,i,o,a,c=e.tokens;for(t=0,n=c.length;t<n;t++)if("inline"===c[t].type){for(o=(r=c[t].children).length,i=0;i<o;i++)"text_special"===r[i].type&&(r[i].type="text");for(i=a=0;i<o;i++)"text"===r[i].type&&i+1<o&&"text"===r[i+1].type?r[i+1].content=r[i].content+r[i+1].content:(i!==a&&(r[a]=r[i]),a++);i!==a&&(r.length=a)}}]];function lU(){this.ruler=new cU;for(var e=0;e<sU.length;e++)this.ruler.push(sU[e][0],sU[e][1])}lU.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},lU.prototype.State=aU;var uU=lU,fU=UH.isSpace;function pU(e,t){var n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function dU(e){var t,n=[],r=0,i=e.length,o=!1,a=0,c="";for(t=e.charCodeAt(r);r<i;)124===t&&(o?(c+=e.substring(a,r-1),a=r):(n.push(c+e.substring(a,r)),c="",a=r+1)),o=92===t,r++,t=e.charCodeAt(r);return n.push(c+e.substring(a)),n}var hU=UH.isSpace,mU=UH.isSpace,vU=UH.isSpace;function yU(e,t){var n,r,i,o;return r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<i&&(o=e.src.charCodeAt(r),!vU(o))?-1:r}function gU(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=r,o=e.eMarks[t];if(i+1>=o)return-1;if((n=e.src.charCodeAt(i++))<48||n>57)return-1;for(;;){if(i>=o)return-1;if(!((n=e.src.charCodeAt(i++))>=48&&n<=57)){if(41===n||46===n)break;return-1}if(i-r>=10)return-1}return i<o&&(n=e.src.charCodeAt(i),!vU(n))?-1:i}var bU=UH.normalizeReference,xU=UH.isSpace,wU={},_U="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",kU="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",SU=new RegExp("^(?:"+_U+"|"+kU+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),EU=new RegExp("^(?:"+_U+"|"+kU+")");wU.HTML_TAG_RE=SU,wU.HTML_OPEN_CLOSE_TAG_RE=EU;var OU=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","section","source","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],AU=wU.HTML_OPEN_CLOSE_TAG_RE,CU=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+OU.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(AU.source+"\\s*$"),/^$/,!1]],TU=UH.isSpace,PU=rU,jU=UH.isSpace;function DU(e,t,n,r){var i,o,a,c,s,l,u,f;for(this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0,this.result="",f=!1,a=c=l=u=0,s=(o=this.src).length;c<s;c++){if(i=o.charCodeAt(c),!f){if(jU(i)){l++,9===i?u+=4-u%4:u++;continue}f=!0}10!==i&&c!==s-1||(10!==i&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(l),this.sCount.push(u),this.bsCount.push(0),f=!1,l=0,u=0,a=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}DU.prototype.push=function(e,t,n){var r=new PU(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},DU.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},DU.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},DU.prototype.skipSpaces=function(e){for(var t,n=this.src.length;e<n&&(t=this.src.charCodeAt(e),jU(t));e++);return e},DU.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!jU(this.src.charCodeAt(--e)))return e+1;return e},DU.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},DU.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},DU.prototype.getLines=function(e,t,n,r){var i,o,a,c,s,l,u,f=e;if(e>=t)return"";for(l=new Array(t-e),i=0;f<t;f++,i++){for(o=0,u=c=this.bMarks[f],s=f+1<t||r?this.eMarks[f]+1:this.eMarks[f];c<s&&o<n;){if(a=this.src.charCodeAt(c),jU(a))9===a?o+=4-(o+this.bsCount[f])%4:o++;else{if(!(c-u<this.tShift[f]))break;o++}c++}l[i]=o>n?new Array(o-n+1).join(" ")+this.src.slice(c,s):this.src.slice(c,s)}return l.join("")},DU.prototype.Token=PU;var MU=DU,NU=LV,IU=[["table",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w;if(t+2>n)return!1;if(l=t+1,e.sCount[l]<e.blkIndent)return!1;if(e.sCount[l]-e.blkIndent>=4)return!1;if((a=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(x=e.src.charCodeAt(a++))&&45!==x&&58!==x)return!1;if(a>=e.eMarks[l])return!1;if(124!==(w=e.src.charCodeAt(a++))&&45!==w&&58!==w&&!fU(w))return!1;if(45===x&&fU(w))return!1;for(;a<e.eMarks[l];){if(124!==(i=e.src.charCodeAt(a))&&45!==i&&58!==i&&!fU(i))return!1;a++}for(u=(o=pU(e,t+1)).split("|"),d=[],c=0;c<u.length;c++){if(!(h=u[c].trim())){if(0===c||c===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;58===h.charCodeAt(h.length-1)?d.push(58===h.charCodeAt(0)?"center":"right"):58===h.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(o=pU(e,t).trim()).indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;if((u=dU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),0===(f=u.length)||f!==d.length)return!1;if(r)return!0;for(y=e.parentType,e.parentType="table",b=e.md.block.ruler.getRules("blockquote"),(p=e.push("table_open","table",1)).map=m=[t,0],(p=e.push("thead_open","thead",1)).map=[t,t+1],(p=e.push("tr_open","tr",1)).map=[t,t+1],c=0;c<u.length;c++)p=e.push("th_open","th",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c].trim(),p.children=[],p=e.push("th_close","th",-1);for(p=e.push("tr_close","tr",-1),p=e.push("thead_close","thead",-1),l=t+2;l<n&&!(e.sCount[l]<e.blkIndent);l++){for(g=!1,c=0,s=b.length;c<s;c++)if(b[c](e,l,n,!0)){g=!0;break}if(g)break;if(!(o=pU(e,l).trim()))break;if(e.sCount[l]-e.blkIndent>=4)break;for((u=dU(o)).length&&""===u[0]&&u.shift(),u.length&&""===u[u.length-1]&&u.pop(),l===t+2&&((p=e.push("tbody_open","tbody",1)).map=v=[t+2,0]),(p=e.push("tr_open","tr",1)).map=[l,l+1],c=0;c<f;c++)p=e.push("td_open","td",1),d[c]&&(p.attrs=[["style","text-align:"+d[c]]]),(p=e.push("inline","",0)).content=u[c]?u[c].trim():"",p.children=[],p=e.push("td_close","td",-1);p=e.push("tr_close","tr",-1)}return v&&(p=e.push("tbody_close","tbody",-1),v[1]=l),p=e.push("table_close","table",-1),m[1]=l,e.parentType=y,e.line=l,!0},["paragraph","reference"]],["code",function(e,t,n){var r,i,o;if(e.sCount[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;i=++r}return e.line=i,(o=e.push("code_block","code",0)).content=e.getLines(t,i,4+e.blkIndent,!1)+"\n",o.map=[t,e.line],!0}],["fence",function(e,t,n,r){var i,o,a,c,s,l,u,f=!1,p=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(p+3>d)return!1;if(126!==(i=e.src.charCodeAt(p))&&96!==i)return!1;if(s=p,(o=(p=e.skipChars(p,i))-s)<3)return!1;if(u=e.src.slice(s,p),a=e.src.slice(p,d),96===i&&a.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;for(c=t;!(++c>=n)&&!((p=s=e.bMarks[c]+e.tShift[c])<(d=e.eMarks[c])&&e.sCount[c]<e.blkIndent);)if(e.src.charCodeAt(p)===i&&!(e.sCount[c]-e.blkIndent>=4||(p=e.skipChars(p,i))-s<o||(p=e.skipSpaces(p))<d)){f=!0;break}return o=e.sCount[t],e.line=c+(f?1:0),(l=e.push("fence","code",0)).info=a,l.content=e.getLines(t+1,c,o,!0),l.markup=u,l.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S=e.lineMax,E=e.bMarks[t]+e.tShift[t],O=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(E++))return!1;if(r)return!0;for(c=p=e.sCount[t]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[t]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d=[e.bMarks[t]],e.bMarks[t]=E;E<O&&(o=e.src.charCodeAt(E),hU(o));)9===o?p+=4-(p+e.bsCount[t]+(i?1:0))%4:p++,E++;for(h=[e.bsCount[t]],e.bsCount[t]=e.sCount[t]+1+(b?1:0),l=E>=O,y=[e.sCount[t]],e.sCount[t]=p-c,g=[e.tShift[t]],e.tShift[t]=E-e.bMarks[t],w=e.md.block.ruler.getRules("blockquote"),v=e.parentType,e.parentType="blockquote",f=t+1;f<n&&(k=e.sCount[f]<e.blkIndent,!((E=e.bMarks[f]+e.tShift[f])>=(O=e.eMarks[f])));f++)if(62!==e.src.charCodeAt(E++)||k){if(l)break;for(x=!1,a=0,s=w.length;a<s;a++)if(w[a](e,f,n,!0)){x=!0;break}if(x){e.lineMax=f,0!==e.blkIndent&&(d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]-=e.blkIndent);break}d.push(e.bMarks[f]),h.push(e.bsCount[f]),g.push(e.tShift[f]),y.push(e.sCount[f]),e.sCount[f]=-1}else{for(c=p=e.sCount[f]+1,32===e.src.charCodeAt(E)?(E++,c++,p++,i=!1,b=!0):9===e.src.charCodeAt(E)?(b=!0,(e.bsCount[f]+p)%4==3?(E++,c++,p++,i=!1):i=!0):b=!1,d.push(e.bMarks[f]),e.bMarks[f]=E;E<O&&(o=e.src.charCodeAt(E),hU(o));)9===o?p+=4-(p+e.bsCount[f]+(i?1:0))%4:p++,E++;l=E>=O,h.push(e.bsCount[f]),e.bsCount[f]=e.sCount[f]+1+(b?1:0),y.push(e.sCount[f]),e.sCount[f]=p-c,g.push(e.tShift[f]),e.tShift[f]=E-e.bMarks[f]}for(m=e.blkIndent,e.blkIndent=0,(_=e.push("blockquote_open","blockquote",1)).markup=">",_.map=u=[t,0],e.md.block.tokenize(e,t,f),(_=e.push("blockquote_close","blockquote",-1)).markup=">",e.lineMax=S,e.parentType=v,u[1]=e.line,a=0;a<g.length;a++)e.bMarks[a+t]=d[a],e.tShift[a+t]=g[a],e.sCount[a+t]=y[a],e.bsCount[a+t]=h[a];return e.blkIndent=m,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(42!==(i=e.src.charCodeAt(s++))&&45!==i&&95!==i)return!1;for(o=1;s<l;){if((a=e.src.charCodeAt(s++))!==i&&!mU(a))return!1;a===i&&o++}return!(o<3)&&(r||(e.line=t+1,(c=e.push("hr","hr",0)).map=[t,e.line],c.markup=Array(o+1).join(String.fromCharCode(i))),!0)},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x,w,_,k,S,E,O,A,C,T,P,j,D=!1,M=!0;if(e.sCount[t]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[t]-e.listIndent>=4&&e.sCount[t]<e.blkIndent)return!1;if(r&&"paragraph"===e.parentType&&e.sCount[t]>=e.blkIndent&&(D=!0),(O=gU(e,t))>=0){if(u=!0,C=e.bMarks[t]+e.tShift[t],v=Number(e.src.slice(C,O-1)),D&&1!==v)return!1}else{if(!((O=yU(e,t))>=0))return!1;u=!1}if(D&&e.skipSpaces(O)>=e.eMarks[t])return!1;if(m=e.src.charCodeAt(O-1),r)return!0;for(h=e.tokens.length,u?(j=e.push("ordered_list_open","ol",1),1!==v&&(j.attrs=[["start",v]])):j=e.push("bullet_list_open","ul",1),j.map=d=[t,0],j.markup=String.fromCharCode(m),g=t,A=!1,P=e.md.block.ruler.getRules("list"),w=e.parentType,e.parentType="list";g<n;){for(E=O,y=e.eMarks[g],l=b=e.sCount[g]+O-(e.bMarks[t]+e.tShift[t]);E<y;){if(9===(i=e.src.charCodeAt(E)))b+=4-(b+e.bsCount[g])%4;else{if(32!==i)break;b++}E++}if((s=(o=E)>=y?1:b-l)>4&&(s=1),c=l+s,(j=e.push("list_item_open","li",1)).markup=String.fromCharCode(m),j.map=f=[t,0],u&&(j.info=e.src.slice(C,O-1)),S=e.tight,k=e.tShift[t],_=e.sCount[t],x=e.listIndent,e.listIndent=e.blkIndent,e.blkIndent=c,e.tight=!0,e.tShift[t]=o-e.bMarks[t],e.sCount[t]=b,o>=y&&e.isEmpty(t+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,t,n,!0),e.tight&&!A||(M=!1),A=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=x,e.tShift[t]=k,e.sCount[t]=_,e.tight=S,(j=e.push("list_item_close","li",-1)).markup=String.fromCharCode(m),g=t=e.line,f[1]=g,o=e.bMarks[t],g>=n)break;if(e.sCount[g]<e.blkIndent)break;if(e.sCount[t]-e.blkIndent>=4)break;for(T=!1,a=0,p=P.length;a<p;a++)if(P[a](e,g,n,!0)){T=!0;break}if(T)break;if(u){if((O=gU(e,g))<0)break;C=e.bMarks[g]+e.tShift[g]}else if((O=yU(e,g))<0)break;if(m!==e.src.charCodeAt(O-1))break}return(j=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1)).markup=String.fromCharCode(m),d[1]=g,e.line=g,e.parentType=w,M&&function(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].hidden=!0,e.tokens[n].hidden=!0,n+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){var i,o,a,c,s,l,u,f,p,d,h,m,v,y,g,b,x=0,w=e.bMarks[t]+e.tShift[t],_=e.eMarks[t],k=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(w))return!1;for(;++w<_;)if(93===e.src.charCodeAt(w)&&92!==e.src.charCodeAt(w-1)){if(w+1===_)return!1;if(58!==e.src.charCodeAt(w+1))return!1;break}for(c=e.lineMax,g=e.md.block.ruler.getRules("reference"),d=e.parentType,e.parentType="reference";k<c&&!e.isEmpty(k);k++)if(!(e.sCount[k]-e.blkIndent>3||e.sCount[k]<0)){for(y=!1,l=0,u=g.length;l<u;l++)if(g[l](e,k,c,!0)){y=!0;break}if(y)break}for(_=(v=e.getLines(t,k,e.blkIndent,!1).trim()).length,w=1;w<_;w++){if(91===(i=v.charCodeAt(w)))return!1;if(93===i){p=w;break}(10===i||92===i&&++w<_&&10===v.charCodeAt(w))&&x++}if(p<0||58!==v.charCodeAt(p+1))return!1;for(w=p+2;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!xU(i))break;if(!(h=e.md.helpers.parseLinkDestination(v,w,_)).ok)return!1;if(s=e.md.normalizeLink(h.str),!e.md.validateLink(s))return!1;for(o=w=h.pos,a=x+=h.lines,m=w;w<_;w++)if(10===(i=v.charCodeAt(w)))x++;else if(!xU(i))break;for(h=e.md.helpers.parseLinkTitle(v,w,_),w<_&&m!==w&&h.ok?(b=h.str,w=h.pos,x+=h.lines):(b="",w=o,x=a);w<_&&(i=v.charCodeAt(w),xU(i));)w++;if(w<_&&10!==v.charCodeAt(w)&&b)for(b="",w=o,x=a;w<_&&(i=v.charCodeAt(w),xU(i));)w++;return!(w<_&&10!==v.charCodeAt(w))&&(!!(f=bU(v.slice(1,p)))&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[f]&&(e.env.references[f]={title:b,href:s}),e.parentType=d,e.line=t+x+1),!0))}],["html_block",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(s))return!1;for(c=e.src.slice(s,l),i=0;i<CU.length&&!CU[i][0].test(c);i++);if(i===CU.length)return!1;if(r)return CU[i][2];if(o=t+1,!CU[i][1].test(c))for(;o<n&&!(e.sCount[o]<e.blkIndent);o++)if(s=e.bMarks[o]+e.tShift[o],l=e.eMarks[o],c=e.src.slice(s,l),CU[i][1].test(c)){0!==c.length&&o++;break}return e.line=o,(a=e.push("html_block","",0)).map=[t,o],a.content=e.getLines(t,o,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){var i,o,a,c,s=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(35!==(i=e.src.charCodeAt(s))||s>=l)return!1;for(o=1,i=e.src.charCodeAt(++s);35===i&&s<l&&o<=6;)o++,i=e.src.charCodeAt(++s);return!(o>6||s<l&&!TU(i))&&(r||(l=e.skipSpacesBack(l,s),(a=e.skipCharsBack(l,35,s))>s&&TU(e.src.charCodeAt(a-1))&&(l=a),e.line=t+1,(c=e.push("heading_open","h"+String(o),1)).markup="########".slice(0,o),c.map=[t,e.line],(c=e.push("inline","",0)).content=e.src.slice(s,l).trim(),c.map=[t,e.line],c.children=[],(c=e.push("heading_close","h"+String(o),-1)).markup="########".slice(0,o)),!0)},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){var r,i,o,a,c,s,l,u,f,p,d=t+1,h=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;for(p=e.parentType,e.parentType="paragraph";d<n&&!e.isEmpty(d);d++)if(!(e.sCount[d]-e.blkIndent>3)){if(e.sCount[d]>=e.blkIndent&&(s=e.bMarks[d]+e.tShift[d])<(l=e.eMarks[d])&&(45===(f=e.src.charCodeAt(s))||61===f)&&(s=e.skipChars(s,f),(s=e.skipSpaces(s))>=l)){u=61===f?1:2;break}if(!(e.sCount[d]<0)){for(i=!1,o=0,a=h.length;o<a;o++)if(h[o](e,d,n,!0)){i=!0;break}if(i)break}}return!!u&&(r=e.getLines(t,d,e.blkIndent,!1).trim(),e.line=d+1,(c=e.push("heading_open","h"+String(u),1)).markup=String.fromCharCode(f),c.map=[t,e.line],(c=e.push("inline","",0)).content=r,c.map=[t,e.line-1],c.children=[],(c=e.push("heading_close","h"+String(u),-1)).markup=String.fromCharCode(f),e.parentType=p,!0)}],["paragraph",function(e,t){var n,r,i,o,a,c,s=t+1,l=e.md.block.ruler.getRules("paragraph"),u=e.lineMax;for(c=e.parentType,e.parentType="paragraph";s<u&&!e.isEmpty(s);s++)if(!(e.sCount[s]-e.blkIndent>3||e.sCount[s]<0)){for(r=!1,i=0,o=l.length;i<o;i++)if(l[i](e,s,u,!0)){r=!0;break}if(r)break}return n=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,(a=e.push("paragraph_open","p",1)).map=[t,e.line],(a=e.push("inline","",0)).content=n,a.map=[t,e.line],a.children=[],a=e.push("paragraph_close","p",-1),e.parentType=c,!0}]];function RU(){this.ruler=new NU;for(var e=0;e<IU.length;e++)this.ruler.push(IU[e][0],IU[e][1],{alt:(IU[e][2]||[]).slice()})}RU.prototype.tokenize=function(e,t,n){for(var r,i=this.ruler.getRules(""),o=i.length,a=t,c=!1,s=e.md.options.maxNesting;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n))&&!(e.sCount[a]<e.blkIndent);){if(e.level>=s){e.line=n;break}for(r=0;r<o&&!i[r](e,a,n,!1);r++);e.tight=!c,e.isEmpty(e.line-1)&&(c=!0),(a=e.line)<n&&e.isEmpty(a)&&(c=!0,a++,e.line=a)}},RU.prototype.parse=function(e,t,n,r){var i;e&&(i=new this.State(e,t,n,r),this.tokenize(i,i.line,i.lineMax))},RU.prototype.State=MU;var LU=RU;function zU(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}for(var FU=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i,BU=UH.isSpace,qU=UH.isSpace,HU=[],VU=0;VU<256;VU++)HU.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){HU[e.charCodeAt(0)]=1}));var UU={};function WU(e,t){var n,r,i,o,a,c=[],s=t.length;for(n=0;n<s;n++)126===(i=t[n]).marker&&-1!==i.end&&(o=t[i.end],(a=e.tokens[i.token]).type="s_open",a.tag="s",a.nesting=1,a.markup="~~",a.content="",(a=e.tokens[o.token]).type="s_close",a.tag="s",a.nesting=-1,a.markup="~~",a.content="","text"===e.tokens[o.token-1].type&&"~"===e.tokens[o.token-1].content&&c.push(o.token-1));for(;c.length;){for(r=(n=c.pop())+1;r<e.tokens.length&&"s_close"===e.tokens[r].type;)r++;n!==--r&&(a=e.tokens[r],e.tokens[r]=e.tokens[n],e.tokens[n]=a)}}UU.tokenize=function(e,t){var n,r,i,o,a=e.pos,c=e.src.charCodeAt(a);if(t)return!1;if(126!==c)return!1;if(i=(r=e.scanDelims(e.pos,!0)).length,o=String.fromCharCode(c),i<2)return!1;for(i%2&&(e.push("text","",0).content=o,i--),n=0;n<i;n+=2)e.push("text","",0).content=o+o,e.delimiters.push({marker:c,length:0,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},UU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(WU(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&WU(e,n[t].delimiters)};var GU={};function $U(e,t){var n,r,i,o,a,c;for(n=t.length-1;n>=0;n--)95!==(r=t[n]).marker&&42!==r.marker||-1!==r.end&&(i=t[r.end],c=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===i.token+1,a=String.fromCharCode(r.marker),(o=e.tokens[r.token]).type=c?"strong_open":"em_open",o.tag=c?"strong":"em",o.nesting=1,o.markup=c?a+a:a,o.content="",(o=e.tokens[i.token]).type=c?"strong_close":"em_close",o.tag=c?"strong":"em",o.nesting=-1,o.markup=c?a+a:a,o.content="",c&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--))}GU.tokenize=function(e,t){var n,r,i=e.pos,o=e.src.charCodeAt(i);if(t)return!1;if(95!==o&&42!==o)return!1;for(r=e.scanDelims(e.pos,42===o),n=0;n<r.length;n++)e.push("text","",0).content=String.fromCharCode(o),e.delimiters.push({marker:o,length:r.length,token:e.tokens.length-1,end:-1,open:r.can_open,close:r.can_close});return e.pos+=r.length,!0},GU.postProcess=function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for($U(e,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&$U(e,n[t].delimiters)};var YU=UH.normalizeReference,XU=UH.isSpace,ZU=UH.normalizeReference,KU=UH.isSpace,JU=/^([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,QU=/^([a-zA-Z][a-zA-Z0-9+.\-]{1,31}):([^<>\x00-\x20]*)$/,eW=wU.HTML_TAG_RE;var tW=WH,nW=UH.has,rW=UH.isValidEntityCode,iW=UH.fromCodePoint,oW=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,aW=/^&([a-z][a-z0-9]{1,31});/i;function cW(e,t){var n,r,i,o,a,c,s,l,u={},f=t.length;if(f){var p=0,d=-2,h=[];for(n=0;n<f;n++)if(i=t[n],h.push(0),t[p].marker===i.marker&&d===i.token-1||(p=n),d=i.token,i.length=i.length||0,i.close){for(u.hasOwnProperty(i.marker)||(u[i.marker]=[-1,-1,-1,-1,-1,-1]),a=u[i.marker][(i.open?3:0)+i.length%3],c=r=p-h[p]-1;r>a;r-=h[r]+1)if((o=t[r]).marker===i.marker&&o.open&&o.end<0&&(s=!1,(o.close||i.open)&&(o.length+i.length)%3==0&&(o.length%3==0&&i.length%3==0||(s=!0)),!s)){l=r>0&&!t[r-1].open?h[r-1]+1:0,h[n]=n-r+l,h[r]=l,i.open=!1,o.end=n,o.close=!1,c=-1,d=-2;break}-1!==c&&(u[i.marker][(i.open?3:0)+(i.length||0)%3]=c)}}}var sW=rU,lW=UH.isWhiteSpace,uW=UH.isPunctChar,fW=UH.isMdAsciiPunct;function pW(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}pW.prototype.pushPending=function(){var e=new sW("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},pW.prototype.push=function(e,t,n){this.pending&&this.pushPending();var r=new sW(e,t,n),i=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],i={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(i),r},pW.prototype.scanDelims=function(e,t){var n,r,i,o,a,c,s,l,u,f=e,p=!0,d=!0,h=this.posMax,m=this.src.charCodeAt(e);for(n=e>0?this.src.charCodeAt(e-1):32;f<h&&this.src.charCodeAt(f)===m;)f++;return i=f-e,r=f<h?this.src.charCodeAt(f):32,s=fW(n)||uW(String.fromCharCode(n)),u=fW(r)||uW(String.fromCharCode(r)),c=lW(n),(l=lW(r))?p=!1:u&&(c||s||(p=!1)),c?d=!1:s&&(l||u||(d=!1)),t?(o=p,a=d):(o=p&&(!d||s),a=d&&(!p||u)),{can_open:o,can_close:a,length:i}},pW.prototype.Token=sW;var dW=pW,hW=LV,mW=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!zU(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){var n,r,i,o,a,c,s;return!!e.md.options.linkify&&(!(e.linkLevel>0)&&(!((n=e.pos)+3>e.posMax)&&(58===e.src.charCodeAt(n)&&(47===e.src.charCodeAt(n+1)&&(47===e.src.charCodeAt(n+2)&&(!!(r=e.pending.match(FU))&&(i=r[1],!!(o=e.md.linkify.matchAtStart(e.src.slice(n-i.length)))&&(a=(a=o.url).replace(/\*+$/,""),c=e.md.normalizeLink(a),!!e.md.validateLink(c)&&(t||(e.pending=e.pending.slice(0,-i.length),(s=e.push("link_open","a",1)).attrs=[["href",c]],s.markup="linkify",s.info="auto",(s=e.push("text","",0)).content=e.md.normalizeLinkText(a),(s=e.push("link_close","a",-1)).markup="linkify",s.info="auto"),e.pos+=a.length-i.length,!0)))))))))}],["newline",function(e,t){var n,r,i,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(i=n-1;i>=1&&32===e.pending.charCodeAt(i-1);)i--;e.pending=e.pending.slice(0,i),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(o++;o<r&&BU(e.src.charCodeAt(o));)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r,i,o,a,c=e.pos,s=e.posMax;if(92!==e.src.charCodeAt(c))return!1;if(++c>=s)return!1;if(10===(n=e.src.charCodeAt(c))){for(t||e.push("hardbreak","br",0),c++;c<s&&(n=e.src.charCodeAt(c),qU(n));)c++;return e.pos=c,!0}return o=e.src[c],n>=55296&&n<=56319&&c+1<s&&(r=e.src.charCodeAt(c+1))>=56320&&r<=57343&&(o+=e.src[c+1],c++),i="\\"+o,t||(a=e.push("text_special","",0),n<256&&0!==HU[n]?a.content=o:a.content=i,a.markup=i,a.info="escape"),e.pos=c+1,!0}],["backticks",function(e,t){var n,r,i,o,a,c,s,l,u=e.pos;if(96!==e.src.charCodeAt(u))return!1;for(n=u,u++,r=e.posMax;u<r&&96===e.src.charCodeAt(u);)u++;if(s=(i=e.src.slice(n,u)).length,e.backticksScanned&&(e.backticks[s]||0)<=n)return t||(e.pending+=i),e.pos+=s,!0;for(a=c=u;-1!==(a=e.src.indexOf("`",c));){for(c=a+1;c<r&&96===e.src.charCodeAt(c);)c++;if((l=c-a)===s)return t||((o=e.push("code_inline","code",0)).markup=i,o.content=e.src.slice(u,a).replace(/\n/g," ").replace(/^ (.+) $/,"$1")),e.pos=c,!0;e.backticks[l]=a}return e.backticksScanned=!0,t||(e.pending+=i),e.pos+=s,!0}],["strikethrough",UU.tokenize],["emphasis",GU.tokenize],["link",function(e,t){var n,r,i,o,a,c,s,l,u="",f="",p=e.pos,d=e.posMax,h=e.pos,m=!0;if(91!==e.src.charCodeAt(e.pos))return!1;if(a=e.pos+1,(o=e.md.helpers.parseLinkLabel(e,e.pos,!0))<0)return!1;if((c=o+1)<d&&40===e.src.charCodeAt(c)){for(m=!1,c++;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);if(c>=d)return!1;if(h=c,(s=e.md.helpers.parseLinkDestination(e.src,c,e.posMax)).ok){for(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?c=s.pos:u="",h=c;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);if(s=e.md.helpers.parseLinkTitle(e.src,c,e.posMax),c<d&&h!==c&&s.ok)for(f=s.str,c=s.pos;c<d&&(r=e.src.charCodeAt(c),XU(r)||10===r);c++);}(c>=d||41!==e.src.charCodeAt(c))&&(m=!0),c++}if(m){if(void 0===e.env.references)return!1;if(c<d&&91===e.src.charCodeAt(c)?(h=c+1,(c=e.md.helpers.parseLinkLabel(e,c))>=0?i=e.src.slice(h,c++):c=o+1):c=o+1,i||(i=e.src.slice(a,o)),!(l=e.env.references[YU(i)]))return e.pos=p,!1;u=l.href,f=l.title}return t||(e.pos=a,e.posMax=o,e.push("link_open","a",1).attrs=n=[["href",u]],f&&n.push(["title",f]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)),e.pos=c,e.posMax=d,!0}],["image",function(e,t){var n,r,i,o,a,c,s,l,u,f,p,d,h,m="",v=e.pos,y=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;if(c=e.pos+2,(a=e.md.helpers.parseLinkLabel(e,e.pos+1,!1))<0)return!1;if((s=a+1)<y&&40===e.src.charCodeAt(s)){for(s++;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);if(s>=y)return!1;for(h=s,(u=e.md.helpers.parseLinkDestination(e.src,s,e.posMax)).ok&&(m=e.md.normalizeLink(u.str),e.md.validateLink(m)?s=u.pos:m=""),h=s;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);if(u=e.md.helpers.parseLinkTitle(e.src,s,e.posMax),s<y&&h!==s&&u.ok)for(f=u.str,s=u.pos;s<y&&(r=e.src.charCodeAt(s),KU(r)||10===r);s++);else f="";if(s>=y||41!==e.src.charCodeAt(s))return e.pos=v,!1;s++}else{if(void 0===e.env.references)return!1;if(s<y&&91===e.src.charCodeAt(s)?(h=s+1,(s=e.md.helpers.parseLinkLabel(e,s))>=0?o=e.src.slice(h,s++):s=a+1):s=a+1,o||(o=e.src.slice(c,a)),!(l=e.env.references[ZU(o)]))return e.pos=v,!1;m=l.href,f=l.title}return t||(i=e.src.slice(c,a),e.md.inline.parse(i,e.md,e.env,d=[]),(p=e.push("image","img",0)).attrs=n=[["src",m],["alt",""]],p.children=d,p.content=i,f&&n.push(["title",f])),e.pos=s,e.posMax=y,!0}],["autolink",function(e,t){var n,r,i,o,a,c,s=e.pos;if(60!==e.src.charCodeAt(s))return!1;for(a=e.pos,c=e.posMax;;){if(++s>=c)return!1;if(60===(o=e.src.charCodeAt(s)))return!1;if(62===o)break}return n=e.src.slice(a+1,s),QU.test(n)?(r=e.md.normalizeLink(n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0)):!!JU.test(n)&&(r=e.md.normalizeLink("mailto:"+n),!!e.md.validateLink(r)&&(t||((i=e.push("link_open","a",1)).attrs=[["href",r]],i.markup="autolink",i.info="auto",(i=e.push("text","",0)).content=e.md.normalizeLinkText(n),(i=e.push("link_close","a",-1)).markup="autolink",i.info="auto"),e.pos+=n.length+2,!0))}],["html_inline",function(e,t){var n,r,i,o,a,c=e.pos;return!!e.md.options.html&&(i=e.posMax,!(60!==e.src.charCodeAt(c)||c+2>=i)&&(!(33!==(n=e.src.charCodeAt(c+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(r=e.src.slice(c).match(eW))&&(t||((o=e.push("html_inline","",0)).content=e.src.slice(c,c+r[0].length),a=o.content,/^<a[>\s]/i.test(a)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(o.content)&&e.linkLevel--),e.pos+=r[0].length,!0))))}],["entity",function(e,t){var n,r,i,o=e.pos,a=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1>=a)return!1;if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(oW))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),(i=e.push("text_special","",0)).content=rW(n)?iW(n):iW(65533),i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0}else if((r=e.src.slice(o).match(aW))&&nW(tW,r[1]))return t||((i=e.push("text_special","",0)).content=tW[r[1]],i.markup=r[0],i.info="entity"),e.pos+=r[0].length,!0;return!1}]],vW=[["balance_pairs",function(e){var t,n=e.tokens_meta,r=e.tokens_meta.length;for(cW(0,e.delimiters),t=0;t<r;t++)n[t]&&n[t].delimiters&&cW(0,n[t].delimiters)}],["strikethrough",UU.postProcess],["emphasis",GU.postProcess],["fragments_join",function(e){var t,n,r=0,i=e.tokens,o=e.tokens.length;for(t=n=0;t<o;t++)i[t].nesting<0&&r--,i[t].level=r,i[t].nesting>0&&r++,"text"===i[t].type&&t+1<o&&"text"===i[t+1].type?i[t+1].content=i[t].content+i[t+1].content:(t!==n&&(i[n]=i[t]),n++);t!==n&&(i.length=n)}]];function yW(){var e;for(this.ruler=new hW,e=0;e<mW.length;e++)this.ruler.push(mW[e][0],mW[e][1]);for(this.ruler2=new hW,e=0;e<vW.length;e++)this.ruler2.push(vW[e][0],vW[e][1])}yW.prototype.skipToken=function(e){var t,n,r=e.pos,i=this.ruler.getRules(""),o=i.length,a=e.md.options.maxNesting,c=e.cache;if(void 0===c[r]){if(e.level<a)for(n=0;n<o&&(e.level++,t=i[n](e,!0),e.level--,!t);n++);else e.pos=e.posMax;t||e.pos++,c[r]=e.pos}else e.pos=c[r]},yW.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),i=r.length,o=e.posMax,a=e.md.options.maxNesting;e.pos<o;){if(e.level<a)for(n=0;n<i&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=o)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},yW.prototype.parse=function(e,t,n,r){var i,o,a,c=new this.State(e,t,n,r);for(this.tokenize(c),a=(o=this.ruler2.getRules("")).length,i=0;i<a;i++)o[i](c)},yW.prototype.State=dW;var gW,bW,xW=yW;function wW(){return bW?gW:(bW=1,gW=function(e){var t={};e=e||{},t.src_Any=kV().source,t.src_Cc=SV().source,t.src_Z=EV().source,t.src_P=GH.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t})}function _W(e){return Array.prototype.slice.call(arguments,1).forEach((function(t){t&&Object.keys(t).forEach((function(n){e[n]=t[n]}))})),e}function kW(e){return Object.prototype.toString.call(e)}function SW(e){return"[object Function]"===kW(e)}function EW(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}var OW={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};var AW={"http:":{validate:function(e,t,n){var r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){var r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},CW="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",TW="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function PW(e){var t=e.re=wW()(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push(CW),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");var i=[];function o(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach((function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,function(e){return"[object Object]"===kW(e)}(n))return!function(e){return"[object RegExp]"===kW(e)}(n.validate)?SW(n.validate)?r.validate=n.validate:o(t,n):r.validate=function(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(SW(n.normalize)?r.normalize=n.normalize:n.normalize?o(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===kW(e)}(n)?o(t,n):i.push(t)}})),i.forEach((function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)})),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};var a=Object.keys(e.__compiled__).filter((function(t){return t.length>0&&e.__compiled__[t]})).map(EW).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+a+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function jW(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function DW(e,t){var n=new jW(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function MW(e,t){if(!(this instanceof MW))return new MW(e,t);t||function(e){return Object.keys(e||{}).reduce((function(e,t){return e||OW.hasOwnProperty(t)}),!1)}(e)&&(t=e,e={}),this.__opts__=_W({},OW,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=_W({},AW,e),this.__compiled__={},this.__tlds__=TW,this.__tlds_replaced__=!1,this.re={},PW(this)}MW.prototype.add=function(e,t){return this.__schemas__[e]=t,PW(this),this},MW.prototype.set=function(e){return this.__opts__=_W(this.__opts__,e),this},MW.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,c,s;if(this.re.schema_test.test(e))for((c=this.re.schema_search).lastIndex=0;null!==(t=c.exec(e));)if(i=this.testSchemaAt(e,t[2],c.lastIndex)){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(s=e.search(this.re.host_fuzzy_test))>=0&&(this.__index__<0||s<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(o=n.index+n[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=n.index+n[0].length)),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&e.indexOf("@")>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&a>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a)),this.__index__>=0},MW.prototype.pretest=function(e){return this.re.pretest.test(e)},MW.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},MW.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(DW(this,t)),t=this.__last_index__);for(var r=t?e.slice(t):e;this.test(r);)n.push(DW(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},MW.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;var t=this.re.schema_at_start.exec(e);if(!t)return null;var n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,DW(this,0)):null},MW.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter((function(e,t,n){return e!==n[t-1]})).reverse(),PW(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,PW(this),this)},MW.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},MW.prototype.onCompile=function(){};var NW=MW;const IW=2147483647,RW=36,LW=/^xn--/,zW=/[^\0-\x7E]/,FW=/[\x2E\u3002\uFF0E\uFF61]/g,BW={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},qW=Math.floor,HW=String.fromCharCode;function VW(e){throw new RangeError(BW[e])}function UW(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const i=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(FW,".")).split("."),t).join(".");return r+i}function WW(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&i)<<10)+(1023&r)+65536):(t.push(i),n--)}else t.push(i)}return t}const GW=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},$W=function(e,t,n){let r=0;for(e=n?qW(e/700):e>>1,e+=qW(e/t);e>455;r+=RW)e=qW(e/35);return qW(r+36*e/(e+38))},YW=function(e){const t=[],n=e.length;let r=0,i=128,o=72,a=e.lastIndexOf("-");a<0&&(a=0);for(let n=0;n<a;++n)e.charCodeAt(n)>=128&&VW("not-basic"),t.push(e.charCodeAt(n));for(let s=a>0?a+1:0;s<n;){let a=r;for(let t=1,i=RW;;i+=RW){s>=n&&VW("invalid-input");const a=(c=e.charCodeAt(s++))-48<10?c-22:c-65<26?c-65:c-97<26?c-97:RW;(a>=RW||a>qW((IW-r)/t))&&VW("overflow"),r+=a*t;const l=i<=o?1:i>=o+26?26:i-o;if(a<l)break;const u=RW-l;t>qW(IW/u)&&VW("overflow"),t*=u}const l=t.length+1;o=$W(r-a,l,0==a),qW(r/l)>IW-i&&VW("overflow"),i+=qW(r/l),r%=l,t.splice(r++,0,i)}var c;return String.fromCodePoint(...t)},XW=function(e){const t=[];let n=(e=WW(e)).length,r=128,i=0,o=72;for(const n of e)n<128&&t.push(HW(n));let a=t.length,c=a;for(a&&t.push("-");c<n;){let n=IW;for(const t of e)t>=r&&t<n&&(n=t);const s=c+1;n-r>qW((IW-i)/s)&&VW("overflow"),i+=(n-r)*s,r=n;for(const n of e)if(n<r&&++i>IW&&VW("overflow"),n==r){let e=i;for(let n=RW;;n+=RW){const r=n<=o?1:n>=o+26?26:n-o;if(e<r)break;const i=e-r,a=RW-r;t.push(HW(GW(r+i%a,0))),e=qW(i/a)}t.push(HW(GW(e,0))),o=$W(i,s,c==a),i=0,++c}++i,++r}return t.join("")},ZW={version:"2.1.0",ucs2:{decode:WW,encode:e=>String.fromCodePoint(...e)},decode:YW,encode:XW,toASCII:function(e){return UW(e,(function(e){return zW.test(e)?"xn--"+XW(e):e}))},toUnicode:function(e){return UW(e,(function(e){return LW.test(e)?YW(e.slice(4).toLowerCase()):e}))}};var KW=UH,JW=AV,QW=IV,eG=uU,tG=LU,nG=xW,rG=NW,iG=$H,oG=ZW,aG={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},cG=/^(vbscript|javascript|file|data):/,sG=/^data:image\/(gif|png|jpeg|webp);/;function lG(e){var t=e.trim().toLowerCase();return!cG.test(t)||!!sG.test(t)}var uG=["http:","https:","mailto:"];function fG(e){var t=iG.parse(e,!0);if(t.hostname&&(!t.protocol||uG.indexOf(t.protocol)>=0))try{t.hostname=oG.toASCII(t.hostname)}catch(e){}return iG.encode(iG.format(t))}function pG(e){var t=iG.parse(e,!0);if(t.hostname&&(!t.protocol||uG.indexOf(t.protocol)>=0))try{t.hostname=oG.toUnicode(t.hostname)}catch(e){}return iG.decode(iG.format(t),iG.decode.defaultChars+"%")}function dG(e,t){if(!(this instanceof dG))return new dG(e,t);t||KW.isString(e)||(t=e||{},e="default"),this.inline=new nG,this.block=new tG,this.core=new eG,this.renderer=new QW,this.linkify=new rG,this.validateLink=lG,this.normalizeLink=fG,this.normalizeLinkText=pG,this.utils=KW,this.helpers=KW.assign({},JW),this.options={},this.configure(e),t&&this.set(t)}dG.prototype.set=function(e){return KW.assign(this.options,e),this},dG.prototype.configure=function(e){var t,n=this;if(KW.isString(e)&&!(e=aG[t=e]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name');if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&n.set(e.options),e.components&&Object.keys(e.components).forEach((function(t){e.components[t].rules&&n[t].ruler.enableOnly(e.components[t].rules),e.components[t].rules2&&n[t].ruler2.enableOnly(e.components[t].rules2)})),this},dG.prototype.enable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.enable(e,!0))}),this),n=n.concat(this.inline.ruler2.enable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},dG.prototype.disable=function(e,t){var n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach((function(t){n=n.concat(this[t].ruler.disable(e,!0))}),this),n=n.concat(this.inline.ruler2.disable(e,!0));var r=e.filter((function(e){return n.indexOf(e)<0}));if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},dG.prototype.use=function(e){var t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},dG.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");var n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},dG.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},dG.prototype.parseInline=function(e,t){var n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},dG.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var hG=E(dG),mG={exports:{}},vG={},yG={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(t=e.ElementType||(e.ElementType={})),e.isTag=function(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style},e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype}(yG);var gG={},bG=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),xG=S&&S.__assign||function(){return xG=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},xG.apply(this,arguments)};Object.defineProperty(gG,"__esModule",{value:!0}),gG.cloneNode=gG.hasChildren=gG.isDocument=gG.isDirective=gG.isComment=gG.isText=gG.isCDATA=gG.isTag=gG.Element=gG.Document=gG.CDATA=gG.NodeWithChildren=gG.ProcessingInstruction=gG.Comment=gG.Text=gG.DataNode=gG.Node=void 0;var wG=yG,_G=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),LG(this,e)},e}();gG.Node=_G;var kG=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return bG(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(_G);gG.DataNode=kG;var SG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Text,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(kG);gG.Text=SG;var EG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Comment,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(kG);gG.Comment=EG;var OG=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=wG.ElementType.Directive,r}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(kG);gG.ProcessingInstruction=OG;var AG=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return bG(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(_G);gG.NodeWithChildren=AG;var CG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.CDATA,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(AG);gG.CDATA=CG;var TG=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=wG.ElementType.Root,t}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(AG);gG.Document=TG;var PG=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?wG.ElementType.Script:"style"===t?wG.ElementType.Style:wG.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return bG(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(AG);function jG(e){return(0,wG.isTag)(e)}function DG(e){return e.type===wG.ElementType.CDATA}function MG(e){return e.type===wG.ElementType.Text}function NG(e){return e.type===wG.ElementType.Comment}function IG(e){return e.type===wG.ElementType.Directive}function RG(e){return e.type===wG.ElementType.Root}function LG(e,t){var n;if(void 0===t&&(t=!1),MG(e))n=new SG(e.data);else if(NG(e))n=new EG(e.data);else if(jG(e)){var r=t?zG(e.children):[],i=new PG(e.name,xG({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=xG({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=xG({},e["x-attribsPrefix"])),n=i}else if(DG(e)){r=t?zG(e.children):[];var o=new CG(r);r.forEach((function(e){return e.parent=o})),n=o}else if(RG(e)){r=t?zG(e.children):[];var a=new TG(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!IG(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new OG(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function zG(e){for(var t=e.map((function(e){return LG(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}gG.Element=PG,gG.isTag=jG,gG.isCDATA=DG,gG.isText=MG,gG.isComment=NG,gG.isDirective=IG,gG.isDocument=RG,gG.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},gG.cloneNode=LG,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=yG,i=gG;n(gG,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(vG);var FG={exports:{}},BG={},qG={},HG={},VG={},UG={};Object.defineProperty(UG,"__esModule",{value:!0}),UG.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e){return e.charCodeAt(0)})));var WG={};Object.defineProperty(WG,"__esModule",{value:!0}),WG.default=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e){return e.charCodeAt(0)})));var GG={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.replaceCodePoint=e.fromCodePoint=void 0;var n=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function r(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=n.get(e))&&void 0!==t?t:e}e.fromCodePoint=null!==(t=String.fromCodePoint)&&void 0!==t?t:function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e)},e.replaceCodePoint=r,e.default=function(t){return(0,e.fromCodePoint)(r(t))}}(GG),function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXML=e.decodeHTMLStrict=e.decodeHTML=e.determineBranch=e.BinTrieFlags=e.fromCodePoint=e.replaceCodePoint=e.decodeCodePoint=e.xmlDecodeTree=e.htmlDecodeTree=void 0;var n=t(UG);e.htmlDecodeTree=n.default;var r=t(WG);e.xmlDecodeTree=r.default;var i=t(GG);e.decodeCodePoint=i.default;var o,a,c=GG;function s(e){return function(t,n){for(var r="",c=0,s=0;(s=t.indexOf("&",s))>=0;)if(r+=t.slice(c,s),c=s,s+=1,t.charCodeAt(s)!==o.NUM){for(var u=0,f=1,p=0,d=e[p];s<t.length&&!((p=l(e,d,p+1,t.charCodeAt(s)))<0);s++,f++){var h=(d=e[p])&a.VALUE_LENGTH;if(h){var m;if(n&&t.charCodeAt(s)!==o.SEMI||(u=p,f=0),0===(m=(h>>14)-1))break;p+=m}}if(0!==u)r+=1===(m=(e[u]&a.VALUE_LENGTH)>>14)?String.fromCharCode(e[u]&~a.VALUE_LENGTH):2===m?String.fromCharCode(e[u+1]):String.fromCharCode(e[u+1],e[u+2]),c=s-f+1}else{var v=s+1,y=10,g=t.charCodeAt(v);(g|o.To_LOWER_BIT)===o.LOWER_X&&(y=16,s+=1,v+=1);do{g=t.charCodeAt(++s)}while(g>=o.ZERO&&g<=o.NINE||16===y&&(g|o.To_LOWER_BIT)>=o.LOWER_A&&(g|o.To_LOWER_BIT)<=o.LOWER_F);if(v!==s){var b=t.substring(v,s),x=parseInt(b,y);if(t.charCodeAt(s)===o.SEMI)s+=1;else if(n)continue;r+=(0,i.default)(x),c=s}}return r+t.slice(c)}}function l(e,t,n,r){var i=(t&a.BRANCH_LENGTH)>>7,o=t&a.JUMP_TABLE;if(0===i)return 0!==o&&r===o?n:-1;if(o){var c=r-o;return c<0||c>=i?-1:e[n+c]-1}for(var s=n,l=s+i-1;s<=l;){var u=s+l>>>1,f=e[u];if(f<r)s=u+1;else{if(!(f>r))return e[u+i];l=u-1}}return-1}Object.defineProperty(e,"replaceCodePoint",{enumerable:!0,get:function(){return c.replaceCodePoint}}),Object.defineProperty(e,"fromCodePoint",{enumerable:!0,get:function(){return c.fromCodePoint}}),function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.To_LOWER_BIT=32]="To_LOWER_BIT"}(o||(o={})),function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(a=e.BinTrieFlags||(e.BinTrieFlags={})),e.determineBranch=l;var u=s(n.default),f=s(r.default);e.decodeHTML=function(e){return u(e,!1)},e.decodeHTMLStrict=function(e){return u(e,!0)},e.decodeXML=function(e){return f(e,!0)}}(VG),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.QuoteType=void 0;var t,n,r,i=VG;function o(e){return e===t.Space||e===t.NewLine||e===t.Tab||e===t.FormFeed||e===t.CarriageReturn}function a(e){return e===t.Slash||e===t.Gt||o(e)}function c(e){return e>=t.Zero&&e<=t.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(t||(t={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(n||(n={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(r=e.QuoteType||(e.QuoteType={}));var s={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},l=function(){function e(e,t){var r=e.xmlMode,o=void 0!==r&&r,a=e.decodeEntities,c=void 0===a||a;this.cbs=t,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=o,this.decodeEntities=c,this.entityTrie=o?i.xmlDecodeTree:i.htmlDecodeTree}return e.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},e.prototype.write=function(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()},e.prototype.end=function(){this.running&&this.finish()},e.prototype.pause=function(){this.running=!1},e.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},e.prototype.getIndex=function(){return this.index},e.prototype.getSectionStart=function(){return this.sectionStart},e.prototype.stateText=function(e){e===t.Lt||!this.decodeEntities&&this.fastForwardTo(t.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity)},e.prototype.stateSpecialStartSequence=function(e){var t=this.sequenceIndex===this.currentSequence.length;if(t?a(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(e)},e.prototype.stateInSpecialTag=function(e){if(this.sequenceIndex===this.currentSequence.length){if(e===t.Gt||o(e)){var r=this.index-this.currentSequence.length;if(this.sectionStart<r){var i=this.index;this.index=r,this.cbs.ontext(this.sectionStart,r),this.index=i}return this.isSpecial=!1,this.sectionStart=r+2,void this.stateInClosingTagName(e)}this.sequenceIndex=0}(32|e)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:0===this.sequenceIndex?this.currentSequence===s.TitleEnd?this.decodeEntities&&e===t.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(t.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===t.Lt)},e.prototype.stateCDATASequence=function(e){e===s.Cdata[this.sequenceIndex]?++this.sequenceIndex===s.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=s.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(e))},e.prototype.fastForwardTo=function(e){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===e)return!0;return this.index=this.buffer.length+this.offset-1,!1},e.prototype.stateInCommentLike=function(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):0===this.sequenceIndex?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},e.prototype.isTagStartChar=function(e){return this.xmlMode?!a(e):function(e){return e>=t.LowerA&&e<=t.LowerZ||e>=t.UpperA&&e<=t.UpperZ}(e)},e.prototype.startSpecial=function(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=n.SpecialStartSequence},e.prototype.stateBeforeTagName=function(e){if(e===t.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===t.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){var r=32|e;this.sectionStart=this.index,this.xmlMode||r!==s.TitleEnd[2]?this.state=this.xmlMode||r!==s.ScriptEnd[2]?n.InTagName:n.BeforeSpecialS:this.startSpecial(s.TitleEnd,3)}else e===t.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(e))},e.prototype.stateInTagName=function(e){a(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateBeforeClosingTagName=function(e){o(e)||(e===t.Gt?this.state=n.Text:(this.state=this.isTagStartChar(e)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},e.prototype.stateInClosingTagName=function(e){(e===t.Gt||o(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(e))},e.prototype.stateAfterClosingTagName=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeAttributeName=function(e){e===t.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===t.Slash?this.state=n.InSelfClosingTag:o(e)||(this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateInSelfClosingTag=function(e){e===t.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(e)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e))},e.prototype.stateInAttributeName=function(e){(e===t.Eq||a(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(e))},e.prototype.stateAfterAttributeName=function(e){e===t.Eq?this.state=n.BeforeAttributeValue:e===t.Slash||e===t.Gt?(this.cbs.onattribend(r.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):o(e)||(this.cbs.onattribend(r.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},e.prototype.stateBeforeAttributeValue=function(e){e===t.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):e===t.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(e)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))},e.prototype.handleInAttributeValue=function(e,i){e===i||!this.decodeEntities&&this.fastForwardTo(i)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(i===t.DoubleQuote?r.Double:r.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,t.DoubleQuote)},e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,t.SingleQuote)},e.prototype.stateInAttributeValueNoQuotes=function(e){o(e)||e===t.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(r.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===t.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},e.prototype.stateBeforeDeclaration=function(e){e===t.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=e===t.Dash?n.BeforeComment:n.InDeclaration},e.prototype.stateInDeclaration=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateInProcessingInstruction=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeComment=function(e){e===t.Dash?(this.state=n.InCommentLike,this.currentSequence=s.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},e.prototype.stateInSpecialComment=function(e){(e===t.Gt||this.fastForwardTo(t.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},e.prototype.stateBeforeSpecialS=function(e){var t=32|e;t===s.ScriptEnd[3]?this.startSpecial(s.ScriptEnd,4):t===s.StyleEnd[3]?this.startSpecial(s.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(e))},e.prototype.stateBeforeEntity=function(e){this.entityExcess=1,this.entityResult=0,e===t.Num?this.state=n.BeforeNumericEntity:e===t.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(e))},e.prototype.stateInNamedEntity=function(e){if(this.entityExcess+=1,this.trieIndex=(0,i.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];var n=this.trieCurrent&i.BinTrieFlags.VALUE_LENGTH;if(n){var r=(n>>14)-1;if(this.allowLegacyEntity()||e===t.Semi){var o=this.index-this.entityExcess+1;o>this.sectionStart&&this.emitPartial(this.sectionStart,o),this.entityResult=this.trieIndex,this.trieIndex+=r,this.entityExcess=0,this.sectionStart=this.index+1,0===r&&this.emitNamedEntity()}else this.trieIndex+=r}},e.prototype.emitNamedEntity=function(){if(this.state=this.baseState,0!==this.entityResult)switch((this.entityTrie[this.entityResult]&i.BinTrieFlags.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~i.BinTrieFlags.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}},e.prototype.stateBeforeNumericEntity=function(e){(32|e)===t.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(e))},e.prototype.emitNumericEntity=function(e){var t=this.index-this.entityExcess-1;t+2+Number(this.state===n.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint((0,i.replaceCodePoint)(this.entityResult))),this.state=this.baseState},e.prototype.stateInNumericEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=10*this.entityResult+(e-t.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},e.prototype.stateInHexEntity=function(e){e===t.Semi?this.emitNumericEntity(!0):c(e)?(this.entityResult=16*this.entityResult+(e-t.Zero),this.entityExcess++):!function(e){return e>=t.UpperA&&e<=t.UpperF||e>=t.LowerA&&e<=t.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-t.LowerA+10),this.entityExcess++)},e.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},e.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==n.InAttributeValueDq&&this.state!==n.InAttributeValueSq&&this.state!==n.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},e.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},e.prototype.parse=function(){for(;this.shouldContinue();){var e=this.buffer.charCodeAt(this.index-this.offset);this.state===n.Text?this.stateText(e):this.state===n.SpecialStartSequence?this.stateSpecialStartSequence(e):this.state===n.InSpecialTag?this.stateInSpecialTag(e):this.state===n.CDATASequence?this.stateCDATASequence(e):this.state===n.InAttributeValueDq?this.stateInAttributeValueDoubleQuotes(e):this.state===n.InAttributeName?this.stateInAttributeName(e):this.state===n.InCommentLike?this.stateInCommentLike(e):this.state===n.InSpecialComment?this.stateInSpecialComment(e):this.state===n.BeforeAttributeName?this.stateBeforeAttributeName(e):this.state===n.InTagName?this.stateInTagName(e):this.state===n.InClosingTagName?this.stateInClosingTagName(e):this.state===n.BeforeTagName?this.stateBeforeTagName(e):this.state===n.AfterAttributeName?this.stateAfterAttributeName(e):this.state===n.InAttributeValueSq?this.stateInAttributeValueSingleQuotes(e):this.state===n.BeforeAttributeValue?this.stateBeforeAttributeValue(e):this.state===n.BeforeClosingTagName?this.stateBeforeClosingTagName(e):this.state===n.AfterClosingTagName?this.stateAfterClosingTagName(e):this.state===n.BeforeSpecialS?this.stateBeforeSpecialS(e):this.state===n.InAttributeValueNq?this.stateInAttributeValueNoQuotes(e):this.state===n.InSelfClosingTag?this.stateInSelfClosingTag(e):this.state===n.InDeclaration?this.stateInDeclaration(e):this.state===n.BeforeDeclaration?this.stateBeforeDeclaration(e):this.state===n.BeforeComment?this.stateBeforeComment(e):this.state===n.InProcessingInstruction?this.stateInProcessingInstruction(e):this.state===n.InNamedEntity?this.stateInNamedEntity(e):this.state===n.BeforeEntity?this.stateBeforeEntity(e):this.state===n.InHexEntity?this.stateInHexEntity(e):this.state===n.InNumericEntity?this.stateInNumericEntity(e):this.stateBeforeNumericEntity(e),this.index++}this.cleanup()},e.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},e.prototype.handleTrailingData=function(){var e=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===s.CdataEnd?this.cbs.oncdata(this.sectionStart,e,0):this.cbs.oncomment(this.sectionStart,e,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()||this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,e)},e.prototype.emitPartial=function(e,t){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(e,t):this.cbs.ontext(e,t)},e.prototype.emitCodePoint=function(e){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(e):this.cbs.ontextentity(e)},e}();e.default=l}(HG);var $G=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),YG=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),XG=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&$G(t,e,n);return YG(t,e),t};Object.defineProperty(qG,"__esModule",{value:!0}),qG.Parser=void 0;var ZG=XG(HG),KG=VG,JG=new Set(["input","option","optgroup","select","button","datalist","textarea"]),QG=new Set(["p"]),e$=new Set(["thead","tbody"]),t$=new Set(["dd","dt"]),n$=new Set(["rt","rp"]),r$=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",QG],["h1",QG],["h2",QG],["h3",QG],["h4",QG],["h5",QG],["h6",QG],["select",JG],["input",JG],["output",JG],["button",JG],["datalist",JG],["textarea",JG],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",t$],["dt",t$],["address",QG],["article",QG],["aside",QG],["blockquote",QG],["details",QG],["div",QG],["dl",QG],["fieldset",QG],["figcaption",QG],["figure",QG],["footer",QG],["form",QG],["header",QG],["hr",QG],["main",QG],["nav",QG],["ol",QG],["pre",QG],["section",QG],["table",QG],["ul",QG],["rt",n$],["rp",n$],["tbody",e$],["tfoot",e$]]),i$=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),o$=new Set(["math","svg"]),a$=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),c$=/\s|\//,s$=function(){function e(e,t){var n,r,i,o,a;void 0===t&&(t={}),this.options=t,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=null!=e?e:{},this.lowerCaseTagNames=null!==(n=t.lowerCaseTags)&&void 0!==n?n:!t.xmlMode,this.lowerCaseAttributeNames=null!==(r=t.lowerCaseAttributeNames)&&void 0!==r?r:!t.xmlMode,this.tokenizer=new(null!==(i=t.Tokenizer)&&void 0!==i?i:ZG.default)(this.options,this),null===(a=(o=this.cbs).onparserinit)||void 0===a||a.call(o,this)}return e.prototype.ontext=function(e,t){var n,r,i=this.getSlice(e,t);this.endIndex=t-1,null===(r=(n=this.cbs).ontext)||void 0===r||r.call(n,i),this.startIndex=t},e.prototype.ontextentity=function(e){var t,n,r=this.tokenizer.getSectionStart();this.endIndex=r-1,null===(n=(t=this.cbs).ontext)||void 0===n||n.call(t,(0,KG.fromCodePoint)(e)),this.startIndex=r},e.prototype.isVoidElement=function(e){return!this.options.xmlMode&&i$.has(e)},e.prototype.onopentagname=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},e.prototype.emitOpenTag=function(e){var t,n,r,i;this.openTagStart=this.startIndex,this.tagname=e;var o=!this.options.xmlMode&&r$.get(e);if(o)for(;this.stack.length>0&&o.has(this.stack[this.stack.length-1]);){var a=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,a,!0)}this.isVoidElement(e)||(this.stack.push(e),o$.has(e)?this.foreignContext.push(!0):a$.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})},e.prototype.endOpenTag=function(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},e.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},e.prototype.onclosetag=function(e,t){var n,r,i,o,a,c;this.endIndex=t;var s=this.getSlice(e,t);if(this.lowerCaseTagNames&&(s=s.toLowerCase()),(o$.has(s)||a$.has(s))&&this.foreignContext.pop(),this.isVoidElement(s))this.options.xmlMode||"br"!==s||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(o=(i=this.cbs).onopentag)||void 0===o||o.call(i,"br",{},!0),null===(c=(a=this.cbs).onclosetag)||void 0===c||c.call(a,"br",!1));else{var l=this.stack.lastIndexOf(s);if(-1!==l)if(this.cbs.onclosetag)for(var u=this.stack.length-l;u--;)this.cbs.onclosetag(this.stack.pop(),0!==u);else this.stack.length=l;else this.options.xmlMode||"p"!==s||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1},e.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},e.prototype.closeCurrentTag=function(e){var t,n,r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())},e.prototype.onattribname=function(e,t){this.startIndex=e;var n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},e.prototype.onattribdata=function(e,t){this.attribvalue+=this.getSlice(e,t)},e.prototype.onattribentity=function(e){this.attribvalue+=(0,KG.fromCodePoint)(e)},e.prototype.onattribend=function(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===ZG.QuoteType.Double?'"':e===ZG.QuoteType.Single?"'":e===ZG.QuoteType.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""},e.prototype.getInstructionName=function(e){var t=e.search(c$),n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},e.prototype.ondeclaration=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(r),"!".concat(n))}this.startIndex=t+1},e.prototype.onprocessinginstruction=function(e,t){this.endIndex=t;var n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){var r=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(r),"?".concat(n))}this.startIndex=t+1},e.prototype.oncomment=function(e,t,n){var r,i,o,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(o=this.cbs).oncommentend)||void 0===a||a.call(o),this.startIndex=t+1},e.prototype.oncdata=function(e,t,n){var r,i,o,a,c,s,l,u,f,p;this.endIndex=t;var d=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(o=this.cbs).ontext)||void 0===a||a.call(o,d),null===(s=(c=this.cbs).oncdataend)||void 0===s||s.call(c)):(null===(u=(l=this.cbs).oncomment)||void 0===u||u.call(l,"[CDATA[".concat(d,"]]")),null===(p=(f=this.cbs).oncommentend)||void 0===p||p.call(f)),this.startIndex=t+1},e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)},e.prototype.reset=function(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},e.prototype.parseComplete=function(e){this.reset(),this.end(e)},e.prototype.getSlice=function(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n},e.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},e.prototype.write=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))},e.prototype.end=function(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())},e.prototype.pause=function(){this.tokenizer.pause()},e.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},e.prototype.parseChunk=function(e){this.write(e)},e.prototype.done=function(e){this.end(e)},e}();qG.Parser=s$;var l$={},u$={},f$=S&&S.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),p$=S&&S.__assign||function(){return p$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},p$.apply(this,arguments)};Object.defineProperty(u$,"__esModule",{value:!0}),u$.cloneNode=u$.hasChildren=u$.isDocument=u$.isDirective=u$.isComment=u$.isText=u$.isCDATA=u$.isTag=u$.Element=u$.Document=u$.CDATA=u$.NodeWithChildren=u$.ProcessingInstruction=u$.Comment=u$.Text=u$.DataNode=u$.Node=void 0;var d$=yG,h$=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),T$(this,e)},e}();u$.Node=h$;var m$=function(e){function t(t){var n=e.call(this)||this;return n.data=t,n}return f$(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(h$);u$.DataNode=m$;var v$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Text,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(m$);u$.Text=v$;var y$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Comment,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(m$);u$.Comment=y$;var g$=function(e){function t(t,n){var r=e.call(this,n)||this;return r.name=t,r.type=d$.ElementType.Directive,r}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(m$);u$.ProcessingInstruction=g$;var b$=function(e){function t(t){var n=e.call(this)||this;return n.children=t,n}return f$(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(h$);u$.NodeWithChildren=b$;var x$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.CDATA,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(b$);u$.CDATA=x$;var w$=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=d$.ElementType.Root,t}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(b$);u$.Document=w$;var _$=function(e){function t(t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i="script"===t?d$.ElementType.Script:"style"===t?d$.ElementType.Style:d$.ElementType.Tag);var o=e.call(this,r)||this;return o.name=t,o.attribs=n,o.type=i,o}return f$(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var n,r;return{name:t,value:e.attribs[t],namespace:null===(n=e["x-attribsNamespace"])||void 0===n?void 0:n[t],prefix:null===(r=e["x-attribsPrefix"])||void 0===r?void 0:r[t]}}))},enumerable:!1,configurable:!0}),t}(b$);function k$(e){return(0,d$.isTag)(e)}function S$(e){return e.type===d$.ElementType.CDATA}function E$(e){return e.type===d$.ElementType.Text}function O$(e){return e.type===d$.ElementType.Comment}function A$(e){return e.type===d$.ElementType.Directive}function C$(e){return e.type===d$.ElementType.Root}function T$(e,t){var n;if(void 0===t&&(t=!1),E$(e))n=new v$(e.data);else if(O$(e))n=new y$(e.data);else if(k$(e)){var r=t?P$(e.children):[],i=new _$(e.name,p$({},e.attribs),r);r.forEach((function(e){return e.parent=i})),null!=e.namespace&&(i.namespace=e.namespace),e["x-attribsNamespace"]&&(i["x-attribsNamespace"]=p$({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(i["x-attribsPrefix"]=p$({},e["x-attribsPrefix"])),n=i}else if(S$(e)){r=t?P$(e.children):[];var o=new x$(r);r.forEach((function(e){return e.parent=o})),n=o}else if(C$(e)){r=t?P$(e.children):[];var a=new w$(r);r.forEach((function(e){return e.parent=a})),e["x-mode"]&&(a["x-mode"]=e["x-mode"]),n=a}else{if(!A$(e))throw new Error("Not implemented yet: ".concat(e.type));var c=new g$(e.name,e.data);null!=e["x-name"]&&(c["x-name"]=e["x-name"],c["x-publicId"]=e["x-publicId"],c["x-systemId"]=e["x-systemId"]),n=c}return n.startIndex=e.startIndex,n.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function P$(e){for(var t=e.map((function(e){return T$(e,!0)})),n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}u$.Element=_$,u$.isTag=k$,u$.isCDATA=S$,u$.isText=E$,u$.isComment=O$,u$.isDirective=A$,u$.isDocument=C$,u$.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},u$.cloneNode=T$,function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var r=yG,i=u$;n(u$,e);var o={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=function(){function e(e,t,n){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(n=t,t=o),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:o,this.elementCB=null!=n?n:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new i.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var n=this.options.xmlMode?r.ElementType.Tag:void 0,o=new i.Element(e,t,void 0,n);this.addNode(o),this.tagStack.push(o)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===r.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var n=new i.Text(e);this.addNode(n),this.lastNode=n}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===r.ElementType.Comment)this.lastNode.data+=e;else{var t=new i.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new i.Text(""),t=new i.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var n=new i.ProcessingInstruction(e,t);this.addNode(n)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null},e}();e.DomHandler=a,e.default=a}(l$);var j$={},D$={},M$={},N$={},I$={},R$={};function L$(e){for(var t=1;t<e.length;t++)e[t][0]+=e[t-1][0]+1;return e}Object.defineProperty(R$,"__esModule",{value:!0}),R$.default=new Map(L$([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(L$([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(L$([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(L$([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var z$={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.getCodePoint=e.xmlReplacer=void 0,e.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var t=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);function n(n){for(var r,i="",o=0;null!==(r=e.xmlReplacer.exec(n));){var a=r.index,c=n.charCodeAt(a),s=t.get(c);void 0!==s?(i+=n.substring(o,a)+s,o=a+1):(i+="".concat(n.substring(o,a),"&#x").concat((0,e.getCodePoint)(n,a).toString(16),";"),o=e.xmlReplacer.lastIndex+=Number(55296==(64512&c)))}return i+n.substr(o)}function r(e,t){return function(n){for(var r,i=0,o="";r=e.exec(n);)i!==r.index&&(o+=n.substring(i,r.index)),o+=t.get(r[0].charCodeAt(0)),i=r.index+1;return o+n.substring(i)}}e.getCodePoint=null!=String.prototype.codePointAt?function(e,t){return e.codePointAt(t)}:function(e,t){return 55296==(64512&e.charCodeAt(t))?1024*(e.charCodeAt(t)-55296)+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t)},e.encodeXML=n,e.escape=n,e.escapeUTF8=r(/[&<>'"]/g,t),e.escapeAttribute=r(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),e.escapeText=r(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))}(z$);var F$=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(I$,"__esModule",{value:!0}),I$.encodeNonAsciiHTML=I$.encodeHTML=void 0;var B$=F$(R$),q$=z$,H$=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function V$(e,t){for(var n,r="",i=0;null!==(n=e.exec(t));){var o=n.index;r+=t.substring(i,o);var a=t.charCodeAt(o),c=B$.default.get(a);if("object"==typeof c){if(o+1<t.length){var s=t.charCodeAt(o+1),l="number"==typeof c.n?c.n===s?c.o:void 0:c.n.get(s);if(void 0!==l){r+=l,i=e.lastIndex+=1;continue}}c=c.v}if(void 0!==c)r+=c,i=o+1;else{var u=(0,q$.getCodePoint)(t,o);r+="&#x".concat(u.toString(16),";"),i=e.lastIndex+=Number(u!==a)}}return r+t.substr(i)}I$.encodeHTML=function(e){return V$(H$,e)},I$.encodeNonAsciiHTML=function(e){return V$(q$.xmlReplacer,e)},function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.encodeNonAsciiHTML=e.encodeHTML=e.escapeText=e.escapeAttribute=e.escapeUTF8=e.escape=e.encodeXML=e.encode=e.decodeStrict=e.decode=e.EncodingMode=e.DecodingMode=e.EntityLevel=void 0;var t,n,r,i=VG,o=I$,a=z$;!function(e){e[e.XML=0]="XML",e[e.HTML=1]="HTML"}(t=e.EntityLevel||(e.EntityLevel={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict"}(n=e.DecodingMode||(e.DecodingMode={})),function(e){e[e.UTF8=0]="UTF8",e[e.ASCII=1]="ASCII",e[e.Extensive=2]="Extensive",e[e.Attribute=3]="Attribute",e[e.Text=4]="Text"}(r=e.EncodingMode||(e.EncodingMode={})),e.decode=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Strict?(0,i.decodeHTMLStrict)(e):(0,i.decodeHTML)(e):(0,i.decodeXML)(e)},e.decodeStrict=function(e,r){void 0===r&&(r=t.XML);var o="number"==typeof r?{level:r}:r;return o.level===t.HTML?o.mode===n.Legacy?(0,i.decodeHTML)(e):(0,i.decodeHTMLStrict)(e):(0,i.decodeXML)(e)},e.encode=function(e,n){void 0===n&&(n=t.XML);var i="number"==typeof n?{level:n}:n;return i.mode===r.UTF8?(0,a.escapeUTF8)(e):i.mode===r.Attribute?(0,a.escapeAttribute)(e):i.mode===r.Text?(0,a.escapeText)(e):i.level===t.HTML?i.mode===r.ASCII?(0,o.encodeNonAsciiHTML)(e):(0,o.encodeHTML)(e):(0,a.encodeXML)(e)};var c=z$;Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return c.encodeXML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return c.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return c.escapeUTF8}}),Object.defineProperty(e,"escapeAttribute",{enumerable:!0,get:function(){return c.escapeAttribute}}),Object.defineProperty(e,"escapeText",{enumerable:!0,get:function(){return c.escapeText}});var s=I$;Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return s.encodeNonAsciiHTML}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return s.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return s.encodeHTML}});var l=VG;Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return l.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return l.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return l.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return l.decodeXML}})}(N$);var U$={};Object.defineProperty(U$,"__esModule",{value:!0}),U$.attributeNames=U$.elementNames=void 0,U$.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map((function(e){return[e.toLowerCase(),e]}))),U$.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map((function(e){return[e.toLowerCase(),e]})));var W$=S&&S.__assign||function(){return W$=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W$.apply(this,arguments)},G$=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),$$=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),Y$=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&G$(t,e,n);return $$(t,e),t};Object.defineProperty(M$,"__esModule",{value:!0}),M$.render=void 0;var X$=Y$(yG),Z$=N$,K$=U$,J$=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function Q$(e){return e.replace(/"/g,""")}var eY=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function tY(e,t){void 0===t&&(t={});for(var n=("length"in e?e:[e]),r="",i=0;i<n.length;i++)r+=nY(n[i],t);return r}function nY(e,t){switch(e.type){case X$.Root:return tY(e.children,t);case X$.Doctype:case X$.Directive:return"<".concat(e.data,">");case X$.Comment:return function(e){return"\x3c!--".concat(e.data,"--\x3e")}(e);case X$.CDATA:return function(e){return"<![CDATA[".concat(e.children[0].data,"]]>")}(e);case X$.Script:case X$.Style:case X$.Tag:return function(e,t){var n;"foreign"===t.xmlMode&&(e.name=null!==(n=K$.elementNames.get(e.name))&&void 0!==n?n:e.name,e.parent&&rY.has(e.parent.name)&&(t=W$(W$({},t),{xmlMode:!1})));!t.xmlMode&&iY.has(e.name)&&(t=W$(W$({},t),{xmlMode:"foreign"}));var r="<".concat(e.name),i=function(e,t){var n;if(e){var r=!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)?Q$:t.xmlMode||"utf8"!==t.encodeEntities?Z$.encodeXML:Z$.escapeAttribute;return Object.keys(e).map((function(n){var i,o,a=null!==(i=e[n])&&void 0!==i?i:"";return"foreign"===t.xmlMode&&(n=null!==(o=K$.attributeNames.get(n))&&void 0!==o?o:n),t.emptyAttrs||t.xmlMode||""!==a?"".concat(n,'="').concat(r(a),'"'):n})).join(" ")}}(e.attribs,t);i&&(r+=" ".concat(i));0===e.children.length&&(t.xmlMode?!1!==t.selfClosingTags:t.selfClosingTags&&eY.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=tY(e.children,t)),!t.xmlMode&&eY.has(e.name)||(r+="</".concat(e.name,">")));return r}(e,t);case X$.Text:return function(e,t){var n,r=e.data||"";!1===(null!==(n=t.encodeEntities)&&void 0!==n?n:t.decodeEntities)||!t.xmlMode&&e.parent&&J$.has(e.parent.name)||(r=t.xmlMode||"utf8"!==t.encodeEntities?(0,Z$.encodeXML)(r):(0,Z$.escapeText)(r));return r}(e,t)}}M$.render=tY,M$.default=tY;var rY=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),iY=new Set(["svg","math"]);var oY=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(D$,"__esModule",{value:!0}),D$.innerText=D$.textContent=D$.getText=D$.getInnerHTML=D$.getOuterHTML=void 0;var aY=l$,cY=oY(M$),sY=yG;function lY(e,t){return(0,cY.default)(e,t)}D$.getOuterHTML=lY,D$.getInnerHTML=function(e,t){return(0,aY.hasChildren)(e)?e.children.map((function(e){return lY(e,t)})).join(""):""},D$.getText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.isTag)(t)?"br"===t.name?"\n":e(t.children):(0,aY.isCDATA)(t)?e(t.children):(0,aY.isText)(t)?t.data:""},D$.textContent=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.hasChildren)(t)&&!(0,aY.isComment)(t)?e(t.children):(0,aY.isText)(t)?t.data:""},D$.innerText=function e(t){return Array.isArray(t)?t.map(e).join(""):(0,aY.hasChildren)(t)&&(t.type===sY.ElementType.Tag||(0,aY.isCDATA)(t))?e(t.children):(0,aY.isText)(t)?t.data:""};var uY={};Object.defineProperty(uY,"__esModule",{value:!0}),uY.prevElementSibling=uY.nextElementSibling=uY.getName=uY.hasAttrib=uY.getAttributeValue=uY.getSiblings=uY.getParent=uY.getChildren=void 0;var fY=l$;function pY(e){return(0,fY.hasChildren)(e)?e.children:[]}function dY(e){return e.parent||null}uY.getChildren=pY,uY.getParent=dY,uY.getSiblings=function(e){var t=dY(e);if(null!=t)return pY(t);for(var n=[e],r=e.prev,i=e.next;null!=r;)n.unshift(r),r=r.prev;for(;null!=i;)n.push(i),i=i.next;return n},uY.getAttributeValue=function(e,t){var n;return null===(n=e.attribs)||void 0===n?void 0:n[t]},uY.hasAttrib=function(e,t){return null!=e.attribs&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&null!=e.attribs[t]},uY.getName=function(e){return e.name},uY.nextElementSibling=function(e){for(var t=e.next;null!==t&&!(0,fY.isTag)(t);)t=t.next;return t},uY.prevElementSibling=function(e){for(var t=e.prev;null!==t&&!(0,fY.isTag)(t);)t=t.prev;return t};var hY={};function mY(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}Object.defineProperty(hY,"__esModule",{value:!0}),hY.prepend=hY.prependChild=hY.append=hY.appendChild=hY.replaceElement=hY.removeElement=void 0,hY.removeElement=mY,hY.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var r=t.next=e.next;r&&(r.prev=t);var i=t.parent=e.parent;if(i){var o=i.children;o[o.lastIndexOf(e)]=t,e.parent=null}},hY.appendChild=function(e,t){if(mY(t),t.next=null,t.parent=e,e.children.push(t)>1){var n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null},hY.append=function(e,t){mY(t);var n=e.parent,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){var i=n.children;i.splice(i.lastIndexOf(r),0,t)}}else n&&n.children.push(t)},hY.prependChild=function(e,t){if(mY(t),t.parent=e,t.prev=null,1!==e.children.unshift(t)){var n=e.children[1];n.prev=t,t.next=n}else t.next=null},hY.prepend=function(e,t){mY(t);var n=e.parent;if(n){var r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t};var vY={};Object.defineProperty(vY,"__esModule",{value:!0}),vY.findAll=vY.existsOne=vY.findOne=vY.findOneChild=vY.find=vY.filter=void 0;var yY=l$;function gY(e,t,n,r){for(var i=[],o=0,a=t;o<a.length;o++){var c=a[o];if(e(c)&&(i.push(c),--r<=0))break;if(n&&(0,yY.hasChildren)(c)&&c.children.length>0){var s=gY(e,c.children,n,r);if(i.push.apply(i,s),(r-=s.length)<=0)break}}return i}vY.filter=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),Array.isArray(t)||(t=[t]),gY(e,t,n,r)},vY.find=gY,vY.findOneChild=function(e,t){return t.find(e)},vY.findOne=function e(t,n,r){void 0===r&&(r=!0);for(var i=null,o=0;o<n.length&&!i;o++){var a=n[o];(0,yY.isTag)(a)&&(t(a)?i=a:r&&a.children.length>0&&(i=e(t,a.children,!0)))}return i},vY.existsOne=function e(t,n){return n.some((function(n){return(0,yY.isTag)(n)&&(t(n)||n.children.length>0&&e(t,n.children))}))},vY.findAll=function(e,t){for(var n,r,i=[],o=t.filter(yY.isTag);r=o.shift();){var a=null===(n=r.children)||void 0===n?void 0:n.filter(yY.isTag);a&&a.length>0&&o.unshift.apply(o,a),e(r)&&i.push(r)}return i};var bY={};Object.defineProperty(bY,"__esModule",{value:!0}),bY.getElementsByTagType=bY.getElementsByTagName=bY.getElementById=bY.getElements=bY.testElement=void 0;var xY=l$,wY=vY,_Y={tag_name:function(e){return"function"==typeof e?function(t){return(0,xY.isTag)(t)&&e(t.name)}:"*"===e?xY.isTag:function(t){return(0,xY.isTag)(t)&&t.name===e}},tag_type:function(e){return"function"==typeof e?function(t){return e(t.type)}:function(t){return t.type===e}},tag_contains:function(e){return"function"==typeof e?function(t){return(0,xY.isText)(t)&&e(t.data)}:function(t){return(0,xY.isText)(t)&&t.data===e}}};function kY(e,t){return"function"==typeof t?function(n){return(0,xY.isTag)(n)&&t(n.attribs[e])}:function(n){return(0,xY.isTag)(n)&&n.attribs[e]===t}}function SY(e,t){return function(n){return e(n)||t(n)}}function EY(e){var t=Object.keys(e).map((function(t){var n=e[t];return Object.prototype.hasOwnProperty.call(_Y,t)?_Y[t](n):kY(t,n)}));return 0===t.length?null:t.reduce(SY)}bY.testElement=function(e,t){var n=EY(e);return!n||n(t)},bY.getElements=function(e,t,n,r){void 0===r&&(r=1/0);var i=EY(e);return i?(0,wY.filter)(i,t,n,r):[]},bY.getElementById=function(e,t,n){return void 0===n&&(n=!0),Array.isArray(t)||(t=[t]),(0,wY.findOne)(kY("id",e),t,n)},bY.getElementsByTagName=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,wY.filter)(_Y.tag_name(e),t,n,r)},bY.getElementsByTagType=function(e,t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=1/0),(0,wY.filter)(_Y.tag_type(e),t,n,r)};var OY={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.uniqueSort=e.compareDocumentPosition=e.DocumentPosition=e.removeSubsets=void 0;var t,n=l$;function r(e,r){var i=[],o=[];if(e===r)return 0;for(var a=(0,n.hasChildren)(e)?e:e.parent;a;)i.unshift(a),a=a.parent;for(a=(0,n.hasChildren)(r)?r:r.parent;a;)o.unshift(a),a=a.parent;for(var c=Math.min(i.length,o.length),s=0;s<c&&i[s]===o[s];)s++;if(0===s)return t.DISCONNECTED;var l=i[s-1],u=l.children,f=i[s],p=o[s];return u.indexOf(f)>u.indexOf(p)?l===r?t.FOLLOWING|t.CONTAINED_BY:t.FOLLOWING:l===e?t.PRECEDING|t.CONTAINS:t.PRECEDING}e.removeSubsets=function(e){for(var t=e.length;--t>=0;){var n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0)e.splice(t,1);else for(var r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e},function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"}(t=e.DocumentPosition||(e.DocumentPosition={})),e.compareDocumentPosition=r,e.uniqueSort=function(e){return e=e.filter((function(e,t,n){return!n.includes(e,t+1)})),e.sort((function(e,n){var i=r(e,n);return i&t.PRECEDING?-1:i&t.FOLLOWING?1:0})),e}}(OY);var AY={};Object.defineProperty(AY,"__esModule",{value:!0}),AY.getFeed=void 0;var CY=D$,TY=bY;AY.getFeed=function(e){var t=MY(RY,e);return t?"feed"===t.name?function(e){var t,n=e.children,r={type:"atom",items:(0,TY.getElementsByTagName)("entry",n).map((function(e){var t,n=e.children,r={media:DY(n)};IY(r,"id","id",n),IY(r,"title","title",n);var i=null===(t=MY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);var o=NY("summary",n)||NY("content",n);o&&(r.description=o);var a=NY("updated",n);return a&&(r.pubDate=new Date(a)),r}))};IY(r,"id","id",n),IY(r,"title","title",n);var i=null===(t=MY("link",n))||void 0===t?void 0:t.attribs.href;i&&(r.link=i);IY(r,"description","subtitle",n);var o=NY("updated",n);o&&(r.updated=new Date(o));return IY(r,"author","email",n,!0),r}(t):function(e){var t,n,r=null!==(n=null===(t=MY("channel",e.children))||void 0===t?void 0:t.children)&&void 0!==n?n:[],i={type:e.name.substr(0,3),id:"",items:(0,TY.getElementsByTagName)("item",e.children).map((function(e){var t=e.children,n={media:DY(t)};IY(n,"id","guid",t),IY(n,"title","title",t),IY(n,"link","link",t),IY(n,"description","description",t);var r=NY("pubDate",t);return r&&(n.pubDate=new Date(r)),n}))};IY(i,"title","title",r),IY(i,"link","link",r),IY(i,"description","description",r);var o=NY("lastBuildDate",r);o&&(i.updated=new Date(o));return IY(i,"author","managingEditor",r,!0),i}(t):null};var PY=["url","type","lang"],jY=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function DY(e){return(0,TY.getElementsByTagName)("media:content",e).map((function(e){for(var t=e.attribs,n={medium:t.medium,isDefault:!!t.isDefault},r=0,i=PY;r<i.length;r++){t[c=i[r]]&&(n[c]=t[c])}for(var o=0,a=jY;o<a.length;o++){var c;t[c=a[o]]&&(n[c]=parseInt(t[c],10))}return t.expression&&(n.expression=t.expression),n}))}function MY(e,t){return(0,TY.getElementsByTagName)(e,t,!0,1)[0]}function NY(e,t,n){return void 0===n&&(n=!1),(0,CY.textContent)((0,TY.getElementsByTagName)(e,t,n,1)).trim()}function IY(e,t,n,r,i){void 0===i&&(i=!1);var o=NY(n,r,i);o&&(e[t]=o)}function RY(e){return"rss"===e||"feed"===e||"rdf:RDF"===e}!function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.hasChildren=e.isDocument=e.isComment=e.isText=e.isCDATA=e.isTag=void 0,n(D$,e),n(uY,e),n(hY,e),n(vY,e),n(bY,e),n(OY,e),n(AY,e);var r=l$;Object.defineProperty(e,"isTag",{enumerable:!0,get:function(){return r.isTag}}),Object.defineProperty(e,"isCDATA",{enumerable:!0,get:function(){return r.isCDATA}}),Object.defineProperty(e,"isText",{enumerable:!0,get:function(){return r.isText}}),Object.defineProperty(e,"isComment",{enumerable:!0,get:function(){return r.isComment}}),Object.defineProperty(e,"isDocument",{enumerable:!0,get:function(){return r.isDocument}}),Object.defineProperty(e,"hasChildren",{enumerable:!0,get:function(){return r.hasChildren}})}(j$),function(e){var t=S&&S.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=S&&S.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=S&&S.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var i in e)"default"!==i&&Object.prototype.hasOwnProperty.call(e,i)&&t(r,e,i);return n(r,e),r},i=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.DefaultHandler=e.DomUtils=e.parseFeed=e.getFeed=e.ElementType=e.Tokenizer=e.createDomStream=e.parseDOM=e.parseDocument=e.DomHandler=e.Parser=void 0;var o=qG;Object.defineProperty(e,"Parser",{enumerable:!0,get:function(){return o.Parser}});var a=l$;function c(e,t){var n=new a.DomHandler(void 0,t);return new o.Parser(n,t).end(e),n.root}function s(e,t){return c(e,t).children}Object.defineProperty(e,"DomHandler",{enumerable:!0,get:function(){return a.DomHandler}}),Object.defineProperty(e,"DefaultHandler",{enumerable:!0,get:function(){return a.DomHandler}}),e.parseDocument=c,e.parseDOM=s,e.createDomStream=function(e,t,n){var r=new a.DomHandler(e,t,n);return new o.Parser(r,t)};var l=HG;Object.defineProperty(e,"Tokenizer",{enumerable:!0,get:function(){return i(l).default}});var u=r(yG);e.ElementType=u;var f=j$;Object.defineProperty(e,"getFeed",{enumerable:!0,get:function(){return f.getFeed}}),e.parseFeed=function(e,t){return void 0===t&&(t={xmlMode:!0}),(0,f.getFeed)(s(e,t))},e.DomUtils=r(j$)}(BG);var LY=BG.Parser,zY=l$.DomHandler,FY=function(e){for(var t=0,n=e.length;t<n;t++){e[t].parent=null}return e};var BY=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string.");if(""===e)return[];var n=new zY(void 0,t);return new LY(n,t).end(e),FY(n.dom)};FG.exports=BY,FG.exports.default=BY;var qY=FG.exports,HY={},VY={};VY.SAME=0;function UY(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){c=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return WY(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WY(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 WY(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}VY.CAMELCASE=1,VY.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},Object.defineProperty(HY,"__esModule",{value:!0});function GY(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var $Y={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((function(e){$Y[e]=new GY(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=UY(e,2),n=t[0],r=t[1];$Y[n]=new GY(n,1,!1,r,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$Y[e]=new GY(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$Y[e]=new GY(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"].forEach((function(e){$Y[e]=new GY(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$Y[e]=new GY(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){$Y[e]=new GY(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){$Y[e]=new GY(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){$Y[e]=new GY(e,5,!1,e.toLowerCase(),null,!1,!1)}));var YY=/[\-\:]([a-z])/g,XY=function(e){return e[1].toUpperCase()};["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"].forEach((function(e){var t=e.replace(YY,XY);$Y[t]=new GY(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((function(e){var t=e.replace(YY,XY);$Y[t]=new GY(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(YY,XY);$Y[t]=new GY(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){$Y[e]=new GY(e,1,!1,e.toLowerCase(),null,!1,!1)}));$Y.xlinkHref=new GY("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){$Y[e]=new GY(e,1,!1,e.toLowerCase(),null,!0,!0)}));var ZY=VY,KY=ZY.CAMELCASE,JY=ZY.SAME,QY=ZY.possibleStandardNames,eX=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),tX=Object.keys(QY).reduce((function(e,t){var n=QY[t];return n===JY?e[t]=t:n===KY?e[t.toLowerCase()]=t:e[t]=n,e}),{});HY.BOOLEAN=3,HY.BOOLEANISH_STRING=2,HY.NUMERIC=5,HY.OVERLOADED_BOOLEAN=4,HY.POSITIVE_NUMERIC=6,HY.RESERVED=0,HY.STRING=1,HY.getPropertyInfo=function(e){return $Y.hasOwnProperty(e)?$Y[e]:null},HY.isCustomAttribute=eX,HY.possibleStandardNames=tX;var nX={},rX={exports:{}},iX=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,oX=/\n/g,aX=/^\s*/,cX=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,sX=/^:\s*/,lX=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,uX=/^[;\s]*/,fX=/^\s+|\s+$/g,pX="";function dX(e){return e?e.replace(fX,pX):pX}var hX=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(e){var t=e.match(oX);t&&(n+=t.length);var i=e.lastIndexOf("\n");r=~i?e.length-i:r+e.length}function o(){var e={line:n,column:r};return function(t){return t.position=new a(e),l(),t}}function a(e){this.start=e,this.end={line:n,column:r},this.source=t.source}function c(i){var o=new Error(t.source+":"+n+":"+r+": "+i);if(o.reason=i,o.filename=t.source,o.line=n,o.column=r,o.source=e,!t.silent)throw o}function s(t){var n=t.exec(e);if(n){var r=n[0];return i(r),e=e.slice(r.length),n}}function l(){s(aX)}function u(e){var t;for(e=e||[];t=f();)!1!==t&&e.push(t);return e}function f(){var t=o();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;pX!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,pX===e.charAt(n-1))return c("End of comment missing");var a=e.slice(2,n-2);return r+=2,i(a),e=e.slice(n),r+=2,t({type:"comment",comment:a})}}function p(){var e=o(),t=s(cX);if(t){if(f(),!s(sX))return c("property missing ':'");var n=s(lX),r=e({type:"declaration",property:dX(t[0].replace(iX,pX)),value:n?dX(n[0].replace(iX,pX)):pX});return s(uX),r}}return a.prototype.content=e,l(),function(){var e,t=[];for(u(t);e=p();)!1!==e&&(t.push(e),u(t));return t}()};function mX(e,t){var n,r=null;if(!e||"string"!=typeof e)return r;for(var i,o,a=hX(e),c="function"==typeof t,s=0,l=a.length;s<l;s++)i=(n=a[s]).property,o=n.value,c?t(i,o,n):o&&(r||(r={}),r[i]=o);return r}rX.exports=mX,rX.exports.default=mX;var vX=rX.exports,yX={__esModule:!0,camelCase:void 0},gX=/^--[a-zA-Z0-9-]+$/,bX=/-([a-z])/g,xX=/^[^-]+$/,wX=/^-(webkit|moz|ms|o|khtml)-/,_X=/^-(ms)-/,kX=function(e,t){return t.toUpperCase()},SX=function(e,t){return"".concat(t,"-")};yX.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||xX.test(e)||gX.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(_X,SX):e.replace(wX,SX)).replace(bX,kX))},function(e){var t=S&&S.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};e.__esModule=!0;var n=t(vX),r=yX;e.default=function(e,t){var i={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)})),i):i}}(nX);var EX=nX.default;var OX={reactCompat:!0};var AX=e.version.split(".")[0]>=16,CX=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var TX={PRESERVE_CUSTOM_ATTRIBUTES:AX,invertObject:function(e,t){if(!e||"object"!=typeof e)throw new TypeError("First argument must be an object");var n,r,i="function"==typeof t,o={},a={};for(n in e)r=e[n],i&&(o=t(n,r))&&2===o.length?a[o[0]]=o[1]:"string"==typeof r&&(a[r]=n);return a},isCustomComponent:function(e,t){if(-1===e.indexOf("-"))return t&&"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}},setStyleProp:function(e,t){if(null!=e)try{t.style=EX(e,OX)}catch(e){t.style={}}},canTextBeChildOfNode:function(e){return!CX.has(e.name)},elementsWithNoTextChildren:CX},PX=HY,jX=TX,DX=function(e,t){var n,r,i,o,a,c={},s=(e=e||{}).type&&{reset:!0,submit:!0}[e.type];for(n in e)if(i=e[n],PX.isCustomAttribute(n))c[n]=i;else if(o=MX(r=n.toLowerCase()))switch(a=PX.getPropertyInfo(o),"checked"!==o&&"value"!==o||"option"===t||s||(o=MX("default"+r)),c[o]=i,a&&a.type){case PX.BOOLEAN:c[o]=!0;break;case PX.OVERLOADED_BOOLEAN:""===i&&(c[o]=!0)}else jX.PRESERVE_CUSTOM_ATTRIBUTES&&(c[n]=i);return jX.setStyleProp(e.style,c),c};function MX(e){return PX.possibleStandardNames[e]}var NX=e,IX=DX,RX=TX,LX=RX.setStyleProp,zX=RX.canTextBeChildOfNode;function FX(e){return RX.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&RX.isCustomComponent(e.name,e.attribs)}var BX=function e(t,n){for(var r,i,o,a,c,s=(n=n||{}).library||NX,l=s.cloneElement,u=s.createElement,f=s.isValidElement,p=[],d="function"==typeof n.replace,h=n.trim,m=0,v=t.length;m<v;m++)if(r=t[m],d&&f(o=n.replace(r)))v>1&&(o=l(o,{key:o.key||m})),p.push(o);else if("text"!==r.type){switch(a=r.attribs,FX(r)?LX(a.style,a):a&&(a=IX(a,r.name)),c=null,r.type){case"script":case"style":r.children[0]&&(a.dangerouslySetInnerHTML={__html:r.children[0].data});break;case"tag":"textarea"===r.name&&r.children[0]?a.defaultValue=r.children[0].data:r.children&&r.children.length&&(c=e(r.children,n));break;default:continue}v>1&&(a.key=m),p.push(u(r.name,a,c))}else{if((i=!r.data.trim().length)&&r.parent&&!zX(r.parent))continue;if(h&&i)continue;p.push(r.data)}return 1===p.length?p[0]:p},qX=vG,HX=qY,VX=DX,UX=BX;HX="function"==typeof HX.default?HX.default:HX;var WX={lowerCaseAttributeNames:!1};function GX(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return""===e?[]:UX(HX(e,(t=t||{}).htmlparser2||WX),t)}GX.domToReact=UX,GX.htmlToDOM=HX,GX.attributesToProps=VX,GX.Comment=qX.Comment,GX.Element=qX.Element,GX.ProcessingInstruction=qX.ProcessingInstruction,GX.Text=qX.Text,mG.exports=GX,mG.exports.default=GX;var $X=E(mG.exports);function YX(t){var n,r,i,o=new hG;i=null==(i=t.inline?o.renderInline(null!==(n=t.text)&&void 0!==n?n:""):o.render(null!==(r=t.text)&&void 0!==r?r:""))?void 0:i.trim();var a=$X(i,{replace:function(e){var t=e;"a"===t.name&&(t.attribs.target="_blank")}});return e.createElement(e.Fragment,null,a)}$X.domToReact,$X.htmlToDOM,$X.attributesToProps,$X.Comment,$X.Element,$X.ProcessingInstruction,$X.Text;function XX(t){return e.createElement(dr,{colorScheme:"light",className:"mdhui-step-container",bodyBackgroundColor:"#FFFFFF"},t.children)}function ZX(e){return{textAlign:e.textAlign,color:e.color,fontSize:e.fontSize?"".concat(e.fontSize,"px"):void 0,fontWeight:e.fontWeight,backgroundImage:""}}_(".mdhui-step-container {\n background-color: #FFFFFF;\n}\n\n.mdhui-step-container div,\n.mdhui-step-container dl,\n.mdhui-step-container dt,\n.mdhui-step-container dd,\n.mdhui-step-container ul,\n.mdhui-step-container ol,\n.mdhui-step-container li,\n.mdhui-step-container h1,\n.mdhui-step-container h2,\n.mdhui-step-container h3,\n.mdhui-step-container h4,\n.mdhui-step-container h5,\n.mdhui-step-container h6,\n.mdhui-step-container pre,\n.mdhui-step-container form,\n.mdhui-step-container fieldset,\n.mdhui-step-container input,\n.mdhui-step-container textarea,\n.mdhui-step-container p,\n.mdhui-step-container blockquote,\n.mdhui-step-container th,\n.mdhui-step-container td {\n margin: 0;\n padding: 0;\n}\n\n.mdhui-step-container a {\n color: var(--mdhui-color-primary);\n text-decoration: none;\n}\n\n.mdhui-step-container ol {\n list-style-type: decimal;\n white-space: normal;\n list-style-position: inside;\n}\n\n.mdhui-step-container ul {\n list-style-type: disc;\n text-align: left;\n display: block;\n margin-inline-start: 0px;\n margin-inline-end: 0px;\n padding-inline-start: 40px;\n white-space: normal;\n}\n\n.mdhui-step-container ul ul {\n list-style-type: circle;\n}\n\n.mdhui-step-container ul ul ul {\n list-style-type: square;\n}");function KX(t){return t.text?e.createElement("div",{className:"mdhui-step-title",style:ZX(t)},e.createElement(YX,{text:t.text,inline:!0})):null}_(".mdhui-step-container .mdhui-step-title {\n text-align: center;\n font-size: 1.7em;\n line-height: 1.2em;\n font-weight: normal;\n margin-top: 20px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n position: relative;\n display: block;\n}");function JX(t){return t.text?e.createElement("div",{className:"mdhui-step-text",style:ZX(t)},e.createElement(YX,{text:t.text})):null}_(".mdhui-step-container .mdhui-step-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px; \n white-space: pre-line;\n}");function QX(t){return t.text?e.createElement("div",{className:"mdhui-step-detail-text",style:ZX(t)},e.createElement(YX,{text:t.text})):null}_(".mdhui-step-container .mdhui-step-detail-text {\n font-size: 1em;\n line-height: 1.3em;\n text-align: center;\n margin-top: 15px;\n margin-bottom: 15px;\n margin-left: 20px;\n margin-right: 20px;\n white-space: pre-line;\n}");function eZ(t){var n=ZX(t);if(t.gradient){var r="LeftToRight"===t.gradient.direction?"linear-gradient(to right, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)"):"linear-gradient(to bottom, ".concat(t.gradient.startColor," 0%, ").concat(t.gradient.endColor," 100%)");n.backgroundImage=r}n.letterSpacing=t.letterSpacing,n.textTransform=t.textTransform,n.backgroundColor=t.backgroundColor;var i=t.text?t.text:br["next-button-text"];return e.createElement("button",{className:"mdhui-step-next-button",style:n,onClick:t.onClick},i)}_(".mdhui-step-container .mdhui-step-next-button {\n margin: 20px;\n padding: 16px;\n background: var(--mdhui-color-primary);\n font-size: 1em;\n color: #FFF;\n font-weight: bold;\n border: solid 1px var(--mdhui-color-primary);\n border-radius: 5px;\n cursor: pointer;\n width: calc(100% - 40px);\n box-sizing: border-box;\n text-align: center;\n display: inline-block;\n}");function tZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image"},e.createElement("img",{src:t.srcUrl})):null}_(".mdhui-step-container .mdhui-step-image {\n text-align: center;\n}\n.mdhui-step-container .mdhui-step-image img {\n width: 100%;\n padding: 0;\n margin: 0;\n padding-top: 40px;\n padding-bottom: 40px;\n}");function nZ(t){return t.srcUrl?e.createElement("div",{className:"mdhui-step-image-icon"},e.createElement("img",{src:t.srcUrl})):null}function rZ(t){var n,r=(t.height?t.height:"225")+"px",i=b.getCurrentLanguage();return e.createElement(XX,null,e.createElement(KX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(JX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement("div",{style:{textAlign:"center",width:"100%"}},e.createElement("iframe",{style:{width:"100%",height:r,border:0},src:"https://www.youtube.com/embed/".concat(t.videoId,"?rel=").concat(0,"&cc_lang_pref=").concat(i,"&controls=").concat(1,"&autoplay=").concat(0,"&fs=").concat(1,"&modestbranding=").concat(1),title:"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; fullscreen",allowFullScreen:!0})),e.createElement(QX,{text:t.transcript,textAlign:t.styles.detailTextAlignment,color:t.styles.detailTextColor,fontSize:t.styles.detailTextFontSize,fontWeight:t.styles.detailTextFontWeight}),e.createElement(eZ,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function iZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(""),d=p[0],h=p[1],m=s(),v=m[0],y=m[1],g=s(),x=g[0],w=g[1],_=s({}),k=_[0],S=_[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.transcript),h(e.properties.videoId),y(e.properties.nextButtonText),w(e.properties.height),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(rZ,{title:n,text:o,transcript:u,nextButtonText:v,height:x,videoId:d,styles:k})}_(".mdhui-step-container .mdhui-step-image-icon {\n text-align: center;\n}\n\n.mdhui-step-container .mdhui-step-image-icon img {\n max-width: 100%;\n max-height: 60px;\n padding: 0;\n margin: 0;\n padding-top: 50px;\n}");var oZ=150,aZ=2,cZ=["DodgerBlue","OliveDrab","Gold","Pink","SlateBlue","LightBlue","Violet","PaleGreen","SteelBlue","SandyBrown","Chocolate","Crimson"],sZ=!1,lZ=null,uZ=[],fZ=0;function pZ(e,t,n){return e.color=cZ[Math.random()*cZ.length|0],e.x=Math.random()*t,e.y=Math.random()*n-n,e.diameter=10*Math.random()+5,e.tilt=10*Math.random()-10,e.tiltAngleIncrement=.07*Math.random()+.05,e.tiltAngle=0,e}function dZ(){var e=window.innerWidth,t=window.innerHeight,n=window.requestAnimationFrame||function(e){return window.setTimeout(e,16.6666667)},r=document.getElementById("confetti-canvas");null===r&&((r=document.createElement("canvas")).setAttribute("id","confetti-canvas"),r.setAttribute("style","display:block;z-index:999999;pointer-events:none;position:fixed;top:0"),document.body.prepend(r),r.width=e,r.height=t,window.addEventListener("resize",(function(){r.width=window.innerWidth,r.height=window.innerHeight}),!0));for(var i=r.getContext("2d");uZ.length<oZ;)uZ.push(pZ({color:"",x:0,y:0,diameter:0,tilt:0,tiltAngleIncrement:0,tiltAngle:0},e,t));sZ=!0,null===lZ&&function e(){null==i||i.clearRect(0,0,window.innerWidth,window.innerHeight),0===uZ.length?lZ=null:(!function(){var e,t=window.innerWidth,n=window.innerHeight;fZ+=.01;for(var r=0;r<uZ.length;r++)e=uZ[r],!sZ&&e.y<-15?e.y=n+100:(e.tiltAngle+=e.tiltAngleIncrement,e.x+=Math.sin(fZ),e.y+=.5*(Math.cos(fZ)+e.diameter+aZ),e.tilt=15*Math.sin(e.tiltAngle)),(e.x>t+20||e.x<-20||e.y>n)&&(sZ&&uZ.length<=oZ?pZ(e,t,n):(uZ.splice(r,1),r--))}(),function(e){if(e)for(var t,n,r=0;r<uZ.length;r++)t=uZ[r],e.beginPath(),e.lineWidth=t.diameter,e.strokeStyle=t.color,n=t.x+t.tilt,e.moveTo(n+t.diameter/2,t.y),e.lineTo(n,t.y+t.tilt+t.diameter/2),e.stroke()}(i),lZ=n(e))}()}function hZ(t){var n;return dZ(),window.setTimeout((function(){sZ=!1}),1200),e.createElement(XX,null,e.createElement(nZ,{srcUrl:t.iconUrl}),e.createElement(KX,{text:t.title,textAlign:t.styles.titleAlignment,color:t.styles.titleColor,fontSize:t.styles.titleFontSize,fontWeight:t.styles.titleFontWeight}),e.createElement(JX,{text:t.text,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(QX,{text:t.detailText,textAlign:t.styles.textAlignment,color:t.styles.textColor,fontSize:t.styles.textFontSize,fontWeight:t.styles.textFontWeight}),e.createElement(tZ,{srcUrl:t.imageUrl}),e.createElement(eZ,{text:t.nextButtonText,color:t.styles.nextButtonTextColor,fontWeight:t.styles.nextButtonFontWeight,backgroundColor:t.styles.nextButtonBackgroundColor,letterSpacing:t.styles.nextButtonLetterSpacing,textTransform:null===(n=t.styles.nextButtonTextTransform)||void 0===n?void 0:n.toLowerCase(),gradient:t.styles.nextButtonBackgroundGradient,onClick:function(){return b.completeStep("")}}))}function mZ(){var t=s(),n=t[0],r=t[1],i=s(),o=i[0],a=i[1],c=s(),u=c[0],f=c[1],p=s(),d=p[0],h=p[1],m=s(),v=m[0],y=m[1],g=s(),x=g[0],w=g[1],_=s({}),k=_[0],S=_[1];return l((function(){b.getStepConfiguration().then((function(e){var t;e&&(r(e.properties.title),a(e.properties.text),f(e.properties.detailText),h(e.properties.iconImage),y(e.properties.image),w(e.properties.nextButtonText),S(null!==(t=e.styles)&&void 0!==t?t:{}))}))}),[]),e.createElement(hZ,{title:n,text:o,detailText:u,iconUrl:d,imageUrl:v,nextButtonText:x,styles:k})}export{j as Action,D as ActivityMeter,Vr as AppDownload,NH as BlankView,R as Button,Tt as Calendar,Pt as Card,jt as CardTitle,hZ as CelebrationStep,mZ as CelebrationStepContainer,Gr as ConnectEhr,IH as ConnectEhrView,Xr as ConnectFitbit,Zr as ConnectGarmin,kq as DailyDataType,Mt as DateRangeNavigator,Nt as DayTrackerSymbol,Pq as DeviceDataMonthChart,jq as DeviceDataMonthCharts,RH as DeviceDataView,Mq as ExternalAccountList,Rq as ExternalAccountsLoadingIndicator,zq as ExternalAccountsPreview,LH as ExternalAccountsView,hr as Face,Zq as FitbitDevices,Jq as FitbitMonthCharts,zH as FitbitView,eH as GarminDevices,tH as GarminMonthCharts,FH as GarminView,qH as HealthAndWellnessView,sH as HealthPreviewSection,vr as Histogram,BH as HomeView,hH as LabResultsSummary,dr as Layout,pr as LayoutContext,I as LoadingIndicator,vH as MostRecentNotification,xr as NavigationBar,bH as NotificationList,HH as NotificationsView,Rr as PlatformSpecificContent,xH as ProjectHeader,SH as ProjectSupport,TH as ProviderSearch,TH as RestingHeartRateCalendar,wr as Section,_r as SegmentedControl,mr as ShinyOverlay,Er as SingleExternalAccount,Or as SingleNotification,Cr as SingleSurveyTask,Tr as SparkBarChart,jr as StatusBarBackground,QX as StepDetailText,tZ as StepImage,nZ as StepImageIcon,XX as StepLayout,YX as StepMarkdown,eZ as StepNextButton,JX as StepText,KX as StepTitle,DH as SurveyTaskList,VH as SurveyTasksView,Pr as Switch,Dr as TextBlock,Mr as TrackerItem,k as UnstyledButton,Nr as ViewHeader,Ir as WeekCalendar,rZ as YouTubeStep,iZ as YouTubeStepContainer,Oq as checkDailyDataAvailability,Aq as queryDailyData,Eq as registerDailyDataProvider,Nq as useInterval};
|
|
216
216
|
//# sourceMappingURL=index.js.map
|