@wavv/ui 1.4.0-beta.3 → 1.4.0

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.
@@ -197,7 +197,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
197
197
  38:14,
198
198
  /*! Conditions:: INITIAL */
199
199
  /*! Rule:: $ */
200
- 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 o.lexer=i,a.prototype=o,o.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}($y);var qy={},Gy={exports:{}},Zy={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}},Yy=function(e,t,n,r){if(!Zy.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Zy[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Zy[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Yy);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}(Gy,Gy.exports),Object.defineProperty(qy,"__esModule",{value:!0}),qy.flip=tv;var Xy=function(e){return e&&e.__esModule?e:{default:e}}(Gy.exports);function Jy(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Xy.default)(e.left,e.right,t),r=Jy(n.left,t),o=Jy(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(Qy(r.right,o.right)?n=(0,Xy.default)(r.left,o.left,t):Qy(r.right,o.left)&&(n=(0,Xy.default)(r.left,o.right,t)),r=Jy(n.left,t),o=Jy(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return nv(o);r.type===o.type&&ev(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(ev(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Jy({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?tv(o.operator):o.operator,Jy(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Jy({type:"MathExpression",operator:"-"===i?tv(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Jy(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&ev(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Jy({type:"MathExpression",operator:i,left:r.left,right:o},t),Jy(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Jy({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Jy({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Jy(e,t)}return e}(e,t);case"/":return function(e,t){if(!ev(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 ev(e.left.left.type)&&ev(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Jy(e.left,t)):e;if(ev(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(ev(e.left.left.type)&&ev(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(ev(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(ev(e.right.left.type)&&ev(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&&ev(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Jy(e.value,t):e}function Qy(e,t){return e.type===t.type&&e.value===t.value}function ev(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 tv(e){return"+"===e?"-":"+"}function nv(e){return ev(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=nv(e.left),e.right=nv(e.right)),e}qy.default=Jy;var rv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=qy,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,u=e.operator,c="";return"MathExpression"===a.type&&r[u]<r[a.operator]?c+="("+i(a,t)+")":c+=i(a,t),c+=" "+e.operator+" ","MathExpression"===s.type&&r[u]<r[s.operator]?c+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===u&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),c+=i(s,t)):c+=i(s,t),c;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}(rv,rv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Wy),r=$y,o=a(qy),i=a(rv.exports);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[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&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var u=r.parser.parse(a),c=(0,o.default)(u,t);e.type="word",e.value=(0,i.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default}(Ay,Ay.exports);var ov=it(Ay.exports);function iv(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 av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iv(Object(n),!0).forEach((function(t){sv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uv(e){return function(e){if(Array.isArray(e))return cv(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 cv(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 cv(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 cv(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 lv={widthCache:{},cacheCount:0},fv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},dv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var pv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(uv(e),["-",t.toLowerCase()]):[].concat(uv(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],dv.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},hv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Qh.isSsr)return{width:0,height:0};var n="".concat(e),r=pv(t),o="".concat(n,"-").concat(r);if(lv.widthCache[o])return lv.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=av(av({},fv),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),u={width:s.width,height:s.height};return lv.widthCache[o]=u,++lv.cacheCount>2e3&&(lv.cacheCount=0,lv.widthCache={}),u}catch(e){return{width:0,height:0}}};function gv(e){return gv="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},gv(e)}function yv(){return yv=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},yv.apply(this,arguments)}function vv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bv(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,r.key,r)}}function wv(e,t){return wv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wv(e,t)}function xv(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=Cv(e);if(t){var o=Cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _v(this,n)}}function _v(e,t){return!t||"object"!==gv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cv(e)}function Sv(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ov(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 Ov(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 Ov(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 kv(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Av=/[ \f\n\r\t\v\u2028\u2029]+/,Tv=function(e){try{var t=[];return Cf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Av)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:hv(t,e.style).width}})),spaceWidth:e.breakAll?0:hv(" ",e.style).width}}catch(e){return null}},Mv=function(e){return[{words:Cf(e)?[]:e.toString().split(Av)}]},Pv=function(e,t){if((e.width||e.scaleToFit)&&!Qh.isSsr&&t){var n=Tv(e);return n?function(e,t,n,r,o){var i=ef(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var u={words:[i],width:a};e.push(u)}return e}),[])},u=s(t);if(!i)return u;for(var c,l=function(t){var n=a.slice(0,t),o=Tv(Ev(Ev({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),u=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[u,i]},f=0,d=a.length-1,p=0;f<=d&&p<=a.length-1;){var h=Math.floor((f+d)/2),g=Sv(l(h-1),2),y=g[0],v=g[1],m=Sv(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(d=h-1),!y&&m){c=v;break}p++}return c||u}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Mv(e.children)}return Mv(e.children)},Dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wv(e,t)}(a,t.Component);var n,r,o,i=xv(a);function a(){var e;mv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,i=e.scaleToFit,a=e.angle,u=e.lineHeight,c=e.capHeight,l=e.className,f=e.breakAll,d=vv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),p=this.state.wordsByLines;if(!tf(d.x)||!tf(d.y))return null;var h,g=d.x+(ef(t)?t:0),y=d.y+(ef(n)?n:0);switch(o){case"start":h=ov("calc(".concat(c,")"));break;case"middle":h=ov("calc(".concat((p.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:h=ov("calc(".concat(p.length-1," * -").concat(u,")"))}var v=[];if(i){var m=p[0].width,b=this.props.width;v.push("scale(".concat((ef(b)?b/m:1)/m,")"))}return a&&v.push("rotate(".concat(a,", ").concat(g,", ").concat(y,")")),v.length&&(d.transform=v.join(" ")),s.default.createElement("text",yv({},Sn(d,!0),{x:g,y:y,className:mn("recharts-text",l),textAnchor:r}),p.map((function(e,t){return s.default.createElement("tspan",{x:g,dy:0===t?h:u,key:t},e.words.join(f?"":" "))})))}}],o=[{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:Pv(e,n)}}return null}}],r&&bv(n.prototype,r),o&&bv(n,o),a}();function Rv(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Iv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Dv.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Lv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Nv=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Bv=null,Fv=null,zv=function e(n){if(n===Bv&&Qo(Fv))return Fv;var r=[];return t.Children.forEach(n,(function(t){Cf(t)||(ct.exports.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),Fv=r,Bv=n,r},Uv=function(e,t){var n=[],r=[];return r=Qo(t)?t.map((function(e){return Nv(e)})):[Nv(t)],zv(e).forEach((function(e){var t=Bs(e,"type.displayName")||Bs(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},Hv=function(e,t){var n=Uv(e,t);return n&&n[0]},Vv=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!ef(n)||n<=0||!ef(r)||r<=0)},Kv=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Wv=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return $v(Qo(n)?n[0]:n,Qo(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Qo(a)||Qo(s)){if(!e(a,s))return!1}else if(!$v(a,s))return!1}return!0},$v=function(e,t){if(Cf(e)&&Cf(t))return!0;if(!Cf(e)&&!Cf(t)){var n=e.props||{},r=n.children,o=Iv(n,["children"]),i=t.props||{},a=i.children,s=Iv(i,["children"]);return r&&a?Rv(o,s)&&Wv(r,a):!r&&!a&&Rv(o,s)}return!1},qv=function(e,t){var n=[],r={};return zv(e).forEach((function(e,o){if(function(e){return e&&e.type&&Xl(e.type)&&Kv.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=Nv(e.type),a=t[i]||{},s=a.handler,u=a.once;if(s&&(!u||!r[i])){var c=s(e,i,o);n.push(c),r[i]=!0}}})),n},Gv=Va;var Zv=function(e,t){return Gv(e,t)},Yv=is;var Xv=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Yv(a):n(a,s)))var s=a,u=i}return u};var Jv=function(e,t){return e>t},Qv=Xv,em=Jv,tm=ou;var nm=function(e){return e&&e.length?Qv(e,tm,em):void 0};var rm=function(e,t){return e<t},om=Xv,im=rm,am=ou;var sm=function(e){return e&&e.length?om(e,am,im):void 0},um=ms,cm=mu,lm=Qp,fm=Qo;var dm=Kp,pm=function(e,t){return(fm(e)?um:lm)(e,cm(t))};var hm,gm=function(e,t){return dm(pm(e,t),1)},ym=!0,vm="[DecimalError] ",mm=vm+"Invalid argument: ",bm=vm+"Exponent out of range: ",wm=Math.floor,xm=Math.pow,_m=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Cm=1e7,Sm=wm(1286742750677284.5),Om={};function km(e,t){var n,r,o,i,a,s,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ym?Lm(t,f):t;if(u=e.d,c=t.d,a=e.e,o=t.e,u=u.slice(),i=a-o){for(i<0?(r=u,i=-i,s=c.length):(r=c,o=a,s=u.length),i>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=u.length)-(i=c.length)<0&&(i=s,r=c,c=u,u=r),n=0;i;)n=(u[--i]=u[i]+c[i]+n)/Cm|0,u[i]%=Cm;for(n&&(u.unshift(n),++o),s=u.length;0==u[--s];)u.pop();return t.d=u,t.e=o,ym?Lm(t,f):t}function Em(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mm+e)}function jm(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=Dm(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=Dm(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Om.absoluteValue=Om.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Om.comparedTo=Om.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},Om.decimalPlaces=Om.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Om.dividedBy=Om.div=function(e){return Am(this,new this.constructor(e))},Om.dividedToIntegerBy=Om.idiv=function(e){var t=this.constructor;return Lm(Am(this,new t(e),0,1),t.precision)},Om.equals=Om.eq=function(e){return!this.cmp(e)},Om.exponent=function(){return Mm(this)},Om.greaterThan=Om.gt=function(e){return this.cmp(e)>0},Om.greaterThanOrEqualTo=Om.gte=function(e){return this.cmp(e)>=0},Om.isInteger=Om.isint=function(){return this.e>this.d.length-2},Om.isNegative=Om.isneg=function(){return this.s<0},Om.isPositive=Om.ispos=function(){return this.s>0},Om.isZero=function(){return 0===this.s},Om.lessThan=Om.lt=function(e){return this.cmp(e)<0},Om.lessThanOrEqualTo=Om.lte=function(e){return this.cmp(e)<1},Om.logarithm=Om.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(hm))throw Error(vm+"NaN");if(n.s<1)throw Error(vm+(n.s?"NaN":"-Infinity"));return n.eq(hm)?new r(0):(ym=!1,t=Am(Rm(n,i),Rm(e,i),i),ym=!0,Lm(t,o))},Om.minus=Om.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Nm(t,e):km(t,(e.s=-e.s,e))},Om.modulo=Om.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(vm+"NaN");return n.s?(ym=!1,t=Am(n,e,0,1).times(e),ym=!0,n.minus(t)):Lm(new r(n),o)},Om.naturalExponential=Om.exp=function(){return Tm(this)},Om.naturalLogarithm=Om.ln=function(){return Rm(this)},Om.negated=Om.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Om.plus=Om.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?km(t,e):Nm(t,(e.s=-e.s,e))},Om.precision=Om.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(mm+e);if(t=Mm(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Om.squareRoot=Om.sqrt=function(){var e,t,n,r,o,i,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(vm+"NaN")}for(e=Mm(s),ym=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=jm(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=wm((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(Am(s,i,a+2)).times(.5),jm(i.d).slice(0,a)===(t=jm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Lm(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return ym=!0,Lm(r,n)},Om.times=Om.mul=function(e){var t,n,r,o,i,a,s,u,c,l=this,f=l.constructor,d=l.d,p=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(u=d.length)<(c=p.length)&&(i=d,d=p,p=i,a=u,u=c,c=a),i=[],r=a=u+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=u+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%Cm|0,t=s/Cm|0;i[o]=(i[o]+t)%Cm|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ym?Lm(e,f.precision):e},Om.toDecimalPlaces=Om.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Em(e,0,1e9),void 0===t?t=r.rounding:Em(t,0,8),Lm(n,e+Mm(n)+1,t))},Om.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=Bm(r,!0):(Em(e,0,1e9),void 0===t?t=o.rounding:Em(t,0,8),n=Bm(r=Lm(new o(r),e+1,t),!0,e+1)),n},Om.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?Bm(o):(Em(e,0,1e9),void 0===t?t=i.rounding:Em(t,0,8),n=Bm((r=Lm(new i(o),e+Mm(o)+1,t)).abs(),!1,e+Mm(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Om.toInteger=Om.toint=function(){var e=this,t=e.constructor;return Lm(new t(e),Mm(e)+1,t.rounding)},Om.toNumber=function(){return+this},Om.toPower=Om.pow=function(e){var t,n,r,o,i,a,s=this,u=s.constructor,c=+(e=new u(e));if(!e.s)return new u(hm);if(!(s=new u(s)).s){if(e.s<1)throw Error(vm+"Infinity");return s}if(s.eq(hm))return s;if(r=u.precision,e.eq(hm))return Lm(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=c<0?-c:c)<=9007199254740991){for(o=new u(hm),t=Math.ceil(r/7+4),ym=!1;n%2&&Fm((o=o.times(s)).d,t),0!==(n=wm(n/2));)Fm((s=s.times(s)).d,t);return ym=!0,e.s<0?new u(hm).div(o):Lm(o,r)}}else if(i<0)throw Error(vm+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,ym=!1,o=e.times(Rm(s,r+12)),ym=!0,(o=Tm(o)).s=i,o},Om.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=Bm(o,(n=Mm(o))<=i.toExpNeg||n>=i.toExpPos):(Em(e,1,1e9),void 0===t?t=i.rounding:Em(t,0,8),r=Bm(o=Lm(new i(o),e,t),e<=(n=Mm(o))||n<=i.toExpNeg,e)),r},Om.toSignificantDigits=Om.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Em(e,1,1e9),void 0===t?t=n.rounding:Em(t,0,8)),Lm(new n(this),e,t)},Om.toString=Om.valueOf=Om.val=Om.toJSON=Om[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mm(e),n=e.constructor;return Bm(e,t<=n.toExpNeg||t>=n.toExpPos)};var Am=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%Cm|0,r=n/Cm|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*Cm+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,u,c,l,f,d,p,h,g,y,v,m,b,w,x,_,C,S,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(vm+"Division by zero");for(u=r.e-o.e,C=j.length,x=E.length,h=(p=new O(k)).d=[],c=0;j[c]==(E[c]||0);)++c;if(j[c]>(E[c]||0)&&--u,(m=null==i?i=O.precision:a?i+(Mm(r)-Mm(o))+1:i)<0)return new O(0);if(m=m/7+2|0,c=0,1==C)for(l=0,j=j[0],m++;(c<x||l)&&m--;c++)b=l*Cm+(E[c]||0),h[c]=b/j|0,l=b%j|0;else{for((l=Cm/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(S=j.slice()).unshift(0),_=j[0],j[1]>=Cm/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*Cm+(g[1]||0)),(l=v/_|0)>1?(l>=Cm&&(l=Cm-1),1==(s=t(f=e(j,l),g,d=f.length,y=g.length))&&(l--,n(f,C<d?S:j,d))):(0==l&&(s=l=1),f=j.slice()),(d=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[c++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=u,Lm(p,a?i+Mm(p)+1:i)}}();function Tm(e,t){var n,r,o,i,a,s=0,u=0,c=e.constructor,l=c.precision;if(Mm(e)>16)throw Error(bm+Mm(e));if(!e.s)return new c(hm);for(null==t?(ym=!1,a=l):a=t,i=new c(.03125);e.abs().gte(.1);)e=e.times(i),u+=5;for(a+=Math.log(xm(2,u))/Math.LN10*2+5|0,n=r=o=new c(hm),c.precision=a;;){if(r=Lm(r.times(e),a),n=n.times(++s),jm((i=o.plus(Am(r,n,a))).d).slice(0,a)===jm(o.d).slice(0,a)){for(;u--;)o=Lm(o.times(o),a);return c.precision=l,null==t?(ym=!0,Lm(o,l)):o}o=i}}function Mm(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function Pm(e,t,n){if(t>e.LN10.sd())throw ym=!0,n&&(e.precision=n),Error(vm+"LN10 precision limit exceeded");return Lm(new e(e.LN10),t)}function Dm(e){for(var t="";e--;)t+="0";return t}function Rm(e,t){var n,r,o,i,a,s,u,c,l,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(vm+(d.s?"NaN":"-Infinity"));if(d.eq(hm))return new h(0);if(null==t?(ym=!1,c=g):c=t,d.eq(10))return null==t&&(ym=!0),Pm(h,c);if(c+=10,h.precision=c,r=(n=jm(p)).charAt(0),i=Mm(d),!(Math.abs(i)<15e14))return u=Pm(h,c+2,g).times(i+""),d=Rm(new h(r+"."+n.slice(1)),c-10).plus(u),h.precision=g,null==t?(ym=!0,Lm(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=jm((d=d.times(e)).d)).charAt(0),f++;for(i=Mm(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=Am(d.minus(hm),d.plus(hm),c),l=Lm(d.times(d),c),o=3;;){if(a=Lm(a.times(l),c),jm((u=s.plus(Am(a,new h(o),c))).d).slice(0,c)===jm(s.d).slice(0,c))return s=s.times(2),0!==i&&(s=s.plus(Pm(h,c+2,g).times(i+""))),s=Am(s,new h(f),c),h.precision=g,null==t?(ym=!0,Lm(s,g)):s;s=u,o+=2}}function Im(e,t){var n,r,o;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(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=wm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ym&&(e.e>Sm||e.e<-Sm))throw Error(bm+n)}else e.s=0,e.e=0,e.d=[0];return e}function Lm(e,t,n){var r,o,i,a,s,u,c,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,c=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(i=f.length))return e;for(c=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=c/(i=xm(10,a-o-1))%10|0,u=t<0||void 0!==f[l+1]||c%i,u=n<4?(s||u)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||u||6==n&&(r>0?o>0?c/xm(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return u?(i=Mm(e),f.length=1,t=t-i-1,f[0]=xm(10,(7-t%7)%7),e.e=wm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=xm(10,7-r),f[l]=o>0?(c/xm(10,a-o)%xm(10,o)|0)*i:0),u)for(;;){if(0==l){(f[0]+=i)==Cm&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=Cm)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(ym&&(e.e>Sm||e.e<-Sm))throw Error(bm+Mm(e));return e}function Nm(e,t){var n,r,o,i,a,s,u,c,l,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ym?Lm(t,p):t;if(u=e.d,f=t.d,r=t.e,c=e.e,u=u.slice(),a=c-r){for((l=a<0)?(n=u,a=-a,s=f.length):(n=f,r=c,s=u.length),a>(o=Math.max(Math.ceil(p/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=u.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(u[o]!=f[o]){l=u[o]<f[o];break}a=0}for(l&&(n=u,u=f,f=n,t.s=-t.s),s=u.length,o=f.length-s;o>0;--o)u[s++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Cm-1;--u[i],u[o]+=Cm}u[o]-=f[o]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(t.d=u,t.e=r,ym?Lm(t,p):t):new d(0)}function Bm(e,t,n){var r,o=Mm(e),i=jm(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Dm(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Dm(-o-1)+i,n&&(r=n-a)>0&&(i+=Dm(r))):o>=a?(i+=Dm(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Dm(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Dm(r))),e.s<0?"-"+i:i}function Fm(e,t){if(e.length>t)return e.length=t,!0}function zm(e){if(!e||"object"!=typeof e)throw Error(vm+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(wm(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(mm+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(mm+n+": "+r);this[n]=new this(r)}return this}var Um=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(mm+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])):Im(t,e.toString())}if("string"!=typeof e)throw Error(mm+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!_m.test(e))throw Error(mm+e);Im(t,e)}if(i.prototype=Om,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=zm,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});hm=new Um(1);var Hm=Um;function Vm(e){return function(e){if(Array.isArray(e))return Km(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 Km(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 Km(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 Km(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 Wm=function(e){return e},$m={"@@functional/placeholder":!0},qm=function(e){return e===$m},Gm=function(e){return function t(){return 0===arguments.length||1===arguments.length&&qm(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Zm=function e(t,n){return 1===t?n:Gm((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==$m})).length;return a>=t?n.apply(void 0,o):e(t-a,Gm((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return qm(e)?t.shift():e}));return n.apply(void 0,Vm(i).concat(t))})))}))},Ym=function(e){return Zm(e.length,e)},Xm=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Jm=Ym((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Qm=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},eb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var tb=Ym((function(e,t,n){var r=+e;return r+n*(+t-r)})),nb=Ym((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),rb=Ym((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),ob={rangeStep:function(e,t,n){for(var r=new Hm(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new Hm(e).abs().log(10).toNumber())+1},interpolateNumber:tb,uninterpolateNumber:nb,uninterpolateTruncation:rb};function ib(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||sb(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 ab(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||sb(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 sb(e,t){if(e){if("string"==typeof e)return ub(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)?ub(e,t):void 0}}function ub(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 cb(e){var t=ab(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function lb(e,t,n){if(e.lte(0))return new Hm(0);var r=ob.getDigitCount(e.toNumber()),o=new Hm(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Hm(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Hm(Math.ceil(s))}function fb(e,t,n){var r=1,o=new Hm(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Hm(10).pow(ob.getDigitCount(e)-1),o=new Hm(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Hm(Math.floor(e)))}else 0===e?o=new Hm(Math.floor((t-1)/2)):n||(o=new Hm(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Wm;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}}(Jm((function(e){return o.add(new Hm(e-a).mul(r)).toNumber()})),Xm);return s(0,t)}function db(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Hm(0),tickMin:new Hm(0),tickMax:new Hm(0)};var i,a=lb(new Hm(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Hm(0):(i=new Hm(e).add(t).div(2)).sub(new Hm(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),u=Math.ceil(new Hm(t).sub(i).div(a).toNumber()),c=s+u+1;return c>n?db(e,t,n,r,o+1):(c<n&&(u=t>0?u+(n-c):u,s=t>0?s:s+(n-c)),{step:a,tickMin:i.sub(new Hm(s).mul(a)),tickMax:i.add(new Hm(u).mul(a))})}var pb=eb((function(e){var t=ab(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=cb([n,r]),u=ab(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(ib(Xm(0,o-1).map((function(){return 1/0})))):[].concat(ib(Xm(0,o-1).map((function(){return-1/0}))),[l]);return n>r?Qm(f):f}if(c===l)return fb(c,o,i);var d=db(c,l,a,i),p=d.step,h=d.tickMin,g=d.tickMax,y=ob.rangeStep(h,g.add(new Hm(.1).mul(p)),p);return n>r?Qm(y):y})),hb=eb((function(e,t){var n=ab(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=cb([r,o]),s=ab(a,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[r,o];if(u===c)return[u];var l=Math.max(t,2),f=lb(new Hm(c).sub(u).div(l-1),i,0),d=[].concat(ib(ob.rangeStep(new Hm(u),new Hm(c).sub(new Hm(.99).mul(f)),f)),[c]);return r>o?Qm(d):d}));function gb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function yb(e){let t=e,n=e;function r(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>gb(e(t),n)}(e)),{left:r,center:function(e,n,o,i){null==o&&(o=0),null==i&&(i=e.length);const a=r(e,n,o,i-1);return a>o&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}function vb(e){return null===e?NaN:+e}const mb=yb(gb).right;yb(vb).center;var bb=Math.sqrt(50),wb=Math.sqrt(10),xb=Math.sqrt(2);function _b(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Cb(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)/a}return r&&i.reverse(),i}function Cb(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=bb?10:i>=wb?5:i>=xb?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=bb?10:i>=wb?5:i>=xb?2:1)}function Sb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=bb?o*=10:i>=wb?o*=5:i>=xb&&(o*=2),t<e?-o:o}function Ob(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 o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function kb(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 o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function Eb(e,t,n=0,r=e.length-1,o=gb){for(;r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);Eb(e,t,Math.max(n,Math.floor(t-a*u/i+c)),Math.min(r,Math.floor(t+(i-a)*u/i+c)),o)}const i=e[t];let a=n,s=r;for(jb(e,n,t),o(e[r],i)>0&&jb(e,n,r);a<s;){for(jb(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?jb(e,n,s):(++s,jb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function jb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ab(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){if((t=+t)<=0||r<2)return kb(e);if(t>=1)return Ob(e);var r,o=(r-1)*t,i=Math.floor(o),a=Ob(Eb(e,i).subarray(0,i+1));return a+(kb(e.subarray(i+1))-a)*(o-i)}}function Tb(e,t,n=vb){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function Mb(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}function Pb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Db(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 Rb=Symbol("implicit");function Ib(){var e=new Map,t=[],n=[],r=Rb;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==Rb)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Ib(t,n).unknown(r)},Pb.apply(o,arguments),o}function Lb(){var e,t,n=Ib().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,u=0,c=0,l=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-u+2*c),s&&(e=Math.floor(e)),d+=(p-d-e*(n-u))*l,t=e*(1-u),s&&(d=Math.round(d),t=Math.round(t));var h=Mb(n).map((function(t){return d+e*t}));return o(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?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(u=Math.min(1,c=+e),f()):u},n.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},n.paddingOuter=function(e){return arguments.length?(c=+e,f()):c},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return Lb(r(),[i,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},Pb.apply(f(),arguments)}function Nb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Nb(t())},e}function Bb(){return Nb(Lb.apply(null,arguments).paddingInner(1))}function Fb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ub(){}var Hb=1/.7,Vb="\\s*([+-]?\\d+)\\s*",Kb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$b=/^#([0-9a-f]{3,8})$/,qb=new RegExp("^rgb\\("+[Vb,Vb,Vb]+"\\)$"),Gb=new RegExp("^rgb\\("+[Wb,Wb,Wb]+"\\)$"),Zb=new RegExp("^rgba\\("+[Vb,Vb,Vb,Kb]+"\\)$"),Yb=new RegExp("^rgba\\("+[Wb,Wb,Wb,Kb]+"\\)$"),Xb=new RegExp("^hsl\\("+[Kb,Wb,Wb]+"\\)$"),Jb=new RegExp("^hsla\\("+[Kb,Wb,Wb,Kb]+"\\)$"),Qb={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 ew(){return this.rgb().formatHex()}function tw(){return this.rgb().formatRgb()}function nw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$b.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rw(t):3===n?new sw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ow(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ow(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=qb.exec(e))?new sw(t[1],t[2],t[3],1):(t=Gb.exec(e))?new sw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Zb.exec(e))?ow(t[1],t[2],t[3],t[4]):(t=Yb.exec(e))?ow(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xb.exec(e))?fw(t[1],t[2]/100,t[3]/100,1):(t=Jb.exec(e))?fw(t[1],t[2]/100,t[3]/100,t[4]):Qb.hasOwnProperty(e)?rw(Qb[e]):"transparent"===e?new sw(NaN,NaN,NaN,0):null}function rw(e){return new sw(e>>16&255,e>>8&255,255&e,1)}function ow(e,t,n,r){return r<=0&&(e=t=n=NaN),new sw(e,t,n,r)}function iw(e){return e instanceof Ub||(e=nw(e)),e?new sw((e=e.rgb()).r,e.g,e.b,e.opacity):new sw}function aw(e,t,n,r){return 1===arguments.length?iw(e):new sw(e,t,n,null==r?1:r)}function sw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function uw(){return"#"+lw(this.r)+lw(this.g)+lw(this.b)}function cw(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function lw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function fw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pw(e,t,n,r)}function dw(e){if(e instanceof pw)return new pw(e.h,e.s,e.l,e.opacity);if(e instanceof Ub||(e=nw(e)),!e)return new pw;if(e instanceof pw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,u=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=u<.5?i+o:2-i-o,a*=60):s=u>0&&u<1?0:a,new pw(a,s,u,e.opacity)}function pw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fb(Ub,nw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ew,formatHex:ew,formatHsl:function(){return dw(this).formatHsl()},formatRgb:tw,toString:tw}),Fb(sw,aw,zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new sw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new sw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:uw,formatHex:uw,formatRgb:cw,toString:cw})),Fb(pw,(function(e,t,n,r){return 1===arguments.length?dw(e):new pw(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new pw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new pw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,o=2*n-r;return new sw(hw(e>=240?e-240:e+120,o,r),hw(e,o,r),hw(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const gw=Math.PI/180,yw=180/Math.PI,vw=4/29,mw=6/29,bw=3*mw*mw;function ww(e){if(e instanceof xw)return new xw(e.l,e.a,e.b,e.opacity);if(e instanceof Ew)return jw(e);e instanceof sw||(e=iw(e));var t,n,r=Ow(e.r),o=Ow(e.g),i=Ow(e.b),a=_w((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=_w((.4360747*r+.3850649*o+.1430804*i)/.96422),n=_w((.0139322*r+.0971045*o+.7141733*i)/.82521)),new xw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function xw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _w(e){return e>.008856451679035631?Math.pow(e,1/3):e/bw+vw}function Cw(e){return e>mw?e*e*e:bw*(e-vw)}function Sw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ow(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kw(e){if(e instanceof Ew)return new Ew(e.h,e.c,e.l,e.opacity);if(e instanceof xw||(e=ww(e)),0===e.a&&0===e.b)return new Ew(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yw;return new Ew(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ew(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function jw(e){if(isNaN(e.h))return new xw(e.l,0,0,e.opacity);var t=e.h*gw;return new xw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fb(xw,(function(e,t,n,r){return 1===arguments.length?ww(e):new xw(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return new xw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new xw(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 sw(Sw(3.1338561*(t=.96422*Cw(t))-1.6168667*(e=1*Cw(e))-.4906146*(n=.82521*Cw(n))),Sw(-.9787684*t+1.9161415*e+.033454*n),Sw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Fb(Ew,(function(e,t,n,r){return 1===arguments.length?kw(e):new Ew(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return new Ew(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Ew(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return jw(this).rgb()}}));var Aw=-.14861,Tw=1.78277,Mw=-.29227,Pw=-.90649,Dw=1.97294,Rw=Dw*Pw,Iw=Dw*Tw,Lw=Tw*Mw-Pw*Aw;function Nw(e){if(e instanceof Fw)return new Fw(e.h,e.s,e.l,e.opacity);e instanceof sw||(e=iw(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Lw*r+Rw*t-Iw*n)/(Lw+Rw-Iw),i=r-o,a=(Dw*(n-o)-Mw*i)/Pw,s=Math.sqrt(a*a+i*i)/(Dw*o*(1-o)),u=s?Math.atan2(a,i)*yw-120:NaN;return new Fw(u<0?u+360:u,s,o,e.opacity)}function Bw(e,t,n,r){return 1===arguments.length?Nw(e):new Fw(e,t,n,null==r?1:r)}function Fw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fb(Fw,Bw,zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new Fw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Fw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*gw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new sw(255*(t+n*(Aw*r+Tw*o)),255*(t+n*(Mw*r+Pw*o)),255*(t+n*(Dw*r)),this.opacity)}}));var zw=e=>()=>e;function Uw(e,t){return function(n){return e+n*t}}function Hw(e){return 1==(e=+e)?Vw: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):zw(isNaN(t)?n:t)}}function Vw(e,t){var n=t-e;return n?Uw(e,n):zw(isNaN(e)?t:e)}var Kw=function e(t){var n=Hw(t);function r(e,t){var r=n((e=aw(e)).r,(t=aw(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Vw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ww(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $w(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Qw(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function qw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gw(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Zw(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Qw(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Yw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xw=new RegExp(Yw.source,"g");function Jw(e,t){var n,r,o,i=Yw.lastIndex=Xw.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Yw.exec(e))&&(r=Xw.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Gw(n,r)})),i=Xw.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Qw(e,t){var n,r=typeof t;return null==t||"boolean"===r?zw(t):("number"===r?Gw:"string"===r?(n=nw(t))?(t=n,Kw):Jw:t instanceof nw?Kw:t instanceof Date?qw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Ww:Array.isArray(t)?$w:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Zw:Gw)(e,t)}function ex(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function tx(e){return((e=Math.exp(e))+1/e)/2}function nx(e){return function t(n){function r(t,r){var o=e((t=Bw(t)).h,(r=Bw(r)).h),i=Vw(t.s,r.s),a=Vw(t.l,r.l),s=Vw(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function rx(e,t){void 0===t&&(t=e,e=Qw);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function ox(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],u=e[1],c=e[2],l=o[0],f=o[1],d=o[2],p=l-s,h=f-u,g=p*p+h*h;if(g<1e-12)a=Math.log(d/c)/t,i=function(e){return[s+e*p,u+e*h,c*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(d*d-c*c+r*g)/(2*c*n*y),m=(d*d-c*c-r*g)/(2*d*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=tx(b),i=c/(n*y)*(o*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[s+i*p,u+i*h,c*o/tx(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),nx((function(e,t){var n=t-e;return n?Uw(e,n>180||n<-180?n-360*Math.round(n/360):n):zw(isNaN(e)?t:e)})),nx(Vw);var ix=[0,1];function ax(e){return e}function sx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ux(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=sx(o,r),i=n(a,i)):(r=sx(r,o),i=n(i,a)),function(e){return i(r(e))}}function cx(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=sx(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=mb(e,t,1,r)-1;return i[n](o[n](t))}}function lx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fx(){var e,t,n,r,o,i,a=ix,s=ix,u=Qw,c=ax;function l(){var e=Math.min(a.length,s.length);return c!==ax&&(c=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?cx:ux,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,u)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(s,a.map(e),Gw)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,ox),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),u=ex,l()},f.clamp=function(e){return arguments.length?(c=!!e||ax,l()):c!==ax},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function dx(){return fx()(ax,ax)}function px(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 hx(e){return(e=px(Math.abs(e)))?e[1]:NaN}var gx,yx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vx(e){if(!(t=yx.exec(e)))throw new Error("invalid format: "+e);var t;return new mx({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 mx(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 bx(e,t){var n=px(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}vx.prototype=mx.prototype,mx.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 wx={"%":(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)=>bx(100*e,t),r:bx,s:function(e,t){var n=px(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(gx=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+px(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xx(e){return e}var _x,Cx,Sx,Ox=Array.prototype.map,kx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ex(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?xx:(t=Ox.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?xx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ox.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=vx(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):wx[m]||(void 0===y&&(y=12),v=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?u:"",x=wx[m],_=/[defgprs%]/.test(m);function C(e){var o,i,u,d=b,C=w;if("c"===m)C=x(e)+C,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:c:"-"===f||"("===f?"":f)+d,C=("s"===m?kx[8+gx/3]:"")+C+(S&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(u=e.charCodeAt(o))||u>57){C=(46===u?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+C.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=d+e+C+k;break;case"=":e=d+k+e+C;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+C+k.slice(O);break;default:e=k+d+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=vx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(hx(t)/3))),o=Math.pow(10,-r),i=kx[8+r/3];return function(e){return n(o*e)+i}}}}function jx(e,t,n,r){var o,i=Sb(e,t,n);switch((r=vx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hx(t)/3)))-hx(Math.abs(e)))}(i,a))||(r.precision=o),Sx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hx(t)-hx(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-hx(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Cx(r)}function Ax(e){var t=e.domain;return e.ticks=function(e){var n=t();return _b(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return jx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,u=i[a],c=i[s],l=10;for(c<u&&(o=u,u=c,c=o,o=a,a=s,s=o);l-- >0;){if((o=Cb(u,c,n))===r)return i[a]=u,i[s]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Tx(){var e=dx();return e.copy=function(){return lx(e,Tx())},Pb.apply(e,arguments),Ax(e)}function Mx(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Px(e){return Math.log(e)}function Dx(e){return Math.exp(e)}function Rx(e){return-Math.log(-e)}function Ix(e){return-Math.exp(-e)}function Lx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nx(e){return function(t){return-e(-t)}}function Bx(e){var t,n,r=e(Px,Dx),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?Lx:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Nx(t),n=Nx(n),e(Rx,Ix)):e(Px,Dx),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),s=a[0],u=a[a.length-1];(r=u<s)&&(d=s,s=u,u=d);var c,l,f,d=t(s),p=t(u),h=null==e?10:+e,g=[];if(!(i%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),s>0){for(;d<=p;++d)for(l=1,c=n(d);l<i;++l)if(!((f=c*l)<s)){if(f>u)break;g.push(f)}}else for(;d<=p;++d)for(l=i-1,c=n(d);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;g.push(f)}2*g.length<h&&(g=_b(s,u,h))}else g=_b(d,p,Math.min(p-d,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Cx(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(Mx(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Fx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ux(e){var t=1,n=e(Fx(t),zx(t));return n.constant=function(n){return arguments.length?e(Fx(t=+n),zx(t)):t},Ax(n)}function Hx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Kx(e){return e<0?-e*e:e*e}function Wx(e){var t=e(ax,ax),n=1;function r(){return 1===n?e(ax,ax):.5===n?e(Vx,Kx):e(Hx(n),Hx(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Ax(t)}function $x(){var e=Wx(fx());return e.copy=function(){return lx(e,$x()).exponent(e.exponent())},Pb.apply(e,arguments),e}function qx(e){return Math.sign(e)*e*e}function Gx(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}_x=Ex({thousands:",",grouping:[3],currency:["$",""]}),Cx=_x.format,Sx=_x.formatPrefix;var Zx=new Date,Yx=new Date;function Xx(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Xx((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(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&&(o.count=function(t,r){return Zx.setTime(+t),Yx.setTime(+r),e(Zx),e(Yx),Math.floor(n(Zx,Yx))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Jx=Xx((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Jx.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xx((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Jx:null},Jx.range;var Qx=Xx((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Qx.range;var e_=Xx((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));e_.range;var t_=Xx((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));t_.range;var n_=Xx((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function r_(e){return Xx((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}n_.range;var o_=r_(0),i_=r_(1),a_=r_(2),s_=r_(3),u_=r_(4),c_=r_(5),l_=r_(6);o_.range,i_.range,a_.range,s_.range,u_.range,c_.range,l_.range;var f_=Xx((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));f_.range;var d_=Xx((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));d_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xx((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},d_.range;var p_=Xx((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));p_.range;var h_=Xx((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));h_.range;var g_=Xx((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function y_(e){return Xx((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}g_.range;var v_=y_(0),m_=y_(1),b_=y_(2),w_=y_(3),x_=y_(4),__=y_(5),C_=y_(6);v_.range,m_.range,b_.range,w_.range,x_.range,__.range,C_.range;var S_=Xx((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));S_.range;var O_=Xx((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function k_(e,t,n,r,o,i){const a=[[Qx,1,1e3],[Qx,5,5e3],[Qx,15,15e3],[Qx,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const o=Math.abs(n-t)/r,i=yb((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Sb(t/31536e6,n/31536e6,r));if(0===i)return Jx.every(Math.max(Sb(t,n,r),1));const[s,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(u)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}O_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xx((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},O_.range;const[E_,j_]=k_(O_,S_,v_,g_,h_,p_),[A_,T_]=k_(d_,f_,o_,n_,t_,e_);function M_(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 P_(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 D_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var R_,I_,L_,N_,B_={"-":"",_:" ",0:"0"},F_=/^\s*\d+/,z_=/^%/,U_=/[\\^$*+?|[\]().{}]/g;function H_(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function V_(e){return e.replace(U_,"\\$&")}function K_(e){return new RegExp("^(?:"+e.map(V_).join("|")+")","i")}function W_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function $_(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function q_(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Z_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Y_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function X_(e,t,n){var r=F_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function J_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Q_(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 eC(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function tC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=F_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function oC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function iC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function aC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sC(e,t,n){var r=F_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uC(e,t,n){var r=F_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cC(e,t,n){var r=z_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lC(e,t,n){var r=F_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fC(e,t,n){var r=F_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dC(e,t){return H_(e.getDate(),t,2)}function pC(e,t){return H_(e.getHours(),t,2)}function hC(e,t){return H_(e.getHours()%12||12,t,2)}function gC(e,t){return H_(1+n_.count(d_(e),e),t,3)}function yC(e,t){return H_(e.getMilliseconds(),t,3)}function vC(e,t){return yC(e,t)+"000"}function mC(e,t){return H_(e.getMonth()+1,t,2)}function bC(e,t){return H_(e.getMinutes(),t,2)}function wC(e,t){return H_(e.getSeconds(),t,2)}function xC(e){var t=e.getDay();return 0===t?7:t}function _C(e,t){return H_(o_.count(d_(e)-1,e),t,2)}function CC(e){var t=e.getDay();return t>=4||0===t?u_(e):u_.ceil(e)}function SC(e,t){return e=CC(e),H_(u_.count(d_(e),e)+(4===d_(e).getDay()),t,2)}function OC(e){return e.getDay()}function kC(e,t){return H_(i_.count(d_(e)-1,e),t,2)}function EC(e,t){return H_(e.getFullYear()%100,t,2)}function jC(e,t){return H_((e=CC(e)).getFullYear()%100,t,2)}function AC(e,t){return H_(e.getFullYear()%1e4,t,4)}function TC(e,t){var n=e.getDay();return H_((e=n>=4||0===n?u_(e):u_.ceil(e)).getFullYear()%1e4,t,4)}function MC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+H_(t/60|0,"0",2)+H_(t%60,"0",2)}function PC(e,t){return H_(e.getUTCDate(),t,2)}function DC(e,t){return H_(e.getUTCHours(),t,2)}function RC(e,t){return H_(e.getUTCHours()%12||12,t,2)}function IC(e,t){return H_(1+g_.count(O_(e),e),t,3)}function LC(e,t){return H_(e.getUTCMilliseconds(),t,3)}function NC(e,t){return LC(e,t)+"000"}function BC(e,t){return H_(e.getUTCMonth()+1,t,2)}function FC(e,t){return H_(e.getUTCMinutes(),t,2)}function zC(e,t){return H_(e.getUTCSeconds(),t,2)}function UC(e){var t=e.getUTCDay();return 0===t?7:t}function HC(e,t){return H_(v_.count(O_(e)-1,e),t,2)}function VC(e){var t=e.getUTCDay();return t>=4||0===t?x_(e):x_.ceil(e)}function KC(e,t){return e=VC(e),H_(x_.count(O_(e),e)+(4===O_(e).getUTCDay()),t,2)}function WC(e){return e.getUTCDay()}function $C(e,t){return H_(m_.count(O_(e)-1,e),t,2)}function qC(e,t){return H_(e.getUTCFullYear()%100,t,2)}function GC(e,t){return H_((e=VC(e)).getUTCFullYear()%100,t,2)}function ZC(e,t){return H_(e.getUTCFullYear()%1e4,t,4)}function YC(e,t){var n=e.getUTCDay();return H_((e=n>=4||0===n?x_(e):x_.ceil(e)).getUTCFullYear()%1e4,t,4)}function XC(){return"+0000"}function JC(){return"%"}function QC(e){return+e}function eS(e){return Math.floor(+e/1e3)}!function(e){R_=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,c=K_(o),l=W_(o),f=K_(i),d=W_(i),p=K_(a),h=W_(a),g=K_(s),y=W_(s),v=K_(u),m=W_(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:dC,e:dC,f:vC,g:jC,G:TC,H:pC,I:hC,j:gC,L:yC,m:mC,M:bC,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:QC,s:eS,S:wC,u:xC,U:_C,V:SC,w:OC,W:kC,x:null,X:null,y:EC,Y:AC,Z:MC,"%":JC},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:PC,e:PC,f:NC,g:GC,G:YC,H:DC,I:RC,j:IC,L:LC,m:BC,M:FC,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:QC,s:eS,S:zC,u:UC,U:HC,V:KC,w:WC,W:$C,x:null,X:null,y:qC,Y:ZC,Z:XC,"%":JC},x={a:function(e,t,n){var r=p.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=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:nC,e:nC,f:uC,g:J_,G:X_,H:oC,I:oC,j:rC,L:sC,m:tC,M:iC,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:eC,Q:lC,s:fC,S:aC,u:q_,U:G_,V:Z_,w:$_,W:Y_,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:J_,Y:X_,Z:Q_,"%":cC};function _(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=B_[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=D_(1900,void 0,1);if(S(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=P_(D_(i.y,0,1))).getUTCDay(),r=o>4||0===o?m_.ceil(r):m_(r),r=g_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=M_(D_(i.y,0,1))).getDay(),r=o>4||0===o?i_.ceil(r):i_(r),r=n_.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?P_(D_(i.y,0,1)).getUTCDay():M_(D_(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,P_(i)):M_(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in B_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),I_=R_.format,R_.parse,L_=R_.utcFormat,N_=R_.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"]});function tS(e){return new Date(e)}function nS(e){return e instanceof Date?+e:+new Date(+e)}function rS(e,t,n,r,o,i,a,s,u,c){var l=dx(),f=l.invert,d=l.domain,p=c(".%L"),h=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(u(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?d(Array.from(e,nS)):d().map(tS)},l.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:c(t)},l.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(Mx(n,e)):l},l.copy=function(){return lx(l,rS(e,t,n,r,o,i,a,s,u,c))},l}function oS(){var e,t,n,r,o,i=0,a=1,s=ax,u=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(u=!!e,c):u},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=l(Qw),c.rangeRound=l(ex),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function iS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function aS(){var e=Wx(oS());return e.copy=function(){return iS(e,aS()).exponent(e.exponent())},Db.apply(e,arguments)}function sS(){var e,t,n,r,o,i,a,s=0,u=.5,c=1,l=1,f=ax,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=rx(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,u,c]=a,e=i(s=+s),t=i(u=+u),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p):[s,u,c]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(Qw),p.rangeRound=h(ex),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(u),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p}}function uS(){var e=Wx(sS());return e.copy=function(){return iS(e,uS()).exponent(e.exponent())},Db.apply(e,arguments)}Date.prototype.toISOString||L_("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||N_("%Y-%m-%dT%H:%M:%S.%LZ");var cS=Object.freeze({__proto__:null,scaleBand:Lb,scalePoint:Bb,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,ox),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,ox):[0,1],Ax(r)},scaleLinear:Tx,scaleLog:function e(){var t=Bx(fx()).domain([1,10]);return t.copy=function(){return lx(t,e()).base(t.base())},Pb.apply(t,arguments),t},scaleSymlog:function e(){var t=Ux(fx());return t.copy=function(){return lx(t,e()).constant(t.constant())},Pb.apply(t,arguments)},scaleOrdinal:Ib,scaleImplicit:Rb,scalePow:$x,scaleSqrt:function(){return $x.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=dx(),r=[0,1],o=!1;function i(e){var r=Gx(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(qx(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,ox)).map(qx)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},Pb.apply(i,arguments),Ax(i)},scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=Tb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[mb(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[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(gb),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},Pb.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[mb(i,e,0,o)]:t}function u(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,u()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,u()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},Pb.apply(Ax(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[mb(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},Pb.apply(i,arguments)},scaleTime:function(){return Pb.apply(rS(A_,T_,d_,f_,o_,n_,t_,e_,Qx,I_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Pb.apply(rS(E_,j_,O_,S_,v_,g_,h_,p_,Qx,L_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Ax(oS()(ax));return t.copy=function(){return iS(t,e())},Db.apply(t,arguments)},scaleSequentialLog:function e(){var t=Bx(oS()).domain([1,10]);return t.copy=function(){return iS(t,e()).base(t.base())},Db.apply(t,arguments)},scaleSequentialPow:aS,scaleSequentialSqrt:function(){return aS.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Ux(oS());return t.copy=function(){return iS(t,e()).constant(t.constant())},Db.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=ax;function r(e){if(null!=e&&!isNaN(e=+e))return n((mb(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(gb),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)=>Ab(t,r/e)))},r.copy=function(){return e(n).domain(t)},Db.apply(r,arguments)},scaleDiverging:function e(){var t=Ax(sS()(ax));return t.copy=function(){return iS(t,e())},Db.apply(t,arguments)},scaleDivergingLog:function e(){var t=Bx(sS()).domain([.1,1,10]);return t.copy=function(){return iS(t,e()).base(t.base())},Db.apply(t,arguments)},scaleDivergingPow:uS,scaleDivergingSqrt:function(){return uS.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Ux(sS());return t.copy=function(){return iS(t,e()).constant(t.constant())},Db.apply(t,arguments)},tickFormat:jx});function lS(e){return function(e){if(Array.isArray(e))return fS(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 fS(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 fS(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 fS(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 dS(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 pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dS(Object(n),!0).forEach((function(t){hS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gS(e,t,n){return Cf(e)||Cf(t)?n:tf(t)?Bs(e,t,n):Xn(t)?t(e):n}function yS(e,t,n,r){var o=gm(e,(function(e){return gS(e,t)}));if("number"===n){var i=o.filter((function(e){return ef(e)||parseFloat(e)}));return i.length?[sm(i),nm(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Cf(e)})):o).map((function(e){return tf(e)||e instanceof Date?e:""}))}var vS=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},mS=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Hv(n,_f.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.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,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:vS(t),value:o||r,payload:t.props}})),pS(pS(pS({},a.props),_f.getWithHeight(a,o)),{},{payload:t,item:a})):null},bS=function(e,t,n,r,o){var i=t.props.children,a=Uv(i,"ErrorBar").filter((function(e){return function(e,t,n){return!!Cf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=gS(t,n,0),o=Qo(r)?[sm(r),nm(r)]:[r,r],i=s.reduce((function(e,n){var r=gS(t,n,0),i=o[0]-Math.abs(Qo(r)?r[0]:r),a=o[1]+Math.abs(Qo(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},wS=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&bS(e,t,i,r)||yS(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},xS=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},_S=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},CS=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,u=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return u="angleAxis"===e.axisType?2*Jl(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+u,value:e,offset:u}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+u,value:e,offset:u}})):r.domain().map((function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}}))},SS=function(e,t,n){var r;return Xn(n)?r=n:Xn(t)&&(r=t),Xn(e)||r?function(t,n,o,i){Xn(e)&&e(t,n,o,i),Xn(r)&&r(t,n,o,i)}:null},OS=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:Lb(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Tx(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:Bb(),realScaleType:"point"}:"category"===o?{scale:Lb(),realScaleType:"band"}:{scale:Tx(),realScaleType:"linear"};if(Xl(r)){var s="scale".concat(pc(r));return{scale:(cS[s]||Bb)(),realScaleType:cS[s]?s:"point"}}return Xn(r)?{scale:r}:{scale:Bb(),realScaleType:"point"}},kS=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},ES=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},jS=function(e,t){if(!t||2!==t.length||!ef(t[0])||!ef(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ef(e[0])||e[0]<n)&&(o[0]=n),(!ef(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},AS={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=ql(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}vl(e,t)}},none:vl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}vl(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,d=(f-(l[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,c+=d*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=c/u)}n[a-1][1]+=n[a-1][0]=i,vl(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 o=0,i=0;i<t;++i){var a=ql(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},TS=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=bc([]),t=ml,n=vl,r=bl;function o(o){var i,a,s=Array.from(e.apply(this,arguments),wl),u=s.length,c=-1;for(const e of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=_c(t(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:bc(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:bc(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ml:"function"==typeof e?e:bc(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?vl:e,o):n},o}().keys(r).value((function(e,t){return+gS(e,t,0)})).order(ml).offset(AS[n]);return o(e)},MS=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain();if(!u.length)return null;var c=pb(u,o,a);return e.domain(function(e,t){return"number"===t?[sm(e),nm(e)]:e}(c,r)),{niceTicks:c}}if(o&&"number"===r){var l=e.domain();return{niceTicks:hb(l,o,a)}}return null},PS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Cf(o[t.dataKey])){var s=uf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var u=gS(o,Cf(a)?t.dataKey:a);return Cf(u)?null:t.scale(u)},DS=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=gS(i,t.dataKey,t.domain[a]);return Cf(s)?null:t.scale(s)-o/2+r},RS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},IS=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[sm(t.concat([e[0]]).filter(ef)),nm(t.concat([e[1]]).filter(ef))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},LS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BS=function(e,t,n){if(Xn(e))return e(t,n);if(!Qo(e))return t;var r=[];if(ef(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(LS.test(e[0])){var o=+LS.exec(e[0])[1];r[0]=t[0]-o}else Xn(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ef(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(NS.test(e[1])){var i=+NS.exec(e[1])[1];r[1]=t[1]+i}else Xn(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},FS=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 o=Bh(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var u=o[a],c=o[a-1];i=Math.min((u.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},zS=function(e,t,n){return e&&e.length?Zv(e,Bs(n,"type.defaultProps.domain"))?t:e:t},US=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,u=n.chartType;return pS(pS({},Sn(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:vS(e),value:gS(t,r),type:s,payload:t,chartType:u})};function HS(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 VS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HS(Object(n),!0).forEach((function(t){KS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $S(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 $S(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 $S(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 qS=Math.PI/180,GS=function(e){return 180*e/Math.PI},ZS=function(e,t,n,r){return{x:e+Math.cos(-qS*r)*n,y:t+Math.sin(-qS*r)*n}},YS=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},XS=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,u=e.endAngle,c=of(e.cx,i,i/2),l=of(e.cy,a,a/2),f=YS(i,a,n),d=of(e.innerRadius,f,0),p=of(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Cf(a.range))"angleAxis"===r?i=[s,u]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=WS(i=a.range,2);s=g[0],u=g[1]}var y=OS(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),kS(m);var b=MS(m,VS(VS({},a),{},{realScaleType:v})),w=VS(VS(VS({},a),b),{},{range:i,radius:p,realScaleType:v,scale:m,cx:c,cy:l,innerRadius:d,outerRadius:p,startAngle:s,endAngle:u});return VS(VS({},e),{},KS({},n,w))}),{})},JS=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,u=Math.acos(s);return r>i&&(u=2*Math.PI-u),{radius:a,angle:GS(u),angleInRadian:u}},QS=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},eO=function(e,t){var n=e.x,r=e.y,o=JS({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,u=t.outerRadius;if(i<s||i>u)return!1;if(0===i)return!0;var c,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,d=l.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;c=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;c=p>=d&&p<=f}return c?VS(VS({},t),{},{radius:i,angle:QS(p,t)}):null};function tO(e){return function(e){if(Array.isArray(e))return nO(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 nO(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 nO(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 nO(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 rO(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 oO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rO(Object(n),!0).forEach((function(t){iO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aO(){return aO=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},aO.apply(this,arguments)}var sO=function(e,t,n){var r,o,i=e.position,a=e.viewBox,u=e.offset,c=e.className,l=a,f=l.cx,d=l.cy,p=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(p+h)/2,b=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===i?(r=g+w*u,o=v):"insideEnd"===i?(r=y-w*u,o=!v):"end"===i&&(r=y+w*u,o=v),o=b<=0?o:!o;var x=ZS(f,d,m,r),_=ZS(f,d,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=Cf(e.id)?rf("recharts-radial-line-"):e.id;return s.default.createElement("text",aO({},n,{dominantBaseline:"central",className:mn("recharts-radial-bar-label",c)}),s.default.createElement("defs",null,s.default.createElement("path",{id:S,d:C})),s.default.createElement("textPath",{xlinkHref:"#".concat(S)},t))};function uO(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,u=e.content,c=e.className,l=void 0===c?"":c,f=e.textBreakAll;if(!r||Cf(i)&&Cf(a)&&!t.isValidElement(u)&&!Xn(u))return null;if(t.isValidElement(u))return t.cloneElement(u,e);if(Xn(u)){if(n=t.createElement(u,e),t.isValidElement(n))return n}else n=function(e){var t=e.value,n=e.formatter,r=Cf(e.children)?t:e.children;return Xn(n)?n(r):r}(e);var d=function(e){return ef(e.cx)}(r),p=Sn(e,!0);if(d&&("insideStart"===o||"insideEnd"===o||"end"===o))return sO(e,n,p);var h=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,u=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=ZS(i,a,u+n,c),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=ZS(i,a,(s+u)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,u=i.width,c=i.height,l=c>=0?1:-1,f=l*r,d=l>0?"end":"start",p=l>0?"start":"end",h=u>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return oO(oO({},{x:a+u/2,y:s-l*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:u}:{});if("bottom"===o)return oO(oO({},{x:a+u/2,y:s+c+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:u}:{});if("left"===o){var m={x:a-g,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return oO(oO({},m),n?{width:Math.max(m.x-n.x,0),height:c}:{})}if("right"===o){var b={x:a+u+g,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return oO(oO({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:u,height:c}:{};return"insideLeft"===o?oO({x:a+g,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?oO({x:a+u-g,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?oO({x:a+u/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?oO({x:a+u/2,y:s+c-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?oO({x:a+g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?oO({x:a+u-g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?oO({x:a+g,y:s+c-f,textAnchor:v,verticalAnchor:d},w):"insideBottomRight"===o?oO({x:a+u-g,y:s+c-f,textAnchor:y,verticalAnchor:d},w):bn(o)&&(ef(o.x)||Ql(o.x))&&(ef(o.y)||Ql(o.y))?oO({x:a+of(o.x,u),y:s+of(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):oO({x:a+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return s.default.createElement(Dv,aO({className:mn("recharts-label",l)},p,h,{breakAll:f}),n)}uO.displayName="Label",uO.defaultProps={offset:5};var cO=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,c=e.outerRadius,l=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ef(h)&&ef(g)){if(ef(l)&&ef(f))return{x:l,y:f,width:h,height:g};if(ef(d)&&ef(p))return{x:d,y:p,width:h,height:g}}return ef(l)&&ef(f)?{x:l,y:f,width:0,height:0}:ef(t)&&ef(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},lO=function(e,n){return e?!0===e?s.default.createElement(uO,{key:"label-implicit",viewBox:n}):tf(e)?s.default.createElement(uO,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===uO?t.cloneElement(e,{key:"label-implicit",viewBox:n}):s.default.createElement(uO,{key:"label-implicit",content:e,viewBox:n}):Xn(e)?s.default.createElement(uO,{key:"label-implicit",content:e,viewBox:n}):bn(e)?s.default.createElement(uO,aO({viewBox:n},e,{key:"label-implicit"})):null:null};uO.parseViewBox=cO,uO.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=cO(e),a=Uv(o,uO.displayName).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=lO(e.label,n||i);return[s].concat(tO(a))};var fO=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function dO(e){return function(e){if(Array.isArray(e))return pO(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 pO(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 pO(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 pO(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 hO(){return hO=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},hO.apply(this,arguments)}function gO(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 yO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach((function(t){vO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bO={valueAccessor:function(e){return Qo(e.value)?fO(e.value):e.value}};function wO(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,u=mO(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?s.default.createElement(Pn,{className:"recharts-label-list"},t.map((function(e,t){var c=Cf(r)?n(e,t):gS(e&&e.payload,r),l=Cf(i)?{}:{id:"".concat(i,"-").concat(t)};return s.default.createElement(uO,hO({},Sn(e,!0),u,l,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:a,viewBox:uO.parseViewBox(Cf(o)?e:yO(yO({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function xO(e,t){return e?!0===e?s.default.createElement(wO,{key:"labelList-implicit",data:t}):s.default.isValidElement(e)||Xn(e)?s.default.createElement(wO,{key:"labelList-implicit",data:t,content:e}):bn(e)?s.default.createElement(wO,hO({data:t},e,{key:"labelList-implicit"})):null:null}function _O(e){return _O="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},_O(e)}function CO(){return CO=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},CO.apply(this,arguments)}function SO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(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,r.key,r)}}function kO(e,t){return kO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kO(e,t)}function EO(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=AO(e);if(t){var o=AO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jO(this,n)}}function jO(e,t){return!t||"object"!==_O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function AO(e){return AO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},AO(e)}wO.displayName="LabelList",wO.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=Uv(o,wO.displayName).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));if(!r)return i;var a=xO(e.label,n);return[a].concat(dO(i))},wO.defaultProps=bO;var TO=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,u=e.cornerIsExternal,c=s*(a?1:-1)+r,l=Math.asin(s/c)/qS,f=u?o:o+i*l,d=u?o-i*l:o;return{center:ZS(t,n,c,f),circleTangency:ZS(t,n,r,f),lineTangency:ZS(t,n,c*Math.cos(l*qS),d),theta:l}},MO=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,u=ZS(t,n,o,i),c=ZS(t,n,o,s),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=ZS(t,n,r,i),d=ZS(t,n,r,s);l+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},PO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kO(e,t)}(a,t.PureComponent);var n,r,o,i=EO(a);function a(){return SO(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,f=e.className;if(o<r||c===l)return null;var d,p=mn("recharts-sector",f),h=o-r,g=of(i,h,0,!0);return d=g>0&&Math.abs(c-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,c=e.endAngle,l=Jl(c-u),f=TO({cx:t,cy:n,radius:o,angle:u,sign:l,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=TO({cx:t,cy:n,radius:o,angle:c,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(u-c):Math.abs(u-c)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):MO({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=TO({cx:t,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,S=x.theta,O=TO({cx:t,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(u-c):Math.abs(u-c)-S-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:l}):MO({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l}),s.default.createElement("path",CO({},Sn(this.props,!0),{className:p,d:d}))}}],r&&OO(n.prototype,r),o&&OO(n,o),a}();function DO(e){return DO="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},DO(e)}function RO(){return RO=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},RO.apply(this,arguments)}function IO(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 LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(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,r.key,r)}}function zO(e,t){return zO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zO(e,t)}function UO(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=VO(e);if(t){var o=VO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HO(this,n)}}function HO(e,t){return!t||"object"!==DO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VO(e){return VO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},VO(e)}PO.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var KO={curveBasisClosed:function(e){return new Zc(e)},curveBasisOpen:function(e){return new Yc(e)},curveBasis:function(e){return new Gc(e)},curveLinearClosed:function(e){return new al(e)},curveLinear:Sc,curveMonotoneX:function(e){return new fl(e)},curveMonotoneY:function(e){return new dl(e)},curveNatural:function(e){return new hl(e)},curveStep:function(e){return new yl(e,.5)},curveStepAfter:function(e){return new yl(e,1)},curveStepBefore:function(e){return new yl(e,0)}},WO=function(e){return e.x===+e.x&&e.y===+e.y},$O=function(e){return e.x},qO=function(e){return e.y},GO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zO(e,t)}(a,t.PureComponent);var n,r,o,i=UO(a);function a(){return BO(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(Xn(e))return e;var n="curve".concat(pc(e));return"curveMonotone"===n&&t?KO["".concat(n).concat("vertical"===t?"Y":"X")]:KO[n]||Sc}(n,i),u=a?r.filter((function(e){return WO(e)})):r;if(Qo(o)){var c=a?o.filter((function(e){return WO(e)})):o,l=u.map((function(e,t){return LO(LO({},e),{},{base:c[t]})}));return(e="vertical"===i?jc().y(qO).x1($O).x0((function(e){return e.base.x})):jc().x($O).y1(qO).y0((function(e){return e.base.y}))).defined(WO).curve(s),e(l)}return(e="vertical"===i&&ef(o)?jc().y(qO).x1($O).x0(o):ef(o)?jc().x($O).y1(qO).y0(o):Ec().x($O).y(qO)).defined(WO).curve(s),e(u)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var i=n&&n.length?this.getPath():r;return s.default.createElement("path",RO({},Sn(this.props),On(this.props),{className:mn("recharts-curve",t),d:i,ref:o}))}}],r&&FO(n.prototype,r),o&&FO(n,o),a}();function ZO(e){return ZO="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},ZO(e)}function YO(){return YO=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},YO.apply(this,arguments)}function XO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,r.key,r)}}function QO(e,t){return QO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QO(e,t)}function ek(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=nk(e);if(t){var o=nk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tk(this,n)}}function tk(e,t){return!t||"object"!==ZO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nk(e){return nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nk(e)}GO.defaultProps={type:"linear",points:[],connectNulls:!1};var rk=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(e+u*l[0],",").concat(t)),i+="L ".concat(e+n-u*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(e+n-u*l[2],",").concat(t+r)),i+="L ".concat(e+u*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+u*d,",").concat(t,"\n L ").concat(e+n-u*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n-u*d,",").concat(t+r,"\n L ").concat(e+u*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},ok=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(o,o+a),c=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=u&&n<=c&&r>=l&&r<=f}return!1},ik=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QO(e,t)}(a,t.PureComponent);var n,r,o,i=ek(a);function a(){var e;XO(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,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 e=this,t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.radius,u=t.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||i!==+i||0===o||0===i)return null;var y=mn("recharts-rectangle",u);return g?s.default.createElement(tp,{canBegin:c>0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:d,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return s.default.createElement(tp,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:h,easing:f},s.default.createElement("path",YO({},Sn(e.props,!0),{className:y,d:rk(o,i,n,r,a),ref:function(t){e.node=t}})))})):s.default.createElement("path",YO({},Sn(this.props,!0),{className:y,d:rk(n,r,o,i,a)}))}}],r&&JO(n.prototype,r),o&&JO(n,o),a}();function ak(e){return ak="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},ak(e)}function sk(){return sk=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},sk.apply(this,arguments)}function uk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(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,r.key,r)}}function fk(e,t){return fk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fk(e,t)}function dk(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=hk(e);if(t){var o=hk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pk(this,n)}}function pk(e,t){return!t||"object"!==ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hk(e){return hk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hk(e)}function gk(e){return function(e){if(Array.isArray(e))return yk(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 yk(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 yk(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 yk(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}ik.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vk=function(e){return e&&e.x===+e.x&&e.y===+e.y},mk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){vk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),vk(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(gk(e),gk(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},bk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fk(e,t)}(a,t.PureComponent);var n,r,o,i=dk(a);function a(){return ck(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,i=uk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var a=mn("recharts-polygon",n);if(r&&r.length){var u=i.stroke&&"none"!==i.stroke,c=function(e,t,n){var r=mk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(mk(t.reverse(),n).slice(1))}(t,r,o);return s.default.createElement("g",{className:a},s.default.createElement("path",sk({},Sn(i,!0),{fill:"Z"===c.slice(-1)?i.fill:"none",stroke:"none",d:c})),u?s.default.createElement("path",sk({},Sn(i,!0),{fill:"none",d:mk(t,o)})):null,u?s.default.createElement("path",sk({},Sn(i,!0),{fill:"none",d:mk(r,o)})):null)}var l=mk(t,o);return s.default.createElement("path",sk({},Sn(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",className:a,d:l}))}}])&&lk(n.prototype,r),o&&lk(n,o),a}();function wk(e){return wk="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},wk(e)}function xk(){return xk=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},xk.apply(this,arguments)}function _k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ck(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,r.key,r)}}function Sk(e,t){return Sk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sk(e,t)}function Ok(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=Ek(e);if(t){var o=Ek(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kk(this,n)}}function kk(e,t){return!t||"object"!==wk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ek(e){return Ek=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ek(e)}var jk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sk(e,t)}(a,t.PureComponent);var n,r,o,i=Ok(a);function a(){return _k(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,i=mn("recharts-dot",o);return t===+t&&n===+n&&r===+r?s.default.createElement("circle",xk({},Sn(this.props),On(this.props),{className:i,cx:t,cy:n,r:r})):null}}],r&&Ck(n.prototype,r),o&&Ck(n,o),a}();function Ak(e){return Ak="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},Ak(e)}function Tk(){return Tk=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},Tk.apply(this,arguments)}function Mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pk(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,r.key,r)}}function Dk(e,t){return Dk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dk(e,t)}function Rk(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=Lk(e);if(t){var o=Lk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ik(this,n)}}function Ik(e,t){return!t||"object"!==Ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lk(e){return Lk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lk(e)}var Nk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dk(e,t)}(a,t.PureComponent);var n,r,o,i=Rk(a);function a(){return Mk(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.top,u=e.left,c=e.className;return ef(t)&&ef(n)&&ef(r)&&ef(o)&&ef(i)&&ef(u)?s.default.createElement("path",Tk({},Sn(this.props,!0),{className:mn("recharts-cross",c),d:a.getPath(t,n,r,o,i,u)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&Pk(n.prototype,r),o&&Pk(n,o),a}();Nk.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Bk=Xv,Fk=mu,zk=rm;var Uk=function(e,t){return e&&e.length?Bk(e,Fk(t),zk):void 0},Hk=Xv,Vk=Jv,Kk=mu;var Wk=function(e,t){return e&&e.length?Hk(e,Kk(t),Vk):void 0};function $k(e){return $k="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},$k(e)}function qk(){return qk=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},qk.apply(this,arguments)}function Gk(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 Zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gk(Object(n),!0).forEach((function(t){Yk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(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,r.key,r)}}function eE(e,t){return eE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eE(e,t)}function tE(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=rE(e);if(t){var o=rE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nE(this,n)}}function nE(e,t){return!t||"object"!==$k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rE(e){return rE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rE(e)}var oE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eE(e,t)}(a,t.PureComponent);var n,r,o,i=tE(a);function a(){return Jk(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return ZS(o,i,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,o=e.ticks,i=Wk(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:Uk(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=Xk(e,["cx","cy","angle","ticks","axisLine"]),u=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),c=ZS(t,n,u[0],r),l=ZS(t,n,u[1],r),f=Zk(Zk(Zk({},Sn(a)),{},{fill:"none"},Sn(i)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return s.default.createElement("line",qk({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,u=t.stroke,c=Xk(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=Sn(c),d=Sn(r),p=n.map((function(t,n){var c=e.getTickValueCoord(t),p=Zk(Zk(Zk(Zk({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},f),{},{stroke:"none",fill:u},d),{},{index:n},c),{},{payload:t});return s.default.createElement(Pn,qk({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},kn(e.props,t,n)),a.renderTickItem(r,p,i?i(t.value,n):t.value))}));return s.default.createElement(Pn,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?s.default.createElement(Pn,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),uO.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,qk({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&Qk(n.prototype,r),o&&Qk(n,o),a}();function iE(e){return iE="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},iE(e)}function aE(){return aE=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},aE.apply(this,arguments)}function sE(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 uE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sE(Object(n),!0).forEach((function(t){cE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(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,r.key,r)}}function dE(e,t){return dE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dE(e,t)}function pE(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=gE(e);if(t){var o=gE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hE(this,n)}}function hE(e,t){return!t||"object"!==iE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gE(e){return gE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gE(e)}oE.displayName="PolarRadiusAxis",oE.axisType="radiusAxis",oE.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var yE=Math.PI/180,vE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dE(e,t)}(a,t.PureComponent);var n,r,o,i=pE(a);function a(){return lE(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=ZS(n,r,o,e.coordinate),u=ZS(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*yE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=uE(uE({},Sn(this.props)),{},{fill:"none"},Sn(o));if("circle"===i)return s.default.createElement(jk,aE({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map((function(e){return ZS(t,n,r,e.coordinate)}));return s.default.createElement(bk,aE({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,u=t.stroke,c=Sn(this.props),l=Sn(r),f=uE(uE({},c),{},{fill:"none"},Sn(o)),d=n.map((function(t,n){var d=e.getTickLineCoord(t),p=uE(uE(uE({textAnchor:e.getTickTextAnchor(t)},c),{},{stroke:"none",fill:u},l),{},{index:n,payload:t,x:d.x2,y:d.y2});return s.default.createElement(Pn,aE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},kn(e.props,t,n)),o&&s.default.createElement("line",aE({className:"recharts-polar-angle-axis-tick-line"},f,d)),r&&a.renderTickItem(r,p,i?i(t.value,n):t.value))}));return s.default.createElement(Pn,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:s.default.createElement(Pn,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,aE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&fE(n.prototype,r),o&&fE(n,o),a}();vE.displayName="PolarAngleAxis",vE.axisType="angleAxis",vE.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var mE=Gi(Object.getPrototypeOf,Object),bE=Gn,wE=mE,xE=di,_E=Function.prototype,CE=Object.prototype,SE=_E.toString,OE=CE.hasOwnProperty,kE=SE.call(Object);var EE=function(e){if(!xE(e)||"[object Object]"!=bE(e))return!1;var t=wE(e);if(null===t)return!0;var n=OE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&SE.call(n)==kE};function jE(e){return jE="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},jE(e)}function AE(){return AE=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},AE.apply(this,arguments)}function TE(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 ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(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,r.key,r)}}function RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function IE(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=NE(e);if(t){var o=NE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LE(this,n)}}function LE(e,t){return!t||"object"!==jE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function NE(e){return NE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},NE(e)}var BE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RE(e,t)}(a,t.PureComponent);var n,r,o,i=IE(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=i.call(this,e)).state=void 0,t.id=rf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Xn(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Xn(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},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(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,i=t.valueKey,u=Sn(this.props),c=Sn(n),l=Sn(r),f=n&&n.offsetRadius||20,d=e.map((function(e,t){var d=(e.startAngle+e.endAngle)/2,p=ZS(e.cx,e.cy,e.outerRadius+f,d),h=ME(ME(ME(ME({},u),e),{},{stroke:"none"},c),{},{index:t,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=ME(ME(ME(ME({},u),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[ZS(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),y=o;return Cf(o)&&Cf(i)?y="value":Cf(o)&&(y=i),s.default.createElement(Pn,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,gS(e,y)))}));return s.default.createElement(Pn,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,i=n.inactiveShape;return e.map((function(e,n){var u=i&&t.hasActiveIndex()?i:null,c=t.isActiveIndex(n)?r:u,l=ME(ME({},e),{},{stroke:o?e.fill:e.stroke});return s.default.createElement(Pn,AE({className:"recharts-pie-sector"},kn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(c,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state,l=c.prevSectors,f=c.prevIsAnimationActive;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],i=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],a=t>0?Bs(e,"paddingAngle",0):0;if(n){var s=sf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),u=ME(ME({},e),{},{startAngle:i+a,endAngle:i+s(r)+a});o.push(u),i=u.endAngle}else{var c=e.endAngle,f=e.startAngle,d=sf(0,c-f)(r),p=ME(ME({},e),{},{startAngle:i+a,endAngle:i+d+a});o.push(p),i=p.endAngle}})),s.default.createElement(Pn,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Zv(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,i=e.cx,a=e.cy,u=e.innerRadius,c=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!ef(i)||!ef(a)||!ef(u)||!ef(c))return null;var d=mn("recharts-pie",r);return s.default.createElement(Pn,{className:d},this.renderSectors(),o&&this.renderLabels(n),uO.renderCallByParent(this.props,null,!1),(!l||f)&&wO.renderCallByParent(this.props,n,!1))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(GO,AE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(s.default.isValidElement(e))return s.default.cloneElement(e,t);var r=n;return Xn(e)&&(r=e(t),s.default.isValidElement(r))?r:s.default.createElement(Dv,AE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):EE(e)?s.default.createElement(PO,AE({},t,e)):s.default.createElement(PO,t)}}],r&&DE(n.prototype,r),o&&DE(n,o),a}();BE.displayName="Pie",BE.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:!Qh.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},BE.parseDeltaAngle=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),360)},BE.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Sn(e.props),i=Uv(r,ky.displayName);return n&&n.length?n.map((function(e,t){return ME(ME(ME({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return ME(ME({},o),e.props)})):[]},BE.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=YS(o,i);return{cx:r+of(e.props.cx,o,o/2),cy:n+of(e.props.cy,i,i/2),innerRadius:of(e.props.innerRadius,a,0),outerRadius:of(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},BE.getComposedData=function(e){var t=e.item,n=e.offset,r=BE.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,u=o.paddingAngle,c=o.dataKey,l=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=BE.parseCoordinateOfPie(t,n),g=BE.parseDeltaAngle(a,s),y=Math.abs(g),v=c;Cf(c)&&Cf(f)?(Oy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Cf(c)&&(Oy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==gS(e,v,0)})).length,x=y-w*p-(y>=360?w:w-1)*u,_=r.reduce((function(e,t){var n=gS(t,v,0);return e+(ef(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=gS(e,v,0),o=gS(e,l,t),s=(ef(r)?r:0)/_,c=(n=t?b.endAngle+Jl(g)*u*(0!==r?1:0):a)+Jl(g)*((0!==r?p:0)+s*x),f=(n+c)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:d}],w=ZS(h.cx,h.cy,y,f);return b=ME(ME(ME({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:gS(e,v),startAngle:n,endAngle:c,payload:e,paddingAngle:Jl(g)*u})})));return ME(ME({},h),{},{sectors:m,data:r})};var FE={exports:{}};var zE=function(e){return e&&e.length?e[0]:void 0},UE=it(FE.exports=zE);function HE(e){return HE="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},HE(e)}function VE(){return VE=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},VE.apply(this,arguments)}function KE(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 WE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KE(Object(n),!0).forEach((function(t){$E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GE(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,r.key,r)}}function ZE(e,t){return ZE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZE(e,t)}function YE(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=JE(e);if(t){var o=JE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return XE(this,n)}}function XE(e,t){return!t||"object"!==HE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function JE(e){return JE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JE(e)}var QE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZE(e,t)}(a,t.PureComponent);var n,r,o,i=YE(a);function a(){var e;qE(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return n=a,r=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=Sn(this.props),i=Sn(n),u=e.map((function(e,t){var s=WE(WE(WE({key:"dot-".concat(t),r:3},o),i),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,s)}));return s.default.createElement(Pn,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,i=n.isRange,a=n.baseLinePoints,u=n.connectNulls;return t=s.default.isValidElement(r)?s.default.cloneElement(r,WE(WE({},this.props),{},{points:e})):Xn(r)?r(WE(WE({},this.props),{},{points:e})):s.default.createElement(bk,VE({},Sn(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:i?a:null,connectNulls:u})),s.default.createElement(Pn,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevPoints;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=c&&c.length/n.length,i=n.map((function(e,t){var n=c&&c[Math.floor(t*o)];if(n){var i=sf(n.x,e.x),a=sf(n.y,e.y);return WE(WE({},e),{},{x:i(r),y:a(r)})}var s=sf(e.cx,e.x),u=sf(e.cy,e.y);return WE(WE({},e),{},{x:s(r),y:u(r)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&Zv(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var i=this.state.isAnimationFinished,a=mn("recharts-radar",n);return s.default.createElement(Pn,{className:a},this.renderPolygon(),(!o||i)&&wO.renderCallByParent(this.props,r))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,VE({},t,{className:"recharts-radar-dot"}))}}],r&&GE(n.prototype,r),o&&GE(n,o),a}();function ej(e){return ej="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},ej(e)}function tj(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 nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ij(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aj(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,r.key,r)}}function sj(e,t){return sj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sj(e,t)}function uj(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=lj(e);if(t){var o=lj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lj(e){return lj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lj(e)}QE.displayName="Radar",QE.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QE.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,u=!1,c=[];r.forEach((function(e,r){var l=gS(e,n.dataKey,r),f=gS(e,o),d=n.scale(l)+(i||0),p=Qo(f)?fO(f):f,h=Cf(p)?void 0:t.scale(p);Qo(f)&&f.length>=2&&(u=!0),c.push(WE(WE({},ZS(a,s,h,d)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:d,payload:e}))}));var l=[];return u&&c.forEach((function(e){if(Qo(e.value)){var n=UE(e.value),r=Cf(n)?void 0:t.scale(n);l.push(WE(WE({},e),{},{radius:r},ZS(a,s,r,e.angle)))}else l.push(e)})),{points:c,isRange:u,baseLinePoints:l}};var fj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sj(e,t)}(a,t.PureComponent);var n,r,o,i=uj(a);function a(){var e;ij(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Jl(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,u=oj(n,["shape","activeShape","activeIndex","cornerRadius"]),c=Sn(u);return e.map((function(e,n){var l=nj(nj(nj(nj({},c),{},{cornerRadius:s},e),kn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:u.forceCornerRadius,cornerIsExternal:u.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevData;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.startAngle,e.startAngle),i=sf(n.endAngle,e.endAngle);return nj(nj({},e),{},{startAngle:o(r),endAngle:i(r)})}var a=e.endAngle,s=e.startAngle,u=sf(s,a);return nj(nj({},e),{},{endAngle:u(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Sn(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=oj(e,["value","background"]);if(!i)return null;var u=nj(nj(nj(nj(nj({cornerRadius:n},s),{},{fill:"#eee"},i),r),kn(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,u)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,i=e.isAnimationActive;if(t||!n||!n.length)return null;var a=this.state.isAnimationFinished,u=mn("recharts-area",r);return s.default.createElement(Pn,{className:u},o&&s.default.createElement(Pn,{className:"recharts-radial-bar-background"},this.renderBackground(n)),s.default.createElement(Pn,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!i||a)&&wO.renderCallByParent(nj(nj({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(PO,t)}}],r&&aj(n.prototype,r),o&&aj(n,o),a}();fj.displayName="RadialBar",fj.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},fj.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,u=e.dataKey,c=e.stackedData,l=e.barPosition,f=e.bandSize,d=e.dataStartIndex,p=ES(l,t);if(!p)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=c?w.scale.domain():null,_=RS({numericAxis:w}),C=Uv(m,ky.displayName);return{data:s.map((function(e,s){var l,v,m,w,S,O;if(c?l=jS(c[d+s],x):(l=gS(e,u),Qo(l)||(l=[_,l])),"radial"===y){v=DS({axis:r,ticks:o,bandSize:f,offset:p.offset,entry:e,index:s}),S=i.scale(l[1]),w=i.scale(l[0]),m=v+p.size;var k=S-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))S+=Jl(k||b)*(Math.abs(b)-Math.abs(k));O={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),S=(w=DS({axis:i,ticks:a,bandSize:f,offset:p.offset,entry:e,index:s}))+p.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Jl(E||b)*(Math.abs(b)-Math.abs(E))}return nj(nj(nj(nj({},e),O),{},{payload:e,value:c?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:S},C&&C[s]&&C[s].props),{},{tooltipPayload:[US(t,e)],tooltipPosition:ZS(h,g,(v+m)/2,(w+S)/2)})})),layout:y}};var dj=Math.ceil,pj=Math.max;var hj=kg;var gj=function(e){return e?Infinity===(e=hj(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},yj=function(e,t,n,r){for(var o=-1,i=pj(dj((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},vj=Rh,mj=gj;var bj=function(e){return function(t,n,r){return r&&"number"!=typeof r&&vj(t,n,r)&&(n=r=void 0),t=mj(t),void 0===n?(n=t,t=0):n=mj(n),r=void 0===r?t<n?1:-1:mj(r),yj(t,n,r,e)}}();function wj(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 xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(n),!0).forEach((function(t){_j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cj=["Webkit","Moz","O","ms"];function Sj(e){return Sj="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},Sj(e)}function Oj(){return Oj=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},Oj.apply(this,arguments)}function kj(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 Ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){jj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aj(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,r.key,r)}}function Tj(e,t){return Tj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tj(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=Rj(e);if(t){var o=Rj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pj(this,n)}}function Pj(e,t){return!t||"object"!==Sj(t)&&"function"!=typeof t?Dj(e):t}function Dj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rj(e){return Rj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rj(e)}var Ij=function(e){return e.changedTouches&&!!e.changedTouches.length},Lj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tj(e,t)}(a,t.PureComponent);var n,r,o,i=Mj(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=i.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=Ij(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Dj(t),"startX"),endX:t.handleTravellerDragStart.bind(Dj(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,o=this.props,i=o.gap,s=o.data.length-1,u=Math.min(t,n),c=Math.max(t,n),l=a.getIndexInRange(r,u),f=a.getIndexInRange(r,c);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=gS(n[e],o,e);return Xn(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-u-o,a+s-u-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===l||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Ij(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,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,d=u.onChange,p=u.gap,h=u.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((jj(t={},o,s+y),jj(t,"brushMoveStartX",e.pageX),t),(function(){var e;d&&(e=h.length-1,("startX"===o&&(i>a?m%p==0:b%p==0)||i<a&&b===e||"endX"===o&&(i>a?b%p==0:m%p==0)||i>a&&b===e)&&d(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.default.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,u=e.children,c=e.padding,l=t.Children.only(u);return l?s.default.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,u=n.traveller,c=Math.max(e,this.props.x),l=Ej(Ej({},Sn(this.props)),{},{x:c,y:r,width:o,height:i});return s.default.createElement(Pn,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(u,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,u=Math.min(e,t)+a,c=Math.max(Math.abs(t-e)-a,0);return s.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:a};return s.default.createElement(Pn,{className:"recharts-brush-texts"},s.default.createElement(Dv,Oj({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+o/2},f),this.getTextOfTick(t)),s.default.createElement(Dv,Oj({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,c=e.alwaysShowText,l=this.state,f=l.startX,d=l.endX,p=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!ef(o)||!ef(i)||!ef(a)||!ef(u)||a<=0||u<=0)return null;var y=mn("recharts-brush",n),v=1===s.default.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=Cj.reduce((function(e,r){return xj(xj({},e),{},_j({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s.default.createElement(Pn,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return s.default.createElement(s.default.Fragment,null,s.default.createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),s.default.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),s.default.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,u=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return Ej({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,u=Bb().domain(bj(0,s)).range([o,o+i-a]),c=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(n),endX:u(r),scale:u,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&Aj(n.prototype,r),o&&Aj(n,o),a}();Lj.displayName="Brush",Lj.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 Nj=Yp;var Bj=Io,Fj=mu,zj=function(e,t){var n;return Nj(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Uj=Qo,Hj=Rh;var Vj=function(e,t,n){var r=Uj(e)?Bj:zj;return n&&Hj(e,t,n)&&(t=void 0),r(e,Fj(t))},Kj=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var Wj=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},$j=Yp;var qj=Wj,Gj=function(e,t){var n=!0;return $j(e,(function(e,r,o){return n=!!t(e,r,o)})),n},Zj=mu,Yj=Qo,Xj=Rh;var Jj=function(e,t,n){var r=Yj(e)?qj:Gj;return n&&Xj(e,t,n)&&(t=void 0),r(e,Zj(t))},Qj=wh;var eA=function(e,t,n){"__proto__"==t&&Qj?Qj(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},tA=eA,nA=Gp,rA=mu;var oA=function(e,t){var n={};return t=rA(t),nA(e,(function(e,r,o){tA(n,r,t(e,r,o))})),n};function iA(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,r.key,r)}}function aA(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 sA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aA(Object(n),!0).forEach((function(t){uA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cA=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,u=e.children,c=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Hv(u,"Bar");return c.reduce((function(i,a){var u,c,d,p,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],S=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(O[t-1]||0),S))}));var k=S/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(u=k*E/2),"no-gap"===g.padding){var j=of(e.barCategoryGap,k*E),A=k*E/2;u=A-j-(A-j)/E*j}}c="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:g.range,x&&(c=[c[1],c[0]]);var T=OS(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(c),kS(M);var D=MS(M,sA(sA({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,d=n.left,p=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,d=l[_]-h*g.width,p=n.top);var R=sA(sA(sA({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=FS(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,sA(sA({},i),{},uA({},a,R))}),{})},lA=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},fA=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=void 0,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 o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(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&&iA(t.prototype,n),r&&iA(t,r),e}();fA.EPS=1e-4;var dA=function(e){var t=Object.keys(e).reduce((function(t,n){return sA(sA({},t),{},uA({},n,fA.create(e[n])))}),{});return sA(sA({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return oA(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return Jj(e,(function(e,n){return t[n].isInRange(e)}))}})};function pA(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 hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vA(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 vA(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 vA(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 mA(){return mA=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},mA.apply(this,arguments)}function bA(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,i=e.yAxis,a=e.shape,u=e.className,c=e.alwaysShow,l=e.clipPathId;Oy(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,u=i.width,c=i.height,l=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:l});if(Kj(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+u,y:p},{x:a,y:p}];return"left"===d?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(Kj(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+c},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return Kj(o,"discard")&&Vj(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(dA({x:o.scale,y:i.scale}),tf(t),tf(n),r&&2===r.length,e);if(!f)return null;var d=yA(f,2),p=d[0],h=p.x,g=p.y,y=d[1],v=y.x,m=y.y,b=hA(hA({clipPath:Kj(e,"hidden")?"url(#".concat(l,")"):void 0},Sn(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return s.default.createElement(Pn,{className:mn("recharts-reference-line",u)},function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement("line",mA({},t,{className:"recharts-reference-line-line"}))}(a,b),uO.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return lA({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function wA(){return wA=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},wA.apply(this,arguments)}function xA(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 _A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xA(Object(n),!0).forEach((function(t){CA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}bA.displayName="ReferenceLine",bA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function SA(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,i=e.clipPathId,a=tf(t),u=tf(n);if(Oy(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!u)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=dA({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return Kj(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!c)return null;var l=c.x,f=c.y,d=e.shape,p=e.className,h=_A(_A({clipPath:Kj(e,"hidden")?"url(#".concat(i,")"):void 0},Sn(e,!0)),{},{cx:l,cy:f});return s.default.createElement(Pn,{className:mn("recharts-reference-dot",p)},SA.renderDot(d,h),uO.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function OA(){return OA=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},OA.apply(this,arguments)}function kA(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 EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kA(Object(n),!0).forEach((function(t){jA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}SA.displayName="ReferenceDot",SA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},SA.renderDot=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,wA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function AA(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,i=e.className,a=e.alwaysShow,u=e.clipPathId;Oy(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=tf(t),l=tf(n),f=tf(r),d=tf(o),p=e.shape;if(!(c||l||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,u=o.y2,c=o.xAxis,l=o.yAxis;if(!c||!l)return null;var f=dA({x:c.scale,y:l.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Kj(o,"discard")||f.isInRange(d)&&f.isInRange(p)?lA(d,p):null}(c,l,f,d,e);if(!h&&!p)return null;var g=Kj(e,"hidden")?"url(#".concat(u,")"):void 0;return s.default.createElement(Pn,{className:mn("recharts-reference-area",i)},AA.renderRect(p,EA(EA({clipPath:g},Sn(e,!0)),h)),uO.renderCallByParent(e,h))}function TA(e){return TA="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},TA(e)}function MA(){return MA=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},MA.apply(this,arguments)}function PA(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 DA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(n),!0).forEach((function(t){RA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LA(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,r.key,r)}}function NA(e,t){return NA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},NA(e,t)}function BA(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=zA(e);if(t){var o=zA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FA(this,n)}}function FA(e,t){return!t||"object"!==TA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zA(e){return zA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zA(e)}AA.displayName="ReferenceArea",AA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},AA.renderRect=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(ik,OA({},t,{className:"recharts-reference-area-rect"}))};var UA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&NA(e,t)}(a,t.Component);var n,r,o,i=BA(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=i.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=IA(e,["viewBox"]),o=this.props,i=o.viewBox,a=IA(o,["viewBox"]);return!Rv(n,i)||!Rv(r,a)||!Rv(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,o,i,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||p,m=ef(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=u+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=u+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,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 e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.mirror,u=e.axisLine,c=DA(DA(DA({},Sn(this.props)),Sn(u)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);c=DA(DA({},c),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===i&&!a||"right"===i&&a);c=DA(DA({},c),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s.default.createElement("line",MA({},c,{className:mn("recharts-cartesian-axis-line",Bs(u,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,i=o.tickLine,u=o.stroke,c=o.tick,l=o.tickFormatter,f=o.unit,d=a.getTicks(DA(DA({},this.props),{},{ticks:e}),t,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Sn(this.props),y=Sn(c),v=DA(DA({},g),{},{fill:"none"},Sn(i)),m=d.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=DA(DA(DA(DA({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:u},y),m),{},{index:t,payload:e,visibleTicksCount:d.length,tickFormatter:l});return s.default.createElement(Pn,MA({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},kn(r.props,e,t)),i&&s.default.createElement("line",MA({},v,o,{className:mn("recharts-cartesian-axis-tick-line",Bs(i,"className"))})),c&&a.renderTickItem(c,b,"".concat(Xn(l)?l(e.value,t):e.value).concat(f||"")))}));return s.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var u=this.props,c=u.ticks,l=IA(u,["ticks"]),f=c;return Xn(i)&&(f=c&&c.length>0?i(this.props):i(l)),r<=0||o<=0||!f||!f.length?null:s.default.createElement(Pn,{className:mn("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),uO.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,u=e.orientation,c=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?ef(c)||Qh.isSsr?a.getNumberIntervalTicks(o,"number"==typeof c&&ef(c)?c:0):"preserveStartEnd"===c?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===c?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,u=e.minTickGap,c=e.unit,l=e.fontSize,f=e.letterSpacing,d=a.x,p=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=c&&"width"===y?hv(c,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Jl(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?d:p,r="width"===y?d+h:p+g):(n="width"===y?d+h:p+g,r="width"===y?d:p),t){var x=o[b-1],_=Xn(i)?i(x.value,b-1):x.value,C=hv(_,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*C/2-r);v[b-1]=x=DA(DA({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+u),v[b-1]=DA(DA({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=Xn(i)?i(E.value,k):E.value,A=hv(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=DA(DA({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=DA(DA({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+u),v[k]=DA(DA({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,u=e.unit,c=e.fontSize,l=e.letterSpacing,f=i.x,d=i.y,p=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=u&&"width"===g?hv(u,{fontSize:c,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Jl(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:d,n="width"===g?f+p:d+h):(t="width"===g?f+p:d+h,n="width"===g?f:d);for(var w=m-1;w>=0;w--){var x=v[w],_=Xn(o)?o(x.value,m-w-1):x.value,C=hv(_,{fontSize:c,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*C/2-n);v[w]=x=DA(DA({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=DA(DA({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=DA(DA({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,MA({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&LA(n.prototype,r),o&&LA(n,o),a}();function HA(e){return HA="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},HA(e)}function VA(){return VA=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},VA.apply(this,arguments)}function KA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WA(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 $A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WA(Object(n),!0).forEach((function(t){qA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(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,r.key,r)}}function YA(e,t){return YA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YA(e,t)}function XA(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=QA(e);if(t){var o=QA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JA(this,n)}}function JA(e,t){return!t||"object"!==HA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function QA(e){return QA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},QA(e)}UA.displayName="CartesianAxis",UA.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 eT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YA(e,t)}(a,t.PureComponent);var n,r,o,i=XA(a);function a(){return GA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,i=n.horizontal;if(!e||!e.length)return null;var u=e.map((function(e,n){var s=$A($A({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(i,s)}));return s.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,i=n.vertical;if(!e||!e.length)return null;var u=e.map((function(e,n){var s=$A($A({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(i,s)}));return s.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,c=e.slice().sort((function(e,t){return e-t}));o!==c[0]&&c.unshift(0);var l=c.map((function(e,n){var l=c[n+1]?c[n+1]-e:o+a-e;if(l<=0)return null;var f=n%t.length;return s.default.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:i,width:l,height:u,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,c=e.slice().sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var l=c.map((function(e,n){var l=c[n+1]?c[n+1]-e:i+u-e;if(l<=0)return null;var f=n%t.length;return s.default.createElement("rect",{key:"react-".concat(n),y:Math.round(e+i-i),x:o,height:l,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,i=t.width,a=t.height;return s.default.createElement("rect",{x:r,y:o,width:i,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.horizontal,a=e.vertical,u=e.horizontalCoordinatesGenerator,c=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!ef(r)||r<=0||!ef(o)||o<=0||!ef(t)||t!==+t||!ef(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!Xn(u)||(y=u({yAxis:f,width:p,height:h,offset:d})),v&&v.length||!Xn(c)||(v=c({xAxis:l,width:p,height:h,offset:d})),s.default.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(y),a&&this.renderVertical(v),i&&this.renderHorizontalStripes(y),a&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,t){var n;if(s.default.isValidElement(e))n=s.default.cloneElement(e,t);else if(Xn(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,u=t.key,c=KA(t,["x1","y1","x2","y2","key"]);n=s.default.createElement("line",VA({},Sn(c),{x1:r,y1:o,x2:i,y2:a,fill:"none",key:u}))}return n}}],r&&ZA(n.prototype,r),o&&ZA(n,o),a}();function tT(){return tT=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},tT.apply(this,arguments)}function nT(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rT(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 rT(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 rT(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 oT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iT(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,u=e.xAxis,c=e.yAxis,l=oT(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Sn(l),d=i.map((function(e,i){var l=a(e,o),d=l.x,p=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=nT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=u.scale,x=p+t,_=x+r,C=x-r,S=w(h-y),O=w(h+v);m.push({x1:O,y1:_,x2:O,y2:C}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:_,x2:S,y2:C})}else if("horizontal"===n){var k=c.scale,E=d+t,j=E-r,A=E+r,T=k(h-y),M=k(h+v);m.push({x1:j,y1:M,x2:A,y2:M}),m.push({x1:E,y1:T,x2:E,y2:M}),m.push({x1:j,y1:T,x2:A,y2:T})}return s.default.createElement(Pn,tT({className:"recharts-errorBar",key:"bar-".concat(i)},f),m.map((function(e,t){return s.default.createElement("line",tT({},e,{key:"line-".concat(t)}))})))}));return s.default.createElement(Pn,{className:"recharts-errorBars"},d)}function aT(e){return aT="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},aT(e)}function sT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uT(){return uT=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},uT.apply(this,arguments)}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 lT(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){fT(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 fT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(e){return function(e){if(Array.isArray(e))return pT(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 pT(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 pT(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 pT(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 hT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gT(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,r.key,r)}}function yT(e,t){return yT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yT(e,t)}function vT(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=bT(e);if(t){var o=bT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mT(this,n)}}function mT(e,t){return!t||"object"!==aT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bT(e){return bT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bT(e)}eT.displayName="CartesianGrid",eT.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},iT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},iT.displayName="ErrorBar";var wT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yT(e,t)}(a,t.PureComponent);var n,r,o,i=vT(a);function a(){var e;hT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},e.getStrokeDasharray=function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,u=[],c=0,l=0;;l+=n[c],++c)if(l+n[c]>i){u=[].concat(dT(n.slice(0,c)),[i-l]);break}var f=u.length%2==0?[0,s]:[s];return[].concat(dT(a.repeat(n,o)),dT(u),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=rf("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=Uv(i,iT.displayName);if(!a)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gS(e.payload,t)}}return a.map((function(e,i){return s.default.cloneElement(e,{key:"bar-".concat(i),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:u})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,i=n.dataKey,u=Sn(this.props),c=Sn(r,!0),l=o.map((function(e,t){var n=lT(lT(lT({key:"dot-".concat(t),r:3},u),c),{},{value:e.value,dataKey:i,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s.default.createElement(Pn,uT({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,i=o.type,a=o.layout,u=o.connectNulls;o.ref;var c=sT(o,["type","layout","connectNulls","ref"]),l=lT(lT(lT({},Sn(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:i,layout:a,connectNulls:u});return s.default.createElement(GO,uT({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.strokeDasharray,a=r.isAnimationActive,u=r.animationBegin,c=r.animationDuration,l=r.animationEasing,f=r.animationId,d=r.animateNewValues,p=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return s.default.createElement(tp,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var s=y.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return lT(lT({},e),{},{x:o(a),y:i(a)})}if(d){var u=sf(2*p,e.x),c=sf(h/2,e.y);return lT(lT({},e),{},{x:u(a),y:c(a)})}return lT(lT({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var c,l=sf(0,v)(a);if(i){var f="".concat(i).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(l,v,f)}else c="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!Zv(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.xAxis,a=e.yAxis,u=e.top,c=e.left,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=mn("recharts-line",o),v=i&&i.allowDataOverflow||a&&a.allowDataOverflow,m=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:y},v?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(m)},s.default.createElement("rect",{x:c,y:u,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!d||h)&&wO.renderCallByParent(this.props,r))}}],o=[{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(dT(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(dT(r),dT(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(s.default.isValidElement(e))n=s.default.cloneElement(e,t);else if(Xn(e))n=e(t);else{var r=mn("recharts-line-dot",e?e.className:"");n=s.default.createElement(jk,uT({},t,{className:r}))}return n}}],r&&gT(n.prototype,r),o&&gT(n,o),a}();function xT(e){return xT="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},xT(e)}function _T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CT(){return CT=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},CT.apply(this,arguments)}function ST(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 OT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(n),!0).forEach((function(t){kT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jT(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,r.key,r)}}function AT(e,t){return AT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AT(e,t)}function TT(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=PT(e);if(t){var o=PT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MT(this,n)}}function MT(e,t){return!t||"object"!==xT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function PT(e){return PT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},PT(e)}wT.displayName="Line",wT.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Qh.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},wT.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,c=e.offset,l=t.layout;return lT({points:u.map((function(e,t){var u=gS(e,a);return"horizontal"===l?{x:PS({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Cf(u)?null:r.scale(u),value:u,payload:e}:{x:Cf(u)?null:n.scale(u),y:PS({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:u,payload:e}})),layout:l},c)};var DT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AT(e,t)}(a,t.PureComponent);var n,r,o,i=TT(a);function a(){var e;ET(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!0},e.id=rf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e}return n=a,r=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,i=o.dot,u=o.points,c=o.dataKey,l=Sn(this.props),f=Sn(i,!0),d=u.map((function(e,t){var n=OT(OT(OT({key:"dot-".concat(t),r:3},l),f),{},{dataKey:c,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(i,n)})),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s.default.createElement(Pn,CT({className:"recharts-area-dots"},p),d)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].x,a=r[r.length-1].x,u=e*Math.abs(i-a),c=nm(r.map((function(e){return e.y||0})));return ef(n)&&"number"==typeof n?c=Math.max(n,c):n&&Qo(n)&&n.length&&(c=Math.max(nm(n.map((function(e){return e.y||0}))),c)),ef(c)?s.default.createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].y,a=r[r.length-1].y,u=e*Math.abs(i-a),c=nm(r.map((function(e){return e.x||0})));return ef(n)&&"number"==typeof n?c=Math.max(n,c):n&&Qo(n)&&n.length&&(c=Math.max(nm(n.map((function(e){return e.x||0}))),c)),ef(c)?s.default.createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange;o.ref;var f=_T(o,["layout","type","stroke","connectNulls","isRange","ref"]);return s.default.createElement(Pn,{clipPath:n?"url(#clipPath-".concat(r,")"):null},s.default.createElement(GO,CT({},Sn(f,!0),{points:e,connectNulls:c,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&s.default.createElement(GO,CT({},Sn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})),"none"!==u&&l&&s.default.createElement(GO,CT({},Sn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.baseLine,a=r.isAnimationActive,u=r.animationBegin,c=r.animationDuration,l=r.animationEasing,f=r.animationId,d=this.state,p=d.prevPoints,h=d.prevBaseLine;return s.default.createElement(tp,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(p){var u,c=p.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*c);if(p[n]){var r=p[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return OT(OT({},e),{},{x:o(a),y:i(a)})}return e}));return u=ef(i)&&"number"==typeof i?sf(h,i)(a):Cf(i)||ql(i)?sf(h,0)(a):i.map((function(e,t){var n=Math.floor(t*c);if(h[n]){var r=h[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return OT(OT({},e),{},{x:o(a),y:i(a)})}return e})),n.renderAreaStatically(l,u,e,t)}return s.default.createElement(Pn,null,s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(a))),s.default.createElement(Pn,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,u=a.prevBaseLine,c=a.totalLength;return i&&r&&r.length&&(!s&&c>0||!Zv(s,r)||!Zv(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,u=e.xAxis,c=e.yAxis,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=mn("recharts-area",o),v=u&&u.allowDataOverflow||c&&c.allowDataOverflow,m=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:y},v?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(m)},s.default.createElement("rect",{x:a,y:i,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!d||h)&&wO.renderCallByParent(this.props,r))}}],o=[{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&&jT(n.prototype,r),o&&jT(n,o),a}();function RT(e){return RT="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},RT(e)}function IT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LT(){return LT=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},LT.apply(this,arguments)}function NT(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 BT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NT(Object(n),!0).forEach((function(t){FT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UT(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,r.key,r)}}function HT(e,t){return HT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},HT(e,t)}function VT(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=WT(e);if(t){var o=WT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KT(this,n)}}function KT(e,t){return!t||"object"!==RT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function WT(e){return WT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},WT(e)}DT.displayName="Area",DT.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DT.getBaseValue=function(e,t,n,r){var o=e.layout,i=t.props.baseValue;if(ef(i)&&"number"==typeof i)return i;var a="horizontal"===o?r:n,s=a.scale.domain();if("number"===a.type){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return"dataMin"===i?c:"dataMax"===i||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===i?s[0]:"dataMax"===i?s[1]:s[0]},DT.getComposedData=function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,u=e.bandSize,c=e.dataKey,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,h=n.layout,g=l&&l.length,y=DT.getBaseValue(n,r,o,i),v=!1,m=d.map((function(e,t){var n,r=gS(e,c);g?n=l[f+t]:Qo(n=r)?v=!0:n=[y,n];var d=Cf(n[1])||g&&Cf(r);return"horizontal"===h?{x:PS({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:o.scale(n[1]),y:PS({axis:i,ticks:s,bandSize:u,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Cf(Bs(e,"value[0]"))||Cf(Bs(e,"y"))?null:i.scale(Bs(e,"value[0]"))}:{x:Cf(Bs(e,"value[0]"))?null:o.scale(Bs(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),OT({points:m,baseLine:t,layout:h,isRange:v},p)},DT.renderDotItem=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,CT({},t,{className:"recharts-area-dot"}))};var $T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&HT(e,t)}(a,t.PureComponent);var n,r,o,i=VT(a);function a(){var e;zT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.id=rf("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=Sn(this.props);return e&&e.map((function(e,o){var i=BT(BT(BT({},r),e),{},{index:o});return s.default.createElement(Pn,LT({className:"recharts-bar-rectangle"},kn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,i))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,u=t.animationEasing,c=t.animationId,l=this.state.prevData;return s.default.createElement(tp,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=n.map((function(e,t){var n=l&&l[t];if(n){var i=sf(n.x,e.x),a=sf(n.y,e.y),s=sf(n.width,e.width),u=sf(n.height,e.height);return BT(BT({},e),{},{x:i(o),y:a(o),width:s(o),height:u(o)})}if("horizontal"===r){var c=sf(0,e.height)(o);return BT(BT({},e),{},{y:e.y+e.height-c,height:c})}var f=sf(0,e.width)(o);return BT(BT({},e),{},{width:f})}));return s.default.createElement(Pn,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Zv(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Sn(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=IT(t,["value","background"]);if(!o)return null;var s=BT(BT(BT(BT(BT({},i),{},{fill:"#eee"},o),n),kn(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=Uv(i,iT.displayName);if(!a)return null;var u="vertical"===o?t[0].height/2:t[0].width/2;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gS(e,t)}}return a.map((function(e,i){return s.default.cloneElement(e,{key:"error-bar-".concat(i),data:t,xAxis:n,yAxis:r,layout:o,offset:u,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,i=e.yAxis,a=e.left,u=e.top,c=e.width,l=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=mn("recharts-bar",r),y=o&&o.allowDataOverflow||i&&i.allowDataOverflow,v=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:g},y?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(v)},s.default.createElement("rect",{x:a,y:u,width:c,height:l}))):null,s.default.createElement(Pn,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(ik,t)}}],r&&UT(n.prototype,r),o&&UT(n,o),a}();$T.displayName="Bar",$T.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},$T.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,p=ES(r,n);if(!p)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=c?b.scale.domain():null,x=RS({numericAxis:b}),_=Uv(v,ky.displayName),C=f.map((function(e,t){var r,f,d,g,v,b;if(c?r=jS(c[l+t],w):(r=gS(e,y),Qo(r)||(r=[x,r])),"horizontal"===h){if(f=DS({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=a.scale(r[1]),g=p.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=Jl(v||m)*(Math.abs(m)-Math.abs(v));d-=C,v+=C}}else f=i.scale(r[0]),d=DS({axis:a,ticks:u,bandSize:o,offset:p.offset,entry:e,index:t}),g=i.scale(r[1])-i.scale(r[0]),v=p.size,b={x:i.x,y:d,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=Jl(g||m)*(Math.abs(m)-Math.abs(g)));return BT(BT(BT({},e),{},{x:f,y:d,width:g,height:v,value:c?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[US(n,e)],tooltipPosition:{x:f+g/2,y:d+v/2}})}));return BT({data:C,layout:h},d)};var qT=function(){return null};function GT(e){return GT="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},GT(e)}function ZT(){return ZT=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},ZT.apply(this,arguments)}function YT(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 XT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(n),!0).forEach((function(t){JT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(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,r.key,r)}}function tM(e,t){return tM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tM(e,t)}function nM(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=oM(e);if(t){var o=oM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rM(this,n)}}function rM(e,t){return!t||"object"!==GT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oM(e){return oM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oM(e)}qT.displayName="ZAxis",qT.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var iM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tM(e,t)}(a,t.PureComponent);var n,r,o,i=nM(a);function a(){var e;QT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=rf("recharts-scatter-"),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,u=Sn(this.props);return e.map((function(e,n){var c=XT(XT({key:"symbol-".concat(n)},u),e);return s.default.createElement(Pn,ZT({className:"recharts-scatter-symbol"},kn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(i===n?o:r,c))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevPoints;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.cx,e.cx),i=sf(n.cy,e.cy),a=sf(n.size,e.size);return XT(XT({},e),{},{cx:o(r),cy:i(r),size:a(r)})}var s=sf(0,e.size);return XT(XT({},e),{},{size:s(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,i=Uv(o,iT.displayName);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:gS(e,t)}}function u(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:gS(e,t)}}return i.map((function(e,o){var i=e.props.direction;return s.default.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===i?"vertical":"horizontal",dataPointFormatter:"x"===i?u:a})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,i=n.lineType,a=n.lineJointType,u=Sn(this.props),c=Sn(o);if("joint"===i)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===i){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,u=0,c=0,l=0;l<t;l++)n+=u=e[l].cx||0,r+=c=e[l].cy||0,o+=u*c,i+=u*u,a=Math.min(a,u),s=Math.max(s,u);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,d=l.xmax,p=l.a,h=l.b,g=function(e){return p*e+h};e=[{x:f,y:g(f)},{x:d,y:g(d)}]}var y=XT(XT(XT({},u),{},{fill:"none",stroke:u&&u.fill},c),{},{points:e});return t=s.default.isValidElement(o)?s.default.cloneElement(o,y):Xn(o)?o(y):s.default.createElement(GO,ZT({},y,{type:a})),s.default.createElement(Pn,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=e.className,i=e.xAxis,a=e.yAxis,u=e.left,c=e.top,l=e.width,f=e.height,d=e.id,p=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=mn("recharts-scatter",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Cf(d)?this.id:d;return s.default.createElement(Pn,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(v)},s.default.createElement("rect",{x:u,y:c,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),s.default.createElement(Pn,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||h)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){var n;return s.default.isValidElement(e)?n=s.default.cloneElement(e,t):Xn(e)?n=e(t):"string"==typeof e&&(n=s.default.createElement(Ml,ZT({},t,{type:e}))),n}}],r&&eM(n.prototype,r),o&&eM(n,o),a}();iM.displayName="Scatter",iM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},iM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,c=o.props.tooltipType,l=Uv(o.props.children,ky.displayName),f=Cf(t.dataKey)?o.props.dataKey:t.dataKey,d=Cf(n.dataKey)?o.props.dataKey:n.dataKey,p=r&&r.dataKey,h=r?r.range:qT.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var u=gS(e,f),h=gS(e,d),m=!Cf(p)&&gS(e,p)||"-",b=[{name:Cf(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:u,payload:e,dataKey:f,type:c},{name:Cf(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:d,type:c}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:p,type:c});var w=PS({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=PS({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:d}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return XT(XT({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:u,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return XT({points:m},u)};var aM=function(){return null};aM.displayName="XAxis",aM.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var sM=function(){return null};sM.displayName="YAxis",sM.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var uM=mu,cM=na,lM=aa;var fM=function(e){return function(t,n,r){var o=Object(t);if(!cM(t)){var i=uM(n);t=lM(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},dM=gj;var pM=bu,hM=mu,gM=function(e){var t=dM(e),n=t%1;return t==t?n?t-n:t:0},yM=Math.max;var vM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gM(n);return o<0&&(o=yM(r+o,0)),pM(e,hM(t),o)},mM=fM(vM),bM=Pg,wM=bn;var xM=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return wM(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),bM(e,t,{leading:r,maxWait:t,trailing:o})},_M=Gn,CM=di;var SM=function(e){return!0===e||!1===e||CM(e)&&"[object Boolean]"==_M(e)},OM=function(e,t,n,r,o){var i=Uv(e,bA.displayName),a=Uv(e,SA.displayName),s=i.concat(a),u=Uv(e,AA.displayName),c="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[c]===n&&Kj(t.props,"extendDomain")&&ef(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),u.length){var d="".concat(l,"1"),p="".concat(l,"2");f=u.reduce((function(e,t){if(t.props[c]===n&&Kj(t.props,"extendDomain")&&ef(t.props[d])&&ef(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ef(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},kM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.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 o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(kM);var EM=new(0,kM.exports);EM.setMaxListeners&&EM.setMaxListeners(10);var jM="recharts.syncMouseEvents";function AM(e){return AM="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},AM(e)}function TM(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||zM(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 MM(){return MM=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},MM.apply(this,arguments)}function PM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DM(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,r.key,r)}}function RM(e,t){return RM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RM(e,t)}function IM(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=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LM(this,n)}}function LM(e,t){return!t||"object"!==AM(t)&&"function"!=typeof t?NM(e):t}function NM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BM(e){return BM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BM(e)}function FM(e){return function(e){if(Array.isArray(e))return UM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zM(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 zM(e,t){if(e){if("string"==typeof e)return UM(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)?UM(e,t):void 0}}function UM(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 HM(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 VM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HM(Object(n),!0).forEach((function(t){KM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WM={xAxis:["bottom","top"],yAxis:["left","right"]},$M={x:0,y:0},qM=Number.isFinite?Number.isFinite:isFinite,GM="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,ZM="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,YM=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(FM(e),FM(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&&ef(o)&&ef(i)?e.slice(o,i+1):[]},XM=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=YM(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=uf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(FM(e),[US(t,o)]):e}),[])},JM=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,u=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,u=0;u<a;u++){var c=u>0?r[u-1].coordinate:r[a-1].coordinate,l=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,d=void 0;if(Jl(l-c)!==Jl(f-l)){var p=[];if(Jl(f-l)===Jl(s[1]-s[0])){d=f;var h=l+s[1]-s[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{d=c;var g=f+s[1]-s[0];p[0]=Math.min(l,(g+l)/2),p[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){i=r[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[u].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){i=n[b].index;break}}else i=0;return i}(i,a,u,s);if(c>=0&&u){var l=u[c]&&u[c].value,f=XM(e,t,c,l),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return VM(VM(VM({},r),ZS(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,u=r.angle;return VM(VM(VM({},r),ZS(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return $M}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:l,activePayload:f,activeCoordinate:d}}return null},QM=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.layout,l=e.children,f=e.stackOffset,d=xS(c,o),p=n.reduce((function(t,n){var p=n.props,h=p.type,g=p.dataKey,y=p.allowDataOverflow,v=p.allowDuplicatedCategory,m=p.scale,b=p.ticks,w=n.props[i],x=YM(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:u}),_=x.length;if(!t[w]){var C,S,O;if(g){if(C=yS(x,g,h),"category"===h&&d){var k=function(e){if(!Qo(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}(C);v&&k?(S=C,C=bj(0,_)):v||(C=zS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(FM(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Cf(e)})):zS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Cf(t)?e:[].concat(FM(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,o){var i=t.map((function(t){return bS(e,t,n,o,r)})).filter((function(e){return!Cf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,c);E&&(C=E)}!d||"number"!==h&&"auto"===m||(O=yS(x,g,"category"))}else C=d?bj(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:IS(a[w].stackGroups,s,u):wS(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,c,!0);if("number"===h)C=OM(l,C,w,o,b),n.props.domain&&(C=BS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var j=n.props.domain;C.every((function(e){return j.indexOf(e)>=0}))&&(C=j)}return VM(VM({},t),{},KM({},w,VM(VM({},n.props),{},{axisType:o,domain:C,categoricalDomain:O,duplicateDomain:S,originalDomain:n.props.domain,isCategorical:d,layout:c})))}return t}),{});return p},eP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.children,l="".concat(r,"Id"),f=Uv(c,o),d={};return f&&f.length?d=QM(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.layout,l=e.children,f=YM(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=f.length,p=xS(c,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,p?g=bj(0,d):a&&a[y]&&a[y].hasStack?(g=IS(a[y].stackGroups,s,u),g=OM(l,g,y,o)):(g=BS(r.defaultProps.domain,wS(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",c),r.defaultProps.allowDataOverflow),g=OM(l,g,y,o)),VM(VM({},e),{},KM({},y,VM(VM({axisType:o},r.defaultProps),{},{hide:!0,orientation:Bs(WM,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),d},tP=function(e){var t=e.children,n=e.defaultShowTooltip,r=Hv(t,Lj.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Cf(n)&&n}},nP=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"}},rP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,u=n.height,c=n.children,l=n.margin||{},f=Hv(c,Lj.displayName),d=Hv(c,_f.displayName),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:VM(VM({},e),{},KM({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:VM(VM({},e),{},KM({},r,Bs(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=VM(VM({},h),p),y=g.bottom;return f&&(g.bottom+=f.props.height||Lj.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),u=mS({children:o,legendWidth:s}),c=e;if(u){var l=r||{},f=u.align,d=u.verticalAlign,p=u.layout;("vertical"===p||"horizontal"===p&&"center"===d)&&ef(e[f])&&(c=pS(pS({},e),{},hS({},f,c[f]+(l.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&ef(e[d])&&(c=pS(pS({},e),{},hS({},d,c[d]+(l.height||0))))}return c}(g,0,n,t)),VM(VM({brushBottom:y},g),{},{width:s-g.left-g.right,height:u-g.top-g.bottom})},oP=function(e){var n,r,o=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,u=void 0===a?"axis":a,c=e.validateTooltipEventTypes,l=void 0===c?["axis"]:c,f=e.axisComponents,d=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,u=e.barSize,c=e.layout,l=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=nP(c),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Nv(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var u=r[i[a]].stackGroups,c=Object.keys(u),l=0,f=c.length;l<f;l++){var d=u[c[l]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return Nv(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Cf(y)?t:y})}}return o}({barSize:u,stackGroups:r}),b=[];return n.forEach((function(n,u){var h=YM(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],S=f.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return VM(VM({},e),{},(KM(o={},r.axisType,s),KM(o,"".concat(r.axisType,"Ticks"),CS(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(tf(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Nv(n.type).indexOf("Bar")>=0,A=FS(O,k),T=[];if(j){var M,P,D=Cf(x)?p:x,R=null!==(M=null!==(P=FS(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var u,c=of(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(s-1)*c)>=r&&(d-=(s-1)*c,c=0),d>=r&&f>0&&(l=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-c,size:0};u=i.reduce((function(e,t){var n=[].concat(lS(e),[{item:t.item,position:{offset:p.offset+p.size+c,size:l?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=of(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;u=i.reduce((function(e,t,n){var r=[].concat(lS(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u}({barGap:l,barCategoryGap:d,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return VM(VM({},e),{},{position:VM(VM({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:VM(VM({},B(VM(VM({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:c,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(u)},KM(I,g,S[g]),KM(I,y,S[y]),KM(I,"animationId",i),I)),childIndex:(L=n,N=e.children,zv(N).indexOf(L)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Vv({props:n}))return null;var u=n.children,c=n.layout,l=n.stackOffset,d=n.data,h=n.reverseStackOrder,y=nP(c),v=y.numericAxisName,m=y.cateAxisName,b=Uv(u,i),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(tf(i)){var u=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[i]=u}else s.stackGroups[rf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return pS(pS({},e),{},hS({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return pS(pS({},t),{},hS({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:TS(e,a.items,o)}))}),{})),pS(pS({},t),{},hS({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),l,h),x=f.reduce((function(e,t){var o="".concat(t.axisType,"Map");return VM(VM({},e),{},KM({},o,eP(n,VM(VM({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=rP(VM(VM({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(n,x[e],_,e.replace("Map",""),o)}));var C,S,O=x["".concat(m,"Map")],k=(C=af(O),{tooltipTicks:S=CS(C,!1,!0),orderedTooltipTicks:Bh(S,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:FS(C,S)}),E=g(n,VM(VM({},x),{},{dataStartIndex:r,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return VM(VM({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return r=n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RM(e,t)}(c,t.Component);var n,r,i,a=IM(c);function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,e)).uniqueChartId=void 0,n.clipPathId=void 0,n.legendInstance=void 0,n.deferId=void 0,n.container=void 0,n.clearDeferId=function(){!Cf(n.deferId)&&ZM&&ZM(n.deferId),n.deferId=null},n.handleLegendBBoxUpdate=function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(VM({legendBBox:e},y({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},VM(VM({},n.state),{},{legendBBox:e}))))}},n.handleReceiveSyncEvent=function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=GM&&GM(n.applySyncEvent.bind(NM(n),r)))},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return VM({dataStartIndex:t,dataEndIndex:r},y({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=VM(VM({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?VM(VM({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&Xn(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),Xn(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&Lv[t]?Lv[t]:null}(e),r=Bs(n.props,"".concat(t));t&&Xn(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)},n.handleClick=function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=VM(VM({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)}},n.handleMouseDown=function(e){var t=n.props.onMouseDown;Xn(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;Xn(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return _S(UA.getTicks(VM(VM(VM({},UA.defaultProps),t),{},{ticks:CS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return _S(UA.getTicks(VM(VM(VM({},UA.defaultProps),t),{},{ticks:CS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return CS(e,!0)},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,u=r.offset,c=r.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==o&&"axis"!==l)return null;var f,d=n.props.layout,p=GO;if("ScatterChart"===o)f=a,p=Nk;else if("BarChart"===o)f=n.getCursorRectangle(),p=ik;else if("radial"===d){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=PO}else f={points:n.getCursorPoints()},p=GO;var m=e.key||"_recharts-cursor",b=VM(VM(VM(VM({stroke:"#ccc",pointerEvents:"none"},u),f),Sn(e.props.cursor)),{},{payload:s,payloadIndex:c,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)},n.renderPolarAxis=function(e,r,o){var i=Bs(e,"type.axisType"),a=Bs(n.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return t.cloneElement(e,VM(VM({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:CS(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,u=s.width,c=s.height,l=af(o),f=mM(i,(function(e){return Jj(e.domain,qM)}))||af(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:ef(d.x)?d.x:a.left,y:ef(d.y)?d.y:a.top,width:ef(d.width)?d.width:a.width,height:ef(d.height)?d.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,u=s.radiusAxisMap,c=s.angleAxisMap,l=af(u),f=af(c),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Qo(i)?i:CS(f,!0).map((function(e){return e.coordinate})),polarRadius:Qo(a)?a:CS(l,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})},n.renderLegend=function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},u=i-(s.left||0)-(s.right||0),c=mS({children:o,formattedGraphicalItems:e,legendWidth:u,legendContent:d});if(!c)return null;var l=c.item,f=PM(c,["item"]);return t.cloneElement(l,VM(VM({},f),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))},n.renderTooltip=function(){var e=n.props.children,r=Hv(e,dg.displayName);if(!r)return null;var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,u=o.activeLabel,c=o.offset;return t.cloneElement(r,{viewBox:VM(VM({},c),{},{x:c.left,y:c.top}),active:i,label:u,payload:i?s:[],coordinate:a})},n.renderBrush=function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,u=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:SS(n.handleBrushChange,null,e.props.onChange),data:i,x:ef(e.props.x)?e.props.x:s.left,y:ef(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:ef(e.props.width)?e.props.width:s.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,r,o){if(!e)return null;var i=NM(n).clipPathId,a=n.state,s=a.xAxisMap,u=a.yAxisMap,c=a.offset,l=e.props,f=l.xAxisId,d=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:u[d],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})},n.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,u=t.item.props,l=u.activeDot,f=VM(VM({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:vS(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Sn(l)),On(l));return a.push(c.renderActiveDot(l,f)),r?a.push(c.renderActiveDot(l,VM(VM({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a},n.renderGraphicChild=function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,u=s.isTooltipActive,c=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,d=n.props.children,p=Hv(d,dg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&u&&p&&b&&l>=0,x={};"axis"!==a&&p&&"click"===p.props.trigger?x={onClick:SS(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:SS(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:SS(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=t.cloneElement(e,VM(VM({},i.props),x));if(w){var C,S;if(c.dataKey&&!c.allowDuplicatedCategory){var O="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());C=uf(g,O,f),S=y&&v&&uf(v,O,f)}else C=g[l],S=y&&v&&v[l];if(!Cf(C))return[_].concat(FM(n.renderActivePoints({item:i,activePoint:C,basePoint:S,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},n.renderCustomized=function(e,r,o){return t.cloneElement(e,VM(VM({key:"recharts-customized-".concat(o)},n.props),n.state))},n.uniqueChartId=Cf(e.id)?rf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=xM(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=c,r=[{key:"componentDidMount",value:function(){Cf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Cf(e.syncId)&&!Cf(this.props.syncId)&&this.addListener(),!Cf(e.syncId)&&Cf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Cf(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=Hv(this.props.children,dg.displayName);if(e&&SM(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,u=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&u){var c=af(s).scale,l=af(u).scale,f=c&&c.invert?c.invert(o.chartX):null,d=l&&l.invert?l.invert(o.chartY):null;return VM(VM({},o),{},{xValue:f,yValue:d})}var p=JM(this.state,this.props.data,this.props.layout,i);return p?VM(VM({},o),p):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Cf(a.cx)||!Cf(a.cy)){if("centric"!==o){var u=a.cx,c=a.cy,l=a.radius,f=a.startAngle,d=a.endAngle;return{points:[ZS(u,c,l,f),ZS(u,c,l,d)],cx:u,cy:c,radius:l,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=ZS(p,h,g,v),b=ZS(p,h,y,v);e=m.x,t=m.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 o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=af(i);return eO({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Hv(e,dg.displayName),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}),VM(VM({},On(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){EM.on(jM,this.handleReceiveSyncEvent),EM.setMaxListeners&&EM._maxListeners&&EM.setMaxListeners(EM._maxListeners+1)}},{key:"removeListener",value:function(){EM.removeListener(jM,this.handleReceiveSyncEvent),EM.setMaxListeners&&EM._maxListeners&&EM.setMaxListeners(EM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Cf(t)||EM.emit(jM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(Cf(e.dataStartIndex)&&Cf(e.dataEndIndex))if(Cf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,u=e.chartY,c=e.activeTooltipIndex,l=this.state,f=l.offset,d=l.tooltipTicks;if(!f)return;if("function"==typeof r)c=r(d,e);else if("value"===r){c=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){c=p;break}}var h=VM(VM({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),v=Math.min(u,h.y+h.height),m=d[c]&&d[c].value,b=XM(this.state,this.props.data,c),w=d[c]?{x:"horizontal"===n?d[c].coordinate:g,y:"horizontal"===n?v:d[c].coordinate}:$M;this.setState(VM(VM({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:c}))}else this.setState(VM({dataStartIndex:i,dataEndIndex:a},y({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===Nv(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,i=o.width,a=o.height;return s.default.createElement(UA,MM({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,i=t.width;return s.default.createElement("defs",null,s.default.createElement("clipPath",{id:e},s.default.createElement("rect",{x:n,y:r,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=TM(t,2),r=n[0],o=n[1];return VM(VM({},e),{},KM({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=TM(t,2),r=n[0],o=n[1];return VM(VM({},e),{},KM({},r,o.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 o=t[n],i=o.props,a=o.item,s=Nv(a.type);if("Bar"===s){var u=(i.data||[]).find((function(t){return ok(e,t)}));if(u)return{graphicalItem:o,payload:u}}else if("RadialBar"===s){var c=(i.data||[]).find((function(t){return eO(e,t)}));if(c)return{graphicalItem:o,payload:c}}}return null}},{key:"render",value:function(){var e=this;if(!Vv(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,i=t.height,a=t.style,u=t.compact,c=t.title,l=t.desc,f=PM(t,["children","className","width","height","style","compact","title","desc"]),d=Sn(f),p={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(u)return s.default.createElement(An,MM({},d,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),qv(n,p));var h=this.parseEventsOfWrapper();return s.default.createElement("div",MM({className:mn("recharts-wrapper",r),style:VM({position:"relative",cursor:"default",width:o,height:i},a)},h,{ref:function(t){e.container=t}}),s.default.createElement(An,MM({},d,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),qv(n,p)),this.renderLegend(),this.renderTooltip())}}],r&&DM(n.prototype,r),i&&DM(n,i),c}(),n.displayName=o,n.defaultProps=VM({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h),n.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,u=e.margin;if(Cf(t.updateId)){var c=tP(e);return VM(VM(VM({},c),{},{updateId:0},y(VM(VM({props:e},c),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Rv(u,t.prevMargin)){var l=tP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=VM(VM({},JM(t,n,a)),{},{updateId:t.updateId+1}),p=VM(VM(VM({},l),f),d);return VM(VM(VM({},p),y(VM({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(!Wv(r,t.prevChildren)){var h=!Cf(n)?t.updateId:t.updateId+1;return VM(VM({updateId:h},y(VM(VM({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},n.renderActiveDot=function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):Xn(e)?e(n):s.default.createElement(jk,n),s.default.createElement(Pn,{className:"recharts-active-dot",key:n.key},r)},r};oP({chartName:"LineChart",GraphicalChild:wT,axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA});var iP=oP({chartName:"BarChart",GraphicalChild:$T,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA}),aP=oP({chartName:"PieChart",GraphicalChild:BE,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var sP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},uP=eA,cP=Qn,lP=Object.prototype.hasOwnProperty;var fP=function(e,t,n){var r=e[t];lP.call(e,t)&&cP(r,n)&&(void 0!==n||t in e)||uP(e,t,n)},dP=fP,pP=eA;var hP=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?pP(n,s,u):dP(n,s,u)}return n},gP=hP,yP=aa;var vP=function(e,t){return e&&gP(t,yP(t),e)};var mP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},bP=bn,wP=qi,xP=mP,_P=Object.prototype.hasOwnProperty;var CP=function(e){if(!bP(e))return xP(e);var t=wP(e),n=[];for(var r in e)("constructor"!=r||!t&&_P.call(e,r))&&n.push(r);return n},SP=Wi,OP=CP,kP=na;var EP=function(e){return kP(e)?SP(e,!0):OP(e)},jP=hP,AP=EP;var TP=function(e,t){return e&&jP(t,AP(t),e)},MP={exports:{}};!function(e,t){var n=Ln,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.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}}(MP,MP.exports);var PP=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},DP=hP,RP=li;var IP=function(e,t){return DP(e,RP(e),t)},LP=Jo,NP=mE,BP=li,FP=oi,zP=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)LP(t,BP(e)),e=NP(e);return t}:FP,UP=hP,HP=zP;var VP=function(e,t){return UP(e,HP(e),t)},KP=ni,WP=zP,$P=EP;var qP=function(e){return KP(e,$P,WP)},GP=Object.prototype.hasOwnProperty;var ZP=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&GP.call(e,"index")&&(n.index=e.index,n.input=e.input),n},YP=Uo;var XP=function(e){var t=new e.constructor(e.byteLength);return new YP(t).set(new YP(e)),t},JP=XP;var QP=function(e,t){var n=t?JP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},eD=/\w*$/;var tD=function(e){var t=new e.constructor(e.source,eD.exec(e));return t.lastIndex=e.lastIndex,t},nD=Nn?Nn.prototype:void 0,rD=nD?nD.valueOf:void 0;var oD=XP;var iD=XP,aD=QP,sD=tD,uD=function(e){return rD?Object(rD.call(e)):{}},cD=function(e,t){var n=t?oD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return iD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return aD(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 cD(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 sD(e);case"[object Symbol]":return uD(e)}},fD=bn,dD=Object.create,pD=function(){function e(){}return function(t){if(!fD(t))return{};if(dD)return dD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),hD=pD,gD=mE,yD=qi;var vD=function(e){return"function"!=typeof e.constructor||yD(e)?{}:hD(gD(e))},mD=Ta,bD=di;var wD=function(e){return bD(e)&&"[object Map]"==mD(e)},xD=Mi,_D=Pi.exports,CD=_D&&_D.isMap,SD=CD?xD(CD):wD,OD=Ta,kD=di;var ED=function(e){return kD(e)&&"[object Set]"==OD(e)},jD=Mi,AD=Pi.exports,TD=AD&&AD.isSet,MD=TD?jD(TD):ED,PD=Ao,DD=sP,RD=fP,ID=vP,LD=TP,ND=MP.exports,BD=PP,FD=IP,zD=VP,UD=la,HD=qP,VD=Ta,KD=ZP,WD=lD,$D=vD,qD=Qo,GD=xi.exports,ZD=SD,YD=bn,XD=MD,JD=aa,QD=EP,eR={};eR["[object Arguments]"]=eR["[object Array]"]=eR["[object ArrayBuffer]"]=eR["[object DataView]"]=eR["[object Boolean]"]=eR["[object Date]"]=eR["[object Float32Array]"]=eR["[object Float64Array]"]=eR["[object Int8Array]"]=eR["[object Int16Array]"]=eR["[object Int32Array]"]=eR["[object Map]"]=eR["[object Number]"]=eR["[object Object]"]=eR["[object RegExp]"]=eR["[object Set]"]=eR["[object String]"]=eR["[object Symbol]"]=eR["[object Uint8Array]"]=eR["[object Uint8ClampedArray]"]=eR["[object Uint16Array]"]=eR["[object Uint32Array]"]=!0,eR["[object Error]"]=eR["[object Function]"]=eR["[object WeakMap]"]=!1;var tR=function e(t,n,r,o,i,a){var s,u=1&n,c=2&n,l=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!YD(t))return t;var f=qD(t);if(f){if(s=KD(t),!u)return BD(t,s)}else{var d=VD(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(GD(t))return ND(t,u);if("[object Object]"==d||"[object Arguments]"==d||p&&!i){if(s=c||p?{}:$D(t),!u)return c?zD(t,LD(s,t)):FD(t,ID(s,t))}else{if(!eR[d])return i?t:{};s=WD(t,d,u)}}a||(a=new PD);var h=a.get(t);if(h)return h;a.set(t,s),XD(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):ZD(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?c?HD:UD:c?QD:JD)(t);return DD(g||t,(function(o,i){g&&(o=t[i=o]),RD(s,i,e(o,n,r,i,t,a))})),s},nR=Ls,rR=Uu;var oR=function(e,t){return t.length<2?e:nR(e,rR(t,0,-1))},iR=Ms,aR=fO,sR=oR,uR=Ds;var cR=function(e,t){return t=iR(t,e),null==(e=sR(e,t))||delete e[uR(aR(t))]},lR=EE;var fR=Kp;var dR=function(e){return(null==e?0:e.length)?fR(e,1):[]},pR=dR,hR=vh,gR=kh;var yR=ms,vR=tR,mR=cR,bR=Ms,wR=hP,xR=function(e){return lR(e)?void 0:e},_R=qP,CR=function(e){return gR(hR(e,void 0,pR),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=yR(t,(function(t){return t=bR(t,e),r||(r=t.length>1),t})),wR(e,_R(e),n),r&&(n=vR(n,7,xR));for(var o=t.length;o--;)mR(n,t[o]);return n})),SR=CR;function OR(e){return OR="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},OR(e)}function kR(){return kR=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},kR.apply(this,arguments)}function ER(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(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,r.key,r)}}function AR(e,t){return AR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AR(e,t)}function TR(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=PR(e);if(t){var o=PR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MR(this,n)}}function MR(e,t){return!t||"object"!==OR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function PR(e){return PR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},PR(e)}Math.sqrt(5),Qh.isSsr,Qh.isSsr,oP({chartName:"RadarChart",GraphicalChild:QE,axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oP({chartName:"ScatterChart",GraphicalChild:iM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM},{axisType:"zAxis",AxisComp:qT}],formatAxisMap:cA}),oP({chartName:"AreaChart",GraphicalChild:DT,axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA}),oP({chartName:"RadialBarChart",GraphicalChild:fj,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oP({chartName:"ComposedChart",GraphicalChild:[wT,DT,$T,iM],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM},{axisType:"zAxis",AxisComp:qT}],formatAxisMap:cA});var DR=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},RR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AR(e,t)}(a,t.PureComponent);var n,r,o,i=TR(a);function a(){var e;ER(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,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 e=this,t=this.props,n=t.x,r=t.y,o=t.upperWidth,i=t.lowerWidth,a=t.height,u=t.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||i!==+i||a!==+a||0===o&&0===i||0===a)return null;var g=mn("recharts-trapezoid",u);return h?s.default.createElement(tp,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:a,x:n,y:r},to:{upperWidth:o,lowerWidth:i,height:a,x:n,y:r},duration:d,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,i=t.x,a=t.y;return s.default.createElement(tp,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,easing:f},s.default.createElement("path",kR({},Sn(e.props,!0),{className:g,d:DR(i,a,n,r,o),ref:function(t){e.node=t}})))})):s.default.createElement("g",null,s.default.createElement("path",kR({},Sn(this.props,!0),{className:g,d:DR(n,r,o,i,a)})))}}],r&&jR(n.prototype,r),o&&jR(n,o),a}();function IR(e){return IR="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},IR(e)}function LR(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NR(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 NR(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 NR(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 BR(){return BR=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},BR.apply(this,arguments)}function FR(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 zR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FR(Object(n),!0).forEach((function(t){UR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VR(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,r.key,r)}}function KR(e,t){return KR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},KR(e,t)}function WR(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=qR(e);if(t){var o=qR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $R(this,n)}}function $R(e,t){return!t||"object"!==IR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qR(e){return qR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qR(e)}RR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var GR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KR(e,t)}(a,t.PureComponent);var n,r,o,i=WR(a);function a(){var e;HR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(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(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,i=zR(zR({},e),{},{stroke:e.stroke});return s.default.createElement(Pn,BR({className:"recharts-funnel-trapezoid"},kn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,i))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevTrapezoids;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.x,e.x),i=sf(n.y,e.y),a=sf(n.upperWidth,e.upperWidth),s=sf(n.lowerWidth,e.lowerWidth),u=sf(n.height,e.height);return zR(zR({},e),{},{x:o(r),y:i(r),upperWidth:a(r),lowerWidth:s(r),height:u(r)})}var l=sf(e.x+e.upperWidth/2,e.x),f=sf(e.y+e.height/2,e.y),d=sf(0,e.upperWidth),p=sf(0,e.lowerWidth),h=sf(0,e.height);return zR(zR({},e),{},{x:l(r),y:f(r),upperWidth:d(r),lowerWidth:p(r),height:h(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,i=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var a=mn("recharts-trapezoids",r);return s.default.createElement(Pn,{className:a},this.renderTrapezoids(),(!o||i)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):EE(e)?s.default.createElement(RR,BR({},t,e)):s.default.createElement(RR,t)}}],r&&VR(n.prototype,r),o&&VR(n,o),a}();GR.displayName="Funnel",GR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},GR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,o=Sn(e.props),i=Uv(r,ky.displayName);return n&&n.length?n.map((function(e,t){return zR(zR(zR({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return zR(zR({},o),e.props)})):[]},GR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,u=t.bottom,c=o,l=r;return Wl(n)?l=n:Xl(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:c-u-s,offsetX:(r-l)/2,offsetY:(o-c)/2}},GR.getComposedData=function(e){var t=e.item,n=e.offset,r=GR.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,u=o.lastShapeType,c=o.reversed,l=n.left,f=n.top,d=GR.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,g=d.offsetX,y=d.offsetY,v=Math.max.apply(null,r.map((function(e){return gS(e,i,0)}))),m=r.length,b=p/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=gS(e,i,0),c=gS(e,a,t),d=o;if(t!==m-1)(n=gS(r[t+1],i,0))instanceof Array&&(n=LR(n,1)[0]);else if(o instanceof Array&&2===o.length){var p=LR(o,2);d=p[0],n=p[1]}else n="rectangle"===u?d:0;var x=(v-d)*h/(2*v)+f+25+g,_=b*t+l+y,C=d/v*h,S=n/v*h,O=[{name:c,value:d,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return zR(zR({x:x,y:_,width:Math.max(C,S),upperWidth:C,lowerWidth:S,height:b,name:c,val:d,tooltipPayload:O,tooltipPosition:k},SR(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-S)/4,y:_,width:Math.abs(C-S)/2+Math.min(C,S),height:b}})}));return c&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return zR(zR({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:zR(zR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:zR(zR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},oP({chartName:"FunnelChart",GraphicalChild:GR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const ZR=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),YR=q.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));function XR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function JR(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function QR(e){JR(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function eI(e,t){JR(2,arguments);var n=QR(e),r=XR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function tI(e,t){JR(2,arguments);var n=QR(e),r=XR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function nI(e,t){if(JR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?XR(t.years):0,r=t.months?XR(t.months):0,o=t.weeks?XR(t.weeks):0,i=t.days?XR(t.days):0,a=t.hours?XR(t.hours):0,s=t.minutes?XR(t.minutes):0,u=t.seconds?XR(t.seconds):0,c=QR(e),l=r||n?tI(c,r+12*n):c,f=i||o?eI(l,i+7*o):l,d=s+60*a,p=u+60*d,h=1e3*p,g=new Date(f.getTime()+h);return g}function rI(e,t){JR(2,arguments);var n=QR(e).getTime(),r=XR(t);return new Date(n+r)}var oI={};function iI(){return oI}function aI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function sI(e){JR(1,arguments);var t=QR(e);return t.setHours(0,0,0,0),t}function uI(e,t){JR(2,arguments);var n=sI(e),r=sI(t),o=n.getTime()-aI(n),i=r.getTime()-aI(r);return Math.round((o-i)/864e5)}function cI(e,t){JR(2,arguments);var n=sI(e),r=sI(t);return n.getTime()===r.getTime()}function lI(e){return JR(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function fI(e){if(JR(1,arguments),!lI(e)&&"number"!=typeof e)return!1;var t=QR(e);return!isNaN(Number(t))}function dI(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function pI(e,t){JR(2,arguments);var n=QR(e),r=QR(t),o=dI(n,r),i=Math.abs(uI(n,r));n.setDate(n.getDate()-o*i);var a=Number(dI(n,r)===-o),s=o*(i-a);return 0===s?0:s}function hI(e,t){return JR(2,arguments),QR(e).getTime()-QR(t).getTime()}var gI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function yI(e){return e?gI[e]:gI.trunc}function vI(e,t){JR(2,arguments);var n=XR(t);return rI(e,-n)}function mI(e){JR(1,arguments);var t=1,n=QR(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function bI(e){JR(1,arguments);var t=QR(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=mI(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=mI(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function wI(e){JR(1,arguments);var t=bI(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=mI(n);return r}function xI(e){JR(1,arguments);var t=QR(e),n=mI(t).getTime()-wI(t).getTime();return Math.round(n/6048e5)+1}function _I(e,t){var n,r,o,i,a,s,u,c;JR(1,arguments);var l=iI(),f=XR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(u=l.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=QR(e),p=d.getUTCDay(),h=(p<f?7:0)+p-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function CI(e,t){var n,r,o,i,a,s,u,c;JR(1,arguments);var l=QR(e),f=l.getUTCFullYear(),d=iI(),p=XR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var g=_I(h,t),y=new Date(0);y.setUTCFullYear(f,0,p),y.setUTCHours(0,0,0,0);var v=_I(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function SI(e,t){var n,r,o,i,a,s,u,c;JR(1,arguments);var l=iI(),f=XR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(u=l.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=CI(e,t),p=new Date(0);p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0);var h=_I(p,t);return h}function OI(e,t){JR(1,arguments);var n=QR(e),r=_I(n,t).getTime()-SI(n,t).getTime();return Math.round(r/6048e5)+1}function kI(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var EI=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return kI("yy"===t?r%100:r,t.length)},jI=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):kI(n+1,2)},AI=function(e,t){return kI(e.getUTCDate(),t.length)},TI=function(e,t){return kI(e.getUTCHours()%12||12,t.length)},MI=function(e,t){return kI(e.getUTCHours(),t.length)},PI=function(e,t){return kI(e.getUTCMinutes(),t.length)},DI=function(e,t){return kI(e.getUTCSeconds(),t.length)},RI=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return kI(Math.floor(r*Math.pow(10,n-3)),t.length)},II="midnight",LI="noon",NI="morning",BI="afternoon",FI="evening",zI="night",UI={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return EI(e,t)},Y:function(e,t,n,r){var o=CI(e,r),i=o>0?o:1-o;return"YY"===t?kI(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):kI(i,t.length)},R:function(e,t){return kI(bI(e),t.length)},u:function(e,t){return kI(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return kI(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return kI(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return jI(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return kI(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=OI(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):kI(o,t.length)},I:function(e,t,n){var r=xI(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):kI(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):AI(e,t)},D:function(e,t,n){var r=function(e){JR(1,arguments);var t=QR(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):kI(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return kI(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return kI(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return kI(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?LI:0===o?II:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?FI:o>=12?BI:o>=4?NI:zI,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return TI(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):MI(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):kI(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):kI(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):PI(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):DI(e,t)},S:function(e,t){return RI(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return VI(o);case"XXXX":case"XX":return KI(o);default:return KI(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return VI(o);case"xxxx":case"xx":return KI(o);default:return KI(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+HI(o,":");default:return"GMT"+KI(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+HI(o,":");default:return"GMT"+KI(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return kI(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return kI((r._originalDate||e).getTime(),t.length)}};function HI(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+kI(i,2)}function VI(e,t){return e%60==0?(e>0?"-":"+")+kI(Math.abs(e)/60,2):KI(e,t)}function KI(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+kI(Math.floor(o/60),2)+n+kI(o%60,2)}var WI=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},$I=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},qI={p:$I,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return WI(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",WI(o,t)).replace("{{time}}",$I(i,t))}},GI=["D","DD"],ZI=["YY","YYYY"];function YI(e){return-1!==GI.indexOf(e)}function XI(e){return-1!==ZI.indexOf(e)}function JI(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var QI={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function eL(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var tL={date:eL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:eL({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:eL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},nL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function rL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var oL={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:rL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:rL({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:rL({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:rL({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:rL({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function iL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?sL(u,(function(e){return e.test(s)})):aL(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function aL(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function sL(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var uL,cL={ordinalNumber:(uL={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(uL.matchPattern);if(!n)return null;var r=n[0],o=e.match(uL.parsePattern);if(!o)return null;var i=uL.valueCallback?uL.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:iL({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:iL({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:iL({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:iL({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:iL({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},lL={code:"en-US",formatDistance:function(e,t,n){var r,o=QI[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:tL,formatRelative:function(e,t,n,r){return nL[e]},localize:oL,match:cL,options:{weekStartsOn:0,firstWeekContainsDate:1}},fL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,dL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,pL=/^'([^]*?)'?$/,hL=/''/g,gL=/[a-zA-Z]/;function yL(e,t,n){var r,o,i,a,s,u,c,l,f,d,p,h,g,y,v,m,b,w;JR(2,arguments);var x=String(t),_=iI(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:lL,S=XR(null!==(i=null!==(a=null!==(s=null!==(u=null==n?void 0:n.firstWeekContainsDate)&&void 0!==u?u:null==n||null===(c=n.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=XR(null!==(p=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=QR(e);if(!fI(k))throw new RangeError("Invalid time value");var E=aI(k),j=vI(k,E),A={firstWeekContainsDate:S,weekStartsOn:O,locale:C,_originalDate:k},T=x.match(dL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,qI[t])(e,C.formatLong):e})).join("").match(fL).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return vL(r);var i=UI[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!XI(r)||JI(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!YI(r)||JI(r,t,String(e)),i(j,r,C.localize,A);if(o.match(gL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return T}function vL(e){var t=e.match(pL);return t?t[1].replace(hL,"'"):e}function mL(e){JR(1,arguments);var t=QR(e),n=t.getDate();return n}function bL(e){JR(1,arguments);var t=QR(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function wL(e){JR(1,arguments);var t=QR(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function xL(e,t){JR(2,arguments);var n=QR(e),r=QR(t);return n.getTime()>r.getTime()}function _L(e,t){JR(2,arguments);var n=QR(e),r=QR(t);return n.getTime()<r.getTime()}function CL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class SL extends class{constructor(){CL(this,"priority",void 0),CL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function OL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class kL{constructor(){OL(this,"incompatibleTokens",void 0),OL(this,"priority",void 0),OL(this,"subPriority",void 0)}run(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new SL(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}function EL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jL=/^(1[0-2]|0?\d)/,AL=/^(3[0-1]|[0-2]?\d)/,TL=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,ML=/^(5[0-3]|[0-4]?\d)/,PL=/^(2[0-3]|[0-1]?\d)/,DL=/^(2[0-4]|[0-1]?\d)/,RL=/^(1[0-1]|0?\d)/,IL=/^(1[0-2]|0?\d)/,LL=/^[0-5]?\d/,NL=/^[0-5]?\d/,BL=/^\d/,FL=/^\d{1,2}/,zL=/^\d{1,3}/,UL=/^\d{1,4}/,HL=/^-?\d+/,VL=/^-?\d/,KL=/^-?\d{1,2}/,WL=/^-?\d{1,3}/,$L=/^-?\d{1,4}/,qL=/^([+-])(\d{2})(\d{2})?|Z/,GL=/^([+-])(\d{2})(\d{2})|Z/,ZL=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,YL=/^([+-])(\d{2}):(\d{2})|Z/,XL=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function JL(e,t){return e?{value:t(e.value),rest:e.rest}:e}function QL(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function eN(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function tN(e){return QL(HL,e)}function nN(e,t){switch(e){case 1:return QL(BL,t);case 2:return QL(FL,t);case 3:return QL(zL,t);case 4:return QL(UL,t);default:return QL(new RegExp("^\\d{1,"+e+"}"),t)}}function rN(e,t){switch(e){case 1:return QL(VL,t);case 2:return QL(KL,t);case 3:return QL(WL,t);case 4:return QL($L,t);default:return QL(new RegExp("^-?\\d{1,"+e+"}"),t)}}function oN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function iN(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function aN(e){return e%400==0||e%4==0&&e%100!=0}function sN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mN=[31,28,31,30,31,30,31,31,30,31,30,31],bN=[31,29,31,30,31,30,31,31,30,31,30,31];function wN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xN(e,t,n){var r,o,i,a,s,u,c,l;JR(2,arguments);var f=iI(),d=XR(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(c=f.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=QR(e),h=XR(t),g=p.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<d?7:0)+h-g;return p.setUTCDate(p.getUTCDate()+m),p}function _N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t){JR(2,arguments);var n=QR(e),r=QR(t);return n.getFullYear()===r.getFullYear()}function UN(e,t){JR(2,arguments);var n=XR(t);return eI(e,-n)}function HN(e,t){JR(2,arguments);var n=QR(e),r=XR(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=bL(a);return n.setMonth(r,Math.min(i,s)),n}function VN(e,t){JR(2,arguments);var n=QR(e),r=XR(t);return n.setDate(r),n}function KN(e,t){JR(2,arguments);var n=XR(t);return tI(e,-n)}function WN(e,t){if(JR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?XR(t.years):0,r=t.months?XR(t.months):0,o=t.weeks?XR(t.weeks):0,i=t.days?XR(t.days):0,a=t.hours?XR(t.hours):0,s=t.minutes?XR(t.minutes):0,u=t.seconds?XR(t.seconds):0,c=KN(e,r+12*n),l=UN(c,i+7*o),f=s+60*a,d=u+60*f,p=1e3*d,h=new Date(l.getTime()-p);return h}new class extends kL{constructor(){super(...arguments),EL(this,"priority",140),EL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),sN(this,"priority",130),sN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return JL(nN(4,e),r);case"yo":return JL(n.ordinalNumber(e,{unit:"year"}),r);default:return JL(nN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=iN(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),uN(this,"priority",130),uN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return JL(nN(4,e),r);case"Yo":return JL(n.ordinalNumber(e,{unit:"year"}),r);default:return JL(nN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var o=CI(e,r);if(n.isTwoDigitYear){var i=iN(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),_I(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),_I(e,r)}},new class extends kL{constructor(){super(...arguments),cN(this,"priority",130),cN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return rN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),mI(r)}},new class extends kL{constructor(){super(...arguments),lN(this,"priority",130),lN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return rN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),fN(this,"priority",120),fN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return nN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),dN(this,"priority",120),dN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return nN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),pN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),pN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return JL(QL(jL,e),r);case"MM":return JL(nN(2,e),r);case"Mo":return JL(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),hN(this,"priority",110),hN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return JL(QL(jL,e),r);case"LL":return JL(nN(2,e),r);case"Lo":return JL(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),gN(this,"priority",100),gN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return QL(ML,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return nN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return _I(function(e,t,n){JR(2,arguments);var r=QR(e),o=XR(t),i=OI(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}},new class extends kL{constructor(){super(...arguments),yN(this,"priority",100),yN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return QL(ML,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return nN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return mI(function(e,t){JR(2,arguments);var n=QR(e),r=XR(t),o=xI(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}},new class extends kL{constructor(){super(...arguments),vN(this,"priority",90),vN(this,"subPriority",1),vN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return QL(AL,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return nN(t.length,e)}}validate(e,t){var n=aN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=bN[r]:t>=1&&t<=mN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),wN(this,"priority",90),wN(this,"subpriority",1),wN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return QL(TL,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return nN(t.length,e)}}validate(e,t){return aN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),_N(this,"priority",90),_N(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=xN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),CN(this,"priority",90),CN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return JL(nN(t.length,e),o);case"eo":return JL(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=xN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),SN(this,"priority",90),SN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return JL(nN(t.length,e),o);case"co":return JL(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=xN(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),ON(this,"priority",90),ON(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return nN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return JL(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return JL(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return JL(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return JL(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){JR(2,arguments);var n=XR(t);n%7==0&&(n-=7);var r=1,o=QR(e),i=o.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),kN(this,"priority",80),kN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(oN(n),0,0,0),e}},new class extends kL{constructor(){super(...arguments),EN(this,"priority",80),EN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(oN(n),0,0,0),e}},new class extends kL{constructor(){super(...arguments),jN(this,"priority",80),jN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(oN(n),0,0,0),e}},new class extends kL{constructor(){super(...arguments),AN(this,"priority",70),AN(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return QL(IL,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return nN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends kL{constructor(){super(...arguments),TN(this,"priority",70),TN(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return QL(PL,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return nN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends kL{constructor(){super(...arguments),MN(this,"priority",70),MN(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return QL(RL,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return nN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends kL{constructor(){super(...arguments),PN(this,"priority",70),PN(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return QL(DL,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return nN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends kL{constructor(){super(...arguments),DN(this,"priority",60),DN(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return QL(LL,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return nN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends kL{constructor(){super(...arguments),RN(this,"priority",50),RN(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return QL(NL,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return nN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends kL{constructor(){super(...arguments),IN(this,"priority",30),IN(this,"incompatibleTokens",["t","T"])}parse(e,t){return JL(nN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends kL{constructor(){super(...arguments),LN(this,"priority",10),LN(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return eN(qL,e);case"XX":return eN(GL,e);case"XXXX":return eN(ZL,e);case"XXXXX":return eN(XL,e);default:return eN(YL,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends kL{constructor(){super(...arguments),NN(this,"priority",10),NN(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return eN(qL,e);case"xx":return eN(GL,e);case"xxxx":return eN(ZL,e);case"xxxxx":return eN(XL,e);default:return eN(YL,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends kL{constructor(){super(...arguments),BN(this,"priority",40),BN(this,"incompatibleTokens","*")}parse(e){return tN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends kL{constructor(){super(...arguments),FN(this,"priority",20),FN(this,"incompatibleTokens","*")}parse(e){return tN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const $N=q.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),qN=q.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),GN=q.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),ZN=q.div({display:"flex"}),YN=q.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),XN=q.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),JN=q.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),QN=q.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),eB=q.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),tB=q.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),nB=q.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),rB=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:u,onChange:l,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,y=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(eB,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(nB,{children:o}),e.jsx(tB,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:u,onChange:()=>{const e=!!s||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},y)),e.jsx(tt,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
200
+ 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 o.lexer=i,a.prototype=o,o.Parser=a,new a}();e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)}}($y);var qy={},Gy={exports:{}},Zy={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}},Yy=function(e,t,n,r){if(!Zy.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!Zy[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=Zy[n][t]*e;return!1!==r?(r=Math.pow(10,parseInt(r)||5),Math.round(o*r)/r):o};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(e){return e&&e.__esModule?e:{default:e}}(Yy);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}(Gy,Gy.exports),Object.defineProperty(qy,"__esModule",{value:!0}),qy.flip=tv;var Xy=function(e){return e&&e.__esModule?e:{default:e}}(Gy.exports);function Jy(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,Xy.default)(e.left,e.right,t),r=Jy(n.left,t),o=Jy(n.right,t);"MathExpression"===r.type&&"MathExpression"===o.type&&("/"===r.operator&&"*"===o.operator||"-"===r.operator&&"+"===o.operator||"*"===r.operator&&"/"===o.operator||"+"===r.operator&&"-"===o.operator)&&(Qy(r.right,o.right)?n=(0,Xy.default)(r.left,o.left,t):Qy(r.right,o.left)&&(n=(0,Xy.default)(r.left,o.right,t)),r=Jy(n.left,t),o=Jy(n.right,t));return e.left=r,e.right=o,e}(e,t),e.operator){case"+":case"-":return function(e,t){var n=e,r=n.left,o=n.right,i=n.operator;if("CssVariable"===r.type||"CssVariable"===o.type)return e;if(0===o.value)return r;if(0===r.value&&"+"===i)return o;if(0===r.value&&"-"===i)return nv(o);r.type===o.type&&ev(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(ev(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Jy({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?tv(o.operator):o.operator,Jy(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Jy({type:"MathExpression",operator:"-"===i?tv(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Jy(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&ev(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Jy({type:"MathExpression",operator:i,left:r.left,right:o},t),Jy(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Jy({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Jy({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Jy(e,t)}return e}(e,t);case"/":return function(e,t){if(!ev(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 ev(e.left.left.type)&&ev(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Jy(e.left,t)):e;if(ev(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(ev(e.left.left.type)&&ev(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(ev(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(ev(e.right.left.type)&&ev(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&&ev(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Jy(e.value,t):e}function Qy(e,t){return e.type===t.type&&e.value===t.value}function ev(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 tv(e){return"+"===e?"-":"+"}function nv(e){return ev(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=nv(e.left),e.right=nv(e.right)),e}qy.default=Jy;var rv={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=i(t,n);return"MathExpression"===t.type&&(r=e+"("+r+")"),r};var n=qy,r={"*":0,"/":0,"+":1,"-":1};function o(e,t){if(!1!==t){var n=Math.pow(10,t);return Math.round(e*n)/n}return e}function i(e,t){switch(e.type){case"MathExpression":var a=e.left,s=e.right,u=e.operator,c="";return"MathExpression"===a.type&&r[u]<r[a.operator]?c+="("+i(a,t)+")":c+=i(a,t),c+=" "+e.operator+" ","MathExpression"===s.type&&r[u]<r[s.operator]?c+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===u&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),c+=i(s,t)):c+=i(s,t),c;case"Value":return o(e.value,t);case"CssVariable":return e.fallback?"var("+e.value+", "+i(e.fallback,t)+")":"var("+e.value+")";case"Calc":return e.prefix?"-"+e.prefix+"-calc("+i(e.value,t)+")":"calc("+i(e.value,t)+")";default:return o(e.value,t)+e.unit}}e.exports=t.default}(rv,rv.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Wy),r=$y,o=a(qy),i=a(rv.exports);function a(e){return e&&e.__esModule?e:{default:e}}var s=/((?:\-[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&&s.test(e.value)){var a=n.default.stringify(e.nodes);if(!(a.indexOf("constant")>=0||a.indexOf("env")>=0)){var u=r.parser.parse(a),c=(0,o.default)(u,t);e.type="word",e.value=(0,i.default)(e.value,c,t)}}}),!0).toString()},e.exports=t.default}(Ay,Ay.exports);var ov=it(Ay.exports);function iv(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 av(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iv(Object(n),!0).forEach((function(t){sv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uv(e){return function(e){if(Array.isArray(e))return cv(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 cv(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 cv(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 cv(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 lv={widthCache:{},cacheCount:0},fv={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},dv=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"];var pv=function(e){return Object.keys(e).reduce((function(t,n){return"".concat(t).concat((i=n,i.split("").reduce((function(e,t){return t===t.toUpperCase()?[].concat(uv(e),["-",t.toLowerCase()]):[].concat(uv(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],dv.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},hv=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||Qh.isSsr)return{width:0,height:0};var n="".concat(e),r=pv(t),o="".concat(n,"-").concat(r);if(lv.widthCache[o])return lv.widthCache[o];try{var i=document.getElementById("recharts_measurement_span");i||((i=document.createElement("span")).setAttribute("id","recharts_measurement_span"),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=av(av({},fv),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),u={width:s.width,height:s.height};return lv.widthCache[o]=u,++lv.cacheCount>2e3&&(lv.cacheCount=0,lv.widthCache={}),u}catch(e){return{width:0,height:0}}};function gv(e){return gv="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},gv(e)}function yv(){return yv=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},yv.apply(this,arguments)}function vv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function mv(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bv(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,r.key,r)}}function wv(e,t){return wv=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wv(e,t)}function xv(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=Cv(e);if(t){var o=Cv(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _v(this,n)}}function _v(e,t){return!t||"object"!==gv(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Cv(e){return Cv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cv(e)}function Sv(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Ov(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 Ov(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 Ov(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 kv(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kv(Object(n),!0).forEach((function(t){jv(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kv(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jv(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Av=/[ \f\n\r\t\v\u2028\u2029]+/,Tv=function(e){try{var t=[];return Cf(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(Av)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:hv(t,e.style).width}})),spaceWidth:e.breakAll?0:hv(" ",e.style).width}}catch(e){return null}},Mv=function(e){return[{words:Cf(e)?[]:e.toString().split(Av)}]},Pv=function(e,t){if((e.width||e.scaleToFit)&&!Qh.isSsr&&t){var n=Tv(e);return n?function(e,t,n,r,o){var i=ef(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var u={words:[i],width:a};e.push(u)}return e}),[])},u=s(t);if(!i)return u;for(var c,l=function(t){var n=a.slice(0,t),o=Tv(Ev(Ev({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),u=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[u,i]},f=0,d=a.length-1,p=0;f<=d&&p<=a.length-1;){var h=Math.floor((f+d)/2),g=Sv(l(h-1),2),y=g[0],v=g[1],m=Sv(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(d=h-1),!y&&m){c=v;break}p++}return c||u}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):Mv(e.children)}return Mv(e.children)},Dv=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wv(e,t)}(a,t.Component);var n,r,o,i=xv(a);function a(){var e;mv(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={},e}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.dx,n=e.dy,r=e.textAnchor,o=e.verticalAnchor,i=e.scaleToFit,a=e.angle,u=e.lineHeight,c=e.capHeight,l=e.className,f=e.breakAll,d=vv(e,["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"]),p=this.state.wordsByLines;if(!tf(d.x)||!tf(d.y))return null;var h,g=d.x+(ef(t)?t:0),y=d.y+(ef(n)?n:0);switch(o){case"start":h=ov("calc(".concat(c,")"));break;case"middle":h=ov("calc(".concat((p.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:h=ov("calc(".concat(p.length-1," * -").concat(u,")"))}var v=[];if(i){var m=p[0].width,b=this.props.width;v.push("scale(".concat((ef(b)?b/m:1)/m,")"))}return a&&v.push("rotate(".concat(a,", ").concat(g,", ").concat(y,")")),v.length&&(d.transform=v.join(" ")),s.default.createElement("text",yv({},Sn(d,!0),{x:g,y:y,className:mn("recharts-text",l),textAnchor:r}),p.map((function(e,t){return s.default.createElement("tspan",{x:g,dy:0===t?h:u,key:t},e.words.join(f?"":" "))})))}}],o=[{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:Pv(e,n)}}return null}}],r&&bv(n.prototype,r),o&&bv(n,o),a}();function Rv(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function Iv(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}Dv.defaultProps={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end"};var Lv={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart"},Nv=function(e){return"string"==typeof e?e:e?e.displayName||e.name||"Component":""},Bv=null,Fv=null,zv=function e(n){if(n===Bv&&Qo(Fv))return Fv;var r=[];return t.Children.forEach(n,(function(t){Cf(t)||(ct.exports.isFragment(t)?r=r.concat(e(t.props.children)):r.push(t))})),Fv=r,Bv=n,r},Uv=function(e,t){var n=[],r=[];return r=Qo(t)?t.map((function(e){return Nv(e)})):[Nv(t)],zv(e).forEach((function(e){var t=Bs(e,"type.displayName")||Bs(e,"type.name");-1!==r.indexOf(t)&&n.push(e)})),n},Hv=function(e,t){var n=Uv(e,t);return n&&n[0]},Vv=function(e){if(!e||!e.props)return!1;var t=e.props,n=t.width,r=t.height;return!(!ef(n)||n<=0||!ef(r)||r<=0)},Kv=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Wv=function e(n,r){if(n===r)return!0;var o=t.Children.count(n);if(o!==t.Children.count(r))return!1;if(0===o)return!0;if(1===o)return $v(Qo(n)?n[0]:n,Qo(r)?r[0]:r);for(var i=0;i<o;i++){var a=n[i],s=r[i];if(Qo(a)||Qo(s)){if(!e(a,s))return!1}else if(!$v(a,s))return!1}return!0},$v=function(e,t){if(Cf(e)&&Cf(t))return!0;if(!Cf(e)&&!Cf(t)){var n=e.props||{},r=n.children,o=Iv(n,["children"]),i=t.props||{},a=i.children,s=Iv(i,["children"]);return r&&a?Rv(o,s)&&Wv(r,a):!r&&!a&&Rv(o,s)}return!1},qv=function(e,t){var n=[],r={};return zv(e).forEach((function(e,o){if(function(e){return e&&e.type&&Xl(e.type)&&Kv.indexOf(e.type)>=0}(e))n.push(e);else if(e){var i=Nv(e.type),a=t[i]||{},s=a.handler,u=a.once;if(s&&(!u||!r[i])){var c=s(e,i,o);n.push(c),r[i]=!0}}})),n},Gv=Va;var Zv=function(e,t){return Gv(e,t)},Yv=is;var Xv=function(e,t,n){for(var r=-1,o=e.length;++r<o;){var i=e[r],a=t(i);if(null!=a&&(void 0===s?a==a&&!Yv(a):n(a,s)))var s=a,u=i}return u};var Jv=function(e,t){return e>t},Qv=Xv,em=Jv,tm=ou;var nm=function(e){return e&&e.length?Qv(e,tm,em):void 0};var rm=function(e,t){return e<t},om=Xv,im=rm,am=ou;var sm=function(e){return e&&e.length?om(e,am,im):void 0},um=ms,cm=mu,lm=Qp,fm=Qo;var dm=Kp,pm=function(e,t){return(fm(e)?um:lm)(e,cm(t))};var hm,gm=function(e,t){return dm(pm(e,t),1)},ym=!0,vm="[DecimalError] ",mm=vm+"Invalid argument: ",bm=vm+"Exponent out of range: ",wm=Math.floor,xm=Math.pow,_m=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Cm=1e7,Sm=wm(1286742750677284.5),Om={};function km(e,t){var n,r,o,i,a,s,u,c,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),ym?Lm(t,f):t;if(u=e.d,c=t.d,a=e.e,o=t.e,u=u.slice(),i=a-o){for(i<0?(r=u,i=-i,s=c.length):(r=c,o=a,s=u.length),i>(s=(a=Math.ceil(f/7))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=u.length)-(i=c.length)<0&&(i=s,r=c,c=u,u=r),n=0;i;)n=(u[--i]=u[i]+c[i]+n)/Cm|0,u[i]%=Cm;for(n&&(u.unshift(n),++o),s=u.length;0==u[--s];)u.pop();return t.d=u,t.e=o,ym?Lm(t,f):t}function Em(e,t,n){if(e!==~~e||e<t||e>n)throw Error(mm+e)}function jm(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=Dm(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=Dm(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Om.absoluteValue=Om.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Om.comparedTo=Om.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(t=0,n=(r=i.d.length)<(o=e.d.length)?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1},Om.decimalPlaces=Om.dp=function(){var e=this,t=e.d.length-1,n=7*(t-e.e);if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Om.dividedBy=Om.div=function(e){return Am(this,new this.constructor(e))},Om.dividedToIntegerBy=Om.idiv=function(e){var t=this.constructor;return Lm(Am(this,new t(e),0,1),t.precision)},Om.equals=Om.eq=function(e){return!this.cmp(e)},Om.exponent=function(){return Mm(this)},Om.greaterThan=Om.gt=function(e){return this.cmp(e)>0},Om.greaterThanOrEqualTo=Om.gte=function(e){return this.cmp(e)>=0},Om.isInteger=Om.isint=function(){return this.e>this.d.length-2},Om.isNegative=Om.isneg=function(){return this.s<0},Om.isPositive=Om.ispos=function(){return this.s>0},Om.isZero=function(){return 0===this.s},Om.lessThan=Om.lt=function(e){return this.cmp(e)<0},Om.lessThanOrEqualTo=Om.lte=function(e){return this.cmp(e)<1},Om.logarithm=Om.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(hm))throw Error(vm+"NaN");if(n.s<1)throw Error(vm+(n.s?"NaN":"-Infinity"));return n.eq(hm)?new r(0):(ym=!1,t=Am(Rm(n,i),Rm(e,i),i),ym=!0,Lm(t,o))},Om.minus=Om.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Nm(t,e):km(t,(e.s=-e.s,e))},Om.modulo=Om.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(vm+"NaN");return n.s?(ym=!1,t=Am(n,e,0,1).times(e),ym=!0,n.minus(t)):Lm(new r(n),o)},Om.naturalExponential=Om.exp=function(){return Tm(this)},Om.naturalLogarithm=Om.ln=function(){return Rm(this)},Om.negated=Om.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Om.plus=Om.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?km(t,e):Nm(t,(e.s=-e.s,e))},Om.precision=Om.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(mm+e);if(t=Mm(o)+1,n=7*(r=o.d.length-1)+1,r=o.d[r]){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},Om.squareRoot=Om.sqrt=function(){var e,t,n,r,o,i,a,s=this,u=s.constructor;if(s.s<1){if(!s.s)return new u(0);throw Error(vm+"NaN")}for(e=Mm(s),ym=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=jm(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=wm((e+1)/2)-(e<0||e%2),r=new u(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new u(o.toString()),o=a=(n=u.precision)+3;;)if(r=(i=r).plus(Am(s,i,a+2)).times(.5),jm(i.d).slice(0,a)===(t=jm(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Lm(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return ym=!0,Lm(r,n)},Om.times=Om.mul=function(e){var t,n,r,o,i,a,s,u,c,l=this,f=l.constructor,d=l.d,p=(e=new f(e)).d;if(!l.s||!e.s)return new f(0);for(e.s*=l.s,n=l.e+e.e,(u=d.length)<(c=p.length)&&(i=d,d=p,p=i,a=u,u=c,c=a),i=[],r=a=u+c;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,o=u+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%Cm|0,t=s/Cm|0;i[o]=(i[o]+t)%Cm|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ym?Lm(e,f.precision):e},Om.toDecimalPlaces=Om.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Em(e,0,1e9),void 0===t?t=r.rounding:Em(t,0,8),Lm(n,e+Mm(n)+1,t))},Om.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=Bm(r,!0):(Em(e,0,1e9),void 0===t?t=o.rounding:Em(t,0,8),n=Bm(r=Lm(new o(r),e+1,t),!0,e+1)),n},Om.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?Bm(o):(Em(e,0,1e9),void 0===t?t=i.rounding:Em(t,0,8),n=Bm((r=Lm(new i(o),e+Mm(o)+1,t)).abs(),!1,e+Mm(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Om.toInteger=Om.toint=function(){var e=this,t=e.constructor;return Lm(new t(e),Mm(e)+1,t.rounding)},Om.toNumber=function(){return+this},Om.toPower=Om.pow=function(e){var t,n,r,o,i,a,s=this,u=s.constructor,c=+(e=new u(e));if(!e.s)return new u(hm);if(!(s=new u(s)).s){if(e.s<1)throw Error(vm+"Infinity");return s}if(s.eq(hm))return s;if(r=u.precision,e.eq(hm))return Lm(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=c<0?-c:c)<=9007199254740991){for(o=new u(hm),t=Math.ceil(r/7+4),ym=!1;n%2&&Fm((o=o.times(s)).d,t),0!==(n=wm(n/2));)Fm((s=s.times(s)).d,t);return ym=!0,e.s<0?new u(hm).div(o):Lm(o,r)}}else if(i<0)throw Error(vm+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,ym=!1,o=e.times(Rm(s,r+12)),ym=!0,(o=Tm(o)).s=i,o},Om.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=Bm(o,(n=Mm(o))<=i.toExpNeg||n>=i.toExpPos):(Em(e,1,1e9),void 0===t?t=i.rounding:Em(t,0,8),r=Bm(o=Lm(new i(o),e,t),e<=(n=Mm(o))||n<=i.toExpNeg,e)),r},Om.toSignificantDigits=Om.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Em(e,1,1e9),void 0===t?t=n.rounding:Em(t,0,8)),Lm(new n(this),e,t)},Om.toString=Om.valueOf=Om.val=Om.toJSON=Om[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Mm(e),n=e.constructor;return Bm(e,t<=n.toExpNeg||t>=n.toExpPos)};var Am=function(){function e(e,t){var n,r=0,o=e.length;for(e=e.slice();o--;)n=e[o]*t+r,e[o]=n%Cm|0,r=n/Cm|0;return r&&e.unshift(r),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*Cm+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,u,c,l,f,d,p,h,g,y,v,m,b,w,x,_,C,S,O=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new O(r);if(!o.s)throw Error(vm+"Division by zero");for(u=r.e-o.e,C=j.length,x=E.length,h=(p=new O(k)).d=[],c=0;j[c]==(E[c]||0);)++c;if(j[c]>(E[c]||0)&&--u,(m=null==i?i=O.precision:a?i+(Mm(r)-Mm(o))+1:i)<0)return new O(0);if(m=m/7+2|0,c=0,1==C)for(l=0,j=j[0],m++;(c<x||l)&&m--;c++)b=l*Cm+(E[c]||0),h[c]=b/j|0,l=b%j|0;else{for((l=Cm/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(S=j.slice()).unshift(0),_=j[0],j[1]>=Cm/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*Cm+(g[1]||0)),(l=v/_|0)>1?(l>=Cm&&(l=Cm-1),1==(s=t(f=e(j,l),g,d=f.length,y=g.length))&&(l--,n(f,C<d?S:j,d))):(0==l&&(s=l=1),f=j.slice()),(d=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[c++]=l,s&&g[0]?g[y++]=E[w]||0:(g=[E[w]],y=1)}while((w++<x||void 0!==g[0])&&m--)}return h[0]||h.shift(),p.e=u,Lm(p,a?i+Mm(p)+1:i)}}();function Tm(e,t){var n,r,o,i,a,s=0,u=0,c=e.constructor,l=c.precision;if(Mm(e)>16)throw Error(bm+Mm(e));if(!e.s)return new c(hm);for(null==t?(ym=!1,a=l):a=t,i=new c(.03125);e.abs().gte(.1);)e=e.times(i),u+=5;for(a+=Math.log(xm(2,u))/Math.LN10*2+5|0,n=r=o=new c(hm),c.precision=a;;){if(r=Lm(r.times(e),a),n=n.times(++s),jm((i=o.plus(Am(r,n,a))).d).slice(0,a)===jm(o.d).slice(0,a)){for(;u--;)o=Lm(o.times(o),a);return c.precision=l,null==t?(ym=!0,Lm(o,l)):o}o=i}}function Mm(e){for(var t=7*e.e,n=e.d[0];n>=10;n/=10)t++;return t}function Pm(e,t,n){if(t>e.LN10.sd())throw ym=!0,n&&(e.precision=n),Error(vm+"LN10 precision limit exceeded");return Lm(new e(e.LN10),t)}function Dm(e){for(var t="";e--;)t+="0";return t}function Rm(e,t){var n,r,o,i,a,s,u,c,l,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(vm+(d.s?"NaN":"-Infinity"));if(d.eq(hm))return new h(0);if(null==t?(ym=!1,c=g):c=t,d.eq(10))return null==t&&(ym=!0),Pm(h,c);if(c+=10,h.precision=c,r=(n=jm(p)).charAt(0),i=Mm(d),!(Math.abs(i)<15e14))return u=Pm(h,c+2,g).times(i+""),d=Rm(new h(r+"."+n.slice(1)),c-10).plus(u),h.precision=g,null==t?(ym=!0,Lm(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=jm((d=d.times(e)).d)).charAt(0),f++;for(i=Mm(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=Am(d.minus(hm),d.plus(hm),c),l=Lm(d.times(d),c),o=3;;){if(a=Lm(a.times(l),c),jm((u=s.plus(Am(a,new h(o),c))).d).slice(0,c)===jm(s.d).slice(0,c))return s=s.times(2),0!==i&&(s=s.plus(Pm(h,c+2,g).times(i+""))),s=Am(s,new h(f),c),h.precision=g,null==t?(ym=!0,Lm(s,g)):s;s=u,o+=2}}function Im(e,t){var n,r,o;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(o=t.length;48===t.charCodeAt(o-1);)--o;if(t=t.slice(r,o)){if(o-=r,n=n-r-1,e.e=wm(n/7),e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),ym&&(e.e>Sm||e.e<-Sm))throw Error(bm+n)}else e.s=0,e.e=0,e.d=[0];return e}function Lm(e,t,n){var r,o,i,a,s,u,c,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=7,o=t,c=f[l=0];else{if((l=Math.ceil((r+1)/7))>=(i=f.length))return e;for(c=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=7)-7+a}if(void 0!==n&&(s=c/(i=xm(10,a-o-1))%10|0,u=t<0||void 0!==f[l+1]||c%i,u=n<4?(s||u)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||u||6==n&&(r>0?o>0?c/xm(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return u?(i=Mm(e),f.length=1,t=t-i-1,f[0]=xm(10,(7-t%7)%7),e.e=wm(-t/7)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(0==r?(f.length=l,i=1,l--):(f.length=l+1,i=xm(10,7-r),f[l]=o>0?(c/xm(10,a-o)%xm(10,o)|0)*i:0),u)for(;;){if(0==l){(f[0]+=i)==Cm&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=Cm)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(ym&&(e.e>Sm||e.e<-Sm))throw Error(bm+Mm(e));return e}function Nm(e,t){var n,r,o,i,a,s,u,c,l,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ym?Lm(t,p):t;if(u=e.d,f=t.d,r=t.e,c=e.e,u=u.slice(),a=c-r){for((l=a<0)?(n=u,a=-a,s=f.length):(n=f,r=c,s=u.length),a>(o=Math.max(Math.ceil(p/7),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=u.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(u[o]!=f[o]){l=u[o]<f[o];break}a=0}for(l&&(n=u,u=f,f=n,t.s=-t.s),s=u.length,o=f.length-s;o>0;--o)u[s++]=0;for(o=f.length;o>a;){if(u[--o]<f[o]){for(i=o;i&&0===u[--i];)u[i]=Cm-1;--u[i],u[o]+=Cm}u[o]-=f[o]}for(;0===u[--s];)u.pop();for(;0===u[0];u.shift())--r;return u[0]?(t.d=u,t.e=r,ym?Lm(t,p):t):new d(0)}function Bm(e,t,n){var r,o=Mm(e),i=jm(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Dm(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Dm(-o-1)+i,n&&(r=n-a)>0&&(i+=Dm(r))):o>=a?(i+=Dm(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Dm(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Dm(r))),e.s<0?"-"+i:i}function Fm(e,t){if(e.length>t)return e.length=t,!0}function zm(e){if(!e||"object"!=typeof e)throw Error(vm+"Object expected");var t,n,r,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if(void 0!==(r=e[n=o[t]])){if(!(wm(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(mm+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(mm+n+": "+r);this[n]=new this(r)}return this}var Um=function e(t){var n,r,o;function i(e){var t=this;if(!(t instanceof i))return new i(e);if(t.constructor=i,e instanceof i)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"==typeof e){if(0*e!=0)throw Error(mm+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])):Im(t,e.toString())}if("string"!=typeof e)throw Error(mm+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!_m.test(e))throw Error(mm+e);Im(t,e)}if(i.prototype=Om,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=e,i.config=i.set=zm,void 0===t&&(t={}),t)for(o=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}({precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"});hm=new Um(1);var Hm=Um;function Vm(e){return function(e){if(Array.isArray(e))return Km(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 Km(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 Km(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 Km(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 Wm=function(e){return e},$m={"@@functional/placeholder":!0},qm=function(e){return e===$m},Gm=function(e){return function t(){return 0===arguments.length||1===arguments.length&&qm(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},Zm=function e(t,n){return 1===t?n:Gm((function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o.filter((function(e){return e!==$m})).length;return a>=t?n.apply(void 0,o):e(t-a,Gm((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var i=o.map((function(e){return qm(e)?t.shift():e}));return n.apply(void 0,Vm(i).concat(t))})))}))},Ym=function(e){return Zm(e.length,e)},Xm=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},Jm=Ym((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),Qm=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},eb=function(e){var t=null,n=null;return function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t&&o.every((function(e,n){return e===t[n]}))?n:(t=o,n=e.apply(void 0,o))}};var tb=Ym((function(e,t,n){var r=+e;return r+n*(+t-r)})),nb=Ym((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),rb=Ym((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),ob={rangeStep:function(e,t,n){for(var r=new Hm(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i},getDigitCount:function(e){return 0===e?1:Math.floor(new Hm(e).abs().log(10).toNumber())+1},interpolateNumber:tb,uninterpolateNumber:nb,uninterpolateTruncation:rb};function ib(e){return function(e){if(Array.isArray(e))return ub(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||sb(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 ab(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||sb(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 sb(e,t){if(e){if("string"==typeof e)return ub(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)?ub(e,t):void 0}}function ub(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 cb(e){var t=ab(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function lb(e,t,n){if(e.lte(0))return new Hm(0);var r=ob.getDigitCount(e.toNumber()),o=new Hm(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new Hm(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new Hm(Math.ceil(s))}function fb(e,t,n){var r=1,o=new Hm(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Hm(10).pow(ob.getDigitCount(e)-1),o=new Hm(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Hm(Math.floor(e)))}else 0===e?o=new Hm(Math.floor((t-1)/2)):n||(o=new Hm(Math.floor(e)));var a=Math.floor((t-1)/2),s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return Wm;var r=t.reverse(),o=r[0],i=r.slice(1);return function(){return i.reduce((function(e,t){return t(e)}),o.apply(void 0,arguments))}}(Jm((function(e){return o.add(new Hm(e-a).mul(r)).toNumber()})),Xm);return s(0,t)}function db(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Hm(0),tickMin:new Hm(0),tickMax:new Hm(0)};var i,a=lb(new Hm(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new Hm(0):(i=new Hm(e).add(t).div(2)).sub(new Hm(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),u=Math.ceil(new Hm(t).sub(i).div(a).toNumber()),c=s+u+1;return c>n?db(e,t,n,r,o+1):(c<n&&(u=t>0?u+(n-c):u,s=t>0?s:s+(n-c)),{step:a,tickMin:i.sub(new Hm(s).mul(a)),tickMax:i.add(new Hm(u).mul(a))})}var pb=eb((function(e){var t=ab(e,2),n=t[0],r=t[1],o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:6,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Math.max(o,2),s=cb([n,r]),u=ab(s,2),c=u[0],l=u[1];if(c===-1/0||l===1/0){var f=l===1/0?[c].concat(ib(Xm(0,o-1).map((function(){return 1/0})))):[].concat(ib(Xm(0,o-1).map((function(){return-1/0}))),[l]);return n>r?Qm(f):f}if(c===l)return fb(c,o,i);var d=db(c,l,a,i),p=d.step,h=d.tickMin,g=d.tickMax,y=ob.rangeStep(h,g.add(new Hm(.1).mul(p)),p);return n>r?Qm(y):y})),hb=eb((function(e,t){var n=ab(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=cb([r,o]),s=ab(a,2),u=s[0],c=s[1];if(u===-1/0||c===1/0)return[r,o];if(u===c)return[u];var l=Math.max(t,2),f=lb(new Hm(c).sub(u).div(l-1),i,0),d=[].concat(ib(ob.rangeStep(new Hm(u),new Hm(c).sub(new Hm(.99).mul(f)),f)),[c]);return r>o?Qm(d):d}));function gb(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function yb(e){let t=e,n=e;function r(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)<0?r=i+1:o=i}return r}return 1===e.length&&(t=(t,n)=>e(t)-n,n=function(e){return(t,n)=>gb(e(t),n)}(e)),{left:r,center:function(e,n,o,i){null==o&&(o=0),null==i&&(i=e.length);const a=r(e,n,o,i-1);return a>o&&t(e[a-1],n)>-t(e[a],n)?a-1:a},right:function(e,t,r,o){for(null==r&&(r=0),null==o&&(o=e.length);r<o;){const i=r+o>>>1;n(e[i],t)>0?o=i:r=i+1}return r}}}function vb(e){return null===e?NaN:+e}const mb=yb(gb).right;yb(vb).center;var bb=Math.sqrt(50),wb=Math.sqrt(10),xb=Math.sqrt(2);function _b(e,t,n){var r,o,i,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(o=e,e=t,t=o),0===(a=Cb(e,t,n))||!isFinite(a))return[];if(a>0){let n=Math.round(e/a),r=Math.round(t/a);for(n*a<e&&++n,r*a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)*a}else{a=-a;let n=Math.round(e*a),r=Math.round(t*a);for(n/a<e&&++n,r/a>t&&--r,i=new Array(o=r-n+1);++s<o;)i[s]=(n+s)/a}return r&&i.reverse(),i}function Cb(e,t,n){var r=(t-e)/Math.max(0,n),o=Math.floor(Math.log(r)/Math.LN10),i=r/Math.pow(10,o);return o>=0?(i>=bb?10:i>=wb?5:i>=xb?2:1)*Math.pow(10,o):-Math.pow(10,-o)/(i>=bb?10:i>=wb?5:i>=xb?2:1)}function Sb(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),o=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),i=r/o;return i>=bb?o*=10:i>=wb?o*=5:i>=xb&&(o*=2),t<e?-o:o}function Ob(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 o of e)null!=(o=t(o,++r,e))&&(n<o||void 0===n&&o>=o)&&(n=o)}return n}function kb(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 o of e)null!=(o=t(o,++r,e))&&(n>o||void 0===n&&o>=o)&&(n=o)}return n}function Eb(e,t,n=0,r=e.length-1,o=gb){for(;r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),u=.5*Math.exp(2*s/3),c=.5*Math.sqrt(s*u*(i-u)/i)*(a-i/2<0?-1:1);Eb(e,t,Math.max(n,Math.floor(t-a*u/i+c)),Math.min(r,Math.floor(t+(i-a)*u/i+c)),o)}const i=e[t];let a=n,s=r;for(jb(e,n,t),o(e[r],i)>0&&jb(e,n,r);a<s;){for(jb(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?jb(e,n,s):(++s,jb(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function jb(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ab(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){if((t=+t)<=0||r<2)return kb(e);if(t>=1)return Ob(e);var r,o=(r-1)*t,i=Math.floor(o),a=Ob(Eb(e,i).subarray(0,i+1));return a+(kb(e.subarray(i+1))-a)*(o-i)}}function Tb(e,t,n=vb){if(r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e);return a+(+n(e[i+1],i+1,e)-a)*(o-i)}}function Mb(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=0|Math.max(0,Math.ceil((t-e)/n)),i=new Array(o);++r<o;)i[r]=e+r*n;return i}function Pb(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function Db(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 Rb=Symbol("implicit");function Ib(){var e=new Map,t=[],n=[],r=Rb;function o(o){var i=o+"",a=e.get(i);if(!a){if(r!==Rb)return r;e.set(i,a=t.push(o))}return n[(a-1)%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Map;for(const r of n){const n=r+"";e.has(n)||e.set(n,t.push(r))}return o},o.range=function(e){return arguments.length?(n=Array.from(e),o):n.slice()},o.unknown=function(e){return arguments.length?(r=e,o):r},o.copy=function(){return Ib(t,n).unknown(r)},Pb.apply(o,arguments),o}function Lb(){var e,t,n=Ib().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,u=0,c=0,l=.5;function f(){var n=r().length,f=a<i,d=f?a:i,p=f?i:a;e=(p-d)/Math.max(1,n-u+2*c),s&&(e=Math.floor(e)),d+=(p-d-e*(n-u))*l,t=e*(1-u),s&&(d=Math.round(d),t=Math.round(t));var h=Mb(n).map((function(t){return d+e*t}));return o(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?([i,a]=e,i=+i,a=+a,f()):[i,a]},n.rangeRound=function(e){return[i,a]=e,i=+i,a=+a,s=!0,f()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(s=!!e,f()):s},n.padding=function(e){return arguments.length?(u=Math.min(1,c=+e),f()):u},n.paddingInner=function(e){return arguments.length?(u=Math.min(1,e),f()):u},n.paddingOuter=function(e){return arguments.length?(c=+e,f()):c},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return Lb(r(),[i,a]).round(s).paddingInner(u).paddingOuter(c).align(l)},Pb.apply(f(),arguments)}function Nb(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Nb(t())},e}function Bb(){return Nb(Lb.apply(null,arguments).paddingInner(1))}function Fb(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zb(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Ub(){}var Hb=1/.7,Vb="\\s*([+-]?\\d+)\\s*",Kb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Wb="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$b=/^#([0-9a-f]{3,8})$/,qb=new RegExp("^rgb\\("+[Vb,Vb,Vb]+"\\)$"),Gb=new RegExp("^rgb\\("+[Wb,Wb,Wb]+"\\)$"),Zb=new RegExp("^rgba\\("+[Vb,Vb,Vb,Kb]+"\\)$"),Yb=new RegExp("^rgba\\("+[Wb,Wb,Wb,Kb]+"\\)$"),Xb=new RegExp("^hsl\\("+[Kb,Wb,Wb]+"\\)$"),Jb=new RegExp("^hsla\\("+[Kb,Wb,Wb,Kb]+"\\)$"),Qb={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 ew(){return this.rgb().formatHex()}function tw(){return this.rgb().formatRgb()}function nw(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$b.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?rw(t):3===n?new sw(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?ow(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?ow(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=qb.exec(e))?new sw(t[1],t[2],t[3],1):(t=Gb.exec(e))?new sw(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Zb.exec(e))?ow(t[1],t[2],t[3],t[4]):(t=Yb.exec(e))?ow(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Xb.exec(e))?fw(t[1],t[2]/100,t[3]/100,1):(t=Jb.exec(e))?fw(t[1],t[2]/100,t[3]/100,t[4]):Qb.hasOwnProperty(e)?rw(Qb[e]):"transparent"===e?new sw(NaN,NaN,NaN,0):null}function rw(e){return new sw(e>>16&255,e>>8&255,255&e,1)}function ow(e,t,n,r){return r<=0&&(e=t=n=NaN),new sw(e,t,n,r)}function iw(e){return e instanceof Ub||(e=nw(e)),e?new sw((e=e.rgb()).r,e.g,e.b,e.opacity):new sw}function aw(e,t,n,r){return 1===arguments.length?iw(e):new sw(e,t,n,null==r?1:r)}function sw(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function uw(){return"#"+lw(this.r)+lw(this.g)+lw(this.b)}function cw(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}function lw(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function fw(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pw(e,t,n,r)}function dw(e){if(e instanceof pw)return new pw(e.h,e.s,e.l,e.opacity);if(e instanceof Ub||(e=nw(e)),!e)return new pw;if(e instanceof pw)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,u=(i+o)/2;return s?(a=t===i?(n-r)/s+6*(n<r):n===i?(r-t)/s+2:(t-n)/s+4,s/=u<.5?i+o:2-i-o,a*=60):s=u>0&&u<1?0:a,new pw(a,s,u,e.opacity)}function pw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hw(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Fb(Ub,nw,{copy:function(e){return Object.assign(new this.constructor,this,e)},displayable:function(){return this.rgb().displayable()},hex:ew,formatHex:ew,formatHsl:function(){return dw(this).formatHsl()},formatRgb:tw,toString:tw}),Fb(sw,aw,zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new sw(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new sw(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){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:uw,formatHex:uw,formatRgb:cw,toString:cw})),Fb(pw,(function(e,t,n,r){return 1===arguments.length?dw(e):new pw(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new pw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new pw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){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,o=2*n-r;return new sw(hw(e>=240?e-240:e+120,o,r),hw(e,o,r),hw(e<120?e+240:e-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===e?")":", "+e+")")}}));const gw=Math.PI/180,yw=180/Math.PI,vw=4/29,mw=6/29,bw=3*mw*mw;function ww(e){if(e instanceof xw)return new xw(e.l,e.a,e.b,e.opacity);if(e instanceof Ew)return jw(e);e instanceof sw||(e=iw(e));var t,n,r=Ow(e.r),o=Ow(e.g),i=Ow(e.b),a=_w((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=_w((.4360747*r+.3850649*o+.1430804*i)/.96422),n=_w((.0139322*r+.0971045*o+.7141733*i)/.82521)),new xw(116*a-16,500*(t-a),200*(a-n),e.opacity)}function xw(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _w(e){return e>.008856451679035631?Math.pow(e,1/3):e/bw+vw}function Cw(e){return e>mw?e*e*e:bw*(e-vw)}function Sw(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ow(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kw(e){if(e instanceof Ew)return new Ew(e.h,e.c,e.l,e.opacity);if(e instanceof xw||(e=ww(e)),0===e.a&&0===e.b)return new Ew(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*yw;return new Ew(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Ew(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function jw(e){if(isNaN(e.h))return new xw(e.l,0,0,e.opacity);var t=e.h*gw;return new xw(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Fb(xw,(function(e,t,n,r){return 1===arguments.length?ww(e):new xw(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return new xw(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new xw(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){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 sw(Sw(3.1338561*(t=.96422*Cw(t))-1.6168667*(e=1*Cw(e))-.4906146*(n=.82521*Cw(n))),Sw(-.9787684*t+1.9161415*e+.033454*n),Sw(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Fb(Ew,(function(e,t,n,r){return 1===arguments.length?kw(e):new Ew(e,t,n,null==r?1:r)}),zb(Ub,{brighter:function(e){return new Ew(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Ew(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return jw(this).rgb()}}));var Aw=-.14861,Tw=1.78277,Mw=-.29227,Pw=-.90649,Dw=1.97294,Rw=Dw*Pw,Iw=Dw*Tw,Lw=Tw*Mw-Pw*Aw;function Nw(e){if(e instanceof Fw)return new Fw(e.h,e.s,e.l,e.opacity);e instanceof sw||(e=iw(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(Lw*r+Rw*t-Iw*n)/(Lw+Rw-Iw),i=r-o,a=(Dw*(n-o)-Mw*i)/Pw,s=Math.sqrt(a*a+i*i)/(Dw*o*(1-o)),u=s?Math.atan2(a,i)*yw-120:NaN;return new Fw(u<0?u+360:u,s,o,e.opacity)}function Bw(e,t,n,r){return 1===arguments.length?Nw(e):new Fw(e,t,n,null==r?1:r)}function Fw(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Fb(Fw,Bw,zb(Ub,{brighter:function(e){return e=null==e?Hb:Math.pow(Hb,e),new Fw(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Fw(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*gw,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new sw(255*(t+n*(Aw*r+Tw*o)),255*(t+n*(Mw*r+Pw*o)),255*(t+n*(Dw*r)),this.opacity)}}));var zw=e=>()=>e;function Uw(e,t){return function(n){return e+n*t}}function Hw(e){return 1==(e=+e)?Vw: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):zw(isNaN(t)?n:t)}}function Vw(e,t){var n=t-e;return n?Uw(e,n):zw(isNaN(e)?t:e)}var Kw=function e(t){var n=Hw(t);function r(e,t){var r=n((e=aw(e)).r,(t=aw(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Vw(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function Ww(e,t){t||(t=[]);var n,r=e?Math.min(t.length,e.length):0,o=t.slice();return function(i){for(n=0;n<r;++n)o[n]=e[n]*(1-i)+t[n]*i;return o}}function $w(e,t){var n,r=t?t.length:0,o=e?Math.min(r,e.length):0,i=new Array(o),a=new Array(r);for(n=0;n<o;++n)i[n]=Qw(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<o;++n)a[n]=i[n](e);return a}}function qw(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Gw(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Zw(e,t){var n,r={},o={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Qw(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var Yw=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Xw=new RegExp(Yw.source,"g");function Jw(e,t){var n,r,o,i=Yw.lastIndex=Xw.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=Yw.exec(e))&&(r=Xw.exec(t));)(o=r.index)>i&&(o=t.slice(i,o),s[a]?s[a]+=o:s[++a]=o),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Gw(n,r)})),i=Xw.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})}function Qw(e,t){var n,r=typeof t;return null==t||"boolean"===r?zw(t):("number"===r?Gw:"string"===r?(n=nw(t))?(t=n,Kw):Jw:t instanceof nw?Kw:t instanceof Date?qw:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?Ww:Array.isArray(t)?$w:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Zw:Gw)(e,t)}function ex(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function tx(e){return((e=Math.exp(e))+1/e)/2}function nx(e){return function t(n){function r(t,r){var o=e((t=Bw(t)).h,(r=Bw(r)).h),i=Vw(t.s,r.s),a=Vw(t.l,r.l),s=Vw(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function rx(e,t){void 0===t&&(t=e,e=Qw);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return i[t](e-t)}}function ox(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],u=e[1],c=e[2],l=o[0],f=o[1],d=o[2],p=l-s,h=f-u,g=p*p+h*h;if(g<1e-12)a=Math.log(d/c)/t,i=function(e){return[s+e*p,u+e*h,c*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(d*d-c*c+r*g)/(2*c*n*y),m=(d*d-c*c-r*g)/(2*d*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=tx(b),i=c/(n*y)*(o*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[s+i*p,u+i*h,c*o/tx(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),nx((function(e,t){var n=t-e;return n?Uw(e,n>180||n<-180?n-360*Math.round(n/360):n):zw(isNaN(e)?t:e)})),nx(Vw);var ix=[0,1];function ax(e){return e}function sx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function ux(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=sx(o,r),i=n(a,i)):(r=sx(r,o),i=n(i,a)),function(e){return i(r(e))}}function cx(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=sx(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=mb(e,t,1,r)-1;return i[n](o[n](t))}}function lx(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function fx(){var e,t,n,r,o,i,a=ix,s=ix,u=Qw,c=ax;function l(){var e=Math.min(a.length,s.length);return c!==ax&&(c=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?cx:ux,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,u)))(e(c(t)))}return f.invert=function(n){return c(t((i||(i=r(s,a.map(e),Gw)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,ox),l()):a.slice()},f.range=function(e){return arguments.length?(s=Array.from(e),l()):s.slice()},f.rangeRound=function(e){return s=Array.from(e),u=ex,l()},f.clamp=function(e){return arguments.length?(c=!!e||ax,l()):c!==ax},f.interpolate=function(e){return arguments.length?(u=e,l()):u},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function dx(){return fx()(ax,ax)}function px(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 hx(e){return(e=px(Math.abs(e)))?e[1]:NaN}var gx,yx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function vx(e){if(!(t=yx.exec(e)))throw new Error("invalid format: "+e);var t;return new mx({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 mx(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 bx(e,t){var n=px(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}vx.prototype=mx.prototype,mx.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 wx={"%":(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)=>bx(100*e,t),r:bx,s:function(e,t){var n=px(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(gx=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+px(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function xx(e){return e}var _x,Cx,Sx,Ox=Array.prototype.map,kx=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ex(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?xx:(t=Ox.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],u=0;o>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),i.push(e.substring(o-=s,o+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return i.reverse().join(n)}),o=void 0===e.currency?"":e.currency[0]+"",i=void 0===e.currency?"":e.currency[1]+"",a=void 0===e.decimal?".":e.decimal+"",s=void 0===e.numerals?xx:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Ox.call(e.numerals,String)),u=void 0===e.percent?"%":e.percent+"",c=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=vx(e)).fill,n=e.align,f=e.sign,d=e.symbol,p=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):wx[m]||(void 0===y&&(y=12),v=!0,m="g"),(p||"0"===t&&"="===n)&&(p=!0,t="0",n="=");var b="$"===d?o:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===d?i:/[%p]/.test(m)?u:"",x=wx[m],_=/[defgprs%]/.test(m);function C(e){var o,i,u,d=b,C=w;if("c"===m)C=x(e)+C,e="";else{var S=(e=+e)<0||1/e<0;if(e=isNaN(e)?l:x(Math.abs(e),y),v&&(e=function(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}(e)),S&&0==+e&&"+"!==f&&(S=!1),d=(S?"("===f?f:c:"-"===f||"("===f?"":f)+d,C=("s"===m?kx[8+gx/3]:"")+C+(S&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(u=e.charCodeAt(o))||u>57){C=(46===u?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+C.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=d+e+C+k;break;case"=":e=d+k+e+C;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+C+k.slice(O);break;default:e=k+d+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=vx(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(hx(t)/3))),o=Math.pow(10,-r),i=kx[8+r/3];return function(e){return n(o*e)+i}}}}function jx(e,t,n,r){var o,i=Sb(e,t,n);switch((r=vx(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=r.precision||isNaN(o=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(hx(t)/3)))-hx(Math.abs(e)))}(i,a))||(r.precision=o),Sx(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(o=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,hx(t)-hx(e))+1}(i,Math.max(Math.abs(e),Math.abs(t))))||(r.precision=o-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(o=function(e){return Math.max(0,-hx(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Cx(r)}function Ax(e){var t=e.domain;return e.ticks=function(e){var n=t();return _b(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return jx(r[0],r[r.length-1],null==e?10:e,n)},e.nice=function(n){null==n&&(n=10);var r,o,i=t(),a=0,s=i.length-1,u=i[a],c=i[s],l=10;for(c<u&&(o=u,u=c,c=o,o=a,a=s,s=o);l-- >0;){if((o=Cb(u,c,n))===r)return i[a]=u,i[s]=c,t(i);if(o>0)u=Math.floor(u/o)*o,c=Math.ceil(c/o)*o;else{if(!(o<0))break;u=Math.ceil(u*o)/o,c=Math.floor(c*o)/o}r=o}return e},e}function Tx(){var e=dx();return e.copy=function(){return lx(e,Tx())},Pb.apply(e,arguments),Ax(e)}function Mx(e,t){var n,r=0,o=(e=e.slice()).length-1,i=e[r],a=e[o];return a<i&&(n=r,r=o,o=n,n=i,i=a,a=n),e[r]=t.floor(i),e[o]=t.ceil(a),e}function Px(e){return Math.log(e)}function Dx(e){return Math.exp(e)}function Rx(e){return-Math.log(-e)}function Ix(e){return-Math.exp(-e)}function Lx(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nx(e){return function(t){return-e(-t)}}function Bx(e){var t,n,r=e(Px,Dx),o=r.domain,i=10;function a(){return t=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}(i),n=function(e){return 10===e?Lx:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}(i),o()[0]<0?(t=Nx(t),n=Nx(n),e(Rx,Ix)):e(Px,Dx),r}return r.base=function(e){return arguments.length?(i=+e,a()):i},r.domain=function(e){return arguments.length?(o(e),a()):o()},r.ticks=function(e){var r,a=o(),s=a[0],u=a[a.length-1];(r=u<s)&&(d=s,s=u,u=d);var c,l,f,d=t(s),p=t(u),h=null==e?10:+e,g=[];if(!(i%1)&&p-d<h){if(d=Math.floor(d),p=Math.ceil(p),s>0){for(;d<=p;++d)for(l=1,c=n(d);l<i;++l)if(!((f=c*l)<s)){if(f>u)break;g.push(f)}}else for(;d<=p;++d)for(l=i-1,c=n(d);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;g.push(f)}2*g.length<h&&(g=_b(s,u,h))}else g=_b(d,p,Math.min(p-d,h)).map(n);return r?g.reverse():g},r.tickFormat=function(e,o){if(null==o&&(o=10===i?".0e":","),"function"!=typeof o&&(o=Cx(o)),e===1/0)return o;null==e&&(e=10);var a=Math.max(1,i*e/r.ticks().length);return function(e){var r=e/n(Math.round(t(e)));return r*i<i-.5&&(r*=i),r<=a?o(e):""}},r.nice=function(){return o(Mx(o(),{floor:function(e){return n(Math.floor(t(e)))},ceil:function(e){return n(Math.ceil(t(e)))}}))},r}function Fx(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function zx(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ux(e){var t=1,n=e(Fx(t),zx(t));return n.constant=function(n){return arguments.length?e(Fx(t=+n),zx(t)):t},Ax(n)}function Hx(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Vx(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Kx(e){return e<0?-e*e:e*e}function Wx(e){var t=e(ax,ax),n=1;function r(){return 1===n?e(ax,ax):.5===n?e(Vx,Kx):e(Hx(n),Hx(1/n))}return t.exponent=function(e){return arguments.length?(n=+e,r()):n},Ax(t)}function $x(){var e=Wx(fx());return e.copy=function(){return lx(e,$x()).exponent(e.exponent())},Pb.apply(e,arguments),e}function qx(e){return Math.sign(e)*e*e}function Gx(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}_x=Ex({thousands:",",grouping:[3],currency:["$",""]}),Cx=_x.format,Sx=_x.formatPrefix;var Zx=new Date,Yx=new Date;function Xx(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var a,s=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return s;do{s.push(a=new Date(+n)),t(n,i),e(n)}while(a<n&&n<r);return s},o.filter=function(n){return Xx((function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),(function(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&&(o.count=function(t,r){return Zx.setTime(+t),Yx.setTime(+r),e(Zx),e(Yx),Math.floor(n(Zx,Yx))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e==0}:function(t){return o.count(0,t)%e==0}):o:null}),o}var Jx=Xx((function(){}),(function(e,t){e.setTime(+e+t)}),(function(e,t){return t-e}));Jx.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?Xx((function(t){t.setTime(Math.floor(t/e)*e)}),(function(t,n){t.setTime(+t+n*e)}),(function(t,n){return(n-t)/e})):Jx:null},Jx.range;var Qx=Xx((function(e){e.setTime(e-e.getMilliseconds())}),(function(e,t){e.setTime(+e+1e3*t)}),(function(e,t){return(t-e)/1e3}),(function(e){return e.getUTCSeconds()}));Qx.range;var e_=Xx((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getMinutes()}));e_.range;var t_=Xx((function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getHours()}));t_.range;var n_=Xx((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5),(e=>e.getDate()-1));function r_(e){return Xx((function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),(function(e,t){e.setDate(e.getDate()+7*t)}),(function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5}))}n_.range;var o_=r_(0),i_=r_(1),a_=r_(2),s_=r_(3),u_=r_(4),c_=r_(5),l_=r_(6);o_.range,i_.range,a_.range,s_.range,u_.range,c_.range,l_.range;var f_=Xx((function(e){e.setDate(1),e.setHours(0,0,0,0)}),(function(e,t){e.setMonth(e.getMonth()+t)}),(function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())}),(function(e){return e.getMonth()}));f_.range;var d_=Xx((function(e){e.setMonth(0,1),e.setHours(0,0,0,0)}),(function(e,t){e.setFullYear(e.getFullYear()+t)}),(function(e,t){return t.getFullYear()-e.getFullYear()}),(function(e){return e.getFullYear()}));d_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xx((function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),(function(t,n){t.setFullYear(t.getFullYear()+n*e)})):null},d_.range;var p_=Xx((function(e){e.setUTCSeconds(0,0)}),(function(e,t){e.setTime(+e+6e4*t)}),(function(e,t){return(t-e)/6e4}),(function(e){return e.getUTCMinutes()}));p_.range;var h_=Xx((function(e){e.setUTCMinutes(0,0,0)}),(function(e,t){e.setTime(+e+36e5*t)}),(function(e,t){return(t-e)/36e5}),(function(e){return e.getUTCHours()}));h_.range;var g_=Xx((function(e){e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+t)}),(function(e,t){return(t-e)/864e5}),(function(e){return e.getUTCDate()-1}));function y_(e){return Xx((function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCDate(e.getUTCDate()+7*t)}),(function(e,t){return(t-e)/6048e5}))}g_.range;var v_=y_(0),m_=y_(1),b_=y_(2),w_=y_(3),x_=y_(4),__=y_(5),C_=y_(6);v_.range,m_.range,b_.range,w_.range,x_.range,__.range,C_.range;var S_=Xx((function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCMonth(e.getUTCMonth()+t)}),(function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())}),(function(e){return e.getUTCMonth()}));S_.range;var O_=Xx((function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),(function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)}),(function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()}),(function(e){return e.getUTCFullYear()}));function k_(e,t,n,r,o,i){const a=[[Qx,1,1e3],[Qx,5,5e3],[Qx,15,15e3],[Qx,30,3e4],[i,1,6e4],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,36e5],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,864e5],[r,2,1728e5],[n,1,6048e5],[t,1,2592e6],[t,3,7776e6],[e,1,31536e6]];function s(t,n,r){const o=Math.abs(n-t)/r,i=yb((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(Sb(t/31536e6,n/31536e6,r));if(0===i)return Jx.every(Math.max(Sb(t,n,r),1));const[s,u]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(u)}return[function(e,t,n){const r=t<e;r&&([e,t]=[t,e]);const o=n&&"function"==typeof n.range?n:s(e,t,n),i=o?o.range(e,+t+1):[];return r?i.reverse():i},s]}O_.every=function(e){return isFinite(e=Math.floor(e))&&e>0?Xx((function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),(function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null},O_.range;const[E_,j_]=k_(O_,S_,v_,g_,h_,p_),[A_,T_]=k_(d_,f_,o_,n_,t_,e_);function M_(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 P_(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 D_(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var R_,I_,L_,N_,B_={"-":"",_:" ",0:"0"},F_=/^\s*\d+/,z_=/^%/,U_=/[\\^$*+?|[\]().{}]/g;function H_(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function V_(e){return e.replace(U_,"\\$&")}function K_(e){return new RegExp("^(?:"+e.map(V_).join("|")+")","i")}function W_(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function $_(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function q_(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function G_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Z_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Y_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function X_(e,t,n){var r=F_.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function J_(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Q_(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 eC(e,t,n){var r=F_.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function tC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function nC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function rC(e,t,n){var r=F_.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function oC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function iC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function aC(e,t,n){var r=F_.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function sC(e,t,n){var r=F_.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function uC(e,t,n){var r=F_.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function cC(e,t,n){var r=z_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function lC(e,t,n){var r=F_.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function fC(e,t,n){var r=F_.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function dC(e,t){return H_(e.getDate(),t,2)}function pC(e,t){return H_(e.getHours(),t,2)}function hC(e,t){return H_(e.getHours()%12||12,t,2)}function gC(e,t){return H_(1+n_.count(d_(e),e),t,3)}function yC(e,t){return H_(e.getMilliseconds(),t,3)}function vC(e,t){return yC(e,t)+"000"}function mC(e,t){return H_(e.getMonth()+1,t,2)}function bC(e,t){return H_(e.getMinutes(),t,2)}function wC(e,t){return H_(e.getSeconds(),t,2)}function xC(e){var t=e.getDay();return 0===t?7:t}function _C(e,t){return H_(o_.count(d_(e)-1,e),t,2)}function CC(e){var t=e.getDay();return t>=4||0===t?u_(e):u_.ceil(e)}function SC(e,t){return e=CC(e),H_(u_.count(d_(e),e)+(4===d_(e).getDay()),t,2)}function OC(e){return e.getDay()}function kC(e,t){return H_(i_.count(d_(e)-1,e),t,2)}function EC(e,t){return H_(e.getFullYear()%100,t,2)}function jC(e,t){return H_((e=CC(e)).getFullYear()%100,t,2)}function AC(e,t){return H_(e.getFullYear()%1e4,t,4)}function TC(e,t){var n=e.getDay();return H_((e=n>=4||0===n?u_(e):u_.ceil(e)).getFullYear()%1e4,t,4)}function MC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+H_(t/60|0,"0",2)+H_(t%60,"0",2)}function PC(e,t){return H_(e.getUTCDate(),t,2)}function DC(e,t){return H_(e.getUTCHours(),t,2)}function RC(e,t){return H_(e.getUTCHours()%12||12,t,2)}function IC(e,t){return H_(1+g_.count(O_(e),e),t,3)}function LC(e,t){return H_(e.getUTCMilliseconds(),t,3)}function NC(e,t){return LC(e,t)+"000"}function BC(e,t){return H_(e.getUTCMonth()+1,t,2)}function FC(e,t){return H_(e.getUTCMinutes(),t,2)}function zC(e,t){return H_(e.getUTCSeconds(),t,2)}function UC(e){var t=e.getUTCDay();return 0===t?7:t}function HC(e,t){return H_(v_.count(O_(e)-1,e),t,2)}function VC(e){var t=e.getUTCDay();return t>=4||0===t?x_(e):x_.ceil(e)}function KC(e,t){return e=VC(e),H_(x_.count(O_(e),e)+(4===O_(e).getUTCDay()),t,2)}function WC(e){return e.getUTCDay()}function $C(e,t){return H_(m_.count(O_(e)-1,e),t,2)}function qC(e,t){return H_(e.getUTCFullYear()%100,t,2)}function GC(e,t){return H_((e=VC(e)).getUTCFullYear()%100,t,2)}function ZC(e,t){return H_(e.getUTCFullYear()%1e4,t,4)}function YC(e,t){var n=e.getUTCDay();return H_((e=n>=4||0===n?x_(e):x_.ceil(e)).getUTCFullYear()%1e4,t,4)}function XC(){return"+0000"}function JC(){return"%"}function QC(e){return+e}function eS(e){return Math.floor(+e/1e3)}!function(e){R_=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,c=K_(o),l=W_(o),f=K_(i),d=W_(i),p=K_(a),h=W_(a),g=K_(s),y=W_(s),v=K_(u),m=W_(u),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:dC,e:dC,f:vC,g:jC,G:TC,H:pC,I:hC,j:gC,L:yC,m:mC,M:bC,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:QC,s:eS,S:wC,u:xC,U:_C,V:SC,w:OC,W:kC,x:null,X:null,y:EC,Y:AC,Z:MC,"%":JC},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:PC,e:PC,f:NC,g:GC,G:YC,H:DC,I:RC,j:IC,L:LC,m:BC,M:FC,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:QC,s:eS,S:zC,u:UC,U:HC,V:KC,w:WC,W:$C,x:null,X:null,y:qC,Y:ZC,Z:XC,"%":JC},x={a:function(e,t,n){var r=p.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=d.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(e,n,r){return S(e,t,n,r)},d:nC,e:nC,f:uC,g:J_,G:X_,H:oC,I:oC,j:rC,L:sC,m:tC,M:iC,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:eC,Q:lC,s:fC,S:aC,u:q_,U:G_,V:Z_,w:$_,W:Y_,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:J_,Y:X_,Z:Q_,"%":cC};function _(e,t){return function(n){var r,o,i,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(o=B_[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function C(e,t){return function(n){var r,o,i=D_(1900,void 0,1);if(S(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=P_(D_(i.y,0,1))).getUTCDay(),r=o>4||0===o?m_.ceil(r):m_(r),r=g_.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=M_(D_(i.y,0,1))).getDay(),r=o>4||0===o?i_.ceil(r):i_(r),r=n_.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?P_(D_(i.y,0,1)).getUTCDay():M_(D_(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,P_(i)):M_(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in B_?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),I_=R_.format,R_.parse,L_=R_.utcFormat,N_=R_.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"]});function tS(e){return new Date(e)}function nS(e){return e instanceof Date?+e:+new Date(+e)}function rS(e,t,n,r,o,i,a,s,u,c){var l=dx(),f=l.invert,d=l.domain,p=c(".%L"),h=c(":%S"),g=c("%I:%M"),y=c("%I %p"),v=c("%a %d"),m=c("%b %d"),b=c("%B"),w=c("%Y");function x(e){return(u(e)<e?p:s(e)<e?h:a(e)<e?g:i(e)<e?y:r(e)<e?o(e)<e?v:m:n(e)<e?b:w)(e)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?d(Array.from(e,nS)):d().map(tS)},l.ticks=function(t){var n=d();return e(n[0],n[n.length-1],null==t?10:t)},l.tickFormat=function(e,t){return null==t?x:c(t)},l.nice=function(e){var n=d();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?d(Mx(n,e)):l},l.copy=function(){return lx(l,rS(e,t,n,r,o,i,a,s,u,c))},l}function oS(){var e,t,n,r,o,i=0,a=1,s=ax,u=!1;function c(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,u?Math.max(0,Math.min(1,t)):t))}function l(e){return function(t){var n,r;return arguments.length?([n,r]=t,s=e(n,r),c):[s(0),s(1)]}}return c.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),c):[i,a]},c.clamp=function(e){return arguments.length?(u=!!e,c):u},c.interpolator=function(e){return arguments.length?(s=e,c):s},c.range=l(Qw),c.rangeRound=l(ex),c.unknown=function(e){return arguments.length?(o=e,c):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),c}}function iS(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function aS(){var e=Wx(oS());return e.copy=function(){return iS(e,aS()).exponent(e.exponent())},Db.apply(e,arguments)}function sS(){var e,t,n,r,o,i,a,s=0,u=.5,c=1,l=1,f=ax,d=!1;function p(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(d?Math.max(0,Math.min(1,e)):e))}function h(e){return function(t){var n,r,o;return arguments.length?([n,r,o]=t,f=rx(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,u,c]=a,e=i(s=+s),t=i(u=+u),n=i(c=+c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p):[s,u,c]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(f=e,p):f},p.range=h(Qw),p.rangeRound=h(ex),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(u),n=a(c),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p}}function uS(){var e=Wx(sS());return e.copy=function(){return iS(e,uS()).exponent(e.exponent())},Db.apply(e,arguments)}Date.prototype.toISOString||L_("%Y-%m-%dT%H:%M:%S.%LZ"),+new Date("2000-01-01T00:00:00.000Z")||N_("%Y-%m-%dT%H:%M:%S.%LZ");var cS=Object.freeze({__proto__:null,scaleBand:Lb,scalePoint:Bb,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,ox),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,ox):[0,1],Ax(r)},scaleLinear:Tx,scaleLog:function e(){var t=Bx(fx()).domain([1,10]);return t.copy=function(){return lx(t,e()).base(t.base())},Pb.apply(t,arguments),t},scaleSymlog:function e(){var t=Ux(fx());return t.copy=function(){return lx(t,e()).constant(t.constant())},Pb.apply(t,arguments)},scaleOrdinal:Ib,scaleImplicit:Rb,scalePow:$x,scaleSqrt:function(){return $x.apply(null,arguments).exponent(.5)},scaleRadial:function e(){var t,n=dx(),r=[0,1],o=!1;function i(e){var r=Gx(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(qx(e))},i.domain=function(e){return arguments.length?(n.domain(e),i):n.domain()},i.range=function(e){return arguments.length?(n.range((r=Array.from(e,ox)).map(qx)),i):r.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(o=!!e,i):o},i.clamp=function(e){return arguments.length?(n.clamp(e),i):n.clamp()},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e(n.domain(),r).round(o).clamp(n.clamp()).unknown(t)},Pb.apply(i,arguments),Ax(i)},scaleQuantile:function e(){var t,n=[],r=[],o=[];function i(){var e=0,t=Math.max(1,r.length);for(o=new Array(t-1);++e<t;)o[e-1]=Tb(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[mb(o,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[t>0?o[t-1]:n[0],t<o.length?o[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(gb),i()},a.range=function(e){return arguments.length?(r=Array.from(e),i()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return o.slice()},a.copy=function(){return e().domain(n).range(r).unknown(t)},Pb.apply(a,arguments)},scaleQuantize:function e(){var t,n=0,r=1,o=1,i=[.5],a=[0,1];function s(e){return null!=e&&e<=e?a[mb(i,e,0,o)]:t}function u(){var e=-1;for(i=new Array(o);++e<o;)i[e]=((e+1)*r-(e-o)*n)/(o+1);return s}return s.domain=function(e){return arguments.length?([n,r]=e,n=+n,r=+r,u()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,u()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[n,i[0]]:t>=o?[i[o-1],r]:[i[t-1],i[t]]},s.unknown=function(e){return arguments.length?(t=e,s):s},s.thresholds=function(){return i.slice()},s.copy=function(){return e().domain([n,r]).range(a).unknown(t)},Pb.apply(Ax(s),arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[mb(n,e,0,o)]:t}return i.domain=function(e){return arguments.length?(n=Array.from(e),o=Math.min(n.length,r.length-1),i):n.slice()},i.range=function(e){return arguments.length?(r=Array.from(e),o=Math.min(n.length,r.length-1),i):r.slice()},i.invertExtent=function(e){var t=r.indexOf(e);return[n[t-1],n[t]]},i.unknown=function(e){return arguments.length?(t=e,i):t},i.copy=function(){return e().domain(n).range(r).unknown(t)},Pb.apply(i,arguments)},scaleTime:function(){return Pb.apply(rS(A_,T_,d_,f_,o_,n_,t_,e_,Qx,I_).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return Pb.apply(rS(E_,j_,O_,S_,v_,g_,h_,p_,Qx,L_).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},scaleSequential:function e(){var t=Ax(oS()(ax));return t.copy=function(){return iS(t,e())},Db.apply(t,arguments)},scaleSequentialLog:function e(){var t=Bx(oS()).domain([1,10]);return t.copy=function(){return iS(t,e()).base(t.base())},Db.apply(t,arguments)},scaleSequentialPow:aS,scaleSequentialSqrt:function(){return aS.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=Ux(oS());return t.copy=function(){return iS(t,e()).constant(t.constant())},Db.apply(t,arguments)},scaleSequentialQuantile:function e(){var t=[],n=ax;function r(e){if(null!=e&&!isNaN(e=+e))return n((mb(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(gb),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)=>Ab(t,r/e)))},r.copy=function(){return e(n).domain(t)},Db.apply(r,arguments)},scaleDiverging:function e(){var t=Ax(sS()(ax));return t.copy=function(){return iS(t,e())},Db.apply(t,arguments)},scaleDivergingLog:function e(){var t=Bx(sS()).domain([.1,1,10]);return t.copy=function(){return iS(t,e()).base(t.base())},Db.apply(t,arguments)},scaleDivergingPow:uS,scaleDivergingSqrt:function(){return uS.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=Ux(sS());return t.copy=function(){return iS(t,e()).constant(t.constant())},Db.apply(t,arguments)},tickFormat:jx});function lS(e){return function(e){if(Array.isArray(e))return fS(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 fS(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 fS(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 fS(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 dS(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 pS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dS(Object(n),!0).forEach((function(t){hS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gS(e,t,n){return Cf(e)||Cf(t)?n:tf(t)?Bs(e,t,n):Xn(t)?t(e):n}function yS(e,t,n,r){var o=gm(e,(function(e){return gS(e,t)}));if("number"===n){var i=o.filter((function(e){return ef(e)||parseFloat(e)}));return i.length?[sm(i),nm(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Cf(e)})):o).map((function(e){return tf(e)||e instanceof Date?e:""}))}var vS=function(e){var t,n=e.type.displayName,r=e.props,o=r.stroke,i=r.fill;switch(n){case"Line":t=o;break;case"Area":case"Radar":t=o&&"none"!==o?o:i;break;default:t=i}return t},mS=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=Hv(n,_f.displayName);return a?(t=a.props&&a.props.payload?a.props&&a.props.payload:"children"===i?(r||[]).reduce((function(e,t){var n=t.item,r=t.props,o=r.sectors||r.data||[];return e.concat(o.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,o=n.name,i=n.legendType;return{inactive:n.hide,dataKey:r,type:a.props.iconType||i||"square",color:vS(t),value:o||r,payload:t.props}})),pS(pS(pS({},a.props),_f.getWithHeight(a,o)),{},{payload:t,item:a})):null},bS=function(e,t,n,r,o){var i=t.props.children,a=Uv(i,"ErrorBar").filter((function(e){return function(e,t,n){return!!Cf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(a&&a.length){var s=a.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=gS(t,n,0),o=Qo(r)?[sm(r),nm(r)]:[r,r],i=s.reduce((function(e,n){var r=gS(t,n,0),i=o[0]-Math.abs(Qo(r)?r[0]:r),a=o[1]+Math.abs(Qo(r)?r[1]:r);return[Math.min(i,e[0]),Math.max(a,e[1])]}),[1/0,-1/0]);return[Math.min(i[0],e[0]),Math.max(i[1],e[1])]}),[1/0,-1/0])}return null},wS=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&bS(e,t,i,r)||yS(e,i,n,o)}));if("number"===n)return i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]);var a={};return i.reduce((function(e,t){for(var n=0,r=t.length;n<r;n++)a[t[n]]||(a[t[n]]=!0,e.push(t[n]));return e}),[])},xS=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},_S=function(e,t,n){var r,o,i=e.map((function(e){return e.coordinate===t&&(r=!0),e.coordinate===n&&(o=!0),e.coordinate}));return r||i.push(t),o||i.push(n),i},CS=function(e,t,n){if(!e)return null;var r=e.scale,o=e.duplicateDomain,i=e.type,a=e.range,s="scaleBand"===e.realScaleType?r.bandwidth()/2:2,u=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return u="angleAxis"===e.axisType?2*Jl(a[0]-a[1])*u:u,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+u,value:e,offset:u}})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+u,value:e,index:t,offset:u}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+u,value:e,offset:u}})):r.domain().map((function(e,t){return{coordinate:r(e)+u,value:o?o[e]:e,index:t,offset:u}}))},SS=function(e,t,n){var r;return Xn(n)?r=n:Xn(t)&&(r=t),Xn(e)||r?function(t,n,o,i){Xn(e)&&e(t,n,o,i),Xn(r)&&r(t,n,o,i)}:null},OS=function(e,t,n){var r=e.scale,o=e.type,i=e.layout,a=e.axisType;if("auto"===r)return"radial"===i&&"radiusAxis"===a?{scale:Lb(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:Tx(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:Bb(),realScaleType:"point"}:"category"===o?{scale:Lb(),realScaleType:"band"}:{scale:Tx(),realScaleType:"linear"};if(Xl(r)){var s="scale".concat(pc(r));return{scale:(cS[s]||Bb)(),realScaleType:cS[s]?s:"point"}}return Xn(r)?{scale:r}:{scale:Bb(),realScaleType:"point"}},kS=function(e){var t=e.domain();if(t&&!(t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-1e-4,i=Math.max(r[0],r[1])+1e-4,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},ES=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},jS=function(e,t){if(!t||2!==t.length||!ef(t[0])||!ef(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!ef(e[0])||e[0]<n)&&(o[0]=n),(!ef(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},AS={sign:function(e){var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var o=0,i=0,a=0;a<t;++a){var s=ql(e[a][n][1])?e[a][n][0]:e[a][n][1];s>=0?(e[a][n][0]=o,e[a][n][1]=o+s,o=e[a][n][1]):(e[a][n][0]=i,e[a][n][1]=i+s,i=e[a][n][1])}},expand:function(e,t){if((r=e.length)>0){for(var n,r,o,i=0,a=e[0].length;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}vl(e,t)}},none:vl,silhouette:function(e,t){if((n=e.length)>0){for(var n,r=0,o=e[t[0]],i=o.length;r<i;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;o[r][1]+=o[r][0]=-s/2}vl(e,t)}},wiggle:function(e,t){if((o=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,o,i=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<o;++s){for(var l=e[t[s]],f=l[a][1]||0,d=(f-(l[a-1][1]||0))/2,p=0;p<s;++p){var h=e[t[p]];d+=(h[a][1]||0)-(h[a-1][1]||0)}u+=f,c+=d*f}n[a-1][1]+=n[a-1][0]=i,u&&(i-=c/u)}n[a-1][1]+=n[a-1][0]=i,vl(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 o=0,i=0;i<t;++i){var a=ql(e[i][n][1])?e[i][n][0]:e[i][n][1];a>=0?(e[i][n][0]=o,e[i][n][1]=o+a,o=e[i][n][1]):(e[i][n][0]=0,e[i][n][1]=0)}}},TS=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=bc([]),t=ml,n=vl,r=bl;function o(o){var i,a,s=Array.from(e.apply(this,arguments),wl),u=s.length,c=-1;for(const e of o)for(i=0,++c;i<u;++i)(s[i][c]=[0,+r(e,s[i].key,c,o)]).data=e;for(i=0,a=_c(t(s));i<u;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:bc(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:bc(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?ml:"function"==typeof e?e:bc(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?vl:e,o):n},o}().keys(r).value((function(e,t){return+gS(e,t,0)})).order(ml).offset(AS[n]);return o(e)},MS=function(e,t){var n=t.realScaleType,r=t.type,o=t.tickCount,i=t.originalDomain,a=t.allowDecimals,s=n||t.scale;if("auto"!==s&&"linear"!==s)return null;if(o&&"number"===r&&i&&("auto"===i[0]||"auto"===i[1])){var u=e.domain();if(!u.length)return null;var c=pb(u,o,a);return e.domain(function(e,t){return"number"===t?[sm(e),nm(e)]:e}(c,r)),{niceTicks:c}}if(o&&"number"===r){var l=e.domain();return{niceTicks:hb(l,o,a)}}return null},PS=function(e){var t=e.axis,n=e.ticks,r=e.bandSize,o=e.entry,i=e.index,a=e.dataKey;if("category"===t.type){if(!t.allowDuplicatedCategory&&t.dataKey&&!Cf(o[t.dataKey])){var s=uf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var u=gS(o,Cf(a)?t.dataKey:a);return Cf(u)?null:t.scale(u)},DS=function(e){var t=e.axis,n=e.ticks,r=e.offset,o=e.bandSize,i=e.entry,a=e.index;if("category"===t.type)return n[a]?n[a].coordinate+r:null;var s=gS(i,t.dataKey,t.domain[a]);return Cf(s)?null:t.scale(s)-o/2+r},RS=function(e){var t=e.numericAxis,n=t.scale.domain();if("number"===t.type){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},IS=function(e,t,n){return Object.keys(e).reduce((function(r,o){var i=e[o].stackedData.reduce((function(e,r){var o=r.slice(t,n+1).reduce((function(e,t){return[sm(t.concat([e[0]]).filter(ef)),nm(t.concat([e[1]]).filter(ef))]}),[1/0,-1/0]);return[Math.min(e[0],o[0]),Math.max(e[1],o[1])]}),[1/0,-1/0]);return[Math.min(i[0],r[0]),Math.max(i[1],r[1])]}),[1/0,-1/0]).map((function(e){return e===1/0||e===-1/0?0:e}))},LS=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,NS=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BS=function(e,t,n){if(Xn(e))return e(t,n);if(!Qo(e))return t;var r=[];if(ef(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(LS.test(e[0])){var o=+LS.exec(e[0])[1];r[0]=t[0]-o}else Xn(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(ef(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(NS.test(e[1])){var i=+NS.exec(e[1])[1];r[1]=t[1]+i}else Xn(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},FS=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 o=Bh(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var u=o[a],c=o[a-1];i=Math.min((u.coordinate||0)-(c.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},zS=function(e,t,n){return e&&e.length?Zv(e,Bs(n,"type.defaultProps.domain"))?t:e:t},US=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,u=n.chartType;return pS(pS({},Sn(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:vS(e),value:gS(t,r),type:s,payload:t,chartType:u})};function HS(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 VS(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HS(Object(n),!0).forEach((function(t){KS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WS(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return $S(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 $S(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 $S(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 qS=Math.PI/180,GS=function(e){return 180*e/Math.PI},ZS=function(e,t,n,r){return{x:e+Math.cos(-qS*r)*n,y:t+Math.sin(-qS*r)*n}},YS=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},XS=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,u=e.endAngle,c=of(e.cx,i,i/2),l=of(e.cy,a,a/2),f=YS(i,a,n),d=of(e.innerRadius,f,0),p=of(e.outerRadius,f,.8*f);return Object.keys(t).reduce((function(e,n){var i,a=t[n],f=a.domain,h=a.reversed;if(Cf(a.range))"angleAxis"===r?i=[s,u]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=WS(i=a.range,2);s=g[0],u=g[1]}var y=OS(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),kS(m);var b=MS(m,VS(VS({},a),{},{realScaleType:v})),w=VS(VS(VS({},a),b),{},{range:i,radius:p,realScaleType:v,scale:m,cx:c,cy:l,innerRadius:d,outerRadius:p,startAngle:s,endAngle:u});return VS(VS({},e),{},KS({},n,w))}),{})},JS=function(e,t){var n=e.x,r=e.y,o=t.cx,i=t.cy,a=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a};var s=(n-o)/a,u=Math.acos(s);return r>i&&(u=2*Math.PI-u),{radius:a,angle:GS(u),angleInRadian:u}},QS=function(e,t){var n=t.startAngle,r=t.endAngle,o=Math.floor(n/360),i=Math.floor(r/360);return e+360*Math.min(o,i)},eO=function(e,t){var n=e.x,r=e.y,o=JS({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,u=t.outerRadius;if(i<s||i>u)return!1;if(0===i)return!0;var c,l=function(e){var t=e.startAngle,n=e.endAngle,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-360*i,endAngle:n-360*i}}(t),f=l.startAngle,d=l.endAngle,p=a;if(f<=d){for(;p>d;)p-=360;for(;p<f;)p+=360;c=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;c=p>=d&&p<=f}return c?VS(VS({},t),{},{radius:i,angle:QS(p,t)}):null};function tO(e){return function(e){if(Array.isArray(e))return nO(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 nO(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 nO(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 nO(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 rO(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 oO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?rO(Object(n),!0).forEach((function(t){iO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function iO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aO(){return aO=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},aO.apply(this,arguments)}var sO=function(e,t,n){var r,o,i=e.position,a=e.viewBox,u=e.offset,c=e.className,l=a,f=l.cx,d=l.cy,p=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(p+h)/2,b=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===i?(r=g+w*u,o=v):"insideEnd"===i?(r=y-w*u,o=!v):"end"===i&&(r=y+w*u,o=v),o=b<=0?o:!o;var x=ZS(f,d,m,r),_=ZS(f,d,m,r+359*(o?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(o?0:1,",\n ").concat(_.x,",").concat(_.y),S=Cf(e.id)?rf("recharts-radial-line-"):e.id;return s.default.createElement("text",aO({},n,{dominantBaseline:"central",className:mn("recharts-radial-bar-label",c)}),s.default.createElement("defs",null,s.default.createElement("path",{id:S,d:C})),s.default.createElement("textPath",{xlinkHref:"#".concat(S)},t))};function uO(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,u=e.content,c=e.className,l=void 0===c?"":c,f=e.textBreakAll;if(!r||Cf(i)&&Cf(a)&&!t.isValidElement(u)&&!Xn(u))return null;if(t.isValidElement(u))return t.cloneElement(u,e);if(Xn(u)){if(n=t.createElement(u,e),t.isValidElement(n))return n}else n=function(e){var t=e.value,n=e.formatter,r=Cf(e.children)?t:e.children;return Xn(n)?n(r):r}(e);var d=function(e){return ef(e.cx)}(r),p=Sn(e,!0);if(d&&("insideStart"===o||"insideEnd"===o||"end"===o))return sO(e,n,p);var h=d?function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,u=o.outerRadius,c=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=ZS(i,a,u+n,c),f=l.x;return{x:f,y:l.y,textAnchor:f>=i?"start":"end",verticalAnchor:"middle"}}if("center"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"middle"};if("centerTop"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"start"};if("centerBottom"===r)return{x:i,y:a,textAnchor:"middle",verticalAnchor:"end"};var d=ZS(i,a,(s+u)/2,c);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}}(e):function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,u=i.width,c=i.height,l=c>=0?1:-1,f=l*r,d=l>0?"end":"start",p=l>0?"start":"end",h=u>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return oO(oO({},{x:a+u/2,y:s-l*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:u}:{});if("bottom"===o)return oO(oO({},{x:a+u/2,y:s+c+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+c),0),width:u}:{});if("left"===o){var m={x:a-g,y:s+c/2,textAnchor:y,verticalAnchor:"middle"};return oO(oO({},m),n?{width:Math.max(m.x-n.x,0),height:c}:{})}if("right"===o){var b={x:a+u+g,y:s+c/2,textAnchor:v,verticalAnchor:"middle"};return oO(oO({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:c}:{})}var w=n?{width:u,height:c}:{};return"insideLeft"===o?oO({x:a+g,y:s+c/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?oO({x:a+u-g,y:s+c/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?oO({x:a+u/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?oO({x:a+u/2,y:s+c-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?oO({x:a+g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?oO({x:a+u-g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?oO({x:a+g,y:s+c-f,textAnchor:v,verticalAnchor:d},w):"insideBottomRight"===o?oO({x:a+u-g,y:s+c-f,textAnchor:y,verticalAnchor:d},w):bn(o)&&(ef(o.x)||Ql(o.x))&&(ef(o.y)||Ql(o.y))?oO({x:a+of(o.x,u),y:s+of(o.y,c),textAnchor:"end",verticalAnchor:"end"},w):oO({x:a+u/2,y:s+c/2,textAnchor:"middle",verticalAnchor:"middle"},w)}(e);return s.default.createElement(Dv,aO({className:mn("recharts-label",l)},p,h,{breakAll:f}),n)}uO.displayName="Label",uO.defaultProps={offset:5};var cO=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,u=e.innerRadius,c=e.outerRadius,l=e.x,f=e.y,d=e.top,p=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(ef(h)&&ef(g)){if(ef(l)&&ef(f))return{x:l,y:f,width:h,height:g};if(ef(d)&&ef(p))return{x:d,y:p,width:h,height:g}}return ef(l)&&ef(f)?{x:l,y:f,width:0,height:0}:ef(t)&&ef(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:u||0,outerRadius:c||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}},lO=function(e,n){return e?!0===e?s.default.createElement(uO,{key:"label-implicit",viewBox:n}):tf(e)?s.default.createElement(uO,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===uO?t.cloneElement(e,{key:"label-implicit",viewBox:n}):s.default.createElement(uO,{key:"label-implicit",content:e,viewBox:n}):Xn(e)?s.default.createElement(uO,{key:"label-implicit",content:e,viewBox:n}):bn(e)?s.default.createElement(uO,aO({viewBox:n},e,{key:"label-implicit"})):null:null};uO.parseViewBox=cO,uO.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=cO(e),a=Uv(o,uO.displayName).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=lO(e.label,n||i);return[s].concat(tO(a))};var fO=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function dO(e){return function(e){if(Array.isArray(e))return pO(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 pO(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 pO(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 pO(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 hO(){return hO=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},hO.apply(this,arguments)}function gO(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 yO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gO(Object(n),!0).forEach((function(t){vO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mO(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var bO={valueAccessor:function(e){return Qo(e.value)?fO(e.value):e.value}};function wO(e){var t=e.data,n=e.valueAccessor,r=e.dataKey,o=e.clockWise,i=e.id,a=e.textBreakAll,u=mO(e,["data","valueAccessor","dataKey","clockWise","id","textBreakAll"]);return t&&t.length?s.default.createElement(Pn,{className:"recharts-label-list"},t.map((function(e,t){var c=Cf(r)?n(e,t):gS(e&&e.payload,r),l=Cf(i)?{}:{id:"".concat(i,"-").concat(t)};return s.default.createElement(uO,hO({},Sn(e,!0),u,l,{parentViewBox:e.parentViewBox,index:t,value:c,textBreakAll:a,viewBox:uO.parseViewBox(Cf(o)?e:yO(yO({},e),{},{clockWise:o})),key:"label-".concat(t)}))}))):null}function xO(e,t){return e?!0===e?s.default.createElement(wO,{key:"labelList-implicit",data:t}):s.default.isValidElement(e)||Xn(e)?s.default.createElement(wO,{key:"labelList-implicit",data:t,content:e}):bn(e)?s.default.createElement(wO,hO({data:t},e,{key:"labelList-implicit"})):null:null}function _O(e){return _O="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},_O(e)}function CO(){return CO=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},CO.apply(this,arguments)}function SO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(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,r.key,r)}}function kO(e,t){return kO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kO(e,t)}function EO(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=AO(e);if(t){var o=AO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jO(this,n)}}function jO(e,t){return!t||"object"!==_O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function AO(e){return AO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},AO(e)}wO.displayName="LabelList",wO.renderCallByParent=function(e,n){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e||!e.children&&r&&!e.label)return null;var o=e.children,i=Uv(o,wO.displayName).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));if(!r)return i;var a=xO(e.label,n);return[a].concat(dO(i))},wO.defaultProps=bO;var TO=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,u=e.cornerIsExternal,c=s*(a?1:-1)+r,l=Math.asin(s/c)/qS,f=u?o:o+i*l,d=u?o-i*l:o;return{center:ZS(t,n,c,f),circleTangency:ZS(t,n,r,f),lineTangency:ZS(t,n,c*Math.cos(l*qS),d),theta:l}},MO=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,u=ZS(t,n,o,i),c=ZS(t,n,o,s),l="M ".concat(u.x,",").concat(u.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(c.x,",").concat(c.y,"\n ");if(r>0){var f=ZS(t,n,r,i),d=ZS(t,n,r,s);l+="L ".concat(d.x,",").concat(d.y,"\n A ").concat(r,",").concat(r,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i<=s),",\n ").concat(f.x,",").concat(f.y," Z")}else l+="L ".concat(t,",").concat(n," Z");return l},PO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kO(e,t)}(a,t.PureComponent);var n,r,o,i=EO(a);function a(){return SO(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,u=e.cornerIsExternal,c=e.startAngle,l=e.endAngle,f=e.className;if(o<r||c===l)return null;var d,p=mn("recharts-sector",f),h=o-r,g=of(i,h,0,!0);return d=g>0&&Math.abs(c-l)<360?function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.cornerRadius,a=e.forceCornerRadius,s=e.cornerIsExternal,u=e.startAngle,c=e.endAngle,l=Jl(c-u),f=TO({cx:t,cy:n,radius:o,angle:u,sign:l,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=TO({cx:t,cy:n,radius:o,angle:c,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(u-c):Math.abs(u-c)-h-m;if(b<0)return a?"M ".concat(p.x,",").concat(p.y,"\n a").concat(i,",").concat(i,",0,0,1,").concat(2*i,",0\n a").concat(i,",").concat(i,",0,0,1,").concat(2*-i,",0\n "):MO({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:u,endAngle:c});var w="M ".concat(p.x,",").concat(p.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(d.x,",").concat(d.y,"\n A").concat(o,",").concat(o,",0,").concat(+(b>180),",").concat(+(l<0),",").concat(y.x,",").concat(y.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(v.x,",").concat(v.y,"\n ");if(r>0){var x=TO({cx:t,cy:n,radius:r,angle:u,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,S=x.theta,O=TO({cx:t,cy:n,radius:r,angle:c,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(u-c):Math.abs(u-c)-S-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:Math.min(g,h/2),forceCornerRadius:a,cornerIsExternal:u,startAngle:c,endAngle:l}):MO({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:l}),s.default.createElement("path",CO({},Sn(this.props,!0),{className:p,d:d}))}}],r&&OO(n.prototype,r),o&&OO(n,o),a}();function DO(e){return DO="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},DO(e)}function RO(){return RO=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},RO.apply(this,arguments)}function IO(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 LO(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?IO(Object(n),!0).forEach((function(t){NO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function NO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FO(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,r.key,r)}}function zO(e,t){return zO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},zO(e,t)}function UO(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=VO(e);if(t){var o=VO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HO(this,n)}}function HO(e,t){return!t||"object"!==DO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function VO(e){return VO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},VO(e)}PO.defaultProps={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1};var KO={curveBasisClosed:function(e){return new Zc(e)},curveBasisOpen:function(e){return new Yc(e)},curveBasis:function(e){return new Gc(e)},curveLinearClosed:function(e){return new al(e)},curveLinear:Sc,curveMonotoneX:function(e){return new fl(e)},curveMonotoneY:function(e){return new dl(e)},curveNatural:function(e){return new hl(e)},curveStep:function(e){return new yl(e,.5)},curveStepAfter:function(e){return new yl(e,1)},curveStepBefore:function(e){return new yl(e,0)}},WO=function(e){return e.x===+e.x&&e.y===+e.y},$O=function(e){return e.x},qO=function(e){return e.y},GO=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&zO(e,t)}(a,t.PureComponent);var n,r,o,i=UO(a);function a(){return BO(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(Xn(e))return e;var n="curve".concat(pc(e));return"curveMonotone"===n&&t?KO["".concat(n).concat("vertical"===t?"Y":"X")]:KO[n]||Sc}(n,i),u=a?r.filter((function(e){return WO(e)})):r;if(Qo(o)){var c=a?o.filter((function(e){return WO(e)})):o,l=u.map((function(e,t){return LO(LO({},e),{},{base:c[t]})}));return(e="vertical"===i?jc().y(qO).x1($O).x0((function(e){return e.base.x})):jc().x($O).y1(qO).y0((function(e){return e.base.y}))).defined(WO).curve(s),e(l)}return(e="vertical"===i&&ef(o)?jc().y(qO).x1($O).x0(o):ef(o)?jc().x($O).y1(qO).y0(o):Ec().x($O).y(qO)).defined(WO).curve(s),e(u)}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.points,r=e.path,o=e.pathRef;if(!(n&&n.length||r))return null;var i=n&&n.length?this.getPath():r;return s.default.createElement("path",RO({},Sn(this.props),On(this.props),{className:mn("recharts-curve",t),d:i,ref:o}))}}],r&&FO(n.prototype,r),o&&FO(n,o),a}();function ZO(e){return ZO="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},ZO(e)}function YO(){return YO=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},YO.apply(this,arguments)}function XO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JO(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,r.key,r)}}function QO(e,t){return QO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},QO(e,t)}function ek(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=nk(e);if(t){var o=nk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tk(this,n)}}function tk(e,t){return!t||"object"!==ZO(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nk(e){return nk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nk(e)}GO.defaultProps={type:"linear",points:[],connectNulls:!1};var rk=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,c=r>=0&&n>=0||r<0&&n<0?1:0;if(a>0&&o instanceof Array){for(var l=[0,0,0,0],f=0;f<4;f++)l[f]=o[f]>a?a:o[f];i="M".concat(e,",").concat(t+s*l[0]),l[0]>0&&(i+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(e+u*l[0],",").concat(t)),i+="L ".concat(e+n-u*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,",\n ").concat(e+n,",").concat(t+s*l[1])),i+="L ".concat(e+n,",").concat(t+r-s*l[2]),l[2]>0&&(i+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,",\n ").concat(e+n-u*l[2],",").concat(t+r)),i+="L ".concat(e+u*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,",\n ").concat(e,",").concat(t+r-s*l[3])),i+="Z"}else if(a>0&&o===+o&&o>0){var d=Math.min(a,o);i="M ".concat(e,",").concat(t+s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+u*d,",").concat(t,"\n L ").concat(e+n-u*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n,",").concat(t+s*d,"\n L ").concat(e+n,",").concat(t+r-s*d,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e+n-u*d,",").concat(t+r,"\n L ").concat(e+u*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(c,",").concat(e,",").concat(t+r-s*d," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},ok=function(e,t){if(!e||!t)return!1;var n=e.x,r=e.y,o=t.x,i=t.y,a=t.width,s=t.height;if(Math.abs(a)>0&&Math.abs(s)>0){var u=Math.min(o,o+a),c=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=u&&n<=c&&r>=l&&r<=f}return!1},ik=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&QO(e,t)}(a,t.PureComponent);var n,r,o,i=ek(a);function a(){var e;XO(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,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 e=this,t=this.props,n=t.x,r=t.y,o=t.width,i=t.height,a=t.radius,u=t.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||i!==+i||0===o||0===i)return null;var y=mn("recharts-rectangle",u);return g?s.default.createElement(tp,{canBegin:c>0,from:{width:o,height:i,x:n,y:r},to:{width:o,height:i,x:n,y:r},duration:d,animationEasing:f,isActive:g},(function(t){var n=t.width,r=t.height,o=t.x,i=t.y;return s.default.createElement(tp,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:h,easing:f},s.default.createElement("path",YO({},Sn(e.props,!0),{className:y,d:rk(o,i,n,r,a),ref:function(t){e.node=t}})))})):s.default.createElement("path",YO({},Sn(this.props,!0),{className:y,d:rk(n,r,o,i,a)}))}}],r&&JO(n.prototype,r),o&&JO(n,o),a}();function ak(e){return ak="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},ak(e)}function sk(){return sk=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},sk.apply(this,arguments)}function uk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(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,r.key,r)}}function fk(e,t){return fk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},fk(e,t)}function dk(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=hk(e);if(t){var o=hk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pk(this,n)}}function pk(e,t){return!t||"object"!==ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hk(e){return hk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},hk(e)}function gk(e){return function(e){if(Array.isArray(e))return yk(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 yk(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 yk(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 yk(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}ik.defaultProps={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var vk=function(e){return e&&e.x===+e.x&&e.y===+e.y},mk=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){vk(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),vk(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(gk(e),gk(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},bk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fk(e,t)}(a,t.PureComponent);var n,r,o,i=dk(a);function a(){return ck(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,t=e.points,n=e.className,r=e.baseLinePoints,o=e.connectNulls,i=uk(e,["points","className","baseLinePoints","connectNulls"]);if(!t||!t.length)return null;var a=mn("recharts-polygon",n);if(r&&r.length){var u=i.stroke&&"none"!==i.stroke,c=function(e,t,n){var r=mk(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(mk(t.reverse(),n).slice(1))}(t,r,o);return s.default.createElement("g",{className:a},s.default.createElement("path",sk({},Sn(i,!0),{fill:"Z"===c.slice(-1)?i.fill:"none",stroke:"none",d:c})),u?s.default.createElement("path",sk({},Sn(i,!0),{fill:"none",d:mk(t,o)})):null,u?s.default.createElement("path",sk({},Sn(i,!0),{fill:"none",d:mk(r,o)})):null)}var l=mk(t,o);return s.default.createElement("path",sk({},Sn(i,!0),{fill:"Z"===l.slice(-1)?i.fill:"none",className:a,d:l}))}}])&&lk(n.prototype,r),o&&lk(n,o),a}();function wk(e){return wk="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},wk(e)}function xk(){return xk=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},xk.apply(this,arguments)}function _k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ck(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,r.key,r)}}function Sk(e,t){return Sk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Sk(e,t)}function Ok(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=Ek(e);if(t){var o=Ek(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kk(this,n)}}function kk(e,t){return!t||"object"!==wk(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ek(e){return Ek=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ek(e)}var jk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Sk(e,t)}(a,t.PureComponent);var n,r,o,i=Ok(a);function a(){return _k(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.r,o=e.className,i=mn("recharts-dot",o);return t===+t&&n===+n&&r===+r?s.default.createElement("circle",xk({},Sn(this.props),On(this.props),{className:i,cx:t,cy:n,r:r})):null}}],r&&Ck(n.prototype,r),o&&Ck(n,o),a}();function Ak(e){return Ak="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},Ak(e)}function Tk(){return Tk=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},Tk.apply(this,arguments)}function Mk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pk(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,r.key,r)}}function Dk(e,t){return Dk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Dk(e,t)}function Rk(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=Lk(e);if(t){var o=Lk(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ik(this,n)}}function Ik(e,t){return!t||"object"!==Ak(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Lk(e){return Lk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Lk(e)}var Nk=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dk(e,t)}(a,t.PureComponent);var n,r,o,i=Rk(a);function a(){return Mk(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.top,u=e.left,c=e.className;return ef(t)&&ef(n)&&ef(r)&&ef(o)&&ef(i)&&ef(u)?s.default.createElement("path",Tk({},Sn(this.props,!0),{className:mn("recharts-cross",c),d:a.getPath(t,n,r,o,i,u)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&Pk(n.prototype,r),o&&Pk(n,o),a}();Nk.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var Bk=Xv,Fk=mu,zk=rm;var Uk=function(e,t){return e&&e.length?Bk(e,Fk(t),zk):void 0},Hk=Xv,Vk=Jv,Kk=mu;var Wk=function(e,t){return e&&e.length?Hk(e,Kk(t),Vk):void 0};function $k(e){return $k="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},$k(e)}function qk(){return qk=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},qk.apply(this,arguments)}function Gk(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 Zk(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gk(Object(n),!0).forEach((function(t){Yk(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gk(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yk(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xk(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Jk(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qk(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,r.key,r)}}function eE(e,t){return eE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},eE(e,t)}function tE(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=rE(e);if(t){var o=rE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return nE(this,n)}}function nE(e,t){return!t||"object"!==$k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function rE(e){return rE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},rE(e)}var oE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&eE(e,t)}(a,t.PureComponent);var n,r,o,i=tE(a);function a(){return Jk(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickValueCoord",value:function(e){var t=e.coordinate,n=this.props,r=n.angle,o=n.cx,i=n.cy;return ZS(o,i,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,o=e.ticks,i=Wk(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:Uk(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.angle,o=e.ticks,i=e.axisLine,a=Xk(e,["cx","cy","angle","ticks","axisLine"]),u=o.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),c=ZS(t,n,u[0],r),l=ZS(t,n,u[1],r),f=Zk(Zk(Zk({},Sn(a)),{},{fill:"none"},Sn(i)),{},{x1:c.x,y1:c.y,x2:l.x,y2:l.y});return s.default.createElement("line",qk({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.angle,i=t.tickFormatter,u=t.stroke,c=Xk(t,["ticks","tick","angle","tickFormatter","stroke"]),l=this.getTickTextAnchor(),f=Sn(c),d=Sn(r),p=n.map((function(t,n){var c=e.getTickValueCoord(t),p=Zk(Zk(Zk(Zk({textAnchor:l,transform:"rotate(".concat(90-o,", ").concat(c.x,", ").concat(c.y,")")},f),{},{stroke:"none",fill:u},d),{},{index:n},c),{},{payload:t});return s.default.createElement(Pn,qk({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(n)},kn(e.props,t,n)),a.renderTickItem(r,p,i?i(t.value,n):t.value))}));return s.default.createElement(Pn,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.axisLine,r=e.tick;return t&&t.length?s.default.createElement(Pn,{className:"recharts-polar-radius-axis"},n&&this.renderAxisLine(),r&&this.renderTicks(),uO.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,qk({},t,{className:"recharts-polar-radius-axis-tick-value"}),n)}}],r&&Qk(n.prototype,r),o&&Qk(n,o),a}();function iE(e){return iE="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},iE(e)}function aE(){return aE=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},aE.apply(this,arguments)}function sE(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 uE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sE(Object(n),!0).forEach((function(t){cE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fE(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,r.key,r)}}function dE(e,t){return dE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dE(e,t)}function pE(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=gE(e);if(t){var o=gE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hE(this,n)}}function hE(e,t){return!t||"object"!==iE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function gE(e){return gE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},gE(e)}oE.displayName="PolarRadiusAxis",oE.axisType="radiusAxis",oE.defaultProps={type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,domain:[0,"auto"],allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0};var yE=Math.PI/180,vE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&dE(e,t)}(a,t.PureComponent);var n,r,o,i=pE(a);function a(){return lE(this,a),i.apply(this,arguments)}return n=a,r=[{key:"getTickLineCoord",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.radius,i=t.orientation,a=t.tickSize||8,s=ZS(n,r,o,e.coordinate),u=ZS(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:u.x,y2:u.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*yE);return n>1e-5?"outer"===t?"start":"end":n<-1e-5?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,t=e.cx,n=e.cy,r=e.radius,o=e.axisLine,i=e.axisLineType,a=uE(uE({},Sn(this.props)),{},{fill:"none"},Sn(o));if("circle"===i)return s.default.createElement(jk,aE({className:"recharts-polar-angle-axis-line"},a,{cx:t,cy:n,r:r}));var u=this.props.ticks.map((function(e){return ZS(t,n,r,e.coordinate)}));return s.default.createElement(bk,aE({className:"recharts-polar-angle-axis-line"},a,{points:u}))}},{key:"renderTicks",value:function(){var e=this,t=this.props,n=t.ticks,r=t.tick,o=t.tickLine,i=t.tickFormatter,u=t.stroke,c=Sn(this.props),l=Sn(r),f=uE(uE({},c),{},{fill:"none"},Sn(o)),d=n.map((function(t,n){var d=e.getTickLineCoord(t),p=uE(uE(uE({textAnchor:e.getTickTextAnchor(t)},c),{},{stroke:"none",fill:u},l),{},{index:n,payload:t,x:d.x2,y:d.y2});return s.default.createElement(Pn,aE({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(n)},kn(e.props,t,n)),o&&s.default.createElement("line",aE({className:"recharts-polar-angle-axis-tick-line"},f,d)),r&&a.renderTickItem(r,p,i?i(t.value,n):t.value))}));return s.default.createElement(Pn,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,t=e.ticks,n=e.radius,r=e.axisLine;return n<=0||!t||!t.length?null:s.default.createElement(Pn,{className:"recharts-polar-angle-axis"},r&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,aE({},t,{className:"recharts-polar-angle-axis-tick-value"}),n)}}],r&&fE(n.prototype,r),o&&fE(n,o),a}();vE.displayName="PolarAngleAxis",vE.axisType="angleAxis",vE.defaultProps={type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,domain:[0,"auto"],orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0};var mE=Gi(Object.getPrototypeOf,Object),bE=Gn,wE=mE,xE=di,_E=Function.prototype,CE=Object.prototype,SE=_E.toString,OE=CE.hasOwnProperty,kE=SE.call(Object);var EE=function(e){if(!xE(e)||"[object Object]"!=bE(e))return!1;var t=wE(e);if(null===t)return!0;var n=OE.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&SE.call(n)==kE};function jE(e){return jE="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},jE(e)}function AE(){return AE=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},AE.apply(this,arguments)}function TE(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 ME(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?TE(Object(n),!0).forEach((function(t){PE(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DE(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,r.key,r)}}function RE(e,t){return RE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RE(e,t)}function IE(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=NE(e);if(t){var o=NE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LE(this,n)}}function LE(e,t){return!t||"object"!==jE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function NE(e){return NE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},NE(e)}var BE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RE(e,t)}(a,t.PureComponent);var n,r,o,i=IE(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=i.call(this,e)).state=void 0,t.id=rf("recharts-pie-"),t.handleAnimationEnd=function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),Xn(e)&&e()},t.handleAnimationStart=function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),Xn(e)&&e()},t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId},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(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var t=this.props,n=t.label,r=t.labelLine,o=t.dataKey,i=t.valueKey,u=Sn(this.props),c=Sn(n),l=Sn(r),f=n&&n.offsetRadius||20,d=e.map((function(e,t){var d=(e.startAngle+e.endAngle)/2,p=ZS(e.cx,e.cy,e.outerRadius+f,d),h=ME(ME(ME(ME({},u),e),{},{stroke:"none"},c),{},{index:t,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=ME(ME(ME(ME({},u),e),{},{fill:"none",stroke:e.fill},l),{},{index:t,points:[ZS(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),y=o;return Cf(o)&&Cf(i)?y="value":Cf(o)&&(y=i),s.default.createElement(Pn,{key:"label-".concat(t)},r&&a.renderLabelLineItem(r,g),a.renderLabelItem(n,h,gS(e,y)))}));return s.default.createElement(Pn,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.activeShape,o=n.blendStroke,i=n.inactiveShape;return e.map((function(e,n){var u=i&&t.hasActiveIndex()?i:null,c=t.isActiveIndex(n)?r:u,l=ME(ME({},e),{},{stroke:o?e.fill:e.stroke});return s.default.createElement(Pn,AE({className:"recharts-pie-sector"},kn(t.props,e,n),{key:"sector-".concat(n)}),a.renderSectorItem(c,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.sectors,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state,l=c.prevSectors,f=c.prevIsAnimationActive;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(u,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=[],i=(n&&n[0]).startAngle;return n.forEach((function(e,t){var n=l&&l[t],a=t>0?Bs(e,"paddingAngle",0):0;if(n){var s=sf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),u=ME(ME({},e),{},{startAngle:i+a,endAngle:i+s(r)+a});o.push(u),i=u.endAngle}else{var c=e.endAngle,f=e.startAngle,d=sf(0,c-f)(r),p=ME(ME({},e),{},{startAngle:i+a,endAngle:i+d+a});o.push(p),i=p.endAngle}})),s.default.createElement(Pn,null,e.renderSectorsStatically(o))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&Zv(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.sectors,r=e.className,o=e.label,i=e.cx,a=e.cy,u=e.innerRadius,c=e.outerRadius,l=e.isAnimationActive,f=this.state.isAnimationFinished;if(t||!n||!n.length||!ef(i)||!ef(a)||!ef(u)||!ef(c))return null;var d=mn("recharts-pie",r);return s.default.createElement(Pn,{className:d},this.renderSectors(),o&&this.renderLabels(n),uO.renderCallByParent(this.props,null,!1),(!l||f)&&wO.renderCallByParent(this.props,n,!1))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(GO,AE({},t,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,t,n){if(s.default.isValidElement(e))return s.default.cloneElement(e,t);var r=n;return Xn(e)&&(r=e(t),s.default.isValidElement(r))?r:s.default.createElement(Dv,AE({},t,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),r)}},{key:"renderSectorItem",value:function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):EE(e)?s.default.createElement(PO,AE({},t,e)):s.default.createElement(PO,t)}}],r&&DE(n.prototype,r),o&&DE(n,o),a}();BE.displayName="Pie",BE.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:!Qh.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1},BE.parseDeltaAngle=function(e,t){return Jl(t-e)*Math.min(Math.abs(t-e),360)},BE.getRealPieData=function(e){var t=e.props,n=t.data,r=t.children,o=Sn(e.props),i=Uv(r,ky.displayName);return n&&n.length?n.map((function(e,t){return ME(ME(ME({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return ME(ME({},o),e.props)})):[]},BE.parseCoordinateOfPie=function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=YS(o,i);return{cx:r+of(e.props.cx,o,o/2),cy:n+of(e.props.cy,i,i/2),innerRadius:of(e.props.innerRadius,a,0),outerRadius:of(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}},BE.getComposedData=function(e){var t=e.item,n=e.offset,r=BE.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,u=o.paddingAngle,c=o.dataKey,l=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=BE.parseCoordinateOfPie(t,n),g=BE.parseDeltaAngle(a,s),y=Math.abs(g),v=c;Cf(c)&&Cf(f)?(Oy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Cf(c)&&(Oy(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v=f);var m,b,w=r.filter((function(e){return 0!==gS(e,v,0)})).length,x=y-w*p-(y>=360?w:w-1)*u,_=r.reduce((function(e,t){var n=gS(t,v,0);return e+(ef(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=gS(e,v,0),o=gS(e,l,t),s=(ef(r)?r:0)/_,c=(n=t?b.endAngle+Jl(g)*u*(0!==r?1:0):a)+Jl(g)*((0!==r?p:0)+s*x),f=(n+c)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:d}],w=ZS(h.cx,h.cy,y,f);return b=ME(ME(ME({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:gS(e,v),startAngle:n,endAngle:c,payload:e,paddingAngle:Jl(g)*u})})));return ME(ME({},h),{},{sectors:m,data:r})};var FE={exports:{}};var zE=function(e){return e&&e.length?e[0]:void 0},UE=it(FE.exports=zE);function HE(e){return HE="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},HE(e)}function VE(){return VE=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},VE.apply(this,arguments)}function KE(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 WE(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?KE(Object(n),!0).forEach((function(t){$E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KE(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qE(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GE(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,r.key,r)}}function ZE(e,t){return ZE=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ZE(e,t)}function YE(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=JE(e);if(t){var o=JE(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return XE(this,n)}}function XE(e,t){return!t||"object"!==HE(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function JE(e){return JE=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},JE(e)}var QE=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ZE(e,t)}(a,t.PureComponent);var n,r,o,i=YE(a);function a(){var e;qE(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e.handleMouseEnter=function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)},e.handleMouseLeave=function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)},e}return n=a,r=[{key:"renderDots",value:function(e){var t=this.props,n=t.dot,r=t.dataKey,o=Sn(this.props),i=Sn(n),u=e.map((function(e,t){var s=WE(WE(WE({key:"dot-".concat(t),r:3},o),i),{},{dataKey:r,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(n,s)}));return s.default.createElement(Pn,{className:"recharts-radar-dots"},u)}},{key:"renderPolygonStatically",value:function(e){var t,n=this.props,r=n.shape,o=n.dot,i=n.isRange,a=n.baseLinePoints,u=n.connectNulls;return t=s.default.isValidElement(r)?s.default.cloneElement(r,WE(WE({},this.props),{},{points:e})):Xn(r)?r(WE(WE({},this.props),{},{points:e})):s.default.createElement(bk,VE({},Sn(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:i?a:null,connectNulls:u})),s.default.createElement(Pn,{className:"recharts-radar-polygon"},t,o?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevPoints;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"radar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=c&&c.length/n.length,i=n.map((function(e,t){var n=c&&c[Math.floor(t*o)];if(n){var i=sf(n.x,e.x),a=sf(n.y,e.y);return WE(WE({},e),{},{x:i(r),y:a(r)})}var s=sf(e.cx,e.x),u=sf(e.cy,e.y);return WE(WE({},e),{},{x:s(r),y:u(r)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&Zv(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.className,r=e.points,o=e.isAnimationActive;if(t||!r||!r.length)return null;var i=this.state.isAnimationFinished,a=mn("recharts-radar",n);return s.default.createElement(Pn,{className:a},this.renderPolygon(),(!o||i)&&wO.renderCallByParent(this.props,r))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,VE({},t,{className:"recharts-radar-dot"}))}}],r&&GE(n.prototype,r),o&&GE(n,o),a}();function ej(e){return ej="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},ej(e)}function tj(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 nj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tj(Object(n),!0).forEach((function(t){rj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oj(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ij(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aj(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,r.key,r)}}function sj(e,t){return sj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},sj(e,t)}function uj(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=lj(e);if(t){var o=lj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cj(this,n)}}function cj(e,t){return!t||"object"!==ej(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lj(e){return lj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},lj(e)}QE.displayName="Radar",QE.defaultProps={angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},QE.getComposedData=function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,u=!1,c=[];r.forEach((function(e,r){var l=gS(e,n.dataKey,r),f=gS(e,o),d=n.scale(l)+(i||0),p=Qo(f)?fO(f):f,h=Cf(p)?void 0:t.scale(p);Qo(f)&&f.length>=2&&(u=!0),c.push(WE(WE({},ZS(a,s,h,d)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:d,payload:e}))}));var l=[];return u&&c.forEach((function(e){if(Qo(e.value)){var n=UE(e.value),r=Cf(n)?void 0:t.scale(n);l.push(WE(WE({},e),{},{radius:r},ZS(a,s,r,e.angle)))}else l.push(e)})),{points:c,isRange:u,baseLinePoints:l}};var fj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sj(e,t)}(a,t.PureComponent);var n,r,o,i=uj(a);function a(){var e;ij(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Jl(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,u=oj(n,["shape","activeShape","activeIndex","cornerRadius"]),c=Sn(u);return e.map((function(e,n){var l=nj(nj(nj(nj({},c),{},{cornerRadius:s},e),kn(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:u.forceCornerRadius,cornerIsExternal:u.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevData;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"radialBar-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.startAngle,e.startAngle),i=sf(n.endAngle,e.endAngle);return nj(nj({},e),{},{startAngle:o(r),endAngle:i(r)})}var a=e.endAngle,s=e.startAngle,u=sf(s,a);return nj(nj({},e),{},{endAngle:u(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=Sn(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=oj(e,["value","background"]);if(!i)return null;var u=nj(nj(nj(nj(nj({cornerRadius:n},s),{},{fill:"#eee"},i),r),kn(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,u)}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.background,i=e.isAnimationActive;if(t||!n||!n.length)return null;var a=this.state.isAnimationFinished,u=mn("recharts-area",r);return s.default.createElement(Pn,{className:u},o&&s.default.createElement(Pn,{className:"recharts-radial-bar-background"},this.renderBackground(n)),s.default.createElement(Pn,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!i||a)&&wO.renderCallByParent(nj(nj({},this.props),{},{clockWise:this.getDeltaAngle()<0}),n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(PO,t)}}],r&&aj(n.prototype,r),o&&aj(n,o),a}();fj.displayName="RadialBar",fj.defaultProps={angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1},fj.getComposedData=function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,u=e.dataKey,c=e.stackedData,l=e.barPosition,f=e.bandSize,d=e.dataStartIndex,p=ES(l,t);if(!p)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=c?w.scale.domain():null,_=RS({numericAxis:w}),C=Uv(m,ky.displayName);return{data:s.map((function(e,s){var l,v,m,w,S,O;if(c?l=jS(c[d+s],x):(l=gS(e,u),Qo(l)||(l=[_,l])),"radial"===y){v=DS({axis:r,ticks:o,bandSize:f,offset:p.offset,entry:e,index:s}),S=i.scale(l[1]),w=i.scale(l[0]),m=v+p.size;var k=S-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))S+=Jl(k||b)*(Math.abs(b)-Math.abs(k));O={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),S=(w=DS({axis:i,ticks:a,bandSize:f,offset:p.offset,entry:e,index:s}))+p.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Jl(E||b)*(Math.abs(b)-Math.abs(E))}return nj(nj(nj(nj({},e),O),{},{payload:e,value:c?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:S},C&&C[s]&&C[s].props),{},{tooltipPayload:[US(t,e)],tooltipPosition:ZS(h,g,(v+m)/2,(w+S)/2)})})),layout:y}};var dj=Math.ceil,pj=Math.max;var hj=kg;var gj=function(e){return e?Infinity===(e=hj(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},yj=function(e,t,n,r){for(var o=-1,i=pj(dj((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},vj=Rh,mj=gj;var bj=function(e){return function(t,n,r){return r&&"number"!=typeof r&&vj(t,n,r)&&(n=r=void 0),t=mj(t),void 0===n?(n=t,t=0):n=mj(n),r=void 0===r?t<n?1:-1:mj(r),yj(t,n,r,e)}}();function wj(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 xj(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wj(Object(n),!0).forEach((function(t){_j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _j(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Cj=["Webkit","Moz","O","ms"];function Sj(e){return Sj="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},Sj(e)}function Oj(){return Oj=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},Oj.apply(this,arguments)}function kj(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 Ej(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kj(Object(n),!0).forEach((function(t){jj(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aj(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,r.key,r)}}function Tj(e,t){return Tj=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tj(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=Rj(e);if(t){var o=Rj(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pj(this,n)}}function Pj(e,t){return!t||"object"!==Sj(t)&&"function"!=typeof t?Dj(e):t}function Dj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rj(e){return Rj=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Rj(e)}var Ij=function(e){return e.changedTouches&&!!e.changedTouches.length},Lj=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tj(e,t)}(a,t.PureComponent);var n,r,o,i=Mj(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=i.call(this,e)).leaveTimer=void 0,t.travellerDragStartHandlers=void 0,t.handleDrag=function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)},t.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])},t.handleDragEnd=function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()},t.handleLeaveWrapper=function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))},t.handleEnterSlideOrTraveller=function(){t.setState({isTextActive:!0})},t.handleLeaveSlideOrTraveller=function(){t.setState({isTextActive:!1})},t.handleSlideDragStart=function(e){var n=Ij(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()},t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(Dj(t),"startX"),endX:t.handleTravellerDragStart.bind(Dj(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,o=this.props,i=o.gap,s=o.data.length-1,u=Math.min(t,n),c=Math.max(t,n),l=a.getIndexInRange(r,u),f=a.getIndexInRange(r,c);return{startIndex:l-l%i,endIndex:f===s?s:f-f%i}}},{key:"getTextOfTick",value:function(e){var t=this.props,n=t.data,r=t.tickFormatter,o=t.dataKey,i=gS(n[e],o,e);return Xn(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,u=i.travellerWidth,c=i.startIndex,l=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-u-o,a+s-u-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===c&&p.endIndex===l||!f||f(p),this.setState({startX:r+d,endX:o+d,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=Ij(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,o=n.movingTravellerId,i=n.endX,a=n.startX,s=this.state[o],u=this.props,c=u.x,l=u.width,f=u.travellerWidth,d=u.onChange,p=u.gap,h=u.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,c+l-f-s):y<0&&(y=Math.max(y,c-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((jj(t={},o,s+y),jj(t,"brushMoveStartX",e.pageX),t),(function(){var e;d&&(e=h.length-1,("startX"===o&&(i>a?m%p==0:b%p==0)||i<a&&b===e||"endX"===o&&(i>a?b%p==0:m%p==0)||i>a&&b===e)&&d(v))}))}},{key:"renderBackground",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.fill,a=e.stroke;return s.default.createElement("rect",{stroke:a,fill:i,x:t,y:n,width:r,height:o})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,u=e.children,c=e.padding,l=t.Children.only(u);return l?s.default.cloneElement(l,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,t){var n=this.props,r=n.y,o=n.travellerWidth,i=n.height,u=n.traveller,c=Math.max(e,this.props.x),l=Ej(Ej({},Sn(this.props)),{},{x:c,y:r,width:o,height:i});return s.default.createElement(Pn,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[t],onTouchStart:this.travellerDragStartHandlers[t],style:{cursor:"col-resize"}},a.renderTraveller(u,l))}},{key:"renderSlide",value:function(e,t){var n=this.props,r=n.y,o=n.height,i=n.stroke,a=n.travellerWidth,u=Math.min(e,t)+a,c=Math.max(Math.abs(t-e)-a,0);return s.default.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:i,fillOpacity:.2,x:u,y:r,width:c,height:o})}},{key:"renderText",value:function(){var e=this.props,t=e.startIndex,n=e.endIndex,r=e.y,o=e.height,i=e.travellerWidth,a=e.stroke,u=this.state,c=u.startX,l=u.endX,f={pointerEvents:"none",fill:a};return s.default.createElement(Pn,{className:"recharts-brush-texts"},s.default.createElement(Dv,Oj({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,l)-5,y:r+o/2},f),this.getTextOfTick(t)),s.default.createElement(Dv,Oj({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,l)+i+5,y:r+o/2},f),this.getTextOfTick(n)))}},{key:"render",value:function(){var e=this.props,t=e.data,n=e.className,r=e.children,o=e.x,i=e.y,a=e.width,u=e.height,c=e.alwaysShowText,l=this.state,f=l.startX,d=l.endX,p=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!t||!t.length||!ef(o)||!ef(i)||!ef(a)||!ef(u)||a<=0||u<=0)return null;var y=mn("recharts-brush",n),v=1===s.default.Children.count(r),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=Cj.reduce((function(e,r){return xj(xj({},e),{},_j({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return s.default.createElement(Pn,{className:y,onMouseMove:this.handleDrag,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,d),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(d,"endX"),(p||h||g||c)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=e.stroke,a=Math.floor(n+o/2)-1;return s.default.createElement(s.default.Fragment,null,s.default.createElement("rect",{x:t,y:n,width:r,height:o,fill:i,stroke:"none"}),s.default.createElement("line",{x1:t+1,y1:a,x2:t+r-1,y2:a,fill:"none",stroke:"#fff"}),s.default.createElement("line",{x1:t+1,y1:a+2,x2:t+r-1,y2:a+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):a.renderDefaultTraveller(t)}},{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.x,i=e.travellerWidth,a=e.updateId,s=e.startIndex,u=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return Ej({prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r},n&&n.length?function(e){var t=e.data,n=e.startIndex,r=e.endIndex,o=e.x,i=e.width,a=e.travellerWidth;if(!t||!t.length)return{};var s=t.length,u=Bb().domain(bj(0,s)).range([o,o+i-a]),c=u.domain().map((function(e){return u(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:u(n),endX:u(r),scale:u,scaleValues:c}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:u}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var c=t.scale.domain().map((function(e){return t.scale(e)}));return{prevData:n,prevTravellerWidth:i,prevUpdateId:a,prevX:o,prevWidth:r,startX:t.scale(e.startIndex),endX:t.scale(e.endIndex),scaleValues:c}}return null}},{key:"getIndexInRange",value:function(e,t){for(var n=0,r=e.length-1;r-n>1;){var o=Math.floor((n+r)/2);e[o]>t?r=o:n=o}return t>=e[r]?r:n}}],r&&Aj(n.prototype,r),o&&Aj(n,o),a}();Lj.displayName="Brush",Lj.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 Nj=Yp;var Bj=Io,Fj=mu,zj=function(e,t){var n;return Nj(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},Uj=Qo,Hj=Rh;var Vj=function(e,t,n){var r=Uj(e)?Bj:zj;return n&&Hj(e,t,n)&&(t=void 0),r(e,Fj(t))},Kj=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var Wj=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},$j=Yp;var qj=Wj,Gj=function(e,t){var n=!0;return $j(e,(function(e,r,o){return n=!!t(e,r,o)})),n},Zj=mu,Yj=Qo,Xj=Rh;var Jj=function(e,t,n){var r=Yj(e)?qj:Gj;return n&&Xj(e,t,n)&&(t=void 0),r(e,Zj(t))},Qj=wh;var eA=function(e,t,n){"__proto__"==t&&Qj?Qj(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},tA=eA,nA=Gp,rA=mu;var oA=function(e,t){var n={};return t=rA(t),nA(e,(function(e,r,o){tA(n,r,t(e,r,o))})),n};function iA(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,r.key,r)}}function aA(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 sA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?aA(Object(n),!0).forEach((function(t){uA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cA=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,u=e.children,c=Object.keys(t),l={left:n.left,leftMirror:n.left,right:i-n.right,rightMirror:i-n.right,top:n.top,topMirror:n.top,bottom:a-n.bottom,bottomMirror:a-n.bottom},f=!!Hv(u,"Bar");return c.reduce((function(i,a){var u,c,d,p,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],S=1/0,O=g.categoricalDomain.sort();O.forEach((function(e,t){t>0&&(S=Math.min((e||0)-(O[t-1]||0),S))}));var k=S/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(u=k*E/2),"no-gap"===g.padding){var j=of(e.barCategoryGap,k*E),A=k*E/2;u=A-j-(A-j)/E*j}}c="xAxis"===r?[n.left+(b.left||0)+(u||0),n.left+n.width-(b.right||0)-(u||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(u||0),n.top+n.height-(b.bottom||0)-(u||0)]:g.range,x&&(c=[c[1],c[0]]);var T=OS(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(c),kS(M);var D=MS(M,sA(sA({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,d=n.left,p=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,d=l[_]-h*g.width,p=n.top);var R=sA(sA(sA({},g),D),{},{realScaleType:P,x:d,y:p,scale:M,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=FS(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,sA(sA({},i),{},uA({},a,R))}),{})},lA=function(e,t){var n=e.x,r=e.y,o=t.x,i=t.y;return{x:Math.min(n,o),y:Math.min(r,i),width:Math.abs(o-n),height:Math.abs(i-r)}},fA=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=void 0,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 o=this.bandwidth?this.bandwidth()/2:0;return this.scale(e)+o;case"end":var i=this.bandwidth?this.bandwidth():0;return this.scale(e)+i}if(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&&iA(t.prototype,n),r&&iA(t,r),e}();fA.EPS=1e-4;var dA=function(e){var t=Object.keys(e).reduce((function(t,n){return sA(sA({},t),{},uA({},n,fA.create(e[n])))}),{});return sA(sA({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return oA(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return Jj(e,(function(e,n){return t[n].isInRange(e)}))}})};function pA(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 hA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pA(Object(n),!0).forEach((function(t){gA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yA(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return vA(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 vA(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 vA(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 mA(){return mA=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},mA.apply(this,arguments)}function bA(e){var t=e.x,n=e.y,r=e.segment,o=e.xAxis,i=e.yAxis,a=e.shape,u=e.className,c=e.alwaysShow,l=e.clipPathId;Oy(void 0===c,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=function(e,t,n,r,o){var i=o.viewBox,a=i.x,s=i.y,u=i.width,c=i.height,l=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:l});if(Kj(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+u,y:p},{x:a,y:p}];return"left"===d?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(Kj(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+c},{x:v,y:s}];return"top"===y?m.reverse():m}if(r){var b=o.segment.map((function(t){return e.apply(t,{position:l})}));return Kj(o,"discard")&&Vj(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(dA({x:o.scale,y:i.scale}),tf(t),tf(n),r&&2===r.length,e);if(!f)return null;var d=yA(f,2),p=d[0],h=p.x,g=p.y,y=d[1],v=y.x,m=y.y,b=hA(hA({clipPath:Kj(e,"hidden")?"url(#".concat(l,")"):void 0},Sn(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return s.default.createElement(Pn,{className:mn("recharts-reference-line",u)},function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement("line",mA({},t,{className:"recharts-reference-line-line"}))}(a,b),uO.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return lA({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function wA(){return wA=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},wA.apply(this,arguments)}function xA(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 _A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?xA(Object(n),!0).forEach((function(t){CA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function CA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}bA.displayName="ReferenceLine",bA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function SA(e){var t=e.x,n=e.y,r=e.r,o=e.alwaysShow,i=e.clipPathId,a=tf(t),u=tf(n);if(Oy(void 0===o,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!a||!u)return null;var c=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=dA({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return Kj(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!c)return null;var l=c.x,f=c.y,d=e.shape,p=e.className,h=_A(_A({clipPath:Kj(e,"hidden")?"url(#".concat(i,")"):void 0},Sn(e,!0)),{},{cx:l,cy:f});return s.default.createElement(Pn,{className:mn("recharts-reference-dot",p)},SA.renderDot(d,h),uO.renderCallByParent(e,{x:l-r,y:f-r,width:2*r,height:2*r}))}function OA(){return OA=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},OA.apply(this,arguments)}function kA(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 EA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kA(Object(n),!0).forEach((function(t){jA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}SA.displayName="ReferenceDot",SA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},SA.renderDot=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,wA({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"}))};function AA(e){var t=e.x1,n=e.x2,r=e.y1,o=e.y2,i=e.className,a=e.alwaysShow,u=e.clipPathId;Oy(void 0===a,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=tf(t),l=tf(n),f=tf(r),d=tf(o),p=e.shape;if(!(c||l||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,u=o.y2,c=o.xAxis,l=o.yAxis;if(!c||!l)return null;var f=dA({x:c.scale,y:l.scale}),d={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},p={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(u,{position:"end"}):f.y.rangeMax};return!Kj(o,"discard")||f.isInRange(d)&&f.isInRange(p)?lA(d,p):null}(c,l,f,d,e);if(!h&&!p)return null;var g=Kj(e,"hidden")?"url(#".concat(u,")"):void 0;return s.default.createElement(Pn,{className:mn("recharts-reference-area",i)},AA.renderRect(p,EA(EA({clipPath:g},Sn(e,!0)),h)),uO.renderCallByParent(e,h))}function TA(e){return TA="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},TA(e)}function MA(){return MA=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},MA.apply(this,arguments)}function PA(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 DA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PA(Object(n),!0).forEach((function(t){RA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LA(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,r.key,r)}}function NA(e,t){return NA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},NA(e,t)}function BA(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=zA(e);if(t){var o=zA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return FA(this,n)}}function FA(e,t){return!t||"object"!==TA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zA(e){return zA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},zA(e)}AA.displayName="ReferenceArea",AA.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},AA.renderRect=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(ik,OA({},t,{className:"recharts-reference-area-rect"}))};var UA=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&NA(e,t)}(a,t.Component);var n,r,o,i=BA(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=i.call(this,e)).layerReference=void 0,t.state={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=IA(e,["viewBox"]),o=this.props,i=o.viewBox,a=IA(o,["viewBox"]);return!Rv(n,i)||!Rv(r,a)||!Rv(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,o,i,a,s=this.props,u=s.x,c=s.y,l=s.width,f=s.height,d=s.orientation,p=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||p,m=ef(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=c+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=u+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=u+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=c+ +h*f)+y*v)+y*g,i=m}return{line:{x1:t,y1:r,x2:n,y2:o},tick:{x:i,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 e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.orientation,a=e.mirror,u=e.axisLine,c=DA(DA(DA({},Sn(this.props)),Sn(u)),{},{fill:"none"});if("top"===i||"bottom"===i){var l=+("top"===i&&!a||"bottom"===i&&a);c=DA(DA({},c),{},{x1:t,y1:n+l*o,x2:t+r,y2:n+l*o})}else{var f=+("left"===i&&!a||"right"===i&&a);c=DA(DA({},c),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return s.default.createElement("line",MA({},c,{className:mn("recharts-cartesian-axis-line",Bs(u,"className"))}))}},{key:"renderTicks",value:function(e,t,n){var r=this,o=this.props,i=o.tickLine,u=o.stroke,c=o.tick,l=o.tickFormatter,f=o.unit,d=a.getTicks(DA(DA({},this.props),{},{ticks:e}),t,n),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=Sn(this.props),y=Sn(c),v=DA(DA({},g),{},{fill:"none"},Sn(i)),m=d.map((function(e,t){var n=r.getTickLineCoord(e),o=n.line,m=n.tick,b=DA(DA(DA(DA({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:u},y),m),{},{index:t,payload:e,visibleTicksCount:d.length,tickFormatter:l});return s.default.createElement(Pn,MA({className:"recharts-cartesian-axis-tick",key:"tick-".concat(t)},kn(r.props,e,t)),i&&s.default.createElement("line",MA({},v,o,{className:mn("recharts-cartesian-axis-tick-line",Bs(i,"className"))})),c&&a.renderTickItem(c,b,"".concat(Xn(l)?l(e.value,t):e.value).concat(f||"")))}));return s.default.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,t=this.props,n=t.axisLine,r=t.width,o=t.height,i=t.ticksGenerator,a=t.className;if(t.hide)return null;var u=this.props,c=u.ticks,l=IA(u,["ticks"]),f=c;return Xn(i)&&(f=c&&c.length>0?i(this.props):i(l)),r<=0||o<=0||!f||!f.length?null:s.default.createElement(Pn,{className:mn("recharts-cartesian-axis",a),ref:function(t){e.layerReference=t}},n&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),uO.renderCallByParent(this.props))}}],o=[{key:"getTicks",value:function(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,s=e.minTickGap,u=e.orientation,c=e.interval,l=e.tickFormatter,f=e.unit;return o&&o.length&&r?ef(c)||Qh.isSsr?a.getNumberIntervalTicks(o,"number"==typeof c&&ef(c)?c:0):"preserveStartEnd"===c?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n},!0):"preserveStart"===c?a.getTicksStart({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):a.getTicksEnd({ticks:o,tickFormatter:l,viewBox:i,orientation:u,minTickGap:s,unit:f,fontSize:t,letterSpacing:n}):[]}},{key:"getNumberIntervalTicks",value:function(e,t){return e.filter((function(e,n){return n%(t+1)==0}))}},{key:"getTicksStart",value:function(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,u=e.minTickGap,c=e.unit,l=e.fontSize,f=e.letterSpacing,d=a.x,p=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=c&&"width"===y?hv(c,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Jl(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?d:p,r="width"===y?d+h:p+g):(n="width"===y?d+h:p+g,r="width"===y?d:p),t){var x=o[b-1],_=Xn(i)?i(x.value,b-1):x.value,C=hv(_,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*C/2-r);v[b-1]=x=DA(DA({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+u),v[b-1]=DA(DA({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=Xn(i)?i(E.value,k):E.value,A=hv(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=DA(DA({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=DA(DA({},E),{},{tickCoord:E.coordinate});w*(E.tickCoord-w*A/2-n)>=0&&w*(E.tickCoord+w*A/2-r)<=0&&(n=E.tickCoord+w*(A/2+u),v[k]=DA(DA({},E),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"getTicksEnd",value:function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,u=e.unit,c=e.fontSize,l=e.letterSpacing,f=i.x,d=i.y,p=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=u&&"width"===g?hv(u,{fontSize:c,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Jl(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:d,n="width"===g?f+p:d+h):(t="width"===g?f+p:d+h,n="width"===g?f:d);for(var w=m-1;w>=0;w--){var x=v[w],_=Xn(o)?o(x.value,m-w-1):x.value,C=hv(_,{fontSize:c,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*C/2-n);v[w]=x=DA(DA({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=DA(DA({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=DA(DA({},x),{},{isShow:!0}))}return v.filter((function(e){return e.isShow}))}},{key:"renderTickItem",value:function(e,t,n){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(Dv,MA({},t,{className:"recharts-cartesian-axis-tick-value"}),n)}}],r&&LA(n.prototype,r),o&&LA(n,o),a}();function HA(e){return HA="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},HA(e)}function VA(){return VA=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},VA.apply(this,arguments)}function KA(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function WA(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 $A(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WA(Object(n),!0).forEach((function(t){qA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(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,r.key,r)}}function YA(e,t){return YA=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},YA(e,t)}function XA(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=QA(e);if(t){var o=QA(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return JA(this,n)}}function JA(e,t){return!t||"object"!==HA(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function QA(e){return QA=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},QA(e)}UA.displayName="CartesianAxis",UA.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 eT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&YA(e,t)}(a,t.PureComponent);var n,r,o,i=XA(a);function a(){return GA(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var t=this,n=this.props,r=n.x,o=n.width,i=n.horizontal;if(!e||!e.length)return null;var u=e.map((function(e,n){var s=$A($A({},t.props),{},{x1:r,y1:e,x2:r+o,y2:e,key:"line-".concat(n),index:n});return a.renderLineItem(i,s)}));return s.default.createElement("g",{className:"recharts-cartesian-grid-horizontal"},u)}},{key:"renderVertical",value:function(e){var t=this,n=this.props,r=n.y,o=n.height,i=n.vertical;if(!e||!e.length)return null;var u=e.map((function(e,n){var s=$A($A({},t.props),{},{x1:e,y1:r,x2:e,y2:r+o,key:"line-".concat(n),index:n});return a.renderLineItem(i,s)}));return s.default.createElement("g",{className:"recharts-cartesian-grid-vertical"},u)}},{key:"renderVerticalStripes",value:function(e){var t=this.props.verticalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,c=e.slice().sort((function(e,t){return e-t}));o!==c[0]&&c.unshift(0);var l=c.map((function(e,n){var l=c[n+1]?c[n+1]-e:o+a-e;if(l<=0)return null;var f=n%t.length;return s.default.createElement("rect",{key:"react-".concat(n),x:Math.round(e+o-o),y:i,width:l,height:u,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var t=this.props.horizontalFill;if(!t||!t.length)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,u=n.height,c=e.slice().sort((function(e,t){return e-t}));i!==c[0]&&c.unshift(0);var l=c.map((function(e,n){var l=c[n+1]?c[n+1]-e:i+u-e;if(l<=0)return null;var f=n%t.length;return s.default.createElement("rect",{key:"react-".concat(n),y:Math.round(e+i-i),x:o,height:l,width:a,stroke:"none",fill:t[f],fillOpacity:r,className:"recharts-cartesian-grid-bg"})}));return s.default.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var t=this.props,n=t.fillOpacity,r=t.x,o=t.y,i=t.width,a=t.height;return s.default.createElement("rect",{x:r,y:o,width:i,height:a,stroke:"none",fill:e,fillOpacity:n,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,t=e.x,n=e.y,r=e.width,o=e.height,i=e.horizontal,a=e.vertical,u=e.horizontalCoordinatesGenerator,c=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!ef(r)||r<=0||!ef(o)||o<=0||!ef(t)||t!==+t||!ef(n)||n!==+n)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!Xn(u)||(y=u({yAxis:f,width:p,height:h,offset:d})),v&&v.length||!Xn(c)||(v=c({xAxis:l,width:p,height:h,offset:d})),s.default.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),i&&this.renderHorizontal(y),a&&this.renderVertical(v),i&&this.renderHorizontalStripes(y),a&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,t){var n;if(s.default.isValidElement(e))n=s.default.cloneElement(e,t);else if(Xn(e))n=e(t);else{var r=t.x1,o=t.y1,i=t.x2,a=t.y2,u=t.key,c=KA(t,["x1","y1","x2","y2","key"]);n=s.default.createElement("line",VA({},Sn(c),{x1:r,y1:o,x2:i,y2:a,fill:"none",key:u}))}return n}}],r&&ZA(n.prototype,r),o&&ZA(n,o),a}();function tT(){return tT=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},tT.apply(this,arguments)}function nT(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return rT(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 rT(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 rT(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 oT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function iT(e){var t=e.offset,n=e.layout,r=e.width,o=e.dataKey,i=e.data,a=e.dataPointFormatter,u=e.xAxis,c=e.yAxis,l=oT(e,["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"]),f=Sn(l),d=i.map((function(e,i){var l=a(e,o),d=l.x,p=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=nT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===n){var w=u.scale,x=p+t,_=x+r,C=x-r,S=w(h-y),O=w(h+v);m.push({x1:O,y1:_,x2:O,y2:C}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:_,x2:S,y2:C})}else if("horizontal"===n){var k=c.scale,E=d+t,j=E-r,A=E+r,T=k(h-y),M=k(h+v);m.push({x1:j,y1:M,x2:A,y2:M}),m.push({x1:E,y1:T,x2:E,y2:M}),m.push({x1:j,y1:T,x2:A,y2:T})}return s.default.createElement(Pn,tT({className:"recharts-errorBar",key:"bar-".concat(i)},f),m.map((function(e,t){return s.default.createElement("line",tT({},e,{key:"line-".concat(t)}))})))}));return s.default.createElement(Pn,{className:"recharts-errorBars"},d)}function aT(e){return aT="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},aT(e)}function sT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uT(){return uT=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},uT.apply(this,arguments)}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 lT(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){fT(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 fT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dT(e){return function(e){if(Array.isArray(e))return pT(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 pT(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 pT(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 pT(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 hT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gT(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,r.key,r)}}function yT(e,t){return yT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yT(e,t)}function vT(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=bT(e);if(t){var o=bT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mT(this,n)}}function mT(e,t){return!t||"object"!==aT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bT(e){return bT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},bT(e)}eT.displayName="CartesianGrid",eT.defaultProps={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]},iT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},iT.displayName="ErrorBar";var wT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yT(e,t)}(a,t.PureComponent);var n,r,o,i=vT(a);function a(){var e;hT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).mainCurve=void 0,e.state={isAnimationFinished:!0,totalLength:0},e.getStrokeDasharray=function(e,t,n){for(var r=n.reduce((function(e,t){return e+t})),o=Math.floor(e/r),i=e%r,s=t-e,u=[],c=0,l=0;;l+=n[c],++c)if(l+n[c]>i){u=[].concat(dT(n.slice(0,c)),[i-l]);break}var f=u.length%2==0?[0,s]:[s];return[].concat(dT(a.repeat(n,o)),dT(u),f).map((function(e){return"".concat(e,"px")})).join(", ")},e.id=rf("recharts-line-"),e.pathRef=function(t){e.mainCurve=t},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()},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(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=Uv(i,iT.displayName);if(!a)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gS(e.payload,t)}}return a.map((function(e,i){return s.default.cloneElement(e,{key:"bar-".concat(i),data:t,xAxis:n,yAxis:r,layout:o,dataPointFormatter:u})}))}},{key:"renderDots",value:function(e,t){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.dot,o=n.points,i=n.dataKey,u=Sn(this.props),c=Sn(r,!0),l=o.map((function(e,t){var n=lT(lT(lT({key:"dot-".concat(t),r:3},u),c),{},{value:e.value,dataKey:i,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(r,n)})),f={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s.default.createElement(Pn,uT({className:"recharts-line-dots",key:"dots"},f),l)}},{key:"renderCurveStatically",value:function(e,t,n,r){var o=this.props,i=o.type,a=o.layout,u=o.connectNulls;o.ref;var c=sT(o,["type","layout","connectNulls","ref"]),l=lT(lT(lT({},Sn(c,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:t?"url(#clipPath-".concat(n,")"):null,points:e},r),{},{type:i,layout:a,connectNulls:u});return s.default.createElement(GO,uT({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.strokeDasharray,a=r.isAnimationActive,u=r.animationBegin,c=r.animationDuration,l=r.animationEasing,f=r.animationId,d=r.animateNewValues,p=r.width,h=r.height,g=this.state,y=g.prevPoints,v=g.totalLength;return s.default.createElement(tp,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(y){var s=y.length/o.length,u=o.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return lT(lT({},e),{},{x:o(a),y:i(a)})}if(d){var u=sf(2*p,e.x),c=sf(h/2,e.y);return lT(lT({},e),{},{x:u(a),y:c(a)})}return lT(lT({},e),{},{x:e.x,y:e.y})}));return n.renderCurveStatically(u,e,t)}var c,l=sf(0,v)(a);if(i){var f="".concat(i).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));c=n.getStrokeDasharray(l,v,f)}else c="".concat(l,"px ").concat(v-l,"px");return n.renderCurveStatically(o,e,t,{strokeDasharray:c})}))}},{key:"renderCurve",value:function(e,t){var n=this.props,r=n.points,o=n.isAnimationActive,i=this.state,a=i.prevPoints,s=i.totalLength;return o&&r&&r.length&&(!a&&s>0||!Zv(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.xAxis,a=e.yAxis,u=e.top,c=e.left,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=mn("recharts-line",o),v=i&&i.allowDataOverflow||a&&a.allowDataOverflow,m=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:y},v?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(m)},s.default.createElement("rect",{x:c,y:u,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(),(g||n)&&this.renderDots(v,m),(!d||h)&&wO.renderCallByParent(this.props,r))}}],o=[{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(dT(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(dT(r),dT(n));return r}},{key:"renderDotItem",value:function(e,t){var n;if(s.default.isValidElement(e))n=s.default.cloneElement(e,t);else if(Xn(e))n=e(t);else{var r=mn("recharts-line-dot",e?e.className:"");n=s.default.createElement(jk,uT({},t,{className:r}))}return n}}],r&&gT(n.prototype,r),o&&gT(n,o),a}();function xT(e){return xT="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},xT(e)}function _T(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function CT(){return CT=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},CT.apply(this,arguments)}function ST(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 OT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ST(Object(n),!0).forEach((function(t){kT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ET(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jT(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,r.key,r)}}function AT(e,t){return AT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AT(e,t)}function TT(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=PT(e);if(t){var o=PT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MT(this,n)}}function MT(e,t){return!t||"object"!==xT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function PT(e){return PT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},PT(e)}wT.displayName="Line",wT.defaultProps={xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Qh.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1},wT.getComposedData=function(e){var t=e.props,n=e.xAxis,r=e.yAxis,o=e.xAxisTicks,i=e.yAxisTicks,a=e.dataKey,s=e.bandSize,u=e.displayedData,c=e.offset,l=t.layout;return lT({points:u.map((function(e,t){var u=gS(e,a);return"horizontal"===l?{x:PS({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Cf(u)?null:r.scale(u),value:u,payload:e}:{x:Cf(u)?null:n.scale(u),y:PS({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:u,payload:e}})),layout:l},c)};var DT=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AT(e,t)}(a,t.PureComponent);var n,r,o,i=TT(a);function a(){var e;ET(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!0},e.id=rf("recharts-area-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(t)&&t()},e}return n=a,r=[{key:"renderDots",value:function(e,t){var n=this.props.isAnimationActive,r=this.state.isAnimationFinished;if(n&&!r)return null;var o=this.props,i=o.dot,u=o.points,c=o.dataKey,l=Sn(this.props),f=Sn(i,!0),d=u.map((function(e,t){var n=OT(OT(OT({key:"dot-".concat(t),r:3},l),f),{},{dataKey:c,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(i,n)})),p={clipPath:e?"url(#clipPath-".concat(t,")"):null};return s.default.createElement(Pn,CT({className:"recharts-area-dots"},p),d)}},{key:"renderHorizontalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].x,a=r[r.length-1].x,u=e*Math.abs(i-a),c=nm(r.map((function(e){return e.y||0})));return ef(n)&&"number"==typeof n?c=Math.max(n,c):n&&Qo(n)&&n.length&&(c=Math.max(nm(n.map((function(e){return e.y||0}))),c)),ef(c)?s.default.createElement("rect",{x:i<a?i:i-u,y:0,width:u,height:Math.floor(c+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var t=this.props,n=t.baseLine,r=t.points,o=t.strokeWidth,i=r[0].y,a=r[r.length-1].y,u=e*Math.abs(i-a),c=nm(r.map((function(e){return e.x||0})));return ef(n)&&"number"==typeof n?c=Math.max(n,c):n&&Qo(n)&&n.length&&(c=Math.max(nm(n.map((function(e){return e.x||0}))),c)),ef(c)?s.default.createElement("rect",{x:0,y:i<a?i:i-u,width:c+(o?parseInt("".concat(o),10):1),height:Math.floor(u)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,t,n,r){var o=this.props,i=o.layout,a=o.type,u=o.stroke,c=o.connectNulls,l=o.isRange;o.ref;var f=_T(o,["layout","type","stroke","connectNulls","isRange","ref"]);return s.default.createElement(Pn,{clipPath:n?"url(#clipPath-".concat(r,")"):null},s.default.createElement(GO,CT({},Sn(f,!0),{points:e,connectNulls:c,type:a,baseLine:t,layout:i,stroke:"none",className:"recharts-area-area"})),"none"!==u&&s.default.createElement(GO,CT({},Sn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:e})),"none"!==u&&l&&s.default.createElement(GO,CT({},Sn(this.props),{className:"recharts-area-curve",layout:i,type:a,connectNulls:c,fill:"none",points:t})))}},{key:"renderAreaWithAnimation",value:function(e,t){var n=this,r=this.props,o=r.points,i=r.baseLine,a=r.isAnimationActive,u=r.animationBegin,c=r.animationDuration,l=r.animationEasing,f=r.animationId,d=this.state,p=d.prevPoints,h=d.prevBaseLine;return s.default.createElement(tp,{begin:u,duration:c,isActive:a,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(r){var a=r.t;if(p){var u,c=p.length/o.length,l=o.map((function(e,t){var n=Math.floor(t*c);if(p[n]){var r=p[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return OT(OT({},e),{},{x:o(a),y:i(a)})}return e}));return u=ef(i)&&"number"==typeof i?sf(h,i)(a):Cf(i)||ql(i)?sf(h,0)(a):i.map((function(e,t){var n=Math.floor(t*c);if(h[n]){var r=h[n],o=sf(r.x,e.x),i=sf(r.y,e.y);return OT(OT({},e),{},{x:o(a),y:i(a)})}return e})),n.renderAreaStatically(l,u,e,t)}return s.default.createElement(Pn,null,s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"animationClipPath-".concat(t)},n.renderClipRect(a))),s.default.createElement(Pn,{clipPath:"url(#animationClipPath-".concat(t,")")},n.renderAreaStatically(o,i,e,t)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,u=a.prevBaseLine,c=a.totalLength;return i&&r&&r.length&&(!s&&c>0||!Zv(s,r)||!Zv(u,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.dot,r=e.points,o=e.className,i=e.top,a=e.left,u=e.xAxis,c=e.yAxis,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(t||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=1===r.length,y=mn("recharts-area",o),v=u&&u.allowDataOverflow||c&&c.allowDataOverflow,m=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:y},v?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(m)},s.default.createElement("rect",{x:a,y:i,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(n||g)&&this.renderDots(v,m),(!d||h)&&wO.renderCallByParent(this.props,r))}}],o=[{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&&jT(n.prototype,r),o&&jT(n,o),a}();function RT(e){return RT="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},RT(e)}function IT(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function LT(){return LT=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},LT.apply(this,arguments)}function NT(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 BT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NT(Object(n),!0).forEach((function(t){FT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UT(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,r.key,r)}}function HT(e,t){return HT=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},HT(e,t)}function VT(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=WT(e);if(t){var o=WT(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return KT(this,n)}}function KT(e,t){return!t||"object"!==RT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function WT(e){return WT=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},WT(e)}DT.displayName="Area",DT.defaultProps={stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DT.getBaseValue=function(e,t,n,r){var o=e.layout,i=t.props.baseValue;if(ef(i)&&"number"==typeof i)return i;var a="horizontal"===o?r:n,s=a.scale.domain();if("number"===a.type){var u=Math.max(s[0],s[1]),c=Math.min(s[0],s[1]);return"dataMin"===i?c:"dataMax"===i||u<0?u:Math.max(Math.min(s[0],s[1]),0)}return"dataMin"===i?s[0]:"dataMax"===i?s[1]:s[0]},DT.getComposedData=function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,u=e.bandSize,c=e.dataKey,l=e.stackedData,f=e.dataStartIndex,d=e.displayedData,p=e.offset,h=n.layout,g=l&&l.length,y=DT.getBaseValue(n,r,o,i),v=!1,m=d.map((function(e,t){var n,r=gS(e,c);g?n=l[f+t]:Qo(n=r)?v=!0:n=[y,n];var d=Cf(n[1])||g&&Cf(r);return"horizontal"===h?{x:PS({axis:o,ticks:a,bandSize:u,entry:e,index:t}),y:d?null:i.scale(n[1]),value:n,payload:e}:{x:d?null:o.scale(n[1]),y:PS({axis:i,ticks:s,bandSize:u,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Cf(Bs(e,"value[0]"))||Cf(Bs(e,"y"))?null:i.scale(Bs(e,"value[0]"))}:{x:Cf(Bs(e,"value[0]"))?null:o.scale(Bs(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),OT({points:m,baseLine:t,layout:h,isRange:v},p)},DT.renderDotItem=function(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(jk,CT({},t,{className:"recharts-area-dot"}))};var $T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&HT(e,t)}(a,t.PureComponent);var n,r,o,i=VT(a);function a(){var e;zT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.id=rf("recharts-bar-"),e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),t&&t()},e}return n=a,r=[{key:"renderRectanglesStatically",value:function(e){var t=this,n=this.props.shape,r=Sn(this.props);return e&&e.map((function(e,o){var i=BT(BT(BT({},r),e),{},{index:o});return s.default.createElement(Pn,LT({className:"recharts-bar-rectangle"},kn(t.props,e,o),{key:"rectangle-".concat(o)}),a.renderRectangle(n,i))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,t=this.props,n=t.data,r=t.layout,o=t.isAnimationActive,i=t.animationBegin,a=t.animationDuration,u=t.animationEasing,c=t.animationId,l=this.state.prevData;return s.default.createElement(tp,{begin:i,duration:a,isActive:o,easing:u,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t,i=n.map((function(e,t){var n=l&&l[t];if(n){var i=sf(n.x,e.x),a=sf(n.y,e.y),s=sf(n.width,e.width),u=sf(n.height,e.height);return BT(BT({},e),{},{x:i(o),y:a(o),width:s(o),height:u(o)})}if("horizontal"===r){var c=sf(0,e.height)(o);return BT(BT({},e),{},{y:e.y+e.height-c,height:c})}var f=sf(0,e.width)(o);return BT(BT({},e),{},{width:f})}));return s.default.createElement(Pn,null,e.renderRectanglesStatically(i))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&Zv(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=Sn(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=IT(t,["value","background"]);if(!o)return null;var s=BT(BT(BT(BT(BT({},i),{},{fill:"#eee"},o),n),kn(e.props,t,r)),{},{index:r,key:"background-bar-".concat(r),className:"recharts-bar-background-rectangle"});return a.renderRectangle(e.props.background,s)}))}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.data,n=e.xAxis,r=e.yAxis,o=e.layout,i=e.children,a=Uv(i,iT.displayName);if(!a)return null;var u="vertical"===o?t[0].height/2:t[0].width/2;function c(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:gS(e,t)}}return a.map((function(e,i){return s.default.cloneElement(e,{key:"error-bar-".concat(i),data:t,xAxis:n,yAxis:r,layout:o,offset:u,dataPointFormatter:c})}))}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.data,r=e.className,o=e.xAxis,i=e.yAxis,a=e.left,u=e.top,c=e.width,l=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=mn("recharts-bar",r),y=o&&o.allowDataOverflow||i&&i.allowDataOverflow,v=Cf(p)?this.id:p;return s.default.createElement(Pn,{className:g},y?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(v)},s.default.createElement("rect",{x:a,y:u,width:c,height:l}))):null,s.default.createElement(Pn,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(),(!f||h)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):s.default.createElement(ik,t)}}],r&&UT(n.prototype,r),o&&UT(n,o),a}();$T.displayName="Bar",$T.defaultProps={xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"},$T.getComposedData=function(e){var t=e.props,n=e.item,r=e.barPosition,o=e.bandSize,i=e.xAxis,a=e.yAxis,s=e.xAxisTicks,u=e.yAxisTicks,c=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,p=ES(r,n);if(!p)return null;var h=t.layout,g=n.props,y=g.dataKey,v=g.children,m=g.minPointSize,b="horizontal"===h?a:i,w=c?b.scale.domain():null,x=RS({numericAxis:b}),_=Uv(v,ky.displayName),C=f.map((function(e,t){var r,f,d,g,v,b;if(c?r=jS(c[l+t],w):(r=gS(e,y),Qo(r)||(r=[x,r])),"horizontal"===h){if(f=DS({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=a.scale(r[1]),g=p.size,v=a.scale(r[0])-a.scale(r[1]),b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var C=Jl(v||m)*(Math.abs(m)-Math.abs(v));d-=C,v+=C}}else f=i.scale(r[0]),d=DS({axis:a,ticks:u,bandSize:o,offset:p.offset,entry:e,index:t}),g=i.scale(r[1])-i.scale(r[0]),v=p.size,b={x:i.x,y:d,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m)&&(g+=Jl(g||m)*(Math.abs(m)-Math.abs(g)));return BT(BT(BT({},e),{},{x:f,y:d,width:g,height:v,value:c?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[US(n,e)],tooltipPosition:{x:f+g/2,y:d+v/2}})}));return BT({data:C,layout:h},d)};var qT=function(){return null};function GT(e){return GT="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},GT(e)}function ZT(){return ZT=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},ZT.apply(this,arguments)}function YT(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 XT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?YT(Object(n),!0).forEach((function(t){JT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function JT(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eM(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,r.key,r)}}function tM(e,t){return tM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},tM(e,t)}function nM(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=oM(e);if(t){var o=oM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rM(this,n)}}function rM(e,t){return!t||"object"!==GT(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oM(e){return oM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oM(e)}qT.displayName="ZAxis",qT.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var iM=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tM(e,t)}(a,t.PureComponent);var n,r,o,i=nM(a);function a(){var e;QT(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){e.setState({isAnimationFinished:!0})},e.handleAnimationStart=function(){e.setState({isAnimationFinished:!1})},e.id=rf("recharts-scatter-"),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,u=Sn(this.props);return e.map((function(e,n){var c=XT(XT({key:"symbol-".concat(n)},u),e);return s.default.createElement(Pn,ZT({className:"recharts-scatter-symbol"},kn(t.props,e,n),{key:"symbol-".concat(n)}),a.renderSymbolItem(i===n?o:r,c))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,t=this.props,n=t.points,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevPoints;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"pie-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.cx,e.cx),i=sf(n.cy,e.cy),a=sf(n.size,e.size);return XT(XT({},e),{},{cx:o(r),cy:i(r),size:a(r)})}var s=sf(0,e.size);return XT(XT({},e),{},{size:s(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,t=e.points,n=e.xAxis,r=e.yAxis,o=e.children,i=Uv(o,iT.displayName);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:gS(e,t)}}function u(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:gS(e,t)}}return i.map((function(e,o){var i=e.props.direction;return s.default.cloneElement(e,{key:o,data:t,xAxis:n,yAxis:r,layout:"x"===i?"vertical":"horizontal",dataPointFormatter:"x"===i?u:a})}))}},{key:"renderLine",value:function(){var e,t,n=this.props,r=n.points,o=n.line,i=n.lineType,a=n.lineJointType,u=Sn(this.props),c=Sn(o);if("joint"===i)e=r.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===i){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,u=0,c=0,l=0;l<t;l++)n+=u=e[l].cx||0,r+=c=e[l].cy||0,o+=u*c,i+=u*u,a=Math.min(a,u),s=Math.max(s,u);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(r),f=l.xmin,d=l.xmax,p=l.a,h=l.b,g=function(e){return p*e+h};e=[{x:f,y:g(f)},{x:d,y:g(d)}]}var y=XT(XT(XT({},u),{},{fill:"none",stroke:u&&u.fill},c),{},{points:e});return t=s.default.isValidElement(o)?s.default.cloneElement(o,y):Xn(o)?o(y):s.default.createElement(GO,ZT({},y,{type:a})),s.default.createElement(Pn,{className:"recharts-scatter-line",key:"recharts-scatter-line"},t)}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.points,r=e.line,o=e.className,i=e.xAxis,a=e.yAxis,u=e.left,c=e.top,l=e.width,f=e.height,d=e.id,p=e.isAnimationActive;if(t||!n||!n.length)return null;var h=this.state.isAnimationFinished,g=mn("recharts-scatter",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Cf(d)?this.id:d;return s.default.createElement(Pn,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?s.default.createElement("defs",null,s.default.createElement("clipPath",{id:"clipPath-".concat(v)},s.default.createElement("rect",{x:u,y:c,width:l,height:f}))):null,r&&this.renderLine(),this.renderErrorBar(),s.default.createElement(Pn,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!p||h)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){var n;return s.default.isValidElement(e)?n=s.default.cloneElement(e,t):Xn(e)?n=e(t):"string"==typeof e&&(n=s.default.createElement(Ml,ZT({},t,{type:e}))),n}}],r&&eM(n.prototype,r),o&&eM(n,o),a}();iM.displayName="Scatter",iM.defaultProps={xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"},iM.getComposedData=function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,u=e.offset,c=o.props.tooltipType,l=Uv(o.props.children,ky.displayName),f=Cf(t.dataKey)?o.props.dataKey:t.dataKey,d=Cf(n.dataKey)?o.props.dataKey:n.dataKey,p=r&&r.dataKey,h=r?r.range:qT.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var u=gS(e,f),h=gS(e,d),m=!Cf(p)&&gS(e,p)||"-",b=[{name:Cf(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:u,payload:e,dataKey:f,type:c},{name:Cf(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:d,type:c}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:p,type:c});var w=PS({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=PS({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:d}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return XT(XT({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:u,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return XT({points:m},u)};var aM=function(){return null};aM.displayName="XAxis",aM.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",domain:[0,"auto"],padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var sM=function(){return null};sM.displayName="YAxis",sM.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",domain:[0,"auto"],padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var uM=mu,cM=na,lM=aa;var fM=function(e){return function(t,n,r){var o=Object(t);if(!cM(t)){var i=uM(n);t=lM(t),n=function(e){return i(o[e],e,o)}}var a=e(t,n,r);return a>-1?o[i?t[a]:a]:void 0}},dM=gj;var pM=bu,hM=mu,gM=function(e){var t=dM(e),n=t%1;return t==t?n?t-n:t:0},yM=Math.max;var vM=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:gM(n);return o<0&&(o=yM(r+o,0)),pM(e,hM(t),o)},mM=fM(vM),bM=Pg,wM=bn;var xM=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return wM(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),bM(e,t,{leading:r,maxWait:t,trailing:o})},_M=Gn,CM=di;var SM=function(e){return!0===e||!1===e||CM(e)&&"[object Boolean]"==_M(e)},OM=function(e,t,n,r,o){var i=Uv(e,bA.displayName),a=Uv(e,SA.displayName),s=i.concat(a),u=Uv(e,AA.displayName),c="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[c]===n&&Kj(t.props,"extendDomain")&&ef(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),u.length){var d="".concat(l,"1"),p="".concat(l,"2");f=u.reduce((function(e,t){if(t.props[c]===n&&Kj(t.props,"extendDomain")&&ef(t.props[d])&&ef(t.props[p])){var r=t.props[d],o=t.props[p];return[Math.min(e[0],r,o),Math.max(e[1],r,o)]}return e}),f)}return o&&o.length&&(f=o.reduce((function(e,t){return ef(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},kM={exports:{}};!function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}function o(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,a){if("function"!=typeof r)throw new TypeError("The listener must be a function");var s=new o(r,i||e,a),u=n?n+t:t;return e._events[u]?e._events[u].fn?e._events[u]=[e._events[u],s]:e._events[u].push(s):(e._events[u]=s,e._eventsCount++),e}function a(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function s(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,r,o=[];if(0===this._eventsCount)return o;for(r in e=this._events)t.call(e,r)&&o.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},s.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 o=0,i=r.length,a=new Array(i);o<i;o++)a[o]=r[o].fn;return a},s.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},s.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var u,c,l=this._events[s],f=arguments.length;if(l.fn){switch(l.once&&this.removeListener(e,l.fn,void 0,!0),f){case 1:return l.fn.call(l.context),!0;case 2:return l.fn.call(l.context,t),!0;case 3:return l.fn.call(l.context,t,r),!0;case 4:return l.fn.call(l.context,t,r,o),!0;case 5:return l.fn.call(l.context,t,r,o,i),!0;case 6:return l.fn.call(l.context,t,r,o,i,a),!0}for(c=1,u=new Array(f-1);c<f;c++)u[c-1]=arguments[c];l.fn.apply(l.context,u)}else{var d,p=l.length;for(c=0;c<p;c++)switch(l[c].once&&this.removeListener(e,l[c].fn,void 0,!0),f){case 1:l[c].fn.call(l[c].context);break;case 2:l[c].fn.call(l[c].context,t);break;case 3:l[c].fn.call(l[c].context,t,r);break;case 4:l[c].fn.call(l[c].context,t,r,o);break;default:if(!u)for(d=1,u=new Array(f-1);d<f;d++)u[d-1]=arguments[d];l[c].fn.apply(l[c].context,u)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,r,o){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return a(this,i),this;var s=this._events[i];if(s.fn)s.fn!==t||o&&!s.once||r&&s.context!==r||a(this,i);else{for(var u=0,c=[],l=s.length;u<l;u++)(s[u].fn!==t||o&&!s[u].once||r&&s[u].context!==r)&&c.push(s[u]);c.length?this._events[i]=1===c.length?c[0]:c:a(this,i)}return this},s.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},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s}(kM);var EM=new(0,kM.exports);EM.setMaxListeners&&EM.setMaxListeners(10);var jM="recharts.syncMouseEvents";function AM(e){return AM="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},AM(e)}function TM(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||zM(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 MM(){return MM=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},MM.apply(this,arguments)}function PM(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DM(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,r.key,r)}}function RM(e,t){return RM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},RM(e,t)}function IM(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=BM(e);if(t){var o=BM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return LM(this,n)}}function LM(e,t){return!t||"object"!==AM(t)&&"function"!=typeof t?NM(e):t}function NM(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BM(e){return BM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},BM(e)}function FM(e){return function(e){if(Array.isArray(e))return UM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zM(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 zM(e,t){if(e){if("string"==typeof e)return UM(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)?UM(e,t):void 0}}function UM(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 HM(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 VM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?HM(Object(n),!0).forEach((function(t){KM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WM={xAxis:["bottom","top"],yAxis:["left","right"]},$M={x:0,y:0},qM=Number.isFinite?Number.isFinite:isFinite,GM="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,ZM="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,YM=function(e,t,n){var r=t.graphicalItems,o=t.dataStartIndex,i=t.dataEndIndex,a=(r||[]).reduce((function(e,t){var n=t.props.data;return n&&n.length?[].concat(FM(e),FM(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&&ef(o)&&ef(i)?e.slice(o,i+1):[]},XM=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=YM(t,e);return n<0||!o||!o.length||n>=a.length?null:o.reduce((function(e,t){if(t.props.hide)return e;var o,s=t.props.data;i.dataKey&&!i.allowDuplicatedCategory?o=uf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(FM(e),[US(t,o)]):e}),[])},JM=function(e,t,n,r){var o=r||{x:e.chartX,y:e.chartY},i=function(e,t){return"horizontal"===t?e.x:"vertical"===t?e.y:"centric"===t?e.angle:e.radius}(o,n),a=e.orderedTooltipTicks,s=e.tooltipAxis,u=e.tooltipTicks,c=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0,i=-1,a=null!==(t=null==n?void 0:n.length)&&void 0!==t?t:0;if(a>1){if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,u=0;u<a;u++){var c=u>0?r[u-1].coordinate:r[a-1].coordinate,l=r[u].coordinate,f=u>=a-1?r[0].coordinate:r[u+1].coordinate,d=void 0;if(Jl(l-c)!==Jl(f-l)){var p=[];if(Jl(f-l)===Jl(s[1]-s[0])){d=f;var h=l+s[1]-s[0];p[0]=Math.min(h,(h+c)/2),p[1]=Math.max(h,(h+c)/2)}else{d=c;var g=f+s[1]-s[0];p[0]=Math.min(l,(g+l)/2),p[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(d+l)/2),Math.max(l,(d+l)/2)];if(e>y[0]&&e<=y[1]||e>=p[0]&&e<=p[1]){i=r[u].index;break}}else{var v=Math.min(c,f),m=Math.max(c,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[u].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){i=n[b].index;break}}else i=0;return i}(i,a,u,s);if(c>=0&&u){var l=u[c]&&u[c].value,f=XM(e,t,c,l),d=function(e,t,n,r){var o=t.find((function(e){return e&&e.index===n}));if(o){if("horizontal"===e)return{x:o.coordinate,y:r.y};if("vertical"===e)return{x:r.x,y:o.coordinate};if("centric"===e){var i=o.coordinate,a=r.radius;return VM(VM(VM({},r),ZS(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,u=r.angle;return VM(VM(VM({},r),ZS(r.cx,r.cy,s,u)),{},{angle:u,radius:s})}return $M}(n,a,c,o);return{activeTooltipIndex:c,activeLabel:l,activePayload:f,activeCoordinate:d}}return null},QM=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.layout,l=e.children,f=e.stackOffset,d=xS(c,o),p=n.reduce((function(t,n){var p=n.props,h=p.type,g=p.dataKey,y=p.allowDataOverflow,v=p.allowDuplicatedCategory,m=p.scale,b=p.ticks,w=n.props[i],x=YM(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===w})),dataStartIndex:s,dataEndIndex:u}),_=x.length;if(!t[w]){var C,S,O;if(g){if(C=yS(x,g,h),"category"===h&&d){var k=function(e){if(!Qo(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}(C);v&&k?(S=C,C=bj(0,_)):v||(C=zS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(FM(e),[t])}),[]))}else if("category"===h)C=v?C.filter((function(e){return""!==e&&!Cf(e)})):zS(n.props.domain,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Cf(t)?e:[].concat(FM(e),[t])}),[]);else if("number"===h){var E=function(e,t,n,r,o){var i=t.map((function(t){return bS(e,t,n,o,r)})).filter((function(e){return!Cf(e)}));return i&&i.length?i.reduce((function(e,t){return[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}),[1/0,-1/0]):null}(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),g,o,c);E&&(C=E)}!d||"number"!==h&&"auto"===m||(O=yS(x,g,"category"))}else C=d?bj(0,_):a&&a[w]&&a[w].hasStack&&"number"===h?"expand"===f?[0,1]:IS(a[w].stackGroups,s,u):wS(x,r.filter((function(e){return e.props[i]===w&&!e.props.hide})),h,c,!0);if("number"===h)C=OM(l,C,w,o,b),n.props.domain&&(C=BS(n.props.domain,C,y));else if("category"===h&&n.props.domain){var j=n.props.domain;C.every((function(e){return j.indexOf(e)>=0}))&&(C=j)}return VM(VM({},t),{},KM({},w,VM(VM({},n.props),{},{axisType:o,domain:C,categoricalDomain:O,duplicateDomain:S,originalDomain:n.props.domain,isCategorical:d,layout:c})))}return t}),{});return p},eP=function(e,t){var n=t.axisType,r=void 0===n?"xAxis":n,o=t.AxisComp,i=t.graphicalItems,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.children,l="".concat(r,"Id"),f=Uv(c,o),d={};return f&&f.length?d=QM(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u}):i&&i.length&&(d=function(e,t){var n=t.graphicalItems,r=t.Axis,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,u=t.dataEndIndex,c=e.layout,l=e.children,f=YM(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:u}),d=f.length,p=xS(c,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i];return e[y]?e:(h++,p?g=bj(0,d):a&&a[y]&&a[y].hasStack?(g=IS(a[y].stackGroups,s,u),g=OM(l,g,y,o)):(g=BS(r.defaultProps.domain,wS(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",c),r.defaultProps.allowDataOverflow),g=OM(l,g,y,o)),VM(VM({},e),{},KM({},y,VM(VM({axisType:o},r.defaultProps),{},{hide:!0,orientation:Bs(WM,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:r.defaultProps.domain,isCategorical:p,layout:c}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:u})),d},tP=function(e){var t=e.children,n=e.defaultShowTooltip,r=Hv(t,Lj.displayName);return{chartX:0,chartY:0,dataStartIndex:r&&r.props&&r.props.startIndex||0,dataEndIndex:r&&r.props&&r.props.endIndex||e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!Cf(n)&&n}},nP=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"}},rP=function(e,t){var n=e.props,r=(e.graphicalItems,e.xAxisMap),o=void 0===r?{}:r,i=e.yAxisMap,a=void 0===i?{}:i,s=n.width,u=n.height,c=n.children,l=n.margin||{},f=Hv(c,Lj.displayName),d=Hv(c,_f.displayName),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:VM(VM({},e),{},KM({},r,e[r]+n.width))}),{left:l.left||0,right:l.right||0}),h=Object.keys(o).reduce((function(e,t){var n=o[t],r=n.orientation;return n.mirror||n.hide?e:VM(VM({},e),{},KM({},r,Bs(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=VM(VM({},h),p),y=g.bottom;return f&&(g.bottom+=f.props.height||Lj.defaultProps.height),d&&t&&(g=function(e,t,n,r){var o=n.children,i=n.width,a=n.margin,s=i-(a.left||0)-(a.right||0),u=mS({children:o,legendWidth:s}),c=e;if(u){var l=r||{},f=u.align,d=u.verticalAlign,p=u.layout;("vertical"===p||"horizontal"===p&&"center"===d)&&ef(e[f])&&(c=pS(pS({},e),{},hS({},f,c[f]+(l.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&ef(e[d])&&(c=pS(pS({},e),{},hS({},d,c[d]+(l.height||0))))}return c}(g,0,n,t)),VM(VM({brushBottom:y},g),{},{width:s-g.left-g.right,height:u-g.top-g.bottom})},oP=function(e){var n,r,o=e.chartName,i=e.GraphicalChild,a=e.defaultTooltipEventType,u=void 0===a?"axis":a,c=e.validateTooltipEventTypes,l=void 0===c?["axis"]:c,f=e.axisComponents,d=e.legendContent,p=e.formatAxisMap,h=e.defaultProps,g=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,u=e.barSize,c=e.layout,l=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=nP(c),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Nv(e&&e.type);return t&&t.indexOf("Bar")>=0}))}(n),m=v&&function(e){var t=e.barSize,n=e.stackGroups,r=void 0===n?{}:n;if(!r)return{};for(var o={},i=Object.keys(r),a=0,s=i.length;a<s;a++)for(var u=r[i[a]].stackGroups,c=Object.keys(u),l=0,f=c.length;l<f;l++){var d=u[c[l]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return Nv(e.type).indexOf("Bar")>=0}));if(g&&g.length){var y=g[0].props.barSize,v=g[0].props[h];o[v]||(o[v]=[]),o[v].push({item:g[0],stackList:g.slice(1),barSize:Cf(y)?t:y})}}return o}({barSize:u,stackGroups:r}),b=[];return n.forEach((function(n,u){var h=YM(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],S=f.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return VM(VM({},e),{},(KM(o={},r.axisType,s),KM(o,"".concat(r.axisType,"Ticks"),CS(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(tf(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Nv(n.type).indexOf("Bar")>=0,A=FS(O,k),T=[];if(j){var M,P,D=Cf(x)?p:x,R=null!==(M=null!==(P=FS(O,k,!0))&&void 0!==P?P:D)&&void 0!==M?M:0;T=function(e){var t=e.barGap,n=e.barCategoryGap,r=e.bandSize,o=e.sizeList,i=void 0===o?[]:o,a=e.maxBarSize,s=i.length;if(s<1)return null;var u,c=of(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,d=i.reduce((function(e,t){return e+t.barSize||0}),0);(d+=(s-1)*c)>=r&&(d-=(s-1)*c,c=0),d>=r&&f>0&&(l=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-c,size:0};u=i.reduce((function(e,t){var n=[].concat(lS(e),[{item:t.item,position:{offset:p.offset+p.size+c,size:l?f:t.barSize}}]);return p=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:p})})),n}),[])}else{var h=of(n,r,0,!0);r-2*h-(s-1)*c<=0&&(c=0);var g=(r-2*h-(s-1)*c)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;u=i.reduce((function(e,t,n){var r=[].concat(lS(e),[{item:t.item,position:{offset:h+(g+c)*n+(g-y)/2,size:y}}]);return t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){r.push({item:e,position:r[r.length-1].position})})),r}),[])}return u}({barGap:l,barCategoryGap:d,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return VM(VM({},e),{},{position:VM(VM({},e.position),{},{offset:e.position.offset-R/2})})})))}var I,L,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:VM(VM({},B(VM(VM({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:c,dataStartIndex:a,dataEndIndex:s}))),{},(I={key:n.key||"item-".concat(u)},KM(I,g,S[g]),KM(I,y,S[y]),KM(I,"animationId",i),I)),childIndex:(L=n,N=e.children,zv(N).indexOf(L)),item:n})})),b},y=function(e,t){var n=e.props,r=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!Vv({props:n}))return null;var u=n.children,c=n.layout,l=n.stackOffset,d=n.data,h=n.reverseStackOrder,y=nP(c),v=y.numericAxisName,m=y.cateAxisName,b=Uv(u,i),w=function(e,t,n,r,o,i){if(!e)return null;var a=(i?t.reverse():t).reduce((function(e,t){var o=t.props,i=o.stackId;if(o.hide)return e;var a=t.props[n],s=e[a]||{hasStack:!1,stackGroups:{}};if(tf(i)){var u=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};u.items.push(t),s.hasStack=!0,s.stackGroups[i]=u}else s.stackGroups[rf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return pS(pS({},e),{},hS({},a,s))}),{});return Object.keys(a).reduce((function(t,i){var s=a[i];return s.hasStack&&(s.stackGroups=Object.keys(s.stackGroups).reduce((function(t,i){var a=s.stackGroups[i];return pS(pS({},t),{},hS({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:TS(e,a.items,o)}))}),{})),pS(pS({},t),{},hS({},i,s))}),{})}(d,b,"".concat(v,"Id"),"".concat(m,"Id"),l,h),x=f.reduce((function(e,t){var o="".concat(t.axisType,"Map");return VM(VM({},e),{},KM({},o,eP(n,VM(VM({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:r,dataEndIndex:a}))))}),{}),_=rP(VM(VM({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=p(n,x[e],_,e.replace("Map",""),o)}));var C,S,O=x["".concat(m,"Map")],k=(C=af(O),{tooltipTicks:S=CS(C,!1,!0),orderedTooltipTicks:Bh(S,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:FS(C,S)}),E=g(n,VM(VM({},x),{},{dataStartIndex:r,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return VM(VM({formattedGraphicalItems:E,graphicalItems:b,offset:_,stackGroups:w},k),x)};return r=n=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&RM(e,t)}(c,t.Component);var n,r,i,a=IM(c);function c(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(n=a.call(this,e)).uniqueChartId=void 0,n.clipPathId=void 0,n.legendInstance=void 0,n.deferId=void 0,n.container=void 0,n.clearDeferId=function(){!Cf(n.deferId)&&ZM&&ZM(n.deferId),n.deferId=null},n.handleLegendBBoxUpdate=function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(VM({legendBBox:e},y({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},VM(VM({},n.state),{},{legendBBox:e}))))}},n.handleReceiveSyncEvent=function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=GM&&GM(n.applySyncEvent.bind(NM(n),r)))},n.handleBrushChange=function(e){var t=e.startIndex,r=e.endIndex;if(t!==n.state.dataStartIndex||r!==n.state.dataEndIndex){var o=n.state.updateId;n.setState((function(){return VM({dataStartIndex:t,dataEndIndex:r},y({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}},n.handleMouseEnter=function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=VM(VM({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)}},n.triggeredAfterMouseMove=function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?VM(VM({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)},n.handleItemMouseEnter=function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))},n.handleItemMouseLeave=function(){n.setState((function(){return{isTooltipActive:!1}}))},n.handleMouseMove=function(e){e&&Xn(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)},n.handleMouseLeave=function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),Xn(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()},n.handleOuterEvent=function(e){var t=function(e){var t=e&&e.type;return t&&Lv[t]?Lv[t]:null}(e),r=Bs(n.props,"".concat(t));t&&Xn(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)},n.handleClick=function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=VM(VM({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),Xn(t)&&t(o,e)}},n.handleMouseDown=function(e){var t=n.props.onMouseDown;Xn(t)&&t(n.getMouseInfo(e),e)},n.handleMouseUp=function(e){var t=n.props.onMouseUp;Xn(t)&&t(n.getMouseInfo(e),e)},n.handleTouchMove=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])},n.handleTouchStart=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])},n.handleTouchEnd=function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])},n.verticalCoordinatesGenerator=function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return _S(UA.getTicks(VM(VM(VM({},UA.defaultProps),t),{},{ticks:CS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)},n.horizontalCoordinatesGenerator=function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return _S(UA.getTicks(VM(VM(VM({},UA.defaultProps),t),{},{ticks:CS(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)},n.axesTicksGenerator=function(e){return CS(e,!0)},n.renderCursor=function(e){var r=n.state,i=r.isTooltipActive,a=r.activeCoordinate,s=r.activePayload,u=r.offset,c=r.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==o&&"axis"!==l)return null;var f,d=n.props.layout,p=GO;if("ScatterChart"===o)f=a,p=Nk;else if("BarChart"===o)f=n.getCursorRectangle(),p=ik;else if("radial"===d){var h=n.getCursorPoints(),g=h.cx,y=h.cy,v=h.radius;f={cx:g,cy:y,startAngle:h.startAngle,endAngle:h.endAngle,innerRadius:v,outerRadius:v},p=PO}else f={points:n.getCursorPoints()},p=GO;var m=e.key||"_recharts-cursor",b=VM(VM(VM(VM({stroke:"#ccc",pointerEvents:"none"},u),f),Sn(e.props.cursor)),{},{payload:s,payloadIndex:c,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)},n.renderPolarAxis=function(e,r,o){var i=Bs(e,"type.axisType"),a=Bs(n.state,"".concat(i,"Map"))[e.props["".concat(i,"Id")]];return t.cloneElement(e,VM(VM({},a),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:CS(a,!0)}))},n.renderXAxis=function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)},n.renderYAxis=function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)},n.renderGrid=function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,u=s.width,c=s.height,l=af(o),f=mM(i,(function(e){return Jj(e.domain,qM)}))||af(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:ef(d.x)?d.x:a.left,y:ef(d.y)?d.y:a.top,width:ef(d.width)?d.width:a.width,height:ef(d.height)?d.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:u,chartHeight:c,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})},n.renderPolarGrid=function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,u=s.radiusAxisMap,c=s.angleAxisMap,l=af(u),f=af(c),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:Qo(i)?i:CS(f,!0).map((function(e){return e.coordinate})),polarRadius:Qo(a)?a:CS(l,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})},n.renderLegend=function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},u=i-(s.left||0)-(s.right||0),c=mS({children:o,formattedGraphicalItems:e,legendWidth:u,legendContent:d});if(!c)return null;var l=c.item,f=PM(c,["item"]);return t.cloneElement(l,VM(VM({},f),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))},n.renderTooltip=function(){var e=n.props.children,r=Hv(e,dg.displayName);if(!r)return null;var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,u=o.activeLabel,c=o.offset;return t.cloneElement(r,{viewBox:VM(VM({},c),{},{x:c.left,y:c.top}),active:i,label:u,payload:i?s:[],coordinate:a})},n.renderBrush=function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,u=a.dataStartIndex,c=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:SS(n.handleBrushChange,null,e.props.onChange),data:i,x:ef(e.props.x)?e.props.x:s.left,y:ef(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:ef(e.props.width)?e.props.width:s.width,startIndex:u,endIndex:c,updateId:"brush-".concat(l)})},n.renderReferenceElement=function(e,r,o){if(!e)return null;var i=NM(n).clipPathId,a=n.state,s=a.xAxisMap,u=a.yAxisMap,c=a.offset,l=e.props,f=l.xAxisId,d=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:u[d],viewBox:{x:c.left,y:c.top,width:c.width,height:c.height},clipPathId:i})},n.renderActivePoints=function(e){var t=e.item,n=e.activePoint,r=e.basePoint,o=e.childIndex,i=e.isRange,a=[],s=t.props.key,u=t.item.props,l=u.activeDot,f=VM(VM({index:o,dataKey:u.dataKey,cx:n.x,cy:n.y,r:4,fill:vS(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},Sn(l)),On(l));return a.push(c.renderActiveDot(l,f)),r?a.push(c.renderActiveDot(l,VM(VM({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a},n.renderGraphicChild=function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,u=s.isTooltipActive,c=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,d=n.props.children,p=Hv(d,dg.displayName),h=i.props,g=h.points,y=h.isRange,v=h.baseLine,m=i.item.props,b=m.activeDot,w=!m.hide&&u&&p&&b&&l>=0,x={};"axis"!==a&&p&&"click"===p.props.trigger?x={onClick:SS(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(x={onMouseLeave:SS(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:SS(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var _=t.cloneElement(e,VM(VM({},i.props),x));if(w){var C,S;if(c.dataKey&&!c.allowDuplicatedCategory){var O="function"==typeof c.dataKey?function(e){return"function"==typeof c.dataKey?c.dataKey(e.payload):null}:"payload.".concat(c.dataKey.toString());C=uf(g,O,f),S=y&&v&&uf(v,O,f)}else C=g[l],S=y&&v&&v[l];if(!Cf(C))return[_].concat(FM(n.renderActivePoints({item:i,activePoint:C,basePoint:S,childIndex:l,isRange:y})))}return y?[_,null,null]:[_,null]},n.renderCustomized=function(e,r,o){return t.cloneElement(e,VM(VM({key:"recharts-customized-".concat(o)},n.props),n.state))},n.uniqueChartId=Cf(e.id)?rf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=xM(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=c,r=[{key:"componentDidMount",value:function(){Cf(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Cf(e.syncId)&&!Cf(this.props.syncId)&&this.addListener(),!Cf(e.syncId)&&Cf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Cf(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=Hv(this.props.children,dg.displayName);if(e&&SM(e.props.shared)){var t=e.props.shared?"axis":"item";return l.indexOf(t)>=0?t:u}return u}},{key:"getMouseInfo",value:function(e){if(!this.container)return null;var t,n,r,o=function(e,t){return{chartX:Math.round(e.pageX-t.left),chartY:Math.round(e.pageY-t.top)}}(e,(t=this.container,n=t.ownerDocument.documentElement,r={top:0,left:0},void 0!==t.getBoundingClientRect&&(r=t.getBoundingClientRect()),{top:r.top+window.pageYOffset-n.clientTop,left:r.left+window.pageXOffset-n.clientLeft})),i=this.inRange(o.chartX,o.chartY);if(!i)return null;var a=this.state,s=a.xAxisMap,u=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&u){var c=af(s).scale,l=af(u).scale,f=c&&c.invert?c.invert(o.chartX):null,d=l&&l.invert?l.invert(o.chartY):null;return VM(VM({},o),{},{xValue:f,yValue:d})}var p=JM(this.state,this.props.data,this.props.layout,i);return p?VM(VM({},o),p):null}},{key:"getCursorRectangle",value:function(){var e=this.props.layout,t=this.state,n=t.activeCoordinate,r=t.offset,o=t.tooltipAxisBandSize,i=o/2;return{stroke:"none",fill:"#ccc",x:"horizontal"===e?n.x-i:r.left+.5,y:"horizontal"===e?r.top+.5:n.y-i,width:"horizontal"===e?o:r.width-1,height:"horizontal"===e?r.height-1:o}}},{key:"getCursorPoints",value:function(){var e,t,n,r,o=this.props.layout,i=this.state,a=i.activeCoordinate,s=i.offset;if("horizontal"===o)n=e=a.x,t=s.top,r=s.top+s.height;else if("vertical"===o)r=t=a.y,e=s.left,n=s.left+s.width;else if(!Cf(a.cx)||!Cf(a.cy)){if("centric"!==o){var u=a.cx,c=a.cy,l=a.radius,f=a.startAngle,d=a.endAngle;return{points:[ZS(u,c,l,f),ZS(u,c,l,d)],cx:u,cy:c,radius:l,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=ZS(p,h,g,v),b=ZS(p,h,y,v);e=m.x,t=m.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 o=this.state,i=o.angleAxisMap,a=o.radiusAxisMap;if(i&&a){var s=af(i);return eO({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=Hv(e,dg.displayName),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}),VM(VM({},On(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){EM.on(jM,this.handleReceiveSyncEvent),EM.setMaxListeners&&EM._maxListeners&&EM.setMaxListeners(EM._maxListeners+1)}},{key:"removeListener",value:function(){EM.removeListener(jM,this.handleReceiveSyncEvent),EM.setMaxListeners&&EM._maxListeners&&EM.setMaxListeners(EM._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Cf(t)||EM.emit(jM,t,this.uniqueChartId,e)}},{key:"applySyncEvent",value:function(e){var t=this.props,n=t.layout,r=t.syncMethod,o=this.state.updateId,i=e.dataStartIndex,a=e.dataEndIndex;if(Cf(e.dataStartIndex)&&Cf(e.dataEndIndex))if(Cf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,u=e.chartY,c=e.activeTooltipIndex,l=this.state,f=l.offset,d=l.tooltipTicks;if(!f)return;if("function"==typeof r)c=r(d,e);else if("value"===r){c=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){c=p;break}}var h=VM(VM({},f),{},{x:f.left,y:f.top}),g=Math.min(s,h.x+h.width),v=Math.min(u,h.y+h.height),m=d[c]&&d[c].value,b=XM(this.state,this.props.data,c),w=d[c]?{x:"horizontal"===n?d[c].coordinate:g,y:"horizontal"===n?v:d[c].coordinate}:$M;this.setState(VM(VM({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:c}))}else this.setState(VM({dataStartIndex:i,dataEndIndex:a},y({props:this.props,dataStartIndex:i,dataEndIndex:a,updateId:o},this.state)))}},{key:"filterFormatItem",value:function(e,t,n){for(var r=this.state.formattedGraphicalItems,o=0,i=r.length;o<i;o++){var a=r[o];if(a.item===e||a.props.key===e.key||t===Nv(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,t,n,r){var o=this.props,i=o.width,a=o.height;return s.default.createElement(UA,MM({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:t.key||"".concat(n,"-").concat(r),viewBox:{x:0,y:0,width:i,height:a},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,t=this.state.offset,n=t.left,r=t.top,o=t.height,i=t.width;return s.default.createElement("defs",null,s.default.createElement("clipPath",{id:e},s.default.createElement("rect",{x:n,y:r,height:o,width:i})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=TM(t,2),r=n[0],o=n[1];return VM(VM({},e),{},KM({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=TM(t,2),r=n[0],o=n[1];return VM(VM({},e),{},KM({},r,o.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 o=t[n],i=o.props,a=o.item,s=Nv(a.type);if("Bar"===s){var u=(i.data||[]).find((function(t){return ok(e,t)}));if(u)return{graphicalItem:o,payload:u}}else if("RadialBar"===s){var c=(i.data||[]).find((function(t){return eO(e,t)}));if(c)return{graphicalItem:o,payload:c}}}return null}},{key:"render",value:function(){var e=this;if(!Vv(this))return null;var t=this.props,n=t.children,r=t.className,o=t.width,i=t.height,a=t.style,u=t.compact,c=t.title,l=t.desc,f=PM(t,["children","className","width","height","style","compact","title","desc"]),d=Sn(f),p={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(u)return s.default.createElement(An,MM({},d,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),qv(n,p));var h=this.parseEventsOfWrapper();return s.default.createElement("div",MM({className:mn("recharts-wrapper",r),style:VM({position:"relative",cursor:"default",width:o,height:i},a)},h,{ref:function(t){e.container=t}}),s.default.createElement(An,MM({},d,{width:o,height:i,title:c,desc:l}),this.renderClipPath(),qv(n,p)),this.renderLegend(),this.renderTooltip())}}],r&&DM(n.prototype,r),i&&DM(n,i),c}(),n.displayName=o,n.defaultProps=VM({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},h),n.getDerivedStateFromProps=function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,u=e.margin;if(Cf(t.updateId)){var c=tP(e);return VM(VM(VM({},c),{},{updateId:0},y(VM(VM({props:e},c),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Rv(u,t.prevMargin)){var l=tP(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=VM(VM({},JM(t,n,a)),{},{updateId:t.updateId+1}),p=VM(VM(VM({},l),f),d);return VM(VM(VM({},p),y(VM({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:u,prevChildren:r})}if(!Wv(r,t.prevChildren)){var h=!Cf(n)?t.updateId:t.updateId+1;return VM(VM({updateId:h},y(VM(VM({props:e},t),{},{updateId:h}),t)),{},{prevChildren:r})}return null},n.renderActiveDot=function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):Xn(e)?e(n):s.default.createElement(jk,n),s.default.createElement(Pn,{className:"recharts-active-dot",key:n.key},r)},r};oP({chartName:"LineChart",GraphicalChild:wT,axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA});var iP=oP({chartName:"BarChart",GraphicalChild:$T,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA}),aP=oP({chartName:"PieChart",GraphicalChild:BE,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var sP=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},uP=eA,cP=Qn,lP=Object.prototype.hasOwnProperty;var fP=function(e,t,n){var r=e[t];lP.call(e,t)&&cP(r,n)&&(void 0!==n||t in e)||uP(e,t,n)},dP=fP,pP=eA;var hP=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],u=r?r(n[s],e[s],s,n,e):void 0;void 0===u&&(u=e[s]),o?pP(n,s,u):dP(n,s,u)}return n},gP=hP,yP=aa;var vP=function(e,t){return e&&gP(t,yP(t),e)};var mP=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},bP=bn,wP=qi,xP=mP,_P=Object.prototype.hasOwnProperty;var CP=function(e){if(!bP(e))return xP(e);var t=wP(e),n=[];for(var r in e)("constructor"!=r||!t&&_P.call(e,r))&&n.push(r);return n},SP=Wi,OP=CP,kP=na;var EP=function(e){return kP(e)?SP(e,!0):OP(e)},jP=hP,AP=EP;var TP=function(e,t){return e&&jP(t,AP(t),e)},MP={exports:{}};!function(e,t){var n=Ln,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.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}}(MP,MP.exports);var PP=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},DP=hP,RP=li;var IP=function(e,t){return DP(e,RP(e),t)},LP=Jo,NP=mE,BP=li,FP=oi,zP=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)LP(t,BP(e)),e=NP(e);return t}:FP,UP=hP,HP=zP;var VP=function(e,t){return UP(e,HP(e),t)},KP=ni,WP=zP,$P=EP;var qP=function(e){return KP(e,$P,WP)},GP=Object.prototype.hasOwnProperty;var ZP=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&GP.call(e,"index")&&(n.index=e.index,n.input=e.input),n},YP=Uo;var XP=function(e){var t=new e.constructor(e.byteLength);return new YP(t).set(new YP(e)),t},JP=XP;var QP=function(e,t){var n=t?JP(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},eD=/\w*$/;var tD=function(e){var t=new e.constructor(e.source,eD.exec(e));return t.lastIndex=e.lastIndex,t},nD=Nn?Nn.prototype:void 0,rD=nD?nD.valueOf:void 0;var oD=XP;var iD=XP,aD=QP,sD=tD,uD=function(e){return rD?Object(rD.call(e)):{}},cD=function(e,t){var n=t?oD(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var lD=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return iD(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return aD(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 cD(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 sD(e);case"[object Symbol]":return uD(e)}},fD=bn,dD=Object.create,pD=function(){function e(){}return function(t){if(!fD(t))return{};if(dD)return dD(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),hD=pD,gD=mE,yD=qi;var vD=function(e){return"function"!=typeof e.constructor||yD(e)?{}:hD(gD(e))},mD=Ta,bD=di;var wD=function(e){return bD(e)&&"[object Map]"==mD(e)},xD=Mi,_D=Pi.exports,CD=_D&&_D.isMap,SD=CD?xD(CD):wD,OD=Ta,kD=di;var ED=function(e){return kD(e)&&"[object Set]"==OD(e)},jD=Mi,AD=Pi.exports,TD=AD&&AD.isSet,MD=TD?jD(TD):ED,PD=Ao,DD=sP,RD=fP,ID=vP,LD=TP,ND=MP.exports,BD=PP,FD=IP,zD=VP,UD=la,HD=qP,VD=Ta,KD=ZP,WD=lD,$D=vD,qD=Qo,GD=xi.exports,ZD=SD,YD=bn,XD=MD,JD=aa,QD=EP,eR={};eR["[object Arguments]"]=eR["[object Array]"]=eR["[object ArrayBuffer]"]=eR["[object DataView]"]=eR["[object Boolean]"]=eR["[object Date]"]=eR["[object Float32Array]"]=eR["[object Float64Array]"]=eR["[object Int8Array]"]=eR["[object Int16Array]"]=eR["[object Int32Array]"]=eR["[object Map]"]=eR["[object Number]"]=eR["[object Object]"]=eR["[object RegExp]"]=eR["[object Set]"]=eR["[object String]"]=eR["[object Symbol]"]=eR["[object Uint8Array]"]=eR["[object Uint8ClampedArray]"]=eR["[object Uint16Array]"]=eR["[object Uint32Array]"]=!0,eR["[object Error]"]=eR["[object Function]"]=eR["[object WeakMap]"]=!1;var tR=function e(t,n,r,o,i,a){var s,u=1&n,c=2&n,l=4&n;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!YD(t))return t;var f=qD(t);if(f){if(s=KD(t),!u)return BD(t,s)}else{var d=VD(t),p="[object Function]"==d||"[object GeneratorFunction]"==d;if(GD(t))return ND(t,u);if("[object Object]"==d||"[object Arguments]"==d||p&&!i){if(s=c||p?{}:$D(t),!u)return c?zD(t,LD(s,t)):FD(t,ID(s,t))}else{if(!eR[d])return i?t:{};s=WD(t,d,u)}}a||(a=new PD);var h=a.get(t);if(h)return h;a.set(t,s),XD(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):ZD(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?c?HD:UD:c?QD:JD)(t);return DD(g||t,(function(o,i){g&&(o=t[i=o]),RD(s,i,e(o,n,r,i,t,a))})),s},nR=Ls,rR=Uu;var oR=function(e,t){return t.length<2?e:nR(e,rR(t,0,-1))},iR=Ms,aR=fO,sR=oR,uR=Ds;var cR=function(e,t){return t=iR(t,e),null==(e=sR(e,t))||delete e[uR(aR(t))]},lR=EE;var fR=Kp;var dR=function(e){return(null==e?0:e.length)?fR(e,1):[]},pR=dR,hR=vh,gR=kh;var yR=ms,vR=tR,mR=cR,bR=Ms,wR=hP,xR=function(e){return lR(e)?void 0:e},_R=qP,CR=function(e){return gR(hR(e,void 0,pR),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=yR(t,(function(t){return t=bR(t,e),r||(r=t.length>1),t})),wR(e,_R(e),n),r&&(n=vR(n,7,xR));for(var o=t.length;o--;)mR(n,t[o]);return n})),SR=CR;function OR(e){return OR="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},OR(e)}function kR(){return kR=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},kR.apply(this,arguments)}function ER(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jR(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,r.key,r)}}function AR(e,t){return AR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},AR(e,t)}function TR(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=PR(e);if(t){var o=PR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return MR(this,n)}}function MR(e,t){return!t||"object"!==OR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function PR(e){return PR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},PR(e)}Math.sqrt(5),Qh.isSsr,Qh.isSsr,oP({chartName:"RadarChart",GraphicalChild:QE,axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oP({chartName:"ScatterChart",GraphicalChild:iM,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM},{axisType:"zAxis",AxisComp:qT}],formatAxisMap:cA}),oP({chartName:"AreaChart",GraphicalChild:DT,axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM}],formatAxisMap:cA}),oP({chartName:"RadialBarChart",GraphicalChild:fj,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:vE},{axisType:"radiusAxis",AxisComp:oE}],formatAxisMap:XS,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),oP({chartName:"ComposedChart",GraphicalChild:[wT,DT,$T,iM],axisComponents:[{axisType:"xAxis",AxisComp:aM},{axisType:"yAxis",AxisComp:sM},{axisType:"zAxis",AxisComp:qT}],formatAxisMap:cA});var DR=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},RR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&AR(e,t)}(a,t.PureComponent);var n,r,o,i=TR(a);function a(){var e;ER(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={totalLength:-1},e.node=void 0,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 e=this,t=this.props,n=t.x,r=t.y,o=t.upperWidth,i=t.lowerWidth,a=t.height,u=t.className,c=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isUpdateAnimationActive;if(n!==+n||r!==+r||o!==+o||i!==+i||a!==+a||0===o&&0===i||0===a)return null;var g=mn("recharts-trapezoid",u);return h?s.default.createElement(tp,{canBegin:c>0,from:{upperWidth:0,lowerWidth:0,height:a,x:n,y:r},to:{upperWidth:o,lowerWidth:i,height:a,x:n,y:r},duration:d,animationEasing:f,isActive:h},(function(t){var n=t.upperWidth,r=t.lowerWidth,o=t.height,i=t.x,a=t.y;return s.default.createElement(tp,{canBegin:c>0,from:"0px ".concat(-1===c?1:c,"px"),to:"".concat(c,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,easing:f},s.default.createElement("path",kR({},Sn(e.props,!0),{className:g,d:DR(i,a,n,r,o),ref:function(t){e.node=t}})))})):s.default.createElement("g",null,s.default.createElement("path",kR({},Sn(this.props,!0),{className:g,d:DR(n,r,o,i,a)})))}}],r&&jR(n.prototype,r),o&&jR(n,o),a}();function IR(e){return IR="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},IR(e)}function LR(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,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return NR(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 NR(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 NR(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 BR(){return BR=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},BR.apply(this,arguments)}function FR(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 zR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?FR(Object(n),!0).forEach((function(t){UR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function UR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VR(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,r.key,r)}}function KR(e,t){return KR=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},KR(e,t)}function WR(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=qR(e);if(t){var o=qR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $R(this,n)}}function $R(e,t){return!t||"object"!==IR(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qR(e){return qR=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qR(e)}RR.defaultProps={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"};var GR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&KR(e,t)}(a,t.PureComponent);var n,r,o,i=WR(a);function a(){var e;HR(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.call.apply(i,[this].concat(n))).state={isAnimationFinished:!1},e.handleAnimationEnd=function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),Xn(t)&&t()},e.handleAnimationStart=function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),Xn(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(e){var t=this,n=this.props.activeShape;return e.map((function(e,r){var o=t.isActiveIndex(r)?n:null,i=zR(zR({},e),{},{stroke:e.stroke});return s.default.createElement(Pn,BR({className:"recharts-funnel-trapezoid"},kn(t.props,e,r),{key:"trapezoid-".concat(r)}),a.renderTrapezoidItem(o,i))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,t=this.props,n=t.trapezoids,r=t.isAnimationActive,o=t.animationBegin,i=t.animationDuration,a=t.animationEasing,u=t.animationId,c=this.state.prevTrapezoids;return s.default.createElement(tp,{begin:o,duration:i,isActive:r,easing:a,from:{t:0},to:{t:1},key:"funnel-".concat(u),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(t){var r=t.t,o=n.map((function(e,t){var n=c&&c[t];if(n){var o=sf(n.x,e.x),i=sf(n.y,e.y),a=sf(n.upperWidth,e.upperWidth),s=sf(n.lowerWidth,e.lowerWidth),u=sf(n.height,e.height);return zR(zR({},e),{},{x:o(r),y:i(r),upperWidth:a(r),lowerWidth:s(r),height:u(r)})}var l=sf(e.x+e.upperWidth/2,e.x),f=sf(e.y+e.height/2,e.y),d=sf(0,e.upperWidth),p=sf(0,e.lowerWidth),h=sf(0,e.height);return zR(zR({},e),{},{x:l(r),y:f(r),upperWidth:d(r),lowerWidth:p(r),height:h(r)})}));return s.default.createElement(Pn,null,e.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&&Zv(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,t=e.hide,n=e.trapezoids,r=e.className,o=e.isAnimationActive,i=this.state.isAnimationFinished;if(t||!n||!n.length)return null;var a=mn("recharts-trapezoids",r);return s.default.createElement(Pn,{className:a},this.renderTrapezoids(),(!o||i)&&wO.renderCallByParent(this.props,n))}}],o=[{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(e,t){return s.default.isValidElement(e)?s.default.cloneElement(e,t):Xn(e)?e(t):EE(e)?s.default.createElement(RR,BR({},t,e)):s.default.createElement(RR,t)}}],r&&VR(n.prototype,r),o&&VR(n,o),a}();GR.displayName="Funnel",GR.defaultProps={stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!Qh.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"},GR.getRealFunnelData=function(e){var t=e.props,n=t.data,r=t.children,o=Sn(e.props),i=Uv(r,ky.displayName);return n&&n.length?n.map((function(e,t){return zR(zR(zR({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return zR(zR({},o),e.props)})):[]},GR.getRealWidthHeight=function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,u=t.bottom,c=o,l=r;return Wl(n)?l=n:Xl(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:c-u-s,offsetX:(r-l)/2,offsetY:(o-c)/2}},GR.getComposedData=function(e){var t=e.item,n=e.offset,r=GR.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,u=o.lastShapeType,c=o.reversed,l=n.left,f=n.top,d=GR.getRealWidthHeight(t,n),p=d.realHeight,h=d.realWidth,g=d.offsetX,y=d.offsetY,v=Math.max.apply(null,r.map((function(e){return gS(e,i,0)}))),m=r.length,b=p/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=gS(e,i,0),c=gS(e,a,t),d=o;if(t!==m-1)(n=gS(r[t+1],i,0))instanceof Array&&(n=LR(n,1)[0]);else if(o instanceof Array&&2===o.length){var p=LR(o,2);d=p[0],n=p[1]}else n="rectangle"===u?d:0;var x=(v-d)*h/(2*v)+f+25+g,_=b*t+l+y,C=d/v*h,S=n/v*h,O=[{name:c,value:d,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return zR(zR({x:x,y:_,width:Math.max(C,S),upperWidth:C,lowerWidth:S,height:b,name:c,val:d,tooltipPayload:O,tooltipPosition:k},SR(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-S)/4,y:_,width:Math.abs(C-S)/2+Math.min(C,S),height:b}})}));return c&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return zR(zR({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:zR(zR({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:zR(zR({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}},oP({chartName:"FunnelChart",GraphicalChild:GR,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const ZR=q.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),YR=()=>{const{tooltip:t,elevation1:r}=n.useTheme();return e.jsx(dg,{wrapperStyle:{outline:"none",boxShadow:r},contentStyle:{background:t.background,border:"none",borderRadius:4,padding:16},labelStyle:{color:t.color.subtext},itemStyle:{color:t.color.default,textTransform:"capitalize"},cursor:!1})},XR=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}});function JR(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function QR(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function eI(e){QR(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"==typeof e&&"[object Date]"===t?new Date(e.getTime()):"number"==typeof e||"[object Number]"===t?new Date(e):("string"!=typeof e&&"[object String]"!==t||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function tI(e,t){QR(2,arguments);var n=eI(e),r=JR(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function nI(e,t){QR(2,arguments);var n=eI(e),r=JR(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());i.setMonth(n.getMonth()+r+1,0);var a=i.getDate();return o>=a?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function rI(e,t){if(QR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?JR(t.years):0,r=t.months?JR(t.months):0,o=t.weeks?JR(t.weeks):0,i=t.days?JR(t.days):0,a=t.hours?JR(t.hours):0,s=t.minutes?JR(t.minutes):0,u=t.seconds?JR(t.seconds):0,c=eI(e),l=r||n?nI(c,r+12*n):c,f=i||o?tI(l,i+7*o):l,d=s+60*a,p=u+60*d,h=1e3*p,g=new Date(f.getTime()+h);return g}function oI(e,t){QR(2,arguments);var n=eI(e).getTime(),r=JR(t);return new Date(n+r)}var iI={};function aI(){return iI}function sI(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function uI(e){QR(1,arguments);var t=eI(e);return t.setHours(0,0,0,0),t}function cI(e,t){QR(2,arguments);var n=uI(e),r=uI(t),o=n.getTime()-sI(n),i=r.getTime()-sI(r);return Math.round((o-i)/864e5)}function lI(e,t){QR(2,arguments);var n=uI(e),r=uI(t);return n.getTime()===r.getTime()}function fI(e){return QR(1,arguments),e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}function dI(e){if(QR(1,arguments),!fI(e)&&"number"!=typeof e)return!1;var t=eI(e);return!isNaN(Number(t))}function pI(e,t){var n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function hI(e,t){QR(2,arguments);var n=eI(e),r=eI(t),o=pI(n,r),i=Math.abs(cI(n,r));n.setDate(n.getDate()-o*i);var a=Number(pI(n,r)===-o),s=o*(i-a);return 0===s?0:s}function gI(e,t){return QR(2,arguments),eI(e).getTime()-eI(t).getTime()}var yI={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}};function vI(e){return e?yI[e]:yI.trunc}function mI(e,t){QR(2,arguments);var n=JR(t);return oI(e,-n)}function bI(e){QR(1,arguments);var t=1,n=eI(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function wI(e){QR(1,arguments);var t=eI(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=bI(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=bI(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function xI(e){QR(1,arguments);var t=wI(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=bI(n);return r}function _I(e){QR(1,arguments);var t=eI(e),n=bI(t).getTime()-xI(t).getTime();return Math.round(n/6048e5)+1}function CI(e,t){var n,r,o,i,a,s,u,c;QR(1,arguments);var l=aI(),f=JR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.weekStartsOn)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.weekStartsOn)&&void 0!==o?o:l.weekStartsOn)&&void 0!==r?r:null===(u=l.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=eI(e),p=d.getUTCDay(),h=(p<f?7:0)+p-f;return d.setUTCDate(d.getUTCDate()-h),d.setUTCHours(0,0,0,0),d}function SI(e,t){var n,r,o,i,a,s,u,c;QR(1,arguments);var l=eI(e),f=l.getUTCFullYear(),d=aI(),p=JR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(u=d.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1);if(!(p>=1&&p<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,p),h.setUTCHours(0,0,0,0);var g=CI(h,t),y=new Date(0);y.setUTCFullYear(f,0,p),y.setUTCHours(0,0,0,0);var v=CI(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function OI(e,t){var n,r,o,i,a,s,u,c;QR(1,arguments);var l=aI(),f=JR(null!==(n=null!==(r=null!==(o=null!==(i=null==t?void 0:t.firstWeekContainsDate)&&void 0!==i?i:null==t||null===(a=t.locale)||void 0===a||null===(s=a.options)||void 0===s?void 0:s.firstWeekContainsDate)&&void 0!==o?o:l.firstWeekContainsDate)&&void 0!==r?r:null===(u=l.locale)||void 0===u||null===(c=u.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==n?n:1),d=SI(e,t),p=new Date(0);p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0);var h=CI(p,t);return h}function kI(e,t){QR(1,arguments);var n=eI(e),r=CI(n,t).getTime()-OI(n,t).getTime();return Math.round(r/6048e5)+1}function EI(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var jI=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return EI("yy"===t?r%100:r,t.length)},AI=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):EI(n+1,2)},TI=function(e,t){return EI(e.getUTCDate(),t.length)},MI=function(e,t){return EI(e.getUTCHours()%12||12,t.length)},PI=function(e,t){return EI(e.getUTCHours(),t.length)},DI=function(e,t){return EI(e.getUTCMinutes(),t.length)},RI=function(e,t){return EI(e.getUTCSeconds(),t.length)},II=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return EI(Math.floor(r*Math.pow(10,n-3)),t.length)},LI="midnight",NI="noon",BI="morning",FI="afternoon",zI="evening",UI="night",HI={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if("yo"===t){var r=e.getUTCFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return jI(e,t)},Y:function(e,t,n,r){var o=SI(e,r),i=o>0?o:1-o;return"YY"===t?EI(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):EI(i,t.length)},R:function(e,t){return EI(wI(e),t.length)},u:function(e,t){return EI(e.getUTCFullYear(),t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return EI(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return EI(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return AI(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return EI(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var o=kI(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):EI(o,t.length)},I:function(e,t,n){var r=_I(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):EI(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):TI(e,t)},D:function(e,t,n){var r=function(e){QR(1,arguments);var t=eI(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):EI(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return EI(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var o=e.getUTCDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return EI(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),o=0===r?7:r;switch(t){case"i":return String(o);case"ii":return EI(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r,o=e.getUTCHours();switch(r=12===o?NI:0===o?LI:o/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r,o=e.getUTCHours();switch(r=o>=17?zI:o>=12?FI:o>=4?BI:UI,t){case"B":case"BB":case"BBB":return n.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(r,{width:"narrow",context:"formatting"});default:return n.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(e,t,n){if("ho"===t){var r=e.getUTCHours()%12;return 0===r&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return MI(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):PI(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):EI(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):EI(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):DI(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):RI(e,t)},S:function(e,t){return II(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return KI(o);case"XXXX":case"XX":return WI(o);default:return WI(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return KI(o);case"xxxx":case"xx":return WI(o);default:return WI(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+VI(o,":");default:return"GMT"+WI(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+VI(o,":");default:return"GMT"+WI(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return EI(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return EI((r._originalDate||e).getTime(),t.length)}};function VI(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var a=t||"";return n+String(o)+a+EI(i,2)}function KI(e,t){return e%60==0?(e>0?"-":"+")+EI(Math.abs(e)/60,2):WI(e,t)}function WI(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+EI(Math.floor(o/60),2)+n+EI(o%60,2)}var $I=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},qI=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},GI={p:qI,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return $I(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",$I(o,t)).replace("{{time}}",qI(i,t))}},ZI=["D","DD"],YI=["YY","YYYY"];function XI(e){return-1!==ZI.indexOf(e)}function JI(e){return-1!==YI.indexOf(e)}function QI(e,t,n){if("YYYY"===e)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===e)throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===e)throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===e)throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var eL={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function tL(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}var nL={date:tL({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:tL({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:tL({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},rL={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function oL(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}var iL={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:oL({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:oL({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:oL({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:oL({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:oL({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function aL(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?uL(u,(function(e){return e.test(s)})):sL(u,(function(e){return e.test(s)}));a=e.valueCallback?e.valueCallback(c):c,a=n.valueCallback?n.valueCallback(a):a;var l=t.slice(s.length);return{value:a,rest:l}}}function sL(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function uL(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}var cL,lL={ordinalNumber:(cL={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(cL.matchPattern);if(!n)return null;var r=n[0],o=e.match(cL.parsePattern);if(!o)return null;var i=cL.valueCallback?cL.valueCallback(o[0]):o[0];i=t.valueCallback?t.valueCallback(i):i;var a=e.slice(r.length);return{value:i,rest:a}}),era:aL({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:aL({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:aL({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:aL({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:aL({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},fL={code:"en-US",formatDistance:function(e,t,n){var r,o=eL[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:nL,formatRelative:function(e,t,n,r){return rL[e]},localize:iL,match:lL,options:{weekStartsOn:0,firstWeekContainsDate:1}},dL=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,pL=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hL=/^'([^]*?)'?$/,gL=/''/g,yL=/[a-zA-Z]/;function vL(e,t,n){var r,o,i,a,s,u,c,l,f,d,p,h,g,y,v,m,b,w;QR(2,arguments);var x=String(t),_=aI(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:fL,S=JR(null!==(i=null!==(a=null!==(s=null!==(u=null==n?void 0:n.firstWeekContainsDate)&&void 0!==u?u:null==n||null===(c=n.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(d=f.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==i?i:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=JR(null!==(p=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=eI(e);if(!dI(k))throw new RangeError("Invalid time value");var E=sI(k),j=mI(k,E),A={firstWeekContainsDate:S,weekStartsOn:O,locale:C,_originalDate:k},T=x.match(pL).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,GI[t])(e,C.formatLong):e})).join("").match(dL).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return mL(r);var i=HI[o];if(i)return null!=n&&n.useAdditionalWeekYearTokens||!JI(r)||QI(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!XI(r)||QI(r,t,String(e)),i(j,r,C.localize,A);if(o.match(yL))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return T}function mL(e){var t=e.match(hL);return t?t[1].replace(gL,"'"):e}function bL(e){QR(1,arguments);var t=eI(e),n=t.getDate();return n}function wL(e){QR(1,arguments);var t=eI(e),n=t.getFullYear(),r=t.getMonth(),o=new Date(0);return o.setFullYear(n,r+1,0),o.setHours(0,0,0,0),o.getDate()}function xL(e){QR(1,arguments);var t=eI(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function _L(e,t){QR(2,arguments);var n=eI(e),r=eI(t);return n.getTime()>r.getTime()}function CL(e,t){QR(2,arguments);var n=eI(e),r=eI(t);return n.getTime()<r.getTime()}function SL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class OL extends class{constructor(){SL(this,"priority",void 0),SL(this,"subPriority",0)}validate(e,t){return!0}}{constructor(e,t,n,r,o){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,o&&(this.subPriority=o)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}}function kL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class EL{constructor(){kL(this,"incompatibleTokens",void 0),kL(this,"priority",void 0),kL(this,"subPriority",void 0)}run(e,t,n,r){var o=this.parse(e,t,n,r);return o?{setter:new OL(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(e,t,n){return!0}}function jL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var AL=/^(1[0-2]|0?\d)/,TL=/^(3[0-1]|[0-2]?\d)/,ML=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,PL=/^(5[0-3]|[0-4]?\d)/,DL=/^(2[0-3]|[0-1]?\d)/,RL=/^(2[0-4]|[0-1]?\d)/,IL=/^(1[0-1]|0?\d)/,LL=/^(1[0-2]|0?\d)/,NL=/^[0-5]?\d/,BL=/^[0-5]?\d/,FL=/^\d/,zL=/^\d{1,2}/,UL=/^\d{1,3}/,HL=/^\d{1,4}/,VL=/^-?\d+/,KL=/^-?\d/,WL=/^-?\d{1,2}/,$L=/^-?\d{1,3}/,qL=/^-?\d{1,4}/,GL=/^([+-])(\d{2})(\d{2})?|Z/,ZL=/^([+-])(\d{2})(\d{2})|Z/,YL=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,XL=/^([+-])(\d{2}):(\d{2})|Z/,JL=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function QL(e,t){return e?{value:t(e.value),rest:e.rest}:e}function eN(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function tN(e,t){var n=t.match(e);return n?"Z"===n[0]?{value:0,rest:t.slice(1)}:{value:("+"===n[1]?1:-1)*(36e5*(n[2]?parseInt(n[2],10):0)+6e4*(n[3]?parseInt(n[3],10):0)+1e3*(n[5]?parseInt(n[5],10):0)),rest:t.slice(n[0].length)}:null}function nN(e){return eN(VL,e)}function rN(e,t){switch(e){case 1:return eN(FL,t);case 2:return eN(zL,t);case 3:return eN(UL,t);case 4:return eN(HL,t);default:return eN(new RegExp("^\\d{1,"+e+"}"),t)}}function oN(e,t){switch(e){case 1:return eN(KL,t);case 2:return eN(WL,t);case 3:return eN($L,t);case 4:return eN(qL,t);default:return eN(new RegExp("^-?\\d{1,"+e+"}"),t)}}function iN(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function aN(e,t){var n,r=t>0,o=r?t:1-t;if(o<=50)n=e||100;else{var i=o+50;n=e+100*Math.floor(i/100)-(e>=i%100?100:0)}return r?n:1-n}function sN(e){return e%400==0||e%4==0&&e%100!=0}function uN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var bN=[31,28,31,30,31,30,31,31,30,31,30,31],wN=[31,29,31,30,31,30,31,31,30,31,30,31];function xN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _N(e,t,n){var r,o,i,a,s,u,c,l;QR(2,arguments);var f=aI(),d=JR(null!==(r=null!==(o=null!==(i=null!==(a=null==n?void 0:n.weekStartsOn)&&void 0!==a?a:null==n||null===(s=n.locale)||void 0===s||null===(u=s.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==i?i:f.weekStartsOn)&&void 0!==o?o:null===(c=f.locale)||void 0===c||null===(l=c.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=eI(e),h=JR(t),g=p.getUTCDay(),y=h%7,v=(y+7)%7,m=(v<d?7:0)+h-g;return p.setUTCDate(p.getUTCDate()+m),p}function CN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UN(e,t){QR(2,arguments);var n=eI(e),r=eI(t);return n.getFullYear()===r.getFullYear()}function HN(e,t){QR(2,arguments);var n=JR(t);return tI(e,-n)}function VN(e,t){QR(2,arguments);var n=eI(e),r=JR(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=wL(a);return n.setMonth(r,Math.min(i,s)),n}function KN(e,t){QR(2,arguments);var n=eI(e),r=JR(t);return n.setDate(r),n}function WN(e,t){QR(2,arguments);var n=JR(t);return nI(e,-n)}function $N(e,t){if(QR(2,arguments),!t||"object"!=typeof t)return new Date(NaN);var n=t.years?JR(t.years):0,r=t.months?JR(t.months):0,o=t.weeks?JR(t.weeks):0,i=t.days?JR(t.days):0,a=t.hours?JR(t.hours):0,s=t.minutes?JR(t.minutes):0,u=t.seconds?JR(t.seconds):0,c=WN(e,r+12*n),l=HN(c,i+7*o),f=s+60*a,d=u+60*f,p=1e3*d,h=new Date(l.getTime()-p);return h}new class extends EL{constructor(){super(...arguments),jL(this,"priority",140),jL(this,"incompatibleTokens",["R","u","t","T"])}parse(e,t,n){switch(t){case"G":case"GG":case"GGG":return n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"});case"GGGGG":return n.era(e,{width:"narrow"});default:return n.era(e,{width:"wide"})||n.era(e,{width:"abbreviated"})||n.era(e,{width:"narrow"})}}set(e,t,n){return t.era=n,e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),uN(this,"priority",130),uN(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"yy"===t}};switch(t){case"y":return QL(rN(4,e),r);case"yo":return QL(n.ordinalNumber(e,{unit:"year"}),r);default:return QL(rN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){var r=e.getUTCFullYear();if(n.isTwoDigitYear){var o=aN(n.year,r);return e.setUTCFullYear(o,0,1),e.setUTCHours(0,0,0,0),e}var i="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(i,0,1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),cN(this,"priority",130),cN(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(e,t,n){var r=function(e){return{year:e,isTwoDigitYear:"YY"===t}};switch(t){case"Y":return QL(rN(4,e),r);case"Yo":return QL(n.ordinalNumber(e,{unit:"year"}),r);default:return QL(rN(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){var o=SI(e,r);if(n.isTwoDigitYear){var i=aN(n.year,o);return e.setUTCFullYear(i,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),CI(e,r)}var a="era"in t&&1!==t.era?1-n.year:n.year;return e.setUTCFullYear(a,0,r.firstWeekContainsDate),e.setUTCHours(0,0,0,0),CI(e,r)}},new class extends EL{constructor(){super(...arguments),lN(this,"priority",130),lN(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(e,t){return oN("R"===t?4:t.length,e)}set(e,t,n){var r=new Date(0);return r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0),bI(r)}},new class extends EL{constructor(){super(...arguments),fN(this,"priority",130),fN(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(e,t){return oN("u"===t?4:t.length,e)}set(e,t,n){return e.setUTCFullYear(n,0,1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),dN(this,"priority",120),dN(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"Q":case"QQ":return rN(t.length,e);case"Qo":return n.ordinalNumber(e,{unit:"quarter"});case"QQQ":return n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"});case"QQQQQ":return n.quarter(e,{width:"narrow",context:"formatting"});default:return n.quarter(e,{width:"wide",context:"formatting"})||n.quarter(e,{width:"abbreviated",context:"formatting"})||n.quarter(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),pN(this,"priority",120),pN(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"q":case"qq":return rN(t.length,e);case"qo":return n.ordinalNumber(e,{unit:"quarter"});case"qqq":return n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"});case"qqqqq":return n.quarter(e,{width:"narrow",context:"standalone"});default:return n.quarter(e,{width:"wide",context:"standalone"})||n.quarter(e,{width:"abbreviated",context:"standalone"})||n.quarter(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setUTCMonth(3*(n-1),1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),hN(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),hN(this,"priority",110)}parse(e,t,n){var r=function(e){return e-1};switch(t){case"M":return QL(eN(AL,e),r);case"MM":return QL(rN(2,e),r);case"Mo":return QL(n.ordinalNumber(e,{unit:"month"}),r);case"MMM":return n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"});case"MMMMM":return n.month(e,{width:"narrow",context:"formatting"});default:return n.month(e,{width:"wide",context:"formatting"})||n.month(e,{width:"abbreviated",context:"formatting"})||n.month(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),gN(this,"priority",110),gN(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(e,t,n){var r=function(e){return e-1};switch(t){case"L":return QL(eN(AL,e),r);case"LL":return QL(rN(2,e),r);case"Lo":return QL(n.ordinalNumber(e,{unit:"month"}),r);case"LLL":return n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"});case"LLLLL":return n.month(e,{width:"narrow",context:"standalone"});default:return n.month(e,{width:"wide",context:"standalone"})||n.month(e,{width:"abbreviated",context:"standalone"})||n.month(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setUTCMonth(n,1),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),yN(this,"priority",100),yN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(e,t,n){switch(t){case"w":return eN(PL,e);case"wo":return n.ordinalNumber(e,{unit:"week"});default:return rN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return CI(function(e,t,n){QR(2,arguments);var r=eI(e),o=JR(t),i=kI(r,n)-o;return r.setUTCDate(r.getUTCDate()-7*i),r}(e,n,r),r)}},new class extends EL{constructor(){super(...arguments),vN(this,"priority",100),vN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(e,t,n){switch(t){case"I":return eN(PL,e);case"Io":return n.ordinalNumber(e,{unit:"week"});default:return rN(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return bI(function(e,t){QR(2,arguments);var n=eI(e),r=JR(t),o=_I(n)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(e,n))}},new class extends EL{constructor(){super(...arguments),mN(this,"priority",90),mN(this,"subPriority",1),mN(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"d":return eN(TL,e);case"do":return n.ordinalNumber(e,{unit:"date"});default:return rN(t.length,e)}}validate(e,t){var n=sN(e.getUTCFullYear()),r=e.getUTCMonth();return n?t>=1&&t<=wN[r]:t>=1&&t<=bN[r]}set(e,t,n){return e.setUTCDate(n),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),xN(this,"priority",90),xN(this,"subpriority",1),xN(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(e,t,n){switch(t){case"D":case"DD":return eN(ML,e);case"Do":return n.ordinalNumber(e,{unit:"date"});default:return rN(t.length,e)}}validate(e,t){return sN(e.getUTCFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setUTCMonth(0,n),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),CN(this,"priority",90),CN(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(e,t,n){switch(t){case"E":case"EE":case"EEE":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"EEEEE":return n.day(e,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),SN(this,"priority",90),SN(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"e":case"ee":return QL(rN(t.length,e),o);case"eo":return QL(n.ordinalNumber(e,{unit:"day"}),o);case"eee":return n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});case"eeeee":return n.day(e,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"});default:return n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),ON(this,"priority",90),ON(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(e,t,n,r){var o=function(e){var t=7*Math.floor((e-1)/7);return(e+r.weekStartsOn+6)%7+t};switch(t){case"c":case"cc":return QL(rN(t.length,e),o);case"co":return QL(n.ordinalNumber(e,{unit:"day"}),o);case"ccc":return n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});case"ccccc":return n.day(e,{width:"narrow",context:"standalone"});case"cccccc":return n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"});default:return n.day(e,{width:"wide",context:"standalone"})||n.day(e,{width:"abbreviated",context:"standalone"})||n.day(e,{width:"short",context:"standalone"})||n.day(e,{width:"narrow",context:"standalone"})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return(e=_N(e,n,r)).setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),kN(this,"priority",90),kN(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(e,t,n){var r=function(e){return 0===e?7:e};switch(t){case"i":case"ii":return rN(t.length,e);case"io":return n.ordinalNumber(e,{unit:"day"});case"iii":return QL(n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiii":return QL(n.day(e,{width:"narrow",context:"formatting"}),r);case"iiiiii":return QL(n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r);default:return QL(n.day(e,{width:"wide",context:"formatting"})||n.day(e,{width:"abbreviated",context:"formatting"})||n.day(e,{width:"short",context:"formatting"})||n.day(e,{width:"narrow",context:"formatting"}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=function(e,t){QR(2,arguments);var n=JR(t);n%7==0&&(n-=7);var r=1,o=eI(e),i=o.getUTCDay(),a=((n%7+7)%7<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+a),o}(e,n),e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),EN(this,"priority",80),EN(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(e,t,n){switch(t){case"a":case"aa":case"aaa":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"aaaaa":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(iN(n),0,0,0),e}},new class extends EL{constructor(){super(...arguments),jN(this,"priority",80),jN(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(e,t,n){switch(t){case"b":case"bb":case"bbb":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"bbbbb":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(iN(n),0,0,0),e}},new class extends EL{constructor(){super(...arguments),AN(this,"priority",80),AN(this,"incompatibleTokens",["a","b","t","T"])}parse(e,t,n){switch(t){case"B":case"BB":case"BBB":return n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"});case"BBBBB":return n.dayPeriod(e,{width:"narrow",context:"formatting"});default:return n.dayPeriod(e,{width:"wide",context:"formatting"})||n.dayPeriod(e,{width:"abbreviated",context:"formatting"})||n.dayPeriod(e,{width:"narrow",context:"formatting"})}}set(e,t,n){return e.setUTCHours(iN(n),0,0,0),e}},new class extends EL{constructor(){super(...arguments),TN(this,"priority",70),TN(this,"incompatibleTokens",["H","K","k","t","T"])}parse(e,t,n){switch(t){case"h":return eN(LL,e);case"ho":return n.ordinalNumber(e,{unit:"hour"});default:return rN(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){var r=e.getUTCHours()>=12;return r&&n<12?e.setUTCHours(n+12,0,0,0):r||12!==n?e.setUTCHours(n,0,0,0):e.setUTCHours(0,0,0,0),e}},new class extends EL{constructor(){super(...arguments),MN(this,"priority",70),MN(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(e,t,n){switch(t){case"H":return eN(DL,e);case"Ho":return n.ordinalNumber(e,{unit:"hour"});default:return rN(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setUTCHours(n,0,0,0),e}},new class extends EL{constructor(){super(...arguments),PN(this,"priority",70),PN(this,"incompatibleTokens",["h","H","k","t","T"])}parse(e,t,n){switch(t){case"K":return eN(IL,e);case"Ko":return n.ordinalNumber(e,{unit:"hour"});default:return rN(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getUTCHours()>=12&&n<12?e.setUTCHours(n+12,0,0,0):e.setUTCHours(n,0,0,0),e}},new class extends EL{constructor(){super(...arguments),DN(this,"priority",70),DN(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(e,t,n){switch(t){case"k":return eN(RL,e);case"ko":return n.ordinalNumber(e,{unit:"hour"});default:return rN(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){var r=n<=24?n%24:n;return e.setUTCHours(r,0,0,0),e}},new class extends EL{constructor(){super(...arguments),RN(this,"priority",60),RN(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"m":return eN(NL,e);case"mo":return n.ordinalNumber(e,{unit:"minute"});default:return rN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCMinutes(n,0,0),e}},new class extends EL{constructor(){super(...arguments),IN(this,"priority",50),IN(this,"incompatibleTokens",["t","T"])}parse(e,t,n){switch(t){case"s":return eN(BL,e);case"so":return n.ordinalNumber(e,{unit:"second"});default:return rN(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setUTCSeconds(n,0),e}},new class extends EL{constructor(){super(...arguments),LN(this,"priority",30),LN(this,"incompatibleTokens",["t","T"])}parse(e,t){return QL(rN(t.length,e),(function(e){return Math.floor(e*Math.pow(10,3-t.length))}))}set(e,t,n){return e.setUTCMilliseconds(n),e}},new class extends EL{constructor(){super(...arguments),NN(this,"priority",10),NN(this,"incompatibleTokens",["t","T","x"])}parse(e,t){switch(t){case"X":return tN(GL,e);case"XX":return tN(ZL,e);case"XXXX":return tN(YL,e);case"XXXXX":return tN(JL,e);default:return tN(XL,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends EL{constructor(){super(...arguments),BN(this,"priority",10),BN(this,"incompatibleTokens",["t","T","X"])}parse(e,t){switch(t){case"x":return tN(GL,e);case"xx":return tN(ZL,e);case"xxxx":return tN(YL,e);case"xxxxx":return tN(JL,e);default:return tN(XL,e)}}set(e,t,n){return t.timestampIsSet?e:new Date(e.getTime()-n)}},new class extends EL{constructor(){super(...arguments),FN(this,"priority",40),FN(this,"incompatibleTokens","*")}parse(e){return nN(e)}set(e,t,n){return[new Date(1e3*n),{timestampIsSet:!0}]}},new class extends EL{constructor(){super(...arguments),zN(this,"priority",20),zN(this,"incompatibleTokens","*")}parse(e){return nN(e)}set(e,t,n){return[new Date(n),{timestampIsSet:!0}]}};const qN=q.div((({theme:e,noShadow:t})=>({display:"inline-flex",flexDirection:"column",borderRadius:4,minHeight:349,padding:"20px 24px",backgroundColor:e.calendar.background.container,boxShadow:t?void 0:e.elevation3,userSelect:"none"}))),GN=q.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),ZN=q.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),YN=q.div({display:"flex"}),XN=q.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),JN=q.button((({theme:{accent:e,font:t,calendar:n},disabled:r,active:o})=>({display:"flex",justifyContent:"center",alignItems:"center",border:"none",fontSize:t.size.md,fontWeight:t.weight.medium,color:r?n.color.disabled:n.color.default,pointerEvents:r?"none":void 0,width:36,height:36,borderRadius:"50%",cursor:"pointer","&:hover":{backgroundColor:o?n.background.activeHover:n.background.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({theme:{calendar:e},outside:t,disabled:n})=>({color:t&&!n?e.color.outside:void 0})),(({theme:{calendar:e},current:t,active:n})=>{let r;return t&&!n?r=e.color.current:n&&(r=e.color.active),{color:r,backgroundColor:n?e.background.active:"transparent"}})),QN=q.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),eB=q.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),tB=q.label((({theme:{formControl:e},labelRight:t,disabled:n})=>({display:"inline-flex",flexDirection:t?"row-reverse":"row",justifyContent:t?"flex-end":"flex-start",alignItems:"center",position:"relative",cursor:n?"not-allowed":void 0,"&:hover > div":{color:n?void 0:e.color.hover},"&:hover > input:checked + div":{color:n?void 0:e.color.activeHover}})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),nB=q.input({border:0,clip:"rect(0, 0, 0, 0)",height:1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:1},(({theme:{accent:e,formControl:t}})=>({"& + div":{color:t.color.default},'&[type="checkbox"] + div':{transition:"color 0.2s linear"},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:0},"&:checked":{"& + div":{color:t.color.active},'&[type="radio"] + div > svg > svg > .radio-fill':{opacity:1}},'&[type="checkbox"]:indeterminate + div':{color:t.color.active},"&:disabled":{"& + div":{color:t.color.disabled}},"&:focus-visible":{"& + div":{outline:`${e} solid 1px`}}}))),rB=q.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),oB=n=>{var{id:r,label:o,labelPosition:i,checked:a,partial:s,disabled:u,onChange:l,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g}=n,y=c(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(a||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(s?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,s]),t.useEffect((()=>{w("boolean"==typeof a?a:b)}),[a,b]),e.jsxs(tB,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(rB,{children:o}),e.jsx(nB,Object.assign({ref:x,id:r,type:"checkbox",checked:s?!b:b,disabled:u,onChange:()=>{const e=!!s||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!s)}},y)),e.jsx(tt,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
201
201
  /**
202
202
  * Prism: Lightweight, robust, elegant syntax highlighting
203
203
  *
@@ -206,5 +206,5 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
206
206
  * @namespace
207
207
  * @public
208
208
  */
209
- var oB=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var u=t[s],c=r.util.type(u);"Object"!==c||i[a(u)]?"Array"!==c||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return u(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var S=_.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,C,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(C,A),O.index-=C}else if(!(O=i(x,0,S,v)))continue;E=O.index;var M=O[0],P=S.slice(0,E),D=S.slice(E+M.length),R=C+S.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(P&&(I=u(t,I,P),C+=P.length),c(t,I,k),_=u(t,I,new o(d,y?r.tokenize(M,y):M,b,M)),D&&u(t,_,D),k>1){var L={cause:d+","+h,reach:R};a(e,t,n,_.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),iB=oB;oB.default=oB,iB.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},iB.languages.markup.tag.inside["attr-value"].inside.entity=iB.languages.markup.entity,iB.languages.markup.doctype.inside["internal-subset"].inside=iB.languages.markup,iB.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(iB.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:iB.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:iB.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},iB.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(iB.languages.markup.tag,"addAttribute",{value:function(e,t){iB.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:iB.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),iB.languages.html=iB.languages.markup,iB.languages.mathml=iB.languages.markup,iB.languages.svg=iB.languages.markup,iB.languages.xml=iB.languages.extend("markup",{}),iB.languages.ssml=iB.languages.xml,iB.languages.atom=iB.languages.xml,iB.languages.rss=iB.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(iB),iB.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},iB.languages.c=iB.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),iB.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),iB.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},iB.languages.c.string],char:iB.languages.c.char,comment:iB.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:iB.languages.c}}}}),iB.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete iB.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(iB),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(iB),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(iB),iB.languages.javascript=iB.languages.extend("clike",{"class-name":[iB.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),iB.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,iB.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:iB.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:iB.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:iB.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:iB.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:iB.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),iB.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:iB.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),iB.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),iB.languages.markup&&(iB.languages.markup.tag.addInlined("script","javascript"),iB.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),iB.languages.js=iB.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(iB),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(iB),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(iB),iB.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:iB.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},iB.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,p(l(0),"property-mutation"),o.length>0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u<s;u++){var c=t[u];"variable"===c.type&&o.indexOf(c.content)>=0&&p(c,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),iB.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function c(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,u(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=u(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),d=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=d.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=d[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var u=i.substring(0,s),f=c(l[o]),p=i.substring(s+o.length),h=[];if(u&&h.push(u),h.push(f),p){var g=[p];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"==typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var u=d(s),c=s.alias,f=Array.isArray(c)?c[0]:c,p=e.languages[f];if(!p)continue;a[1]=l(u,p,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(iB),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(iB),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(iB),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(iB),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(iB),iB.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},iB.languages.go=iB.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),iB.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete iB.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var u=0;u<s.length&&!(o>=i.length);u++){var c=s[u];if("string"==typeof c||c.content&&"string"==typeof c.content){var l=i[o],f=n.tokenStack[l],d="string"==typeof c?c:c.content,p=t(r,l),h=d.indexOf(p);if(h>-1){++o;var g=d.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=d.substring(h+p.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof c?s.splice.apply(s,[u,1].concat(m)):c.content=m}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(iB),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(iB),iB.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},iB.languages.webmanifest=iB.languages.json,iB.languages.less=iB.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),iB.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),iB.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},iB.languages.objectivec=iB.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete iB.languages.objectivec["class-name"],iB.languages.objc=iB.languages.objectivec,iB.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},iB.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},iB.languages.python["string-interpolation"].inside.interpolation.inside.rest=iB.languages.python,iB.languages.py=iB.languages.python,iB.languages.reason=iB.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),iB.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete iB.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(iB),iB.languages.scss=iB.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),iB.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),iB.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),iB.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),iB.languages.scss.atrule.inside.rest=iB.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(iB),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(iB),iB.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var aB={Prism:iB,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function sB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(){return uB=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},uB.apply(this,arguments)}var cB=/\r\n|\r|\n/,lB=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},fB=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},dB=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=uB({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=uB({},n,{backgroundColor:null}),o};function pB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var hB=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),sB(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?dB(e.theme,e.language):void 0;return t.themeDict=n})),sB(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=uB({},pB(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?uB({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),sB(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),sB(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=uB({},pB(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?uB({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),sB(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],u=[s];a>-1;){for(;(i=r[a]++)<o[a];){var c=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],c=f):(l=fB(l,f.type),f.alias&&(l=fB(l,f.alias)),c=f.content),"string"==typeof c){var d=c.split(cB),p=d.length;s.push({types:l,content:d[0]});for(var h=1;h<p;h++)lB(s),u.push(s=[]),s.push({types:l,content:d[h]})}else a++,t.push(l),n.push(c),r.push(0),o.push(c.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return lB(s),u}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),gB="#c5a5c5",yB="#8dc891",vB={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:gB}},{types:["attr-value"],style:{color:yB}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:yB}},{types:["punctuation"],style:{color:yB}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:gB}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},mB={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const bB=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},wB=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(xB,Object.assign({onClick:()=>{bB(r),i(!0)},copied:o},{children:o?e.jsx(tt,{name:"check-circle",color:a.success}):e.jsx(tt,{name:"copy",color:s})}))},xB=q.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),_B=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(CB,Object.assign({},i,{children:[e.jsx(SB,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(OB,{children:r}),e.jsx(wB,{content:r})]}))},CB=q.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),SB=q.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),OB=q.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),kB=q.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),EB=q.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),jB=q.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),AB=q.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var TB={exports:{}},MB=(TB.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return u(e)?e:Z(e)}function i(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function u(e){return!(!e||!e[p])}function c(e){return s(e)||u(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function S(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,L="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=L||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function V(e){return e&&"function"==typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(L&&e[L]||e[N]);if("function"==typeof t)return t}function $(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ue(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return $(e)?new te(e):V(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?U():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?U():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?U():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!V(n))return new F(U);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):U()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?U():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(Se,_e),t(Oe,_e),_e.Keyed=Ce,_e.Indexed=Se,_e.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ue===ze&&(Ue=0,He={}),Ue++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Le&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Le)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Le="function"==typeof WeakMap;Le&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ue=0,He={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():We(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return dt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var $e,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return $e||($e=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ut(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ut(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new S);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,c=t.length;s<c;s++,u<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=u,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],u=r(s);a(s)||(u=u.map((function(e){return pe(e)}))),o.push(u)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var u=i.value,c=o?b:e.get(u,b),l=yt(c,t,n,r);return l===c?e:l===b?e.remove(u):(o?ot():e).set(u,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,u=this.entries,c=0,l=u.length;c<l&&!ve(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==u.length){if(!f&&!s&&u.length>=xt)return ct(e,u,r,o);var d=e&&e===this.ownerID,p=d?u:O(u);return f?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ze(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,u=1<<s,c=this.bitmap,l=0!=(c&u);if(!l&&o===b)return this;var f=vt(c&u-1),d=this.nodes,p=l?d[f]:void 0,h=at(p,e,t+y,n,r,o,i,a);if(h===p)return this;if(!l&&h&&d.length>=_t)return ft(e,d,c,s,h);if(l&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(l&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?c:c^u:c|u,w=l?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,u=o===b,c=this.nodes,l=c[s];if(u&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var d=this.count;if(l){if(!f&&--d<Ct)return lt(e,c,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(c,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ut(this,e,t,n,[r,o]));for(var u=this.entries,c=0,l=u.length;c<l&&!ve(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,u[1^c]);var d=e&&e===this.ownerID,p=d?u:O(u);return f?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,u=ve(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(C(a),s?void C(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ut(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return U()};var xt=v/4,_t=v/2,Ct=v/4;function St(e){var t=Rt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},St.prototype.set=function(e,t){return It(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Ft(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Ft(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,pt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Ft(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?U():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=St.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ut(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):u(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(u===c)return Mt;var e=t?--c:u++;return s&&s[e]}}function u(e,o,i){var s,u=e&&e.array,c=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(c===l)return Mt;var n=t?--l:c++;s=a(u&&u[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Ut(e._capacity)?r=Lt(r,e.__ownerID,0,t,n,i):o=Lt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Lt(e,t,n,r,o,i){var a,s=r>>>n&m,u=e&&s<e.array.length;if(!u&&void 0===o)return e;if(n>0){var c=e&&e.array[s],l=Lt(c,t,n-y,r,o,i);return l===c?e:((a=Nt(e,t)).array[s]=l,a)}return u&&e.array[s]===o?e:(C(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new jt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ut(i),d=Ut(s);d>=1<<u+y;)c=new jt(c&&c.array.length?[c]:[],r),u+=y;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=c=Nt(c,r),v=u;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>y&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=y,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(l=0;c;){var w=a>>>u&m;if(w!==d>>>u&m)break;w&&(l+=(1<<u)*w),u-=y,c=c.array[w]}c&&a>o&&(c=c.removeBefore(r,u,a-l)),c&&d<f&&(c=c.removeAfter(r,u,d-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,u,c,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var u=n[s],c=o(u);c.size>i&&(i=c.size),a(u)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ut(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Vt(e)?e:Wt().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return We(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Wt(){return Tt||(Tt=Kt(ot(),Rt()))}function $t(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===b){if(!u)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return z(o,r?c:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var c=bn(e);return c.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(c.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,c=0;return e.__iterate((function(e,n){if(!u||!(u=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new F((function(){for(;a++<i;)o.next();if(++u>s)return U();var e=o.next();return r||t===R?e:z(t,u-1,t===D?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return U();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],c=o[1];return t.call(n,c,u,i)?r===I?e:z(r,u,c,e):(s=!1,U())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),u=!0,c=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,c++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],u&&(u=t.call(n,l,i,a))}while(u);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ue(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||u(e)&&u(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():u(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function un(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function u(e,c){var l=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?u(e,c+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return u(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],u=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===I&&(c=c[1]),t&&!(s.length<t)||!a(c))return n?e:z(r,u++,c,e);s.push(i),i=c.__iterator(r,o)}else i=s.pop()}return U()}))},r}function cn(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):u(e)?Z(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?U():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),k(e)}function mn(e){return s(e)?r:u(e)?o:i}function bn(e){return Object.create((s(e)?G:u(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!$(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Ht.prototype.set=function(e,t){return $t(this,e,t)},Ht.prototype.remove=function(e){return $t(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Vt,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=Cn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Ln():Tn(e)&&!l(e)?e:Ln().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=Ge.removeIn,Sn.merge=Ge.merge,Sn.mergeWith=Ge.mergeWith,Sn.mergeIn=Ge.mergeIn,Sn.mergeDeep=Ge.mergeDeep,Sn.mergeDeepWith=Ge.mergeDeepWith,Sn.mergeDeepIn=Ge.mergeDeepIn,Sn.setIn=Ge.setIn,Sn.update=Ge.update,Sn.updateIn=Ge.updateIn,Sn.withMutations=Ge.withMutations,Sn.asMutable=Ge.asMutable,Sn.asImmutable=Ge.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ln(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Ln,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Un(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Un(Wt()))}function Vn(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[$n])}zn[h]=!0,zn.__empty=Hn,zn.__make=Un,t(Vn,Se),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Vn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return U()}))},Vn.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Vn.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return Wn||(Wn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[$n]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,un(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ur(je(e),je(t))|0}:function(e,t){r=r+ur(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function ur(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,un(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype),{Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:St,Stack:Vn,Set:An,OrderedSet:Nn,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:pe}}()).OrderedMap,PB={createFromArray:function(e){return MB(e.map((function(e){return[e.getKey(),e]})))}};var DB=TB.exports,RB=DB.Map,IB=DB.OrderedSet,LB=DB.Record,NB=IB(),BB={style:NB,entity:null},FB=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return zB;var t=RB({style:NB,entity:null}).merge(e),n=UB.get(t);if(n)return n;var o=new r(t);return UB=UB.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?IB(t):t,entity:Array.isArray(n)?IB(n):n})},r}(LB(BB)),zB=new FB,UB=RB([[RB(BB),zB]]);FB.EMPTY=zB;var HB=FB;var VB=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var KB=HB,WB=VB,$B=TB.exports,qB=$B.List,GB=$B.Map,ZB=$B.OrderedSet,YB=$B.Record,XB=$B.Repeat,JB=ZB(),QB=YB({key:"",type:"unstyled",text:"",characterList:qB(),depth:0,data:GB()}),eF=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=qB(XB(KB.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():JB},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){WB(this.getCharacterList(),tF,e,t)},o.findEntityRanges=function(e,t){WB(this.getCharacterList(),nF,e,t)},r}(QB);function tF(e,t){return e.getStyle()===t.getStyle()}function nF(e,t){return e.getEntity()===t.getEntity()}var rF=eF;var oF=HB,iF=VB,aF=TB.exports,sF=aF.List,uF=aF.Map,cF=aF.OrderedSet,lF=aF.Record,fF=aF.Repeat,dF=cF(),pF={parent:null,characterList:sF(),data:uF(),depth:0,key:"",text:"",type:"unstyled",children:sF(),prevSibling:null,nextSibling:null},hF=function(e,t){return e.getStyle()===t.getStyle()},gF=function(e,t){return e.getEntity()===t.getEntity()},yF=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=sF(fF(oF.EMPTY,n.length))),e},vF=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:pF;return e.call(this,yF(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():dF},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){iF(this.getCharacterList(),hF,e,t)},o.findEntityRanges=function(e,t){iF(this.getCharacterList(),gF,e,t)},r}(lF(pF)),mF=vF,bF=HB,wF=TB.exports.Map;function xF(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(wF([[s,o.get(s)]])).map((function(e,t){var o,c;i===s?(o=a,c=u):(o=t===i?a:0,c=t===s?u:e.getLength());for(var l,f=e.getCharacterList();o<c;)l=f.get(o),f=f.set(o,r?bF.applyStyle(l,n):bF.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}var _F={add:function(e,t,n){return xF(e,t,n,!0)},remove:function(e,t,n){return xF(e,t,n,!1)}},CF=HB;var SF=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,CF.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},OF=TB.exports;var kF=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(OF.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,u=t===a?s:e.getLength();return SF(e,r,u,n)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})},EF={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,u=null,c=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==u||(u=s),c=a;else if(null!==u)break;s=a}var f=r+n.length,d=u===r,p=c===f;return(!d&&p||d&&!p)&&("forward"===o?c!==f&&c++:u!==r&&u--),{start:u,end:c}}},jF="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var AF=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(jF(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},TF=AF;var MF=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?TF(!1,"Entity key not found in this range."):TF(!1)),n},PF=EF,DF=MF,RF=AF;function IF(e,t,n,r,o,i,a){var s=n.getStartOffset(),u=n.getEndOffset(),c=e.__get(o).getMutability(),l=a?s:u;if("MUTABLE"===c)return n;var f=DF(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?RF(!1,"There should only be one entity range within this removal range."):RF(!1));var d=f[0];if("IMMUTABLE"===c)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?u=d.end:s=d.start);var p=PF.getRemovalRange(s,u,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var LF=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(a-1);if(!s&&!u)return r;var c=r;if(s&&s===u)c=IF(e,t,c,o,s,!0,!0);else if(s&&u){var l=IF(e,t,c,o,s,!1,!0),f=IF(e,n,c,o,u,!1,!1);c=c.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=IF(e,t,c,o,s,!1,!0);c=c.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var p=IF(e,n,c,o,u,!1,!1);c=c.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return c},NF={},BF=Math.pow(2,24);var FF=function(){for(var e;void 0===e||NF.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*BF).toString(32);return NF[e]=!0,e},zF=mF,UF=FF,HF=TB.exports.OrderedMap,VF=function(e){return e.first()instanceof zF?function(e){var t,n={};return HF(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),c=r.getParentKey(),l=UF();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),c&&e.get(c)){var f=e.get(c).getChildKeys();e.setIn([c,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return HF(e.toArray().map((function(e){var t=UF();return[t,e.set("key",t)]})))}(e)},KF=HB,WF=VB,$F=AF;function qF(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var u,c=function(e,t,n){var r;return WF(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?$F(!1,"Removal range must exist within character list."):$F(!1)),r}(r,s,n),l=c.start,f=c.end;l<f;)u=r.get(l),r=r.set(l,KF.applyEntity(u,null)),l++;return t.set("characterList",r)}return t}var GF=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),u=qF(r,s,a);u!==s&&(o[i]=u);var c=t.getEndKey(),l=t.getEndOffset(),f=n.get(c);i===c&&(f=u);var d=qF(r,f,l);return d!==f&&(o[c]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},ZF=VF,YF=GF,XF=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=YF(e,t).getBlockMap(),s=a.keySeq(),u=s.indexOf(n),c=s.indexOf(o)+1;return ZF(a.slice(u,c).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var JF=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},QF=PB,ez=mF,tz=JF,nz=AF,rz=VF,oz=TB.exports.List,iz=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),u=s.getText(),c=s.getCharacterList(),l=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();u&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:tz(c,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},az=function(e,t,n,r,o,i){var a=n.first()instanceof ez,s=[],u=r.size,c=n.get(o),l=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!c.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,u-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),u=n.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(e,i,r))):s.push(e)}));var g=QF.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),u=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=u[u.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),u.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,d=l.toArray();d.splice.apply(d,[f,0].concat(u)),t.setIn([s,"children"],oz(d))}}))}(g,0,c,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},sz=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?nz(!1,"`insertFragment` should only be called with a collapsed selection state."):nz(!1));var o=e.getBlockMap(),i=rz(n),a=t.getStartKey(),s=t.getStartOffset(),u=o.get(a);return u instanceof ez&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?nz(!1,"`insertFragment` should not be called when a container node is selected."):nz(!1))),1===i.size?iz(e,t,o,i.first(),a,s,r):az(e,t,o,i,a,s)},uz=JF,cz=AF,lz=TB.exports.Repeat;var fz=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?cz(!1,"`insertText` should only be called with a collapsed range."):cz(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),u=i.get(a),c=u.getText(),l=u.merge({text:c.slice(0,s)+n+c.slice(s,u.getLength()),characterList:uz(u.getCharacterList(),lz(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},dz=TB.exports.Map;var pz=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(dz([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},hz=mF,gz=function(e,t){if(!(e instanceof hz))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},yz=mF,vz=gz,mz=TB.exports;mz.List;var bz=mz.Map,wz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},xz=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},_z=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Cz=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},Sz=function(e,t,n,r){return e.withMutations((function(o){if(wz(t.getKey(),o,(function(e){return e.merge({nextSibling:_z(e,o,r),prevSibling:Cz(e,o,r)})})),wz(n.getKey(),o,(function(e){return e.merge({nextSibling:_z(e,o,r),prevSibling:Cz(e,o,r)})})),xz(t.getKey(),r).forEach((function(e){return wz(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:_z(e,o,r),prevSibling:Cz(e,o,r)})}))})),wz(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),wz(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:_z(e,o,r)})})),wz(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Cz(e,o,r)})})),wz(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),xz(n.getKey(),r).forEach((function(e){wz(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:_z(e,o,r),prevSibling:Cz(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=vz(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?vz(o,t):null}return n}(n,r).forEach((function(e){return wz(e,o,(function(e){return e.merge({nextSibling:_z(e,o,r),prevSibling:Cz(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();wz(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),wz(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){wz(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var u=e.get(s);wz(s,o,(function(e){return e.merge({children:u.getChildKeys().concat(t.getChildKeys())})}))}wz(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},Oz=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},kz=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.get(o),c=r.get(a),l=u instanceof yz,f=[];if(l){var d=c.getChildKeys(),p=xz(a,r);c.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(xz(vz(c,r),r))}n=u===c?Oz(u.getCharacterList(),i,s):u.getCharacterList().slice(0,i).concat(c.getCharacterList().slice(s));var h=u.merge({text:u.getText().slice(0,i)+c.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&c.getParentKey()===o&&null==c.getPrevSiblingKey()?bz([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(bz([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&u!==c&&(y=Sz(y,u,c,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},Ez=mF,jz=FF,Az=TB.exports,Tz=AF,Mz=pz,Pz=Az.List,Dz=Az.Map,Rz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Iz=HB,Lz=_F,Nz=kF,Bz=LF,Fz=XF,zz=sz,Uz=fz,Hz=AF,Vz=pz,Kz=GF,Wz=kz,$z=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?Tz(!1,"Selection range must be collapsed."):Tz(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Mz(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),u=o.getCharacterList(),c=jz(),l=o instanceof Ez,f=o.merge({text:i.slice(0,s),characterList:u.slice(0,s)}),d=f.merge({key:c,text:i.slice(s),characterList:u.slice(s),data:Dz()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[c,d]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Tz(!1,"ContentBlockNode must not have children"):Tz(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Rz(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:Pz(i)})})),Rz(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Rz(r,e,(function(e){return e.merge({nextSibling:o})})),Rz(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:0,focusKey:c,focusOffset:0,isBackward:!1})})},qz=TB.exports.OrderedSet,Gz={replaceText:function(e,t,n,r,o){var i=Kz(e,t),a=Wz(i,t),s=Iz.create({style:r||qz(),entity:o||null});return Uz(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Hz(!1,"Target range must be collapsed for `insertText`."):Hz(!1)),Gz.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=Fz(e,t),o=Gz.removeRange(e,t,"backward");return Gz.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=Kz(e,t),i=Wz(o,t);return zz(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(s),l=a.getEntityAt(u-1);if(r===o&&c&&c===l){var f=Bz(e.getEntityMap(),i,a,t,n);return Wz(e,f)}var d=Kz(e,t);return Wz(d,t)},splitBlock:function(e,t){var n=Kz(e,t),r=Wz(n,t);return $z(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Lz.add(e,t,n)},removeInlineStyle:function(e,t,n){return Lz.remove(e,t,n)},setBlockType:function(e,t,n){return Vz(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Vz(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Vz(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Kz(e,t);return Nz(r,t,n)}},Zz=Gz;var Yz=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Xz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Jz=VB,Qz=Yz,eU=TB.exports,tU=eU.List,nU=eU.Repeat,rU=eU.Record,oU=function(){return!0},iU=rU({start:null,end:null}),aU=rU({start:null,end:null,decoratorKey:null,leaves:null}),sU={generate:function(e,t,n){var r=t.getLength();if(!r)return tU.of(new aU({start:0,end:0,decoratorKey:null,leaves:tU.of(new iU({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):tU(nU(null,r)),a=t.getCharacterList();return Jz(i,cU,oU,(function(e,t){o.push(new aU({start:e,end:t,decoratorKey:i.get(e),leaves:uU(a.slice(e,t).toList(),e)}))})),tU(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new aU(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xz(e,t,n[t])}))}return e}({},n,{leaves:null!=t?tU(Array.isArray(t)?t:Qz(t)).map((function(e){return iU(e)})):null}))}};function uU(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return Jz(r,cU,oU,(function(e,r){n.push(new iU({start:e+t,end:r+t}))})),tU(n)}function cU(e,t){return e===t}var lU=sU;var fU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,TB.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),dU=fU;var pU=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function hU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gU=dU,yU=AF,vU=pU,mU=(0,TB.exports.Map)(),bU=vU();function wU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var xU={getLastCreatedEntityKey:function(){return wU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),xU.__getLastCreatedEntityKey()},create:function(e,t,n){return wU("DraftEntity.create","contentState.createEntity"),xU.__create(e,t,n)},add:function(e){return wU("DraftEntity.add","contentState.addEntity"),xU.__add(e)},get:function(e){return wU("DraftEntity.get","contentState.getEntity"),xU.__get(e)},__getAll:function(){return mU},__loadWithEntities:function(e){mU=e,bU=vU()},mergeData:function(e,t){return wU("DraftEntity.mergeData","contentState.mergeEntityData"),xU.__mergeData(e,t)},replaceData:function(e,t){return wU("DraftEntity.replaceData","contentState.replaceEntityData"),xU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return bU},__create:function(e,t,n){return xU.__add(new gU({type:e,mutability:t,data:n||{}}))},__add:function(e){return bU=vU(),mU=mU.set(bU,e),bU},__get:function(e){var t=mU.get(e);return t||("production"!==process.env.NODE_ENV?yU(!1,"Unknown DraftEntity key: %s.",e):yU(!1)),t},__mergeData:function(e,t){var n=xU.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hU(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return mU=mU.set(e,o),o},__replaceData:function(e,t){var n=xU.__get(e).set("data",t);return mU=mU.set(e,n),n}},_U=xU;var CU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,TB.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),SU=CU,OU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},kU=new RegExp("\r","g");var EU=function(e){return e.replace(kU,"")};function jU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AU(e,t,n[t])}))}return e}function AU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TU=PB,MU=HB,PU=rF,DU=mF,RU=_U,IU=SU,LU=FF,NU=Yz,BU=OU,FU=TB.exports,zU=EU,UU=FU.List,HU=FU.Record,VU=FU.Repeat,KU=FU.Map,WU=FU.OrderedMap,$U=HU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),qU=BU("draft_tree_data_support")?DU:PU,GU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return RU},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return RU.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return RU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return RU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return RU.__replaceData(e,t),this},o.addEntity=function(e){return RU.__add(e),this},o.getEntity=function(e){return RU.__get(e)},o.getAllEntities=function(){return RU.__getAll()},o.loadWithEntities=function(e){return RU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=TU.createFromArray(n),i=o.isEmpty()?new IU:IU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||RU,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=zU(e),new qU({key:LU(),text:e,type:"unstyled",characterList:UU(VU(MU.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(jU({},e,{blockMap:WU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new IU(e.selectionBefore),selectionAfter:new IU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new qU(jU({},e,{data:KU(e.data),characterList:null!=t?UU((Array.isArray(t)?t:NU(t)).map((function(e){return MU.fromJS(e)}))):void 0}))},r}($U),ZU=GU,YU=AF,XU=null;function JU(e){return"LTR"===e||"RTL"===e}function QU(e){return JU(e)||("production"!==process.env.NODE_ENV?YU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):YU(!1)),"LTR"===e?"ltr":"rtl"}function eH(e){XU=e}var tH={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:JU,getHTMLDir:QU,getHTMLDirIfDifferent:function(e,t){return JU(e)||("production"!==process.env.NODE_ENV?YU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):YU(!1)),JU(t)||("production"!==process.env.NODE_ENV?YU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):YU(!1)),e===t?null:QU(e)},setGlobalDir:eH,initGlobalDir:function(){eH("LTR")},getGlobalDir:function(){return XU||this.initGlobalDir(),XU||("production"!==process.env.NODE_ENV?YU(!1,"Global direction not set."):YU(!1)),XU}},nH=tH,rH=AF,oH="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",iH="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",aH=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+oH+iH+"]"),sH=new RegExp("["+oH+iH+"]");function uH(e){var t=aH.exec(e);return null==t?null:t[0]}function cH(e){var t=uH(e);return null==t?nH.NEUTRAL:sH.exec(t)?nH.RTL:nH.LTR}function lH(e,t){if(t=t||nH.NEUTRAL,!e.length)return t;var n=cH(e);return n===nH.NEUTRAL?t:n}function fH(e,t){return t||(t=nH.getGlobalDir()),nH.isStrong(t)||("production"!==process.env.NODE_ENV?rH(!1,"Fallback direction must be a strong direction"):rH(!1)),lH(e,t)}var dH={firstStrongChar:uH,firstStrongCharDir:cH,resolveBlockDir:lH,getDirection:fH,isDirectionLTR:function(e,t){return fH(e,t)===nH.LTR},isDirectionRTL:function(e,t){return fH(e,t)===nH.RTL}};function pH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hH,gH=dH,yH=tH,vH=AF,mH=function(){function e(e){pH(this,"_defaultDir",void 0),pH(this,"_lastDir",void 0),e?yH.isStrong(e)||("production"!==process.env.NODE_ENV?vH(!1,"Default direction must be a strong direction (LTR or RTL)"):vH(!1)):e=yH.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=gH.getDirection(e,this._lastDir),this._lastDir},e}(),bH=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},wH=mH,xH=TB.exports,_H=bH,CH=xH.OrderedMap;function SH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){OH(e,t,n[t])}))}return e}function OH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kH=lU,EH=ZU,jH={getDirectionMap:function(e,t){hH?hH.reset():hH=new wH;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return _H(hH).getDirection(e.getText())})),o=CH(n.keySeq().zip(r));return null!=t&&xH.is(t,o)?t:o}},AH=SU,TH=TB.exports,MH=TH.OrderedSet,PH=TH.Record,DH=TH.Stack,RH=TH.OrderedMap,IH=TH.List,LH=PH({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:DH(),selection:null,treeMap:null,undoStack:DH()}),NH=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(EH.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:DH(),redoStack:DH(),decorator:n||null,selection:AH.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=SH({},e,{treeMap:FH(n,e.decorator),directionMap:jH.getDirectionMap(n)});return new t(new LH(r))},t.fromJS=function(e){return new t(new LH(SH({},e,{directionMap:null!=e.directionMap?RH(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?MH(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?EH.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?DH(e.redoStack.map((function(e){return EH.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new AH(e.selection):e.selection,treeMap:null!=e.treeMap?RH(e.treeMap).map((function(e){return IH(e).map((function(e){return kH.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?DH(e.undoStack.map((function(e){return EH.fromJS(e)}))):e.undoStack,currentContent:EH.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return kH.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):FH(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return kH.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){OH(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return UH(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return UH(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return BH(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),BH(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new AH({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=jH.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),u=e.getUndoStack(),c=n;a!==s.getSelectionAfter()||zH(e,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(l=null);var d={currentContent:c,directionMap:i,undoStack:u,redoStack:DH(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=jH.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=jH.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function BH(e,t,n){return NH.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function FH(e,t){return e.getBlockMap().map((function(n){return kH.generate(e,n,t)})).toOrderedMap()}function zH(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function UH(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):MH()}var HH=NH,VH=mF,KH=gz,WH=TB.exports,$H=AF,qH=WH.OrderedMap,GH=WH.List,ZH=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},YH=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),c=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){ZH(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),ZH(l,e,(function(e){return e.merge({nextSibling:c})})),ZH(c,e,(function(e){return e.merge({prevSibling:l})})),ZH(d,e,(function(e){return e.merge({prevSibling:a})})),ZH(p,e,(function(e){return e.merge({nextSibling:a})})),ZH(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:GH(o)})})),ZH(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function XH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){JH(e,t,n[t])}))}return e}function JH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QH=PB,eV=HB,tV=rF,nV=mF,rV=Zz,oV=HH,iV=FF,aV=TB.exports,sV=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?$H(!1,"Replacing blocks is not supported."):$H(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?$H(!1,"Block cannot be moved next to itself."):$H(!1));var a=e.getBlockMap(),s=t instanceof VH,u=[t],c=a.delete(i);s&&(u=[],c=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=KH(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){u.push(t),e.delete(t.getKey())}))})));var l=c.toSeq().takeUntil((function(e){return e===n})),f=c.toSeq().skipUntil((function(e){return e===n})).skip(1),d=u.map((function(e){return[e.getKey(),e]})),p=qH();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?$H(!1,"Block cannot be moved next to itself."):$H(!1)),p=l.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?$H(!1,"Block cannot be moved next to itself."):$H(!1)),p=l.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:YH(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},uV=OU("draft_tree_data_support"),cV=uV?nV:tV,lV=aV.List,fV=aV.Repeat,dV={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=rV.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=rV.splitBlock(i,a),u=s.getSelectionAfter(),c=rV.setBlockType(s,u,"atomic"),l=eV.create({entity:t}),f={key:iV(),type:"atomic",text:n,characterList:lV(fV(l,n.length))},d={key:iV(),type:"unstyled"};uV&&(f=XH({},f,{nextSibling:d.key}),d=XH({},d,{prevSibling:f.key}));var p=[new cV(f),new cV(d)],h=QH.createFromArray(p),g=rV.replaceWithFragment(c,u,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return oV.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=sV(i,t,s,r)}else{var u=rV.removeRange(i,n,"backward"),c=u.getSelectionAfter(),l=u.getBlockForKey(c.getFocusKey());if(0===c.getStartOffset())o=sV(u,t,l,"before");else if(c.getEndOffset()===l.getLength())o=sV(u,t,l,"after");else{var f=rV.splitBlock(u,c),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=sV(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return oV.push(e,h,"move-block")}};var pV=TB.exports.List,hV=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),pV(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var gV=hV;function yV(e){return e.replace(/\//g,"-")}var vV=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(yV).join(" "):Array.prototype.map.call(arguments,yV).join(" ")},mV=s.default,bV=vV,wV=(0,TB.exports.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:mV.createElement("ul",{className:bV("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:mV.createElement("ol",{className:bV("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:mV.createElement("pre",{className:bV("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),xV={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},_V={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",u="model",c="name",l="type",f="vendor",d="version",p="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",S="Firefox",O="Google",k="Huawei",E="LG",j="Microsoft",A="Motorola",T="Opera",M="Samsung",P="Sony",D="Xiaomi",R="Zebra",I="Facebook",L=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==B(t).indexOf(B(e))},B=function(e){return e.toLowerCase()},F=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},z=function(e,t){for(var n,i,s,u,c,l,f=0;f<t.length&&!c;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!c;)if(c=d[n++].exec(e))for(s=0;s<p.length;s++)l=c[++i],typeof(u=p[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):r:this[u[0]]=l?u[1].call(this,l,u[2]):r:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):r):this[u]=l||r;f+=2}},U=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(N(t[n][o],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,d],[/opios[\/ ]+([\w\.]+)/i],[d,[c,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[d,[c,T]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[c,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[d,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure Browser"],d],[/\bfocus\/([\w\.]+)/i],[d,[c,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[d,[c,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[c,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[c,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[d,[c,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 Browser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,I],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[c,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,"Chrome WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[c,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,d],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[d,[c,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[d,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[d,U,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[c,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,B]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,B]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,M],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,M],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,x],[l,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,k],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[u,[f,k],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,D],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,D],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,A],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,A],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,E],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,E],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[u,[f,O],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,O],[l,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,P],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,P],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,_],[l,g]],[/(nexus 9)/i],[u,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,"Sharp"],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[l,y]],[/(surface duo)/i],[u,[f,j],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[u,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[u,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[l,y]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[l,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,u,[l,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,j],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,R],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,R],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[l,h]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[u,[f,P],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,j],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,M],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,E],[l,v]],[/(apple) ?tv/i],[f,[u,"Apple TV"],[l,v]],[/crkey/i],[[u,"Chromecast"],[f,O],[l,v]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,F],[u,F],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,u,[l,m]],[/droid.+; (glass) \d/i],[u,[f,O],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,R],[l,m]],[/(quest( 2)?)/i],[u,[f,I],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[d,U,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[d,U,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[d,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,d],[/\(bb(10);/i],[d,[c,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[c,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[c,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,d],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,d]]},K=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof K))return new K(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(V,t):V;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,o,u.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,o,u.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,o,u.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?F(e,255):e,this},this.setUA(o),this};K.VERSION="0.7.31",K.BROWSER=L([c,d,"major"]),K.CPU=L([p]),K.DEVICE=L([u,f,l,h,g,v,y,m,b]),K.ENGINE=K.OS=L([c,d]),e.exports&&(t=e.exports=K),t.UAParser=K;var W=typeof n!==i&&(n.jQuery||n.Zepto);if(W&&!W.ua){var $=new K;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:ot)}(_V,_V.exports);var CV="Unknown",SV={"Mac OS":"Mac OS X"};var OV,kV=(new(0,_V.exports)).getResult(),EV=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(kV.browser.version),jV={browserArchitecture:kV.cpu.architecture||CV,browserFullVersion:kV.browser.version||CV,browserMinorVersion:EV.minor||CV,browserName:kV.browser.name||CV,browserVersion:kV.browser.major||CV,deviceName:kV.device.model||CV,engineName:kV.engine.name||CV,engineVersion:kV.engine.version||CV,platformArchitecture:kV.cpu.architecture||CV,platformName:(OV=kV.os.name,SV[OV]||OV||CV),platformVersion:kV.os.version||CV,platformFullVersion:kV.os.version||CV},AV=AF,TV=/\./,MV=/\|\|/,PV=/\s+\-\s+/,DV=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,RV=/^(\d*)(.*)/;function IV(e,t){var n=e.split(MV);return n.length>1?n.some((function(e){return $V.contains(e,t)})):function(e,t){var n=e.split(PV);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?AV(!1,'the "-" operator expects exactly 2 operands'):AV(!1)),1===n.length)return LV(n[0],t);var r=n[0],o=n[1];return UV(r)&&UV(o)||("production"!==process.env.NODE_ENV?AV(!1,'operands to the "-" operator must be simple (no modifiers)'):AV(!1)),LV(">="+r,t)&&LV("<="+o,t)}(e=n[0].trim(),t)}function LV(e,t){if(""===(e=e.trim()))return!0;var n=t.split(TV),r=FV(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return NV(n,i);case"<=":return function(e,t){var n=WV(e,t);return-1===n||0===n}(n,i);case">=":return BV(n,i);case">":return function(e,t){return 1===WV(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);zV(i)&&(r[o]=i+1+"");return BV(e,n)&&NV(e,r)}(n,i);default:return function(e,t){return 0===WV(e,t)}(n,i)}}function NV(e,t){return-1===WV(e,t)}function BV(e,t){var n=WV(e,t);return 1===n||0===n}function FV(e){var t=e.split(TV),n=t[0].match(DV);return n||("production"!==process.env.NODE_ENV?AV(!1,"expected regex to match but it did not"):AV(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function zV(e){return!isNaN(e)&&isFinite(e)}function UV(e){return!FV(e).modifier}function HV(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function VV(e,t){var n=e.match(RV)[1],r=t.match(RV)[1],o=parseInt(n,10),i=parseInt(r,10);return zV(o)&&zV(i)&&o!==i?KV(o,i):KV(e,t)}function KV(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?AV(!1,'"a" and "b" must be of the same type'):AV(!1)),e>t?1:e<t?-1:0}function WV(e,t){for(var n=function(e,t){HV(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return HV(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=VV(r[i],o[i]);if(a)return a}return 0}var $V={contains:function(e,t){return IV(e.trim(),t.trim())}},qV=$V,GV=Object.prototype.hasOwnProperty;var ZV=function(e,t,n){if(!e)return null;var r={};for(var o in e)GV.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var YV=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},XV=jV,JV=qV;function QV(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,JV.contains(o,t))}function eK(e){return"Windows"===XV.platformName?e.replace(/^\s*NT/,""):e}var tK=ZV({isBrowser:function(e){return QV(XV.browserName,XV.browserFullVersion,e)},isBrowserArchitecture:function(e){return QV(XV.browserArchitecture,null,e)},isDevice:function(e){return QV(XV.deviceName,null,e)},isEngine:function(e){return QV(XV.engineName,XV.engineVersion,e)},isPlatform:function(e){return QV(XV.platformName,XV.platformFullVersion,e,eK)},isPlatformArchitecture:function(e){return QV(XV.platformArchitecture,null,e)}},YV);var nK=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var rK=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},oK=rK;var iK=function e(t){if(oK(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},aK=nK,sK=iK;var uK=function(e){for(var t=e;t&&t!==aK(e).documentElement;){var n=sK(t);if(null!=n)return n;t=t.parentNode}return null};var cK=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function lK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fK=tK,dK=uK,pK=cK,hK=AF,gK=bH,yK=TB.exports.Map,vK={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},mK=fK.isBrowser("IE <= 11"),bK=function(){function e(e){var t=this;lK(this,"observer",void 0),lK(this,"container",void 0),lK(this,"mutations",void 0),lK(this,"onCharData",void 0),this.container=e,this.mutations=yK();var n=pK(e);n.MutationObserver&&!mK?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?hK(!1,"Expected target to be an instance of Node"):hK(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,vK):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=yK(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return mK?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=gK(dK(e.target));this.mutations=this.mutations.set(n,t)}},e}(),wK={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},xK={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},_K={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var CK=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},SK=AF,OK=CK;var kK=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?SK(!1,"Missing editorNode"):SK(!1)),OK(t.firstChild)||("production"!==process.env.NODE_ENV?SK(!1,"editorNode.firstChild is not an HTMLElement"):SK(!1)),t.firstChild},EK=wK,jK=bH;var AK=function(e,t,n,r,o){var i=jK(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=EK.decode(t),s=a.blockKey,u=e.getBlockTree(s),c=u&&u.getIn([a.decoratorKey,"leaves",a.leafKey]),l=EK.decode(r),f=l.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!c||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=c.get("start"),g=p.get("start"),y=c?h+n:null,v=p?g+o:null,m=i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v;if(m)return i;var b=!1;if(s===f){var w=c.get("end"),x=p.get("end");b=g===h&&x===w?o<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},TK=uK,MK=iK,PK=AK,DK=AF,RK=rK,IK=bH;function LK(e,t,n){var r=t,o=TK(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?DK(!1,"Unknown node in selection range."):DK(!1)),e===r)&&(r=r.firstChild,RK(r)||("production"!==process.env.NODE_ENV?DK(!1,"Invalid DraftEditorContents node."):DK(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?DK(!1,"Invalid DraftEditorContents structure."):DK(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(RK(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||MK(e.firstChild));)e=e.firstChild;return e}(r);i=IK(MK(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],u=null,c=null;if(MK(s)){var l=function(e){for(;e.lastChild&&(RK(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||MK(e.lastChild));)e=e.lastChild;return e}(s);u=IK(MK(l)),c=NK(l)}else u=IK(o),c=NK(s);return{key:u,offset:c}}function NK(e){var t=e.textContent;return"\n"===t?0:t.length}var BK=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:PK(e,IK(TK(n)),r,IK(TK(o)),i),needsRecovery:!1};var u=null,c=null,l=!0;return a?(u={key:IK(TK(n)),offset:r},c=LK(t,o,i)):s?(c={key:IK(TK(o)),offset:i},u=LK(t,n,r)):(u=LK(t,n,r),c=LK(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:PK(e,u.key,u.offset,c.key,c.offset),needsRecovery:l}},FK=BK;var zK=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:FK(e,t,r,o,i,a)},UK=_K,HK=HH,VK=kK,KK=zK;var WK=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();UK.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=KK(n,VK(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?HK.forceSelection(n,o):HK.acceptSelection(n,o),e.update(n))}};var $K={notEmptyKey:function(e){return null!=e&&""!=e}},qK=$K.notEmptyKey;function GK(e,t){return qK(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var ZK=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:GK(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),GK(e.getEntityMap(),n)},YK=bK,XK=Zz,JK=wK,QK=HH,eW=xK,tW=WK,nW=kK,rW=zK,oW=ZK,iW=bH,aW=tK.isBrowser("IE"),sW=!1,uW=!1,cW=null;var lW,fW,dW={onCompositionStart:function(e){uW=!0,function(e){cW||(cW=new YK(nW(e))).start()}(e)},onCompositionEnd:function(e){sW=!1,uW=!1,setTimeout((function(){sW||dW.resolveComposition(e)}),20)},onSelect:tW,onKeyDown:function(e,t){if(!uW)return dW.resolveComposition(e),void e._onKeyDown(t);t.which!==eW.RIGHT&&t.which!==eW.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===eW.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!uW){var t=iW(cW).stopAndFlushMutations();cW=null,sW=!0;var n=QK.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=JK.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,u=n.getBlockTree(i).getIn([a,"leaves",s]),c=u.start,l=u.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:c,focusOffset:l,isBackward:!1}),d=oW(r,f),p=r.getBlockForKey(i).getInlineStyleAt(c);r=XK.replaceText(r,f,e,p,d),n=QK.set(n,{currentContent:r})}));var o=rW(n,nW(e)).selectionState;e.restoreEditorDOM();var i=aW?QK.forceSelection(n,o):QK.acceptSelection(n,o);e.update(QK.push(i,r,"insert-characters"))}else e.update(n)}}},pW=dW;function hW(){if(fW)return lW;fW=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}var n=wK,r=s.default,o=dH,i=tH,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}return s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var e=this.props,a=e.block,s=e.children,u=e.contentState,c=e.decorator,l=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=a.getKey(),g=d.get("leaves"),y=c.getComponentForKey(l),v=c.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=i.getHTMLDirIfDifferent(o.getDirection(b),f);return r.createElement(y,t({},v,{contentState:u,decoratedText:b,dir:w,key:m,entityKey:a.getEntityAt(d.get("start")),offsetKey:m}),s)},u}(r.Component);return lW=a}function gW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vW=s.default,mW=AF,bW=rK,wW=tK.isBrowser("IE <= 11");var xW=function(e){var t,n;function r(t){var n;return yW(gW(n=e.call(this,t)||this),"_forceFlag",void 0),yW(gW(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;bW(t)||("production"!==process.env.NODE_ENV?mW(!1,"node is not an Element"):mW(!1));var r=t;return n?!function(e){return wW?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},wW?vW.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):vW.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return wW?vW.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):vW.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):vW.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(vW.Component),_W=xW,CW=rK;var SW=function(e){return!(!e||!e.ownerDocument)&&(CW(e)&&"BR"===e.nodeName)};var OW=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},kW=OW;var EW=function(e){return kW(e)&&3==e.nodeType},jW=EW;var AW=function e(t,n){return!(!t||!n)&&(t===n||!jW(t)&&(jW(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var TW=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},MW=_K,PW=AW,DW=TW,RW=nK,IW=AF,LW=rK,NW=tK.isBrowser("IE");function BW(e,t){if(!e)return"[empty]";var n=FW(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(LW(n)||("production"!==process.env.NODE_ENV?IW(!1,"Node must be an Element if it is not a text node."):IW(!1)),n.outerHTML)}function FW(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return RW(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(FW(i[a],t));return o}function zW(e,t){for(var n=e,r=n;n;){if(LW(n)&&r.hasAttribute("contenteditable"))return BW(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function UW(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function HW(e,t,n,r){var o=DW();if(e.extend&&null!=t&&PW(o,t)){n>UW(t)&&MW.logSelectionStateFailure({anonymizedDom:zW(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw MW.logSelectionStateFailure({anonymizedDom:zW(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function VW(e,t,n,r){var o=RW(t).createRange();if(n>UW(t)&&MW.logSelectionStateFailure({anonymizedDom:zW(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),NW)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var KW=function(e,t,n,r,o){var i=RW(t);if(PW(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),c=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=u;s=c,u=l,c=d,l=p,f=!1}var h=s===n&&r<=u&&o>=u,g=c===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),VW(a,t,u-r,e),void HW(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),VW(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),VW(a,t,u-r,e),HW(a,y,v,e)}}else h&&(a.removeAllRanges(),VW(a,t,u-r,e)),g&&HW(a,t,l-r,e)}},WW=Ff;function $W(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var GW,ZW,YW=_W,XW=s.default,JW=AF,QW=SW,e$=KW,t$=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return qW($W(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?JW(!1,"Missing node"):JW(!1));var u,c=s.firstChild;c||("production"!==process.env.NODE_ENV?JW(!1,"Missing child"):JW(!1)),c.nodeType===Node.TEXT_NODE?u=c:QW(c)?u=s:(u=c.firstChild)||("production"!==process.env.NODE_ENV?JW(!1,"Missing targetNode"):JW(!1)),e$(e,u,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?JW(!1,"Missing leafNode"):JW(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,u=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),WW(e,r,n)}),{});if(i){var c=i(s,t);u=WW(u,c)}return XW.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:u},XW.createElement(YW,null,n))},r}(XW.Component),n$=t$;function r$(){if(ZW)return GW;ZW=1;var e=hW(),t=n$,n=wK,r=TB.exports,o=s.default,i=vV;r.List;var a=function(r){var a,s;function u(){return r.apply(this,arguments)||this}return s=r,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var r=this.props,a=r.block,s=r.contentState,u=r.customStyleFn,c=r.customStyleMap,l=r.decorator,f=r.direction,d=r.forceSelection,p=r.hasSelection,h=r.selection,g=r.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(r,i){var g=r.get("decoratorKey"),b=r.get("leaves"),w=b.size-1,x=b.map((function(e,r){var s=n.encode(y,i,r),l=e.get("start"),f=e.get("end");return o.createElement(t,{key:s,offsetKey:s,block:a,start:l,selection:p?h:null,forceSelection:d,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:c,customStyleFn:u,isLast:g===m&&r===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:r,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":n.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},u}(o.Component);return GW=a}function o$(e,t){return!!t&&(e===t.documentElement||e===t.body)}var i$={getTop:function(e){var t=e.ownerDocument;return o$(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;o$(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return o$(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;o$(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},a$=/-(.)/g;var s$=function(e){return e.replace(a$,(function(e,t){return t.toUpperCase()}))},u$=/([A-Z])/g;var c$=function(e){return e.replace(u$,"-$1").toLowerCase()},l$=s$,f$=c$;function d$(e){return null==e?e:String(e)}var p$=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return d$(n.getPropertyValue(f$(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return d$(n.getPropertyValue(f$(t)));if("display"===t)return"none"}return e.currentStyle?d$("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[l$(t)]):d$(e.style&&e.style[l$(t)])};function h$(e,t){var n=g$.get(e,t);return"auto"===n||"scroll"===n}var g$={get:p$,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(h$(e,"overflow")||h$(e,"overflowY")||h$(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},y$=g$,v$=AW;var m$=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!v$(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var b$=function(e){var t=m$(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},w$="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var x$=function(e){return(e=e||document).scrollingElement?e.scrollingElement:w$||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},_$=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var C$=function(e){var t=x$(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=_$(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function S$(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function O$(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function k$(){return{width:window.innerWidth||S$(),height:window.innerHeight||O$()}}k$.withoutScrollbars=function(){return{width:S$(),height:O$()}};var E$,j$,A$,T$,M$=k$;function P$(){if(j$)return E$;j$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=r$(),a=wK,u=s.default,c=i$,l=y$,f=b$,d=C$,p=M$,h=AF,g=CK;TB.exports.List;var y=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},m=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},u=o(e);return u&&(s.className=u),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var s,w;function x(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",u.createRef()),t}w=e,(s=x).prototype=Object.create(w.prototype),s.prototype.constructor=s,s.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return i||a},_.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=d(o);if(o===window){var a=f(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},_.render=function(){var e=this,n=this.props,o=n.block,s=n.blockRenderMap,c=n.blockRendererFn,l=n.blockStyleFn,f=n.contentState,d=n.decorator,p=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,_=n.direction,C=n.forceSelection,S=n.selection,O=n.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=m(i,c),g=d.CustomComponent||x,y=v(i,s),w=y.Element,_=y.wrapperTemplate,C=b(i,p,o,l,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(u.createElement(w,C,u.createElement(g,S))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var c,l=n.reverse()[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(_,w,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=m(o,c),T=A.CustomComponent,M=null!=T?u.createElement(T,t({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):u.createElement(i,{block:o,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:d,direction:_,forceSelection:C,hasSelection:y(S,E),selection:S,tree:O});if(o.getParentKey())return M;var P=v(o,s).Element,D=b(o,p,j,l,A,this.wrapperRef);return u.createElement(P,D,M)},x}(u.Component);return E$=w}var D$=Ff;function R$(){return R$=D$||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R$.apply(this,arguments)}function I$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function L$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N$,B$,F$,z$,U$=n$,H$=wK,V$=s.default,K$=i$,W$=y$,$$=dH,q$=tH,G$=vV,Z$=b$,Y$=C$,X$=M$,J$=AF,Q$=CK,eq=bH,tq=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},nq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return L$(I$(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||tq(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=W$.getScrollParent(n),i=Y$(o);if(o===window){var a=Z$(n);(r=a.y+a.height-X$().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{Q$(n)||("production"!==process.env.NODE_ENV?J$(!1,"blockNode is not an HTMLElement"):J$(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&K$.setTop(o,K$.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=tq(this.props.selection,n);return this.props.tree.map((function(a,s){var u=a.get("leaves");if(0===u.size)return null;var c=u.size-1,l=u.map((function(a,u){var l=H$.encode(n,s,u),f=a.get("start"),d=a.get("end");return V$.createElement(U$,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&u===c})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var d=eq(e.props.decorator),p=d.getComponentForKey(f);if(!p)return l;var h=d.getPropsForKey(f),g=H$.encode(n,s,0),y=u.first().get("start"),v=u.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=q$.getHTMLDirIfDifferent($$.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return V$.createElement(p,R$({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=G$({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return V$.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(V$.Component),rq=nq;var oq=OU("draft_tree_data_support")?function(){if(T$)return A$;T$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}var n=P$(),r=wK,o=s.default,i=bH,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s;var c=u.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),c=n.getDecorator();return o!==i||a!==s||u!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,a=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,c=e.customStyleMap,l=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=i(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:a,blockRendererFn:s,blockStyleFn:u,contentState:h,customStyleFn:l,customStyleMap:c,decorator:v,editorKey:d,editorState:f,forceSelection:y,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},C=(a.get(w.getType())||a.get("unstyled")).wrapper;b.push({block:o.createElement(n,t({key:x},_)),wrapperTemplate:C,key:x,offsetKey:r.encode(x,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=o.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return o.createElement("div",{"data-contents":"true"},O)},u}(o.Component);return A$=a}():function(){if(z$)return F$;z$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=rq,i=wK,a=s.default,u=vV,c=(B$||(B$=1,N$=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),N$),l=bH,f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var r,s;function u(){return e.apply(this,arguments)||this}s=e,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var d=u.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),c=n.getDecorator();return o!==i||a!==s||u!==c||n.mustForceSelection()},d.render=function(){for(var e=this.props,r=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),M=s(j),P=void 0,D=void 0,R=void 0;M&&(P=M.component,D=M.props,R=M.editable);var I=v||_.get(A),L=i.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:u,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:L,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=r.get(T)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,U=j.getDepth(),H="";if(u&&(H=u(j)),"li"===z)H=c(H,f(T,U,k!==F||null===O||U>O,I));var V=P||o,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":L,key:A};void 0!==R&&(K=n({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var W=a.createElement(z,K,a.createElement(V,t({},N,{key:A})));S.push({block:W,wrapperTemplate:F,key:A,offsetKey:L}),O=F?j.getDepth():null,k=F}for(var $=[],q=0;q<S.length;){var G=S[q];if(G.wrapperTemplate){var Z=[];do{Z.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===G.wrapperTemplate);var Y=a.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);$.push(Y)}else $.push(G.block),q++}return a.createElement("div",{"data-contents":"true"},$)},u}(a.Component);return F$=d}(),iq={isImage:function(e){return"image"===aq(e)[0]},isJpeg:function(e){var t=aq(e);return iq.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function aq(e){return e.split("/")}var sq=iq,uq=AF;var cq=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?uq(!1,"toArray: Array-like object expected"):uq(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?uq(!1,"toArray: Object needs a length property"):uq(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?uq(!1,"toArray: Object should have keys for indices"):uq(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?uq(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):uq(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function lq(e){return function(){return e}}var fq=function(){};fq.thatReturns=lq,fq.thatReturnsFalse=lq(!1),fq.thatReturnsTrue=lq(!0),fq.thatReturnsNull=lq(null),fq.thatReturnsThis=function(){return this},fq.thatReturnsArgument=function(e){return e};var dq=fq,pq=sq,hq=cq,gq=dq,yq=new RegExp("\r\n","g"),vq={"text/rtf":1,"text/html":1};function mq(e){if("file"==e.kind)return e.getAsFile()}var bq=function(){function e(e){this.data=e,this.types=e.types?hq(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return vq[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(yq,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!pq.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(mq).filter(gq.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),wq=bq,xq=AF,_q=/\.textClipping$/,Cq={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Sq=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!ot.FileReader||e.type&&!(e.type in Cq))return void t("");if(""===e.type){var n="";return _q.test(e.name)&&(n=e.name.replace(_q,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?xq(!1,'We should be calling "FileReader.readAsText" which returns a string'):xq(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var Oq=function(e){return"handled"===e||!0===e},kq=wq,Eq=Zz,jq=HH,Aq=uK,Tq=nK,Mq=Sq,Pq=AK,Dq=cK,Rq=Oq,Iq=bH;function Lq(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Dq(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Nq(e,t,n){var r=Eq.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return jq.push(e,r,"insert-fragment")}var Bq={onDragEnd:function(e){e.exitCurrentMode(),Lq(e)},onDrop:function(e,t){var n=new kq(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=Tq(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Iq(n),r=Iq(r);var a=Iq(Aq(n));return Pq(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Rq(e.props.handleDroppedFiles(o,i)))return;Mq(i,(function(t){t&&e.update(Nq(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Rq(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=Eq.moveText(e.getCurrentContent(),e.getSelection(),t);return jq.push(e,n,"insert-fragment")}(r,o)):e.update(Nq(r,o,n.getText()))),Lq(e)}}}};var Fq=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,u={},c=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?ot:self);var zq=ot.setImmediate,Uq=Zz,Hq=HH,Vq=ZK,Kq=Oq,Wq=Fq,$q=bH,qq=zq,Gq=tK.isBrowser("Firefox");function Zq(e,t,n,r,o){var i=Uq.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return Hq.push(e,i,"insert-characters",o)}var Yq=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&Kq(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(Zq(n,r,n.getCurrentInlineStyle(),Vq(n.getCurrentContent(),n.getSelection()),!0));var s,u=Zq(n,r,n.getCurrentInlineStyle(),Vq(n.getCurrentContent(),n.getSelection()),!1),c=!1;if(c||(c=Wq(e._latestCommittedEditorState)),!c){var l=n.getBlockTree(a),f=u.getBlockTree(a);c=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),u=s+(s>=i?r.length:0),c=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==c||u!==l||null!=f&&l-c!=s-o}))}if(c||(s=r,c=Gq&&("'"==s||"/"==s)),c||(c=$q(u.getDirectionMap()).get(a)!==$q(n.getDirectionMap()).get(a)),c)return t.preventDefault(),u=Hq.set(u,{forceSelection:!0}),void e.update(u);u=Hq.set(u,{nativelyRenderedContent:u.getCurrentContent()}),e._pendingStateFromBeforeInput=u,qq((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},Xq=HH,Jq=AW,Qq=TW;var eG=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&Qq(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&Jq(o,r.anchorNode)&&Jq(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(Xq.acceptSelection(i,s))}},tG=HH;var nG=function(e,t){e.setMode("composite"),e.update(tG.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},rG=XF;var oG=function(e){var t=e.getSelection();return t.isCollapsed()?null:rG(e.getCurrentContent(),t)},iG=oG;var aG=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(iG(e._latestEditorState))};var sG=Zz,uG=HH,cG=y$,lG=oG,fG=C$,dG=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var pG=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(dG(i)){var a=i;n=fG(cG.getScrollParent(a))}var s=lG(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=sG.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return uG.push(e,t,"remove-range")}(r))}),0)}};var hG=function(e,t){e.setMode("drag"),t.preventDefault()};var gG=function(e){e._internalDrag=!0,e.setMode("drag")},yG=HH,vG=tK;var mG=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),vG.isBrowser("Chrome < 60.0.3081.0")?e.update(yG.forceSelection(n,o)):e.update(yG.acceptSelection(n,o))}},bG=AF,wG=/[\uD800-\uDFFF]/;function xG(e){return 55296<=e&&e<=57343}function _G(e){return wG.test(e)}function CG(e,t){return 1+xG(e.charCodeAt(t))}function SG(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!_G(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=CG(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=CG(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=CG(e,i);return e.substring(o,i)}var OG={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=CG(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:CG,hasSurrogateUnit:_G,isCodeUnitInSurrogateRange:xG,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?bG(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):bG(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!_G(e))return e.length;for(var t=0,n=0;n<e.length;n+=CG(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return SG(e,t=t<n?t:n,r)},substr:SG},kG=OG,EG=dq;function jG(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var AG="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];jG.apply(void 0,[t].concat(r))}}:EG,TG=AG,MG=TG;var PG=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&MG(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,s=r.getBlockForKey(u).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},DG=Zz,RG=OU("draft_tree_data_support");var IG=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),u=o.getBlockForKey(a);if(RG&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(RG)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var c=o.getBlockForKey(u.nextSibling);if(!c||0===c.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return DG.removeRange(o,i,n)},LG=HH,NG=kG,BG=PG,FG=IG;var zG=function(e){var t=FG(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return BG(e,i?NG.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return LG.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},UG=Zz,HG=wK,VG=HH,KG=$K.notEmptyKey,WG=uK,$G=zG,qG=bH,GG=tK.isEngine("Gecko");var ZG=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var u=r.textContent,c=e._latestEditorState,l=qG(WG(r)),f=HG.decode(l),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=c.getBlockTree(d).getIn([p,"leaves",h]),y=g.start,v=g.end,m=c.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(y,v);if(u.endsWith("\n\n")&&(u=u.slice(0,-1)),u!==w){var x,_,C,S,O=c.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=KG(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=UG.replaceText(m,k,u,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(GG)x=n.anchorOffset,_=n.focusOffset,S=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=S;else{var P=u.length-w.length;C=O.getStartOffset(),S=O.getEndOffset(),x=o?S+P:C,_=S+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:_})});e.update(VG.push(c,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?$G(t):t}(R,c);if(I!==c)return e.restoreEditorDOM(),void e.update(I)}}}},YG=xK;var XG=function(e){return e.which===YG.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},JG=tK.isPlatform("Mac OS X"),QG={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return JG&&e.altKey},usesMacOSHeuristics:function(){return JG},hasCommandModifier:function(e){return JG?!!e.metaKey&&!e.altKey:QG.isCtrlKeyCommand(e)},isSoftNewlineEvent:XG},eZ=QG,tZ=Zz,nZ=HH,rZ=XF,oZ=bH,iZ=null,aZ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=oZ(r),iZ=rZ(t,r);var s=tZ.removeRange(t,r,"forward");return s===t?e:nZ.push(e,s,"remove-range")},paste:function(e){if(!iZ)return e;var t=tZ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),iZ);return nZ.push(e,t,"insert-fragment")}},sZ=AF;var uZ=tK.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?sZ(!1,"Found an unexpected detached subtree when getting range client rects."):sZ(!1)}:function(e){return Array.from(e.getClientRects())},cZ=uZ,lZ=kG,fZ=nK,dZ=cZ,pZ=AF;function hZ(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function gZ(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var yZ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?pZ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):pZ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=fZ(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?pZ(!1,"Missing document.body"):pZ(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);hZ(dZ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?pZ(!1,"Found unexpected detached subtree when traversing."):pZ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,u=a;u>=0;u--)if(!(null!=s&&u>0&&lZ.isSurrogatePair(s,u-1))){if(e.setStart(i,u),!hZ(dZ(e),n))break;r=i,o=u}if(-1===u||0===i.childNodes.length)break;a=gZ(i=i.childNodes[u])}return e.setStart(r,o),e},vZ=HH,mZ=yZ,bZ=BK,wZ=PG,xZ=IG;var _Z=function(e,t){var n=xZ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return wZ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=mZ(r),bZ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:vZ.push(e,n,"remove-range")},CZ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),SZ=new RegExp("^(?:"+CZ+")*(?:['‘’]|(?!"+CZ+").)*(?:(?!"+CZ+").)"),OZ=new RegExp("(?:(?!"+CZ+").)(?:['‘’]|(?!"+CZ+").)*(?:"+CZ+")*$");function kZ(e,t){var n=t?OZ.exec(e):SZ.exec(e);return n?n[0]:e}var EZ={getBackward:function(e){return kZ(e,!0)},getForward:function(e){return kZ(e,!1)}},jZ=EZ,AZ=HH,TZ=PG,MZ=IG;var PZ=TG;var DZ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&PZ(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},RZ=EZ,IZ=HH,LZ=DZ,NZ=IG;var BZ=Zz,FZ=HH;var zZ=HH;var UZ=HH;var HZ=HH,VZ=kG,KZ=DZ,WZ=IG;var $Z=Zz,qZ=HH,GZ=XF;var ZZ=HH;var YZ=Zz,XZ=HH,JZ=xK,QZ=aZ,eY=tK,tY=Oq,nY=_Z,rY=function(e){var t=MZ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return TZ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=jZ.getBackward(o);return TZ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:AZ.push(e,t,"remove-range")},oY=function(e){var t=NZ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=RZ.getForward(o);return LZ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:IZ.push(e,t,"remove-range")},iY=function(e){var t=BZ.splitBlock(e.getCurrentContent(),e.getSelection());return FZ.push(e,t,"split-block")},aY=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return zZ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},sY=function(e){var t=e.getSelection(),n=t.getStartKey();return UZ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},uY=zG,cY=function(e){var t=WZ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return KZ(e,i?VZ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return HZ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},lY=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var u=GZ(a,r),c=$Z.removeRange(a,r,"backward"),l=c.getSelectionAfter(),f=l.getAnchorOffset()-1,d=l.merge({anchorOffset:f,focusOffset:f}),p=$Z.replaceWithFragment(c,d,u),h=qZ.push(e,p,"insert-fragment");return qZ.acceptSelection(h,o)},fY=function(e,t,n){var r=ZZ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(ZZ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(ZZ.set(r,{nativelyRenderedContent:o}))}},dY=eZ.isOptionKeyCommand,pY=eY.isBrowser("Chrome");var hY=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case JZ.RETURN:if(t.preventDefault(),e.props.handleReturn&&tY(e.props.handleReturn(t,r)))return;break;case JZ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case JZ.TAB:if(o("onTab"))return;break;case JZ.UP:if(o("onUpArrow"))return;break;case JZ.RIGHT:if(o("onRightArrow"))return;break;case JZ.DOWN:if(o("onDownArrow"))return;break;case JZ.LEFT:if(o("onLeftArrow"))return;break;case JZ.SPACE:pY&&dY(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!tY(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return XZ.redo(t);case"delete":return cY(t);case"delete-word":return oY(t);case"backspace":return uY(t);case"backspace-word":return rY(t);case"backspace-to-start-of-line":return nY(t,n);case"split-block":return iY(t);case"transpose-characters":return lY(t);case"move-selection-to-start-of-block":return sY(t);case"move-selection-to-end-of-block":return aY(t);case"secondary-cut":return QZ.cut(t);case"secondary-paste":return QZ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else fY(t,r,e.update);else if(n===JZ.SPACE&&pY&&dY(t)){var s=YZ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(XZ.push(r,s,"insert-characters"))}};var gY=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),yY=gY,vY=AF,mY=tK.isBrowser("IE <= 9");var bY=function(e){var t,n=null;return!mY&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?vY(!1,"Missing doc.documentElement"):vY(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},wY=rK;var xY=function(e){return!(!e||!e.ownerDocument)&&(wY(e)&&"A"===e.nodeName)},_Y=rK;var CY,SY=function(e){return!(!e||!e.ownerDocument)&&(_Y(e)&&"IMG"===e.nodeName)};function OY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kY(e,t,n[t])}))}return e}function kY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EY=HB,jY=rF,AY=mF,TY=wV,MY=_U,PY=yY,DY=vV,RY=FF,IY=bY,LY=OU,NY=TB.exports,BY=NY.List,FY=NY.Map,zY=NY.OrderedSet,UY=xY,HY=SW,VY=CK,KY=SY,WY=LY("draft_tree_data_support"),$Y=new RegExp("\r","g"),qY=new RegExp("\n","g"),GY=new RegExp("^\n","g"),ZY=new RegExp("&nbsp;","g"),YY=new RegExp("&#13;?","g"),XY=new RegExp("&#8203;?","g"),JY=["bold","bolder","500","600","700","800","900"],QY=["light","lighter","normal","100","200","300","400"],eX=["className","href","rel","target","title"],tX=["alt","className","height","src","width"],nX=(kY(CY={},DY("public/DraftStyleDefault/depth0"),0),kY(CY,DY("public/DraftStyleDefault/depth1"),1),kY(CY,DY("public/DraftStyleDefault/depth2"),2),kY(CY,DY("public/DraftStyleDefault/depth3"),3),kY(CY,DY("public/DraftStyleDefault/depth4"),4),CY),rX=FY({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),oX=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),FY(t)},iX=function(e){if(VY(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},aX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(nX).some((function(n){e.classList.contains(n)&&(t=nX[n])})),t},sX=function(e){if(!UY(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new PY(t.href);return!0}catch(e){return!1}},uX=function(e){if(!KY(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},cX=function(e,t){if(!VY(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){JY.indexOf(r)>=0?e.add("BOLD"):QY.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},lX=function(e){return"ul"===e||"ol"===e},fX=function(){function e(e,t){kY(this,"characterList",BY()),kY(this,"currentBlockType","unstyled"),kY(this,"currentDepth",0),kY(this,"currentEntity",null),kY(this,"currentText",""),kY(this,"wrapper",null),kY(this,"blockConfigs",[]),kY(this,"contentBlocks",[]),kY(this,"entityMap",MY),kY(this,"blockTypeMap",void 0),kY(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=BY(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=MY,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],zY())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(WY?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||RY(),n=OY({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:BY(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=BY(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||lX(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;lX(i)&&(this.wrapper=i,lX(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(i);if(void 0===u)if("#text"!==i)if("br"!==i)if(uX(o))this._addImgNode(o,t);else if(sX(o))this._addAnchorNode(o,n,t);else{var c=t;rX.has(i)&&(c=c.add(rX.get(i))),c=cX(o,c);var l=iX(o);null!=l&&(c=c.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(i,this.wrapper)||u[0]||"unstyled"),!WY&&VY(o)&&("unordered-list-item"===u||"ordered-list-item"===u)){var p=o;this.currentDepth=aX(p,this.currentDepth)}var h=RY(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:u})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=EY.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=BY()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(GY,"")).replace(qY," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){HY(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(KY(e)){var n=e,r={};tX.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),LY("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(UY(e)){var r=e,o={};eX.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new PY(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=BY(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new AY(OY({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return BY(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new jY(OY({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=BY(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),dX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:IY,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:TY,r=t(e=e.trim().replace($Y,"").replace(ZY," ").replace(YY,"").replace(XY,""));if(!r)return null;var o=oX(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new fX(o,i).addDOMNode(r).getContentBlocks()};function pX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hX=rF,gX=mF,yX=dX,vX=FF,mX=bY,bX=OU,wX=TB.exports,xX=EU,_X=wX.List,CX=wX.Repeat,SX=bX("draft_tree_data_support"),OX=SX?gX:hX,kX={processHTML:function(e,t){return yX(e,mX,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=xX(r);var i=vX(),a={key:i,type:n,text:r,characterList:_X(CX(t,r.length))};if(SX&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pX(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new OX(a)),e}),[])}};var EX=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},jX=Zz,AX=HH,TX=EX,MX=bH,PX={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return PX.toggleInlineStyle(e,"BOLD");case"italic":return PX.toggleInlineStyle(e,"ITALIC");case"underline":return PX.toggleInlineStyle(e,"UNDERLINE");case"code":return PX.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return PX.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return PX.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=jX.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=AX.push(e,t,"insert-characters");return AX.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return AX.push(e,a,"remove-range")}var s=PX.tryToRemoveBlockStyle(e);return s?AX.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=jX.removeRange(n,a,"forward");return s!==n?AX.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var u=a.getDepth();if(!e.shiftKey&&u===n)return t;var c=TX(i,r,e.shiftKey?-1:1,n);return AX.push(t,c,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=MX(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var u=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(u)return e;var c=i.getBlockForKey(r).getType()===t?"unstyled":t;return AX.push(e,jX.setBlockType(i,a,c),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?PX.toggleBlockType(e,"code-block"):PX.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return AX.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?jX.removeInlineStyle(i,n,t):jX.applyInlineStyle(i,n,t),AX.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=jX.applyEntity(e.getCurrentContent(),t,n);return AX.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return jX.setBlockType(o,t,"unstyled")}return null}},DX=PX,RX=/\r\n?|\n/g;var IX=PB,LX=HB,NX=wq,BX=Zz,FX=kX,zX=HH,UX=DX,HX=ZK,VX=Sq,KX=Oq,WX=function(e){return e.split(RX)};function $X(e,t,n){var r=BX.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return zX.push(e,r.set("entityMap",n),"insert-fragment")}var qX=tK,GX=Yq,ZX=eG,YX=nG,XX=aG,JX=pG,QX=hG,eJ=gG,tJ=mG,nJ=ZG,rJ=hY,oJ=function(e,t){t.preventDefault();var n=new NX(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&KX(e.props.handlePastedFiles(r)))return;return void VX(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=WX(t),i=LX.create({style:n.getCurrentInlineStyle(),entity:HX(n.getCurrentContent(),n.getSelection())}),a=UX.getCurrentBlockType(n),s=FX.processText(r,i,a),u=IX.createFromArray(s),c=BX.replaceWithFragment(n.getCurrentContent(),n.getSelection(),u);e.update(zX.push(n,c,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),u=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,s);a=c.text,s=c.html}if(!e.props.handlePastedText||!KX(e.props.handlePastedText(a,s,u))){if(a&&(i=WX(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update($X(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update($X(e._latestEditorState,f));if(s){var d=FX.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=IX.createFromArray(p);return void e.update($X(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=LX.create({style:u.getCurrentInlineStyle(),entity:HX(u.getCurrentContent(),u.getSelection())}),v=UX.getCurrentBlockType(u),m=FX.processText(i,y,v),b=IX.createFromArray(m);e.update($X(e._latestEditorState,b))}}},iJ=WK,aJ=qX.isBrowser("Chrome"),sJ=qX.isBrowser("Firefox"),uJ=aJ||sJ?iJ:function(e){},cJ={onBeforeInput:GX,onBlur:ZX,onCompositionStart:YX,onCopy:XX,onCut:JX,onDragOver:QX,onDragStart:eJ,onFocus:tJ,onInput:nJ,onKeyDown:rJ,onPaste:oJ,onSelect:iJ,onMouseUp:uJ,onKeyUp:uJ},lJ=u.default.unstable_flushControlled;var fJ=s.default,dJ=vV,pJ=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=dJ({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return fJ.createElement("div",{className:t},fJ.createElement("div",{className:dJ("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(fJ.Component),hJ=pJ,gJ=eZ,yJ=xK,vJ=tK,mJ=vJ.isPlatform("Mac OS X"),bJ=mJ&&vJ.isBrowser("Firefox < 29"),wJ=gJ.hasCommandModifier,xJ=gJ.isCtrlKeyCommand;function _J(e){return mJ&&e.altKey||xJ(e)}var CJ=function(e){switch(e.keyCode){case 66:return wJ(e)?"bold":null;case 68:return xJ(e)?"delete":null;case 72:return xJ(e)?"backspace":null;case 73:return wJ(e)?"italic":null;case 74:return wJ(e)?"code":null;case 75:return mJ&&xJ(e)?"secondary-cut":null;case 77:case 79:return xJ(e)?"split-block":null;case 84:return mJ&&xJ(e)?"transpose-characters":null;case 85:return wJ(e)?"underline":null;case 87:return mJ&&xJ(e)?"backspace-word":null;case 89:return xJ(e)?mJ?"secondary-paste":"redo":null;case 90:return function(e){return wJ(e)?e.shiftKey?"redo":"undo":null}(e)||null;case yJ.RETURN:return"split-block";case yJ.DELETE:return function(e){return!mJ&&e.shiftKey?null:_J(e)?"delete-word":"delete"}(e);case yJ.BACKSPACE:return function(e){return wJ(e)&&mJ?"backspace-to-start-of-line":_J(e)?"backspace-word":"backspace"}(e);case yJ.LEFT:return bJ&&wJ(e)?"move-selection-to-start-of-block":null;case yJ.RIGHT:return bJ&&wJ(e)?"move-selection-to-end-of-block":null;default:return null}},SJ=Ff;function OJ(){return OJ=SJ||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},OJ.apply(this,arguments)}function kJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){jJ(e,t,n[t])}))}return e}function EJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AJ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var TJ=wV,MJ=xV,PJ=pW,DJ=oq,RJ=Bq,IJ=cJ,LJ=lJ,NJ=hJ,BJ=HH,FJ=s.default,zJ=i$,UJ=y$,HJ=vV,VJ=FF,KJ=CJ,WJ=C$,$J=OU,qJ=AF,GJ=CK,ZJ=bH,YJ=tK.isBrowser("IE"),XJ=!YJ,JJ={edit:IJ,composite:PJ,drag:RJ,cut:null,render:null},QJ=!1,eQ=function(e){function t(){return e.apply(this,arguments)||this}AJ(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(FJ.Component),tQ=function(e){function t(t){var n;return jJ(EJ(n=e.call(this,t)||this),"_blockSelectEvents",void 0),jJ(EJ(n),"_clipboard",void 0),jJ(EJ(n),"_handler",void 0),jJ(EJ(n),"_dragCount",void 0),jJ(EJ(n),"_internalDrag",void 0),jJ(EJ(n),"_editorKey",void 0),jJ(EJ(n),"_placeholderAccessibilityID",void 0),jJ(EJ(n),"_latestEditorState",void 0),jJ(EJ(n),"_latestCommittedEditorState",void 0),jJ(EJ(n),"_pendingStateFromBeforeInput",void 0),jJ(EJ(n),"_onBeforeInput",void 0),jJ(EJ(n),"_onBlur",void 0),jJ(EJ(n),"_onCharacterData",void 0),jJ(EJ(n),"_onCompositionEnd",void 0),jJ(EJ(n),"_onCompositionStart",void 0),jJ(EJ(n),"_onCopy",void 0),jJ(EJ(n),"_onCut",void 0),jJ(EJ(n),"_onDragEnd",void 0),jJ(EJ(n),"_onDragOver",void 0),jJ(EJ(n),"_onDragStart",void 0),jJ(EJ(n),"_onDrop",void 0),jJ(EJ(n),"_onInput",void 0),jJ(EJ(n),"_onFocus",void 0),jJ(EJ(n),"_onKeyDown",void 0),jJ(EJ(n),"_onKeyPress",void 0),jJ(EJ(n),"_onKeyUp",void 0),jJ(EJ(n),"_onMouseDown",void 0),jJ(EJ(n),"_onMouseUp",void 0),jJ(EJ(n),"_onPaste",void 0),jJ(EJ(n),"_onSelect",void 0),jJ(EJ(n),"editor",void 0),jJ(EJ(n),"editorContainer",void 0),jJ(EJ(n),"focus",void 0),jJ(EJ(n),"blur",void 0),jJ(EJ(n),"setMode",void 0),jJ(EJ(n),"exitCurrentMode",void 0),jJ(EJ(n),"restoreEditorDOM",void 0),jJ(EJ(n),"setClipboard",void 0),jJ(EJ(n),"getClipboard",void 0),jJ(EJ(n),"getEditorKey",void 0),jJ(EJ(n),"update",void 0),jJ(EJ(n),"onDragEnter",void 0),jJ(EJ(n),"onDragLeave",void 0),jJ(EJ(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),jJ(EJ(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=UJ.getScrollParent(o),a=e||WJ(i),s=a.x,u=a.y;GJ(o)||("production"!==process.env.NODE_ENV?qJ(!1,"editorNode is not an HTMLElement"):qJ(!1)),o.focus(),i===window?window.scrollTo(s,u):zJ.setTop(i,u),r||n.update(BJ.forceSelection(t,t.getSelection()))}})),jJ(EJ(n),"blur",(function(){var e=n.editor;e&&(GJ(e)||("production"!==process.env.NODE_ENV?qJ(!1,"editorNode is not an HTMLElement"):qJ(!1)),e.blur())})),jJ(EJ(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=kJ({},JJ.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=kJ({},JJ,{edit:a});n._handler=s[e]})),jJ(EJ(n),"exitCurrentMode",(function(){n.setMode("edit")})),jJ(EJ(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),jJ(EJ(n),"setClipboard",(function(e){n._clipboard=e})),jJ(EJ(n),"getClipboard",(function(){return n._clipboard})),jJ(EJ(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),jJ(EJ(n),"onDragEnter",(function(){n._dragCount++})),jJ(EJ(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||VJ(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}AJ(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(LJ?LJ((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:ZJ(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return FJ.createElement(NJ,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,u=e.readOnly,c=e.textAlignment,l=e.textDirectionality,f=HJ({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===c,"DraftEditor/alignRight":"right"===c,"DraftEditor/alignCenter":"center"===c}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:kJ({},MJ,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return FJ.createElement("div",{className:f},this._renderPlaceholder(),FJ.createElement("div",{className:HJ("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},FJ.createElement("div",{"aria-activedescendant":u?null:this.props.ariaActiveDescendantID,"aria-autocomplete":u?null:this.props.ariaAutoComplete,"aria-controls":u?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":u?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":u?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:HJ({notranslate:!u,"public/DraftEditor/content":!0}),contentEditable:!u,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:u?null:d,spellCheck:XJ&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},FJ.createElement(eQ,{editor:this,editorState:a}),FJ.createElement(DJ,OJ({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!QJ&&$J("draft_ods_enabled")&&(QJ=!0),this.setMode("edit"),YJ&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(FJ.Component);jJ(tQ,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:TJ,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:KJ,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var nQ=tQ,rQ={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},oQ=rQ,iQ=kG.strlen;var aQ=kG,sQ=VB,uQ=function(e,t){return e===t},cQ=function(e){return!!e},lQ=[];var fQ=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return sQ(o,uQ,cQ,(function(t,o){var i=e.getText();r.push({offset:aQ.strlen(i.slice(0,t)),length:aQ.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(lQ,n.toJS())};function dQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pQ=rF,hQ=mF,gQ=rQ,yQ=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:iQ(i.slice(0,r)),length:iQ(i.slice(r,o)),key:Number(t[oQ.stringify(a)])})})),n},vQ=fQ,mQ=AF,bQ=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:vQ(e),entityRanges:yQ(e,t),data:e.getData().toObject()}},wQ=function(e,t,n,r){if(e instanceof pQ)n.push(bQ(e,t));else{e instanceof hQ||("production"!==process.env.NODE_ENV?mQ(!1,"block is not a BlockNode"):mQ(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dQ(e,t,n[t])}))}return e}({},bQ(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},xQ=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=gQ.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),wQ(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(gQ.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function _Q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){CQ(e,t,n[t])}))}return e}function CQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var SQ=FF,OQ=AF,kQ=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},EQ={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?OQ(!1,"Invalid raw state"):OQ(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?OQ(!1,"Invalid tree raw block"):OQ(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=_Q({},e);kQ(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?_Q({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,_Q({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=kQ(e),o=e.depth||0,i=_Q({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:SQ(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),_Q({},e,{blocks:t})}},jQ=TG,AQ={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&jQ(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&jQ(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&jQ(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&jQ(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&jQ(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&jQ(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&jQ(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var u=a.map((function(t){return e.get(t)})),c=u.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&jQ(!0,"%s has no first child",r),!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&jQ(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},TQ=AQ,MQ=HB,PQ=TB.exports.List;var DQ=function(e,t){var n=e.map((function(e,n){var r=t[n];return MQ.create({style:e,entity:r})}));return PQ(n)},RQ=kG.substr;var IQ=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=RQ(e,0,t.offset).length,o=r+RQ(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},LQ=kG,NQ=TB.exports.OrderedSet,BQ=LQ.substr,FQ=NQ();var zQ=function(e,t){var n=Array(e.length).fill(FQ);return t&&t.forEach((function(t){for(var r=BQ(e,0,t.offset).length,o=r+BQ(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function UQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HQ(e,t,n[t])}))}return e}function HQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var VQ=rF,KQ=mF,WQ=ZU,$Q=_U,qQ=EQ,GQ=TQ,ZQ=SU,YQ=DQ,XQ=IQ,JQ=zQ,QQ=FF,e1=TB.exports,t1=AF,n1=OU("draft_tree_data_support"),r1=e1.List,o1=e1.Map,i1=e1.OrderedMap,a1=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||QQ(),data:o1(o),characterList:s1(e,t)}},s1=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return YQ(JQ(n,o||[]),XQ(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return UQ({},e,{key:t[e.key]})}))))},u1=function(e){return UQ({},e,{key:e.key||QQ()})},c1=function(e,t,n){var r=t.map((function(e){return UQ({},e,{parentRef:n})}));return e.concat(r.reverse())},l1=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=n1&&!n?qQ.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!n1)return function(e,t){return i1(e.map((function(e){var n=new VQ(a1(e,t));return[n.getKey(),n]})))}(n?qQ.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(u1).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?t1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):t1(!1));var i=r.children.map(u1),a=new KQ(UQ({},a1(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:r1(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=c1([],i,a);s.length>0;){var u=s.pop(),c=u.parentRef,l=c.getChildKeys(),f=l.indexOf(u.key),d=Array.isArray(u.children);if(!d){d||("production"!==process.env.NODE_ENV?t1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):t1(!1));break}var p=u.children.map(u1),h=new KQ(UQ({},a1(u,t),{parent:c.getKey(),children:r1(p.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=c1(s,p,h)}return n}),i1())}(r,t);return"production"!==process.env.NODE_ENV&&(GQ.isValidTree(o)||("production"!==process.env.NODE_ENV?t1(!1,"Should be a valid tree"):t1(!1))),o},f1=cZ;var d1=function(e){var t=f1(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var u=1;u<t.length;u++){var c=t[u];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),r=Math.max(r,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},p1=d1;var h1=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=p1(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},g1={Editor:nQ,EditorBlock:rq,EditorState:HH,CompositeDecorator:gV,Entity:_U,EntityInstance:dU,BlockMapBuilder:PB,CharacterMetadata:HB,ContentBlock:rF,ContentState:ZU,RawDraftContentState:{},SelectionState:SU,AtomicBlockUtils:dV,KeyBindingUtil:eZ,Modifier:Zz,RichUtils:DX,DefaultDraftBlockRenderMap:wV,DefaultDraftInlineStyle:xV,convertFromHTML:dX,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?t1(!1,"invalid RawDraftContentState"):t1(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=$Q.__create(o,i,a||{})})),n}(e),n=l1(e,t),r=n.isEmpty()?new ZQ:ZQ.createEmpty(n.first().getKey());return new WQ({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:xQ,genKey:FF,getDefaultKeyBinding:CJ,getVisibleSelectionRect:h1};const y1=q.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),v1=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},m1=new g1.CompositeDecorator([{strategy:(e,t,n)=>v1(e,t,n,"FOUND_FIELD"),component:({children:t})=>e.jsx(y1,{children:t})},{strategy:(e,t,n)=>v1(e,t,n,"NOT_FOUND"),component:({children:t})=>e.jsx(y1,Object.assign({error:!0},{children:t}))}]),b1=(e,t,n)=>{const r=Ft.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},w1=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Ft.find(t||[],{id:i})||{id:i,label:""},{label:u,isValid:c}=b1(s,t||[],n);a=u,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:c?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:i}}}o.text+=a}return g1.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return g1.EditorState.createWithContent(r,m1)},x1=(e,t=!0)=>{const n=e.getCurrentContent(),r=g1.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Ft.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},_1=e=>{const t=x1(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},C1=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new g1.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return g1.EditorState.forceSelection(e,o)},S1=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:d,height:p,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:S,backgroundColor:O,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P}=n,D=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>w1(o,l,m))),{focused:L,handleFocus:N,handleBlur:B}=xt(s,u),[F,z]=t.useState(!1),U=t.useRef(null),H=t.useRef(),V=null!=h?h:p,K=V?V-(g?0:_?29:11):void 0,W=e=>{I(e);const t=(e=>_1(e).some((e=>"NOT_FOUND"===e.type)))(e);z(t);const n=x1(e);i&&i(n,t)},$=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:u}=b1(e,t,r),c=u?"FOUND_FIELD":"NOT_FOUND",l=i.createEntity(c,"IMMUTABLE",{id:o}).getLastCreatedEntityKey(),f=g1.Modifier.insertText(i,a,s,void 0,l),d=g1.EditorState.push(n,f,"insert-characters");return g1.EditorState.forceSelection(d,f.getSelectionAfter())})(e,l,R,m);W(t)},q=()=>{(null==U?void 0:U.current)&&U.current.focus();const e=C1(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:$,focusAtEnd:q})));t.useEffect((()=>{x1(R)!==o&&(e=>{const t=R.getSelection(),n=w1(e,l,m),r=C1(n),o=t.getHasFocus()?r:n;W(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=Ft.isEqual(e,l),n=_1(R);if(!t&&n.length>0){H.current=l;const e=w1(o,l,m);W(e)}}),[l]);return e.jsx(O1,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:d,height:p,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:_t(o),invalid:F,textOnly:E,borderRadius:S,backgroundColor:O,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P,focused:L,disabled:C,hasLabel:!!_,hideEditor:!_t(o)&&!!_&&!L},{children:e.jsxs(St,Object.assign({readOnly:v},{children:[_&&e.jsx(Ot,Object.assign({filled:_t(o),focused:L,disabled:C},{children:_})),e.jsx(g1.Editor,Object.assign({ref:U,editorState:R,onChange:W,placeholder:f,readOnly:v,handleReturn:e=>{const t=g1.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?W(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=g1.convertFromRaw({blocks:[o],entityMap:{}}),a=g1.EditorState.createWithContent(i,m1).getCurrentContent().getBlockMap(),s=g1.Modifier.replaceWithFragment(n,r,a);return g1.EditorState.push(t,s,"insert-fragment")})(e,n);return W(r),"handled"},onFocus:N,onBlur:B},D))]}))}))})),O1=q(Ct)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:u,filled:c})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!c||n||u?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),k1=q.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:u,justifyItems:c,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:c,alignContent:a,justifyContent:u,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));k1.Item=q.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:u,placeSelf:c,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:u,placeSelf:c,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const E1=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d};return e.jsxs(eB,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(nB,{children:r}),e.jsx(tB,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(tt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},j1=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:l,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(eB,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(nB,{children:o}),e.jsx(tB,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(tt,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},A1=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(T1,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&Et(r,{marginRight:4,size:"small"}),n,o&&Et(o,{marginLeft:4,size:"small"})]}))},T1=q.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),M1=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(P1,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};M1.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(D1,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},M1.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(R1,Object.assign({inline:n,align:r,disabled:o},{children:t})),M1.Input=jt,M1.Dropdown=$t,M1.Radio=E1,M1.Toggle=j1,M1.Checkbox=rB,M1.Label=A1;const P1=q(k1)({boxSizing:"border-box"}),D1=q(k1)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),R1=q.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),I1=q.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),L1=q.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),N1=q.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),B1=q.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),F1=q.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),z1=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:c,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(U1,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:c,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?yt(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),U1=q.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:c}))),H1=q.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),V1=q.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),K1=q.div({marginLeft:"auto",marginRight:8});z1.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:u=1})=>e.jsx(H1,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:u},{children:s})),z1.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:u,onClick:c,id:l,children:f,indent:d=1,backgroundColor:p})=>{const[h,g]=t.useState(r||i),y=e=>yt(e).map((e=>{if(s.default.isValidElement(e)){const n=e;return n.props.selected&&!h&&g(!0),Array.isArray(n.props.children)&&y(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:p})}return null})),v=y(f),m=()=>g((e=>!e));return e.jsxs(V1,Object.assign({backgroundColor:p},{children:[e.jsxs(H1,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:u,onClick:e=>{c?(c(e),h||m()):m()},id:l,role:"menuitem",indent:d},{children:[n,e.jsx(K1,Object.assign({onClick:e=>{e.stopPropagation(),m()}},{children:e.jsx(tt,{name:h?"chevron-up":"chevron-down",pointer:!0})}))]})),h&&v]}))};const W1=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f};return e.jsxs(G1,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(tt,{name:h,style:{marginRight:10},color:g}),e.jsx(Z1,{children:r||d}),o&&e.jsx(tt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},$1=q.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),q1=q.div((({theme:e})=>({fontWeight:e.font.weight.default})));W1.Header=$1,W1.Body=q1;const G1=q.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),Z1=q.div({width:"100%"}),Y1=q.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),X1=q.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),J1=q.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Q1=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:c,preventOverlayClose:l,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O})=>{const k=Nt(l?()=>null:s,o),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O},j=yt(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(n0,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(e0,Object.assign({ref:k,width:i,height:a,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y},E,{children:[j,c&&e.jsx(t0,Object.assign({inline:p},{children:e.jsx(tt,{name:"close",onClick:s,pointer:!0})}))]}))})),T=document.querySelector(r||"#root");return o&&T?u.default.createPortal(A,T):null};Q1.Header=q.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Q1.Text=q.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Q1.Body=q.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Q1.Footer=q.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const e0=q.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),t0=q.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),n0=q.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),r0=q.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),o0=q.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),i0=q.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),a0=q.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),s0=q.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),u0=q.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),c0=q.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),l0=q.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),f0=q.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),d0=e=>e?+e:0,p0=q.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),h0=q.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),g0=q(h0)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),y0=q(h0)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),v0=q.span((({theme:e})=>({color:e.scale6}))),m0=q.div((({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),b0=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:c})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:c},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(w0,Object.assign({size:n},l,{children:[e.jsx(x0,{cx:h,cy:h,r:f,thickness:r}),e.jsx(_0,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},w0=q.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),x0=q.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),_0=q(x0)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),C0=q.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),S0=q.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var O0={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function u(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){l&&o&&i&&(l(c),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,c=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),u(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function O(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}k(e,"inactive")}function k(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){u(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function P(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function L(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&L(e,n,i)),t?o()-e.A>=e.w?I()&&L(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function U(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):O(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)O(t.a);else{t.f+=n.length,a&&(t.j=a);var u,c=[];for(u=0;u<n.length;u++){var f=n[u],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),k(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),c.push(p)}for(u=0;u<c.length;u++)c[u].start()}}),0)}function K(e,t){this.c=e,this.a=t}function W(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,U(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),U(this)},H.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(u,n))):a.push(new b(u))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},W.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var u=r[1].split(","),c=0;c<u.length;c+=1)s.push(new b(r[0],u[c]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new $(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,c=0;c<u;c++){var l;if((l=s[c]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new H(window);re.a.c.custom=function(e,t){return new W(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(O0);var k0=O0.exports;const E0=q.div((({width:e,height:t})=>({width:e,height:t}))),j0=q.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),A0=q.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),T0=q.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),M0=q.div({display:"flex",flexDirection:"column"}),P0=q.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),D0=q.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),R0=q.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),I0=q.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),L0=q.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),N0=t.createContext({}),B0=(t,n)=>{const r="th"===n?F0:z0;return yt(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},F0=q.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),z0=q.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),U0=q(k1)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),H0=q.tbody((({height:e})=>({height:e,overflow:"auto"}))),V0=q(k1)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),K0=q.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W0=q(K0)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),$0=q(K0)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),q0=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,u]=t.useState(i),[l,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=Ft.orderBy(i,t,n)}Ft.isEqual(e,s)||u(e)}),[i,l]);const p=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(N0.Provider,Object.assign({value:p},{children:e.jsx(G0,Object.assign({},a,{children:d}))}))};q0.Header=n=>{var{children:r,columns:o}=n,i=c(n,["children","columns"]);const{parentColumns:a}=t.useContext(N0),s=o||a||"equal";return e.jsx("thead",{children:e.jsx(U0,Object.assign({as:"tr",columns:s},i,{children:B0(r,"th")}))})},q0.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[u,c]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(N0),p=s||a,h="desc"===u?"arrow-down":"arrow-up",g="asc"===u||"desc"===u,y=e=>{if(c(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&c(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==u&&!e&&c("inactive")}),[f,u]),e.jsxs($0,Object.assign({onClick:e=>{s?y("inactive"===u?"asc":"asc"===u?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(tt,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},q0.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(N0);return e.jsx(H0,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},q0.Row=n=>{var{children:r,columns:o,onClick:i}=n,a=c(n,["children","columns","onClick"]);const{parentColumns:s}=t.useContext(N0),u=o||s||"equal";return e.jsx(V0,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},a,{children:B0(r,"td")}))},q0.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>{const c={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u};return e.jsx(W0,Object.assign({contentPosition:n,showDefault:!!r&&!t},c,{children:t||r}))};const G0=q.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Z0=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:u,offsetArrowX:c,offsetX:l,containerWidth:f,width:d,maxWidth:p,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(Q0,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(J0,Object.assign({visible:x,position:s,offsetY:u,offsetX:l,offsetArrowX:c,width:d,maxWidth:p,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},Y0=q.div((({theme:e})=>({color:e.tooltip.color.default}))),X0=q.div((({theme:e})=>({color:e.tooltip.color.subtext}))),J0=q.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,u=a.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${c} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),Q0=q.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));Z0.Header=Y0,Z0.Body=X0;const e2="#0074F4",t2="#001D32",n2="#FFFFFF",r2={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:e2,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Ie(.95,e2),brandTint1:Ie(.9,e2),brandTint2:Ie(.8,e2),brandTint3:Ie(.7,e2),brandTint4:Ie(.6,e2),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Ie(.95,"#FF6068"),errorTint1:Ie(.9,"#FF6068"),errorTint2:Ie(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Ie(.95,"#FF9900"),warningTint1:Ie(.9,"#FF9900"),warningTint2:Ie(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Ie(.95,"#F0BB00"),alertTint1:Ie(.9,"#F0BB00"),alertTint2:Ie(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Ie(.95,"#00C242"),successTint1:Ie(.9,"#00C242"),successTint2:Ie(.8,"#00C242"),grayscale0:Ie(.95,t2),grayscale1:Ie(.9,t2),grayscale2:Ie(.8,t2),grayscale3:Ie(.7,t2),grayscale4:Ie(.6,t2),grayscale5:Ie(.5,t2),grayscale6:Ie(.4,t2),grayscale7:Ie(.3,t2),grayscale8:Ie(.2,t2),grayscale9:Ie(.1,t2),grayscale10:t2,contrast0:Ie(.95,n2),contrast1:Ie(.9,n2),contrast2:Ie(.8,n2),contrast3:Ie(.7,n2),contrast4:Ie(.6,n2),contrast5:Ie(.5,n2),contrast6:Ie(.4,n2),contrast7:Ie(.3,n2),contrast8:Ie(.2,n2),contrast9:Ie(.1,n2),contrast10:n2};var o2={color:r2,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:i2}=o2;var a2={small:{height:28,iconSize:20,font:i2.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:i2.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:i2.size.lg,padding:14,iconOnlyPadding:6}};const s2="#FFFFFF",u2=r2.grayscale0,c2=r2.grayscale1,l2=r2.grayscale2,f2=r2.grayscale3,d2=r2.grayscale4,p2=r2.grayscale5,h2=r2.grayscale6,g2=r2.grayscale7,y2=r2.grayscale8,v2=r2.grayscale9,m2=r2.grayscale10,b2=Object.assign(Object.assign({},o2),{name:"light",accent:r2.brand,accentShade:r2.brandShade1,background0:s2,background1:s2,background2:s2,background3:s2,background4:s2,background5:s2,scale0:u2,scale1:c2,scale2:l2,scale3:f2,scale4:d2,scale5:p2,scale6:h2,scale7:g2,scale8:y2,scale9:v2,scale10:m2,button:Object.assign(Object.assign({},a2),{primary:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineBackground:{default:r2.brandTint0,hover:r2.brandTint1,active:r2.brandTint2},border:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},divider:l2},secondary:{color:{default:m2,hover:m2,active:m2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:c2,hover:l2,active:f2},outlineBackground:{default:c2,hover:l2,active:f2},border:{default:l2,hover:l2,active:l2},divider:l2},positive:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},outlineBackground:{default:r2.successTint0,hover:r2.successTint1,active:r2.successTint2},border:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},divider:l2},negative:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},outlineBackground:{default:r2.errorTint0,hover:r2.errorTint1,active:r2.errorTint2},border:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},divider:l2},caution:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},outlineBackground:{default:r2.warningTint0,hover:r2.warningTint1,active:r2.warningTint2},border:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},divider:l2},subtle:{color:{default:r2.brand,hover:r2.brand,active:r2.brand},outlineColor:{default:r2.brand,hover:r2.brand,active:r2.brand},secondaryColor:{default:m2,hover:m2,active:m2},positiveColor:{default:r2.success,hover:r2.success,active:r2.success},negativeColor:{default:r2.error,hover:r2.error,active:r2.error},cautionColor:{default:r2.warning,hover:r2.warning,active:r2.warning},background:{default:"transparent",hover:c2,active:l2},outlineBackground:{default:"transparent",hover:c2,active:l2},border:{default:"transparent",hover:l2,active:l2},divider:l2},link:{color:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineColor:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},secondaryColor:{default:y2,hover:v2,active:m2},positiveColor:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},negativeColor:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},cautionColor:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:d2,hover:d2,active:d2},outlineColor:{default:d2,hover:d2,active:d2},background:{default:c2,hover:c2,active:c2},outlineBackground:{default:u2,hover:u2,active:u2},border:{default:c2,hover:c2,active:c2},divider:c2},color:{default:s2}}),calendar:{background:{container:r2.contrast10,hover:c2,active:r2.brand,activeHover:r2.brandShade1},color:{disabled:d2,default:m2,active:r2.contrast10,current:r2.brand,outside:h2,weekday:y2,monthYear:y2,iconDefault:d2,iconHover:m2}},defaultBorder:`1px solid ${c2}`,formControl:{color:{default:y2,hover:m2,active:r2.brand,activeHover:r2.brandShade1,disabled:d2}},input:{borderRadius:4,background:{default:u2,hover:c2,focused:c2,disabled:u2},color:{default:m2,disabled:d2,placeholder:h2,description:h2,descriptionError:r2.error},borderColor:{default:h2,hover:y2,focused:r2.brand,disabled:d2,error:r2.error},labelColor:{default:y2,hover:y2,filled:h2,focused:r2.brand,disabled:d2}},menu:{background:s2},menuItem:{borderColor:r2.brand,background:{active:u2,hover:c2,inactive:"transparent"},color:{active:m2,hover:m2,inactive:h2}},modal:{background:r2.contrast10,color:{header:m2,body:h2}},options:{background:r2.contrast10},optionItem:{background:{active:c2,inactive:"transparent"},color:{active:m2,inactive:m2,accent:r2.brand}},table:{color:{header:h2,body:m2},borderColor:c2},toast:{color:m2,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:y2,info:r2.brand,success:r2.success,warning:r2.warning,error:r2.error}},toggle:{slider:r2.contrast10},tooltip:{background:"#FFF",color:{default:m2,subtext:h2}}}),w2=r2.contrast0,x2=r2.contrast1,_2=r2.contrast2,C2=r2.contrast3,S2=r2.contrast4,O2=r2.contrast5,k2=r2.contrast6,E2=r2.contrast7,j2=r2.contrast8,A2=r2.contrast9,T2=r2.contrast10,M2=r2.brandDark,P2={light:b2,dark:Object.assign(Object.assign({},o2),{name:"dark",accent:M2,accentShade:r2.brandDarkShade1,background0:r2.brandBackground0,background1:r2.brandBackground1,background2:r2.brandBackground2,background3:r2.brandBackground3,background4:r2.brandBackground4,background5:r2.brandBackground5,scale0:w2,scale1:x2,scale2:_2,scale3:C2,scale4:S2,scale5:O2,scale6:k2,scale7:E2,scale8:j2,scale9:A2,scale10:T2,button:Object.assign(Object.assign({},a2),{primary:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineBackground:{default:r2.brandTint0,hover:r2.brandTint1,active:r2.brandTint2},border:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},divider:_2},secondary:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:x2,hover:_2,active:C2},outlineBackground:{default:x2,hover:_2,active:C2},border:{default:_2,hover:_2,active:_2},divider:_2},positive:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},outlineBackground:{default:r2.successTint0,hover:r2.successTint1,active:r2.successTint2},border:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},divider:_2},negative:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},outlineBackground:{default:r2.errorTint0,hover:r2.errorTint1,active:r2.errorTint2},border:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},divider:_2},caution:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},outlineBackground:{default:r2.warningTint0,hover:r2.warningTint1,active:r2.warningTint2},border:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},divider:_2},subtle:{color:{default:r2.brand,hover:r2.brand,active:r2.brand},outlineColor:{default:r2.brand,hover:r2.brand,active:r2.brand},secondaryColor:{default:T2,hover:T2,active:T2},positiveColor:{default:r2.success,hover:r2.success,active:r2.success},negativeColor:{default:r2.error,hover:r2.error,active:r2.error},cautionColor:{default:r2.warning,hover:r2.warning,active:r2.warning},background:{default:"transparent",hover:x2,active:_2},outlineBackground:{default:"transparent",hover:x2,active:_2},border:{default:"transparent",hover:_2,active:_2},divider:_2},link:{color:{default:r2.brandShade2,hover:r2.brandShade1,active:r2.brand},outlineColor:{default:r2.brandShade2,hover:r2.brandShade1,active:r2.brand},secondaryColor:{default:j2,hover:A2,active:T2},positiveColor:{default:r2.successShade2,hover:r2.successShade1,active:r2.success},negativeColor:{default:r2.errorShade2,hover:r2.errorShade1,active:r2.error},cautionColor:{default:r2.warningShade2,hover:r2.warningShade1,active:r2.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:S2,hover:S2,active:S2},outlineColor:{default:S2,hover:S2,active:S2},background:{default:x2,hover:x2,active:x2},outlineBackground:{default:w2,hover:w2,active:w2},border:{default:x2,hover:x2,active:x2},divider:x2},color:{default:"#FFFFFF"}}),calendar:{background:{container:r2.brandBackground3,hover:x2,active:r2.brand,activeHover:r2.brandShade1},color:{disabled:S2,default:T2,active:T2,current:M2,outside:k2,weekday:j2,monthYear:j2,iconDefault:S2,iconHover:T2}},defaultBorder:`1px solid ${x2}`,formControl:{color:{default:j2,hover:T2,active:r2.brand,activeHover:r2.brandShade1,disabled:S2}},input:{borderRadius:4,background:{default:w2,hover:x2,focused:x2,disabled:w2},color:{default:T2,disabled:S2,placeholder:k2,description:k2,descriptionError:r2.error},borderColor:{default:k2,hover:j2,focused:M2,disabled:S2,error:r2.error},labelColor:{default:j2,hover:j2,filled:k2,focused:M2,disabled:S2}},menu:{background:r2.brandBackground2},menuItem:{borderColor:r2.brand,background:{active:w2,hover:x2,inactive:"transparent"},color:{active:T2,hover:T2,inactive:k2}},modal:{background:r2.brandBackground3,color:{header:T2,body:k2}},options:{background:r2.brandBackground3},optionItem:{background:{active:x2,inactive:"transparent"},color:{active:T2,inactive:T2,accent:M2}},table:{color:{header:k2,body:T2},borderColor:x2},toast:{color:T2,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:j2,info:r2.brand,success:r2.success,warning:r2.warning,error:r2.error}},toggle:{slider:r2.brandBackground0},tooltip:{background:r2.brandBackground4,color:{default:T2,subtext:k2}}})};exports.Audio=dn,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:a}=t,s=c(t,["width","height","data","dataKey"]);const{scale2:u,color:l}=n.useTheme();return e.jsxs(YR,Object.assign({},s,{children:[e.jsx(ZR,{}),e.jsxs(iP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(eT,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(aM,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(sM,{stroke:u,tickMargin:4}),e.jsx(dg,{}),e.jsx($T,{barSize:16,dataKey:a,fill:l.brand})]}))]}))},exports.Button=nn,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:u}=t.useRef(r||new Date),[c,l]=t.useState(u),[f,d]=t.useState(u),[p,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>{const t=function(e,t){if(JR(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=QR(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=HN(n,t.month)),null!=t.date&&n.setDate(XR(t.date)),null!=t.hours&&n.setHours(XR(t.hours)),null!=t.minutes&&n.setMinutes(XR(t.minutes)),null!=t.seconds&&n.setSeconds(XR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(XR(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},v=e=>{const t=VN(("prev"===e?WN:nI)(f,{months:1}),1),n=y(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?wL(WN(e,{months:1})):VN("future"===n?nI(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?WN:nI)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return JR(1,arguments),QR(e).getDay()}(VN(e,1)),n=bL(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=y(u),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(wL(f)),s=y(VN(f,1));let l=!1;const d=_L(e,n),p=xL(e,r);(i&&d||a&&p)&&(l=!0);const h=xL(e,o)||_L(e,s),g=cI(e,u),v=cI(e,c);return{date:mL(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[c,f]);return e.jsxs($N,Object.assign({noShadow:s},{children:[e.jsxs(qN,{children:[e.jsx(GN,{children:yL(f,"MMMM Y")}),e.jsxs(ZN,{children:[e.jsx(tt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(tt,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(JN,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(QN,{children:t[0]},t)))}),e.jsx(YN,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(XN,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),Xe())))})]}))},exports.Checkbox=rB,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d})=>{const{name:p}=n.useTheme(),h={margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Ft.range(r,o+1):Ft.rangeRight(o,r+1)}return null})),n=t.flat();return Ft.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(_B,{method:w,url:C}):e.jsx(hB,Object.assign({},aB,{code:C,language:b,theme:"dark"===p?vB:mB},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(kB,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(EB,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(jB,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(wB,{content:C})]}))}))},exports.DocTable=AB,exports.DraftEditor=S1,exports.Dropdown=$t,exports.Form=M1,exports.Grid=k1,exports.Icon=tt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:u,opacity:c})=>{const[l,f]=t.useState(i),d=Nt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>(n&&window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g))),[n,l]),n?e.jsxs(I1,Object.assign({opacity:c,prevNext:o.length>1},{children:[e.jsx(L1,Object.assign({onClick:r},{children:e.jsx(tt,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(N1,Object.assign({id:"prev",onClick:p},{children:e.jsx(tt,{name:"chevron-left",size:35,color:"white"})})),e.jsx(B1,{ref:d,src:o[l],alt:a,maxWidth:s,maxHeight:u}),o.length>1&&e.jsx(N1,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(tt,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=F1,exports.Input=jt,exports.InputUtils=kt,exports.Label=A1,exports.Menu=z1,exports.Message=W1,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(J1,{children:[e.jsx(X1,{}),e.jsx(Y1,Object.assign({color:n,style:r},{children:t})),e.jsx(X1,{})]}),exports.Modal=Q1,exports.MultiSelect=r=>{var{children:o,options:i,items:a,listLabel:s,listText:l,itemsTitle:f,maxItems:d,placeholder:p,width:h,filter:g,restrictInput:y,disabled:v,optionsParent:m,compact:b,backgroundColor:w,borderless:x,addItem:_,removeItem:C,onTextChange:S,autoFocus:O}=r,k=c(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[E,j]=t.useState(O||!1),[A,T]=t.useState(!1),[M,P]=t.useState(""),{color:D,font:R,input:I}=n.useTheme(),L=Nt((()=>j(!1)),E,m?[m,`${m} *`]:void 0),N=t.useRef(null),B=b&&!!s,F=e=>{e&&_(e)},z=e=>{P(e),S&&S(e)};t.useEffect((()=>{const{current:e}=N;e&&!E&&e.blur()}),[E]);Lt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];C(t)}}),E&&!M,[a]);const U=i.filter((e=>!a.find((t=>t.id===e.id)))),H=t.useMemo((()=>`multi-select-${Xe()}`),[]),V=t.useMemo((()=>`multi-select-list-${Xe()}`),[]),K=d?a.length>=d:void 0,W=v||!E||K,$=()=>{const t=e.jsxs(a0,Object.assign({id:V,expanded:E,padTop:E&&a.length>0,labeled:!!s},{children:[l&&e.jsx(s0,Object.assign({expanded:E,labeled:!!s},{children:l})),o?o(E,!!v):a.map((t=>e.jsx(A1,Object.assign({pill:!0,iconRight:E&&!v?e.jsx(tt,{name:"close-circle",onClick:()=>C(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx($t,Object.assign({},k,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:v||a.length>0?" ":p||"Search...",placeholderColor:I.color.placeholder,inputRef:N,onChange:F,onTextChange:z,onError:e=>T(e),disabled:W,optionsParent:m?`#${V}`:`#${H}`,autoFocus:O}))]}));if(m){const e=document.querySelector(m);return e?u.default.createPortal(t,e):t}return t};return e.jsxs(r0,Object.assign({width:h,ref:L,labeled:!!s,disabled:v,collapse:B,onClick:e=>{e.stopPropagation();const{current:t}=N;E||s||j(!0),null==t||t.focus()}},{children:[e.jsxs(o0,Object.assign({collapse:B,id:H,expanded:E&&a.length>0,error:A,labeled:!!s,backgroundColor:w,borderless:x},{children:[s?e.jsx(i0,Object.assign({collapse:B},{children:s})):$(),e.jsxs(u0,{children:[d&&e.jsx(l0,{children:v&&f?e.jsxs(e.Fragment,{children:[a.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(c0,Object.assign({error:a.length>=d},{children:a.length})),"/",d," ",f]})}),a.length>0&&e.jsx(tt,{name:E?"chevron-up":"chevron-down",color:D.brand,pointer:!0,onClick:e=>{e.stopPropagation(),j(!E)}})]})]})),s&&E&&$()]}))},exports.Notification=f0,exports.Options=Dt,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(d0(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,d0(a)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},v=0!==d,m=d!==g.length-1;return e.jsxs(p0,Object.assign({width:s},u,{children:[e.jsx(g0,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(tt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(g0,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(tt,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(v0,{children:"... "}):"",e.jsx(y0,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(v0,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(g0,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(tt,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(g0,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(tt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i}=t,a=c(t,["size","data","innerRadius","outerRadius"]);const s=i||n/2-1;return e.jsx(m0,Object.assign({},a,{children:e.jsxs(aP,Object.assign({width:n,height:n},{children:[e.jsx(BE,Object.assign({dataKey:"value",data:r,innerRadius:o,outerRadius:s},{children:r.map((t=>e.jsx(ky,{fill:t.color||"#999"},t.name)))})),e.jsx(dg,{})]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d})=>{const p={margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(b0,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(C0,Object.assign({width:o,height:i||s},p,{children:e.jsx(S0,{color:n,width:h})}))},exports.Radio=E1,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,k0.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=cn,exports.Spacer=E0,exports.Spinner=mt,exports.Table=q0,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=j1,exports.Tooltip=Z0,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:u,readOnly:c,width:l,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Ft.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(I0,{children:t.header}),e.jsx(L0,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&u);return e.jsxs(j0,Object.assign({width:l,readOnly:c},x,{children:[i&&e.jsx(A0,{children:i}),e.jsxs(T0,{children:[!c&&e.jsxs(M0,{children:[k&&e.jsx(P0,{children:v.length>0&&!s&&e.jsx(nn,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(D0,{children:v.map((t=>e.jsxs(R0,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[O(t),e.jsx(tt,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(M0,{children:[k&&!c&&e.jsx(P0,{children:b.length>0&&!u&&!c&&e.jsx(nn,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),c&&0===b.length?e.jsx("div",{children:a}):e.jsx(D0,{children:b.map((t=>e.jsxs(R0,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[O(t),e.jsx(tt,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=bB,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,u=new Date,c=yL(n,"EEEE"),l=yL(n,"MMM d"),f=yL(n,"MMM d, y"),d=yL(n,"h:mm aaa"),p=function(e){return JR(1,arguments),zN(e,Date.now())}(n),h=function(e){return JR(1,arguments),QR(e).getTime()>Date.now()}(n),g=function(e){return JR(1,arguments),cI(e,Date.now())}(n),y=function(e){return JR(1,arguments),cI(e,UN(Date.now(),1))}(n),v=function(e){return JR(1,arguments),cI(e,eI(Date.now(),1))}(n),m=function(e,t,n){JR(2,arguments);var r=hI(e,t)/6e4;return yI(null==n?void 0:n.roundingMethod)(r)}(u,n),b=function(e,t,n){JR(2,arguments);var r=pI(e,t)/7;return yI(null==n?void 0:n.roundingMethod)(r)}(u,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(d);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:d)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${l}${x}`:`${f}${x}`:`${c}${x}`)},exports.theme=P2,exports.useConfirm=({header:n,text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:u,inputPlaceholder:c,inputValue:l})=>{const[f,d]=t.useState(l||""),[p,h]=t.useState(null),g=()=>{h(null),d("")},y=()=>{null==p||p.resolve(!s||f),g()},v=()=>{null==p||p.resolve(!1),g()};Lt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(Q1,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(Q1.Header,{children:n}),r&&e.jsx(Q1.Text,{children:r}),s&&e.jsx(Q1.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(jt,{autoFocus:!0,label:u,placeholder:c,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(Q1.Footer,{children:[e.jsx(nn,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(nn,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useEventListener=Lt,exports.useOnClickOutside=Nt,exports.useSelect=zt,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,u]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(u(!1),a(!0)):t?(u(!0),a(!1)):(u(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e};
209
+ var iB=function(){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,t=0,n={},r={util:{encode:function e(t){return t instanceof o?new o(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function e(t,n){var o,i;switch(n=n||{},r.util.type(t)){case"Object":if(i=r.util.objId(t),n[i])return n[i];for(var a in o={},n[i]=o,t)t.hasOwnProperty(a)&&(o[a]=e(t[a],n));return o;case"Array":return i=r.util.objId(t),n[i]?n[i]:(o=[],n[i]=o,t.forEach((function(t,r){o[r]=e(t,n)})),o);default:return t}},getLanguage:function(t){for(;t;){var n=e.exec(t.className);if(n)return n[1].toLowerCase();t=t.parentElement}return"none"},setLanguage:function(t,n){t.className=t.className.replace(RegExp(e,"gi"),""),t.classList.add("language-"+n)},isActive:function(e,t,n){for(var r="no-"+t;e;){var o=e.classList;if(o.contains(t))return!0;if(o.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:n,plaintext:n,text:n,txt:n,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var o in t)n[o]=t[o];return n},insertBefore:function(e,t,n,o){var i=(o=o||r.languages)[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var u in n)n.hasOwnProperty(u)&&(a[u]=n[u]);n.hasOwnProperty(s)||(a[s]=i[s])}var c=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===c&&t!=e&&(this[t]=a)})),a},DFS:function e(t,n,o,i){i=i||{};var a=r.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],o||s);var u=t[s],c=r.util.type(u);"Object"!==c||i[a(u)]?"Array"!==c||i[a(u)]||(i[a(u)]=!0,e(u,n,s,i)):(i[a(u)]=!0,e(u,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return u(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var d in n)if(n.hasOwnProperty(d)&&n[d]){var p=n[d];p=Array.isArray(p)?p:[p];for(var h=0;h<p.length;++h){if(f&&f.cause==d+","+h)return;var g=p[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var S=_.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,C,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(C,A),O.index-=C}else if(!(O=i(x,0,S,v)))continue;E=O.index;var M=O[0],P=S.slice(0,E),D=S.slice(E+M.length),R=C+S.length;f&&R>f.reach&&(f.reach=R);var I=_.prev;if(P&&(I=u(t,I,P),C+=P.length),c(t,I,k),_=u(t,I,new o(d,y?r.tokenize(M,y):M,b,M)),D&&u(t,_,D),k>1){var L={cause:d+","+h,reach:R};a(e,t,n,_.prev,C,L),f&&L.reach>f.reach&&(f.reach=L.reach)}}}}}}function s(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var r=t.next,o={value:n,prev:t,next:r};return t.next=o,r.prev=o,e.length++,o}function c(e,t,n){for(var r=t.next,o=0;o<n&&r!==e.tail;o++)r=r.next;t.next=r,r.prev=t,e.length-=o}return o.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var o="";return t.forEach((function(t){o+=e(t,n)})),o}var i={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},a=t.alias;a&&(Array.isArray(a)?Array.prototype.push.apply(i.classes,a):i.classes.push(a)),r.hooks.run("wrap",i);var s="";for(var u in i.attributes)s+=" "+u+'="'+(i.attributes[u]||"").replace(/"/g,"&quot;")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}(),aB=iB;iB.default=iB,aB.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},aB.languages.markup.tag.inside["attr-value"].inside.entity=aB.languages.markup.entity,aB.languages.markup.doctype.inside["internal-subset"].inside=aB.languages.markup,aB.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(aB.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:aB.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:aB.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},aB.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(aB.languages.markup.tag,"addAttribute",{value:function(e,t){aB.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:aB.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),aB.languages.html=aB.languages.markup,aB.languages.mathml=aB.languages.markup,aB.languages.svg=aB.languages.markup,aB.languages.xml=aB.languages.extend("markup",{}),aB.languages.ssml=aB.languages.xml,aB.languages.atom=aB.languages.xml,aB.languages.rss=aB.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(aB),aB.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},aB.languages.c=aB.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),aB.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),aB.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},aB.languages.c.string],char:aB.languages.c.char,comment:aB.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:aB.languages.c}}}}),aB.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete aB.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(aB),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(aB),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(aB),aB.languages.javascript=aB.languages.extend("clike",{"class-name":[aB.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),aB.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,aB.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:aB.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:aB.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:aB.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:aB.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:aB.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),aB.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:aB.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),aB.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),aB.languages.markup&&(aB.languages.markup.tag.addInlined("script","javascript"),aB.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),aB.languages.js=aB.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(aB),function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,r="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",o=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),i=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function a(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return r}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return r})).replace(/<<key>>/g,(function(){return"(?:"+o+"|"+i+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:a(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:a(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:a(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:a(i),lookbehind:!0,greedy:!0},number:{pattern:a(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(aB),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),u="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,u]:a.alias.push(u):a.alias=[u]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],c=/language-(.+)/.exec(i);if(c){n=c[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),u(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var d="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=d,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(d);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},u=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(aB),aB.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:aB.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},aB.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var r=t[n++];if("keyword"===r.type&&"mutation"===r.content){var o=[];if(f(["definition-mutation","punctuation"])&&"("===l(1).content){n+=2;var i=d(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(p(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,p(l(0),"property-mutation"),o.length>0)){var s=d(/^\{$/,/^\}$/);if(-1===s)continue;for(var u=n;u<s;u++){var c=t[u];"variable"===c.type&&o.indexOf(c.content)>=0&&p(c,"variable-input")}}}}function l(e){return t[n+e]}function f(e,t){t=t||0;for(var n=0;n<e.length;n++){var r=l(n+t);if(!r||r.type!==e[n])return!1}return!0}function d(e,r){for(var o=1,i=n;i<t.length;i++){var a=t[i],s=a.content;if("punctuation"===a.type&&"string"==typeof s)if(e.test(s))o++;else if(r.test(s)&&0===--o)return i}return-1}function p(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),aB.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function u(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function c(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,u(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=u(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),d=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=d.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=d[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var u=i.substring(0,s),f=c(l[o]),p=i.substring(s+o.length),h=[];if(u&&h.push(u),h.push(f),p){var g=[p];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function d(e){return"string"==typeof e?e:Array.isArray(e)?e.map(d).join(""):d(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var u=d(s),c=s.alias,f=Array.isArray(c)?c[0]:c,p=e.languages[f];if(!p)continue;a[1]=l(u,p,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(aB),function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(aB),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(aB),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var u=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(u+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(u=a(t[r-1])+u,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",u,null,u)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(aB),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(aB),aB.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},aB.languages.go=aB.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),aB.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete aB.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var u=0;u<s.length&&!(o>=i.length);u++){var c=s[u];if("string"==typeof c||c.content&&"string"==typeof c.content){var l=i[o],f=n.tokenStack[l],d="string"==typeof c?c:c.content,p=t(r,l),h=d.indexOf(p);if(h>-1){++o;var g=d.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=d.substring(h+p.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof c?s.splice.apply(s,[u,1].concat(m)):c.content=m}}else c.content&&a(c.content)}return s}(n.tokens)}}}})}(aB),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(aB),aB.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},aB.languages.webmanifest=aB.languages.json,aB.languages.less=aB.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),aB.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),aB.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},aB.languages.objectivec=aB.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete aB.languages.objectivec["class-name"],aB.languages.objc=aB.languages.objectivec,aB.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},aB.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},aB.languages.python["string-interpolation"].inside.interpolation.inside.rest=aB.languages.python,aB.languages.py=aB.languages.python,aB.languages.reason=aB.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),aB.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete aB.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(aB),aB.languages.scss=aB.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),aB.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),aB.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),aB.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),aB.languages.scss.atrule.inside.rest=aB.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(aB),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(aB),aB.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var sB={Prism:aB,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function uB(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cB(){return cB=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},cB.apply(this,arguments)}var lB=/\r\n|\r|\n/,fB=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},dB=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},pB=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=cB({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=cB({},n,{backgroundColor:null}),o};function hB(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var gB=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),uB(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?pB(e.theme,e.language):void 0;return t.themeDict=n})),uB(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=cB({},hB(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?cB({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),uB(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),uB(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=cB({},hB(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?cB({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),uB(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],u=[s];a>-1;){for(;(i=r[a]++)<o[a];){var c=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],c=f):(l=dB(l,f.type),f.alias&&(l=dB(l,f.alias)),c=f.content),"string"==typeof c){var d=c.split(lB),p=d.length;s.push({types:l,content:d[0]});for(var h=1;h<p;h++)fB(s),u.push(s=[]),s.push({types:l,content:d[h]})}else a++,t.push(l),n.push(c),r.push(0),o.push(c.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return fB(s),u}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),yB="#c5a5c5",vB="#8dc891",mB={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:yB}},{types:["attr-value"],style:{color:vB}},{types:["comment","block-comment","prolog","doctype","cdata","shebang"],style:{color:"#999999"}},{types:["property","number","function-name","constant","symbol","deleted"],style:{color:"#5a9bcf"}},{types:["boolean"],style:{color:"#ff8b50"}},{types:["tag"],style:{color:"#fc929e"}},{types:["string"],style:{color:vB}},{types:["punctuation"],style:{color:vB}},{types:["selector","char","builtin","inserted"],style:{color:"#D8DEE9"}},{types:["function"],style:{color:"#79b6f2"}},{types:["operator","entity","url","variable"],style:{color:"#d7deea"}},{types:["keyword"],style:{color:yB}},{types:["atrule","class-name"],style:{color:"#FAC863"}},{types:["important"],style:{fontWeight:"400"}},{types:["bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}}]},bB={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const wB=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},xB=({content:r})=>{const[o,i]=t.useState(!1),{color:a,scale10:s}=n.useTheme();t.useEffect((()=>{o&&setTimeout((()=>{i(!1)}),2e3)}),[o]);return e.jsx(_B,Object.assign({onClick:()=>{wB(r),i(!0)},copied:o},{children:o?e.jsx(tt,{name:"check-circle",color:a.success}):e.jsx(tt,{name:"copy",color:s})}))},_B=q.div((({copied:e})=>({width:25,height:25,padding:5,position:"absolute",top:5,right:5,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",opacity:e?1:.3,"&:hover":{opacity:e?1:.7}}))),CB=({method:t,url:r})=>{const o=n.useTheme(),i=((e,t)=>{const{color:n}=t;switch(e){case"GET":return{borderColor:n.brand,backgroundColor:n.brandTint2};case"DELETE":return{borderColor:n.error,backgroundColor:n.errorTint2};case"POST":return{borderColor:n.success,backgroundColor:n.successTint2};case"PUT":return{borderColor:n.warning,backgroundColor:n.warningTint2};default:return{borderColor:t.scale8,backgroundColor:t.scale0}}})(t.toUpperCase(),o);return e.jsxs(SB,Object.assign({},i,{children:[e.jsx(OB,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(kB,{children:r}),e.jsx(xB,{content:r})]}))},SB=q.div((({theme:e})=>({display:"flex",alignItems:"center",border:"1px solid",borderRadius:e.size.xs,margin:"10px 0",position:"relative"})),(({borderColor:e,backgroundColor:t})=>({borderColor:e,backgroundColor:t}))),OB=q.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),kB=q.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),EB=q.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),jB=q.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),AB=q.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),TB=q.table((({theme:e})=>({border:`1px solid ${e.scale1}`,borderSpacing:0,borderCollapse:"separate",borderRadius:e.size.xs,overflow:"hidden",width:"100%","& thead":{backgroundColor:e.scale1,borderTopLeftRadius:e.size.xs,borderTopRightRadius:e.size.xs},"& th, & td":{border:"none",padding:10,textAlign:"left"},"& td":{borderTop:`1px solid ${e.scale1}`,lineHeight:"28px"},"& th":{fontWeight:"bold",whiteSpace:"nowrap"},"& td:not(:last-of-type)":{whiteSpace:"nowrap"}})));var MB={exports:{}},PB=(MB.exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return u(e)?e:Z(e)}function i(e){return a(e)&&!c(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function u(e){return!(!e||!e[p])}function c(e){return s(e)||u(e)}function l(e){return!(!e||!e[h])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=s,n.isIndexed=u,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function S(){}function O(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function k(e){return void 0===e.size&&(e.size=e.__iterate(j)),e.size}function E(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?k(e)+t:t}function j(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return P(e,t,0)}function M(e,t){return P(e,t,t)}function P(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,I=2,L="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=L||N;function F(e){this.next=e}function z(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function U(){return{value:void 0,done:!0}}function H(e){return!!W(e)}function V(e){return e&&"function"==typeof e.next}function K(e){var t=W(e);return t&&t.call(e)}function W(e){var t=e&&(L&&e[L]||e[N]);if("function"==typeof t)return t}function $(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ce(e)}function G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ue(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=R,F.ENTRIES=I,F.prototype.inspect=F.prototype.toSource=function(){return this.toString()},F.prototype[B]=function(){return this},t(q,n),q.of=function(){return q(arguments)},q.prototype.toSeq=function(){return this},q.prototype.toString=function(){return this.__toString("Seq {","}")},q.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},q.prototype.__iterate=function(e,t){return fe(this,e,t,!0)},q.prototype.__iterator=function(e,t){return de(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return de(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():H(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){var t=le(e)||"object"==typeof e&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}function le(e){return $(e)?new te(e):V(e)?new oe(e):H(e)?new re(e):void 0}function fe(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new F((function(){var e=o[n?i-a:a];return a++>i?U():z(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function pe(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||u(e)!==u(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ve(o[1],e)&&(n||ve(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!ve(t,e.get(r,b)):!ve(e.get(r,b),t))return f=!1,!1}));return f&&e.size===d}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?U():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?U():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!V(n))return new F(U);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,M(t,n)-T(e,n))},be.prototype.reverse=function(){return this},be.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},be.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},be.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},be.prototype.__iterator=function(e,t){var n=this,r=0;return new F((function(){return r<n.size?z(e,r++,n._value):U()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=M(t,this.size))<=e?new xe(0,0):new xe(this.get(e,this._end),this.get(t,this._end),this._step))},xe.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},xe.prototype.lastIndexOf=function(e){return this.indexOf(e)},xe.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},xe.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new F((function(){var a=o;return o+=t?-r:r,i>n?U():z(e,i++,a)}))},xe.prototype.equals=function(e){return e instanceof xe?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(_e,n),t(Ce,_e),t(Se,_e),t(Oe,_e),_e.Keyed=Ce,_e.Indexed=Se,_e.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ee(e){return e>>>1&1073741824|3221225471&e}function je(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ee(n)}if("string"===t)return e.length>Fe?Ae(e):Te(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return Me(e);if("function"==typeof e.toString)return Te(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function Ae(e){var t=He[e];return void 0===t&&(t=Te(e),Ue===ze&&(Ue=0,He={}),Ue++,He[e]=t),t}function Te(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ee(t)}function Me(e){var t;if(Le&&void 0!==(t=Ie.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Le)Ie.set(e,t);else{if(void 0!==Pe&&!1===Pe(e))throw new Error("Non-extensible objects are not allowed as keys.");if(De)Object.defineProperty(e,Be,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Be]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Be]=t}}return t}var Pe=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ie,Le="function"==typeof WeakMap;Le&&(Ie=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,Ue=0,He={};function Ve(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():We(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function We(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return dt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Ht(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Ht(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=We;var $e,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return $e||($e=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ut(e,t,n,r,o){if(e.keyHash===r)return new Je(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&m,s=(0===n?r:r>>>n)&m;return new Ye(t,1<<a|1<<s,a===s?[ut(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ct(e,t,n,r){e||(e=new S);for(var o=new Qe(e,je(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}function lt(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,u=1,c=t.length;s<c;s++,u<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=u,a[i++]=l)}return new Ye(e,o,a)}function ft(e,t,n,r,o){for(var i=0,a=new Array(v),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new Xe(e,i+1,a)}function dt(e,t,n){for(var o=[],i=0;i<n.length;i++){var s=n[i],u=r(s);a(s)||(u=u.map((function(e){return pe(e)}))),o.push(u)}return gt(e,t,o)}function pt(e,t,n){return e&&e.mergeDeep&&a(t)?e.mergeDeep(t):ve(e,t)?e:t}function ht(e){return function(t,n,r){if(t&&t.mergeDeepWith&&a(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return ve(t,o)?t:o}}function gt(e,t,n){return n=n.filter((function(e){return 0!==e.size})),0===n.length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,b,(function(e){return e===b?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function yt(e,t,n,r){var o=e===b,i=t.next();if(i.done){var a=o?n:e,s=r(a);return s===a?e:s}we(o||e&&e.set,"invalid keyPath");var u=i.value,c=o?b:e.get(u,b),l=yt(c,t,n,r);return l===c?e:l===b?e.remove(u):(o?ot():e).set(u,l)}function vt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function mt(e,t,n,r){var o=r?e:O(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,u=this.entries,c=0,l=u.length;c<l&&!ve(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(C(a),(s||!f)&&C(i),!s||1!==u.length){if(!f&&!s&&u.length>=xt)return ct(e,u,r,o);var d=e&&e===this.ownerID,p=d?u:O(u);return f?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ze(e,p)}},Ye.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=1<<((0===e?t:t>>>e)&m),i=this.bitmap;return 0==(i&o)?r:this.nodes[vt(i&o-1)].get(e+y,t,n,r)},Ye.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,u=1<<s,c=this.bitmap,l=0!=(c&u);if(!l&&o===b)return this;var f=vt(c&u-1),d=this.nodes,p=l?d[f]:void 0,h=at(p,e,t+y,n,r,o,i,a);if(h===p)return this;if(!l&&h&&d.length>=_t)return ft(e,d,c,s,h);if(l&&!h&&2===d.length&&st(d[1^f]))return d[1^f];if(l&&h&&1===d.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?c:c^u:c|u,w=l?h?mt(d,f,h,g):wt(d,f,g):bt(d,f,h,g);return g?(this.bitmap=v,this.nodes=w,this):new Ye(e,v,w)},Xe.prototype.get=function(e,t,n,r){void 0===t&&(t=je(n));var o=(0===e?t:t>>>e)&m,i=this.nodes[o];return i?i.get(e+y,t,n,r):r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=(0===t?n:n>>>t)&m,u=o===b,c=this.nodes,l=c[s];if(u&&!l)return this;var f=at(l,e,t+y,n,r,o,i,a);if(f===l)return this;var d=this.count;if(l){if(!f&&--d<Ct)return lt(e,c,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(c,s,f,p);return p?(this.count=d,this.nodes=h,this):new Xe(e,d,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),ut(this,e,t,n,[r,o]));for(var u=this.entries,c=0,l=u.length;c<l&&!ve(r,u[c][0]);c++);var f=c<l;if(f?u[c][1]===o:s)return this;if(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,u[1^c]);var d=e&&e===this.ownerID,p=d?u:O(u);return f?s?c===l-1?p.pop():p[c]=p.pop():p[c]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Je(e,this.keyHash,p)},Qe.prototype.get=function(e,t,n,r){return ve(n,this.entry[0])?this.entry[1]:r},Qe.prototype.update=function(e,t,n,r,o,i,a){var s=o===b,u=ve(r,this.entry[0]);return(u?o===this.entry[1]:s)?this:(C(a),s?void C(i):u?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ut(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return U()};var xt=v/4,_t=v/2,Ct=v/4;function St(e){var t=Rt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ve(r),r>0&&r<v?Dt(0,r,y,null,new jt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function Ot(e){return!(!e||!e[kt])}t(St,Se),St.of=function(){return this(arguments)},St.prototype.toString=function(){return this.__toString("List [","]")},St.prototype.get=function(e,t){if((e=E(this,e))>=0&&e<this.size){var n=Bt(this,e+=this._origin);return n&&n.array[e&m]}return t},St.prototype.set=function(e,t){return It(this,e,t)},St.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},St.prototype.insert=function(e,t){return this.splice(e,0,t)},St.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},St.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){Ft(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},St.prototype.pop=function(){return Ft(this,0,-1)},St.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){Ft(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},St.prototype.shift=function(){return Ft(this,1)},St.prototype.merge=function(){return zt(this,void 0,arguments)},St.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},St.prototype.mergeDeep=function(){return zt(this,pt,arguments)},St.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},St.prototype.setSize=function(e){return Ft(this,0,e)},St.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),M(t,n))},St.prototype.__iterator=function(e,t){var n=0,r=Pt(this,t);return new F((function(){var t=r();return t===Mt?U():z(e,n++,t)}))},St.prototype.__iterate=function(e,t){for(var n,r=0,o=Pt(this,t);(n=o())!==Mt&&!1!==e(n,r++,this););return r},St.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Dt(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},St.isList=Ot;var kt="@@__IMMUTABLE_LIST__@@",Et=St.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Nt(this,e);if(!i)for(var u=0;u<r;u++)s.array[u]=void 0;return o&&(s.array[r]=o),s},jt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&m;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-y,n))===i&&o===this.array.length-1)return this}var a=Nt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Mt={};function Pt(e,t){var n=e._origin,r=e._capacity,o=Ut(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):u(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,u=a>n?0:n-a,c=r-a;return c>v&&(c=v),function(){if(u===c)return Mt;var e=t?--c:u++;return s&&s[e]}}function u(e,o,i){var s,u=e&&e.array,c=i>n?0:n-i>>o,l=1+(r-i>>o);return l>v&&(l=v),function(){for(;;){if(s){var e=s();if(e!==Mt)return e;s=null}if(c===l)return Mt;var n=t?--l:c++;s=a(u&&u[n],o-y,i+(n<<o))}}}}function Dt(e,t,n,r,o,i,a){var s=Object.create(Et);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Rt(){return At||(At=Dt(0,0,y))}function It(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=Ut(e._capacity)?r=Lt(r,e.__ownerID,0,t,n,i):o=Lt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Dt(e._origin,e._capacity,e._level,o,r):e}function Lt(e,t,n,r,o,i){var a,s=r>>>n&m,u=e&&s<e.array.length;if(!u&&void 0===o)return e;if(n>0){var c=e&&e.array[s],l=Lt(c,t,n-y,r,o,i);return l===c?e:((a=Nt(e,t)).array[s]=l,a)}return u&&e.array[s]===o?e:(C(i),a=Nt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Nt(e,t){return t&&e&&t===e.ownerID?e:new jt(e?e.array.slice():[],t)}function Bt(e,t){if(t>=Ut(e._capacity))return e._tail;if(t<1<<e._level+y){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&m],r-=y;return n}}function Ft(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new jt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ut(i),d=Ut(s);d>=1<<u+y;)c=new jt(c&&c.array.length?[c]:[],r),u+=y;var p=e._tail,h=d<f?Bt(e,s-1):d>f?new jt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var g=c=Nt(c,r),v=u;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Nt(g.array[b],r)}g.array[f>>>y&m]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,u=y,c=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(l=0;c;){var w=a>>>u&m;if(w!==d>>>u&m)break;w&&(l+=(1<<u)*w),u-=y,c=c.array[w]}c&&a>o&&(c=c.removeBefore(r,u,a-l)),c&&d<f&&(c=c.removeAfter(r,u,d-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=u,e._root=c,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,u,c,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var u=n[s],c=o(u);c.size>i&&(i=c.size),a(u)||(c=c.map((function(e){return pe(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ut(e){return e<v?0:e-1>>>y<<y}function Ht(e){return null==e?Wt():Vt(e)?e:Wt().withMutations((function(t){var n=r(e);Ve(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Vt(e){return We(e)&&l(e)}function Kt(e,t,n,r){var o=Object.create(Ht.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function Wt(){return Tt||(Tt=Kt(ot(),Rt()))}function $t(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),u=void 0!==s;if(n===b){if(!u)return e;a.size>=v&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===I){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(I,o);return new F((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return z(r,s,t.call(n,a[1],s,e),o)}))},r}function Qt(e,t){var n=bn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Xt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function en(e,t,n,r){var o=bn(e);return r&&(o.has=function(r){var o=e.get(r,b);return o!==b&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,b);return i!==b&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,u){if(t.call(n,e,i,u))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(I,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var u=i.value,c=u[0],l=u[1];if(t.call(n,l,c,e))return z(o,r?c:s++,l,i)}}))},o}function tn(e,t,n){var r=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Ht():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=M(n,o);if(i!=i||a!=a)return rn(e.toSeq().cacheResult(),t,n,r);var s,u=a-i;u==u&&(s=u<0?0:u);var c=bn(e);return c.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(c.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),c.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,u=!0,c=0;return e.__iterate((function(e,n){if(!u||!(u=a++<i))return c++,!1!==t(e,r?n:c-1,o)&&c!==s})),c},c.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,u=0;return new F((function(){for(;a++<i;)o.next();if(++u>s)return U();var e=o.next();return r||t===R?e:z(t,u-1,t===D?void 0:e.value[1],e)}))},c}function on(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(I,o),s=!0;return new F((function(){if(!s)return U();var e=a.next();if(e.done)return e;var o=e.value,u=o[0],c=o[1];return t.call(n,c,u,i)?r===I?e:z(r,u,c,e):(s=!1,U())}))},r}function an(e,t,n,r){var o=bn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,u=0;return e.__iterate((function(e,i,c){if(!s||!(s=t.call(n,e,i,c)))return u++,o(e,r?i:u-1,a)})),u},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(I,i),u=!0,c=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?e:z(o,c++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],u&&(u=t.call(n,l,i,a))}while(u);return o===I?e:z(o,i,l,e)}))},o}function sn(e,t){var n=s(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?se(e):ue(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&s(i)||u(e)&&u(i))return i}var c=new te(o);return n?c=c.toKeyedSeq():u(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function un(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function u(e,c){var l=this;e.__iterate((function(e,o){return(!t||c<t)&&a(e)?u(e,c+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return u(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],u=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var c=e.value;if(r===I&&(c=c[1]),t&&!(s.length<t)||!a(c))return n?e:z(r,u++,c,e);s.push(i),i=c.__iterator(r,o)}else i=s.pop()}return U()}))},r}function cn(e,t,n){var r=mn(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}function ln(e,t){var n=bn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):u(e)?Z(i):Y(i)}function dn(e,t,n){if(t||(t=xn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return pn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return pn(t,e,n)?n:e}))}function pn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?U():z(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function gn(e,t){return ie(e)?t:e.constructor(t)}function yn(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function vn(e){return Ve(e.size),k(e)}function mn(e){return s(e)?r:u(e)?o:i}function bn(e){return Object.create((s(e)?G:u(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!$(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Ht,Ke),Ht.of=function(){return this(arguments)},Ht.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Ht.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wt()},Ht.prototype.set=function(e,t){return $t(this,e,t)},Ht.prototype.remove=function(e){return $t(this,e,b)},Ht.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Ht.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Ht.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Ht.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Ht.isOrderedMap=Vt,Ht.prototype[h]=!0,Ht.prototype[g]=Ht.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=On(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:On(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:On(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?On(this,t,e):(this.__ownerID=e,this._map=t,this)};var Sn=Cn.prototype;function On(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function kn(e){return e._name||e.constructor.name||"Record"}function En(e,t){try{t.forEach(jn.bind(void 0,e))}catch(e){}}function jn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){we(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function An(e){return null==e?Ln():Tn(e)&&!l(e)?e:Ln().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Pn])}Sn[g]=Sn.remove,Sn.deleteIn=Sn.removeIn=Ge.removeIn,Sn.merge=Ge.merge,Sn.mergeWith=Ge.mergeWith,Sn.mergeIn=Ge.mergeIn,Sn.mergeDeep=Ge.mergeDeep,Sn.mergeDeepWith=Ge.mergeDeepWith,Sn.mergeDeepIn=Ge.mergeDeepIn,Sn.setIn=Ge.setIn,Sn.update=Ge.update,Sn.updateIn=Ge.updateIn,Sn.withMutations=Ge.withMutations,Sn.asMutable=Ge.asMutable,Sn.asImmutable=Ge.asImmutable,t(An,Oe),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Nn(fn(this,e))},An.prototype.sortBy=function(e,t){return Nn(fn(this,t,e))},An.prototype.wasAltered=function(){return this._map.wasAltered()},An.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},An.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},An.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},An.isSet=Tn;var Mn,Pn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function In(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Ln(){return Mn||(Mn=In(ot()))}function Nn(e){return null==e?Hn():Bn(e)?e:Hn().withMutations((function(t){var n=i(e);Ve(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Pn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=Ln,Dn.__make=In,t(Nn,An),Nn.of=function(){return this(arguments)},Nn.fromKeys=function(e){return this(r(e).keySeq())},Nn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Nn.isOrderedSet=Bn;var Fn,zn=Nn.prototype;function Un(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Hn(){return Fn||(Fn=Un(Wt()))}function Vn(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[$n])}zn[h]=!0,zn.__empty=Hn,zn.__make=Un,t(Vn,Se),Vn.of=function(){return this(arguments)},Vn.prototype.toString=function(){return this.__toString("Stack [","]")},Vn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Vn.prototype.peek=function(){return this._head&&this._head.value},Vn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Vn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ve(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Vn.prototype.pop=function(){return this.slice(1)},Vn.prototype.unshift=function(){return this.push.apply(this,arguments)},Vn.prototype.unshiftAll=function(e){return this.pushAll(e)},Vn.prototype.shift=function(){return this.pop.apply(this,arguments)},Vn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Vn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(M(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Vn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Vn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Vn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new F((function(){if(r){var t=r.value;return r=r.next,z(e,n++,t)}return U()}))},Vn.isStack=Kn;var Wn,$n="@@__IMMUTABLE_STACK__@@",qn=Vn.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return Wn||(Wn=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[$n]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ve(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ve(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Ht(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Vn(s(this)?this.valueSeq():this)},toList:function(){return St(s(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){return gn(this,sn(this,e.call(arguments,0)))},includes:function(e){return this.some((function(t){return ve(t,e)}))},entries:function(){return this.__iterator(I)},every:function(e,t){Ve(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return gn(this,en(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},findEntry:function(e,t){var n;return this.__iterate((function(r,o,i){if(e.call(t,r,o,i))return n=[o,r],!1})),n},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ve(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ve(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(D)},map:function(e,t){return gn(this,Jt(this,e,t))},reduce:function(e,t,n){var r,o;return Ve(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,cn(this,e,t))},flatten:function(e){return gn(this,un(this,e,!0))},fromEntrySeq:function(){return new Yt(this)},get:function(e,t){return this.find((function(t,n){return ve(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return dn(this,e)},maxBy:function(e,t){return dn(this,t,e)},min:function(e){return dn(this,e?nr(e):ir)},minBy:function(e,t){return dn(this,t?nr(t):ir,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return gn(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return gn(this,an(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(tr(e),t)},sortBy:function(e,t){return gn(this,fn(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return gn(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return gn(this,on(this,e,t))},takeUntil:function(e,t){return this.takeWhile(tr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=ar(this))}});var Xn=n.prototype;Xn[f]=!0,Xn[B]=Xn.values,Xn.__toJS=Xn.toArray,Xn.__toStringMapper=rr,Xn.inspect=Xn.toSource=function(){return this.toString()},Xn.chain=Xn.flatMap,Xn.contains=Xn.includes,function(){try{Object.defineProperty(Xn,"length",{get:function(){if(!n.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Yn(r,{flip:function(){return gn(this,Xt(this))},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey((function(t){return ve(t,e)}))},lastKeyOf:function(e){return this.findLastKey((function(t){return ve(t,e)}))},mapEntries:function(e,t){var n=this,r=0;return gn(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return gn(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Jn=r.prototype;function Qn(e,t){return t}function er(e,t){return[t,e]}function tr(e){return function(){return!e.apply(this,arguments)}}function nr(e){return function(){return-e.apply(this,arguments)}}function rr(e){return"string"==typeof e?JSON.stringify(e):e}function or(){return O(arguments)}function ir(e,t){return e<t?1:e>t?-1:0}function ar(e){if(e.size===1/0)return 0;var t=l(e),n=s(e),r=t?1:0,o=e.__iterate(n?t?function(e,t){r=31*r+ur(je(e),je(t))|0}:function(e,t){r=r+ur(je(e),je(t))|0}:t?function(e){r=31*r+je(e)|0}:function(e){r=r+je(e)|0});return sr(o,r)}function sr(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ee((t=ke(t^t>>>13,3266489909))^t>>>16)}function ur(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Jn[d]=!0,Jn[B]=Xn.entries,Jn.__toJS=Xn.toObject,Jn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+rr(e)},Yn(o,{toKeyedSeq:function(){return new qt(this,!1)},filter:function(e,t){return gn(this,en(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return gn(this,Qt(this,!1))},slice:function(e,t){return gn(this,rn(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return gn(this,1===n?r:r.concat(O(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.toKeyedSeq().findLastKey(e,t);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(e){return gn(this,un(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return gn(this,ln(this,e))},interleave:function(){var e=[this].concat(O(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(O(arguments))))},zipWith:function(e){var t=O(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[p]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype),{Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Ht,List:St,Stack:Vn,Set:An,OrderedSet:Nn,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:pe}}()).OrderedMap,DB={createFromArray:function(e){return PB(e.map((function(e){return[e.getKey(),e]})))}};var RB=MB.exports,IB=RB.Map,LB=RB.OrderedSet,NB=RB.Record,BB=LB(),FB={style:BB,entity:null},zB=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getStyle=function(){return this.get("style")},o.getEntity=function(){return this.get("entity")},o.hasStyle=function(e){return this.getStyle().includes(e)},r.applyStyle=function(e,t){var n=e.set("style",e.getStyle().add(t));return r.create(n)},r.removeStyle=function(e,t){var n=e.set("style",e.getStyle().remove(t));return r.create(n)},r.applyEntity=function(e,t){var n=e.getEntity()===t?e:e.set("entity",t);return r.create(n)},r.create=function(e){if(!e)return UB;var t=IB({style:BB,entity:null}).merge(e),n=HB.get(t);if(n)return n;var o=new r(t);return HB=HB.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?LB(t):t,entity:Array.isArray(n)?LB(n):n})},r}(NB(FB)),UB=new zB,HB=IB([[IB(FB),UB]]);zB.EMPTY=UB;var VB=zB;var KB=function(e,t,n,r){if(e.size){var o=0;e.reduce((function(e,i,a){return t(e,i)||(n(e)&&r(o,a),o=a),i})),n(e.last())&&r(o,e.count())}};var WB=VB,$B=KB,qB=MB.exports,GB=qB.List,ZB=qB.Map,YB=qB.OrderedSet,XB=qB.Record,JB=qB.Repeat,QB=YB(),eF=XB({key:"",type:"unstyled",text:"",characterList:GB(),depth:0,data:ZB()}),tF=function(e){var t,n;function r(t){return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=GB(JB(WB.EMPTY,n.length))),e}(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():QB},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){$B(this.getCharacterList(),nF,e,t)},o.findEntityRanges=function(e,t){$B(this.getCharacterList(),rF,e,t)},r}(eF);function nF(e,t){return e.getStyle()===t.getStyle()}function rF(e,t){return e.getEntity()===t.getEntity()}var oF=tF;var iF=VB,aF=KB,sF=MB.exports,uF=sF.List,cF=sF.Map,lF=sF.OrderedSet,fF=sF.Record,dF=sF.Repeat,pF=lF(),hF={parent:null,characterList:uF(),data:cF(),depth:0,key:"",text:"",type:"unstyled",children:uF(),prevSibling:null,nextSibling:null},gF=function(e,t){return e.getStyle()===t.getStyle()},yF=function(e,t){return e.getEntity()===t.getEntity()},vF=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=uF(dF(iF.EMPTY,n.length))),e},mF=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:hF;return e.call(this,vF(t))||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getKey=function(){return this.get("key")},o.getType=function(){return this.get("type")},o.getText=function(){return this.get("text")},o.getCharacterList=function(){return this.get("characterList")},o.getLength=function(){return this.getText().length},o.getDepth=function(){return this.get("depth")},o.getData=function(){return this.get("data")},o.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():pF},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.getChildKeys=function(){return this.get("children")},o.getParentKey=function(){return this.get("parent")},o.getPrevSiblingKey=function(){return this.get("prevSibling")},o.getNextSiblingKey=function(){return this.get("nextSibling")},o.findStyleRanges=function(e,t){aF(this.getCharacterList(),gF,e,t)},o.findEntityRanges=function(e,t){aF(this.getCharacterList(),yF,e,t)},r}(fF(hF)),bF=mF,wF=VB,xF=MB.exports.Map;function _F(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),u=t.getEndOffset(),c=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(xF([[s,o.get(s)]])).map((function(e,t){var o,c;i===s?(o=a,c=u):(o=t===i?a:0,c=t===s?u:e.getLength());for(var l,f=e.getCharacterList();o<c;)l=f.get(o),f=f.set(o,r?wF.applyStyle(l,n):wF.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(c),selectionBefore:t,selectionAfter:t})}var CF={add:function(e,t,n){return _F(e,t,n,!0)},remove:function(e,t,n){return _F(e,t,n,!1)}},SF=VB;var OF=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,SF.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},kF=MB.exports;var EF=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(kF.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,u=t===a?s:e.getLength();return OF(e,r,u,n)}));return e.merge({blockMap:r.merge(u),selectionBefore:t,selectionAfter:t})},jF={getRemovalRange:function(e,t,n,r,o){var i=n.split(" ");i=i.map((function(e,t){if("forward"===o){if(t>0)return" "+e}else if(t<i.length-1)return e+" ";return e}));for(var a,s=r,u=null,c=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==u||(u=s),c=a;else if(null!==u)break;s=a}var f=r+n.length,d=u===r,p=c===f;return(!d&&p||d&&!p)&&("forward"===o?c!==f&&c++:u!==r&&u--),{start:u,end:c}}},AF="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var TF=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];if(AF(t),!e){var i;if(void 0===t)i=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;(i=new Error(t.replace(/%s/g,(function(){return String(r[a++])})))).name="Invariant Violation"}throw i.framesToPop=1,i}},MF=TF;var PF=function(e,t){var n=[];return e.findEntityRanges((function(e){return e.getEntity()===t}),(function(e,t){n.push({start:e,end:t})})),n.length||("production"!==process.env.NODE_ENV?MF(!1,"Entity key not found in this range."):MF(!1)),n},DF=jF,RF=PF,IF=TF;function LF(e,t,n,r,o,i,a){var s=n.getStartOffset(),u=n.getEndOffset(),c=e.__get(o).getMutability(),l=a?s:u;if("MUTABLE"===c)return n;var f=RF(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?IF(!1,"There should only be one entity range within this removal range."):IF(!1));var d=f[0];if("IMMUTABLE"===c)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?u=d.end:s=d.start);var p=DF.getRemovalRange(s,u,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var NF=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),u=n.getEntityAt(a-1);if(!s&&!u)return r;var c=r;if(s&&s===u)c=LF(e,t,c,o,s,!0,!0);else if(s&&u){var l=LF(e,t,c,o,s,!1,!0),f=LF(e,n,c,o,u,!1,!1);c=c.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=LF(e,t,c,o,s,!1,!0);c=c.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(u){var p=LF(e,n,c,o,u,!1,!1);c=c.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return c},BF={},FF=Math.pow(2,24);var zF=function(){for(var e;void 0===e||BF.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*FF).toString(32);return BF[e]=!0,e},UF=bF,HF=zF,VF=MB.exports.OrderedMap,KF=function(e){return e.first()instanceof UF?function(e){var t,n={};return VF(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),u=r.getChildKeys(),c=r.getParentKey(),l=HF();if(n[i]=l,a&&(e.get(a)?e.setIn([a,"prevSibling"],l):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],l):e.setIn([i,"prevSibling"],null)),c&&e.get(c)){var f=e.get(c).getChildKeys();e.setIn([c,"children"],f.set(f.indexOf(r.getKey()),l))}else e.setIn([i,"parent"],null),t&&(e.setIn([t.getKey(),"nextSibling"],l),e.setIn([i,"prevSibling"],n[t.getKey()])),t=e.get(i);u.forEach((function(t){e.get(t)?e.setIn([t,"parent"],l):e.setIn([i,"children"],r.getChildKeys().filter((function(e){return e!==t})))}))}))})).toArray().map((function(e){return[n[e.getKey()],e.set("key",n[e.getKey()])]})))}(e):function(e){return VF(e.toArray().map((function(e){var t=HF();return[t,e.set("key",t)]})))}(e)},WF=VB,$F=KB,qF=TF;function GF(e,t,n){var r=t.getCharacterList(),o=n>0?r.get(n-1):void 0,i=n<r.count()?r.get(n):void 0,a=o?o.getEntity():void 0,s=i?i.getEntity():void 0;if(s&&s===a&&"MUTABLE"!==e.__get(s).getMutability()){for(var u,c=function(e,t,n){var r;return $F(e,(function(e,t){return e.getEntity()===t.getEntity()}),(function(e){return e.getEntity()===t}),(function(e,t){e<=n&&t>=n&&(r={start:e,end:t})})),"object"!=typeof r&&("production"!==process.env.NODE_ENV?qF(!1,"Removal range must exist within character list."):qF(!1)),r}(r,s,n),l=c.start,f=c.end;l<f;)u=r.get(l),r=r.set(l,WF.applyEntity(u,null)),l++;return t.set("characterList",r)}return t}var ZF=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),u=GF(r,s,a);u!==s&&(o[i]=u);var c=t.getEndKey(),l=t.getEndOffset(),f=n.get(c);i===c&&(f=u);var d=GF(r,f,l);return d!==f&&(o[c]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},YF=KF,XF=ZF,JF=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=XF(e,t).getBlockMap(),s=a.keySeq(),u=s.indexOf(n),c=s.indexOf(o)+1;return YF(a.slice(u,c).map((function(e,t){var a=e.getText(),s=e.getCharacterList();return n===o?e.merge({text:a.slice(r,i),characterList:s.slice(r,i)}):t===n?e.merge({text:a.slice(r),characterList:s.slice(r)}):t===o?e.merge({text:a.slice(0,i),characterList:s.slice(0,i)}):e})))};var QF=function(e,t,n){var r=e;if(n===r.count())t.forEach((function(e){r=r.push(e)}));else if(0===n)t.reverse().forEach((function(e){r=r.unshift(e)}));else{var o=r.slice(0,n),i=r.slice(n);r=o.concat(t,i).toList()}return r},ez=DB,tz=bF,nz=QF,rz=TF,oz=KF,iz=MB.exports.List,az=function(e,t,n,r,o,i){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:"REPLACE_WITH_NEW_DATA",s=n.get(o),u=s.getText(),c=s.getCharacterList(),l=o,f=i+r.getText().length,d=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":d=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":d=r.getData()}var p=s.getType();u&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:u.slice(0,i)+r.getText()+u.slice(i),characterList:nz(c,r.getCharacterList(),i),type:p,data:d});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},sz=function(e,t,n,r,o,i){var a=n.first()instanceof tz,s=[],u=r.size,c=n.get(o),l=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!c.getChildKeys().isEmpty()||!l.getChildKeys().isEmpty());n.forEach((function(e,t){t===o?(h?s.push(e):s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.slice(0,t),a=o.slice(0,t),s=n.first();return e.merge({text:i+s.getText(),characterList:a.concat(s.getCharacterList()),type:i?e.getType():s.getType(),data:s.getData()})}(e,i,r)),r.slice(h?0:1,u-1).forEach((function(e){return s.push(e)})),s.push(function(e,t,n){var r=e.getText(),o=e.getCharacterList(),i=r.length,a=r.slice(t,i),s=o.slice(t,i),u=n.last();return u.merge({text:u.getText()+a,characterList:u.getCharacterList().concat(s),data:u.getData()})}(e,i,r))):s.push(e)}));var g=ez.createFromArray(s);return a&&(g=function(e,t,n,r){return e.withMutations((function(t){var o=n.getKey(),i=r.getKey(),a=n.getNextSiblingKey(),s=n.getParentKey(),u=function(e,t){var n=e.getKey(),r=e,o=[];for(t.get(n)&&o.push(n);r&&r.getNextSiblingKey();){var i=r.getNextSiblingKey();if(!i)break;o.push(i),r=t.get(i)}return o}(r,e),c=u[u.length-1];if(t.get(i)?(t.setIn([o,"nextSibling"],i),t.setIn([i,"prevSibling"],o)):(t.setIn([o,"nextSibling"],r.getNextSiblingKey()),t.setIn([r.getNextSiblingKey(),"prevSibling"],o)),t.setIn([c,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],c),u.forEach((function(e){return t.setIn([e,"parent"],s)})),s){var l=e.get(s).getChildKeys(),f=l.indexOf(o)+1,d=l.toArray();d.splice.apply(d,[f,0].concat(u)),t.setIn([s,"children"],iz(d))}}))}(g,0,c,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},uz=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA";t.isCollapsed()||("production"!==process.env.NODE_ENV?rz(!1,"`insertFragment` should only be called with a collapsed selection state."):rz(!1));var o=e.getBlockMap(),i=oz(n),a=t.getStartKey(),s=t.getStartOffset(),u=o.get(a);return u instanceof tz&&(u.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?rz(!1,"`insertFragment` should not be called when a container node is selected."):rz(!1))),1===i.size?az(e,t,o,i.first(),a,s,r):sz(e,t,o,i,a,s)},cz=QF,lz=TF,fz=MB.exports.Repeat;var dz=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?lz(!1,"`insertText` should only be called with a collapsed range."):lz(!1));var o=null;if(null!=n&&(o=n.length),null==o||0===o)return e;var i=e.getBlockMap(),a=t.getStartKey(),s=t.getStartOffset(),u=i.get(a),c=u.getText(),l=u.merge({text:c.slice(0,s)+n+c.slice(s,u.getLength()),characterList:cz(u.getCharacterList(),fz(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},pz=MB.exports.Map;var hz=function(e,t,n){var r=t.getStartKey(),o=t.getEndKey(),i=e.getBlockMap(),a=i.toSeq().skipUntil((function(e,t){return t===r})).takeUntil((function(e,t){return t===o})).concat(pz([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},gz=bF,yz=function(e,t){if(!(e instanceof gz))return null;var n=e.getNextSiblingKey();if(n)return n;var r=e.getParentKey();if(!r)return null;for(var o=t.get(r);o&&!o.getNextSiblingKey();){var i=o.getParentKey();o=i?t.get(i):null}return o?o.getNextSiblingKey():null},vz=bF,mz=yz,bz=MB.exports;bz.List;var wz=bz.Map,xz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},_z=function(e,t){var n=[];if(!e)return n;for(var r=t.get(e);r&&r.getParentKey();){var o=r.getParentKey();o&&n.push(o),r=o?t.get(o):null}return n},Cz=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getNextSiblingKey();r&&!t.get(r);)r=n.get(r).getNextSiblingKey()||null;return r},Sz=function(e,t,n){if(!e)return null;for(var r=n.get(e.getKey()).getPrevSiblingKey();r&&!t.get(r);)r=n.get(r).getPrevSiblingKey()||null;return r},Oz=function(e,t,n,r){return e.withMutations((function(o){if(xz(t.getKey(),o,(function(e){return e.merge({nextSibling:Cz(e,o,r),prevSibling:Sz(e,o,r)})})),xz(n.getKey(),o,(function(e){return e.merge({nextSibling:Cz(e,o,r),prevSibling:Sz(e,o,r)})})),_z(t.getKey(),r).forEach((function(e){return xz(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Cz(e,o,r),prevSibling:Sz(e,o,r)})}))})),xz(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),xz(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:Cz(e,o,r)})})),xz(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:Sz(e,o,r)})})),xz(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),_z(n.getKey(),r).forEach((function(e){xz(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:Cz(e,o,r),prevSibling:Sz(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=mz(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?mz(o,t):null}return n}(n,r).forEach((function(e){return xz(e,o,(function(e){return e.merge({nextSibling:Cz(e,o,r),prevSibling:Sz(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();xz(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),xz(i,o,(function(e){return e.merge({nextSibling:n.getKey()})}));var a=i?e.get(i):null,s=a?a.getParentKey():null;if(t.getChildKeys().forEach((function(e){xz(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var u=e.get(s);xz(s,o,(function(e){return e.merge({children:u.getChildKeys().concat(t.getChildKeys())})}))}xz(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},kz=function(e,t,n){if(0===t)for(;t<n;)e=e.shift(),t++;else if(n===e.count())for(;n>t;)e=e.pop(),n--;else{var r=e.slice(0,t),o=e.slice(n);e=r.concat(o).toList()}return e},Ez=function(e,t){if(t.isCollapsed())return e;var n,r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),u=r.get(o),c=r.get(a),l=u instanceof vz,f=[];if(l){var d=c.getChildKeys(),p=_z(a,r);c.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(_z(mz(c,r),r))}n=u===c?kz(u.getCharacterList(),i,s):u.getCharacterList().slice(0,i).concat(c.getCharacterList().slice(s));var h=u.merge({text:u.getText().slice(0,i)+c.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&c.getParentKey()===o&&null==c.getPrevSiblingKey()?wz([[o,null]]):r.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).filter((function(e,t){return-1===f.indexOf(t)})).concat(wz([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&u!==c&&(y=Oz(y,u,c,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},jz=bF,Az=zF,Tz=MB.exports,Mz=TF,Pz=hz,Dz=Tz.List,Rz=Tz.Map,Iz=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},Lz=VB,Nz=CF,Bz=EF,Fz=NF,zz=JF,Uz=uz,Hz=dz,Vz=TF,Kz=hz,Wz=ZF,$z=Ez,qz=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?Mz(!1,"Selection range must be collapsed."):Mz(!1));var n=t.getAnchorKey(),r=e.getBlockMap(),o=r.get(n),i=o.getText();if(!i){var a=o.getType();if("unordered-list-item"===a||"ordered-list-item"===a)return Pz(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),u=o.getCharacterList(),c=Az(),l=o instanceof jz,f=o.merge({text:i.slice(0,s),characterList:u.slice(0,s)}),d=f.merge({key:c,text:i.slice(s),characterList:u.slice(s),data:Rz()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[c,d]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?Mz(!1,"ContentBlockNode must not have children"):Mz(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();Iz(t.getParentKey(),e,(function(e){var t=e.getChildKeys(),n=t.indexOf(r)+1,i=t.toArray();return i.splice(n,0,o),e.merge({children:Dz(i)})})),Iz(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),Iz(r,e,(function(e){return e.merge({nextSibling:o})})),Iz(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:c,anchorOffset:0,focusKey:c,focusOffset:0,isBackward:!1})})},Gz=MB.exports.OrderedSet,Zz={replaceText:function(e,t,n,r,o){var i=Wz(e,t),a=$z(i,t),s=Lz.create({style:r||Gz(),entity:o||null});return Hz(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Vz(!1,"Target range must be collapsed for `insertText`."):Vz(!1)),Zz.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=zz(e,t),o=Zz.removeRange(e,t,"backward");return Zz.replaceWithFragment(o,n,r)},replaceWithFragment:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=Wz(e,t),i=$z(o,t);return Uz(i,i.getSelectionAfter(),n,r)},removeRange:function(e,t,n){var r,o,i,a;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),r=t.getAnchorKey(),o=t.getFocusKey(),i=e.getBlockForKey(r),a=e.getBlockForKey(o);var s=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(s),l=a.getEntityAt(u-1);if(r===o&&c&&c===l){var f=Fz(e.getEntityMap(),i,a,t,n);return $z(e,f)}var d=Wz(e,t);return $z(d,t)},splitBlock:function(e,t){var n=Wz(e,t),r=$z(n,t);return qz(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return Nz.add(e,t,n)},removeInlineStyle:function(e,t,n){return Nz.remove(e,t,n)},setBlockType:function(e,t,n){return Kz(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Kz(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Kz(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Wz(e,t);return Bz(r,t,n)}},Yz=Zz;var Xz=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Jz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qz=KB,eU=Xz,tU=MB.exports,nU=tU.List,rU=tU.Repeat,oU=tU.Record,iU=function(){return!0},aU=oU({start:null,end:null}),sU=oU({start:null,end:null,decoratorKey:null,leaves:null}),uU={generate:function(e,t,n){var r=t.getLength();if(!r)return nU.of(new sU({start:0,end:0,decoratorKey:null,leaves:nU.of(new aU({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):nU(rU(null,r)),a=t.getCharacterList();return Qz(i,lU,iU,(function(e,t){o.push(new sU({start:e,end:t,decoratorKey:i.get(e),leaves:cU(a.slice(e,t).toList(),e)}))})),nU(o)},fromJS:function(e){var t=e.leaves,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,["leaves"]);return new sU(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Jz(e,t,n[t])}))}return e}({},n,{leaves:null!=t?nU(Array.isArray(t)?t:eU(t)).map((function(e){return aU(e)})):null}))}};function cU(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return Qz(r,lU,iU,(function(e,r){n.push(new aU({start:e+t,end:r+t}))})),nU(n)}function lU(e,t){return e===t}var fU=uU;var dU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},r}((0,MB.exports.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),pU=dU;var hU=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))};function gU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yU=pU,vU=TF,mU=hU,bU=(0,MB.exports.Map)(),wU=mU();function xU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var _U={getLastCreatedEntityKey:function(){return xU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),_U.__getLastCreatedEntityKey()},create:function(e,t,n){return xU("DraftEntity.create","contentState.createEntity"),_U.__create(e,t,n)},add:function(e){return xU("DraftEntity.add","contentState.addEntity"),_U.__add(e)},get:function(e){return xU("DraftEntity.get","contentState.getEntity"),_U.__get(e)},__getAll:function(){return bU},__loadWithEntities:function(e){bU=e,wU=mU()},mergeData:function(e,t){return xU("DraftEntity.mergeData","contentState.mergeEntityData"),_U.__mergeData(e,t)},replaceData:function(e,t){return xU("DraftEntity.replaceData","contentState.replaceEntityData"),_U.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return wU},__create:function(e,t,n){return _U.__add(new yU({type:e,mutability:t,data:n||{}}))},__add:function(e){return wU=mU(),bU=bU.set(wU,e),wU},__get:function(e){var t=bU.get(e);return t||("production"!==process.env.NODE_ENV?vU(!1,"Unknown DraftEntity key: %s.",e):vU(!1)),t},__mergeData:function(e,t){var n=_U.__get(e),r=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gU(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return bU=bU.set(e,o),o},__replaceData:function(e,t){var n=_U.__get(e).set("data",t);return bU=bU.set(e,n),n}},CU=_U;var SU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},o.getAnchorKey=function(){return this.get("anchorKey")},o.getAnchorOffset=function(){return this.get("anchorOffset")},o.getFocusKey=function(){return this.get("focusKey")},o.getFocusOffset=function(){return this.get("focusOffset")},o.getIsBackward=function(){return this.get("isBackward")},o.getHasFocus=function(){return this.get("hasFocus")},o.hasEdgeWithin=function(e,t,n){var r=this.getAnchorKey(),o=this.getFocusKey();if(r===o&&r===e){var i=this.getStartOffset(),a=this.getEndOffset();return t<=i&&i<=n||t<=a&&a<=n}if(e!==r&&e!==o)return!1;var s=e===r?this.getAnchorOffset():this.getFocusOffset();return t<=s&&n>=s},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},r.createEmpty=function(e){return new r({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},r}((0,MB.exports.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),OU=SU,kU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},EU=new RegExp("\r","g");var jU=function(e){return e.replace(EU,"")};function AU(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TU(e,t,n[t])}))}return e}function TU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MU=DB,PU=VB,DU=oF,RU=bF,IU=CU,LU=OU,NU=zF,BU=Xz,FU=kU,zU=MB.exports,UU=jU,HU=zU.List,VU=zU.Record,KU=zU.Repeat,WU=zU.Map,$U=zU.OrderedMap,qU=VU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),GU=FU("draft_tree_data_support")?RU:DU,ZU=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.getEntityMap=function(){return IU},o.getBlockMap=function(){return this.get("blockMap")},o.getSelectionBefore=function(){return this.get("selectionBefore")},o.getSelectionAfter=function(){return this.get("selectionAfter")},o.getBlockForKey=function(e){return this.getBlockMap().get(e)},o.getKeyBefore=function(e){return this.getBlockMap().reverse().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getKeyAfter=function(e){return this.getBlockMap().keySeq().skipUntil((function(t){return t===e})).skip(1).first()},o.getBlockAfter=function(e){return this.getBlockMap().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlockBefore=function(e){return this.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).first()},o.getBlocksAsArray=function(){return this.getBlockMap().toArray()},o.getFirstBlock=function(){return this.getBlockMap().first()},o.getLastBlock=function(){return this.getBlockMap().last()},o.getPlainText=function(e){return this.getBlockMap().map((function(e){return e?e.getText():""})).join(e||"\n")},o.getLastCreatedEntityKey=function(){return IU.__getLastCreatedEntityKey()},o.hasText=function(){var e=this.getBlockMap();return e.size>1||escape(e.first().getText()).replace(/%u200B/g,"").length>0},o.createEntity=function(e,t,n){return IU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return IU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return IU.__replaceData(e,t),this},o.addEntity=function(e){return IU.__add(e),this},o.getEntity=function(e){return IU.__get(e)},o.getAllEntities=function(){return IU.__getAll()},o.loadWithEntities=function(e){return IU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=MU.createFromArray(n),i=o.isEmpty()?new LU:LU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||IU,selectionBefore:i,selectionAfter:i})},r.createFromText=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(t),o=n.map((function(e){return e=UU(e),new GU({key:NU(),text:e,type:"unstyled",characterList:HU(KU(PU.EMPTY,e.length))})}));return r.createFromBlockArray(o)},r.fromJS=function(e){return new r(AU({},e,{blockMap:$U(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new LU(e.selectionBefore),selectionAfter:new LU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new GU(AU({},e,{data:WU(e.data),characterList:null!=t?HU((Array.isArray(t)?t:BU(t)).map((function(e){return PU.fromJS(e)}))):void 0}))},r}(qU),YU=ZU,XU=TF,JU=null;function QU(e){return"LTR"===e||"RTL"===e}function eH(e){return QU(e)||("production"!==process.env.NODE_ENV?XU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):XU(!1)),"LTR"===e?"ltr":"rtl"}function tH(e){JU=e}var nH={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:QU,getHTMLDir:eH,getHTMLDirIfDifferent:function(e,t){return QU(e)||("production"!==process.env.NODE_ENV?XU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):XU(!1)),QU(t)||("production"!==process.env.NODE_ENV?XU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):XU(!1)),e===t?null:eH(e)},setGlobalDir:tH,initGlobalDir:function(){tH("LTR")},getGlobalDir:function(){return JU||this.initGlobalDir(),JU||("production"!==process.env.NODE_ENV?XU(!1,"Global direction not set."):XU(!1)),JU}},rH=nH,oH=TF,iH="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",aH="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",sH=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+iH+aH+"]"),uH=new RegExp("["+iH+aH+"]");function cH(e){var t=sH.exec(e);return null==t?null:t[0]}function lH(e){var t=cH(e);return null==t?rH.NEUTRAL:uH.exec(t)?rH.RTL:rH.LTR}function fH(e,t){if(t=t||rH.NEUTRAL,!e.length)return t;var n=lH(e);return n===rH.NEUTRAL?t:n}function dH(e,t){return t||(t=rH.getGlobalDir()),rH.isStrong(t)||("production"!==process.env.NODE_ENV?oH(!1,"Fallback direction must be a strong direction"):oH(!1)),fH(e,t)}var pH={firstStrongChar:cH,firstStrongCharDir:lH,resolveBlockDir:fH,getDirection:dH,isDirectionLTR:function(e,t){return dH(e,t)===rH.LTR},isDirectionRTL:function(e,t){return dH(e,t)===rH.RTL}};function hH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gH,yH=pH,vH=nH,mH=TF,bH=function(){function e(e){hH(this,"_defaultDir",void 0),hH(this,"_lastDir",void 0),e?vH.isStrong(e)||("production"!==process.env.NODE_ENV?mH(!1,"Default direction must be a strong direction (LTR or RTL)"):mH(!1)):e=vH.getGlobalDir(),this._defaultDir=e,this.reset()}var t=e.prototype;return t.reset=function(){this._lastDir=this._defaultDir},t.getDirection=function(e){return this._lastDir=yH.getDirection(e,this._lastDir),this._lastDir},e}(),wH=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},xH=bH,_H=MB.exports,CH=wH,SH=_H.OrderedMap;function OH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kH(e,t,n[t])}))}return e}function kH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var EH=fU,jH=YU,AH={getDirectionMap:function(e,t){gH?gH.reset():gH=new xH;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return CH(gH).getDirection(e.getText())})),o=SH(n.keySeq().zip(r));return null!=t&&_H.is(t,o)?t:o}},TH=OU,MH=MB.exports,PH=MH.OrderedSet,DH=MH.Record,RH=MH.Stack,IH=MH.OrderedMap,LH=MH.List,NH=DH({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:RH(),selection:null,treeMap:null,undoStack:RH()}),BH=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(jH.createFromText(e),n)},t.createWithContent=function(e,n){if(0===e.getBlockMap().count())return t.createEmpty(n);var r=e.getBlockMap().first().getKey();return t.create({currentContent:e,undoStack:RH(),redoStack:RH(),decorator:n||null,selection:TH.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=OH({},e,{treeMap:zH(n,e.decorator),directionMap:AH.getDirectionMap(n)});return new t(new NH(r))},t.fromJS=function(e){return new t(new NH(OH({},e,{directionMap:null!=e.directionMap?IH(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?PH(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?jH.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?RH(e.redoStack.map((function(e){return jH.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new TH(e.selection):e.selection,treeMap:null!=e.treeMap?IH(e.treeMap).map((function(e){return LH(e).map((function(e){return EH.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?RH(e.undoStack.map((function(e){return jH.fromJS(e)}))):e.undoStack,currentContent:jH.fromJS(e.currentContent)})))},t.set=function(e,n){var r=e.getImmutable().withMutations((function(t){var r=t.get("decorator"),o=r;null===n.decorator?o=null:n.decorator&&(o=n.decorator);var i=n.currentContent||e.getCurrentContent();if(o!==r){var a,s=t.get("treeMap");return a=o&&r?function(e,t,n,r,o){return n.merge(t.toSeq().filter((function(t){return r.getDecorations(t,e)!==o.getDecorations(t,e)})).map((function(t){return EH.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):zH(i,o),void t.merge({decorator:o,treeMap:a,nativelyRenderedContent:null})}i!==e.getCurrentContent()&&t.set("treeMap",function(e,t,n,r){var o=e.getCurrentContent().set("entityMap",n),i=o.getBlockMap();return e.getImmutable().get("treeMap").merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return EH.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){kH(this,"_immutable",void 0),this._immutable=e}return e.toJS=function(){return this.getImmutable().toJS()},e.getAllowUndo=function(){return this.getImmutable().get("allowUndo")},e.getCurrentContent=function(){return this.getImmutable().get("currentContent")},e.getUndoStack=function(){return this.getImmutable().get("undoStack")},e.getRedoStack=function(){return this.getImmutable().get("redoStack")},e.getSelection=function(){return this.getImmutable().get("selection")},e.getDecorator=function(){return this.getImmutable().get("decorator")},e.isInCompositionMode=function(){return this.getImmutable().get("inCompositionMode")},e.mustForceSelection=function(){return this.getImmutable().get("forceSelection")},e.getNativelyRenderedContent=function(){return this.getImmutable().get("nativelyRenderedContent")},e.getLastChangeType=function(){return this.getImmutable().get("lastChangeType")},e.getInlineStyleOverride=function(){return this.getImmutable().get("inlineStyleOverride")},t.setInlineStyleOverride=function(e,n){return t.set(e,{inlineStyleOverride:n})},e.getCurrentInlineStyle=function(){var e=this.getInlineStyleOverride();if(null!=e)return e;var t=this.getCurrentContent(),n=this.getSelection();return n.isCollapsed()?function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r>0)return o.getInlineStyleAt(r-1);if(o.getLength())return o.getInlineStyleAt(0);return HH(e,n)}(t,n):function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=e.getBlockForKey(n);if(r<o.getLength())return o.getInlineStyleAt(r);if(r>0)return o.getInlineStyleAt(r-1);return HH(e,n)}(t,n)},e.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.getDirectionMap=function(){return this.getImmutable().get("directionMap")},t.acceptSelection=function(e,t){return FH(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),FH(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new TH({anchorKey:r,anchorOffset:o,focusKey:r,focusOffset:o,isBackward:!1}))},t.moveFocusToEnd=function(e){var n=t.moveSelectionToEnd(e);return t.forceSelection(n,n.getSelection())},t.push=function(e,n,r){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.getCurrentContent()===n)return e;var i=AH.getDirectionMap(n,e.getDirectionMap());if(!e.getAllowUndo())return t.set(e,{currentContent:n,directionMap:i,lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var a=e.getSelection(),s=e.getCurrentContent(),u=e.getUndoStack(),c=n;a!==s.getSelectionAfter()||UH(e,r)?(u=u.push(s),c=c.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(c=c.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride(),f=["adjust-depth","change-block-type","split-block"];-1===f.indexOf(r)&&(l=null);var d={currentContent:c,directionMap:i,undoStack:u,redoStack:RH(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,d)},t.undo=function(e){if(!e.getAllowUndo())return e;var n=e.getUndoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=AH.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:n.shift(),redoStack:e.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},t.redo=function(e){if(!e.getAllowUndo())return e;var n=e.getRedoStack(),r=n.peek();if(!r)return e;var o=e.getCurrentContent(),i=AH.getDirectionMap(r,e.getDirectionMap());return t.set(e,{currentContent:r,directionMap:i,undoStack:e.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:r.getSelectionAfter()})},e.getImmutable=function(){return this._immutable},t}();function FH(e,t,n){return BH.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function zH(e,t){return e.getBlockMap().map((function(n){return EH.generate(e,n,t)})).toOrderedMap()}function UH(e,t){return t!==e.getLastChangeType()||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}function HH(e,t){var n=e.getBlockMap().reverse().skipUntil((function(e,n){return n===t})).skip(1).skipUntil((function(e,t){return e.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):PH()}var VH=BH,KH=bF,WH=yz,$H=MB.exports,qH=TF,GH=$H.OrderedMap,ZH=$H.List,YH=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},XH=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),u=t.getParentKey(),c=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){YH(u,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),YH(l,e,(function(e){return e.merge({nextSibling:c})})),YH(c,e,(function(e){return e.merge({prevSibling:l})})),YH(d,e,(function(e){return e.merge({prevSibling:a})})),YH(p,e,(function(e){return e.merge({nextSibling:a})})),YH(f,e,(function(e){var t=e.getChildKeys(),n=t.indexOf(s),r=i?n+1:0!==n?n-1:0,o=t.toArray();return o.splice(r,0,a),e.merge({children:ZH(o)})})),YH(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function JH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QH(e,t,n[t])}))}return e}function QH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eV=DB,tV=VB,nV=oF,rV=bF,oV=Yz,iV=VH,aV=zF,sV=MB.exports,uV=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?qH(!1,"Replacing blocks is not supported."):qH(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?qH(!1,"Block cannot be moved next to itself."):qH(!1));var a=e.getBlockMap(),s=t instanceof KH,u=[t],c=a.delete(i);s&&(u=[],c=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=WH(t,e);e.toSeq().skipUntil((function(e){return e.getKey()===i})).takeWhile((function(e){var t=e.getKey(),o=t===i,a=n&&t!==n,s=!n&&e.getParentKey()&&(!r||t!==r);return!!(o||a||s)})).forEach((function(t){u.push(t),e.delete(t.getKey())}))})));var l=c.toSeq().takeUntil((function(e){return e===n})),f=c.toSeq().skipUntil((function(e){return e===n})).skip(1),d=u.map((function(e){return[e.getKey(),e]})),p=GH();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?qH(!1,"Block cannot be moved next to itself."):qH(!1)),p=l.concat([].concat(d,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?qH(!1,"Block cannot be moved next to itself."):qH(!1)),p=l.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:XH(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},cV=kU("draft_tree_data_support"),lV=cV?rV:nV,fV=sV.List,dV=sV.Repeat,pV={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=oV.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=oV.splitBlock(i,a),u=s.getSelectionAfter(),c=oV.setBlockType(s,u,"atomic"),l=tV.create({entity:t}),f={key:aV(),type:"atomic",text:n,characterList:fV(dV(l,n.length))},d={key:aV(),type:"unstyled"};cV&&(f=JH({},f,{nextSibling:d.key}),d=JH({},d,{prevSibling:f.key}));var p=[new lV(f),new lV(d)],h=eV.createFromArray(p),g=oV.replaceWithFragment(c,u,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return iV.push(e,y,"insert-fragment")},moveAtomicBlock:function(e,t,n,r){var o,i=e.getCurrentContent(),a=e.getSelection();if("before"===r||"after"===r){var s=i.getBlockForKey("before"===r?n.getStartKey():n.getEndKey());o=uV(i,t,s,r)}else{var u=oV.removeRange(i,n,"backward"),c=u.getSelectionAfter(),l=u.getBlockForKey(c.getFocusKey());if(0===c.getStartOffset())o=uV(u,t,l,"before");else if(c.getEndOffset()===l.getLength())o=uV(u,t,l,"after");else{var f=oV.splitBlock(u,c),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=uV(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return iV.push(e,h,"move-block")}};var hV=MB.exports.List,gV=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_decorators",void 0),this._decorators=e.slice()}var t=e.prototype;return t.getDecorations=function(e,t){var n=Array(e.getText().length).fill(null);return this._decorators.forEach((function(r,o){var i=0;(0,r.strategy)(e,(function(e,t){(function(e,t,n){for(var r=t;r<n;r++)if(null!=e[r])return!1;return!0})(n,e,t)&&(!function(e,t,n,r){for(var o=t;o<n;o++)e[o]=r}(n,e,t,o+"."+i),i++)}),t)})),hV(n)},t.getComponentForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].component},t.getPropsForKey=function(e){var t=parseInt(e.split(".")[0],10);return this._decorators[t].props},e}();var yV=gV;function vV(e){return e.replace(/\//g,"-")}var mV=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(vV).join(" "):Array.prototype.map.call(arguments,vV).join(" ")},bV=s.default,wV=mV,xV=(0,MB.exports.Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:bV.createElement("ul",{className:wV("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:bV.createElement("ol",{className:wV("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:bV.createElement("pre",{className:wV("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),_V={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},CV={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",u="model",c="name",l="type",f="vendor",d="version",p="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",S="Firefox",O="Google",k="Huawei",E="LG",j="Microsoft",A="Motorola",T="Opera",M="Samsung",P="Sony",D="Xiaomi",R="Zebra",I="Facebook",L=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},N=function(e,t){return typeof e===s&&-1!==B(t).indexOf(B(e))},B=function(e){return e.toLowerCase()},F=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,"").replace(/\s\s*$/,""),typeof t===i?e:e.substring(0,255)},z=function(e,t){for(var n,i,s,u,c,l,f=0;f<t.length&&!c;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!c;)if(c=d[n++].exec(e))for(s=0;s<p.length;s++)l=c[++i],typeof(u=p[s])===a&&u.length>0?2===u.length?typeof u[1]==o?this[u[0]]=u[1].call(this,l):this[u[0]]=u[1]:3===u.length?typeof u[1]!==o||u[1].exec&&u[1].test?this[u[0]]=l?l.replace(u[1],u[2]):r:this[u[0]]=l?u[1].call(this,l,u[2]):r:4===u.length&&(this[u[0]]=l?u[3].call(this,l.replace(u[1],u[2])):r):this[u]=l||r;f+=2}},U=function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o<t[n].length;o++)if(N(t[n][o],e))return"?"===n?r:n}else if(N(t[n],e))return"?"===n?r:n;return e},H={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},V={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[c,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[c,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[c,d],[/opios[\/ ]+([\w\.]+)/i],[d,[c,"Opera Mini"]],[/\bopr\/([\w\.]+)/i],[d,[c,T]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[c,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[c,"UCBrowser"]],[/\bqbcore\/([\w\.]+)/i],[d,[c,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[c,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[c,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[c,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[c,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[c,/(.+)/,"$1 Secure Browser"],d],[/\bfocus\/([\w\.]+)/i],[d,[c,"Firefox Focus"]],[/\bopt\/([\w\.]+)/i],[d,[c,"Opera Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[c,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[c,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[c,"Opera Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[c,"MIUI Browser"]],[/fxios\/([-\w\.]+)/i],[d,[c,S]],[/\bqihu|(qi?ho?o?|360)browser/i],[[c,"360 Browser"]],[/(oculus|samsung|sailfish)browser\/([\w\.]+)/i],[[c,/(.+)/,"$1 Browser"],d],[/(comodo_dragon)\/([\w\.]+)/i],[[c,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[c,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i],[c],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[c,I],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[c,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[c,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[c,"Chrome Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[c,"Chrome WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[c,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[c,d],[/version\/([\w\.]+) .*mobile\/\w+ (safari)/i],[d,[c,"Mobile Safari"]],[/version\/([\w\.]+) .*(mobile ?safari|safari)/i],[d,c],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[c,[d,U,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[c,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[c,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[c,"Firefox Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[c,d]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,B]],[/((?:i[346]|x)86)[;\)]/i],[[p,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[p,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[p,"armhf"]],[/windows (ce|mobile); ppc;/i],[[p,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[p,/ower/,"",B]],[/(sun4\w)[;\)]/i],[[p,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[p,B]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[pt]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[u,[f,M],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[u,[f,M],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[u,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[u,[f,x],[l,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[u,[f,k],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}-[atu]?[ln][01259x][012359][an]?)\b(?!.+d\/s)/i],[u,[f,k],[l,g]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[u,/_/g," "],[f,D],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[u,/_/g," "],[f,D],[l,y]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[u,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[u,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[u,[f,"Realme"],[l,g]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[u,[f,A],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[u,[f,A],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[u,[f,E],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[u,[f,E],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[u,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[u,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[u,[f,O],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[u,[f,O],[l,g]],[/droid.+ ([c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[u,[f,P],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[u,"Xperia Tablet"],[f,P],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[u,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[u,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[u,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[u,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[u,[f,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[u,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[u,[f,_],[l,g]],[/(nexus 9)/i],[u,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony)[-_ ]?([-\w]*)/i],[f,[u,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[u,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[u,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[u,[f,"Sharp"],[l,g]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[f,u,[l,g]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[f,u,[l,y]],[/(surface duo)/i],[u,[f,j],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[u,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[u,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[u,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[u,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[u,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[u,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[u,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[u,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[u,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[u,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[u,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[u,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[u,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],u,[l,y]],[/\b(ns-?\w{0,9}) b/i],[u,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[u,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],u,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],u,[l,g]],[/\b(ph-1) /i],[u,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[u,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[u,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[u,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[u,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,u,[l,g]],[/(kin\.[onetw]{3})/i],[[u,/\./g," "],[f,j],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[u,[f,R],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[u,[f,R],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,u,[l,h]],[/droid.+; (shield) bui/i],[u,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[u,[f,P],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[u,[f,j],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[u,/^/,"SmartTV"],[f,M],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,E],[l,v]],[/(apple) ?tv/i],[f,[u,"Apple TV"],[l,v]],[/crkey/i],[[u,"Chromecast"],[f,O],[l,v]],[/droid.+aft(\w)( bui|\))/i],[u,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i],[u,[f,"Sharp"],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,F],[u,F],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,u,[l,m]],[/droid.+; (glass) \d/i],[u,[f,O],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[u,[f,R],[l,m]],[/(quest( 2)?)/i],[u,[f,I],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[u,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[u,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[u,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[c,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[c,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[c,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,c]],os:[[/microsoft (windows) (vista|xp)/i],[c,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[c,[d,U,H]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[c,"Windows"],[d,U,H]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[c,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[c,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86)/i],[d,c],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[c,d],[/\(bb(10);/i],[d,[c,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[c,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[c,"Firefox OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[c,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[c,"Chromecast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[c,"Chromium OS"],d],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[c,d],[/(sunos) ?([\w\.\d]*)/i],[[c,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[c,d]]},K=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof K))return new K(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),u=t?function(e,t){var n={};for(var r in e)t[r]&&t[r].length%2==0?n[r]=t[r].concat(e[r]):n[r]=e[r];return n}(V,t):V;return this.getBrowser=function(){var e,t={};return t.name=r,t.version=r,z.call(t,o,u.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e.architecture=r,z.call(e,o,u.cpu),e},this.getDevice=function(){var e={};return e.vendor=r,e.model=r,e.type=r,z.call(e,o,u.device),e},this.getEngine=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.engine),e},this.getOS=function(){var e={};return e.name=r,e.version=r,z.call(e,o,u.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===s&&e.length>255?F(e,255):e,this},this.setUA(o),this};K.VERSION="0.7.31",K.BROWSER=L([c,d,"major"]),K.CPU=L([p]),K.DEVICE=L([u,f,l,h,g,v,y,m,b]),K.ENGINE=K.OS=L([c,d]),e.exports&&(t=e.exports=K),t.UAParser=K;var W=typeof n!==i&&(n.jQuery||n.Zepto);if(W&&!W.ua){var $=new K;W.ua=$.getResult(),W.ua.get=function(){return $.getUA()},W.ua.set=function(e){$.setUA(e);var t=$.getResult();for(var n in t)W.ua[n]=t[n]}}}("object"==typeof window?window:ot)}(CV,CV.exports);var SV="Unknown",OV={"Mac OS":"Mac OS X"};var kV,EV=(new(0,CV.exports)).getResult(),jV=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(EV.browser.version),AV={browserArchitecture:EV.cpu.architecture||SV,browserFullVersion:EV.browser.version||SV,browserMinorVersion:jV.minor||SV,browserName:EV.browser.name||SV,browserVersion:EV.browser.major||SV,deviceName:EV.device.model||SV,engineName:EV.engine.name||SV,engineVersion:EV.engine.version||SV,platformArchitecture:EV.cpu.architecture||SV,platformName:(kV=EV.os.name,OV[kV]||kV||SV),platformVersion:EV.os.version||SV,platformFullVersion:EV.os.version||SV},TV=TF,MV=/\./,PV=/\|\|/,DV=/\s+\-\s+/,RV=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,IV=/^(\d*)(.*)/;function LV(e,t){var n=e.split(PV);return n.length>1?n.some((function(e){return qV.contains(e,t)})):function(e,t){var n=e.split(DV);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?TV(!1,'the "-" operator expects exactly 2 operands'):TV(!1)),1===n.length)return NV(n[0],t);var r=n[0],o=n[1];return HV(r)&&HV(o)||("production"!==process.env.NODE_ENV?TV(!1,'operands to the "-" operator must be simple (no modifiers)'):TV(!1)),NV(">="+r,t)&&NV("<="+o,t)}(e=n[0].trim(),t)}function NV(e,t){if(""===(e=e.trim()))return!0;var n=t.split(MV),r=zV(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return BV(n,i);case"<=":return function(e,t){var n=$V(e,t);return-1===n||0===n}(n,i);case">=":return FV(n,i);case">":return function(e,t){return 1===$V(e,t)}(n,i);case"~":case"~>":return function(e,t){var n=t.slice(),r=t.slice();r.length>1&&r.pop();var o=r.length-1,i=parseInt(r[o],10);UV(i)&&(r[o]=i+1+"");return FV(e,n)&&BV(e,r)}(n,i);default:return function(e,t){return 0===$V(e,t)}(n,i)}}function BV(e,t){return-1===$V(e,t)}function FV(e,t){var n=$V(e,t);return 1===n||0===n}function zV(e){var t=e.split(MV),n=t[0].match(RV);return n||("production"!==process.env.NODE_ENV?TV(!1,"expected regex to match but it did not"):TV(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function UV(e){return!isNaN(e)&&isFinite(e)}function HV(e){return!zV(e).modifier}function VV(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function KV(e,t){var n=e.match(IV)[1],r=t.match(IV)[1],o=parseInt(n,10),i=parseInt(r,10);return UV(o)&&UV(i)&&o!==i?WV(o,i):WV(e,t)}function WV(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?TV(!1,'"a" and "b" must be of the same type'):TV(!1)),e>t?1:e<t?-1:0}function $V(e,t){for(var n=function(e,t){VV(e=e.slice(),(t=t.slice()).length);for(var n=0;n<t.length;n++){var r=t[n].match(/^[x*]$/i);if(r&&(t[n]=e[n]="0","*"===r[0]&&n===t.length-1))for(var o=n;o<e.length;o++)e[o]="0"}return VV(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=KV(r[i],o[i]);if(a)return a}return 0}var qV={contains:function(e,t){return LV(e.trim(),t.trim())}},GV=qV,ZV=Object.prototype.hasOwnProperty;var YV=function(e,t,n){if(!e)return null;var r={};for(var o in e)ZV.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var XV=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},JV=AV,QV=GV;function eK(e,t,n,r){if(e===n)return!0;if(!n.startsWith(e))return!1;var o=n.slice(e.length);return!!t&&(o=r?r(o):o,QV.contains(o,t))}function tK(e){return"Windows"===JV.platformName?e.replace(/^\s*NT/,""):e}var nK=YV({isBrowser:function(e){return eK(JV.browserName,JV.browserFullVersion,e)},isBrowserArchitecture:function(e){return eK(JV.browserArchitecture,null,e)},isDevice:function(e){return eK(JV.deviceName,null,e)},isEngine:function(e){return eK(JV.engineName,JV.engineVersion,e)},isPlatform:function(e){return eK(JV.platformName,JV.platformFullVersion,e,tK)},isPlatformArchitecture:function(e){return eK(JV.platformArchitecture,null,e)}},XV);var rK=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var oK=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},iK=oK;var aK=function e(t){if(iK(t)){var n=t,r=n.getAttribute("data-offset-key");if(r)return r;for(var o=0;o<n.childNodes.length;o++){var i=e(n.childNodes[o]);if(i)return i}}return null},sK=rK,uK=aK;var cK=function(e){for(var t=e;t&&t!==sK(e).documentElement;){var n=uK(t);if(null!=n)return n;t=t.parentNode}return null};var lK=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function fK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dK=nK,pK=cK,hK=lK,gK=TF,yK=wH,vK=MB.exports.Map,mK={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},bK=dK.isBrowser("IE <= 11"),wK=function(){function e(e){var t=this;fK(this,"observer",void 0),fK(this,"container",void 0),fK(this,"mutations",void 0),fK(this,"onCharData",void 0),this.container=e,this.mutations=vK();var n=hK(e);n.MutationObserver&&!bK?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?gK(!1,"Expected target to be an instance of Node"):gK(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,mK):this.container.addEventListener("DOMCharacterDataModified",this.onCharData)},t.stopAndFlushMutations=function(){var e=this.observer;e?(this.registerMutations(e.takeRecords()),e.disconnect()):this.container.removeEventListener("DOMCharacterDataModified",this.onCharData);var t=this.mutations;return this.mutations=vK(),t},t.registerMutations=function(e){for(var t=0;t<e.length;t++)this.registerMutation(e[t])},t.getMutationTextContent=function(e){var t=e.type,n=e.target,r=e.removedNodes;if("characterData"===t){if(""!==n.textContent)return bK?n.textContent.replace("\n",""):n.textContent}else if("childList"===t){if(r&&r.length)return"";if(""!==n.textContent)return n.textContent}return null},t.registerMutation=function(e){var t=this.getMutationTextContent(e);if(null!=t){var n=yK(pK(e.target));this.mutations=this.mutations.set(n,t)}},e}(),xK={encode:function(e,t,n){return e+"-"+t+"-"+n},decode:function(e){var t=e.split("-").reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join("-"),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},_K={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105},CK={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var SK=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},OK=TF,kK=SK;var EK=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?OK(!1,"Missing editorNode"):OK(!1)),kK(t.firstChild)||("production"!==process.env.NODE_ENV?OK(!1,"editorNode.firstChild is not an HTMLElement"):OK(!1)),t.firstChild},jK=xK,AK=wH;var TK=function(e,t,n,r,o){var i=AK(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=jK.decode(t),s=a.blockKey,u=e.getBlockTree(s),c=u&&u.getIn([a.decoratorKey,"leaves",a.leafKey]),l=jK.decode(r),f=l.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!c||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=c.get("start"),g=p.get("start"),y=c?h+n:null,v=p?g+o:null,m=i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v;if(m)return i;var b=!1;if(s===f){var w=c.get("end"),x=p.get("end");b=g===h&&x===w?o<n:g<h}else{var _=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first();b=_===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:b})},MK=cK,PK=aK,DK=TK,RK=TF,IK=oK,LK=wH;function NK(e,t,n){var r=t,o=MK(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?RK(!1,"Unknown node in selection range."):RK(!1)),e===r)&&(r=r.firstChild,IK(r)||("production"!==process.env.NODE_ENV?RK(!1,"Invalid DraftEditorContents node."):RK(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?RK(!1,"Invalid DraftEditorContents structure."):RK(!1)),n>0&&(n=r.childNodes.length));if(0===n){var i=null;if(null!=o)i=o;else{var a=function(e){for(;e.firstChild&&(IK(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||PK(e.firstChild));)e=e.firstChild;return e}(r);i=LK(PK(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],u=null,c=null;if(PK(s)){var l=function(e){for(;e.lastChild&&(IK(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||PK(e.lastChild));)e=e.lastChild;return e}(s);u=LK(PK(l)),c=BK(l)}else u=LK(o),c=BK(s);return{key:u,offset:c}}function BK(e){var t=e.textContent;return"\n"===t?0:t.length}var FK=function(e,t,n,r,o,i){var a=n.nodeType===Node.TEXT_NODE,s=o.nodeType===Node.TEXT_NODE;if(a&&s)return{selectionState:DK(e,LK(MK(n)),r,LK(MK(o)),i),needsRecovery:!1};var u=null,c=null,l=!0;return a?(u={key:LK(MK(n)),offset:r},c=NK(t,o,i)):s?(c={key:LK(MK(o)),offset:i},u=NK(t,n,r)):(u=NK(t,n,r),c=NK(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:DK(e,u.key,u.offset,c.key,c.offset),needsRecovery:l}},zK=FK;var UK=function(e,t){var n=t.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.anchorOffset,i=n.focusNode,a=n.focusOffset;return 0===n.rangeCount||null==r||null==i?{selectionState:e.getSelection().set("hasFocus",!1),needsRecovery:!1}:zK(e,t,r,o,i,a)},HK=CK,VK=VH,KK=EK,WK=UK;var $K=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();HK.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=WK(n,KK(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?VK.forceSelection(n,o):VK.acceptSelection(n,o),e.update(n))}};var qK={notEmptyKey:function(e){return null!=e&&""!=e}},GK=qK.notEmptyKey;function ZK(e,t){return GK(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var YK=function(e,t){var n;if(t.isCollapsed()){var r=t.getAnchorKey(),o=t.getAnchorOffset();return o>0?(n=e.getBlockForKey(r).getEntityAt(o-1))!==e.getBlockForKey(r).getEntityAt(o)?null:ZK(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),ZK(e.getEntityMap(),n)},XK=wK,JK=Yz,QK=xK,eW=VH,tW=_K,nW=$K,rW=EK,oW=UK,iW=YK,aW=wH,sW=nK.isBrowser("IE"),uW=!1,cW=!1,lW=null;var fW,dW,pW={onCompositionStart:function(e){cW=!0,function(e){lW||(lW=new XK(rW(e))).start()}(e)},onCompositionEnd:function(e){uW=!1,cW=!1,setTimeout((function(){uW||pW.resolveComposition(e)}),20)},onSelect:nW,onKeyDown:function(e,t){if(!cW)return pW.resolveComposition(e),void e._onKeyDown(t);t.which!==tW.RIGHT&&t.which!==tW.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===tW.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!cW){var t=aW(lW).stopAndFlushMutations();lW=null,uW=!0;var n=eW.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=QK.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,u=n.getBlockTree(i).getIn([a,"leaves",s]),c=u.start,l=u.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:c,focusOffset:l,isBackward:!1}),d=iW(r,f),p=r.getBlockForKey(i).getInlineStyleAt(c);r=JK.replaceText(r,f,e,p,d),n=eW.set(n,{currentContent:r})}));var o=oW(n,rW(e)).selectionState;e.restoreEditorDOM();var i=sW?eW.forceSelection(n,o):eW.acceptSelection(n,o);e.update(eW.push(i,r,"insert-characters"))}else e.update(n)}}},hW=pW;function gW(){if(dW)return fW;dW=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}var n=xK,r=s.default,o=pH,i=nH,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}return s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var e=this.props,a=e.block,s=e.children,u=e.contentState,c=e.decorator,l=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=a.getKey(),g=d.get("leaves"),y=c.getComponentForKey(l),v=c.getPropsForKey(l),m=n.encode(h,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=i.getHTMLDirIfDifferent(o.getDirection(b),f);return r.createElement(y,t({},v,{contentState:u,decoratedText:b,dir:w,key:m,entityKey:a.getEntityAt(d.get("start")),offsetKey:m}),s)},u}(r.Component);return fW=a}function yW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function vW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var mW=s.default,bW=TF,wW=oK,xW=nK.isBrowser("IE <= 11");var _W=function(e){var t,n;function r(t){var n;return vW(yW(n=e.call(this,t)||this),"_forceFlag",void 0),vW(yW(n),"_node",void 0),n._forceFlag=!1,n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){var t=this._node,n=""===e.children;wW(t)||("production"!==process.env.NODE_ENV?bW(!1,"node is not an Element"):bW(!1));var r=t;return n?!function(e){return xW?"\n"===e.textContent:"BR"===e.tagName}(r):r.textContent!==e.children},o.componentDidMount=function(){this._forceFlag=!this._forceFlag},o.componentDidUpdate=function(){this._forceFlag=!this._forceFlag},o.render=function(){var e,t=this;return""===this.props.children?this._forceFlag?(e=function(e){return t._node=e},xW?mW.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):mW.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return xW?mW.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):mW.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):mW.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(mW.Component),CW=_W,SW=oK;var OW=function(e){return!(!e||!e.ownerDocument)&&(SW(e)&&"BR"===e.nodeName)};var kW=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))},EW=kW;var jW=function(e){return EW(e)&&3==e.nodeType},AW=jW;var TW=function e(t,n){return!(!t||!n)&&(t===n||!AW(t)&&(AW(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var MW=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}},PW=CK,DW=TW,RW=MW,IW=rK,LW=TF,NW=oK,BW=nK.isBrowser("IE");function FW(e,t){if(!e)return"[empty]";var n=zW(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(NW(n)||("production"!==process.env.NODE_ENV?LW(!1,"Node must be an Element if it is not a text node."):LW(!1)),n.outerHTML)}function zW(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return IW(e).createTextNode("[text "+r+(n.length?" | "+n.join(", "):"")+"]")}var o=e.cloneNode();1===o.nodeType&&n.length&&o.setAttribute("data-labels",n.join(", "));for(var i=e.childNodes,a=0;a<i.length;a++)o.appendChild(zW(i[a],t));return o}function UW(e,t){for(var n=e,r=n;n;){if(NW(n)&&r.hasAttribute("contenteditable"))return FW(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function HW(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function VW(e,t,n,r){var o=RW();if(e.extend&&null!=t&&DW(o,t)){n>HW(t)&&PW.logSelectionStateFailure({anonymizedDom:UW(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())});var i=t===e.focusNode;try{e.rangeCount>0&&e.extend&&e.extend(t,n)}catch(a){throw PW.logSelectionStateFailure({anonymizedDom:UW(t,(function(t){var n=[];return t===o&&n.push("active element"),t===e.anchorNode&&n.push("selection anchor node"),t===e.focusNode&&n.push("selection focus node"),n})),extraParams:JSON.stringify({activeElementName:o?o.nodeName:null,nodeIsFocus:t===e.focusNode,nodeWasFocus:i,selectionRangeCount:e.rangeCount,selectionAnchorNodeName:e.anchorNode?e.anchorNode.nodeName:null,selectionAnchorOffset:e.anchorOffset,selectionFocusNodeName:e.focusNode?e.focusNode.nodeName:null,selectionFocusOffset:e.focusOffset,message:a?""+a:null,offset:n},null,2),selectionState:JSON.stringify(r.toJS(),null,2)}),a}}else if(t&&e.rangeCount>0){var a=e.getRangeAt(0);a.setEnd(t,n),e.addRange(a.cloneRange())}}function KW(e,t,n,r){var o=IW(t).createRange();if(n>HW(t)&&PW.logSelectionStateFailure({anonymizedDom:UW(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),BW)try{e.addRange(o)}catch(e){"production"!==process.env.NODE_ENV&&console.warn("Call to selection.addRange() threw exception: ",e)}else e.addRange(o)}var WW=function(e,t,n,r,o){var i=IW(t);if(DW(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),u=e.getAnchorOffset(),c=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=u;s=c,u=l,c=d,l=p,f=!1}var h=s===n&&r<=u&&o>=u,g=c===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),KW(a,t,u-r,e),void VW(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),KW(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),KW(a,t,u-r,e),VW(a,y,v,e)}}else h&&(a.removeAllRanges(),KW(a,t,u-r,e)),g&&VW(a,t,l-r,e)}},$W=Ff;function qW(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GW(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ZW,YW,XW=CW,JW=s.default,QW=TF,e$=OW,t$=WW,n$=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return GW(qW(t=e.call.apply(e,[this].concat(r))||this),"leaf",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o._setSelection=function(){var e=this.props.selection;if(null!=e&&e.getHasFocus()){var t=this.props,n=t.block,r=t.start,o=t.text,i=n.getKey(),a=r+o.length;if(e.hasEdgeWithin(i,r,a)){var s=this.leaf;s||("production"!==process.env.NODE_ENV?QW(!1,"Missing node"):QW(!1));var u,c=s.firstChild;c||("production"!==process.env.NODE_ENV?QW(!1,"Missing child"):QW(!1)),c.nodeType===Node.TEXT_NODE?u=c:e$(c)?u=s:(u=c.firstChild)||("production"!==process.env.NODE_ENV?QW(!1,"Missing targetNode"):QW(!1)),t$(e,u,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?QW(!1,"Missing leafNode"):QW(!1)),t.textContent!==e.text||e.styleSet!==this.props.styleSet||e.forceSelection},o.componentDidUpdate=function(){this._setSelection()},o.componentDidMount=function(){this._setSelection()},o.render=function(){var e=this,t=this.props.block,n=this.props.text;n.endsWith("\n")&&this.props.isLast&&(n+="\n");var r=this.props,o=r.customStyleMap,i=r.customStyleFn,a=r.offsetKey,s=r.styleSet,u=s.reduce((function(e,t){var n={},r=o[t];return void 0!==r&&e.textDecoration!==r.textDecoration&&(n.textDecoration=[e.textDecoration,r.textDecoration].join(" ").trim()),$W(e,r,n)}),{});if(i){var c=i(s,t);u=$W(u,c)}return JW.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:u},JW.createElement(XW,null,n))},r}(JW.Component),r$=n$;function o$(){if(YW)return ZW;YW=1;var e=gW(),t=r$,n=xK,r=MB.exports,o=s.default,i=mV;r.List;var a=function(r){var a,s;function u(){return r.apply(this,arguments)||this}return s=r,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,u.prototype.render=function(){var r=this.props,a=r.block,s=r.contentState,u=r.customStyleFn,c=r.customStyleMap,l=r.decorator,f=r.direction,d=r.forceSelection,p=r.hasSelection,h=r.selection,g=r.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(r,i){var g=r.get("decoratorKey"),b=r.get("leaves"),w=b.size-1,x=b.map((function(e,r){var s=n.encode(y,i,r),l=e.get("start"),f=e.get("end");return o.createElement(t,{key:s,offsetKey:s,block:a,start:l,selection:p?h:null,forceSelection:d,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:c,customStyleFn:u,isLast:g===m&&r===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:r,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":n.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},u}(o.Component);return ZW=a}function i$(e,t){return!!t&&(e===t.documentElement||e===t.body)}var a$={getTop:function(e){var t=e.ownerDocument;return i$(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;i$(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return i$(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;i$(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},s$=/-(.)/g;var u$=function(e){return e.replace(s$,(function(e,t){return t.toUpperCase()}))},c$=/([A-Z])/g;var l$=function(e){return e.replace(c$,"-$1").toLowerCase()},f$=u$,d$=l$;function p$(e){return null==e?e:String(e)}var h$=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return p$(n.getPropertyValue(d$(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return p$(n.getPropertyValue(d$(t)));if("display"===t)return"none"}return e.currentStyle?p$("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[f$(t)]):p$(e.style&&e.style[f$(t)])};function g$(e,t){var n=y$.get(e,t);return"auto"===n||"scroll"===n}var y$={get:h$,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(g$(e,"overflow")||g$(e,"overflowY")||g$(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},v$=y$,m$=TW;var b$=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!m$(t,e))return{left:0,right:0,top:0,bottom:0};var n=e.getBoundingClientRect();return{left:Math.round(n.left)-t.clientLeft,right:Math.round(n.right)-t.clientLeft,top:Math.round(n.top)-t.clientTop,bottom:Math.round(n.bottom)-t.clientTop}};var w$=function(e){var t=b$(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},x$="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var _$=function(e){return(e=e||document).scrollingElement?e.scrollingElement:x$||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},C$=function(e){return e.Window&&e instanceof e.Window?{x:e.pageXOffset||e.document.documentElement.scrollLeft,y:e.pageYOffset||e.document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}};var S$=function(e){var t=_$(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=C$(e),r=e===t?e.ownerDocument.documentElement:e,o=e.scrollWidth-r.clientWidth,i=e.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,o)),n.y=Math.max(0,Math.min(n.y,i)),n};function O$(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function k$(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function E$(){return{width:window.innerWidth||O$(),height:window.innerHeight||k$()}}E$.withoutScrollbars=function(){return{width:O$(),height:k$()}};var j$,A$,T$,M$,P$=E$;function D$(){if(A$)return j$;A$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){o(e,t,n[t])}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=o$(),a=xK,u=s.default,c=a$,l=v$,f=w$,d=S$,p=P$,h=TF,g=SK;MB.exports.List;var y=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},v=function(e,t){var n=t.get(e.getType())||t.get("unstyled"),r=n.wrapper;return{Element:n.element||t.get("unstyled").element,wrapperTemplate:r}},m=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},b=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},u=o(e);return u&&(s.className=u),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},w=function(e){var s,w;function x(){for(var t,r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return o(n(t=e.call.apply(e,[this].concat(i))||this),"wrapperRef",u.createRef()),t}w=e,(s=x).prototype=Object.create(w.prototype),s.prototype.constructor=s,s.__proto__=w;var _=x.prototype;return _.shouldComponentUpdate=function(e){var t=this.props,n=t.block,r=t.direction,o=t.tree,i=!n.getChildKeys().isEmpty(),a=n!==e.block||o!==e.tree||r!==e.direction||y(e.selection,e.block.getKey())&&e.forceSelection;return i||a},_.componentDidMount=function(){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this.wrapperRef.current;if(n){var r,o=l.getScrollParent(n),i=d(o);if(o===window){var a=f(n);(r=a.y+a.height-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{g(n)||("production"!==process.env.NODE_ENV?h(!1,"blockNode is not an HTMLElement"):h(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},_.render=function(){var e=this,n=this.props,o=n.block,s=n.blockRenderMap,c=n.blockRendererFn,l=n.blockStyleFn,f=n.contentState,d=n.decorator,p=n.editorKey,h=n.editorState,g=n.customStyleFn,w=n.customStyleMap,_=n.direction,C=n.forceSelection,S=n.selection,O=n.tree,k=null;o.children.size&&(k=o.children.reduce((function(t,n){var o=a.encode(n,0,0),i=f.getBlockForKey(n),d=m(i,c),g=d.CustomComponent||x,y=v(i,s),w=y.Element,_=y.wrapperTemplate,C=b(i,p,o,l,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(u.createElement(w,C,u.createElement(g,S))),!_||function(e,t){var n=e.getNextSiblingKey();return!!n&&t.getBlockForKey(n).getType()===e.getType()}(i,f)||function(e,t,n){var r=[],o=!0,i=!1,s=void 0;try{for(var c,l=n.reverse()[Symbol.iterator]();!(o=(c=l.next()).done);o=!0){var f=c.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,s=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw s}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(u.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(_,w,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=m(o,c),T=A.CustomComponent,M=null!=T?u.createElement(T,t({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):u.createElement(i,{block:o,children:k,contentState:f,customStyleFn:g,customStyleMap:w,decorator:d,direction:_,forceSelection:C,hasSelection:y(S,E),selection:S,tree:O});if(o.getParentKey())return M;var P=v(o,s).Element,D=b(o,p,j,l,A,this.wrapperRef);return u.createElement(P,D,M)},x}(u.Component);return j$=w}var R$=Ff;function I$(){return I$=R$||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},I$.apply(this,arguments)}function L$(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var B$,F$,z$,U$,H$=r$,V$=xK,K$=s.default,W$=a$,$$=v$,q$=pH,G$=nH,Z$=mV,Y$=w$,X$=S$,J$=P$,Q$=TF,eq=SK,tq=wH,nq=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},rq=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return N$(L$(t=e.call.apply(e,[this].concat(r))||this),"_node",void 0),t}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.block!==e.block||this.props.tree!==e.tree||this.props.direction!==e.direction||nq(e.selection,e.block.getKey())&&e.forceSelection},o.componentDidMount=function(){if(!this.props.preventScroll){var e=this.props.selection,t=e.getEndKey();if(e.getHasFocus()&&t===this.props.block.getKey()){var n=this._node;if(null!=n){var r,o=$$.getScrollParent(n),i=X$(o);if(o===window){var a=Y$(n);(r=a.y+a.height-J$().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{eq(n)||("production"!==process.env.NODE_ENV?Q$(!1,"blockNode is not an HTMLElement"):Q$(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&W$.setTop(o,W$.getTop(o)+r+10)}}}}},o._renderChildren=function(){var e=this,t=this.props.block,n=t.getKey(),r=t.getText(),o=this.props.tree.size-1,i=nq(this.props.selection,n);return this.props.tree.map((function(a,s){var u=a.get("leaves");if(0===u.size)return null;var c=u.size-1,l=u.map((function(a,u){var l=V$.encode(n,s,u),f=a.get("start"),d=a.get("end");return K$.createElement(H$,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,d),styleSet:t.getInlineStyleAt(f),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:s===o&&u===c})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var d=tq(e.props.decorator),p=d.getComponentForKey(f);if(!p)return l;var h=d.getPropsForKey(f),g=V$.encode(n,s,0),y=u.first().get("start"),v=u.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=G$.getHTMLDirIfDifferent(q$.getDirection(m),e.props.direction),x={contentState:e.props.contentState,decoratedText:m,dir:w,start:y,end:v,blockKey:n,entityKey:b,offsetKey:g};return K$.createElement(p,I$({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=Z$({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return K$.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(K$.Component),oq=rq;var iq=kU("draft_tree_data_support")?function(){if(M$)return T$;M$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}var n=D$(),r=xK,o=s.default,i=wH,a=function(e){var a,s;function u(){return e.apply(this,arguments)||this}s=e,(a=u).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s;var c=u.prototype;return c.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),c=n.getDecorator();return o!==i||a!==s||u!==c||n.mustForceSelection()},c.render=function(){for(var e=this.props,a=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,c=e.customStyleMap,l=e.customStyleFn,f=e.editorState,d=e.editorKey,p=e.textDirectionality,h=f.getCurrentContent(),g=f.getSelection(),y=f.mustForceSelection(),v=f.getDecorator(),m=i(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),_={blockRenderMap:a,blockRendererFn:s,blockStyleFn:u,contentState:h,customStyleFn:l,customStyleMap:c,decorator:v,editorKey:d,editorState:f,forceSelection:y,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},C=(a.get(w.getType())||a.get("unstyled")).wrapper;b.push({block:o.createElement(n,t({key:x},_)),wrapperTemplate:C,key:x,offsetKey:r.encode(x,0,0)});var S=w.getNextSiblingKey();w=S?h.getBlockForKey(S):null}for(var O=[],k=0;k<b.length;){var E=b[k];if(E.wrapperTemplate){var j=[];do{j.push(b[k].block),k++}while(k<b.length&&b[k].wrapperTemplate===E.wrapperTemplate);var A=o.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return o.createElement("div",{"data-contents":"true"},O)},u}(o.Component);return T$=a}():function(){if(U$)return z$;U$=1;var e=Ff;function t(){return t=e||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},t.apply(this,arguments)}function n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){r(e,t,n[t])}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=oq,i=xK,a=s.default,u=mV,c=(F$||(F$=1,B$=function(e){var t=e||"",n=arguments.length;if(n>1)for(var r=1;r<n;r++){var o=arguments[r];o&&(t=(t?t+" ":"")+o)}return t}),B$),l=wH,f=function(e,t,n,r){return u({"public/DraftStyleDefault/unorderedListItem":"unordered-list-item"===e,"public/DraftStyleDefault/orderedListItem":"ordered-list-item"===e,"public/DraftStyleDefault/reset":n,"public/DraftStyleDefault/depth0":0===t,"public/DraftStyleDefault/depth1":1===t,"public/DraftStyleDefault/depth2":2===t,"public/DraftStyleDefault/depth3":3===t,"public/DraftStyleDefault/depth4":t>=4,"public/DraftStyleDefault/listLTR":"LTR"===r,"public/DraftStyleDefault/listRTL":"RTL"===r})},d=function(e){var r,s;function u(){return e.apply(this,arguments)||this}s=e,(r=u).prototype=Object.create(s.prototype),r.prototype.constructor=r,r.__proto__=s;var d=u.prototype;return d.shouldComponentUpdate=function(e){var t=this.props.editorState,n=e.editorState;if(t.getDirectionMap()!==n.getDirectionMap())return!0;if(t.getSelection().getHasFocus()!==n.getSelection().getHasFocus())return!0;var r=n.getNativelyRenderedContent(),o=t.isInCompositionMode(),i=n.isInCompositionMode();if(t===n||null!==r&&n.getCurrentContent()===r||o&&i)return!1;var a=t.getCurrentContent(),s=n.getCurrentContent(),u=t.getDecorator(),c=n.getDecorator();return o!==i||a!==s||u!==c||n.mustForceSelection()},d.render=function(){for(var e=this.props,r=e.blockRenderMap,s=e.blockRendererFn,u=e.blockStyleFn,d=e.customStyleMap,p=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),M=s(j),P=void 0,D=void 0,R=void 0;M&&(P=M.component,D=M.props,R=M.editable);var I=v||_.get(A),L=i.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:u,customStyleMap:d,customStyleFn:p,decorator:x,direction:I,forceSelection:w,offsetKey:L,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=r.get(T)||r.get("unstyled"),F=B.wrapper,z=B.element||r.get("unstyled").element,U=j.getDepth(),H="";if(u&&(H=u(j)),"li"===z)H=c(H,f(T,U,k!==F||null===O||U>O,I));var V=P||o,K={className:H,"data-block":!0,"data-editor":g,"data-offset-key":L,key:A};void 0!==R&&(K=n({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var W=a.createElement(z,K,a.createElement(V,t({},N,{key:A})));S.push({block:W,wrapperTemplate:F,key:A,offsetKey:L}),O=F?j.getDepth():null,k=F}for(var $=[],q=0;q<S.length;){var G=S[q];if(G.wrapperTemplate){var Z=[];do{Z.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===G.wrapperTemplate);var Y=a.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);$.push(Y)}else $.push(G.block),q++}return a.createElement("div",{"data-contents":"true"},$)},u}(a.Component);return z$=d}(),aq={isImage:function(e){return"image"===sq(e)[0]},isJpeg:function(e){var t=sq(e);return aq.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function sq(e){return e.split("/")}var uq=aq,cq=TF;var lq=function(e){return function(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}(e)?Array.isArray(e)?e.slice():function(e){var t=e.length;if((Array.isArray(e)||"object"!=typeof e&&"function"!=typeof e)&&("production"!==process.env.NODE_ENV?cq(!1,"toArray: Array-like object expected"):cq(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?cq(!1,"toArray: Object needs a length property"):cq(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?cq(!1,"toArray: Object should have keys for indices"):cq(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?cq(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):cq(!1)),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(e){}for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}(e):[e]};function fq(e){return function(){return e}}var dq=function(){};dq.thatReturns=fq,dq.thatReturnsFalse=fq(!1),dq.thatReturnsTrue=fq(!0),dq.thatReturnsNull=fq(null),dq.thatReturnsThis=function(){return this},dq.thatReturnsArgument=function(e){return e};var pq=dq,hq=uq,gq=lq,yq=pq,vq=new RegExp("\r\n","g"),mq={"text/rtf":1,"text/html":1};function bq(e){if("file"==e.kind)return e.getAsFile()}var wq=function(){function e(e){this.data=e,this.types=e.types?gq(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return mq[e]}))},t.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(vq,"\n"):null},t.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},t.isLink=function(){return this.types.some((function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")}))},t.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},t.isImage=function(){var e=this.types.some((function(e){return-1!=e.indexOf("application/x-moz-file")}));if(e)return!0;for(var t=this.getFiles(),n=0;n<t.length;n++){var r=t[n].type;if(!hq.isImage(r))return!1}return!0},t.getCount=function(){return this.data.hasOwnProperty("items")?this.data.items.length:this.data.hasOwnProperty("mozItemCount")?this.data.mozItemCount:this.data.files?this.data.files.length:null},t.getFiles=function(){return this.data.items?Array.prototype.slice.call(this.data.items).map(bq).filter(yq.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),xq=wq,_q=TF,Cq=/\.textClipping$/,Sq={"text/plain":!0,"text/html":!0,"text/rtf":!0};var Oq=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!ot.FileReader||e.type&&!(e.type in Sq))return void t("");if(""===e.type){var n="";return Cq.test(e.name)&&(n=e.name.replace(Cq,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?_q(!1,'We should be calling "FileReader.readAsText" which returns a string'):_q(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,5e3)),n==e.length&&t(r.join("\r"))}))}))};var kq=function(e){return"handled"===e||!0===e},Eq=xq,jq=Yz,Aq=VH,Tq=cK,Mq=rK,Pq=Oq,Dq=TK,Rq=lK,Iq=kq,Lq=wH;function Nq(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:Rq(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function Bq(e,t,n){var r=jq.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return Aq.push(e,r,"insert-fragment")}var Fq={onDragEnd:function(e){e.exitCurrentMode(),Nq(e)},onDrop:function(e,t){var n=new Eq(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=Mq(e.currentTarget);if("function"==typeof o.caretRangeFromPoint){var i=o.caretRangeFromPoint(e.x,e.y);n=i.startContainer,r=i.startOffset}else{if(!e.rangeParent)return null;n=e.rangeParent,r=e.rangeOffset}n=Lq(n),r=Lq(r);var a=Lq(Tq(n));return Dq(t,a,r,a,r)}(t.nativeEvent,r);if(t.preventDefault(),e._dragCount=0,e.exitCurrentMode(),null!=o){var i=n.getFiles();if(i.length>0){if(e.props.handleDroppedFiles&&Iq(e.props.handleDroppedFiles(o,i)))return;Pq(i,(function(t){t&&e.update(Bq(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&Iq(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=jq.moveText(e.getCurrentContent(),e.getSelection(),t);return Aq.push(e,n,"insert-fragment")}(r,o)):e.update(Bq(r,o,n.getText()))),Nq(e)}}}};var zq=function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=e.getBlockTree(n),o=t.getStartOffset(),i=!1;return r.some((function(e){return o===e.get("start")?(i=!0,!0):o<e.get("end")&&e.get("leaves").some((function(e){var t=e.get("start");return o===t&&(i=!0,!0)}))})),i};!function(e,t){if(!e.setImmediate){var n,r,o,i,a,s=1,u={},c=!1,l=e.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(e);f=f&&f.setTimeout?f:e,"[object process]"==={}.toString.call(e.process)?n=function(e){process.nextTick((function(){p(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){p(e.data)},n=function(e){o.port2.postMessage(e)}):l&&"onreadystatechange"in l.createElement("script")?(r=l.documentElement,n=function(e){var t=l.createElement("script");t.onreadystatechange=function(){p(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(p,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&p(+t.data.slice(i.length))},e.addEventListener?e.addEventListener("message",a,!1):e.attachEvent("onmessage",a),n=function(t){e.postMessage(i+t,"*")}),f.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var o={callback:e,args:t};return u[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete u[e]}function p(e){if(c)setTimeout(p,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{d(e),c=!1}}}}}("undefined"==typeof self?ot:self);var Uq=ot.setImmediate,Hq=Yz,Vq=VH,Kq=YK,Wq=kq,$q=zq,qq=wH,Gq=Uq,Zq=nK.isBrowser("Firefox");function Yq(e,t,n,r,o){var i=Hq.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return Vq.push(e,i,"insert-characters",o)}var Xq=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e._latestEditorState,r=t.data;if(r)if(e.props.handleBeforeInput&&Wq(e.props.handleBeforeInput(r,n,t.timeStamp)))t.preventDefault();else{var o=n.getSelection(),i=o.getStartOffset(),a=o.getAnchorKey();if(!o.isCollapsed())return t.preventDefault(),void e.update(Yq(n,r,n.getCurrentInlineStyle(),Kq(n.getCurrentContent(),n.getSelection()),!0));var s,u=Yq(n,r,n.getCurrentInlineStyle(),Kq(n.getCurrentContent(),n.getSelection()),!1),c=!1;if(c||(c=$q(e._latestCommittedEditorState)),!c){var l=n.getBlockTree(a),f=u.getBlockTree(a);c=l.size!==f.size||l.zip(f).some((function(e){var t=e[0],n=e[1],o=t.get("start"),a=o+(o>=i?r.length:0),s=t.get("end"),u=s+(s>=i?r.length:0),c=n.get("start"),l=n.get("end"),f=n.get("decoratorKey");return t.get("decoratorKey")!==f||t.get("leaves").size!==n.get("leaves").size||a!==c||u!==l||null!=f&&l-c!=s-o}))}if(c||(s=r,c=Zq&&("'"==s||"/"==s)),c||(c=qq(u.getDirectionMap()).get(a)!==qq(n.getDirectionMap()).get(a)),c)return t.preventDefault(),u=Vq.set(u,{forceSelection:!0}),void e.update(u);u=Vq.set(u,{nativelyRenderedContent:u.getCurrentContent()}),e._pendingStateFromBeforeInput=u,Gq((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},Jq=VH,Qq=TW,eG=MW;var tG=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&eG(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&Qq(o,r.anchorNode)&&Qq(o,r.focusNode)&&r.removeAllRanges()}var i=e._latestEditorState,a=i.getSelection();if(a.getHasFocus()){var s=a.set("hasFocus",!1);e.props.onBlur&&e.props.onBlur(t),e.update(Jq.acceptSelection(i,s))}},nG=VH;var rG=function(e,t){e.setMode("composite"),e.update(nG.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},oG=JF;var iG=function(e){var t=e.getSelection();return t.isCollapsed()?null:oG(e.getCurrentContent(),t)},aG=iG;var sG=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(aG(e._latestEditorState))};var uG=Yz,cG=VH,lG=v$,fG=iG,dG=S$,pG=function(e){if(!e||!("ownerDocument"in e))return!1;if("ownerDocument"in e){var t=e;if(!t.ownerDocument.defaultView)return t instanceof Node;if(t instanceof t.ownerDocument.defaultView.Node)return!0}return!1};var hG=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(pG(i)){var a=i;n=dG(lG.getScrollParent(a))}var s=fG(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=uG.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return cG.push(e,t,"remove-range")}(r))}),0)}};var gG=function(e,t){e.setMode("drag"),t.preventDefault()};var yG=function(e){e._internalDrag=!0,e.setMode("drag")},vG=VH,mG=nK;var bG=function(e,t){var n=e._latestEditorState,r=n.getSelection();if(!r.getHasFocus()){var o=r.set("hasFocus",!0);e.props.onFocus&&e.props.onFocus(t),mG.isBrowser("Chrome < 60.0.3081.0")?e.update(vG.forceSelection(n,o)):e.update(vG.acceptSelection(n,o))}},wG=TF,xG=/[\uD800-\uDFFF]/;function _G(e){return 55296<=e&&e<=57343}function CG(e){return xG.test(e)}function SG(e,t){return 1+_G(e.charCodeAt(t))}function OG(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!CG(e))return e.substr(t,n);var r=e.length;if(r<=0||t>r||n<=0)return"";var o=0;if(t>0){for(;t>0&&o<r;t--)o+=SG(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=SG(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=SG(e,i);return e.substring(o,i)}var kG={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=SG(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:SG,hasSurrogateUnit:CG,isCodeUnitInSurrogateRange:_G,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?wG(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):wG(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return 55296<=n&&n<=56319&&56320<=r&&r<=57343},strlen:function(e){if(!CG(e))return e.length;for(var t=0,n=0;n<e.length;n+=SG(e,n))t++;return t},substring:function(e,t,n){(t=t||0)<0&&(t=0),(n=void 0===n?1/0:n||0)<0&&(n=0);var r=Math.abs(n-t);return OG(e,t=t<n?t:n,r)},substr:OG},EG=kG,jG=pq;function AG(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=0,i="Warning: "+e.replace(/%s/g,(function(){return n[o++]}));"undefined"!=typeof console&&console.error(i);try{throw new Error(i)}catch(e){}}var TG="production"!==process.env.NODE_ENV?function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(!e){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];AG.apply(void 0,[t].concat(r))}}:jG,MG=TG,PG=MG;var DG=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&PG(n.isCollapsed(),"moveSelectionBackward should only be called with a collapsed SelectionState");var r=e.getCurrentContent(),o=n.getStartKey(),i=n.getStartOffset(),a=o,s=0;if(t>i){var u=r.getKeyBefore(o);if(null==u)a=o;else a=u,s=r.getBlockForKey(u).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},RG=Yz,IG=kU("draft_tree_data_support");var LG=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),u=o.getBlockForKey(a);if(IG&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(IG)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var c=o.getBlockForKey(u.nextSibling);if(!c||0===c.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return RG.removeRange(o,i,n)},NG=VH,BG=EG,FG=DG,zG=LG;var UG=function(e){var t=zG(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return FG(e,i?BG.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return NG.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},HG=Yz,VG=xK,KG=VH,WG=qK.notEmptyKey,$G=cK,qG=UG,GG=wH,ZG=nK.isEngine("Gecko");var YG=function(e,t){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0);var n=e.editor.ownerDocument.defaultView.getSelection(),r=n.anchorNode,o=n.isCollapsed,i=(null==r?void 0:r.nodeType)!==Node.TEXT_NODE&&(null==r?void 0:r.nodeType)!==Node.ELEMENT_NODE;if(null!=r&&!i){if(r.nodeType===Node.TEXT_NODE&&(null!==r.previousSibling||null!==r.nextSibling)){var a=r.parentNode;if(null==a)return;r.nodeValue=a.textContent;for(var s=a.firstChild;null!=s;s=s.nextSibling)s!==r&&a.removeChild(s)}var u=r.textContent,c=e._latestEditorState,l=GG($G(r)),f=VG.decode(l),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=c.getBlockTree(d).getIn([p,"leaves",h]),y=g.start,v=g.end,m=c.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(y,v);if(u.endsWith("\n\n")&&(u=u.slice(0,-1)),u!==w){var x,_,C,S,O=c.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=WG(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=HG.replaceText(m,k,u,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(ZG)x=n.anchorOffset,_=n.focusOffset,S=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=S;else{var P=u.length-w.length;C=O.getStartOffset(),S=O.getEndOffset(),x=o?S+P:C,_=S+P}var D=M.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:O.merge({anchorOffset:x,focusOffset:_})});e.update(KG.push(c,D,T))}else{var R=t.nativeEvent.inputType;if(R){var I=function(e,t){return"deleteContentBackward"===e?qG(t):t}(R,c);if(I!==c)return e.restoreEditorDOM(),void e.update(I)}}}},XG=_K;var JG=function(e){return e.which===XG.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},QG=nK.isPlatform("Mac OS X"),eZ={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return QG&&e.altKey},usesMacOSHeuristics:function(){return QG},hasCommandModifier:function(e){return QG?!!e.metaKey&&!e.altKey:eZ.isCtrlKeyCommand(e)},isSoftNewlineEvent:JG},tZ=eZ,nZ=Yz,rZ=VH,oZ=JF,iZ=wH,aZ=null,sZ={cut:function(e){var t=e.getCurrentContent(),n=e.getSelection(),r=null;if(n.isCollapsed()){var o=n.getAnchorKey(),i=t.getBlockForKey(o).getLength();if(i===n.getAnchorOffset()){var a=t.getKeyAfter(o);if(null==a)return e;r=n.set("focusKey",a).set("focusOffset",0)}else r=n.set("focusOffset",i)}else r=n;r=iZ(r),aZ=oZ(t,r);var s=nZ.removeRange(t,r,"forward");return s===t?e:rZ.push(e,s,"remove-range")},paste:function(e){if(!aZ)return e;var t=nZ.replaceWithFragment(e.getCurrentContent(),e.getSelection(),aZ);return rZ.push(e,t,"insert-fragment")}},uZ=TF;var cZ=nK.isBrowser("Chrome")?function(e){for(var t=e.cloneRange(),n=[],r=e.endContainer;null!=r;r=r.parentNode){var o=r===e.commonAncestorContainer;o?t.setStart(e.startContainer,e.startOffset):t.setStart(t.endContainer,0);var i,a=Array.from(t.getClientRects());if(n.push(a),o)return n.reverse(),(i=[]).concat.apply(i,n);t.setEndBefore(r)}"production"!==process.env.NODE_ENV?uZ(!1,"Found an unexpected detached subtree when getting range client rects."):uZ(!1)}:function(e){return Array.from(e.getClientRects())},lZ=cZ,fZ=EG,dZ=rK,pZ=lZ,hZ=TF;function gZ(e,t){for(var n=1/0,r=1/0,o=-1/0,i=-1/0,a=0;a<e.length;a++){var s=e[a];0!==s.width&&1!==s.width&&(n=Math.min(n,s.top),r=Math.min(r,s.bottom),o=Math.max(o,s.top),i=Math.max(i,s.bottom))}return o<=r&&o-n<t&&i-r<t}function yZ(e){switch(e.nodeType){case Node.DOCUMENT_TYPE_NODE:return 0;case Node.TEXT_NODE:case Node.PROCESSING_INSTRUCTION_NODE:case Node.COMMENT_NODE:return e.length;default:return e.childNodes.length}}var vZ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?hZ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):hZ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=dZ(e),r=n.createElement("div");r.style.fontFamily=t.fontFamily,r.style.fontSize=t.fontSize,r.style.fontStyle=t.fontStyle,r.style.fontWeight=t.fontWeight,r.style.lineHeight=t.lineHeight,r.style.position="absolute",r.textContent="M";var o=n.body;o||("production"!==process.env.NODE_ENV?hZ(!1,"Missing document.body"):hZ(!1)),o.appendChild(r);var i=r.getBoundingClientRect();return o.removeChild(r),i.height}(t),r=e.endContainer,o=e.endOffset;for(e.setStart(e.startContainer,0);gZ(pZ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?hZ(!1,"Found unexpected detached subtree when traversing."):hZ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,u=a;u>=0;u--)if(!(null!=s&&u>0&&fZ.isSurrogatePair(s,u-1))){if(e.setStart(i,u),!gZ(pZ(e),n))break;r=i,o=u}if(-1===u||0===i.childNodes.length)break;a=yZ(i=i.childNodes[u])}return e.setStart(r,o),e},mZ=VH,bZ=vZ,wZ=FK,xZ=DG,_Z=LG;var CZ=function(e,t){var n=_Z(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return xZ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=bZ(r),wZ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:mZ.push(e,n,"remove-range")},SZ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),OZ=new RegExp("^(?:"+SZ+")*(?:['‘’]|(?!"+SZ+").)*(?:(?!"+SZ+").)"),kZ=new RegExp("(?:(?!"+SZ+").)(?:['‘’]|(?!"+SZ+").)*(?:"+SZ+")*$");function EZ(e,t){var n=t?kZ.exec(e):OZ.exec(e);return n?n[0]:e}var jZ={getBackward:function(e){return EZ(e,!0)},getForward:function(e){return EZ(e,!1)}},AZ=jZ,TZ=VH,MZ=DG,PZ=LG;var DZ=MG;var RZ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&DZ(n.isCollapsed(),"moveSelectionForward should only be called with a collapsed SelectionState");var r,o=n.getStartKey(),i=n.getStartOffset(),a=e.getCurrentContent(),s=o;return t>a.getBlockForKey(o).getText().length-i?(s=a.getKeyAfter(o),r=0):r=i+t,n.merge({focusKey:s,focusOffset:r})},IZ=jZ,LZ=VH,NZ=RZ,BZ=LG;var FZ=Yz,zZ=VH;var UZ=VH;var HZ=VH;var VZ=VH,KZ=EG,WZ=RZ,$Z=LG;var qZ=Yz,GZ=VH,ZZ=JF;var YZ=VH;var XZ=Yz,JZ=VH,QZ=_K,eY=sZ,tY=nK,nY=kq,rY=CZ,oY=function(e){var t=PZ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return MZ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=AZ.getBackward(o);return MZ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:TZ.push(e,t,"remove-range")},iY=function(e){var t=BZ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=IZ.getForward(o);return NZ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:LZ.push(e,t,"remove-range")},aY=function(e){var t=FZ.splitBlock(e.getCurrentContent(),e.getSelection());return zZ.push(e,t,"split-block")},sY=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return UZ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},uY=function(e){var t=e.getSelection(),n=t.getStartKey();return HZ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},cY=UG,lY=function(e){var t=$Z(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return WZ(e,i?KZ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return VZ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},fY=function(e){var t=e.getSelection();if(!t.isCollapsed())return e;var n=t.getAnchorOffset();if(0===n)return e;var r,o,i=t.getAnchorKey(),a=e.getCurrentContent(),s=a.getBlockForKey(i).getLength();if(s<=1)return e;n===s?(r=t.set("anchorOffset",n-1),o=t):o=(r=t.set("focusOffset",n+1)).set("anchorOffset",n+1);var u=ZZ(a,r),c=qZ.removeRange(a,r,"backward"),l=c.getSelectionAfter(),f=l.getAnchorOffset()-1,d=l.merge({anchorOffset:f,focusOffset:f}),p=qZ.replaceWithFragment(c,d,u),h=GZ.push(e,p,"insert-fragment");return GZ.acceptSelection(h,o)},dY=function(e,t,n){var r=YZ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(YZ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(YZ.set(r,{nativelyRenderedContent:o}))}},pY=tZ.isOptionKeyCommand,hY=tY.isBrowser("Chrome");var gY=function(e,t){var n=t.which,r=e._latestEditorState;function o(n){var r=e.props[n];return!!r&&(r(t),!0)}switch(n){case QZ.RETURN:if(t.preventDefault(),e.props.handleReturn&&nY(e.props.handleReturn(t,r)))return;break;case QZ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case QZ.TAB:if(o("onTab"))return;break;case QZ.UP:if(o("onUpArrow"))return;break;case QZ.RIGHT:if(o("onRightArrow"))return;break;case QZ.DOWN:if(o("onDownArrow"))return;break;case QZ.LEFT:if(o("onLeftArrow"))return;break;case QZ.SPACE:hY&&pY(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!nY(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return JZ.redo(t);case"delete":return lY(t);case"delete-word":return iY(t);case"backspace":return cY(t);case"backspace-word":return oY(t);case"backspace-to-start-of-line":return rY(t,n);case"split-block":return aY(t);case"transpose-characters":return fY(t);case"move-selection-to-start-of-block":return uY(t);case"move-selection-to-end-of-block":return sY(t);case"secondary-cut":return eY.cut(t);case"secondary-paste":return eY.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else dY(t,r,e.update);else if(n===QZ.SPACE&&hY&&pY(t)){var s=XZ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(JZ.push(r,s,"insert-characters"))}};var yY=function(){function e(e){!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(this,"_uri",void 0),this._uri=e}return e.prototype.toString=function(){return this._uri},e}(),vY=yY,mY=TF,bY=nK.isBrowser("IE <= 9");var wY=function(e){var t,n=null;return!bY&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?mY(!1,"Missing doc.documentElement"):mY(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},xY=oK;var _Y=function(e){return!(!e||!e.ownerDocument)&&(xY(e)&&"A"===e.nodeName)},CY=oK;var SY,OY=function(e){return!(!e||!e.ownerDocument)&&(CY(e)&&"IMG"===e.nodeName)};function kY(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){EY(e,t,n[t])}))}return e}function EY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jY=VB,AY=oF,TY=bF,MY=xV,PY=CU,DY=vY,RY=mV,IY=zF,LY=wY,NY=kU,BY=MB.exports,FY=BY.List,zY=BY.Map,UY=BY.OrderedSet,HY=_Y,VY=OW,KY=SK,WY=OY,$Y=NY("draft_tree_data_support"),qY=new RegExp("\r","g"),GY=new RegExp("\n","g"),ZY=new RegExp("^\n","g"),YY=new RegExp("&nbsp;","g"),XY=new RegExp("&#13;?","g"),JY=new RegExp("&#8203;?","g"),QY=["bold","bolder","500","600","700","800","900"],eX=["light","lighter","normal","100","200","300","400"],tX=["className","href","rel","target","title"],nX=["alt","className","height","src","width"],rX=(EY(SY={},RY("public/DraftStyleDefault/depth0"),0),EY(SY,RY("public/DraftStyleDefault/depth1"),1),EY(SY,RY("public/DraftStyleDefault/depth2"),2),EY(SY,RY("public/DraftStyleDefault/depth3"),3),EY(SY,RY("public/DraftStyleDefault/depth4"),4),SY),oX=zY({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),iX=function(e){var t={};return e.mapKeys((function(e,n){var r=[n.element];void 0!==n.aliasedElements&&r.push.apply(r,n.aliasedElements),r.forEach((function(n){void 0===t[n]?t[n]=e:"string"==typeof t[n]?t[n]=[t[n],e]:t[n].push(e)}))})),zY(t)},aX=function(e){if(KY(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},sX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(rX).some((function(n){e.classList.contains(n)&&(t=rX[n])})),t},uX=function(e){if(!HY(e))return!1;var t=e;if(!t.href||"http:"!==t.protocol&&"https:"!==t.protocol&&"mailto:"!==t.protocol&&"tel:"!==t.protocol)return!1;try{new DY(t.href);return!0}catch(e){return!1}},cX=function(e){if(!WY(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},lX=function(e,t){if(!KY(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){QY.indexOf(r)>=0?e.add("BOLD"):eX.indexOf(r)>=0&&e.remove("BOLD"),"italic"===o?e.add("ITALIC"):"normal"===o&&e.remove("ITALIC"),"underline"===i&&e.add("UNDERLINE"),"line-through"===i&&e.add("STRIKETHROUGH"),"none"===i&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}))},fX=function(e){return"ul"===e||"ol"===e},dX=function(){function e(e,t){EY(this,"characterList",FY()),EY(this,"currentBlockType","unstyled"),EY(this,"currentDepth",0),EY(this,"currentEntity",null),EY(this,"currentText",""),EY(this,"wrapper",null),EY(this,"blockConfigs",[]),EY(this,"contentBlocks",[]),EY(this,"entityMap",PY),EY(this,"blockTypeMap",void 0),EY(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=FY(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=PY,this.wrapper=null,this.contentBlocks=[]},t.addDOMNode=function(e){var t;return this.contentBlocks=[],this.currentDepth=0,(t=this.blockConfigs).push.apply(t,this._toBlockConfigs([e],UY())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&($Y?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},t._makeBlockConfig=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.key||IY(),n=kY({key:t,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:FY(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=FY(),this.currentBlockType="unstyled",this.currentText="",n},t._toBlockConfigs=function(e,t){for(var n=[],r=0;r<e.length;r++){var o=e[r],i=o.nodeName.toLowerCase();if("body"===i||fX(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;fX(i)&&(this.wrapper=i,fX(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var u=this.blockTypeMap.get(i);if(void 0===u)if("#text"!==i)if("br"!==i)if(cX(o))this._addImgNode(o,t);else if(uX(o))this._addAnchorNode(o,n,t);else{var c=t;oX.has(i)&&(c=c.add(oX.get(i))),c=lX(o,c);var l=aX(o);null!=l&&(c=c.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),c))}else this._addBreakNode(o,t);else this._addTextNode(o,t);else{this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var f=this.currentDepth,d=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof u&&(u=this.disambiguate(i,this.wrapper)||u[0]||"unstyled"),!$Y&&KY(o)&&("unordered-list-item"===u||"ordered-list-item"===u)){var p=o;this.currentDepth=sX(p,this.currentDepth)}var h=IY(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:u})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=jY.create({style:t,entity:this.currentEntity});this.characterList=(n=this.characterList).push.apply(n,Array(e.length).fill(r))},t._trimCurrentText=function(){var e=this.currentText.length,t=e-this.currentText.trimLeft().length,n=this.currentText.trimRight().length,r=this.characterList.findEntry((function(e){return null!==e.getEntity()}));(t=void 0!==r?Math.min(t,r[0]):t)>(n=void 0!==(r=this.characterList.reverse().findEntry((function(e){return null!==e.getEntity()})))?Math.max(n,e-r[0]):n)?(this.currentText="",this.characterList=FY()):(this.currentText=this.currentText.slice(t,n),this.characterList=this.characterList.slice(t,n))},t._addTextNode=function(e,t){var n=e.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(ZY,"")).replace(GY," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){VY(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(WY(e)){var n=e,r={};nX.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),NY("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",t):this._appendText("📷",t),this.currentEntity=null}},t._addAnchorNode=function(e,t,n){if(HY(e)){var r=e,o={};tX.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new DY(r.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),t.push.apply(t,this._toBlockConfigs(Array.from(e.childNodes),n)),this.currentEntity=null}},t._toContentBlocks=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=e.length-1,r=0;r<=n;r++){var o=e[r];o.parent=t,o.prevSibling=r>0?e[r-1].key:null,o.nextSibling=r<n?e[r+1].key:null,o.children=FY(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new TY(kY({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return FY(e).flatMap((function(e){return"unstyled"!==e.type||""!==e.text?[e]:t._hoistContainersInBlockConfigs(e.childConfigs)}))},t._toFlatContentBlocks=function(e){var t=this;this._hoistContainersInBlockConfigs(e).forEach((function(e){var n=t._extractTextFromBlockConfigs(e.childConfigs),r=n.text,o=n.characterList;t.contentBlocks.push(new AY(kY({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=FY(),o=0;o<=t;o++){var i=e[o];n+=i.text,r=r.concat(i.characterList),""!==n&&"unstyled"!==i.type&&(n+="\n",r=r.push(r.last()));var a=this._extractTextFromBlockConfigs(i.childConfigs);n+=a.text,r=r.concat(a.characterList)}return{text:n,characterList:r}},e}(),pX=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:LY,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:MY,r=t(e=e.trim().replace(qY,"").replace(YY," ").replace(XY,"").replace(JY,""));if(!r)return null;var o=iX(n),i=function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null};return new dX(o,i).addDOMNode(r).getContentBlocks()};function hX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gX=oF,yX=bF,vX=pX,mX=zF,bX=wY,wX=kU,xX=MB.exports,_X=jU,CX=xX.List,SX=xX.Repeat,OX=wX("draft_tree_data_support"),kX=OX?yX:gX,EX={processHTML:function(e,t){return vX(e,bX,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=_X(r);var i=mX(),a={key:i,type:n,text:r,characterList:CX(SX(t,r.length))};if(OX&&0!==o){var s=o-1;a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){hX(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new kX(a)),e}),[])}};var jX=function(e,t,n,r){var o=t.getStartKey(),i=t.getEndKey(),a=e.getBlockMap(),s=a.toSeq().skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===i})).concat([[i,a.get(i)]]).map((function(e){var t=e.getDepth()+n;return t=Math.max(0,Math.min(t,r)),e.set("depth",t)}));return a=a.merge(s),e.merge({blockMap:a,selectionBefore:t,selectionAfter:t})},AX=Yz,TX=VH,MX=jX,PX=wH,DX={currentBlockContainsLink:function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=n.getEntityMap();return n.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some((function(e){var t=e.getEntity();return!!t&&"LINK"===r.__get(t).getType()}))},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t,n){switch(t){case"bold":return DX.toggleInlineStyle(e,"BOLD");case"italic":return DX.toggleInlineStyle(e,"ITALIC");case"underline":return DX.toggleInlineStyle(e,"UNDERLINE");case"code":return DX.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return DX.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return DX.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=AX.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=TX.push(e,t,"insert-characters");return TX.forceSelection(n,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockBefore(r);if(o&&"atomic"===o.getType()){var i=n.getBlockMap().delete(o.getKey()),a=n.merge({blockMap:i,selectionAfter:t});if(a!==n)return TX.push(e,a,"remove-range")}var s=DX.tryToRemoveBlockStyle(e);return s?TX.push(e,s,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var n=e.getCurrentContent(),r=t.getStartKey(),o=n.getBlockForKey(r).getLength();if(t.getStartOffset()<o)return null;var i=n.getBlockAfter(r);if(!i||"atomic"!==i.getType())return null;var a=t.merge({focusKey:i.getKey(),focusOffset:i.getLength()}),s=AX.removeRange(n,a,"forward");return s!==n?TX.push(e,s,"remove-range"):null},onTab:function(e,t,n){var r=t.getSelection(),o=r.getAnchorKey();if(o!==r.getFocusKey())return t;var i=t.getCurrentContent(),a=i.getBlockForKey(o),s=a.getType();if("unordered-list-item"!==s&&"ordered-list-item"!==s)return t;e.preventDefault();var u=a.getDepth();if(!e.shiftKey&&u===n)return t;var c=MX(i,r,e.shiftKey?-1:1,n);return TX.push(t,c,"adjust-depth")},toggleBlockType:function(e,t){var n=e.getSelection(),r=n.getStartKey(),o=n.getEndKey(),i=e.getCurrentContent(),a=n;if(r!==o&&0===n.getEndOffset()){var s=PX(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var u=i.getBlockMap().skipWhile((function(e,t){return t!==r})).reverse().skipWhile((function(e,t){return t!==o})).some((function(e){return"atomic"===e.getType()}));if(u)return e;var c=i.getBlockForKey(r).getType()===t?"unstyled":t;return TX.push(e,AX.setBlockType(i,a,c),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?DX.toggleBlockType(e,"code-block"):DX.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return TX.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?AX.removeInlineStyle(i,n,t):AX.applyInlineStyle(i,n,t),TX.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=AX.applyEntity(e.getCurrentContent(),t,n);return TX.push(e,r,"apply-entity")},tryToRemoveBlockStyle:function(e){var t=e.getSelection(),n=t.getAnchorOffset();if(t.isCollapsed()&&0===n){var r=t.getAnchorKey(),o=e.getCurrentContent(),i=o.getBlockForKey(r).getType(),a=o.getBlockBefore(r);if("code-block"===i&&a&&"code-block"===a.getType()&&0!==a.getLength())return null;if("unstyled"!==i)return AX.setBlockType(o,t,"unstyled")}return null}},RX=DX,IX=/\r\n?|\n/g;var LX=DB,NX=VB,BX=xq,FX=Yz,zX=EX,UX=VH,HX=RX,VX=YK,KX=Oq,WX=kq,$X=function(e){return e.split(IX)};function qX(e,t,n){var r=FX.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return UX.push(e,r.set("entityMap",n),"insert-fragment")}var GX=nK,ZX=Xq,YX=tG,XX=rG,JX=sG,QX=hG,eJ=gG,tJ=yG,nJ=bG,rJ=YG,oJ=gY,iJ=function(e,t){t.preventDefault();var n=new BX(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&WX(e.props.handlePastedFiles(r)))return;return void KX(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=$X(t),i=NX.create({style:n.getCurrentInlineStyle(),entity:VX(n.getCurrentContent(),n.getSelection())}),a=HX.getCurrentBlockType(n),s=zX.processText(r,i,a),u=LX.createFromArray(s),c=FX.replaceWithFragment(n.getCurrentContent(),n.getSelection(),u);e.update(UX.push(n,c,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),u=e._latestEditorState;if(e.props.formatPastedText){var c=e.props.formatPastedText(a,s);a=c.text,s=c.html}if(!e.props.handlePastedText||!WX(e.props.handlePastedText(a,s,u))){if(a&&(i=$X(a)),!e.props.stripPastedStyles){var l,f=e.getClipboard();if(!e.props.formatPastedText&&n.isRichText()&&f){if(-1!==(null===(l=s)||void 0===l?void 0:l.indexOf(e.getEditorKey()))||1===i.length&&1===f.size&&f.first().getText()===a)return void e.update(qX(e._latestEditorState,f))}else if(f&&n.types.includes("com.apple.webarchive")&&!n.types.includes("text/html")&&function(e,t){return e.length===t.size&&t.valueSeq().every((function(t,n){return t.getText()===e[n]}))}(i,f))return void e.update(qX(e._latestEditorState,f));if(s){var d=zX.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=LX.createFromArray(p);return void e.update(qX(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=NX.create({style:u.getCurrentInlineStyle(),entity:VX(u.getCurrentContent(),u.getSelection())}),v=HX.getCurrentBlockType(u),m=zX.processText(i,y,v),b=LX.createFromArray(m);e.update(qX(e._latestEditorState,b))}}},aJ=$K,sJ=GX.isBrowser("Chrome"),uJ=GX.isBrowser("Firefox"),cJ=sJ||uJ?aJ:function(e){},lJ={onBeforeInput:ZX,onBlur:YX,onCompositionStart:XX,onCopy:JX,onCut:QX,onDragOver:eJ,onDragStart:tJ,onFocus:nJ,onInput:rJ,onKeyDown:oJ,onPaste:iJ,onSelect:aJ,onMouseUp:cJ,onKeyUp:cJ},fJ=u.default.unstable_flushControlled;var dJ=s.default,pJ=mV,hJ=function(e){var t,n;function r(){return e.apply(this,arguments)||this}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var o=r.prototype;return o.shouldComponentUpdate=function(e){return this.props.text!==e.text||this.props.editorState.getSelection().getHasFocus()!==e.editorState.getSelection().getHasFocus()},o.render=function(){var e=this.props.editorState.getSelection().getHasFocus(),t=pJ({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return dJ.createElement("div",{className:t},dJ.createElement("div",{className:pJ("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(dJ.Component),gJ=hJ,yJ=tZ,vJ=_K,mJ=nK,bJ=mJ.isPlatform("Mac OS X"),wJ=bJ&&mJ.isBrowser("Firefox < 29"),xJ=yJ.hasCommandModifier,_J=yJ.isCtrlKeyCommand;function CJ(e){return bJ&&e.altKey||_J(e)}var SJ=function(e){switch(e.keyCode){case 66:return xJ(e)?"bold":null;case 68:return _J(e)?"delete":null;case 72:return _J(e)?"backspace":null;case 73:return xJ(e)?"italic":null;case 74:return xJ(e)?"code":null;case 75:return bJ&&_J(e)?"secondary-cut":null;case 77:case 79:return _J(e)?"split-block":null;case 84:return bJ&&_J(e)?"transpose-characters":null;case 85:return xJ(e)?"underline":null;case 87:return bJ&&_J(e)?"backspace-word":null;case 89:return _J(e)?bJ?"secondary-paste":"redo":null;case 90:return function(e){return xJ(e)?e.shiftKey?"redo":"undo":null}(e)||null;case vJ.RETURN:return"split-block";case vJ.DELETE:return function(e){return!bJ&&e.shiftKey?null:CJ(e)?"delete-word":"delete"}(e);case vJ.BACKSPACE:return function(e){return xJ(e)&&bJ?"backspace-to-start-of-line":CJ(e)?"backspace-word":"backspace"}(e);case vJ.LEFT:return wJ&&xJ(e)?"move-selection-to-start-of-block":null;case vJ.RIGHT:return wJ&&xJ(e)?"move-selection-to-end-of-block":null;default:return null}},OJ=Ff;function kJ(){return kJ=OJ||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},kJ.apply(this,arguments)}function EJ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){AJ(e,t,n[t])}))}return e}function jJ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AJ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TJ(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var MJ=xV,PJ=_V,DJ=hW,RJ=iq,IJ=Fq,LJ=lJ,NJ=fJ,BJ=gJ,FJ=VH,zJ=s.default,UJ=a$,HJ=v$,VJ=mV,KJ=zF,WJ=SJ,$J=S$,qJ=kU,GJ=TF,ZJ=SK,YJ=wH,XJ=nK.isBrowser("IE"),JJ=!XJ,QJ={edit:LJ,composite:DJ,drag:IJ,cut:null,render:null},eQ=!1,tQ=function(e){function t(){return e.apply(this,arguments)||this}TJ(t,e);var n=t.prototype;return n.render=function(){return null},n.componentDidMount=function(){this._update()},n.componentDidUpdate=function(){this._update()},n._update=function(){var e=this.props.editor;e._latestEditorState=this.props.editorState,e._blockSelectEvents=!0},t}(zJ.Component),nQ=function(e){function t(t){var n;return AJ(jJ(n=e.call(this,t)||this),"_blockSelectEvents",void 0),AJ(jJ(n),"_clipboard",void 0),AJ(jJ(n),"_handler",void 0),AJ(jJ(n),"_dragCount",void 0),AJ(jJ(n),"_internalDrag",void 0),AJ(jJ(n),"_editorKey",void 0),AJ(jJ(n),"_placeholderAccessibilityID",void 0),AJ(jJ(n),"_latestEditorState",void 0),AJ(jJ(n),"_latestCommittedEditorState",void 0),AJ(jJ(n),"_pendingStateFromBeforeInput",void 0),AJ(jJ(n),"_onBeforeInput",void 0),AJ(jJ(n),"_onBlur",void 0),AJ(jJ(n),"_onCharacterData",void 0),AJ(jJ(n),"_onCompositionEnd",void 0),AJ(jJ(n),"_onCompositionStart",void 0),AJ(jJ(n),"_onCopy",void 0),AJ(jJ(n),"_onCut",void 0),AJ(jJ(n),"_onDragEnd",void 0),AJ(jJ(n),"_onDragOver",void 0),AJ(jJ(n),"_onDragStart",void 0),AJ(jJ(n),"_onDrop",void 0),AJ(jJ(n),"_onInput",void 0),AJ(jJ(n),"_onFocus",void 0),AJ(jJ(n),"_onKeyDown",void 0),AJ(jJ(n),"_onKeyPress",void 0),AJ(jJ(n),"_onKeyUp",void 0),AJ(jJ(n),"_onMouseDown",void 0),AJ(jJ(n),"_onMouseUp",void 0),AJ(jJ(n),"_onPaste",void 0),AJ(jJ(n),"_onSelect",void 0),AJ(jJ(n),"editor",void 0),AJ(jJ(n),"editorContainer",void 0),AJ(jJ(n),"focus",void 0),AJ(jJ(n),"blur",void 0),AJ(jJ(n),"setMode",void 0),AJ(jJ(n),"exitCurrentMode",void 0),AJ(jJ(n),"restoreEditorDOM",void 0),AJ(jJ(n),"setClipboard",void 0),AJ(jJ(n),"getClipboard",void 0),AJ(jJ(n),"getEditorKey",void 0),AJ(jJ(n),"update",void 0),AJ(jJ(n),"onDragEnter",void 0),AJ(jJ(n),"onDragLeave",void 0),AJ(jJ(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),AJ(jJ(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=HJ.getScrollParent(o),a=e||$J(i),s=a.x,u=a.y;ZJ(o)||("production"!==process.env.NODE_ENV?GJ(!1,"editorNode is not an HTMLElement"):GJ(!1)),o.focus(),i===window?window.scrollTo(s,u):UJ.setTop(i,u),r||n.update(FJ.forceSelection(t,t.getSelection()))}})),AJ(jJ(n),"blur",(function(){var e=n.editor;e&&(ZJ(e)||("production"!==process.env.NODE_ENV?GJ(!1,"editorNode is not an HTMLElement"):GJ(!1)),e.blur())})),AJ(jJ(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=EJ({},QJ.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=EJ({},QJ,{edit:a});n._handler=s[e]})),AJ(jJ(n),"exitCurrentMode",(function(){n.setMode("edit")})),AJ(jJ(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),AJ(jJ(n),"setClipboard",(function(e){n._clipboard=e})),AJ(jJ(n),"getClipboard",(function(){return n._clipboard})),AJ(jJ(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),AJ(jJ(n),"onDragEnter",(function(){n._dragCount++})),AJ(jJ(n),"onDragLeave",(function(){n._dragCount--,0===n._dragCount&&n.exitCurrentMode()})),n._blockSelectEvents=!1,n._clipboard=null,n._handler=null,n._dragCount=0,n._editorKey=t.editorKey||KJ(),n._placeholderAccessibilityID="placeholder-"+n._editorKey,n._latestEditorState=t.editorState,n._latestCommittedEditorState=t.editorState,n._onBeforeInput=n._buildHandler("onBeforeInput"),n._onBlur=n._buildHandler("onBlur"),n._onCharacterData=n._buildHandler("onCharacterData"),n._onCompositionEnd=n._buildHandler("onCompositionEnd"),n._onCompositionStart=n._buildHandler("onCompositionStart"),n._onCopy=n._buildHandler("onCopy"),n._onCut=n._buildHandler("onCut"),n._onDragEnd=n._buildHandler("onDragEnd"),n._onDragOver=n._buildHandler("onDragOver"),n._onDragStart=n._buildHandler("onDragStart"),n._onDrop=n._buildHandler("onDrop"),n._onInput=n._buildHandler("onInput"),n._onFocus=n._buildHandler("onFocus"),n._onKeyDown=n._buildHandler("onKeyDown"),n._onKeyPress=n._buildHandler("onKeyPress"),n._onKeyUp=n._buildHandler("onKeyUp"),n._onMouseDown=n._buildHandler("onMouseDown"),n._onMouseUp=n._buildHandler("onMouseUp"),n._onPaste=n._buildHandler("onPaste"),n._onSelect=n._buildHandler("onSelect"),n.getEditorKey=function(){return n._editorKey},"production"!==process.env.NODE_ENV&&["onDownArrow","onEscape","onLeftArrow","onRightArrow","onTab","onUpArrow"].forEach((function(e){t.hasOwnProperty(e)&&console.warn("Supplying an `".concat(e,"` prop to `DraftEditor` has ")+"been deprecated. If your handler needs access to the keyboard event, supply a custom `keyBindingFn` prop that falls back to the default one (eg. https://is.gd/wHKQ3W).")})),n.state={contentsKey:0},n}TJ(t,e);var n=t.prototype;return n._buildHandler=function(e){var t=this;return function(n){if(!t.props.readOnly){var r=t._handler&&t._handler[e];r&&(NJ?NJ((function(){return r(t,n)})):r(t,n))}}},n._showPlaceholder=function(){return!!this.props.placeholder&&!this.props.editorState.isInCompositionMode()&&!this.props.editorState.getCurrentContent().hasText()},n._renderPlaceholder=function(){if(this._showPlaceholder()){var e={text:YJ(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return zJ.createElement(BJ,e)}return null},n._renderARIADescribedBy=function(){var e=this.props.ariaDescribedBy||"",t=this._showPlaceholder()?this._placeholderAccessibilityID:"";return e.replace("{{editor_id_placeholder}}",t)||void 0},n.render=function(){var e=this.props,t=e.blockRenderMap,n=e.blockRendererFn,r=e.blockStyleFn,o=e.customStyleFn,i=e.customStyleMap,a=e.editorState,s=e.preventScroll,u=e.readOnly,c=e.textAlignment,l=e.textDirectionality,f=VJ({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===c,"DraftEditor/alignRight":"right"===c,"DraftEditor/alignCenter":"center"===c}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:EJ({},PJ,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return zJ.createElement("div",{className:f},this._renderPlaceholder(),zJ.createElement("div",{className:VJ("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},zJ.createElement("div",{"aria-activedescendant":u?null:this.props.ariaActiveDescendantID,"aria-autocomplete":u?null:this.props.ariaAutoComplete,"aria-controls":u?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":u?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":u?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:VJ({notranslate:!u,"public/DraftEditor/content":!0}),contentEditable:!u,"data-testid":this.props.webDriverTestID,onBeforeInput:this._onBeforeInput,onBlur:this._onBlur,onCompositionEnd:this._onCompositionEnd,onCompositionStart:this._onCompositionStart,onCopy:this._onCopy,onCut:this._onCut,onDragEnd:this._onDragEnd,onDragEnter:this.onDragEnter,onDragLeave:this.onDragLeave,onDragOver:this._onDragOver,onDragStart:this._onDragStart,onDrop:this._onDrop,onFocus:this._onFocus,onInput:this._onInput,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseUp:this._onMouseUp,onPaste:this._onPaste,onSelect:this._onSelect,ref:this.props.editorRef,role:u?null:d,spellCheck:JJ&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},zJ.createElement(tQ,{editor:this,editorState:a}),zJ.createElement(RJ,kJ({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!eQ&&qJ("draft_ods_enabled")&&(eQ=!0),this.setMode("edit"),XJ&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):ot.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(zJ.Component);AJ(nQ,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:MJ,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:WJ,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var rQ=nQ,oQ={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},iQ=oQ,aQ=EG.strlen;var sQ=EG,uQ=KB,cQ=function(e,t){return e===t},lQ=function(e){return!!e},fQ=[];var dQ=function(e){var t=e.getCharacterList().map((function(e){return e.getStyle()})).toList(),n=t.flatten().toSet().map((function(n){return function(e,t,n){var r=[],o=t.map((function(e){return e.has(n)})).toList();return uQ(o,cQ,lQ,(function(t,o){var i=e.getText();r.push({offset:sQ.strlen(i.slice(0,t)),length:sQ.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(fQ,n.toJS())};function pQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hQ=oF,gQ=bF,yQ=oQ,vQ=function(e,t){var n=[];return e.findEntityRanges((function(e){return!!e.getEntity()}),(function(r,o){var i=e.getText(),a=e.getEntityAt(r);n.push({offset:aQ(i.slice(0,r)),length:aQ(i.slice(r,o)),key:Number(t[iQ.stringify(a)])})})),n},mQ=dQ,bQ=TF,wQ=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:mQ(e),entityRanges:vQ(e,t),data:e.getData().toObject()}},xQ=function(e,t,n,r){if(e instanceof hQ)n.push(wQ(e,t));else{e instanceof gQ||("production"!==process.env.NODE_ENV?bQ(!1,"block is not a BlockNode"):bQ(!1));var o=e.getParentKey(),i=r[e.getKey()]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pQ(e,t,n[t])}))}return e}({},wQ(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},_Q=function(e){var t={entityMap:{},blocks:[]};return t=function(e,t){var n=t.entityMap,r=[],o={},i={},a=0;return e.getBlockMap().forEach((function(e){e.findEntityRanges((function(e){return null!==e.getEntity()}),(function(t){var r=e.getEntityAt(t),o=yQ.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),xQ(e,n,r,o)})),{blocks:r,entityMap:n}}(e,t),t=function(e,t){var n=t.blocks,r=t.entityMap,o={};return Object.keys(r).forEach((function(t,n){var r=e.getEntity(yQ.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function CQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){SQ(e,t,n[t])}))}return e}function SQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var OQ=zF,kQ=TF,EQ=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},jQ={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?kQ(!1,"Invalid raw state"):kQ(!1)),Array.isArray(t)&&t.length?(function(e,t){for(var n=[].concat(e).reverse();n.length;){var r=n.pop();t(r);var o=r.children;Array.isArray(o)||("production"!==process.env.NODE_ENV?kQ(!1,"Invalid tree raw block"):kQ(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=CQ({},e);EQ(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?CQ({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,CQ({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=EQ(e),o=e.depth||0,i=CQ({},e,{children:[]});if(r){var a=n[0];if(null==a&&0===o)t.push(i);else if(null==a||a.depth<o-1){var s={key:OQ(),text:"",depth:o-1,type:e.type,children:[],entityRanges:[],inlineStyleRanges:[]};n.unshift(s),1===o?t.push(s):null!=a&&a.children.push(s),s.children.push(i)}else if(a.depth===o-1)a.children.push(i);else{for(;null!=a&&a.depth>=o;)n.shift(),a=n[0];o>0?a.children.push(i):t.push(i)}}else t.push(i)})),CQ({},e,{blocks:t})}},AQ=MG,TQ={isValidBlock:function(e,t){var n=e.getKey(),r=e.getParentKey();if(null!=r&&!t.get(r).getChildKeys().includes(n))return"production"!==process.env.NODE_ENV&&AQ(!0,"Tree is missing parent -> child pointer on %s",n),!1;var o=e.getChildKeys().map((function(e){return t.get(e)}));if(!o.every((function(e){return e.getParentKey()===n})))return"production"!==process.env.NODE_ENV&&AQ(!0,"Tree is missing child -> parent pointer on %s",n),!1;var i=e.getPrevSiblingKey();if(null!=i&&t.get(i).getNextSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&AQ(!0,"Tree is missing nextSibling pointer on %s's prevSibling",n),!1;var a=e.getNextSiblingKey();if(null!=a&&t.get(a).getPrevSiblingKey()!==n)return"production"!==process.env.NODE_ENV&&AQ(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&AQ(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&AQ(!0,"Leaf node %s has children",n),!1)},isConnectedTree:function(e){var t=e.toArray().filter((function(e){return null==e.getParentKey()&&null==e.getPrevSiblingKey()}));if(1!==t.length)return"production"!==process.env.NODE_ENV&&AQ(!0,"Tree is not connected. More or less than one first node"),!1;for(var n=0,r=t.shift().getKey(),o=[];null!=r;){var i=e.get(r),a=i.getChildKeys(),s=i.getNextSiblingKey();if(a.size>0){null!=s&&o.unshift(s);var u=a.map((function(t){return e.get(t)})),c=u.find((function(e){return null==e.getPrevSiblingKey()}));if(null==c)return"production"!==process.env.NODE_ENV&&AQ(!0,"%s has no first child",r),!1;r=c.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&AQ(!0,"Tree is not connected. %s nodes were seen instead of %s",n,e.size),!1)},isValidTree:function(e){var t=this;return!!e.toArray().every((function(n){return t.isValidBlock(n,e)}))&&this.isConnectedTree(e)}},MQ=TQ,PQ=VB,DQ=MB.exports.List;var RQ=function(e,t){var n=e.map((function(e,n){var r=t[n];return PQ.create({style:e,entity:r})}));return DQ(n)},IQ=EG.substr;var LQ=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=IQ(e,0,t.offset).length,o=r+IQ(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},NQ=EG,BQ=MB.exports.OrderedSet,FQ=NQ.substr,zQ=BQ();var UQ=function(e,t){var n=Array(e.length).fill(zQ);return t&&t.forEach((function(t){for(var r=FQ(e,0,t.offset).length,o=r+FQ(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function HQ(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){VQ(e,t,n[t])}))}return e}function VQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KQ=oF,WQ=bF,$Q=YU,qQ=CU,GQ=jQ,ZQ=MQ,YQ=OU,XQ=RQ,JQ=LQ,QQ=UQ,e1=zF,t1=MB.exports,n1=TF,r1=kU("draft_tree_data_support"),o1=t1.List,i1=t1.Map,a1=t1.OrderedMap,s1=function(e,t){var n=e.key,r=e.type,o=e.data;return{text:e.text,depth:e.depth||0,type:r||"unstyled",key:n||e1(),data:i1(o),characterList:u1(e,t)}},u1=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return XQ(QQ(n,o||[]),JQ(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return HQ({},e,{key:t[e.key]})}))))},c1=function(e){return HQ({},e,{key:e.key||e1()})},l1=function(e,t,n){var r=t.map((function(e){return HQ({},e,{parentRef:n})}));return e.concat(r.reverse())},f1=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=r1&&!n?GQ.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!r1)return function(e,t){return a1(e.map((function(e){var n=new KQ(s1(e,t));return[n.getKey(),n]})))}(n?GQ.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(c1).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?n1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):n1(!1));var i=r.children.map(c1),a=new WQ(HQ({},s1(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:o1(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=l1([],i,a);s.length>0;){var u=s.pop(),c=u.parentRef,l=c.getChildKeys(),f=l.indexOf(u.key),d=Array.isArray(u.children);if(!d){d||("production"!==process.env.NODE_ENV?n1(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):n1(!1));break}var p=u.children.map(c1),h=new WQ(HQ({},s1(u,t),{parent:c.getKey(),children:o1(p.map((function(e){return e.key}))),prevSibling:0===f?null:l.get(f-1),nextSibling:f===l.size-1?null:l.get(f+1)}));n=n.set(h.getKey(),h),s=l1(s,p,h)}return n}),a1())}(r,t);return"production"!==process.env.NODE_ENV&&(ZQ.isValidTree(o)||("production"!==process.env.NODE_ENV?n1(!1,"Should be a valid tree"):n1(!1))),o},d1=lZ;var p1=function(e){var t=d1(e),n=0,r=0,o=0,i=0;if(t.length){if(t.length>1&&0===t[0].width){var a=t[1];n=a.top,r=a.right,o=a.bottom,i=a.left}else{var s=t[0];n=s.top,r=s.right,o=s.bottom,i=s.left}for(var u=1;u<t.length;u++){var c=t[u];0!==c.height&&0!==c.width&&(n=Math.min(n,c.top),r=Math.max(r,c.right),o=Math.max(o,c.bottom),i=Math.min(i,c.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},h1=p1;var g1=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=h1(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},y1={Editor:rQ,EditorBlock:oq,EditorState:VH,CompositeDecorator:yV,Entity:CU,EntityInstance:pU,BlockMapBuilder:DB,CharacterMetadata:VB,ContentBlock:oF,ContentState:YU,RawDraftContentState:{},SelectionState:OU,AtomicBlockUtils:pV,KeyBindingUtil:tZ,Modifier:Yz,RichUtils:RX,DefaultDraftBlockRenderMap:xV,DefaultDraftInlineStyle:_V,convertFromHTML:pX,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?n1(!1,"invalid RawDraftContentState"):n1(!1));var t=function(e){var t=e.entityMap,n={};return Object.keys(t).forEach((function(e){var r=t[e],o=r.type,i=r.mutability,a=r.data;n[e]=qQ.__create(o,i,a||{})})),n}(e),n=f1(e,t),r=n.isEmpty()?new YQ:YQ.createEmpty(n.first().getKey());return new $Q({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:_Q,genKey:zF,getDefaultKeyBinding:SJ,getVisibleSelectionRect:g1};const v1=q.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),m1=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},b1=new y1.CompositeDecorator([{strategy:(e,t,n)=>m1(e,t,n,"FOUND_FIELD"),component:({children:t})=>e.jsx(v1,{children:t})},{strategy:(e,t,n)=>m1(e,t,n,"NOT_FOUND"),component:({children:t})=>e.jsx(v1,Object.assign({error:!0},{children:t}))}]),w1=(e,t,n)=>{const r=Ft.find(t,{id:e.id}),o=t.every((e=>!e.value)),i=t.some((e=>e.value));let a=!0,s="";r?o?a=!0:!n&&!i||(null==r?void 0:r.value)||(a=!1):a=!1,s=a?n&&!o?(null==r?void 0:r.value)||"":(null==r?void 0:r.label)||"":(null==r?void 0:r.id)||e.id;return{label:n&&(null==r?void 0:r.value)?s:`{${s}}`,isValid:a}},x1=(e,t,n)=>{const r=((e,t,n)=>{const r={},o={text:"",type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=e.replace(/(<<\w+?>>)/g,"~~$1~~").split("~~");for(let e=0;e<i.length;e++){let a=i[e];if(a.startsWith("<<")){const i=a.replace(/<<|>>/g,""),s=Ft.find(t||[],{id:i})||{id:i,label:""},{label:u,isValid:c}=w1(s,t||[],n);a=u,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:c?"FOUND_FIELD":"NOT_FOUND",mutability:"IMMUTABLE",data:{id:i}}}o.text+=a}return y1.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return y1.EditorState.createWithContent(r,b1)},_1=(e,t=!0)=>{const n=e.getCurrentContent(),r=y1.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=Ft.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},C1=e=>{const t=_1(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},S1=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new y1.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return y1.EditorState.forceSelection(e,o)},O1=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:d,height:p,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:S,backgroundColor:O,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P}=n,D=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,I]=t.useState((()=>x1(o,l,m))),{focused:L,handleFocus:N,handleBlur:B}=xt(s,u),[F,z]=t.useState(!1),U=t.useRef(null),H=t.useRef(),V=null!=h?h:p,K=V?V-(g?0:_?29:11):void 0,W=e=>{I(e);const t=(e=>C1(e).some((e=>"NOT_FOUND"===e.type)))(e);z(t);const n=_1(e);i&&i(n,t)},$=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:u}=w1(e,t,r),c=u?"FOUND_FIELD":"NOT_FOUND",l=i.createEntity(c,"IMMUTABLE",{id:o}).getLastCreatedEntityKey(),f=y1.Modifier.insertText(i,a,s,void 0,l),d=y1.EditorState.push(n,f,"insert-characters");return y1.EditorState.forceSelection(d,f.getSelectionAfter())})(e,l,R,m);W(t)},q=()=>{(null==U?void 0:U.current)&&U.current.focus();const e=S1(R);I(e)};t.useImperativeHandle(r,(()=>({insertField:$,focusAtEnd:q})));t.useEffect((()=>{_1(R)!==o&&(e=>{const t=R.getSelection(),n=x1(e,l,m),r=S1(n),o=t.getHasFocus()?r:n;W(o)})(o)}),[o]),t.useEffect((()=>{H.current=l}),[]),t.useEffect((()=>{const{current:e}=H,t=Ft.isEqual(e,l),n=C1(R);if(!t&&n.length>0){H.current=l;const e=x1(o,l,m);W(e)}}),[l]);return e.jsx(k1,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:d,height:p,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:_t(o),invalid:F,textOnly:E,borderRadius:S,backgroundColor:O,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:M,marginBottom:P,focused:L,disabled:C,hasLabel:!!_,hideEditor:!_t(o)&&!!_&&!L},{children:e.jsxs(St,Object.assign({readOnly:v},{children:[_&&e.jsx(Ot,Object.assign({filled:_t(o),focused:L,disabled:C},{children:_})),e.jsx(y1.Editor,Object.assign({ref:U,editorState:R,onChange:W,placeholder:f,readOnly:v,handleReturn:e=>{const t=y1.RichUtils.insertSoftNewline(R);return e.shiftKey||!a?W(t):a(e),"handled"},handlePastedText:(e,t,n)=>{const r=((e,t)=>{const n=t.getCurrentContent(),r=t.getSelection(),o={text:e,type:"unstyled",entityRanges:[],key:"",depth:1,inlineStyleRanges:[]},i=y1.convertFromRaw({blocks:[o],entityMap:{}}),a=y1.EditorState.createWithContent(i,b1).getCurrentContent().getBlockMap(),s=y1.Modifier.replaceWithFragment(n,r,a);return y1.EditorState.push(t,s,"insert-fragment")})(e,n);return W(r),"handled"},onFocus:N,onBlur:B},D))]}))}))})),k1=q(Ct)((({theme:e,height:t,noPadding:n,disabled:r,readOnly:o,color:i})=>({alignItems:t?"flex-start":void 0,minHeight:t,height:"max-content",padding:n?0:void 0,color:r?e.input.color.disabled:i||e.input.color.default,cursor:o?"inherit":"text","&:hover":{backgroundColor:o?e.input.background.default:void 0,borderBottom:o?`1px solid ${e.input.borderColor.default}`:void 0,Label:{color:o?e.input.labelColor.filled:void 0}}})),(({theme:e,height:t,hasLabel:n,editorMaxHeight:r,overflow:o,clampLines:i,hideEditor:a,fontSize:s,noPadding:u,filled:c})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!c||n||u?void 0:1,caretColor:e.accent},"& .public-DraftStyleDefault-block":{WebkitLineClamp:i,overflow:i?"hidden":o||"auto",display:i?"-webkit-box":void 0,WebkitBoxOrient:i?"vertical":void 0,wordBreak:i?"break-word":void 0},"& .public-DraftEditorPlaceholder-root":{color:e.input.color.placeholder,position:"relative",visibility:a?"hidden":void 0,fontSize:s||e.font.size.lg}})),(({noPadding:e,hasLabel:t})=>{let n;return e&&(n=-1),t&&(n=-2),{"& .public-DraftEditorPlaceholder-inner":{position:"absolute",pointerEvents:"none",top:n}}})),E1=q.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:u,justifyItems:c,width:l,height:f})=>({gridTemplateColumns:"number"==typeof n?`repeat(${n}, 1fr)`:n,gridTemplateRows:"number"==typeof e?`repeat(${e}, 1fr)`:e,gridColumnGap:r,gridRowGap:t,gridGap:o,gridTemplate:i,alignItems:s,justifyItems:c,alignContent:a,justifyContent:u,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));E1.Item=q.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:u,placeSelf:c,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:u,placeSelf:c,border:l})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const j1=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:a,margin:s,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d}=t,p=c(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:s,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d};return e.jsxs(tB,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(rB,{children:r}),e.jsx(nB,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(tt,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},A1=n=>{var{id:r,label:o,labelPosition:i,checked:a,disabled:s,onChange:u,margin:l,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h}=n,g=c(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(a||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:d,marginRight:p,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof a?a:m)}),[a,m]),e.jsxs(tB,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(rB,{children:o}),e.jsx(nB,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(tt,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},T1=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(M1,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&Et(r,{marginRight:4,size:"small"}),n,o&&Et(o,{marginLeft:4,size:"small"})]}))},M1=q.div((({theme:e,disabled:t,pill:n})=>({display:"flex",alignItems:"center",width:"max-content",color:t?e.scale4:e.scale10,cursor:"default",fontSize:n?e.font.size.sm:e.font.size.md,fontWeight:n?e.font.weight.medium:e.font.weight.default,fontFamily:e.font.family.default})),(({theme:e,disabled:t,pill:n,rightIcon:r})=>n&&{borderRadius:40,padding:`2px ${e.size.sm}px`,paddingRight:r?e.size.xs:void 0,backgroundColor:t?e.scale0:e.scale1,"&:hover":{backgroundColor:t||!n?void 0:e.scale2}}),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),P1=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:s}=t,u=c(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(D1,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};P1.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:a,disabled:s}=t,u=c(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(R1,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},P1.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(I1,Object.assign({inline:n,align:r,disabled:o},{children:t})),P1.Input=jt,P1.Dropdown=$t,P1.Radio=j1,P1.Toggle=A1,P1.Checkbox=oB,P1.Label=T1;const D1=q(E1)({boxSizing:"border-box"}),R1=q(E1)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),I1=q.div((({inline:e,align:t})=>({display:"flex",flexDirection:e?"row":"column",alignItems:t?{top:"flex-start",bottom:"flex-end",center:"center"}[t]:void 0})),(({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),L1=q.div((({prevNext:e,opacity:t})=>({width:"100%",height:"100%",backgroundColor:`rgba(0, 0, 0, ${null!=t?t:.3})`,position:"fixed",top:0,left:0,display:"grid",gridTemplateColumns:e?"auto 1fr auto":"1fr",justifyContent:"space-between",alignItems:"center",zIndex:1e4,userSelect:"none",borderRadius:5}))),N1=q.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),B1=q.div((({next:e})=>({display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:"100%",backgroundColor:"transparent",left:e?void 0:0,right:e?0:void 0,zIndex:0,"&:hover":{background:`linear-gradient(90deg, rgba(0,0,0,${e?0:.4}) 0%, rgba(0,0,0,${e?.4:0}) 100%)`}}))),F1=q.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),z1=q.code((({theme:e})=>({fontFamily:"source-code-pro, Menlo, Monaco, Consolas, 'Courier New', monospace",color:e.scale10,backgroundColor:e.scale1,borderRadius:e.size.xs,padding:"2px 4px"}))),U1=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:c,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(H1,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:u,paddingRight:c,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?yt(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),H1=q.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>({display:"flex",flexFlow:t?"column":"row",overflowY:t?"auto":void 0,backgroundColor:n||e.background,padding:t?"16px 0":"0 16px",paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:c})=>({border:t?e:void 0,borderTop:n?e:void 0,borderBottom:r?e:void 0,borderLeft:o?e:void 0,borderRight:i?e:void 0,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:u,borderBottomRightRadius:c}))),V1=q.button({userSelect:"none",border:"none",display:"flex",alignItems:"center"},(({theme:{accent:e,font:t,menuItem:n},selected:r,vertical:o,disabled:i,indent:a=1})=>({color:r?n.color.active:n.color.inactive,backgroundColor:r?n.background.active:n.background.inactive,borderLeft:o?"4px solid transparent":void 0,borderLeftColor:o&&r?n.borderColor:void 0,borderBottom:o?void 0:"4px solid transparent",borderBottomColor:!o&&r?n.borderColor:void 0,cursor:i?"not-allowed":"pointer",fontSize:t.size.lg,padding:o?`0 0 0 ${32*a}px`:"0 16px",minHeight:40,"&:hover":{backgroundColor:n.background.hover,color:n.color.hover},"&:focus-visible":{outline:`${e} solid 1px`}})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),K1=q.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),W1=q.div({marginLeft:"auto",marginRight:8});U1.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:u=1})=>e.jsx(V1,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:u},{children:s})),U1.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:u,onClick:c,id:l,children:f,indent:d=1,backgroundColor:p})=>{const[h,g]=t.useState(r||i),y=e=>yt(e).map((e=>{if(s.default.isValidElement(e)){const n=e;return n.props.selected&&!h&&g(!0),Array.isArray(n.props.children)&&y(n.props.children),t.cloneElement(e,{vertical:o,indent:d+1,backgroundColor:p})}return null})),v=y(f),m=()=>g((e=>!e));return e.jsxs(K1,Object.assign({backgroundColor:p},{children:[e.jsxs(V1,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:u,onClick:e=>{c?(c(e),h||m()):m()},id:l,role:"menuitem",indent:d},{children:[n,e.jsx(W1,Object.assign({onClick:e=>{e.stopPropagation(),m()}},{children:e.jsx(tt,{name:h?"chevron-up":"chevron-down",pointer:!0})}))]})),h&&v]}))};const $1=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f,children:d})=>{const p=n.useTheme(),{iconName:h,borderColor:g,backgroundColor:y}=((e,t)=>{const{color:n}=t;switch(e){case"info":return{iconName:"info",borderColor:n.brand,backgroundColor:n.brandTint2};case"error":return{iconName:"warning",borderColor:n.error,backgroundColor:n.errorTint2};case"success":return{iconName:"check-circle",borderColor:n.success,backgroundColor:n.successTint2};case"warning":return{iconName:"warning",borderColor:n.warning,backgroundColor:n.warningTint2};default:return{iconName:"info",borderColor:t.scale8,backgroundColor:t.scale0}}})(t||"",p),v={margin:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f};return e.jsxs(Z1,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(tt,{name:h,style:{marginRight:10},color:g}),e.jsx(Y1,{children:r||d}),o&&e.jsx(tt,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},q1=q.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),G1=q.div((({theme:e})=>({fontWeight:e.font.weight.default})));$1.Header=q1,$1.Body=G1;const Z1=q.div((({theme:e,borderColor:t,backgroundColor:n})=>({display:"flex",alignItems:"center",margin:"10px 0",position:"relative",padding:`${e.size.sm}px ${e.size.md}px`,border:"1px solid",borderColor:t,borderRadius:e.size.xs,backgroundColor:n,color:e.scale10,fontSize:e.font.size.sm,"& a":{textDecoration:"none",color:e.accent,"&:hover":{textDecoration:"underline"}}})),(({theme:e,showingClose:t})=>({paddingRight:t?e.size.sm:void 0})),(({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i})=>({width:e,margin:t,marginTop:n,marginBottom:r,marginRight:o,marginLeft:i}))),Y1=q.div({width:"100%"}),X1=q.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),J1=q.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),Q1=q.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),e0=({children:n,rootSelector:r,visible:o,width:i,height:a,onClose:s,closeIcon:c,preventOverlayClose:l,overlayColor:f,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O})=>{const k=Nt(l?()=>null:s,o),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:S,paddingLeft:O},j=yt(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(r0,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(t0,Object.assign({ref:k,width:i,height:a,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y},E,{children:[j,c&&e.jsx(n0,Object.assign({inline:p},{children:e.jsx(tt,{name:"close",onClick:s,pointer:!0})}))]}))})),T=document.querySelector(r||"#root");return o&&T?u.default.createPortal(A,T):null};e0.Header=q.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),e0.Text=q.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),e0.Body=q.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),e0.Footer=q.div((({justify:e="end",inline:t})=>({display:"flex",alignItems:"center",justifyContent:e?{start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"}[e]:void 0,marginTop:t?void 0:8})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})));const t0=q.div((({theme:e,width:t,height:n,backgroundColor:r,small:o})=>({display:"flex",flexDirection:o?"row":"column",alignItems:o?"center":void 0,backgroundColor:r||e.modal.background,boxShadow:e.elevation3,width:t||"max-content",height:n||"max-content",borderRadius:e.size.xs,padding:o?e.size.md:e.size.lg})),(({noOverlay:e})=>!e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)"}),(({centerX:e,centerY:t})=>(e||t)&&{position:"absolute",top:t?"50%":void 0,left:e?"50%":void 0,transform:`translate(${e?"-50%":"0"}, ${t?"-50%":"0"})`}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),n0=q.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),r0=q.div((({color:e,noOverlay:t,centerX:n,centerY:r,top:o,bottom:i,right:a,left:s})=>({position:"absolute",top:o||(s||i||a?void 0:0),left:s||(o||i||a?void 0:0),bottom:i,right:a,width:t&&!n?void 0:"100%",height:t&&!r?void 0:"100%",zIndex:100,backgroundColor:t?void 0:e||"rgba(0, 0, 0, 0.5)"}))),o0=q.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),i0=q.div((({theme:e,expanded:t,error:n,labeled:r,collapse:o,backgroundColor:i,borderless:a})=>({display:"grid",gridTemplateColumns:o?void 0:"1fr auto",alignItems:t&&!r?"flex-start":"center",columnGap:24,width:"100%",minHeight:41,position:"absolute",top:0,left:0,backgroundColor:i||e.background0,zIndex:t?1:void 0,borderBottom:n?`1px solid ${e.color.error}`:e.defaultBorder,border:a?"none":void 0,padding:"8px 16px"}))),a0=q.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),s0=q.div((({theme:e,expanded:t,padTop:n})=>({display:"flex",alignItems:"center",width:"100%",overflow:t?void 0:"hidden",pointerEvents:t?void 0:"none",flexWrap:t?"wrap":void 0,paddingTop:n?1:void 0,columnGap:e.size.sm,rowGap:e.size.sm,"& > *":{flexShrink:0}})),(({theme:e,labeled:t,expanded:n})=>t&&n?{backgroundColor:e.background0,position:"absolute",top:"100%",zIndex:1,padding:"8px 0px",borderBottom:e.defaultBorder}:{})),u0=q.div((({theme:e,expanded:t,labeled:n})=>({fontSize:e.font.size.sm,fontWeight:e.font.weight.medium,color:e.scale8,paddingLeft:t&&n?16:void 0}))),c0=q.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),l0=q.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),f0=q.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),d0=q.div((({theme:e,color:t,size:n,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8,position:r,top:o,bottom:i,right:a,left:s,marginTop:u,marginBottom:c,marginRight:l,marginLeft:f})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm})),p0=e=>e?+e:0,h0=q.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),g0=q.button((({theme:e,disabled:t})=>({border:"none",borderRadius:e.size.xs,backgroundColor:"transparent","&:hover":{backgroundColor:t?void 0:e.scale1,color:t?void 0:e.scale10},"&:focus-visible":{outline:`${e.accent} solid 1px`}}))),y0=q(g0)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),v0=q(g0)((({theme:e,selected:t})=>({color:t?e.scale10:e.scale6,backgroundColor:t?e.scale0:void 0,fontSize:e.font.size.sm,cursor:"pointer",width:"max-content",minWidth:e.size.lg,height:e.size.lg,padding:0}))),m0=q.span((({theme:e})=>({color:e.scale6}))),b0=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:c})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:u,marginLeft:c},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(w0,Object.assign({size:n},l,{children:[e.jsx(x0,{cx:h,cy:h,r:f,thickness:r}),e.jsx(_0,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},w0=q.svg((({size:e})=>({display:"block",width:e,height:e})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),x0=q.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),_0=q(x0)((({theme:e,color:t,circ:n,complete:r})=>({stroke:t||e.color.brand,strokeLinecap:"round",strokeLinejoin:"round",strokeDasharray:n,strokeDashoffset:r,transition:"stroke-dashoffset 0.5s"}))),C0=q.div((({theme:e,width:t,height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n,margin:r,marginTop:o,marginBottom:i,marginRight:a,marginLeft:s}))),S0=q.div((({theme:e,color:t,width:n})=>({backgroundColor:t||e.color.brand,borderRadius:24,width:`${n}%`,height:"100%",transition:"width 0.5s"})));!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('/* Document\n * ========================================================================== */\n\n/**\n * 1. Add border box sizing in all browsers (opinionated).\n * 2. Backgrounds do not repeat by default (opinionated).\n */\n\n*,\n::before,\n::after {\n box-sizing: border-box; /* 1 */\n background-repeat: no-repeat; /* 2 */\n}\n\n/**\n * 1. Add text decoration inheritance in all browsers (opinionated).\n * 2. Add vertical alignment inheritance in all browsers (opinionated).\n */\n\n::before,\n::after {\n text-decoration: inherit; /* 1 */\n vertical-align: inherit; /* 2 */\n}\n\n/**\n * 1. Use the default cursor in all browsers (opinionated).\n * 2. Change the line height in all browsers (opinionated).\n * 3. Breaks words to prevent overflow in all browsers (opinionated).\n * 4. Use a 4-space tab width in all browsers (opinionated).\n * 5. Remove the grey highlight on links in iOS (opinionated).\n * 6. Prevent adjustments of font size after orientation changes in iOS.\n */\n\n:where(:root) {\n cursor: default; /* 1 */\n line-height: 1.5; /* 2 */\n overflow-wrap: break-word; /* 3 */\n -moz-tab-size: 4; /* 4 */\n tab-size: 4; /* 4 */\n -webkit-tap-highlight-color: transparent; /* 5 */\n -webkit-text-size-adjust: 100%; /* 6 */\n}\n\n/* Sections\n * ========================================================================== */\n\n/**\n * Remove the margin in all browsers (opinionated).\n */\n\n:where(body) {\n margin: 0;\n}\n\n/**\n * Correct the font size and margin on `h1` elements within `section` and\n * `article` contexts in Chrome, Edge, Firefox, and Safari.\n */\n\n:where(h1) {\n font-size: 2em;\n margin: 0.67em 0;\n}\n\n/* Grouping content\n * ========================================================================== */\n\n/**\n * Remove the margin on nested lists in Chrome, Edge, and Safari.\n */\n\n:where(dl, ol, ul) :where(dl, ol, ul) {\n margin: 0;\n}\n\n/**\n * 1. Correct the inheritance of border color in Firefox.\n * 2. Add the correct box sizing in Firefox.\n */\n\n:where(hr) {\n color: inherit; /* 1 */\n height: 0; /* 2 */\n}\n\n/**\n * Remove the list style on navigation lists in all browsers (opinionated).\n */\n\n:where(nav) :where(ol, ul) {\n list-style-type: none;\n padding: 0;\n}\n\n/**\n * Prevent VoiceOver from ignoring list semantics in Safari (opinionated).\n */\n\n:where(nav li)::before {\n content: "\\200B";\n float: left;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n * 3. Prevent overflow of the container in all browsers (opinionated).\n */\n\n:where(pre) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n overflow: auto; /* 3 */\n}\n\n/* Text-level semantics\n * ========================================================================== */\n\n/**\n * Add the correct text decoration in Safari.\n */\n\n:where(abbr[title]) {\n text-decoration: underline;\n text-decoration: underline dotted;\n}\n\n/**\n * Add the correct font weight in Chrome, Edge, and Safari.\n */\n\n:where(b, strong) {\n font-weight: bolder;\n}\n\n/**\n * 1. Correct the inheritance and scaling of font size in all browsers.\n * 2. Correct the odd `em` font sizing in all browsers.\n */\n\n:where(code, kbd, samp) {\n font-family: monospace, monospace; /* 1 */\n font-size: 1em; /* 2 */\n}\n\n/**\n * Add the correct font size in all browsers.\n */\n\n:where(small) {\n font-size: 80%;\n}\n\n/* Embedded content\n * ========================================================================== */\n\n/*\n * Change the alignment on media elements in all browsers (opinionated).\n */\n\n:where(audio, canvas, iframe, img, svg, video) {\n vertical-align: middle;\n}\n\n/**\n * Remove the border on iframes in all browsers (opinionated).\n */\n\n:where(iframe) {\n border-style: none;\n}\n\n/**\n * Change the fill color to match the text color in all browsers (opinionated).\n */\n\n:where(svg:not([fill])) {\n fill: currentColor;\n}\n\n/* Tabular data\n * ========================================================================== */\n\n/**\n * 1. Collapse border spacing in all browsers (opinionated).\n * 2. Correct table border color inheritance in all Chrome, Edge, and Safari.\n * 3. Remove text indentation from table contents in Chrome, Edge, and Safari.\n */\n\n:where(table) {\n border-collapse: collapse; /* 1 */\n border-color: inherit; /* 2 */\n text-indent: 0; /* 3 */\n}\n\n/* Forms\n * ========================================================================== */\n\n/**\n * Remove the margin on controls in Safari.\n */\n\n:where(button, input, select) {\n margin: 0;\n}\n\n/**\n * Correct the inability to style buttons in iOS and Safari.\n */\n\n:where(button, [type="button" i], [type="reset" i], [type="submit" i]) {\n -webkit-appearance: button;\n}\n\n/**\n * Change the inconsistent appearance in all browsers (opinionated).\n */\n\n:where(fieldset) {\n border: 1px solid #a0a0a0;\n}\n\n/**\n * Add the correct vertical alignment in Chrome, Edge, and Firefox.\n */\n\n:where(progress) {\n vertical-align: baseline;\n}\n\n/**\n * 1. Remove the margin in Firefox and Safari.\n * 3. Change the resize direction in all browsers (opinionated).\n */\n\n:where(textarea) {\n margin: 0; /* 1 */\n resize: vertical; /* 3 */\n}\n\n/**\n * 1. Correct the odd appearance in Chrome, Edge, and Safari.\n * 2. Correct the outline style in Safari.\n */\n\n:where([type="search" i]) {\n -webkit-appearance: textfield; /* 1 */\n outline-offset: -2px; /* 2 */\n}\n\n/**\n * Correct the cursor style of increment and decrement buttons in Safari.\n */\n\n::-webkit-inner-spin-button,\n::-webkit-outer-spin-button {\n height: auto;\n}\n\n/**\n * Correct the text style of placeholders in Chrome, Edge, and Safari.\n */\n\n::-webkit-input-placeholder {\n color: inherit;\n opacity: 0.54;\n}\n\n/**\n * Remove the inner padding in Chrome, Edge, and Safari on macOS.\n */\n\n::-webkit-search-decoration {\n -webkit-appearance: none;\n}\n\n/**\n * 1. Correct the inability to style upload buttons in iOS and Safari.\n * 2. Change font properties to `inherit` in Safari.\n */\n\n::-webkit-file-upload-button {\n -webkit-appearance: button; /* 1 */\n font: inherit; /* 2 */\n}\n\n/* Interactive\n * ========================================================================== */\n\n/*\n * Add the correct styles in Safari.\n */\n\n:where(dialog) {\n background-color: white;\n border: solid;\n color: black;\n height: -moz-fit-content;\n height: fit-content;\n left: 0;\n margin: auto;\n padding: 1em;\n position: absolute;\n right: 0;\n width: -moz-fit-content;\n width: fit-content;\n}\n\n:where(dialog:not([open])) {\n display: none;\n}\n\n/*\n * Add the correct display in Safari.\n */\n\n:where(details > summary:first-of-type) {\n display: list-item;\n}\n\n/* Accessibility\n * ========================================================================== */\n\n/**\n * Change the cursor on busy elements in all browsers (opinionated).\n */\n\n:where([aria-busy="true" i]) {\n cursor: progress;\n}\n\n/*\n * Change the cursor on control elements in all browsers (opinionated).\n */\n\n:where([aria-controls]) {\n cursor: pointer;\n}\n\n/*\n * Change the cursor on disabled, not-editable, or otherwise\n * inoperable elements in all browsers (opinionated).\n */\n\n:where([aria-disabled="true" i], [disabled]) {\n cursor: not-allowed;\n}\n\n/*\n * Change the display on visually hidden accessible elements\n * in all browsers (opinionated).\n */\n\n:where([aria-hidden="false" i][hidden]) {\n display: initial;\n}\n\n:where([aria-hidden="false" i][hidden]:not(:focus)) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n}\n');var O0={exports:{}};!function(e){!function(){function t(e,t,n){return e.call.apply(e.bind,arguments)}function n(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function r(e,o,i){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?t:n).apply(null,arguments)}var o=Date.now||function(){return+new Date};function i(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var a=!!window.FontFace;function s(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function u(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function c(e){e.parentNode&&e.parentNode.removeChild(e)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function f(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function d(e,t,n){function r(){l&&o&&i&&(l(c),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,c=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,c=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),u(e,"head",t)}function p(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function S(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new m("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function O(e){if(e.g){var t=f(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),l(e.f,n,r)}k(e,"inactive")}function k(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,x(n)):e.h[t]())}function E(){this.c={}}function j(e,t){this.c=e,this.f=t,this.a=s(this.c,"span",{"aria-hidden":"true"},this.f)}function A(e){u(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+w(e.c)+";font-style:"+_(e)+";font-weight:"+e.f+"00;"}function M(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function P(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new j(this.c,this.s),this.h=new j(this.c,this.s),this.j=new j(this.c,this.s),this.m=new j(this.c,this.s),e=T(e=new b(this.a.c+",serif",x(this.a))),this.g.a.style.cssText=e,e=T(e=new b(this.a.c+",sans-serif",x(this.a))),this.h.a.style.cssText=e,e=T(e=new b("serif",x(this.a))),this.j.a.style.cssText=e,e=T(e=new b("sans-serif",x(this.a))),this.m.a.style.cssText=e,A(this.g),A(this.h),A(this.j),A(this.m)}m.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},M.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function I(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function L(e,t,n){for(var r in D)if(D.hasOwnProperty(r)&&t===e.f[D[r]]&&n===e.f[D[r]])return!0;return!1}function N(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=I()&&L(e,n,i)),t?o()-e.A>=e.w?I()&&L(e,n,i)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?B(e,e.v):B(e,e.B):function(e){setTimeout(r((function(){N(this)}),e),50)}(e):B(e,e.v)}function B(e,t){setTimeout(r((function(){c(this.g.a),c(this.h.a),c(this.j.a),c(this.m.a),t(this.a)}),e),0)}function F(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}P.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),N(this)};var z=null;function U(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&l(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):O(e.a))}function H(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function V(e,t,n,o,i){var a=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=i||null,s=o||{};if(0===n.length&&a)O(t.a);else{t.f+=n.length,a&&(t.j=a);var u,c=[];for(u=0;u<n.length;u++){var f=n[u],d=s[f.c],p=t.a,h=f;if(p.g&&l(p.f,[p.a.c("wf",h.c,x(h).toString(),"loading")]),k(p,"fontloading",h),p=null,null===z)if(window.FontFace){h=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var g=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);z=h?42<parseInt(h[1],10):!g}else z=!1;p=z?new M(r(t.g,t),r(t.h,t),t.c,f,t.s,d):new P(r(t.g,t),r(t.h,t),t.c,f,t.s,e,d),c.push(p)}for(u=0;u<c.length;u++)c[u].start()}}),0)}function K(e,t){this.c=e,this.a=t}function W(e,t){this.c=e,this.a=t}function $(e,t){this.c=e||q,this.a=[],this.f=[],this.g=t||""}F.prototype.g=function(e){var t=this.a;t.g&&l(t.f,[t.a.c("wf",e.c,x(e).toString(),"active")],[t.a.c("wf",e.c,x(e).toString(),"loading"),t.a.c("wf",e.c,x(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,U(this)},F.prototype.h=function(e){var t=this.a;if(t.g){var n=f(t.f,t.a.c("wf",e.c,x(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,x(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,x(e).toString(),"inactive")),l(t.f,r,o)}k(t,"fontinactive",e),U(this)},H.prototype.load=function(e){this.c=new i(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&l(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new F(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){V(e,i,t,n,r)}))}(this,new S(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var u=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(u,n))):a.push(new b(u))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;p(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},W.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new h;for(t=0,n=r.length;t<n;t++)d(this.c,r[t],g(a));var s=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var u=r[1].split(","),c=0;c<u.length;c+=1)s.push(new b(r[0],u[c]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new $(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,u=(s=s.split(",")).length,c=0;c<u;c++){var l;if((l=s[c]).match(/^[\w-]+$/))if(null==(f=J.exec(l.toLowerCase())))l="";else{if(l=null==(l=f[2])||""==l?"n":X[l],null==(f=f[1])||""==f)f="4";else var f=Y[f]||(isNaN(f)?"4":f.substr(0,1));l=[l,f].join("")}else l="";l&&a.push(l)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),d(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),g(t)),y(t,(function(){e(i.a,i.c,ee)}))},te.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?p(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},p(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var re=new H(window);re.a.c.custom=function(e,t){return new W(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}(O0);var k0=O0.exports;const E0=q.div((({width:e,height:t})=>({width:e,height:t}))),j0=q.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),A0=q.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),T0=q.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),M0=q.div({display:"flex",flexDirection:"column"}),P0=q.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),D0=q.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),R0=q.div((({theme:e,color:t})=>{let n=e.scale1;return t&&(n=((e,t)=>{const n=Object.keys(e);return"string"==typeof t&&n.includes(t)})(e.color,t)?e.color[t]:t),{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"4px 8px",cursor:"pointer",background:e.scale0,borderLeft:"4px solid",borderColor:n,"&:hover":{background:e.scale1},"& > :last-child":{visibility:"hidden"},"&:hover > :last-child":{visibility:"visible"}}})),I0=q.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),L0=q.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),N0=t.createContext({}),B0=(t,n)=>{const r="th"===n?F0:z0;return yt(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},F0=q.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),z0=q.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),U0=q(E1)({alignItems:"center",padding:"8px 24px"},(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),H0=q.tbody((({height:e})=>({height:e,overflow:"auto"}))),V0=q(E1)((({theme:e})=>({borderTop:`1px solid ${e.table.borderColor}`,color:e.table.color.body,fontSize:e.font.size.sm,wordBreak:"break-word",alignItems:"center",padding:"16px 24px"})),(({theme:e,hoverEffect:t})=>t&&{"&:hover":{backgroundColor:e.scale1,cursor:"pointer"}}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),K0=q.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),W0=q(K0)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o}))),$0=q(K0)({display:"flex",alignItems:"center"},(({theme:e,active:t,sorting:n})=>({cursor:n?"pointer":void 0,color:t?e.scale10:e.scale6,"&:hover":{color:n?e.scale8:void 0}}))),q0=n=>{var{children:r,columns:o,data:i}=n,a=c(n,["children","columns","data"]);const[s,u]=t.useState(i),[l,f]=t.useState(),d=i&&"function"==typeof r?r(s):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=Ft.orderBy(i,t,n)}Ft.isEqual(e,s)||u(e)}),[i,l]);const p=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(N0.Provider,Object.assign({value:p},{children:e.jsx(G0,Object.assign({},a,{children:d}))}))};q0.Header=n=>{var{children:r,columns:o}=n,i=c(n,["children","columns"]);const{parentColumns:a}=t.useContext(N0),s=o||a||"equal";return e.jsx("thead",{children:e.jsx(U0,Object.assign({as:"tr",columns:s},i,{children:B0(r,"th")}))})},q0.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[u,c]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(N0),p=s||a,h="desc"===u?"arrow-down":"arrow-up",g="asc"===u||"desc"===u,y=e=>{if(c(e),d&&s){d("inactive"===e?void 0:{key:s,dir:e})}};return t.useEffect((()=>{!s||"asc"!==a&&"desc"!==a||y(a)}),[]),t.useEffect((()=>{a&&c(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==u&&!e&&c("inactive")}),[f,u]),e.jsxs($0,Object.assign({onClick:e=>{s?y("inactive"===u?"asc":"asc"===u?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(tt,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},q0.Body=({children:n,height:r})=>{const{parentColumns:o}=t.useContext(N0);return e.jsx(H0,Object.assign({height:r},{children:t.Children.map(n,(e=>e?t.cloneElement(e,{parentColumns:o}):null))}))},q0.Row=n=>{var{children:r,columns:o,onClick:i}=n,a=c(n,["children","columns","onClick"]);const{parentColumns:s}=t.useContext(N0),u=o||s||"equal";return e.jsx(V0,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},a,{children:B0(r,"td")}))},q0.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u})=>{const c={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:u};return e.jsx(W0,Object.assign({contentPosition:n,showDefault:!!r&&!t},c,{children:t||r}))};const G0=q.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),(({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})=>({padding:e,paddingTop:t,paddingBottom:n,paddingRight:r,paddingLeft:o})),(({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o})=>({margin:e,marginTop:t,marginBottom:n,marginRight:r,marginLeft:o}))),Z0=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:u,offsetArrowX:c,offsetX:l,containerWidth:f,width:d,maxWidth:p,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},S=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(Q0,Object.assign({width:f,onMouseLeave:S,onMouseOver:S,onClick:S,style:a,onFocus:S},{children:[e.jsx(J0,Object.assign({visible:x,position:s,offsetY:u,offsetX:l,offsetArrowX:c,width:d,maxWidth:p,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},Y0=q.div((({theme:e})=>({color:e.tooltip.color.default}))),X0=q.div((({theme:e})=>({color:e.tooltip.color.subtext}))),J0=q.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,u=a.background,c=o||u;return{backgroundColor:c,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${c} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),Q0=q.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));Z0.Header=Y0,Z0.Body=X0;const e2="#0074F4",t2="#001D32",n2="#FFFFFF",r2={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:e2,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:Ie(.95,e2),brandTint1:Ie(.9,e2),brandTint2:Ie(.8,e2),brandTint3:Ie(.7,e2),brandTint4:Ie(.6,e2),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:"#FF6068",errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:Ie(.95,"#FF6068"),errorTint1:Ie(.9,"#FF6068"),errorTint2:Ie(.8,"#FF6068"),warning:"#FF9900",warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:Ie(.95,"#FF9900"),warningTint1:Ie(.9,"#FF9900"),warningTint2:Ie(.8,"#FF9900"),alert:"#F0BB00",alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:Ie(.95,"#F0BB00"),alertTint1:Ie(.9,"#F0BB00"),alertTint2:Ie(.8,"#F0BB00"),success:"#00C242",successShade1:"#00AF3B",successShade2:"#009B35",successTint0:Ie(.95,"#00C242"),successTint1:Ie(.9,"#00C242"),successTint2:Ie(.8,"#00C242"),grayscale0:Ie(.95,t2),grayscale1:Ie(.9,t2),grayscale2:Ie(.8,t2),grayscale3:Ie(.7,t2),grayscale4:Ie(.6,t2),grayscale5:Ie(.5,t2),grayscale6:Ie(.4,t2),grayscale7:Ie(.3,t2),grayscale8:Ie(.2,t2),grayscale9:Ie(.1,t2),grayscale10:t2,contrast0:Ie(.95,n2),contrast1:Ie(.9,n2),contrast2:Ie(.8,n2),contrast3:Ie(.7,n2),contrast4:Ie(.6,n2),contrast5:Ie(.5,n2),contrast6:Ie(.4,n2),contrast7:Ie(.3,n2),contrast8:Ie(.2,n2),contrast9:Ie(.1,n2),contrast10:n2};var o2={color:r2,elevation0:"0px 2px 4px 2px rgba(0, 0, 0, 0.05)",elevation1:"0px 2px 4px 2px rgba(0, 0, 0, 0.1)",elevation2:"0px 2px 4px 2px rgba(0, 0, 0, 0.15)",elevation3:"0px 4px 8px 2px rgba(0, 0, 0, 0.2)",elevation4:"0px 4px 8px 2px rgba(0, 0, 0, 0.25)",font:{weight:{thin:100,light:300,default:400,medium:500,semiBold:600,bold:700},size:{xs:10,sm:12,md:14,lg:16,xl:18},family:{default:"'Roboto', sans-serif",medium:"'Roboto', sans-serif",light:"'Roboto', sans-serif"}},size:{xs:4,sm:8,md:16,lg:24}};const{font:i2}=o2;var a2={small:{height:28,iconSize:20,font:i2.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:i2.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:i2.size.lg,padding:14,iconOnlyPadding:6}};const s2="#FFFFFF",u2=r2.grayscale0,c2=r2.grayscale1,l2=r2.grayscale2,f2=r2.grayscale3,d2=r2.grayscale4,p2=r2.grayscale5,h2=r2.grayscale6,g2=r2.grayscale7,y2=r2.grayscale8,v2=r2.grayscale9,m2=r2.grayscale10,b2=Object.assign(Object.assign({},o2),{name:"light",accent:r2.brand,accentShade:r2.brandShade1,background0:s2,background1:s2,background2:s2,background3:s2,background4:s2,background5:s2,scale0:u2,scale1:c2,scale2:l2,scale3:f2,scale4:d2,scale5:p2,scale6:h2,scale7:g2,scale8:y2,scale9:v2,scale10:m2,button:Object.assign(Object.assign({},a2),{primary:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineBackground:{default:r2.brandTint0,hover:r2.brandTint1,active:r2.brandTint2},border:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},divider:l2},secondary:{color:{default:m2,hover:m2,active:m2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:c2,hover:l2,active:f2},outlineBackground:{default:c2,hover:l2,active:f2},border:{default:l2,hover:l2,active:l2},divider:l2},positive:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},outlineBackground:{default:r2.successTint0,hover:r2.successTint1,active:r2.successTint2},border:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},divider:l2},negative:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},outlineBackground:{default:r2.errorTint0,hover:r2.errorTint1,active:r2.errorTint2},border:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},divider:l2},caution:{color:{default:s2,hover:s2,active:s2},outlineColor:{default:m2,hover:m2,active:m2},background:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},outlineBackground:{default:r2.warningTint0,hover:r2.warningTint1,active:r2.warningTint2},border:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},divider:l2},subtle:{color:{default:r2.brand,hover:r2.brand,active:r2.brand},outlineColor:{default:r2.brand,hover:r2.brand,active:r2.brand},secondaryColor:{default:m2,hover:m2,active:m2},positiveColor:{default:r2.success,hover:r2.success,active:r2.success},negativeColor:{default:r2.error,hover:r2.error,active:r2.error},cautionColor:{default:r2.warning,hover:r2.warning,active:r2.warning},background:{default:"transparent",hover:c2,active:l2},outlineBackground:{default:"transparent",hover:c2,active:l2},border:{default:"transparent",hover:l2,active:l2},divider:l2},link:{color:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineColor:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},secondaryColor:{default:y2,hover:v2,active:m2},positiveColor:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},negativeColor:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},cautionColor:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:d2,hover:d2,active:d2},outlineColor:{default:d2,hover:d2,active:d2},background:{default:c2,hover:c2,active:c2},outlineBackground:{default:u2,hover:u2,active:u2},border:{default:c2,hover:c2,active:c2},divider:c2},color:{default:s2}}),calendar:{background:{container:r2.contrast10,hover:c2,active:r2.brand,activeHover:r2.brandShade1},color:{disabled:d2,default:m2,active:r2.contrast10,current:r2.brand,outside:h2,weekday:y2,monthYear:y2,iconDefault:d2,iconHover:m2}},defaultBorder:`1px solid ${c2}`,formControl:{color:{default:y2,hover:m2,active:r2.brand,activeHover:r2.brandShade1,disabled:d2}},input:{borderRadius:4,background:{default:u2,hover:c2,focused:c2,disabled:u2},color:{default:m2,disabled:d2,placeholder:h2,description:h2,descriptionError:r2.error},borderColor:{default:h2,hover:y2,focused:r2.brand,disabled:d2,error:r2.error},labelColor:{default:y2,hover:y2,filled:h2,focused:r2.brand,disabled:d2}},menu:{background:s2},menuItem:{borderColor:r2.brand,background:{active:u2,hover:c2,inactive:"transparent"},color:{active:m2,hover:m2,inactive:h2}},modal:{background:r2.contrast10,color:{header:m2,body:h2}},options:{background:r2.contrast10},optionItem:{background:{active:c2,inactive:"transparent"},color:{active:m2,inactive:m2,accent:r2.brand}},table:{color:{header:h2,body:m2},borderColor:c2},toast:{color:m2,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:y2,info:r2.brand,success:r2.success,warning:r2.warning,error:r2.error}},toggle:{slider:r2.contrast10},tooltip:{background:"#FFF",color:{default:m2,subtext:h2}}}),w2=r2.contrast0,x2=r2.contrast1,_2=r2.contrast2,C2=r2.contrast3,S2=r2.contrast4,O2=r2.contrast5,k2=r2.contrast6,E2=r2.contrast7,j2=r2.contrast8,A2=r2.contrast9,T2=r2.contrast10,M2=r2.brandDark,P2={light:b2,dark:Object.assign(Object.assign({},o2),{name:"dark",accent:M2,accentShade:r2.brandDarkShade1,background0:r2.brandBackground0,background1:r2.brandBackground1,background2:r2.brandBackground2,background3:r2.brandBackground3,background4:r2.brandBackground4,background5:r2.brandBackground5,scale0:w2,scale1:x2,scale2:_2,scale3:C2,scale4:S2,scale5:O2,scale6:k2,scale7:E2,scale8:j2,scale9:A2,scale10:T2,button:Object.assign(Object.assign({},a2),{primary:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},outlineBackground:{default:r2.brandTint0,hover:r2.brandTint1,active:r2.brandTint2},border:{default:r2.brand,hover:r2.brandShade1,active:r2.brandShade2},divider:_2},secondary:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:x2,hover:_2,active:C2},outlineBackground:{default:x2,hover:_2,active:C2},border:{default:_2,hover:_2,active:_2},divider:_2},positive:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},outlineBackground:{default:r2.successTint0,hover:r2.successTint1,active:r2.successTint2},border:{default:r2.success,hover:r2.successShade1,active:r2.successShade2},divider:_2},negative:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},outlineBackground:{default:r2.errorTint0,hover:r2.errorTint1,active:r2.errorTint2},border:{default:r2.error,hover:r2.errorShade1,active:r2.errorShade2},divider:_2},caution:{color:{default:T2,hover:T2,active:T2},outlineColor:{default:T2,hover:T2,active:T2},background:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},outlineBackground:{default:r2.warningTint0,hover:r2.warningTint1,active:r2.warningTint2},border:{default:r2.warning,hover:r2.warningShade1,active:r2.warningShade2},divider:_2},subtle:{color:{default:r2.brand,hover:r2.brand,active:r2.brand},outlineColor:{default:r2.brand,hover:r2.brand,active:r2.brand},secondaryColor:{default:T2,hover:T2,active:T2},positiveColor:{default:r2.success,hover:r2.success,active:r2.success},negativeColor:{default:r2.error,hover:r2.error,active:r2.error},cautionColor:{default:r2.warning,hover:r2.warning,active:r2.warning},background:{default:"transparent",hover:x2,active:_2},outlineBackground:{default:"transparent",hover:x2,active:_2},border:{default:"transparent",hover:_2,active:_2},divider:_2},link:{color:{default:r2.brandShade2,hover:r2.brandShade1,active:r2.brand},outlineColor:{default:r2.brandShade2,hover:r2.brandShade1,active:r2.brand},secondaryColor:{default:j2,hover:A2,active:T2},positiveColor:{default:r2.successShade2,hover:r2.successShade1,active:r2.success},negativeColor:{default:r2.errorShade2,hover:r2.errorShade1,active:r2.error},cautionColor:{default:r2.warningShade2,hover:r2.warningShade1,active:r2.warning},background:{default:"transparent",hover:"transparent",active:"transparent"},outlineBackground:{default:"transparent",hover:"transparent",active:"transparent"},border:{default:"transparent",hover:"transparent",active:"transparent"},divider:"transparent"},disabled:{color:{default:S2,hover:S2,active:S2},outlineColor:{default:S2,hover:S2,active:S2},background:{default:x2,hover:x2,active:x2},outlineBackground:{default:w2,hover:w2,active:w2},border:{default:x2,hover:x2,active:x2},divider:x2},color:{default:"#FFFFFF"}}),calendar:{background:{container:r2.brandBackground3,hover:x2,active:r2.brand,activeHover:r2.brandShade1},color:{disabled:S2,default:T2,active:T2,current:M2,outside:k2,weekday:j2,monthYear:j2,iconDefault:S2,iconHover:T2}},defaultBorder:`1px solid ${x2}`,formControl:{color:{default:j2,hover:T2,active:r2.brand,activeHover:r2.brandShade1,disabled:S2}},input:{borderRadius:4,background:{default:w2,hover:x2,focused:x2,disabled:w2},color:{default:T2,disabled:S2,placeholder:k2,description:k2,descriptionError:r2.error},borderColor:{default:k2,hover:j2,focused:M2,disabled:S2,error:r2.error},labelColor:{default:j2,hover:j2,filled:k2,focused:M2,disabled:S2}},menu:{background:r2.brandBackground2},menuItem:{borderColor:r2.brand,background:{active:w2,hover:x2,inactive:"transparent"},color:{active:T2,hover:T2,inactive:k2}},modal:{background:r2.brandBackground3,color:{header:T2,body:k2}},options:{background:r2.brandBackground3},optionItem:{background:{active:x2,inactive:"transparent"},color:{active:T2,inactive:T2,accent:M2}},table:{color:{header:k2,body:T2},borderColor:x2},toast:{color:T2,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:j2,info:r2.brand,success:r2.success,warning:r2.warning,error:r2.error}},toggle:{slider:r2.brandBackground0},tooltip:{background:r2.brandBackground4,color:{default:T2,subtext:k2}}})};exports.Audio=dn,exports.BarChart=t=>{var{width:r,height:o,data:i,dataKey:a}=t,s=c(t,["width","height","data","dataKey"]);const{scale2:u,color:l}=n.useTheme();return e.jsxs(ZR,Object.assign({},s,{children:[e.jsx(XR,{}),e.jsxs(iP,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},width:r,height:o,data:i},{children:[e.jsx(eT,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(aM,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(sM,{stroke:u,tickMargin:4}),YR(),e.jsx($T,{barSize:16,dataKey:a,fill:l.brand})]}))]}))},exports.Button=nn,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:u}=t.useRef(r||new Date),[c,l]=t.useState(u),[f,d]=t.useState(u),[p,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>{const t=function(e,t){if(QR(2,arguments),"object"!=typeof t||null===t)throw new RangeError("values parameter must be an object");var n=eI(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=VN(n,t.month)),null!=t.date&&n.setDate(JR(t.date)),null!=t.hours&&n.setHours(JR(t.hours)),null!=t.minutes&&n.setMinutes(JR(t.minutes)),null!=t.seconds&&n.setSeconds(JR(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(JR(t.milliseconds)),n)}(e,{hours:0,minutes:0,seconds:0,milliseconds:0});return t},v=e=>{const t=KN(("prev"===e?$N:rI)(f,{months:1}),1),n=y(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?xL($N(e,{months:1})):KN("future"===n?rI(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?$N:rI)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return QR(1,arguments),eI(e).getDay()}(KN(e,1)),n=wL(e),r=42-(n+t),o=m(e,t,"past"),s=m(e,r,"future");return[...o,...m(e,n,"present"),...s].map((e=>{const t=y(u),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(xL(f)),s=y(KN(f,1));let l=!1;const d=CL(e,n),p=_L(e,r);(i&&d||a&&p)&&(l=!0);const h=_L(e,o)||CL(e,s),g=lI(e,u),v=lI(e,c);return{date:bL(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[c,f]);return e.jsxs(qN,Object.assign({noShadow:s},{children:[e.jsxs(GN,{children:[e.jsx(ZN,{children:vL(f,"MMMM Y")}),e.jsxs(YN,{children:[e.jsx(tt,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(tt,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(QN,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(eB,{children:t[0]},t)))}),e.jsx(XN,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(JN,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),Xe())))})]}))},exports.Checkbox=oB,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d})=>{const{name:p}=n.useTheme(),h={margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?Ft.range(r,o+1):Ft.rangeRight(o,r+1)}return null})),n=t.flat();return Ft.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(CB,{method:w,url:C}):e.jsx(gB,Object.assign({},sB,{code:C,language:b,theme:"dark"===p?mB:bB},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(EB,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(jB,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(AB,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(xB,{content:C})]}))}))},exports.DocTable=TB,exports.DraftEditor=O1,exports.Dropdown=$t,exports.Form=P1,exports.Grid=E1,exports.Icon=tt,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:u,opacity:c})=>{const[l,f]=t.useState(i),d=Nt(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const p=()=>f(l>0?l-1:o.length-1),h=()=>l<o.length-1?f(l+1):f(0),g=e=>{const{key:t}=e;switch(t){case"ArrowLeft":case"ArrowDown":e.preventDefault(),p();break;case"ArrowRight":case"ArrowUp":e.preventDefault(),h();break;case"Escape":e.preventDefault(),r()}};return t.useEffect((()=>(n&&window.addEventListener("keydown",g),()=>window.removeEventListener("keydown",g))),[n,l]),n?e.jsxs(L1,Object.assign({opacity:c,prevNext:o.length>1},{children:[e.jsx(N1,Object.assign({onClick:r},{children:e.jsx(tt,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(B1,Object.assign({id:"prev",onClick:p},{children:e.jsx(tt,{name:"chevron-left",size:35,color:"white"})})),e.jsx(F1,{ref:d,src:o[l],alt:a,maxWidth:s,maxHeight:u}),o.length>1&&e.jsx(B1,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(tt,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=z1,exports.Input=jt,exports.InputUtils=kt,exports.Label=T1,exports.Menu=U1,exports.Message=$1,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(Q1,{children:[e.jsx(J1,{}),e.jsx(X1,Object.assign({color:n,style:r},{children:t})),e.jsx(J1,{})]}),exports.Modal=e0,exports.MultiSelect=r=>{var{children:o,options:i,items:a,listLabel:s,listText:l,itemsTitle:f,maxItems:d,placeholder:p,width:h,filter:g,restrictInput:y,disabled:v,optionsParent:m,compact:b,backgroundColor:w,borderless:x,addItem:_,removeItem:C,onTextChange:S,autoFocus:O}=r,k=c(r,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[E,j]=t.useState(O||!1),[A,T]=t.useState(!1),[M,P]=t.useState(""),{color:D,font:R,input:I}=n.useTheme(),L=Nt((()=>j(!1)),E,m?[m,`${m} *`]:void 0),N=t.useRef(null),B=b&&!!s,F=e=>{e&&_(e)},z=e=>{P(e),S&&S(e)};t.useEffect((()=>{const{current:e}=N;e&&!E&&e.blur()}),[E]);Lt(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(a.length>0){e.preventDefault();const t=a[a.length-1];C(t)}}),E&&!M,[a]);const U=i.filter((e=>!a.find((t=>t.id===e.id)))),H=t.useMemo((()=>`multi-select-${Xe()}`),[]),V=t.useMemo((()=>`multi-select-list-${Xe()}`),[]),K=d?a.length>=d:void 0,W=v||!E||K,$=()=>{const t=e.jsxs(s0,Object.assign({id:V,expanded:E,padTop:E&&a.length>0,labeled:!!s},{children:[l&&e.jsx(u0,Object.assign({expanded:E,labeled:!!s},{children:l})),o?o(E,!!v):a.map((t=>e.jsx(T1,Object.assign({pill:!0,iconRight:E&&!v?e.jsx(tt,{name:"close-circle",onClick:()=>C(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx($t,Object.assign({},k,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:U,fontSize:R.size.md,placeholder:v||a.length>0?" ":p||"Search...",placeholderColor:I.color.placeholder,inputRef:N,onChange:F,onTextChange:z,onError:e=>T(e),disabled:W,optionsParent:m?`#${V}`:`#${H}`,autoFocus:O}))]}));if(m){const e=document.querySelector(m);return e?u.default.createPortal(t,e):t}return t};return e.jsxs(o0,Object.assign({width:h,ref:L,labeled:!!s,disabled:v,collapse:B,onClick:e=>{e.stopPropagation();const{current:t}=N;E||s||j(!0),null==t||t.focus()}},{children:[e.jsxs(i0,Object.assign({collapse:B,id:H,expanded:E&&a.length>0,error:A,labeled:!!s,backgroundColor:w,borderless:x},{children:[s?e.jsx(a0,Object.assign({collapse:B},{children:s})):$(),e.jsxs(c0,{children:[d&&e.jsx(f0,{children:v&&f?e.jsxs(e.Fragment,{children:[a.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(l0,Object.assign({error:a.length>=d},{children:a.length})),"/",d," ",f]})}),a.length>0&&e.jsx(tt,{name:E?"chevron-up":"chevron-down",color:D.brand,pointer:!0,onClick:e=>{e.stopPropagation(),j(!E)}})]})]})),s&&E&&$()]}))},exports.Notification=d0,exports.Options=Dt,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:a,width:s}=n,u=c(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(p0(o)||1),[d,p]=t.useState(0),h=function(e,t,n=1){let r=t?e:0;const o=t||e,i=[];for(;r<=o;)i.push(r),r+=n;return i}(1,i),g=((e,t)=>{const n=[...e],r=[];for(;n.length>0;){const e=n.splice(0,t);r.push(e)}return r})(h,p0(a)||h.length),y=e=>{if(e>=1&&e<=i){const t=(e=>{for(let t=0;t<g.length;t++)if(g[t].includes(e))return t;return-1})(e);p(t),f(e),r(e)}},v=0!==d,m=d!==g.length-1;return e.jsxs(h0,Object.assign({width:s},u,{children:[e.jsx(y0,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(tt,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(y0,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(tt,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(m0,{children:"... "}):"",e.jsx(v0,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(m0,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(y0,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(tt,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(y0,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(tt,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,outerRadius:i,showWhenEmpty:a}=t,s=c(t,["size","data","innerRadius","outerRadius","showWhenEmpty"]);const u=(null==r?void 0:r.length)>0,l=u?r:a?[{name:"1",value:1,color:"#999"}]:void 0,f=i||n/2-1;return e.jsx(ZR,Object.assign({},s,{children:e.jsxs(aP,Object.assign({width:n,height:n},{children:[e.jsx(BE,Object.assign({dataKey:"value",data:l,innerRadius:o,outerRadius:f},{children:null==l?void 0:l.map((t=>e.jsx(ky,{fill:t.color||"#999"},t.name)))})),u&&YR()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d})=>{const p={margin:u,marginTop:c,marginBottom:l,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(b0,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(C0,Object.assign({width:o,height:i||s},p,{children:e.jsx(S0,{color:n,width:h})}))},exports.Radio=j1,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,k0.load({google:{families:e||["Roboto:100,300,400,500,700"]}})}),[r]),e.jsx(n.Global,{styles:{"html,body":{margin:0,fontFamily:o||"'Roboto', sans-serif",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"}}})),exports.ScrollbarStyles=()=>{const{scale1:t}=n.useTheme();return e.jsx(n.Global,{styles:{"::-webkit-scrollbar":{width:8,height:8},"::-webkit-scrollbar-track":{backgroundColor:"transparent",border:"none"},"::-webkit-scrollbar-thumb:horizontal, ::-webkit-scrollbar-thumb:vertical":{backgroundColor:t,WebkitBorderRadius:6},"*":{scrollbarColor:`${t} transparent`}}})},exports.Slider=cn,exports.Spacer=E0,exports.Spinner=mt,exports.Table=q0,exports.ToastStyles=()=>{const{font:t,toast:r}=n.useTheme();return e.jsx(n.Global,{styles:{".Toastify__toast":{color:r.color,borderRadius:4,fontFamily:t.family.default},".Toastify__close-button":{color:r.color},".Toastify__toast--default":{background:r.background.deafult,border:`1px solid ${r.border.deafult}`},".Toastify__toast--info":{background:r.background.info,border:`1px solid ${r.border.info}`,"& .Toastify__toast-icon > svg":{fill:r.border.info}},".Toastify__toast--success":{background:r.background.success,border:`1px solid ${r.border.success}`,"& .Toastify__toast-icon > svg":{fill:r.border.success}},".Toastify__toast--warning":{background:r.background.warning,border:`1px solid ${r.border.warning}`,"& .Toastify__toast-icon > svg":{fill:r.border.warning}},".Toastify__toast--error":{background:r.background.error,border:`1px solid ${r.border.error}`,"& .Toastify__toast-icon > svg":{fill:r.border.error}},".Toastify__progress-bar--default":{background:r.border.deafult},".Toastify__progress-bar--info":{background:r.border.info},".Toastify__progress-bar--success":{background:r.border.success},".Toastify__progress-bar--warning":{background:r.border.warning},".Toastify__progress-bar--error":{background:r.border.error}}})},exports.Toggle=A1,exports.Tooltip=Z0,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:u,readOnly:c,width:l,margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:d,marginBottom:p,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!Ft.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},S=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},O=t=>e.jsxs("div",Object.assign({style:{display:"flex",alignItems:"center",columnGap:8}},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(I0,{children:t.header}),e.jsx(L0,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&u);return e.jsxs(j0,Object.assign({width:l,readOnly:c},x,{children:[i&&e.jsx(A0,{children:i}),e.jsxs(T0,{children:[!c&&e.jsxs(M0,{children:[k&&e.jsx(P0,{children:v.length>0&&!s&&e.jsx(nn,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(D0,{children:v.map((t=>e.jsxs(R0,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[O(t),e.jsx(tt,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(M0,{children:[k&&!c&&e.jsx(P0,{children:b.length>0&&!u&&!c&&e.jsx(nn,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),c&&0===b.length?e.jsx("div",{children:a}):e.jsx(D0,{children:b.map((t=>e.jsxs(R0,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[O(t),e.jsx(tt,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=wB,exports.formatDate=(e,t)=>{if(!e)return"";const n=new Date(e);let r=t,o=!1;"object"==typeof t&&(r=t.time,o=!!t.lowercase);const i="onlyTime"===r||!1,a="withTime"===r||!1,s="relative"===r||!1,u=new Date,c=vL(n,"EEEE"),l=vL(n,"MMM d"),f=vL(n,"MMM d, y"),d=vL(n,"h:mm aaa"),p=function(e){return QR(1,arguments),UN(e,Date.now())}(n),h=function(e){return QR(1,arguments),eI(e).getTime()>Date.now()}(n),g=function(e){return QR(1,arguments),lI(e,Date.now())}(n),y=function(e){return QR(1,arguments),lI(e,HN(Date.now(),1))}(n),v=function(e){return QR(1,arguments),lI(e,tI(Date.now(),1))}(n),m=function(e,t,n){QR(2,arguments);var r=gI(e,t)/6e4;return vI(null==n?void 0:n.roundingMethod)(r)}(u,n),b=function(e,t,n){QR(2,arguments);var r=hI(e,t)/7;return vI(null==n?void 0:n.roundingMethod)(r)}(u,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(d);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:d)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${l}${x}`:`${f}${x}`:`${c}${x}`)},exports.theme=P2,exports.useConfirm=({header:n,text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:u,inputPlaceholder:c,inputValue:l})=>{const[f,d]=t.useState(l||""),[p,h]=t.useState(null),g=()=>{h(null),d("")},y=()=>{null==p||p.resolve(!s||f),g()},v=()=>{null==p||p.resolve(!1),g()};Lt(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!p,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(e0,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(e0.Header,{children:n}),r&&e.jsx(e0.Text,{children:r}),s&&e.jsx(e0.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(jt,{autoFocus:!0,label:u,placeholder:c,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(e0.Footer,{children:[e.jsx(nn,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(nn,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useEventListener=Lt,exports.useOnClickOutside=Nt,exports.useSelect=zt,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,u]=t.useState(!1);t.useEffect((()=>{if(null==e?void 0:e.length){const t=e.map((e=>Object.assign(Object.assign({},e),{selected:n||!1})));o(t)}}),[]);return t.useEffect((()=>{const e=r.every((e=>e.selected)),t=r.some((e=>e.selected));e?(u(!1),a(!0)):t?(u(!0),a(!1)):(u(!1),a(!1))}),[r]),{list:r,partial:s,allSelected:i,onSelectAll:e=>{o((t=>t.map((t=>Object.assign(Object.assign({},t),{selected:e})))))},onChildChange:(e,t)=>{o((n=>n.map((n=>n.id===t?Object.assign(Object.assign({},n),{selected:e}):n))))}}},exports.useWindowSize=()=>{const[e,n]=t.useState({width:null,height:null});return t.useEffect((()=>{const e=()=>{n({width:window.innerWidth,height:window.innerHeight})};return window.addEventListener("resize",e),e(),()=>window.removeEventListener("resize",e)}),[]),e};
210
210
  //# sourceMappingURL=index.js.map