@wavv/ui 1.8.10 → 1.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/cjs/index.js
CHANGED
|
@@ -206,7 +206,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
206
206
|
38:14,
|
|
207
207
|
/*! Conditions:: INITIAL */
|
|
208
208
|
/*! Rule:: $ */
|
|
209
|
-
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}();void 0!==Q_&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(eS);var tS={},nS={exports:{}},rS={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}},oS=function(e,t,n,r){if(!rS.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!rS[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=rS[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}}(oS);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}(nS,nS.exports);var iS=nS.exports;Object.defineProperty(tS,"__esModule",{value:!0}),tS.flip=lS;var aS=function(e){return e&&e.__esModule?e:{default:e}}(iS);function sS(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,aS.default)(e.left,e.right,t),r=sS(n.left,t),o=sS(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)&&(cS(r.right,o.right)?n=(0,aS.default)(r.left,o.left,t):cS(r.right,o.left)&&(n=(0,aS.default)(r.left,o.right,t)),r=sS(n.left,t),o=sS(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 fS(o);r.type===o.type&&uS(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(uS(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=sS({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?lS(o.operator):o.operator,sS(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=sS({type:"MathExpression",operator:"-"===i?lS(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,sS(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&uS(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=sS({type:"MathExpression",operator:i,left:r.left,right:o},t),sS(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=sS({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=sS({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),sS(e,t)}return e}(e,t);case"/":return function(e,t){if(!uS(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 uS(e.left.left.type)&&uS(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,sS(e.left,t)):e;if(uS(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(uS(e.left.left.type)&&uS(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(uS(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(uS(e.right.left.type)&&uS(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&&uS(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?sS(e.value,t):e}function cS(e,t){return e.type===t.type&&e.value===t.value}function uS(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 lS(e){return"+"===e?"-":"+"}function fS(e){return uS(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=fS(e.left),e.right=fS(e.right)),e}tS.default=sS;var dS={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=tS,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,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;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}(dS,dS.exports);var pS=dS.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(J_),r=eS,o=a(tS),i=a(pS);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 c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(I_,I_.exports);var hS=ct(I_.exports);function gS(e){return gS="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},gS(e)}function yS(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?yS(Object(n),!0).forEach((function(t){mS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bS(e){return function(e){if(Array.isArray(e))return wS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wS(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 wS(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 wS(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 xS={widthCache:{},cacheCount:0},CS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_S=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],SS="recharts_measurement_span";var OS=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(bS(e),["-",t.toLowerCase()]):[].concat(bS(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],_S.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},kS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||zC.isSsr)return{width:0,height:0};var n="".concat(e),r=OS(t),o="".concat(n,"-").concat(r);if(xS.widthCache[o])return xS.widthCache[o];try{var i=document.getElementById(SS);i||((i=document.createElement("span")).setAttribute("id",SS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=vS(vS({},CS),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return xS.widthCache[o]=c,++xS.cacheCount>2e3&&(xS.cacheCount=0,xS.widthCache={}),c}catch(e){return{width:0,height:0}}},ES=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function AS(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 TS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MS(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 MS(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 MS(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 PS=/[ \f\n\r\t\v\u2028\u2029]+/,DS=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return xf(t)||(o=n?t.toString().split(""):t.toString().split(PS)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:kS(e,r).width}})),spaceWidth:n?0:kS(" ",r).width}}catch(e){return null}},LS=function(e){return[{words:xf(e)?[]:e.toString().split(PS)}]},RS=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!zC.isSsr){var s=DS({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,u=Rf(i),l=a,f=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<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!u)return d;for(var p,h=function(e){var t=l.slice(0,e),n=DS({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,y=l.length-1,v=0;g<=y&&v<=l.length-1;){var m=Math.floor((g+y)/2),b=TS(h(m-1),2),w=b[0],x=b[1],C=TS(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(y=m-1),!w&&C){p=x;break}v++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):LS(r)}return LS(r)},IS={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},NS=function(e){var n=t.useMemo((function(){return RS({breakAll:e.breakAll,children:e.children,maxLines:e.maxLines,scaleToFit:e.scaleToFit,style:e.style,width:e.width})}),[e.breakAll,e.children,e.maxLines,e.scaleToFit,e.style,e.width]),r=e.dx,o=e.dy,i=e.textAnchor,a=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,d=e.breakAll,p=AS(e,ES);if(!If(p.x)||!If(p.y))return null;var h,g=p.x+(Rf(r)?r:0),y=p.y+(Rf(o)?o:0);switch(a){case"start":h=hS("calc(".concat(l,")"));break;case"middle":h=hS("calc(".concat((n.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:h=hS("calc(".concat(n.length-1," * -").concat(u,")"))}var v=[];if(s){var m=n[0].width,b=e.width;v.push("scale(".concat((Rf(b)?b/m:1)/m,")"))}return c&&v.push("rotate(".concat(c,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),t.createElement("text",jS({},ud(p,!0),{x:g,y:y,className:Fc("recharts-text",f),textAnchor:i,fill:p.fill.includes("url")?IS.fill:p.fill}),n.map((function(e,n){return t.createElement("tspan",{x:g,dy:0===n?h:u,key:n},e.words.join(d?"":" "))})))};NS.defaultProps=IS;var BS=Yh;var FS=ct((function(e,t){return BS(e,t)})),zS=vu;var HS=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&&!zS(a):n(a,s)))var s=a,c=i}return c};var VS=function(e,t){return e>t},KS=HS,US=VS,$S=Ag;var WS=function(e){return e&&e.length?KS(e,$S,US):void 0},qS=ct(WS);var ZS=function(e,t){return e<t},GS=HS,YS=ZS,XS=Ag;var JS=function(e){return e&&e.length?GS(e,XS,YS):void 0},QS=ct(JS),eO=Xl,tO=Vg,nO=Hx,rO=cu;var oO=Mx,iO=function(e,t){return(rO(e)?eO:nO)(e,tO(t))};var aO=ct((function(e,t){return oO(iO(e,t),1)}));function sO(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cO(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uO(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=sO,n=(t,n)=>sO(e(t),n),r=(t,n)=>e(t)-n):(t=e===sO||e===cO?e:lO,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function lO(){return 0}function fO(e){return null===e?NaN:+e}const dO=uO(sO).right;uO(fO).center;var pO=dO;class hO extends Map{constructor(e,t=yO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(gO(this,e))}has(e){return super.has(gO(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function gO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yO(e){return null!==e&&"object"==typeof e?e.valueOf():e}function vO(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const mO=Math.sqrt(50),bO=Math.sqrt(10),wO=Math.sqrt(2);function xO(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=mO?10:i>=bO?5:i>=wO?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?xO(e,t,2*n):[s,c,u]}function CO(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?xO(t,e,n):xO(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function _O(e,t,n){return xO(e=+e,t=+t,n=+n)[2]}function SO(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?_O(t,e,n):_O(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function OO(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 kO(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 EO(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?vO:function(e=sO){if(e===sO)return vO;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);EO(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(jO(e,n,t),o(e[r],i)>0&&jO(e,n,r);a<s;){for(jO(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?jO(e,n,s):(++s,jO(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function jO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function AO(e,t,n=fO){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,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 TO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function MO(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 PO=Symbol("implicit");function DO(){var e=new hO,t=[],n=[],r=PO;function o(o){let i=e.get(o);if(void 0===i){if(r!==PO)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new hO;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);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 DO(t,n).unknown(r)},TO.apply(o,arguments),o}function LO(){var e,t,n=DO().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=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-c+2*u),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*l,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(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}(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?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return LO(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},TO.apply(f(),arguments)}function RO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return RO(t())},e}function IO(){return RO(LO.apply(null,arguments).paddingInner(1))}function NO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function BO(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function FO(){}var zO=.7,HO=1/zO,VO="\\s*([+-]?\\d+)\\s*",KO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",UO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$O=/^#([0-9a-f]{3,8})$/,WO=new RegExp(`^rgb\\(${VO},${VO},${VO}\\)$`),qO=new RegExp(`^rgb\\(${UO},${UO},${UO}\\)$`),ZO=new RegExp(`^rgba\\(${VO},${VO},${VO},${KO}\\)$`),GO=new RegExp(`^rgba\\(${UO},${UO},${UO},${KO}\\)$`),YO=new RegExp(`^hsl\\(${KO},${UO},${UO}\\)$`),XO=new RegExp(`^hsla\\(${KO},${UO},${UO},${KO}\\)$`),JO={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 QO(){return this.rgb().formatHex()}function ek(){return this.rgb().formatRgb()}function tk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$O.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nk(t):3===n?new ik(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rk(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=WO.exec(e))?new ik(t[1],t[2],t[3],1):(t=qO.exec(e))?new ik(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ZO.exec(e))?rk(t[1],t[2],t[3],t[4]):(t=GO.exec(e))?rk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=YO.exec(e))?fk(t[1],t[2]/100,t[3]/100,1):(t=XO.exec(e))?fk(t[1],t[2]/100,t[3]/100,t[4]):JO.hasOwnProperty(e)?nk(JO[e]):"transparent"===e?new ik(NaN,NaN,NaN,0):null}function nk(e){return new ik(e>>16&255,e>>8&255,255&e,1)}function rk(e,t,n,r){return r<=0&&(e=t=n=NaN),new ik(e,t,n,r)}function ok(e,t,n,r){return 1===arguments.length?function(e){return e instanceof FO||(e=tk(e)),e?new ik((e=e.rgb()).r,e.g,e.b,e.opacity):new ik}(e):new ik(e,t,n,null==r?1:r)}function ik(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ak(){return`#${lk(this.r)}${lk(this.g)}${lk(this.b)}`}function sk(){const e=ck(this.opacity);return`${1===e?"rgb(":"rgba("}${uk(this.r)}, ${uk(this.g)}, ${uk(this.b)}${1===e?")":`, ${e})`}`}function ck(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lk(e){return((e=uk(e))<16?"0":"")+e.toString(16)}function fk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pk(e,t,n,r)}function dk(e){if(e instanceof pk)return new pk(e.h,e.s,e.l,e.opacity);if(e instanceof FO||(e=tk(e)),!e)return new pk;if(e instanceof pk)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,c=(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/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new pk(a,s,c,e.opacity)}function pk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hk(e){return(e=(e||0)%360)<0?e+360:e}function gk(e){return Math.max(0,Math.min(1,e||0))}function yk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}NO(FO,tk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:QO,formatHex:QO,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dk(this).formatHsl()},formatRgb:ek,toString:ek}),NO(ik,ok,BO(FO,{brighter(e){return e=null==e?HO:Math.pow(HO,e),new ik(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zO:Math.pow(zO,e),new ik(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ik(uk(this.r),uk(this.g),uk(this.b),ck(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ak,formatHex:ak,formatHex8:function(){return`#${lk(this.r)}${lk(this.g)}${lk(this.b)}${lk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sk,toString:sk})),NO(pk,(function(e,t,n,r){return 1===arguments.length?dk(e):new pk(e,t,n,null==r?1:r)}),BO(FO,{brighter(e){return e=null==e?HO:Math.pow(HO,e),new pk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zO:Math.pow(zO,e),new pk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ik(yk(e>=240?e-240:e+120,o,r),yk(e,o,r),yk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new pk(hk(this.h),gk(this.s),gk(this.l),ck(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ck(this.opacity);return`${1===e?"hsl(":"hsla("}${hk(this.h)}, ${100*gk(this.s)}%, ${100*gk(this.l)}%${1===e?")":`, ${e})`}`}}));var vk=e=>()=>e;function mk(e){return 1==(e=+e)?bk: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):vk(isNaN(t)?n:t)}}function bk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):vk(isNaN(e)?t:e)}var wk=function e(t){var n=mk(t);function r(e,t){var r=n((e=ok(e)).r,(t=ok(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=bk(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 xk(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 Ck(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]=Ak(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 _k(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ok(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]=Ak(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var kk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ek=new RegExp(kk.source,"g");function jk(e,t){var n,r,o,i=kk.lastIndex=Ek.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=kk.exec(e))&&(r=Ek.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,c.push({i:a,x:Sk(n,r)})),i=Ek.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function Ak(e,t){var n,r=typeof t;return null==t||"boolean"===r?vk(t):("number"===r?Sk:"string"===r?(n=tk(t))?(t=n,wk):jk:t instanceof tk?wk:t instanceof Date?_k:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?xk:Array.isArray(t)?Ck:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ok:Sk)(e,t)}function Tk(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Mk(e,t){void 0===t&&(t=e,e=Ak);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 Pk(e){return+e}var Dk=[0,1];function Lk(e){return e}function Rk(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ik(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Rk(o,r),i=n(a,i)):(r=Rk(r,o),i=n(i,a)),function(e){return i(r(e))}}function Nk(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]=Rk(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=pO(e,t,1,r)-1;return i[n](o[n](t))}}function Bk(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fk(){var e,t,n,r,o,i,a=Dk,s=Dk,c=Ak,u=Lk;function l(){var e=Math.min(a.length,s.length);return u!==Lk&&(u=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?Nk:Ik,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),Sk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Pk),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),c=Tk,l()},f.clamp=function(e){return arguments.length?(u=!!e||Lk,l()):u!==Lk},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function zk(){return Fk()(Lk,Lk)}function Hk(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 Vk(e){return(e=Hk(Math.abs(e)))?e[1]:NaN}var Kk,Uk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $k(e){if(!(t=Uk.exec(e)))throw new Error("invalid format: "+e);var t;return new Wk({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 Wk(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 qk(e,t){var n=Hk(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")}$k.prototype=Wk.prototype,Wk.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 Zk={"%":(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)=>qk(100*e,t),r:qk,s:function(e,t){var n=Hk(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Kk=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")+Hk(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Gk(e){return e}var Yk,Xk,Jk,Qk=Array.prototype.map,eE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tE(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Gk:(t=Qk.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=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?Gk:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Qk.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=$k(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"):Zk[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)?c:"",x=Zk[m],C=/[defgprs%]/.test(m);function _(e){var o,i,c,d=b,_=w;if("c"===m)_=x(e)+_,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:u:"-"===f||"("===f?"":f)+d,_=("s"===m?eE[8+Kk/3]:"")+_+(S&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){_=(46===c?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+_.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-_.length:1/0),k=""),n){case"<":e=d+e+_+k;break;case"=":e=d+k+e+_;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+_+k.slice(O);break;default:e=k+d+e+_}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)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=$k(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Vk(t)/3))),o=Math.pow(10,-r),i=eE[8+r/3];return function(e){return n(o*e)+i}}}}function nE(e,t,n,r){var o,i=SO(e,t,n);switch((r=$k(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(Vk(t)/3)))-Vk(Math.abs(e)))}(i,a))||(r.precision=o),Jk(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,Vk(t)-Vk(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,-Vk(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Xk(r)}function rE(e){var t=e.domain;return e.ticks=function(e){var n=t();return CO(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return nE(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,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=_O(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function oE(){var e=zk();return e.copy=function(){return Bk(e,oE())},TO.apply(e,arguments),rE(e)}function iE(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 aE(e){return Math.log(e)}function sE(e){return Math.exp(e)}function cE(e){return-Math.log(-e)}function uE(e){return-Math.exp(-e)}function lE(e){return isFinite(e)?+("1e"+e):e<0?0:e}function fE(e){return(t,n)=>-e(-t,n)}function dE(e){const t=e(aE,sE),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?lE:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=fE(r),o=fE(o),e(cE,uE)):e(aE,sE),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=d;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<p&&(h=CO(a,s,p))}else h=CO(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=$k(n)).precision||(n.trim=!0),n=Xk(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(iE(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function pE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gE(e){var t=1,n=e(pE(t),hE(t));return n.constant=function(n){return arguments.length?e(pE(t=+n),hE(t)):t},rE(n)}function yE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vE(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mE(e){return e<0?-e*e:e*e}function bE(e){var t=e(Lk,Lk),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Lk,Lk):.5===n?e(vE,mE):e(yE(n),yE(1/n)):n},rE(t)}function wE(){var e=bE(Fk());return e.copy=function(){return Bk(e,wE()).exponent(e.exponent())},TO.apply(e,arguments),e}function xE(e){return Math.sign(e)*e*e}Yk=tE({thousands:",",grouping:[3],currency:["$",""]}),Xk=Yk.format,Jk=Yk.formatPrefix;const CE=new Date,_E=new Date;function SE(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>SE((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(CE.setTime(+t),_E.setTime(+r),e(CE),e(_E),Math.floor(n(CE,_E))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const OE=SE((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));OE.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?SE((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):OE:null),OE.range;const kE=1e3,EE=6e4,jE=36e5,AE=864e5,TE=6048e5,ME=2592e6,PE=31536e6,DE=SE((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*kE)}),((e,t)=>(t-e)/kE),(e=>e.getUTCSeconds()));DE.range;const LE=SE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kE)}),((e,t)=>{e.setTime(+e+t*EE)}),((e,t)=>(t-e)/EE),(e=>e.getMinutes()));LE.range;const RE=SE((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*EE)}),((e,t)=>(t-e)/EE),(e=>e.getUTCMinutes()));RE.range;const IE=SE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kE-e.getMinutes()*EE)}),((e,t)=>{e.setTime(+e+t*jE)}),((e,t)=>(t-e)/jE),(e=>e.getHours()));IE.range;const NE=SE((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*jE)}),((e,t)=>(t-e)/jE),(e=>e.getUTCHours()));NE.range;const BE=SE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EE)/AE),(e=>e.getDate()-1));BE.range;const FE=SE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/AE),(e=>e.getUTCDate()-1));FE.range;const zE=SE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/AE),(e=>Math.floor(e/AE)));function HE(e){return SE((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EE)/TE))}zE.range;const VE=HE(0),KE=HE(1),UE=HE(2),$E=HE(3),WE=HE(4),qE=HE(5),ZE=HE(6);function GE(e){return SE((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/TE))}VE.range,KE.range,UE.range,$E.range,WE.range,qE.range,ZE.range;const YE=GE(0),XE=GE(1),JE=GE(2),QE=GE(3),ej=GE(4),tj=GE(5),nj=GE(6);YE.range,XE.range,JE.range,QE.range,ej.range,tj.range,nj.range;const rj=SE((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));rj.range;const oj=SE((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));oj.range;const ij=SE((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));ij.every=e=>isFinite(e=Math.floor(e))&&e>0?SE((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,ij.range;const aj=SE((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function sj(e,t,n,r,o,i){const a=[[DE,1,kE],[DE,5,5e3],[DE,15,15e3],[DE,30,3e4],[i,1,EE],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,jE],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,AE],[r,2,1728e5],[n,1,TE],[t,1,ME],[t,3,7776e6],[e,1,PE]];function s(t,n,r){const o=Math.abs(n-t)/r,i=uO((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(SO(t/PE,n/PE,r));if(0===i)return OE.every(Math.max(SO(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}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]}aj.every=e=>isFinite(e=Math.floor(e))&&e>0?SE((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,aj.range;const[cj,uj]=sj(aj,oj,YE,zE,NE,RE),[lj,fj]=sj(ij,rj,VE,BE,IE,LE);function dj(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 pj(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 hj(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var gj,yj,vj,mj={"-":"",_:" ",0:"0"},bj=/^\s*\d+/,wj=/^%/,xj=/[\\^$*+?|[\]().{}]/g;function Cj(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 _j(e){return e.replace(xj,"\\$&")}function Sj(e){return new RegExp("^(?:"+e.map(_j).join("|")+")","i")}function Oj(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function kj(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ej(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Aj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Tj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mj(e,t,n){var r=bj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Pj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dj(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 Lj(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Rj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ij(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nj(e,t,n){var r=bj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Bj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Fj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hj(e,t,n){var r=bj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vj(e,t,n){var r=bj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kj(e,t,n){var r=wj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Uj(e,t,n){var r=bj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $j(e,t,n){var r=bj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Wj(e,t){return Cj(e.getDate(),t,2)}function qj(e,t){return Cj(e.getHours(),t,2)}function Zj(e,t){return Cj(e.getHours()%12||12,t,2)}function Gj(e,t){return Cj(1+BE.count(ij(e),e),t,3)}function Yj(e,t){return Cj(e.getMilliseconds(),t,3)}function Xj(e,t){return Yj(e,t)+"000"}function Jj(e,t){return Cj(e.getMonth()+1,t,2)}function Qj(e,t){return Cj(e.getMinutes(),t,2)}function eA(e,t){return Cj(e.getSeconds(),t,2)}function tA(e){var t=e.getDay();return 0===t?7:t}function nA(e,t){return Cj(VE.count(ij(e)-1,e),t,2)}function rA(e){var t=e.getDay();return t>=4||0===t?WE(e):WE.ceil(e)}function oA(e,t){return e=rA(e),Cj(WE.count(ij(e),e)+(4===ij(e).getDay()),t,2)}function iA(e){return e.getDay()}function aA(e,t){return Cj(KE.count(ij(e)-1,e),t,2)}function sA(e,t){return Cj(e.getFullYear()%100,t,2)}function cA(e,t){return Cj((e=rA(e)).getFullYear()%100,t,2)}function uA(e,t){return Cj(e.getFullYear()%1e4,t,4)}function lA(e,t){var n=e.getDay();return Cj((e=n>=4||0===n?WE(e):WE.ceil(e)).getFullYear()%1e4,t,4)}function fA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Cj(t/60|0,"0",2)+Cj(t%60,"0",2)}function dA(e,t){return Cj(e.getUTCDate(),t,2)}function pA(e,t){return Cj(e.getUTCHours(),t,2)}function hA(e,t){return Cj(e.getUTCHours()%12||12,t,2)}function gA(e,t){return Cj(1+FE.count(aj(e),e),t,3)}function yA(e,t){return Cj(e.getUTCMilliseconds(),t,3)}function vA(e,t){return yA(e,t)+"000"}function mA(e,t){return Cj(e.getUTCMonth()+1,t,2)}function bA(e,t){return Cj(e.getUTCMinutes(),t,2)}function wA(e,t){return Cj(e.getUTCSeconds(),t,2)}function xA(e){var t=e.getUTCDay();return 0===t?7:t}function CA(e,t){return Cj(YE.count(aj(e)-1,e),t,2)}function _A(e){var t=e.getUTCDay();return t>=4||0===t?ej(e):ej.ceil(e)}function SA(e,t){return e=_A(e),Cj(ej.count(aj(e),e)+(4===aj(e).getUTCDay()),t,2)}function OA(e){return e.getUTCDay()}function kA(e,t){return Cj(XE.count(aj(e)-1,e),t,2)}function EA(e,t){return Cj(e.getUTCFullYear()%100,t,2)}function jA(e,t){return Cj((e=_A(e)).getUTCFullYear()%100,t,2)}function AA(e,t){return Cj(e.getUTCFullYear()%1e4,t,4)}function TA(e,t){var n=e.getUTCDay();return Cj((e=n>=4||0===n?ej(e):ej.ceil(e)).getUTCFullYear()%1e4,t,4)}function MA(){return"+0000"}function PA(){return"%"}function DA(e){return+e}function LA(e){return Math.floor(+e/1e3)}function RA(e){return new Date(e)}function IA(e){return e instanceof Date?+e:+new Date(+e)}function NA(e,t,n,r,o,i,a,s,c,u){var l=zk(),f=l.invert,d=l.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(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,IA)):d().map(RA)},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:u(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(iE(n,e)):l},l.copy=function(){return Bk(l,NA(e,t,n,r,o,i,a,s,c,u))},l}function BA(){var e,t,n,r,o,i=0,a=1,s=Lk,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?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),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(Ak),u.rangeRound=l(Tk),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function FA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zA(){var e=bE(BA());return e.copy=function(){return FA(e,zA()).exponent(e.exponent())},MO.apply(e,arguments)}function HA(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=Lk,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=Mk(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p):[s,c,u]},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(Ak),p.rangeRound=h(Tk),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p}}function VA(){var e=bE(HA());return e.copy=function(){return FA(e,VA()).exponent(e.exponent())},MO.apply(e,arguments)}!function(e){gj=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Sj(o),l=Oj(o),f=Sj(i),d=Oj(i),p=Sj(a),h=Oj(a),g=Sj(s),y=Oj(s),v=Sj(c),m=Oj(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Wj,e:Wj,f:Xj,g:cA,G:lA,H:qj,I:Zj,j:Gj,L:Yj,m:Jj,M:Qj,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:DA,s:LA,S:eA,u:tA,U:nA,V:oA,w:iA,W:aA,x:null,X:null,y:sA,Y:uA,Z:fA,"%":PA},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:dA,e:dA,f:vA,g:jA,G:TA,H:pA,I:hA,j:gA,L:yA,m:mA,M:bA,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:DA,s:LA,S:wA,u:xA,U:CA,V:SA,w:OA,W:kA,x:null,X:null,y:EA,Y:AA,Z:MA,"%":PA},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:Ij,e:Ij,f:Vj,g:Pj,G:Mj,H:Bj,I:Bj,j:Nj,L:Hj,m:Rj,M:Fj,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Lj,Q:Uj,s:$j,S:zj,u:Ej,U:jj,V:Aj,w:kj,W:Tj,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Pj,Y:Mj,Z:Dj,"%":Kj};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=mj[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function _(e,t){return function(n){var r,o,i=hj(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=pj(hj(i.y,0,1))).getUTCDay(),r=o>4||0===o?XE.ceil(r):XE(r),r=FE.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=dj(hj(i.y,0,1))).getDay(),r=o>4||0===o?KE.ceil(r):KE(r),r=BE.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?pj(hj(i.y,0,1)).getUTCDay():dj(hj(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,pj(i)):dj(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in mj?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=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),yj=gj.format,gj.parse,vj=gj.utcFormat,gj.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var KA,UA=Object.freeze({__proto__:null,scaleBand:LO,scaleDiverging:function e(){var t=rE(HA()(Lk));return t.copy=function(){return FA(t,e())},MO.apply(t,arguments)},scaleDivergingLog:function e(){var t=dE(HA()).domain([.1,1,10]);return t.copy=function(){return FA(t,e()).base(t.base())},MO.apply(t,arguments)},scaleDivergingPow:VA,scaleDivergingSqrt:function(){return VA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=gE(HA());return t.copy=function(){return FA(t,e()).constant(t.constant())},MO.apply(t,arguments)},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,Pk),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,Pk):[0,1],rE(r)},scaleImplicit:PO,scaleLinear:oE,scaleLog:function e(){const t=dE(Fk()).domain([1,10]);return t.copy=()=>Bk(t,e()).base(t.base()),TO.apply(t,arguments),t},scaleOrdinal:DO,scalePoint:IO,scalePow:wE,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]=AO(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[pO(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(sO),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)},TO.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[pO(i,e,0,o)]:t}function c(){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,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):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)},TO.apply(rE(s),arguments)},scaleRadial:function e(){var t,n=zk(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(xE(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,Pk)).map(xE)),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)},TO.apply(i,arguments),rE(i)},scaleSequential:function e(){var t=rE(BA()(Lk));return t.copy=function(){return FA(t,e())},MO.apply(t,arguments)},scaleSequentialLog:function e(){var t=dE(BA()).domain([1,10]);return t.copy=function(){return FA(t,e()).base(t.base())},MO.apply(t,arguments)},scaleSequentialPow:zA,scaleSequentialQuantile:function e(){var t=[],n=Lk;function r(e){if(null!=e&&!isNaN(e=+e))return n((pO(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(sO),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return kO(e);if(t>=1)return OO(e);var r,o=(r-1)*t,i=Math.floor(o),a=OO(EO(e,i).subarray(0,i+1));return a+(kO(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},MO.apply(r,arguments)},scaleSequentialSqrt:function(){return zA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=gE(BA());return t.copy=function(){return FA(t,e()).constant(t.constant())},MO.apply(t,arguments)},scaleSqrt:function(){return wE.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=gE(Fk());return t.copy=function(){return Bk(t,e()).constant(t.constant())},TO.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[pO(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)},TO.apply(i,arguments)},scaleTime:function(){return TO.apply(NA(lj,fj,ij,rj,VE,BE,IE,LE,DE,yj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return TO.apply(NA(cj,uj,aj,oj,YE,FE,NE,RE,DE,vj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:nE}),$A=1e9,WA=!0,qA="[DecimalError] ",ZA=qA+"Invalid argument: ",GA=qA+"Exponent out of range: ",YA=Math.floor,XA=Math.pow,JA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,QA=1e7,eT=7,tT=9007199254740991,nT=YA(tT/eT),rT={};function oT(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),WA?hT(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/eT))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/QA|0,c[i]%=QA;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,WA?hT(t,f):t}function iT(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ZA+e)}function aT(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=eT-r.length)&&(i+=fT(n)),i+=r;a=e[t],(n=eT-(r=a+"").length)&&(i+=fT(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}rT.absoluteValue=rT.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},rT.comparedTo=rT.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},rT.decimalPlaces=rT.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*eT;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},rT.dividedBy=rT.div=function(e){return sT(this,new this.constructor(e))},rT.dividedToIntegerBy=rT.idiv=function(e){var t=this.constructor;return hT(sT(this,new t(e),0,1),t.precision)},rT.equals=rT.eq=function(e){return!this.cmp(e)},rT.exponent=function(){return uT(this)},rT.greaterThan=rT.gt=function(e){return this.cmp(e)>0},rT.greaterThanOrEqualTo=rT.gte=function(e){return this.cmp(e)>=0},rT.isInteger=rT.isint=function(){return this.e>this.d.length-2},rT.isNegative=rT.isneg=function(){return this.s<0},rT.isPositive=rT.ispos=function(){return this.s>0},rT.isZero=function(){return 0===this.s},rT.lessThan=rT.lt=function(e){return this.cmp(e)<0},rT.lessThanOrEqualTo=rT.lte=function(e){return this.cmp(e)<1},rT.logarithm=rT.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(KA))throw Error(qA+"NaN");if(n.s<1)throw Error(qA+(n.s?"NaN":"-Infinity"));return n.eq(KA)?new r(0):(WA=!1,t=sT(dT(n,i),dT(e,i),i),WA=!0,hT(t,o))},rT.minus=rT.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gT(t,e):oT(t,(e.s=-e.s,e))},rT.modulo=rT.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(qA+"NaN");return n.s?(WA=!1,t=sT(n,e,0,1).times(e),WA=!0,n.minus(t)):hT(new r(n),o)},rT.naturalExponential=rT.exp=function(){return cT(this)},rT.naturalLogarithm=rT.ln=function(){return dT(this)},rT.negated=rT.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},rT.plus=rT.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oT(t,e):gT(t,(e.s=-e.s,e))},rT.precision=rT.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(ZA+e);if(t=uT(o)+1,n=(r=o.d.length-1)*eT+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},rT.squareRoot=rT.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(qA+"NaN")}for(e=uT(s),WA=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=aT(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=YA((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(sT(s,i,a+2)).times(.5),aT(i.d).slice(0,a)===(t=aT(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(hT(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return WA=!0,hT(r,n)},rT.times=rT.mul=function(e){var t,n,r,o,i,a,s,c,u,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,(c=d.length)<(u=p.length)&&(i=d,d=p,p=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%QA|0,t=s/QA|0;i[o]=(i[o]+t)%QA|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,WA?hT(e,f.precision):e},rT.toDecimalPlaces=rT.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(iT(e,0,$A),void 0===t?t=r.rounding:iT(t,0,8),hT(n,e+uT(n)+1,t))},rT.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=yT(r,!0):(iT(e,0,$A),void 0===t?t=o.rounding:iT(t,0,8),n=yT(r=hT(new o(r),e+1,t),!0,e+1)),n},rT.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?yT(o):(iT(e,0,$A),void 0===t?t=i.rounding:iT(t,0,8),n=yT((r=hT(new i(o),e+uT(o)+1,t)).abs(),!1,e+uT(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},rT.toInteger=rT.toint=function(){var e=this,t=e.constructor;return hT(new t(e),uT(e)+1,t.rounding)},rT.toNumber=function(){return+this},rT.toPower=rT.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(KA);if(!(s=new c(s)).s){if(e.s<1)throw Error(qA+"Infinity");return s}if(s.eq(KA))return s;if(r=c.precision,e.eq(KA))return hT(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=tT){for(o=new c(KA),t=Math.ceil(r/eT+4),WA=!1;n%2&&vT((o=o.times(s)).d,t),0!==(n=YA(n/2));)vT((s=s.times(s)).d,t);return WA=!0,e.s<0?new c(KA).div(o):hT(o,r)}}else if(i<0)throw Error(qA+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,WA=!1,o=e.times(dT(s,r+12)),WA=!0,(o=cT(o)).s=i,o},rT.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=yT(o,(n=uT(o))<=i.toExpNeg||n>=i.toExpPos):(iT(e,1,$A),void 0===t?t=i.rounding:iT(t,0,8),r=yT(o=hT(new i(o),e,t),e<=(n=uT(o))||n<=i.toExpNeg,e)),r},rT.toSignificantDigits=rT.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(iT(e,1,$A),void 0===t?t=n.rounding:iT(t,0,8)),hT(new n(this),e,t)},rT.toString=rT.valueOf=rT.val=rT.toJSON=rT[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=uT(e),n=e.constructor;return yT(e,t<=n.toExpNeg||t>=n.toExpPos)};var sT=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%QA|0,r=n/QA|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*QA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,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(qA+"Division by zero");for(c=r.e-o.e,_=j.length,x=E.length,h=(p=new O(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=O.precision:a?i+(uT(r)-uT(o))+1:i)<0)return new O(0);if(m=m/eT+2|0,u=0,1==_)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*QA+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=QA/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),_=j.length,x=E.length),w=_,y=(g=E.slice(0,_)).length;y<_;)g[y++]=0;(S=j.slice()).unshift(0),C=j[0],j[1]>=QA/2&&++C;do{l=0,(s=t(j,g,_,y))<0?(v=g[0],_!=y&&(v=v*QA+(g[1]||0)),(l=v/C|0)>1?(l>=QA&&(l=QA-1),1==(s=t(f=e(j,l),g,d=f.length,y=g.length))&&(l--,n(f,_<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,_,y=g.length))<1&&(l++,n(g,_<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=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=c,hT(p,a?i+uT(p)+1:i)}}();function cT(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(uT(e)>16)throw Error(GA+uT(e));if(!e.s)return new u(KA);for(null==t?(WA=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(XA(2,c))/Math.LN10*2+5|0,n=r=o=new u(KA),u.precision=a;;){if(r=hT(r.times(e),a),n=n.times(++s),aT((i=o.plus(sT(r,n,a))).d).slice(0,a)===aT(o.d).slice(0,a)){for(;c--;)o=hT(o.times(o),a);return u.precision=l,null==t?(WA=!0,hT(o,l)):o}o=i}}function uT(e){for(var t=e.e*eT,n=e.d[0];n>=10;n/=10)t++;return t}function lT(e,t,n){if(t>e.LN10.sd())throw WA=!0,n&&(e.precision=n),Error(qA+"LN10 precision limit exceeded");return hT(new e(e.LN10),t)}function fT(e){for(var t="";e--;)t+="0";return t}function dT(e,t){var n,r,o,i,a,s,c,u,l,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(qA+(d.s?"NaN":"-Infinity"));if(d.eq(KA))return new h(0);if(null==t?(WA=!1,u=g):u=t,d.eq(10))return null==t&&(WA=!0),lT(h,u);if(u+=10,h.precision=u,r=(n=aT(p)).charAt(0),i=uT(d),!(Math.abs(i)<15e14))return c=lT(h,u+2,g).times(i+""),d=dT(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(WA=!0,hT(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=aT((d=d.times(e)).d)).charAt(0),f++;for(i=uT(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=sT(d.minus(KA),d.plus(KA),u),l=hT(d.times(d),u),o=3;;){if(a=hT(a.times(l),u),aT((c=s.plus(sT(a,new h(o),u))).d).slice(0,u)===aT(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(lT(h,u+2,g).times(i+""))),s=sT(s,new h(f),u),h.precision=g,null==t?(WA=!0,hT(s,g)):s;s=c,o+=2}}function pT(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=YA(n/eT),e.d=[],r=(n+1)%eT,n<0&&(r+=eT),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=eT;r<o;)e.d.push(+t.slice(r,r+=eT));t=t.slice(r),r=eT-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),WA&&(e.e>nT||e.e<-nT))throw Error(GA+n)}else e.s=0,e.e=0,e.d=[0];return e}function hT(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=eT,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/eT))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=eT)-eT+a}if(void 0!==n&&(s=u/(i=XA(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/XA(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=uT(e),f.length=1,t=t-i-1,f[0]=XA(10,(eT-t%eT)%eT),e.e=YA(-t/eT)||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=XA(10,eT-r),f[l]=o>0?(u/XA(10,a-o)%XA(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==QA&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=QA)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(WA&&(e.e>nT||e.e<-nT))throw Error(GA+uT(e));return e}function gT(e,t){var n,r,o,i,a,s,c,u,l,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),WA?hT(t,p):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(p/eT),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=QA-1;--c[i],c[o]+=QA}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,WA?hT(t,p):t):new d(0)}function yT(e,t,n){var r,o=uT(e),i=aT(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+fT(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+fT(-o-1)+i,n&&(r=n-a)>0&&(i+=fT(r))):o>=a?(i+=fT(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+fT(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=fT(r))),e.s<0?"-"+i:i}function vT(e,t){if(e.length>t)return e.length=t,!0}function mT(e){if(!e||"object"!=typeof e)throw Error(qA+"Object expected");var t,n,r,o=["precision",1,$A,"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(!(YA(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(ZA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(ZA+n+": "+r);this[n]=new this(r)}return this}var bT=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(ZA+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])):pT(t,e.toString())}if("string"!=typeof e)throw Error(ZA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!JA.test(e))throw Error(ZA+e);pT(t,e)}if(i.prototype=rT,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=mT,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"});KA=new bT(1);var wT=bT;function xT(e){return function(e){if(Array.isArray(e))return CT(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 CT(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 CT(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 CT(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 _T=function(e){return e},ST={"@@functional/placeholder":!0},OT=function(e){return e===ST},kT=function(e){return function t(){return 0===arguments.length||1===arguments.length&&OT(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},ET=function e(t,n){return 1===t?n:kT((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!==ST})).length;return a>=t?n.apply(void 0,o):e(t-a,kT((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 OT(e)?t.shift():e}));return n.apply(void 0,xT(i).concat(t))})))}))},jT=function(e){return ET(e.length,e)},AT=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},TT=jT((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),MT=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return _T;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))}},PT=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},DT=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 LT=jT((function(e,t,n){var r=+e;return r+n*(+t-r)})),RT=jT((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),IT=jT((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),NT={rangeStep:function(e,t,n){for(var r=new wT(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 wT(e).abs().log(10).toNumber())+1},interpolateNumber:LT,uninterpolateNumber:RT,uninterpolateTruncation:IT};function BT(e){return function(e){if(Array.isArray(e))return HT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zT(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 FT(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)||zT(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 zT(e,t){if(e){if("string"==typeof e)return HT(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)?HT(e,t):void 0}}function HT(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 VT(e){var t=FT(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function KT(e,t,n){if(e.lte(0))return new wT(0);var r=NT.getDigitCount(e.toNumber()),o=new wT(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new wT(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new wT(Math.ceil(s))}function UT(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 wT(0),tickMin:new wT(0),tickMax:new wT(0)};var i,a=KT(new wT(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new wT(0):(i=new wT(e).add(t).div(2)).sub(new wT(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new wT(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?UT(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new wT(s).mul(a)),tickMax:i.add(new wT(c).mul(a))})}var $T=DT((function(e){var t=FT(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=FT(VT([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(BT(AT(0,o-1).map((function(){return 1/0})))):[].concat(BT(AT(0,o-1).map((function(){return-1/0}))),[u]);return n>r?PT(l):l}if(c===u)return function(e,t,n){var r=1,o=new wT(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new wT(10).pow(NT.getDigitCount(e)-1),o=new wT(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new wT(Math.floor(e)))}else 0===e?o=new wT(Math.floor((t-1)/2)):n||(o=new wT(Math.floor(e)));var a=Math.floor((t-1)/2),s=MT(TT((function(e){return o.add(new wT(e-a).mul(r)).toNumber()})),AT);return s(0,t)}(c,o,i);var f=UT(c,u,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=NT.rangeStep(p,h.add(new wT(.1).mul(d)),d);return n>r?PT(g):g})),WT=DT((function(e,t){var n=FT(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=FT(VT([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=KT(new wT(c).sub(s).div(u-1),i,0),f=[].concat(BT(NT.rangeStep(new wT(s),new wT(c).sub(new wT(.99).mul(l)),l)),[c]);return r>o?PT(f):f})),qT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZT.apply(this,arguments)}function GT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YT(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 YT(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 YT(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 XT(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 JT(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=XT(e,qT),f=ud(l),d=a.map((function(e,a){var l=s(e,i),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=GT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=p+n,C=x+o,_=x-o,S=w(h-y),O=w(h+v);m.push({x1:O,y1:C,x2:O,y2:_}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:C,x2:S,y2:_})}else if("horizontal"===r){var k=u.scale,E=d+n,j=E-o,A=E+o,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 t.createElement(wd,ZT({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",ZT({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wd,{className:"recharts-errorBars"},d)}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function eM(e){return function(e){if(Array.isArray(e))return tM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tM(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 tM(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 tM(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 nM(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 rM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nM(Object(n),!0).forEach((function(t){oM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==QT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iM(e,t,n){return xf(e)||xf(t)?n:If(t)?bf(e,t,n):su(t)?t(e):n}function aM(e,t,n,r){var o=aO(e,(function(e){return iM(e,t)}));if("number"===n){var i=o.filter((function(e){return Rf(e)||parseFloat(e)}));return i.length?[QS(i),qS(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!xf(e)})):o).map((function(e){return If(e)||e instanceof Date?e:""}))}JT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},JT.displayName="ErrorBar";var sM=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},cM=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=ad(n,km);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:sM(t),value:o||r,payload:t.props}})),rM(rM(rM({},a.props),km.getWithHeight(a,o)),{},{payload:t,item:a})):null},uM=function(e,t,n,r,o){var i=id(t.props.children,JT).filter((function(e){return function(e,t,n){return!!xf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=iM(t,n,0),o=uu(r)?[QS(r),qS(r)]:[r,r],i=a.reduce((function(e,n){var r=iM(t,n,0),i=o[0]-Math.abs(uu(r)?r[0]:r),a=o[1]+Math.abs(uu(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},lM=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&uM(e,t,i,r)||aM(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}),[])},fM=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},dM=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},pM=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,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Df(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Pf(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},hM=function(e,t,n){var r;return su(n)?r=n:su(t)&&(r=t),su(e)||r?function(t,n,o,i){su(e)&&e(t,n,o,i),su(r)&&r(t,n,o,i)}:null},gM=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:LO(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:oE(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:IO(),realScaleType:"point"}:"category"===o?{scale:LO(),realScaleType:"band"}:{scale:oE(),realScaleType:"linear"};if(hu(r)){var s="scale".concat(zy(r));return{scale:(UA[s]||IO)(),realScaleType:UA[s]?s:"point"}}return su(r)?{scale:r}:{scale:IO(),realScaleType:"point"}},yM=1e-4,vM=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])-yM,i=Math.max(r[0],r[1])+yM,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},mM={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=Pf(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}zv(e,t)}},none:zv,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}zv(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,c=0,u=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)}c+=f,u+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,zv(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=Pf(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)}}},bM=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Hy([]),t=Hv,n=zv,r=Vv;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Kv),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=ev(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hy(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hy(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Hv:"function"==typeof e?e:Hy(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?zv:e,o):n},o}().keys(r).value((function(e,t){return+iM(e,t,0)})).order(Hv).offset(mM[n]);return o(e)},wM=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 c=e.domain();if(!c.length)return null;var u=$T(c,o,a);return e.domain([QS(u),qS(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:WT(l,o,a)}}return null},xM=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&&!xf(o[t.dataKey])){var s=Vf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=iM(o,xf(a)?t.dataKey:a);return xf(c)?null:t.scale(c)},CM=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=iM(i,t.dataKey,t.domain[a]);return xf(s)?null:t.scale(s)-o/2+r},_M=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[QS(t.concat([e[0]]).filter(Rf)),qS(t.concat([e[1]]).filter(Rf))]}),[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}))},SM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kM=function(e,t,n){if(su(e))return e(t,n);if(!uu(e))return t;var r=[];if(Rf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(SM.test(e[0])){var o=+SM.exec(e[0])[1];r[0]=t[0]-o}else su(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Rf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(OM.test(e[1])){var i=+OM.exec(e[1])[1];r[1]=t[1]+i}else su(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},EM=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=kC(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},jM=function(e,t,n){return e&&e.length?FS(e,bf(n,"type.defaultProps.domain"))?t:e:t},AM=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return rM(rM({},ud(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:sM(e),value:iM(t,r),type:s,payload:t,chartType:c})};function TM(e){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TM(e)}function MM(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 PM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MM(Object(n),!0).forEach((function(t){DM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==TM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RM(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 RM(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 RM(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 IM=Math.PI/180,NM=function(e){return 180*e/Math.PI},BM=function(e,t,n,r){return{x:e+Math.cos(-IM*r)*n,y:t+Math.sin(-IM*r)*n}},FM=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},zM=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,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:NM(c),angleInRadian:c}},HM=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)},VM=function(e,t){var n=e.x,r=e.y,o=zM({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,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;u=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;u=p>=d&&p<=f}return u?PM(PM({},t),{},{radius:i,angle:HM(p,t)}):null};function KM(e){return KM="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},KM(e)}function UM(e){return function(e){if(Array.isArray(e))return $M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $M(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 $M(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 $M(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 WM(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 qM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==KM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GM(){return GM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GM.apply(this,arguments)}var YM=function(e){var t=e.value,n=e.formatter,r=xf(e.children)?t:e.children;return su(n)?n(r):r},XM=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,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 Df(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=BM(f,d,m,o),C=BM(f,d,m,o+359*(i?1:-1)),_="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),S=xf(e.id)?Bf("recharts-radial-line-"):e.id;return t.createElement("text",GM({},r,{dominantBaseline:"central",className:Fc("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:S,d:_})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))},JM=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=BM(i,a,c+n,u),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=BM(i,a,(s+c)/2,u);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},QM=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,d=l>0?"end":"start",p=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return qM(qM({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return qM(qM({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return qM(qM({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return qM(qM({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?qM({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?qM({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?qM({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?qM({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?qM({x:a+g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?qM({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?qM({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:d},w):"insideBottomRight"===o?qM({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:d},w):Hc(o)&&(Rf(o.x)||Lf(o.x))&&(Rf(o.y)||Lf(o.y))?qM({x:a+Ff(o.x,c),y:s+Ff(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):qM({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},eP=function(e){return"cx"in e&&Rf(e.cx)};function tP(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||xf(i)&&xf(a)&&!t.isValidElement(s)&&!su(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(su(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=YM(e);var f=eP(r),d=ud(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return XM(e,n,d);var p=f?JM(e):QM(e);return t.createElement(NS,GM({className:Fc("recharts-label",u)},d,p,{breakAll:l}),n)}tP.displayName="Label",tP.defaultProps={offset:5};var nP=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=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(Rf(h)&&Rf(g)){if(Rf(l)&&Rf(f))return{x:l,y:f,width:h,height:g};if(Rf(d)&&Rf(p))return{x:d,y:p,width:h,height:g}}return Rf(l)&&Rf(f)?{x:l,y:f,width:0,height:0}:Rf(t)&&Rf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};tP.parseViewBox=nP,tP.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=nP(e),a=id(o,tP).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(tP,{key:"label-implicit",viewBox:n}):If(e)?t.createElement(tP,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===tP?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(tP,{key:"label-implicit",content:e,viewBox:n}):su(e)?t.createElement(tP,{key:"label-implicit",content:e,viewBox:n}):Hc(e)?t.createElement(tP,GM({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(UM(a))};var rP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},oP=ct(rP);function iP(e){return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iP(e)}var aP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function sP(e){return function(e){if(Array.isArray(e))return cP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cP(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 cP(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 cP(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 uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uP.apply(this,arguments)}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==iP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pP(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 hP={valueAccessor:function(e){return uu(e.value)?oP(e.value):e.value}};function gP(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=pP(e,aP);return n&&n.length?t.createElement(wd,{className:"recharts-label-list"},n.map((function(e,n){var u=xf(o)?r(e,n):iM(e&&e.payload,o),l=xf(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(tP,uP({},ud(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:tP.parseViewBox(xf(i)?e:fP(fP({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function yP(e){return yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yP(e)}function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vP.apply(this,arguments)}function mP(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,CP(r.key),r)}}function bP(e,t){return bP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bP(e,t)}function wP(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=xP(e);if(t){var o=xP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xP(e){return xP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xP(e)}function CP(e){var t=function(e,t){if("object"!==yP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yP(t)?t:String(t)}gP.displayName="LabelList",gP.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=id(e.children,gP).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(gP,{key:"labelList-implicit",data:n}):t.isValidElement(e)||su(e)?t.createElement(gP,{key:"labelList-implicit",data:n,content:e}):Hc(e)?t.createElement(gP,uP({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(sP(o)):o},gP.defaultProps=hP;var _P=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/IM,f=c?o:o+i*l,d=c?o-i*l:o;return{center:BM(t,n,u,f),circleTangency:BM(t,n,r,f),lineTangency:BM(t,n,u*Math.cos(l*IM),d),theta:l}},SP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=BM(t,n,o,i),u=BM(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=BM(t,n,r,i),d=BM(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},OP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bP(e,t)}(a,t.PureComponent);var n,r,o,i=wP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var d,p=Fc("recharts-sector",f),h=i-o,g=Ff(a,h,0,!0);return d=g>0&&Math.abs(u-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,c=e.startAngle,u=e.endAngle,l=Df(u-c),f=_P({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=_P({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-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 "):SP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});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=_P({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,_=x.lineTangency,S=x.theta,O=_P({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-u):Math.abs(c-u)-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(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):SP({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",vP({},ud(this.props,!0),{className:p,d:d,role:"img"}))}}],r&&mP(n.prototype,r),o&&mP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function kP(e){return kP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kP(e)}function EP(){return EP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EP.apply(this,arguments)}function jP(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 AP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jP(Object(n),!0).forEach((function(t){TP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=CP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(OP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var MP={curveBasisClosed:function(e){return new Ev(e)},curveBasisOpen:function(e){return new jv(e)},curveBasis:function(e){return new kv(e)},curveLinearClosed:function(e){return new Av(e)},curveLinear:nv,curveMonotoneX:function(e){return new Lv(e)},curveMonotoneY:function(e){return new Rv(e)},curveNatural:function(e){return new Nv(e)},curveStep:function(e){return new Fv(e,.5)},curveStepAfter:function(e){return new Fv(e,1)},curveStepBefore:function(e){return new Fv(e,0)}},PP=function(e){return e.x===+e.x&&e.y===+e.y},DP=function(e){return e.x},LP=function(e){return e.y},RP=function(e){var t,n=e.type,r=e.points,o=e.baseLine,i=e.layout,a=e.connectNulls,s=function(e,t){if(su(e))return e;var n="curve".concat(zy(e));return"curveMonotone"===n&&t?MP["".concat(n).concat("vertical"===t?"Y":"X")]:MP[n]||nv}(n,i),c=a?r.filter((function(e){return PP(e)})):r;if(uu(o)){var u=a?o.filter((function(e){return PP(e)})):o,l=c.map((function(e,t){return AP(AP({},e),{},{base:u[t]})}));return(t="vertical"===i?av().y(LP).x1(DP).x0((function(e){return e.base.x})):av().x(DP).y1(LP).y0((function(e){return e.base.y}))).defined(PP).curve(s),t(l)}return(t="vertical"===i&&Rf(o)?av().y(LP).x1(DP).x0(o):Rf(o)?av().x(DP).y1(LP).y0(o):iv().x(DP).y(LP)).defined(PP).curve(s),t(c)},IP=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?RP(e):o;return t.createElement("path",EP({},ud(e),Gf(e),{className:Fc("recharts-curve",n),d:a,ref:i}))};function NP(e){return NP="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},NP(e)}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BP.apply(this,arguments)}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$P(r.key),r)}}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function HP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KP(e);if(t){var o=KP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VP(e)}(this,n)}}function VP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KP(e){return KP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KP(e)}function UP(e,t,n){return(t=$P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){var t=function(e,t){if("object"!==NP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NP(t)?t:String(t)}IP.defaultProps={type:"linear",points:[],connectNulls:!1};var WP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=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(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\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(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\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(u,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(u,",").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(u,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(u,",").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},qP=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 c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},ZP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zP(e,t)}(a,t.PureComponent);var n,r,o,i=HP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UP(VP(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=Fc("recharts-rectangle",c);return g?t.createElement(yw,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:d,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(yw,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:h,easing:f},t.createElement("path",BP({},ud(e.props,!0),{className:y,d:WP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",BP({},ud(this.props,!0),{className:y,d:WP(r,o,i,a,s)}))}}],r&&FP(n.prototype,r),o&&FP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function GP(e){return GP="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},GP(e)}UP(ZP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var YP=["points","className","baseLinePoints","connectNulls"];function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}function JP(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 QP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==GP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===GP(i)?i:String(i)),r)}var o,i}function eD(e,t){return eD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eD(e,t)}function tD(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=nD(e);if(t){var o=nD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===GP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function nD(e){return nD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nD(e)}function rD(e){return function(e){if(Array.isArray(e))return oD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oD(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 oD(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 oD(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 iD=function(e){return e&&e.x===+e.x&&e.y===+e.y},aD=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){iD(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),iD(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(rD(e),rD(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},sD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eD(e,t)}(a,t.PureComponent);var n,r,o,i=tD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=JP(e,YP);if(!n||!n.length)return null;var s=Fc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=aD(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(aD(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",XP({},ud(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",XP({},ud(a,!0),{fill:"none",d:aD(n,i)})):null,c?t.createElement("path",XP({},ud(a,!0),{fill:"none",d:aD(o,i)})):null)}var l=aD(n,i);return t.createElement("path",XP({},ud(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&QP(n.prototype,r),o&&QP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function cD(e){return cD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cD(e)}function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}function lD(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==cD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===cD(i)?i:String(i)),r)}var o,i}function fD(e,t){return fD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fD(e,t)}function dD(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=pD(e);if(t){var o=pD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===cD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function pD(e){return pD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pD(e)}var hD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fD(e,t)}(a,t.PureComponent);var n,r,o,i=dD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=Fc("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",uD({},ud(this.props),Gf(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&lD(n.prototype,r),o&&lD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(this,arguments)}var yD=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},vD=function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.top,s=e.left,c=e.className;return Rf(n)&&Rf(r)&&Rf(o)&&Rf(i)&&Rf(a)&&Rf(s)?t.createElement("path",gD({},ud(e,!0),{className:Fc("recharts-cross",c),d:yD(n,r,o,i,a,s)})):null};vD.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var mD=HS,bD=Vg,wD=ZS;var xD=function(e,t){return e&&e.length?mD(e,bD(t),wD):void 0},CD=ct(xD),_D=HS,SD=VS,OD=Vg;var kD=function(e,t){return e&&e.length?_D(e,OD(t),SD):void 0},ED=ct(kD),jD=["cx","cy","angle","ticks","axisLine"],AD=["ticks","tick","angle","tickFormatter","stroke"];function TD(e){return TD="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},TD(e)}function MD(){return MD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MD.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LD(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 RD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zD(r.key),r)}}function ID(e,t){return ID=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}function FD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==TD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TD(t)?t:String(t)}var HD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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 BM(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=ED(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:CD(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=LD(e,jD),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=BM(n,r,c[0],o),l=BM(n,r,c[1],o),f=DD(DD(DD({},ud(s)),{},{fill:"none"},ud(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",MD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,u=LD(n,AD),l=this.getTickTextAnchor(),f=ud(u),d=ud(o),p=r.map((function(n,r){var u=e.getTickValueCoord(n),p=DD(DD(DD(DD({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:r},u),{},{payload:n});return t.createElement(wd,MD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Yf(e.props,n,r)),a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),tP.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,MD({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function VD(e){return VD="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},VD(e)}function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}function UD(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 $D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UD(Object(n),!0).forEach((function(t){YD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WD(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,XD(r.key),r)}}function qD(e,t){return qD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qD(e,t)}function ZD(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=GD(e);if(t){var o=GD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GD(e){return GD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GD(e)}function YD(e,t,n){return(t=XD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XD(e){var t=function(e,t){if("object"!==VD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VD(t)?t:String(t)}FD(HD,"displayName","PolarRadiusAxis"),FD(HD,"axisType","radiusAxis"),FD(HD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var JD=Math.PI/180,QD=1e-5,eL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qD(e,t)}(a,t.PureComponent);var n,r,o,i=ZD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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=BM(n,r,o,e.coordinate),c=BM(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*JD);return n>QD?"outer"===t?"start":"end":n<-QD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=$D($D({},ud(this.props)),{},{fill:"none"},ud(i));if("circle"===a)return t.createElement(hD,KD({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return BM(n,r,o,e.coordinate)}));return t.createElement(sD,KD({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,u=ud(this.props),l=ud(o),f=$D($D({},u),{},{fill:"none"},ud(i)),d=r.map((function(n,r){var d=e.getTickLineCoord(n),p=$D($D($D({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:d.x2,y:d.y2});return t.createElement(wd,KD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Yf(e.props,n,r)),i&&t.createElement("line",KD({className:"recharts-polar-angle-axis-tick-line"},f,d)),o&&a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(wd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,KD({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&WD(n.prototype,r),o&&WD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();YD(eL,"displayName","PolarAngleAxis"),YD(eL,"axisType","angleAxis"),YD(eL,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var tL=Zp(Object.getPrototypeOf,Object),nL=ru,rL=tL,oL=lu,iL=Function.prototype,aL=Object.prototype,sL=iL.toString,cL=aL.hasOwnProperty,uL=sL.call(Object);var lL=ct((function(e){if(!oL(e)||"[object Object]"!=nL(e))return!1;var t=rL(e);if(null===t)return!0;var n=cL.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sL.call(n)==uL}));function fL(e){return fL="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},fL(e)}function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dL.apply(this,arguments)}function pL(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 hL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pL(Object(n),!0).forEach((function(t){wL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gL(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,xL(r.key),r)}}function yL(e,t){return yL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yL(e,t)}function vL(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=bL(e);if(t){var o=bL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mL(e)}(this,n)}}function mL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bL(e){return bL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bL(e)}function wL(e,t,n){return(t=xL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){var t=function(e,t){if("object"!==fL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fL(t)?t:String(t)}var CL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yL(e,t)}(a,t.PureComponent);var n,r,o,i=vL(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),wL(mL(t=i.call(this,e)),"pieRef",null),wL(mL(t),"sectorRefs",[]),wL(mL(t),"id",Bf("recharts-pie-")),wL(mL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),su(e)&&e()})),wL(mL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),su(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=ud(this.props),u=ud(r),l=ud(o),f=r&&r.offsetRadius||20,d=e.map((function(e,n){var d=(e.startAngle+e.endAngle)/2,p=BM(e.cx,e.cy,e.outerRadius+f,d),h=hL(hL(hL(hL({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=hL(hL(hL(hL({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[BM(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),y=i;return xf(i)&&xf(s)?y="value":xf(i)&&(y=s),t.createElement(wd,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,iM(e,y)))}));return t.createElement(wd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,u=n.isActiveIndex(r)?o:c,l=hL(hL({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wd,dL({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Yf(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(yw,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=l&&l[t],r=t>0?bf(e,"paddingAngle",0):0;if(n){var s=Hf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=hL(hL({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,d=Hf(0,u-f)(o),p=hL(hL({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(wd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&FS(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Rf(s)||!Rf(c)||!Rf(u)||!Rf(l))return null;var p=Fc("recharts-pie",i);return t.createElement(wd,{tabIndex:0,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),tP.renderCallByParent(this.props,null,!1),(!f||d)&&gP.renderCallByParent(this.props,o,!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,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(IP,dL({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return su(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(NS,dL({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):lL(e)?t.createElement(OP,dL({tabIndex:-1},n,e)):t.createElement(OP,dL({tabIndex:-1},n))}}],r&&gL(n.prototype,r),o&&gL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();wL(CL,"displayName","Pie"),wL(CL,"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:!zC.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),wL(CL,"parseDeltaAngle",(function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),360)})),wL(CL,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=ud(e.props),i=id(r,D_);return n&&n.length?n.map((function(e,t){return hL(hL(hL({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return hL(hL({},o),e.props)})):[]})),wL(CL,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=FM(o,i);return{cx:r+Ff(e.props.cx,o,o/2),cy:n+Ff(e.props.cy,i,i/2),innerRadius:Ff(e.props.innerRadius,a,0),outerRadius:Ff(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),wL(CL,"getComposedData",(function(e){var t=e.item,n=e.offset,r=CL.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=CL.parseCoordinateOfPie(t,n),g=CL.parseDeltaAngle(a,s),y=Math.abs(g),v=u;xf(u)&&xf(f)?(j_(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):xf(u)&&(j_(!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!==iM(e,v,0)})).length,x=y-w*p-(y>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=iM(t,v,0);return e+(Rf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=iM(e,v,0),o=iM(e,l,t),s=(Rf(r)?r:0)/C,u=(n=t?b.endAngle+Df(g)*c*(0!==r?1:0):a)+Df(g)*((0!==r?p:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:d}],w=BM(h.cx,h.cy,y,f);return b=hL(hL(hL({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:iM(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Df(g)*c})})));return hL(hL({},h),{},{sectors:m,data:r})}));var _L=Math.ceil,SL=Math.max;var OL=function(e,t,n,r){for(var o=-1,i=SL(_L((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},kL=l_,EL=1/0;var jL=function(e){return e?(e=kL(e))===EL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},AL=OL,TL=CC,ML=jL;var PL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&TL(t,n,r)&&(n=r=void 0),t=ML(t),void 0===n?(n=t,t=0):n=ML(n),r=void 0===r?t<n?1:-1:ML(r),AL(t,n,r,e)}}());function DL(e){return DL="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},DL(e)}function LL(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 RL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LL(Object(n),!0).forEach((function(t){IL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==DL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NL=["Webkit","Moz","O","ms"];function BL(e){return BL="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},BL(e)}function FL(){return FL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FL.apply(this,arguments)}function zL(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 HL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zL(Object(n),!0).forEach((function(t){qL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VL(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,ZL(r.key),r)}}function KL(e,t){return KL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KL(e,t)}function UL(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=WL(e);if(t){var o=WL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $L(e)}(this,n)}}function $L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(e){return WL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WL(e)}function qL(e,t,n){return(t=ZL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZL(e){var t=function(e,t){if("object"!==BL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BL(t)?t:String(t)}var GL=function(e){return e.changedTouches&&!!e.changedTouches.length},YL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KL(e,t)}(a,t.PureComponent);var n,r,o,i=UL(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),qL($L(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),qL($L(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),qL($L(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),qL($L(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),qL($L(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),qL($L(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),qL($L(t),"handleSlideDragStart",(function(e){var n=GL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind($L(t),"startX"),endX:t.handleTravellerDragStart.bind($L(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,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);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=iM(n[e],o,e);return su(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===u&&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=GL(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],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.onChange,p=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((qL(t={},o,s+y),qL(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,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=t.Children.only(s);return u?t.cloneElement(u,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,u=Math.max(e,this.props.x),l=HL(HL({},ud(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(wd,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,u=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(wd,{className:"recharts-brush-texts"},t.createElement(NS,FL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(NS,FL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,d=l.endX,p=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Rf(i)||!Rf(a)||!Rf(s)||!Rf(c)||s<=0||c<=0)return null;var y=Fc("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=NL.reduce((function(e,r){return RL(RL({},e),{},IL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wd,{className:y,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||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):a.renderDefaultTraveller(n)}},{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,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return HL({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,c=IO().domain(PL(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=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:u}}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&&VL(n.prototype,r),o&&VL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();qL(YL,"displayName","Brush"),qL(YL,"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 XL=Bx;var JL=function(e,t){var n;return XL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},QL=Bd,eR=Vg,tR=JL,nR=cu,rR=CC;var oR=function(e,t,n){var r=nR(e)?QL:tR;return n&&rR(e,t,n)&&(t=void 0),r(e,eR(t))},iR=ct(oR),aR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var sR=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},cR=Bx;var uR=function(e,t){var n=!0;return cR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},lR=sR,fR=uR,dR=Vg,pR=cu,hR=CC;var gR=function(e,t,n){var r=pR(e)?lR:fR;return n&&hR(e,t,n)&&(t=void 0),r(e,dR(t))},yR=ct(gR),vR=cC;var mR=function(e,t,n){"__proto__"==t&&vR?vR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},bR=mR,wR=Rx,xR=Vg;var CR=function(e,t){var n={};return t=xR(t),wR(e,(function(e,r,o){bR(n,r,t(e,r,o))})),n},_R=ct(CR),SR=["value","background"];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(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 ER(){return ER=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ER.apply(this,arguments)}function jR(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 AR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jR(Object(n),!0).forEach((function(t){RR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TR(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,IR(r.key),r)}}function MR(e,t){return MR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MR(e,t)}function PR(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=LR(e);if(t){var o=LR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DR(e)}(this,n)}}function DR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LR(e){return LR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LR(e)}function RR(e,t,n){return(t=IR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IR(e){var t=function(e,t){if("object"!==OR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OR(t)?t:String(t)}var NR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MR(e,t)}(a,t.PureComponent);var n,r,o,i=PR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RR(DR(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),RR(DR(e),"id",Bf("recharts-bar-")),RR(DR(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),RR(DR(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 n=this,r=this.props.shape,o=ud(this.props);return e&&e.map((function(e,i){var s=AR(AR(AR({},o),e),{},{index:i});return t.createElement(wd,ER({className:"recharts-bar-rectangle"},Yf(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,u=n.animationId,l=this.state.prevData;return t.createElement(yw,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Hf(n.x,e.x),a=Hf(n.y,e.y),s=Hf(n.width,e.width),c=Hf(n.height,e.height);return AR(AR({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Hf(0,e.height)(i);return AR(AR({},e),{},{y:e.y+e.height-u,height:u})}var f=Hf(0,e.width)(i);return AR(AR({},e),{},{width:f})}));return t.createElement(wd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&FS(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=ud(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=kR(t,SR);if(!o)return null;var s=AR(AR(AR(AR(AR({},i),{},{fill:"#eee"},o),n),Yf(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(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,JT);if(!c)return null;var u="vertical"===s?o[0].height/2:o[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:iM(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Fc("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=xf(p)?this.id:p;return t.createElement(wd,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(wd,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&gP.renderCallByParent(this.props,r))}}],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,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(ZP,n)}}],r&&TR(n.prototype,r),o&&TR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function BR(e){return BR="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},BR(e)}function FR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KR(r.key),r)}}function zR(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 HR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zR(Object(n),!0).forEach((function(t){VR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VR(e,t,n){return(t=KR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e){var t=function(e,t){if("object"!==BR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BR(t)?t:String(t)}RR(NR,"displayName","Bar"),RR(NR,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!zC.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),RR(NR,"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,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,p=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}(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=u?b.scale.domain():null,x=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]}({numericAxis:b}),C=id(v,D_),_=f.map((function(e,t){var r,f,d,g,v,b;if(u?r=function(e,t){if(!t||2!==t.length||!Rf(t[0])||!Rf(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(!Rf(e[0])||e[0]<n)&&(o[0]=n),(!Rf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(u[l+t],w):(r=iM(e,y),uu(r)||(r=[x,r])),"horizontal"===h){var _,S=[a.scale(r[0]),a.scale(r[1])],O=S[0],k=S[1];f=CM({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=k?k:O)&&void 0!==_?_:void 0,g=p.size;var E=O-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var j=Df(v||m)*(Math.abs(m)-Math.abs(v));d-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],M=A[1];if(f=T,d=CM({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-T,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+=Df(g||m)*(Math.abs(m)-Math.abs(g))}return AR(AR(AR({},e),{},{x:f,y:d,width:g,height:v,value:u?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[AM(n,e)],tooltipPosition:{x:f+g/2,y:d+v/2}})}));return AR({data:_,layout:h},d)}));var UR=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=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=!!ad(c,NR);return u.reduce((function(i,a){var c,u,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,C="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var _=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/_,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Ff(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=gM(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(u),vM(M);var D=wM(M,HR(HR({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,d=n.left,p=l[C]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,d=l[C]-h*g.width,p=n.top);var L=HR(HR(HR({},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 L.bandSize=EM(L,D),g.hide||"xAxis"!==r?g.hide||(l[C]+=(h?-1:1)*L.width):l[C]+=(h?-1:1)*L.height,HR(HR({},i),{},VR({},a,L))}),{})},$R=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)}},WR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var 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&&FR(t.prototype,n),r&&FR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();VR(WR,"EPS",1e-4);var qR=function(e){var t=Object.keys(e).reduce((function(t,n){return HR(HR({},t),{},VR({},n,WR.create(e[n])))}),{});return HR(HR({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return _R(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return yR(e,(function(e,n){return t[n].isInRange(e)}))}})};function ZR(e){return ZR="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},ZR(e)}function GR(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 YR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GR(Object(n),!0).forEach((function(t){XR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return QR(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 QR(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 QR(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 eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eI.apply(this,arguments)}function tI(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;j_(void 0===u,'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,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:l});if(aR(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+c,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(aR(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{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 aR(o,"discard")&&iR(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(qR({x:i.scale,y:a.scale}),If(n),If(r),o&&2===o.length,e);if(!f)return null;var d=JR(f,2),p=d[0],h=p.x,g=p.y,y=d[1],v=y.x,m=y.y,b=YR(YR({clipPath:aR(e,"hidden")?"url(#".concat(l,")"):void 0},ud(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return t.createElement(wd,{className:Fc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement("line",eI({},n,{className:"recharts-reference-line-line"}))}(s,b),tP.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return $R({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function nI(e){return nI="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},nI(e)}function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}function oI(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 iI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){aI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tI.displayName="ReferenceLine",tI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function sI(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=If(n),c=If(r);if(j_(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=qR({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return aR(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,d=e.shape,p=e.className,h=iI(iI({clipPath:aR(e,"hidden")?"url(#".concat(a,")"):void 0},ud(e,!0)),{},{cx:l,cy:f});return t.createElement(wd,{className:Fc("recharts-reference-dot",p)},sI.renderDot(d,h),tP.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function cI(e){return cI="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},cI(e)}function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function lI(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 fI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lI(Object(n),!0).forEach((function(t){dI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==cI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sI.displayName="ReferenceDot",sI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},sI.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(hD,rI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function pI(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;j_(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=If(n),l=If(r),f=If(o),d=If(i),p=e.shape;if(!(u||l||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=qR({x:u.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(c,{position:"end"}):f.y.rangeMax};return!aR(o,"discard")||f.isInRange(d)&&f.isInRange(p)?$R(d,p):null}(u,l,f,d,e);if(!h&&!p)return null;var g=aR(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wd,{className:Fc("recharts-reference-area",a)},pI.renderRect(p,fI(fI({clipPath:g},ud(e,!0)),h)),tP.renderCallByParent(e,h))}function hI(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function gI(e){return gI="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},gI(e)}function yI(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 vI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yI(Object(n),!0).forEach((function(t){mI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bI(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=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=u&&"width"===y?kS(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Df(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],C=su(i)?i(x.value,b-1):x.value,_=kS(C,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*_/2-r);v[b-1]=x=vI(vI({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*_/2-n)>=0&&w*(x.tickCoord+w*_/2-r)<=0&&(r=x.tickCoord-w*(_/2+c),v[b-1]=vI(vI({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=su(i)?i(E.value,k):E.value,A=kS(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=vI(vI({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=vI(vI({},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+c),v[k]=vI(vI({},E),{},{isShow:!0}))}return v}function wI(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit;if(!o||!o.length||!r)return[];if(Rf(c)||zC.isSsr)return function(e,t){return hI(e,t+1)}(o,"number"==typeof c&&Rf(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=hI(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=hI(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=bI({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?bI({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=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=c&&"width"===g?kS(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Df(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],C=su(o)?o(x.value,m-w-1):x.value,_=kS(C,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*_/2-n);v[w]=x=vI(vI({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=vI(vI({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*_/2-t)>=0&&b*(x.tickCoord+b*_/2-n)<=0&&(n=x.tickCoord-b*(_/2+s),v[w]=vI(vI({},x),{},{isShow:!0}))}return v}({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}pI.displayName="ReferenceArea",pI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},pI.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(ZP,uI({},n,{className:"recharts-reference-area-rect"}))};var xI=["viewBox"],CI=["viewBox"],_I=["ticks"];function SI(e){return SI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SI(e)}function OI(){return OI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OI.apply(this,arguments)}function kI(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 EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kI(Object(n),!0).forEach((function(t){DI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(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 AI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LI(r.key),r)}}function TI(e,t){return TI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TI(e,t)}function MI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PI(e);if(t){var o=PI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function PI(e){return PI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PI(e)}function DI(e,t,n){return(t=LI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LI(e){var t=function(e,t){if("object"!==SI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SI(t)?t:String(t)}var RI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TI(e,t)}(a,t.Component);var n,r,o,i=MI(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={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=jI(e,xI),o=this.props,i=o.viewBox,a=jI(o,CI);return!Kf(n,i)||!Kf(r,a)||!Kf(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,c=s.x,u=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=Rf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +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,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=EI(EI(EI({},ud(this.props)),ud(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=EI(EI({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=EI(EI({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",OI({},u,{className:Fc("recharts-cartesian-axis-line",bf(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,d=wI(EI(EI({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=ud(this.props),y=ud(u),v=EI(EI({},g),{},{fill:"none"},ud(s)),m=d.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=EI(EI(EI(EI({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:l});return t.createElement(wd,OI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Yf(o.props,e,n)),s&&t.createElement("line",OI({},v,i,{className:Fc("recharts-cartesian-axis-tick-line",bf(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(su(l)?l(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,u=c.ticks,l=jI(c,_I),f=u;return su(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(wd,{className:Fc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),tP.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,OI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&AI(n.prototype,r),o&&AI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();DI(RI,"displayName","CartesianAxis"),DI(RI,"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 II=["x1","y1","x2","y2","key"];function NI(e){return NI="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},NI(e)}function BI(){return BI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BI.apply(this,arguments)}function FI(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 zI(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 HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zI(Object(n),!0).forEach((function(t){WI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qI(r.key),r)}}function KI(e,t){return KI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KI(e,t)}function UI(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=$I(e);if(t){var o=$I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function $I(e){return $I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$I(e)}function WI(e,t,n){return(t=qI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qI(e){var t=function(e,t){if("object"!==NI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NI(t)?t:String(t)}var ZI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KI(e,t)}(a,t.PureComponent);var n,r,o,i=UI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=HI(HI({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=HI(HI({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!Rf(o)||o<=0||!Rf(i)||i<=0||!Rf(n)||n!==+n||!Rf(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!su(c)||(y=c({yAxis:f,width:p,height:h,offset:d})),v&&v.length||!su(u)||(v=u({xAxis:l,width:p,height:h,offset:d})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(su(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=FI(n,II);r=t.createElement("line",BI({},ud(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&VI(n.prototype,r),o&&VI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();WI(ZI,"displayName","CartesianGrid"),WI(ZI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var GI=["type","layout","connectNulls","ref"];function YI(e){return YI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YI(e)}function XI(e,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 JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JI.apply(this,arguments)}function QI(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 eN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QI(Object(n),!0).forEach((function(t){cN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tN(e){return function(e){if(Array.isArray(e))return nN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nN(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 nN(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 nN(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 rN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uN(r.key),r)}}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oN(e,t)}function iN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sN(e);if(t){var o=sN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aN(e)}(this,n)}}function aN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sN(e){return sN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sN(e)}function cN(e,t,n){return(t=uN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e){var t=function(e,t){if("object"!==YI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YI(t)?t:String(t)}var lN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oN(e,t)}(a,t.PureComponent);var n,r,o,i=iN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cN(aN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),cN(aN(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,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(tN(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(tN(a.repeat(n,o)),tN(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),cN(aN(e),"id",Bf("recharts-line-")),cN(aN(e),"pathRef",(function(t){e.mainCurve=t})),cN(aN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),cN(aN(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(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,JT);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:iM(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,l,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=ud(this.props),u=ud(o,!0),l=i.map((function(e,t){var n=eN(eN(eN({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,JI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=XI(i,GI),l=eN(eN(eN({},ud(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(IP,JI({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(yw,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Hf(r.x,e.x),a=Hf(r.y,e.y);return eN(eN({},e),{},{x:i(o),y:a(o)})}if(d){var c=Hf(2*p,e.x),u=Hf(h/2,e.y);return eN(eN({},e),{},{x:c(o),y:u(o)})}return eN(eN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Hf(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{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||!FS(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Fc("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=xf(p)?this.id:p;return t.createElement(wd,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||r)&&this.renderDots(v,m),(!d||h)&&gP.renderCallByParent(this.props,o))}}],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(tN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(tN(r),tN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(su(e))r=e(n);else{var o=Fc("recharts-line-dot",e?e.className:"");r=t.createElement(hD,JI({},n,{className:o}))}return r}}],r&&rN(n.prototype,r),o&&rN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();cN(lN,"displayName","Line"),cN(lN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!zC.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),cN(lN,"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,c=e.displayedData,u=e.offset,l=t.layout,f=c.map((function(e,t){var c=iM(e,a);return"horizontal"===l?{x:xM({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:xf(c)?null:r.scale(c),value:c,payload:e}:{x:xf(c)?null:n.scale(c),y:xM({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return eN({points:f,layout:l},u)}));var fN=function(){return null};fN.displayName="XAxis",fN.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var dN=function(){return null};dN.displayName="YAxis",dN.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var pN=Vg,hN=nh,gN=ah;var yN=function(e){return function(t,n,r){var o=Object(t);if(!hN(t)){var i=pN(n);t=gN(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}},vN=jL;var mN=Kg,bN=Vg,wN=function(e){var t=vN(e),n=t%1;return t==t?n?t-n:t:0},xN=Math.max;var CN=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:wN(n);return o<0&&(o=xN(r+o,0)),mN(e,bN(t),o)},_N=ct(yN(CN)),SN=ru,ON=lu;var kN=ct((function(e){return!0===e||!1===e||ON(e)&&"[object Boolean]"==SN(e)}));function EN(e){return function(e){if(Array.isArray(e))return jN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return jN(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 jN(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 jN(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 AN=function(e,t,n,r,o){var i=id(e,tI),a=id(e,sI),s=[].concat(EN(i),EN(a)),c=id(e,pI),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&aR(t.props,"extendDomain")&&Rf(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(l,"1"),p="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&aR(t.props,"extendDomain")&&Rf(t.props[d])&&Rf(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 Rf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},TN={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),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=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 c,u,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(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}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 c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u: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}(TN);var MN=new(ct(TN.exports));MN.setMaxListeners&&MN.setMaxListeners(10);var PN="recharts.syncMouseEvents";function DN(e){return DN="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},DN(e)}function LN(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,IN(r.key),r)}}function RN(e,t,n){return(t=IN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e){var t=function(e,t){if("object"!==DN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DN(t)?t:String(t)}var NN=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),RN(this,"activeIndex",0),RN(this,"coordinateList",[]),RN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t=e.coordinateList,n=void 0===t?[]:t,r=e.container,o=void 0===r?null:r,i=e.layout,a=void 0===i?null:i,s=e.offset,c=void 0===s?null:s,u=e.mouseHandlerCallback,l=void 0===u?null:u;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=l?l:this.mouseHandlerCallback,this.activeIndex>=this.coordinateList.length&&(this.activeIndex=this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=t+this.coordinateList[this.activeIndex].coordinate,o=n+this.offset.top;this.mouseHandlerCallback({pageX:r,pageY:o})}}}],n&&LN(t.prototype,n),r&&LN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),BN=["item"],FN=["children","className","width","height","style","compact","title","desc"];function zN(e){return zN="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},zN(e)}function HN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||YN(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 VN(){return VN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VN.apply(this,arguments)}function KN(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 UN(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,tB(r.key),r)}}function $N(e,t){return $N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$N(e,t)}function WN(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=ZN(e);if(t){var o=ZN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qN(e)}(this,n)}}function qN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZN(e){return ZN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZN(e)}function GN(e){return function(e){if(Array.isArray(e))return XN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YN(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 YN(e,t){if(e){if("string"==typeof e)return XN(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)?XN(e,t):void 0}}function XN(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 JN(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 QN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JN(Object(n),!0).forEach((function(t){eB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eB(e,t,n){return(t=tB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e){var t=function(e,t){if("object"!==zN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zN(t)?t:String(t)}var nB={xAxis:["bottom","top"],yAxis:["left","right"]},rB={x:0,y:0},oB=Number.isFinite?Number.isFinite:isFinite,iB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,aB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,sB=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(GN(e),GN(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&&Rf(o)&&Rf(i)?e.slice(o,i+1):[]};function cB(e){return"number"===e?[0,"auto"]:void 0}var uB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=sB(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=Vf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(GN(e),[AM(t,o)]):e}),[])},lB=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,c=e.tooltipTicks,u=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)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Df(l-u)!==Df(f-l)){var p=[];if(Df(f-l)===Df(s[1]-s[0])){d=f;var h=l+s[1]-s[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{d=u;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[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].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}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=uB(e,t,u,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 QN(QN(QN({},r),BM(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return QN(QN(QN({},r),BM(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return rB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:d}}return null},fB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,d=fM(u,o),p=n.reduce((function(t,n){var p,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var _,S,O,k=sB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Rf(r)&&Rf(o))return!0}return!1})(n.props.domain,v,g)&&(_=kM(n.props.domain,null,v),!d||"number"!==g&&"auto"===b||(O=aM(k,y,"category")));var j=cB(g);if(!_||0===_.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(y){if(_=aM(k,y,g),"category"===g&&d){var M=function(e){if(!uu(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}(_);m&&M?(S=_,_=PL(0,E)):m||(_=jM(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(GN(e),[t])}),[]))}else if("category"===g)_=m?_.filter((function(e){return""!==e&&!xf(e)})):jM(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||xf(t)?e:[].concat(GN(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return uM(e,t,n,o,r)})).filter((function(e){return!xf(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}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),y,o,u);P&&(_=P)}!d||"number"!==g&&"auto"===b||(O=aM(k,y,"category"))}else _=d?PL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:_M(a[C].stackGroups,s,c):lM(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,u,!0);if("number"===g)_=AN(l,_,C,o,w),T&&(_=kM(T,_,v));else if("category"===g&&T){var D=T;_.every((function(e){return D.indexOf(e)>=0}))&&(_=D)}}return QN(QN({},t),{},eB({},C,QN(QN({},n.props),{},{axisType:o,domain:_,categoricalDomain:O,duplicateDomain:S,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:u})))}),{});return p},dB=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,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=id(u,o),d={};return f&&f.length?d=fB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):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,c=t.dataEndIndex,u=e.layout,l=e.children,f=sB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=fM(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=cB("number");return e[y]?e:(h++,p?g=PL(0,d):a&&a[y]&&a[y].hasStack?(g=_M(a[y].stackGroups,s,c),g=AN(l,g,y,o)):(g=kM(v,lM(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=AN(l,g,y,o)),QN(QN({},e),{},eB({},y,QN(QN({axisType:o},r.defaultProps),{},{hide:!0,orientation:bf(nB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},pB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=ad(r,YL);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!xf(o)&&o}},hB=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"}},gB=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,c=n.height,u=n.children,l=n.margin||{},f=ad(u,YL),d=ad(u,km),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:QN(QN({},e),{},eB({},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:QN(QN({},e),{},eB({},r,bf(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=QN(QN({},h),p),y=g.bottom;return f&&(g.bottom+=f.props.height||YL.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),c=cM({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,d=c.verticalAlign,p=c.layout;("vertical"===p||"horizontal"===p&&"middle"===d)&&Rf(e[f])&&(u=rM(rM({},e),{},oM({},f,u[f]+(l.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Rf(e[d])&&(u=rM(rM({},e),{},oM({},d,u[d]+(l.height||0))))}return u}(g,0,n,t)),QN(QN({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},yB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,l=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,l=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=hB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=td(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 c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var d=c[u[l]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return td(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:xf(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=sB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,C=n.props["".concat(g,"Id")],_=n.props["".concat(y,"Id")],S=u.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return QN(QN({},e),{},(eB(o={},r.axisType,s),eB(o,"".concat(r.axisType,"Ticks"),pM(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(If(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[C].stackGroups),j=td(n.type).indexOf("Bar")>=0,A=EM(O,k),T=[];if(j){var M,P,D=xf(x)?p:x,L=null!==(M=null!==(P=EM(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 c,u=Ff(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)*u)>=r&&(d-=(s-1)*u,u=0),d>=r&&f>0&&(l=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(eM(e),[{item:t.item,position:{offset:p.offset+p.size+u,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=Ff(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(eM(e),[{item:t.item,position:{offset:h+(g+u)*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 c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[_],maxBarSize:D}),L!==A&&(T=T.map((function(e){return QN(QN({},e),{},{position:QN(QN({},e.position),{},{offset:e.position.offset-L/2})})})))}var R,I,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:QN(QN({},B(QN(QN({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},eB(R,g,S[g]),eB(R,y,S[y]),eB(R,"animationId",i),R)),childIndex:(I=n,N=e.children,od(N).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!sd({props:n}))return null;var c=n.children,l=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=hB(l),v=y.numericAxisName,m=y.cateAxisName,b=id(c,o),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(If(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Bf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return rM(rM({},e),{},oM({},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 rM(rM({},t),{},oM({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:bM(e,a.items,o)}))}),{})),rM(rM({},t),{},oM({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),d,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return QN(QN({},e),{},eB({},r,dB(n,QN(QN({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=gB(QN(QN({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var _,S,O=x["".concat(m,"Map")],k=(_=zf(O),{tooltipTicks:S=pM(_,!1,!0),orderedTooltipTicks:kC(S,(function(e){return e.coordinate})),tooltipAxis:_,tooltipAxisBandSize:EM(_,S)}),E=p(n,QN(QN({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return QN(QN({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$N(e,t)}(u,t.Component);var n,o,i,s=WN(u);function u(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),eB(qN(n=s.call(this,e)),"accessibilityManager",new NN),eB(qN(n),"clearDeferId",(function(){!xf(n.deferId)&&aB&&aB(n.deferId),n.deferId=null})),eB(qN(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(QN({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},QN(QN({},n.state),{},{legendBBox:e}))))}})),eB(qN(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=iB&&iB(n.applySyncEvent.bind(qN(n),r)))})),eB(qN(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 QN({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),eB(qN(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=QN(QN({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)}})),eB(qN(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?QN(QN({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)})),eB(qN(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),eB(qN(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),eB(qN(n),"handleMouseMove",(function(e){e&&su(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),eB(qN(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),su(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),eB(qN(n),"handleOuterEvent",(function(e){var t=function(e){var t=e&&e.type;return t&&ed[t]?ed[t]:null}(e),r=bf(n.props,"".concat(t));t&&su(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),eB(qN(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=QN(QN({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)}})),eB(qN(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;su(t)&&t(n.getMouseInfo(e),e)})),eB(qN(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;su(t)&&t(n.getMouseInfo(e),e)})),eB(qN(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),eB(qN(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),eB(qN(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),eB(qN(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return dM(wI(QN(QN(QN({},RI.defaultProps),t),{},{ticks:pM(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),eB(qN(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return dM(wI(QN(QN(QN({},RI.defaultProps),t),{},{ticks:pM(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),eB(qN(n),"axesTicksGenerator",(function(e){return pM(e,!0)})),eB(qN(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,u=o.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==l)return null;var f,d=n.props.layout,p=IP;if("ScatterChart"===r)f=a,p=vD;else if("BarChart"===r)f=n.getCursorRectangle(),p=ZP;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=OP}else f={points:n.getCursorPoints()},p=IP;var m=e.key||"_recharts-cursor",b=QN(QN(QN(QN({stroke:"#ccc",pointerEvents:"none"},c),f),ud(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)})),eB(qN(n),"renderPolarAxis",(function(e,r,o){var i=bf(e,"type.axisType"),a=bf(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,QN(QN({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:pM(s,!0)}))})),eB(qN(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),eB(qN(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),eB(qN(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=zf(o),f=_N(i,(function(e){return yR(e.domain,oB)}))||zf(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Rf(d.x)?d.x:a.left,y:Rf(d.y)?d.y:a.top,width:Rf(d.width)?d.width:a.width,height:Rf(d.height)?d.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),eB(qN(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=zf(c),f=zf(u),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:uu(i)?i:pM(f,!0).map((function(e){return e.coordinate})),polarRadius:uu(a)?a:pM(l,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),eB(qN(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),u=cM({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,d=KN(u,BN);return t.cloneElement(f,QN(QN({},d),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),eB(qN(n),"renderTooltip",(function(){var e=ad(n.props.children,YC);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:QN(QN({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),eB(qN(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:hM(n.handleBrushChange,null,e.props.onChange),data:i,x:Rf(e.props.x)?e.props.x:s.left,y:Rf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Rf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),eB(qN(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=qN(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=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:c[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),eB(qN(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,c=t.item.props,l=c.activeDot,f=QN(QN({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:sM(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},ud(l)),Gf(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,QN(QN({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),eB(qN(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,d=ad(n.props.children,YC),p=i.props,h=p.points,g=p.isRange,y=p.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&d&&m&&l>=0,w={};"axis"!==a&&d&&"click"===d.props.trigger?w={onClick:hM(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:hM(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:hM(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,QN(QN({},i.props),w));if(b){var C,_;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=Vf(h,S,f),_=g&&y&&Vf(y,S,f)}else C=h[l],_=g&&y&&y[l];if(!xf(C))return[x].concat(GN(n.renderActivePoints({item:i,activePoint:C,basePoint:_,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),eB(qN(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,QN(QN({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=xf(e.id)?Bf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=x_(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){var e,t;xf(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){xf(e.syncId)&&!xf(this.props.syncId)&&this.addListener(),!xf(e.syncId)&&xf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),xf(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=ad(this.props.children,YC);if(e&&kN(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{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,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=zf(s).scale,l=zf(c).scale,f=u&&u.invert?u.invert(o.chartX):null,d=l&&l.invert?l.invert(o.chartY):null;return QN(QN({},o),{},{xValue:f,yValue:d})}var p=lB(this.state,this.props.data,this.props.layout,i);return p?QN(QN({},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(!xf(a.cx)||!xf(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,d=a.endAngle;return{points:[BM(c,u,l,f),BM(c,u,l,d)],cx:c,cy:u,radius:l,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=BM(p,h,g,v),b=BM(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=zf(i);return VM({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=ad(e,YC),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}),QN(QN({},Gf(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){MN.on(PN,this.handleReceiveSyncEvent),MN.setMaxListeners&&MN._maxListeners&&MN.setMaxListeners(MN._maxListeners+1)}},{key:"removeListener",value:function(){MN.removeListener(PN,this.handleReceiveSyncEvent),MN.setMaxListeners&&MN._maxListeners&&MN.setMaxListeners(MN._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;xf(t)||MN.emit(PN,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(xf(e.dataStartIndex)&&xf(e.dataEndIndex))if(xf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,d=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(d,e);else if("value"===r){u=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){u=p;break}}var g=QN(QN({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=d[u]&&d[u].value,b=uB(this.state,this.props.data,u),w=d[u]?{x:"horizontal"===n?d[u].coordinate:y,y:"horizontal"===n?v:d[u].coordinate}:rB;this.setState(QN(QN({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(QN({dataStartIndex:i,dataEndIndex:a},h({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===td(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(RI,VN({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HN(t,2),r=n[0],o=n[1];return QN(QN({},e),{},eB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HN(t,2),r=n[0],o=n[1];return QN(QN({},e),{},eB({},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=td(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return qP(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return VM(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!sd(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,u=n.title,l=n.desc,f=KN(n,FN),d=ud(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(c)return t.createElement(yd,VN({},d,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),dd(r,p));this.props.accessibilityLayer&&(d.tabIndex=0,d.role="img",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return t.createElement("div",VN({className:Fc("recharts-wrapper",o),style:QN({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(yd,VN({},d,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),dd(r,p)),this.renderLegend(),this.renderTooltip())}}],o&&UN(n.prototype,o),i&&UN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),eB(n,"displayName",r),eB(n,"defaultProps",QN({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),eB(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(xf(t.updateId)){var u=pB(e);return QN(QN(QN({},u),{},{updateId:0},h(QN(QN({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Kf(c,t.prevMargin)){var l=pB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=QN(QN({},lB(t,n,a)),{},{updateId:t.updateId+1}),p=QN(QN(QN({},l),f),d);return QN(QN(QN({},p),h(QN({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!ld(r,t.prevChildren)){var g=!xf(n)?t.updateId:t.updateId+1;return QN(QN({updateId:g},h(QN(QN({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),eB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(hD,n),t.createElement(wd,{className:"recharts-active-dot",key:n.key},r)})),n},vB=yB({chartName:"LineChart",GraphicalChild:lN,axisComponents:[{axisType:"xAxis",AxisComp:fN},{axisType:"yAxis",AxisComp:dN}],formatAxisMap:UR}),mB=yB({chartName:"BarChart",GraphicalChild:NR,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:fN},{axisType:"yAxis",AxisComp:dN}],formatAxisMap:UR}),bB=yB({chartName:"PieChart",GraphicalChild:CL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:eL},{axisType:"radiusAxis",AxisComp:HD}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ff(e.cx,i,i/2),l=Ff(e.cy,a,a/2),f=FM(i,a,n),d=Ff(e.innerRadius,f,0),p=Ff(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(xf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=LM(i=a.range,2);s=g[0],c=g[1]}var y=gM(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),vM(m);var b=wM(m,PM(PM({},a),{},{realScaleType:v})),w=PM(PM(PM({},a),b),{},{range:i,radius:p,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return PM(PM({},e),{},DM({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const wB=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),un,ln);function xB(e){return xB="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},xB(e)}function CB(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 _B(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function SB(e){_B(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===xB(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 OB(e,t){_B(2,arguments);var n=SB(e),r=CB(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function kB(e,t){_B(2,arguments);var n=SB(e),r=CB(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function EB(e,t){if(_B(2,arguments),!t||"object"!==xB(t))return new Date(NaN);var n=t.years?CB(t.years):0,r=t.months?CB(t.months):0,o=t.weeks?CB(t.weeks):0,i=t.days?CB(t.days):0,a=t.hours?CB(t.hours):0,s=t.minutes?CB(t.minutes):0,c=t.seconds?CB(t.seconds):0,u=SB(e),l=r||n?kB(u,r+12*n):u,f=i||o?OB(l,i+7*o):l,d=1e3*(c+60*(s+60*a));return new Date(f.getTime()+d)}var jB={};function AB(){return jB}function TB(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 MB(e){_B(1,arguments);var t=SB(e);return t.setHours(0,0,0,0),t}var PB=864e5;function DB(e,t){_B(2,arguments);var n=MB(e),r=MB(t);return n.getTime()===r.getTime()}function LB(e){if(_B(1,arguments),!function(e){return _B(1,arguments),e instanceof Date||"object"===xB(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=SB(e);return!isNaN(Number(t))}function RB(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 IB(e,t){_B(2,arguments);var n=SB(e),r=SB(t),o=RB(n,r),i=Math.abs(function(e,t){_B(2,arguments);var n=MB(e),r=MB(t),o=n.getTime()-TB(n),i=r.getTime()-TB(r);return Math.round((o-i)/PB)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(RB(n,r)===-o));return 0===a?0:a}var NB={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},BB="trunc";function FB(e){return e?NB[e]:NB[BB]}function zB(e,t,n){_B(2,arguments);var r=function(e,t){return _B(2,arguments),SB(e).getTime()-SB(t).getTime()}(e,t)/6e4;return FB(null==n?void 0:n.roundingMethod)(r)}function HB(e,t){return _B(2,arguments),function(e,t){_B(2,arguments);var n=SB(e).getTime(),r=CB(t);return new Date(n+r)}(e,-CB(t))}function VB(e){_B(1,arguments);var t=SB(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function KB(e){_B(1,arguments);var t=SB(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=VB(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=VB(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function UB(e){_B(1,arguments);var t=SB(e),n=VB(t).getTime()-function(e){_B(1,arguments);var t=KB(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),VB(n)}(t).getTime();return Math.round(n/6048e5)+1}function $B(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=AB(),f=CB(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===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=SB(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 WB(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=SB(e),f=l.getUTCFullYear(),d=AB(),p=CB(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===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.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=$B(h,t),y=new Date(0);y.setUTCFullYear(f,0,p),y.setUTCHours(0,0,0,0);var v=$B(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function qB(e,t){_B(1,arguments);var n=SB(e),r=$B(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=AB(),f=CB(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===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),d=WB(e,t),p=new Date(0);return p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0),$B(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function ZB(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var GB={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ZB("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ZB(n+1,2)},d:function(e,t){return ZB(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ZB(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ZB(e.getUTCHours(),t.length)},m:function(e,t){return ZB(e.getUTCMinutes(),t.length)},s:function(e,t){return ZB(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ZB(Math.floor(r*Math.pow(10,n-3)),t.length)}},YB=GB,XB="midnight",JB="noon",QB="morning",eF="afternoon",tF="evening",nF="night",rF={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 YB.y(e,t)},Y:function(e,t,n,r){var o=WB(e,r),i=o>0?o:1-o;return"YY"===t?ZB(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ZB(i,t.length)},R:function(e,t){return ZB(KB(e),t.length)},u:function(e,t){return ZB(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 ZB(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 ZB(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 YB.M(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 ZB(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=qB(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ZB(o,t.length)},I:function(e,t,n){var r=UB(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ZB(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):YB.d(e,t)},D:function(e,t,n){var r=function(e){_B(1,arguments);var t=SB(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ZB(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 ZB(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 ZB(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 ZB(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?JB:0===o?XB: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?tF:o>=12?eF:o>=4?QB:nF,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 YB.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):YB.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZB(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZB(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):YB.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):YB.s(e,t)},S:function(e,t){return YB.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return iF(o);case"XXXX":case"XX":return aF(o);default:return aF(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return iF(o);case"xxxx":case"xx":return aF(o);default:return aF(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+oF(o,":");default:return"GMT"+aF(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+oF(o,":");default:return"GMT"+aF(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ZB(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ZB((r._originalDate||e).getTime(),t.length)}};function oF(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+ZB(i,2)}function iF(e,t){return e%60==0?(e>0?"-":"+")+ZB(Math.abs(e)/60,2):aF(e,t)}function aF(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ZB(Math.floor(o/60),2)+n+ZB(o%60,2)}var sF=rF,cF=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"})}},uF=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"})}},lF={p:uF,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return cF(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}}",cF(o,t)).replace("{{time}}",uF(i,t))}},fF=lF,dF=["D","DD"],pF=["YY","YYYY"];function hF(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 gF={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"}},yF=function(e,t,n){var r,o=gF[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};function vF(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var mF={date:vF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vF({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:vF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wF=function(e,t,n,r){return bF[e]};function xF(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 CF={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:xF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:xF({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:xF({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:xF({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:xF({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"})},_F=CF;function SF(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],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var OF,kF={ordinalNumber:(OF={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(OF.matchPattern);if(!n)return null;var r=n[0],o=e.match(OF.parsePattern);if(!o)return null;var i=OF.valueCallback?OF.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:SF({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:SF({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:SF({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:SF({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:SF({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"})},EF={code:"en-US",formatDistance:yF,formatLong:mF,formatRelative:wF,localize:_F,match:kF,options:{weekStartsOn:0,firstWeekContainsDate:1}},jF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TF=/^'([^]*?)'?$/,MF=/''/g,PF=/[a-zA-Z]/;function DF(e,t,n){var r,o,i,a,s,c,u,l,f,d,p,h,g,y,v,m,b,w;_B(2,arguments);var x=String(t),C=AB(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:EF,S=CB(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(f=C.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=CB(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:C.weekStartsOn)&&void 0!==h?h:null===(b=C.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(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=SB(e);if(!LB(k))throw new RangeError("Invalid time value");var E=HB(k,TB(k)),j={firstWeekContainsDate:S,weekStartsOn:O,locale:_,_originalDate:k},A=x.match(AF).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,fF[t])(e,_.formatLong):e})).join("").match(jF).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(TF);if(!t)return e;return t[1].replace(MF,"'")}(r);var i,a=sF[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===pF.indexOf(i))||hF(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==dF.indexOf(e)}(r)||hF(r,t,String(e)),a(E,r,_.localize,j);if(o.match(PF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function LF(e){return _B(1,arguments),SB(e).getDate()}function RF(e){_B(1,arguments);var t=SB(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 IF(e){_B(1,arguments);var t=SB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function NF(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getTime()>r.getTime()}function BF(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getTime()<r.getTime()}function FF(e){return _B(1,arguments),function(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function zF(e,t){return _B(2,arguments),OB(e,-CB(t))}function HF(e,t){if(_B(2,arguments),"object"!==xB(t)||null===t)throw new RangeError("values parameter must be an object");var n=SB(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){_B(2,arguments);var n=SB(e),r=CB(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=RF(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(CB(t.date)),null!=t.hours&&n.setHours(CB(t.hours)),null!=t.minutes&&n.setMinutes(CB(t.minutes)),null!=t.seconds&&n.setSeconds(CB(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(CB(t.milliseconds)),n)}function VF(e,t){_B(2,arguments);var n=SB(e),r=CB(t);return n.setDate(r),n}function KF(e,t){if(_B(2,arguments),!t||"object"!==xB(t))return new Date(NaN);var n=t.years?CB(t.years):0,r=t.months?CB(t.months):0,o=t.weeks?CB(t.weeks):0,i=t.days?CB(t.days):0,a=t.hours?CB(t.hours):0,s=t.minutes?CB(t.minutes):0,c=t.seconds?CB(t.seconds):0,u=function(e,t){return _B(2,arguments),kB(e,-CB(t))}(e,r+12*n),l=zF(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const UF=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},$F=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),WF=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:last-of-type":{strokeOpacity:0}}}),qF=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),ZF=W.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),un),GF=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(ez,{children:[e.jsx(tz,{children:r}),null==n?void 0:n.map((t=>{var n;const r=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color);return e.jsxs(QF,{children:[r&&e.jsx(wB,{color:r}),t.name,": ",$F(t.value||0)]},t.value)}))]}):null,YF=()=>{const{elevation1:t}=n.useTheme();return e.jsx(YC,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(GF,{})})},XF=({payload:t,toggleData:n})=>e.jsx(JF,{children:null==t?void 0:t.map((t=>e.jsxs(QF,Object.assign({onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive},{children:[e.jsx(wB,{color:t.color}),t.value]}),t.value)))}),JF=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),QF=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),ez=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),tz=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let nz;const rz=new Uint8Array(16);function oz(){if(!nz&&(nz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!nz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return nz(rz)}const iz=[];for(let e=0;e<256;++e)iz.push((e+256).toString(16).slice(1));var az={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function sz(e,t,n){if(az.randomUUID&&!t&&!e)return az.randomUUID();const r=(e=e||{}).random||(e.rng||oz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(iz[e[t+0]]+iz[e[t+1]]+iz[e[t+2]]+iz[e[t+3]]+"-"+iz[e[t+4]]+iz[e[t+5]]+"-"+iz[e[t+6]]+iz[e[t+7]]+"-"+iz[e[t+8]]+iz[e[t+9]]+"-"+iz[e[t+10]]+iz[e[t+11]]+iz[e[t+12]]+iz[e[t+13]]+iz[e[t+14]]+iz[e[t+15]]).toLowerCase()}(r)}const cz=W.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"}))),uz=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),lz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),fz=W.div({display:"flex"}),dz=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),pz=W.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"}})),hz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),gz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),yz=W.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}})),un),vz=W.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`}}}))),mz=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),bz=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),C="right"===i,_={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(yz,Object.assign({htmlFor:r,labelRight:C,disabled:u},_,{children:[o&&e.jsx(mz,{children:o}),e.jsx(vz,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(dn,{name:v,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!u})]}))};function wz(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=wz(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function xz(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=wz(e))&&(r&&(r+=" "),r+=t);return r}var Cz,_z,Sz=Object.create,Oz=Object.defineProperty,kz=Object.defineProperties,Ez=Object.getOwnPropertyDescriptor,jz=Object.getOwnPropertyDescriptors,Az=Object.getOwnPropertyNames,Tz=Object.getOwnPropertySymbols,Mz=Object.getPrototypeOf,Pz=Object.prototype.hasOwnProperty,Dz=Object.prototype.propertyIsEnumerable,Lz=(e,t,n)=>t in e?Oz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Rz=(e,t)=>{for(var n in t||(t={}))Pz.call(t,n)&&Lz(e,n,t[n]);if(Tz)for(var n of Tz(t))Dz.call(t,n)&&Lz(e,n,t[n]);return e},Iz=(e,t)=>kz(e,jz(t)),Nz=(e,t)=>{var n={};for(var r in e)Pz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tz)for(var r of Tz(e))t.indexOf(r)<0&&Dz.call(e,r)&&(n[r]=e[r]);return n},Bz=(Cz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=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,"&").replace(/</g,"<").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 c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&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 c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return 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 c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;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,C=s.next,_=l;C!==t.tail&&!(f&&_>=f.reach);_+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,_,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=_;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(_=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(_,A),O.index-=_}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),L=_+S.length;f&&L>f.reach&&(f.reach=L);var R=C.prev;if(P&&(R=c(t,R,P),_+=P.length),u(t,R,k),C=c(t,R,new o(d,y?r.tokenize(M,y):M,b,M)),D&&c(t,C,D),k>1){var I={cause:d+","+h,reach:L};a(e,t,n,C.prev,_,I),f&&I.reach>f.reach&&(f.reach=I.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 c(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 u(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 c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return _z||(0,Cz[Az(Cz)[0]])((_z={exports:{}}).exports,_z),_z.exports}),Fz=((e,t,n)=>(n=null!=e?Sz(Mz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of Az(t))Pz.call(e,o)||o===n||Oz(e,o,{get:()=>t[o],enumerable:!(r=Ez(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Oz(n,"default",{value:e,enumerable:!0}),e)))(Bz());!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Fz),Fz.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:/[{}[\];(),.:]/},Fz.languages.javascript=Fz.languages.extend("clike",{"class-name":[Fz.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}|\?\?=?|\?\.?|[~:]/}),Fz.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Fz.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Fz.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:Fz.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Fz.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Fz.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:Fz.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Fz.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:Fz.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"}}),Fz.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Fz.languages.markup&&(Fz.languages.markup.tag.addInlined("script","javascript"),Fz.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")),Fz.languages.js=Fz.languages.javascript,Fz.languages.actionscript=Fz.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Fz.languages.actionscript["class-name"].alias="function",delete Fz.languages.actionscript.parameter,delete Fz.languages.actionscript["literal-property"],Fz.languages.markup&&Fz.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Fz.languages.markup}}),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}(Fz),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(Fz),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),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,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Fz),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(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("\\[(?:[^[\\]\"']|"+t.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":[t,{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}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{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|RebeccaPurple|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:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Fz),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}(Fz),Fz.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Fz.languages.markup.tag.inside["attr-value"].inside.entity=Fz.languages.markup.entity,Fz.languages.markup.doctype.inside["internal-subset"].inside=Fz.languages.markup,Fz.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Fz.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Fz.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Fz.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Fz.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Fz.languages.markup.tag,"addAttribute",{value:function(e,t){Fz.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:Fz.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Fz.languages.html=Fz.languages.markup,Fz.languages.mathml=Fz.languages.markup,Fz.languages.svg=Fz.languages.markup,Fz.languages.xml=Fz.languages.extend("markup",{}),Fz.languages.ssml=Fz.languages.xml,Fz.languages.atom=Fz.languages.xml,Fz.languages.rss=Fz.languages.xml,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,a=(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,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(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];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var u,l=e.languages[n];l?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),l,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Fz),Fz.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:Fz.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+/},Fz.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"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"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}return 1}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)}})),Fz.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(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),u=0,l={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return l[n]=e,n})).join(""),n,a),Object.keys(l));return u=0,function t(n){for(var i=0;i<n.length;i++){if(u>=f.length)return;var a,c,d,p,h,g,y,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=f[u],-1!==(y=(g="string"==typeof v?v:v.content).indexOf(a))&&(++u,c=g.substring(0,y),h=l[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(y+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof v?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):v.content=h)):(y=v.content,Array.isArray(y)?t(y):t([y]))}}(c),new e.Token(a,c,"language-"+a,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 u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function l(e){return"string"==typeof e?e:Array.isArray(e)?e.map(l).join(""):l(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,u=n[r];"string"!=typeof u&&(i=u.content,Array.isArray(i)?"template-string"===u.type?(u=i[1],3===i.length&&"string"!=typeof u&&"embedded-code"===u.type&&(a=l(u),u=u.alias,u=Array.isArray(u)?u[0]:u,s=e.languages[u])&&(i[1]=c(a,s,u))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(Fz),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}(Fz),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Fz),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Fz),Fz.languages.n4js=Fz.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Fz.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Fz.languages.n4jsd=Fz.languages.n4js,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];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Fz),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)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}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 s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(Fz),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Fz),Fz.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Fz.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Fz.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Fz),Fz.languages.c=Fz.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|[?:~]|[-+*/%&|^!=<>]=?/}),Fz.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Fz.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},Fz.languages.c.string],char:Fz.languages.c.char,comment:Fz.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:Fz.languages.c}}}}),Fz.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 Fz.languages.c.boolean,Fz.languages.objectivec=Fz.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 Fz.languages.objectivec["class-name"],Fz.languages.objc=Fz.languages.objectivec,Fz.languages.reason=Fz.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/}),Fz.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 Fz.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Fz),Fz.languages.go=Fz.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/}),Fz.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Fz.languages.go["class-name"],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"])}(Fz);var zz={};((e,t)=>{for(var n in t)Oz(e,n,{get:t[n],enumerable:!0})})(zz,{dracula:()=>Hz,duotoneDark:()=>Vz,duotoneLight:()=>Kz,github:()=>Uz,jettwaveDark:()=>rH,jettwaveLight:()=>oH,nightOwl:()=>$z,nightOwlLight:()=>Wz,oceanicNext:()=>Gz,okaidia:()=>Yz,palenight:()=>Xz,shadesOfPurple:()=>Jz,synthwave84:()=>Qz,ultramin:()=>eH,vsDark:()=>tH,vsLight:()=>nH});var Hz={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Vz={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"}}]},Kz={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{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:"#896724"}}]},Uz={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},$z={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},Wz={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},qz="#c5a5c5",Zz="#8dc891",Gz={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:qz}},{types:["attr-value"],style:{color:Zz}},{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:Zz}},{types:["punctuation"],style:{color:Zz}},{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:qz}},{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}}]},Yz={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Xz={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Jz={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Qz={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},eH={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},tH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},nH={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)"}}]},rH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},oH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},iH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Rz(Rz({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Iz(Rz({},n),{backgroundColor:void 0}),r},aH=/\r\n|\r|\n/,sH=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)},cH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},uH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,u=t[a];const l=n[a][i];if("string"==typeof l?(u=a>0?u:["plain"],e=l):(u=cH(u,l.type),l.alias&&(u=cH(u,l.alias)),e=l.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(aH),d=f.length;s.push({types:u,content:f[0]});for(let e=1;e<d;e++)sH(s),c.push(s=[]),s.push({types:u,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return sH(s),c},lH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(iH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(iH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Nz(n,["className","style","line"]);const s=Iz(Rz({},a),{className:xz("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Rz(Rz({},s.style||{}),o)),s}),[e]))(s),u=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Nz(t,["token","className","style"]);const s=Iz(Rz({},a),{className:xz("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=Rz(Rz({},s.style||{}),i)),s}),[n])})(s),l=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return uH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),uH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:l,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:u})},fH=e=>t.createElement(lH,Rz({prism:Fz,theme:tH},e))
|
|
209
|
+
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}();void 0!==Q_&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(eS);var tS={},nS={exports:{}},rS={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}},oS=function(e,t,n,r){if(!rS.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!rS[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=rS[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}}(oS);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}(nS,nS.exports);var iS=nS.exports;Object.defineProperty(tS,"__esModule",{value:!0}),tS.flip=lS;var aS=function(e){return e&&e.__esModule?e:{default:e}}(iS);function sS(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,aS.default)(e.left,e.right,t),r=sS(n.left,t),o=sS(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)&&(cS(r.right,o.right)?n=(0,aS.default)(r.left,o.left,t):cS(r.right,o.left)&&(n=(0,aS.default)(r.left,o.right,t)),r=sS(n.left,t),o=sS(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 fS(o);r.type===o.type&&uS(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(uS(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=sS({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?lS(o.operator):o.operator,sS(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=sS({type:"MathExpression",operator:"-"===i?lS(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,sS(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&uS(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=sS({type:"MathExpression",operator:i,left:r.left,right:o},t),sS(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=sS({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=sS({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),sS(e,t)}return e}(e,t);case"/":return function(e,t){if(!uS(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 uS(e.left.left.type)&&uS(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,sS(e.left,t)):e;if(uS(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(uS(e.left.left.type)&&uS(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(uS(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(uS(e.right.left.type)&&uS(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&&uS(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?sS(e.value,t):e}function cS(e,t){return e.type===t.type&&e.value===t.value}function uS(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 lS(e){return"+"===e?"-":"+"}function fS(e){return uS(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=fS(e.left),e.right=fS(e.right)),e}tS.default=sS;var dS={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=tS,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,c=e.operator,u="";return"MathExpression"===a.type&&r[c]<r[a.operator]?u+="("+i(a,t)+")":u+=i(a,t),u+=" "+e.operator+" ","MathExpression"===s.type&&r[c]<r[s.operator]?u+="("+i(s,t)+")":"MathExpression"===s.type&&"-"===c&&["+","-"].includes(s.operator)?(s.operator=(0,n.flip)(s.operator),u+=i(s,t)):u+=i(s,t),u;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}(dS,dS.exports);var pS=dS.exports;!function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(J_),r=eS,o=a(tS),i=a(pS);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 c=r.parser.parse(a),u=(0,o.default)(c,t);e.type="word",e.value=(0,i.default)(e.value,u,t)}}}),!0).toString()},e.exports=t.default}(I_,I_.exports);var hS=ct(I_.exports);function gS(e){return gS="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},gS(e)}function yS(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?yS(Object(n),!0).forEach((function(t){mS(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yS(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mS(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gS(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gS(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bS(e){return function(e){if(Array.isArray(e))return wS(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wS(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 wS(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 wS(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 xS={widthCache:{},cacheCount:0},CS={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_S=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],SS="recharts_measurement_span";var OS=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(bS(e),["-",t.toLowerCase()]):[].concat(bS(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],_S.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},kS=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||zC.isSsr)return{width:0,height:0};var n="".concat(e),r=OS(t),o="".concat(n,"-").concat(r);if(xS.widthCache[o])return xS.widthCache[o];try{var i=document.getElementById(SS);i||((i=document.createElement("span")).setAttribute("id",SS),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=vS(vS({},CS),t);Object.keys(a).map((function(e){return i.style[e]=a[e],e})),i.textContent=n;var s=i.getBoundingClientRect(),c={width:s.width,height:s.height};return xS.widthCache[o]=c,++xS.cacheCount>2e3&&(xS.cacheCount=0,xS.widthCache={}),c}catch(e){return{width:0,height:0}}},ES=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function jS(){return jS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jS.apply(this,arguments)}function AS(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 TS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return MS(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 MS(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 MS(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 PS=/[ \f\n\r\t\v\u2028\u2029]+/,DS=function(e){var t=e.children,n=e.breakAll,r=e.style;try{var o=[];return xf(t)||(o=n?t.toString().split(""):t.toString().split(PS)),{wordsWithComputedWidth:o.map((function(e){return{word:e,width:kS(e,r).width}})),spaceWidth:n?0:kS(" ",r).width}}catch(e){return null}},LS=function(e){return[{words:xf(e)?[]:e.toString().split(PS)}]},RS=function(e){var t=e.width,n=e.scaleToFit,r=e.children,o=e.style,i=e.breakAll,a=e.maxLines;if((t||n)&&!zC.isSsr){var s=DS({breakAll:i,children:r,style:o});return s?function(e,t,n,r,o){var i=e.maxLines,a=e.children,s=e.style,c=e.breakAll,u=Rf(i),l=a,f=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<Number(r)))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},d=f(t);if(!u)return d;for(var p,h=function(e){var t=l.slice(0,e),n=DS({breakAll:c,style:s,children:t+"…"}).wordsWithComputedWidth,o=f(n),a=o.length>i||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(o).width>Number(r);return[a,o]},g=0,y=l.length-1,v=0;g<=y&&v<=l.length-1;){var m=Math.floor((g+y)/2),b=TS(h(m-1),2),w=b[0],x=b[1],C=TS(h(m),1)[0];if(w||C||(g=m+1),w&&C&&(y=m-1),!w&&C){p=x;break}v++}return p||d}({breakAll:i,children:r,maxLines:a,style:o},s.wordsWithComputedWidth,s.spaceWidth,t,n):LS(r)}return LS(r)},IS={x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"},NS=function(e){var n=t.useMemo((function(){return RS({breakAll:e.breakAll,children:e.children,maxLines:e.maxLines,scaleToFit:e.scaleToFit,style:e.style,width:e.width})}),[e.breakAll,e.children,e.maxLines,e.scaleToFit,e.style,e.width]),r=e.dx,o=e.dy,i=e.textAnchor,a=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,d=e.breakAll,p=AS(e,ES);if(!If(p.x)||!If(p.y))return null;var h,g=p.x+(Rf(r)?r:0),y=p.y+(Rf(o)?o:0);switch(a){case"start":h=hS("calc(".concat(l,")"));break;case"middle":h=hS("calc(".concat((n.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:h=hS("calc(".concat(n.length-1," * -").concat(u,")"))}var v=[];if(s){var m=n[0].width,b=e.width;v.push("scale(".concat((Rf(b)?b/m:1)/m,")"))}return c&&v.push("rotate(".concat(c,", ").concat(g,", ").concat(y,")")),v.length&&(p.transform=v.join(" ")),t.createElement("text",jS({},ud(p,!0),{x:g,y:y,className:Fc("recharts-text",f),textAnchor:i,fill:p.fill.includes("url")?IS.fill:p.fill}),n.map((function(e,n){return t.createElement("tspan",{x:g,dy:0===n?h:u,key:n},e.words.join(d?"":" "))})))};NS.defaultProps=IS;var BS=Yh;var FS=ct((function(e,t){return BS(e,t)})),zS=vu;var HS=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&&!zS(a):n(a,s)))var s=a,c=i}return c};var VS=function(e,t){return e>t},KS=HS,US=VS,$S=Ag;var WS=function(e){return e&&e.length?KS(e,$S,US):void 0},qS=ct(WS);var ZS=function(e,t){return e<t},GS=HS,YS=ZS,XS=Ag;var JS=function(e){return e&&e.length?GS(e,XS,YS):void 0},QS=ct(JS),eO=Xl,tO=Vg,nO=Hx,rO=cu;var oO=Mx,iO=function(e,t){return(rO(e)?eO:nO)(e,tO(t))};var aO=ct((function(e,t){return oO(iO(e,t),1)}));function sO(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function cO(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uO(e){let t,n,r;function o(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<0?o=t+1:i=t}while(o<i)}return o}return 2!==e.length?(t=sO,n=(t,n)=>sO(e(t),n),r=(t,n)=>e(t)-n):(t=e===sO||e===cO?e:lO,n=e,r=e),{left:o,center:function(e,t,n=0,i=e.length){const a=o(e,t,n,i-1);return a>n&&r(e[a-1],t)>-r(e[a],t)?a-1:a},right:function(e,r,o=0,i=e.length){if(o<i){if(0!==t(r,r))return i;do{const t=o+i>>>1;n(e[t],r)<=0?o=t+1:i=t}while(o<i)}return o}}}function lO(){return 0}function fO(e){return null===e?NaN:+e}const dO=uO(sO).right;uO(fO).center;var pO=dO;class hO extends Map{constructor(e,t=yO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(const[t,n]of e)this.set(t,n)}get(e){return super.get(gO(this,e))}has(e){return super.has(gO(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},n){const r=t(n);e.has(r)&&(n=e.get(r),e.delete(r));return n}(this,e))}}function gO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function yO(e){return null!==e&&"object"==typeof e?e.valueOf():e}function vO(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const mO=Math.sqrt(50),bO=Math.sqrt(10),wO=Math.sqrt(2);function xO(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=mO?10:i>=bO?5:i>=wO?2:1;let s,c,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),c=Math.round(t*u),s/u<e&&++s,c/u>t&&--c,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),c=Math.round(t/u),s*u<e&&++s,c*u>t&&--c),c<s&&.5<=n&&n<2?xO(e,t,2*n):[s,c,u]}function CO(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?xO(t,e,n):xO(e,t,n);if(!(i>=o))return[];const s=i-o+1,c=new Array(s);if(r)if(a<0)for(let e=0;e<s;++e)c[e]=(i-e)/-a;else for(let e=0;e<s;++e)c[e]=(i-e)*a;else if(a<0)for(let e=0;e<s;++e)c[e]=(o+e)/-a;else for(let e=0;e<s;++e)c[e]=(o+e)*a;return c}function _O(e,t,n){return xO(e=+e,t=+t,n=+n)[2]}function SO(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?_O(t,e,n):_O(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function OO(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 kO(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 EO(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=void 0===o?vO:function(e=sO){if(e===sO)return vO;if("function"!=typeof e)throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||0===r?r:(0===e(n,n))-(0===e(t,t))}}(o);r>n;){if(r-n>600){const i=r-n+1,a=t-n+1,s=Math.log(i),c=.5*Math.exp(2*s/3),u=.5*Math.sqrt(s*c*(i-c)/i)*(a-i/2<0?-1:1);EO(e,t,Math.max(n,Math.floor(t-a*c/i+u)),Math.min(r,Math.floor(t+(i-a)*c/i+u)),o)}const i=e[t];let a=n,s=r;for(jO(e,n,t),o(e[r],i)>0&&jO(e,n,r);a<s;){for(jO(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?jO(e,n,s):(++s,jO(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function jO(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function AO(e,t,n=fO){if((r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,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 TO(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function MO(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 PO=Symbol("implicit");function DO(){var e=new hO,t=[],n=[],r=PO;function o(o){let i=e.get(o);if(void 0===i){if(r!==PO)return r;e.set(o,i=t.push(o)-1)}return n[i%n.length]}return o.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new hO;for(const r of n)e.has(r)||e.set(r,t.push(r)-1);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 DO(t,n).unknown(r)},TO.apply(o,arguments),o}function LO(){var e,t,n=DO().unknown(void 0),r=n.domain,o=n.range,i=0,a=1,s=!1,c=0,u=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-c+2*u),s&&(e=Math.floor(e)),d+=(p-d-e*(n-c))*l,t=e*(1-c),s&&(d=Math.round(d),t=Math.round(t));var h=function(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}(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?(c=Math.min(1,u=+e),f()):c},n.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),f()):c},n.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},n.align=function(e){return arguments.length?(l=Math.max(0,Math.min(1,e)),f()):l},n.copy=function(){return LO(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},TO.apply(f(),arguments)}function RO(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return RO(t())},e}function IO(){return RO(LO.apply(null,arguments).paddingInner(1))}function NO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function BO(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function FO(){}var zO=.7,HO=1/zO,VO="\\s*([+-]?\\d+)\\s*",KO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",UO="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$O=/^#([0-9a-f]{3,8})$/,WO=new RegExp(`^rgb\\(${VO},${VO},${VO}\\)$`),qO=new RegExp(`^rgb\\(${UO},${UO},${UO}\\)$`),ZO=new RegExp(`^rgba\\(${VO},${VO},${VO},${KO}\\)$`),GO=new RegExp(`^rgba\\(${UO},${UO},${UO},${KO}\\)$`),YO=new RegExp(`^hsl\\(${KO},${UO},${UO}\\)$`),XO=new RegExp(`^hsla\\(${KO},${UO},${UO},${KO}\\)$`),JO={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 QO(){return this.rgb().formatHex()}function ek(){return this.rgb().formatRgb()}function tk(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=$O.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?nk(t):3===n?new ik(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?rk(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?rk(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=WO.exec(e))?new ik(t[1],t[2],t[3],1):(t=qO.exec(e))?new ik(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=ZO.exec(e))?rk(t[1],t[2],t[3],t[4]):(t=GO.exec(e))?rk(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=YO.exec(e))?fk(t[1],t[2]/100,t[3]/100,1):(t=XO.exec(e))?fk(t[1],t[2]/100,t[3]/100,t[4]):JO.hasOwnProperty(e)?nk(JO[e]):"transparent"===e?new ik(NaN,NaN,NaN,0):null}function nk(e){return new ik(e>>16&255,e>>8&255,255&e,1)}function rk(e,t,n,r){return r<=0&&(e=t=n=NaN),new ik(e,t,n,r)}function ok(e,t,n,r){return 1===arguments.length?function(e){return e instanceof FO||(e=tk(e)),e?new ik((e=e.rgb()).r,e.g,e.b,e.opacity):new ik}(e):new ik(e,t,n,null==r?1:r)}function ik(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ak(){return`#${lk(this.r)}${lk(this.g)}${lk(this.b)}`}function sk(){const e=ck(this.opacity);return`${1===e?"rgb(":"rgba("}${uk(this.r)}, ${uk(this.g)}, ${uk(this.b)}${1===e?")":`, ${e})`}`}function ck(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function uk(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lk(e){return((e=uk(e))<16?"0":"")+e.toString(16)}function fk(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pk(e,t,n,r)}function dk(e){if(e instanceof pk)return new pk(e.h,e.s,e.l,e.opacity);if(e instanceof FO||(e=tk(e)),!e)return new pk;if(e instanceof pk)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,c=(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/=c<.5?i+o:2-i-o,a*=60):s=c>0&&c<1?0:a,new pk(a,s,c,e.opacity)}function pk(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function hk(e){return(e=(e||0)%360)<0?e+360:e}function gk(e){return Math.max(0,Math.min(1,e||0))}function yk(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}NO(FO,tk,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:QO,formatHex:QO,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return dk(this).formatHsl()},formatRgb:ek,toString:ek}),NO(ik,ok,BO(FO,{brighter(e){return e=null==e?HO:Math.pow(HO,e),new ik(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?zO:Math.pow(zO,e),new ik(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ik(uk(this.r),uk(this.g),uk(this.b),ck(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ak,formatHex:ak,formatHex8:function(){return`#${lk(this.r)}${lk(this.g)}${lk(this.b)}${lk(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:sk,toString:sk})),NO(pk,(function(e,t,n,r){return 1===arguments.length?dk(e):new pk(e,t,n,null==r?1:r)}),BO(FO,{brighter(e){return e=null==e?HO:Math.pow(HO,e),new pk(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?zO:Math.pow(zO,e),new pk(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new ik(yk(e>=240?e-240:e+120,o,r),yk(e,o,r),yk(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new pk(hk(this.h),gk(this.s),gk(this.l),ck(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ck(this.opacity);return`${1===e?"hsl(":"hsla("}${hk(this.h)}, ${100*gk(this.s)}%, ${100*gk(this.l)}%${1===e?")":`, ${e})`}`}}));var vk=e=>()=>e;function mk(e){return 1==(e=+e)?bk: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):vk(isNaN(t)?n:t)}}function bk(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):vk(isNaN(e)?t:e)}var wk=function e(t){var n=mk(t);function r(e,t){var r=n((e=ok(e)).r,(t=ok(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=bk(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 xk(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 Ck(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]=Ak(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 _k(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Sk(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ok(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]=Ak(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var kk=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ek=new RegExp(kk.source,"g");function jk(e,t){var n,r,o,i=kk.lastIndex=Ek.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=kk.exec(e))&&(r=Ek.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,c.push({i:a,x:Sk(n,r)})),i=Ek.lastIndex;return i<t.length&&(o=t.slice(i),s[a]?s[a]+=o:s[++a]=o),s.length<2?c[0]?function(e){return function(t){return e(t)+""}}(c[0].x):function(e){return function(){return e}}(t):(t=c.length,function(e){for(var n,r=0;r<t;++r)s[(n=c[r]).i]=n.x(e);return s.join("")})}function Ak(e,t){var n,r=typeof t;return null==t||"boolean"===r?vk(t):("number"===r?Sk:"string"===r?(n=tk(t))?(t=n,wk):jk:t instanceof tk?wk:t instanceof Date?_k:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?xk:Array.isArray(t)?Ck:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Ok:Sk)(e,t)}function Tk(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Mk(e,t){void 0===t&&(t=e,e=Ak);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 Pk(e){return+e}var Dk=[0,1];function Lk(e){return e}function Rk(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function Ik(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=Rk(o,r),i=n(a,i)):(r=Rk(r,o),i=n(i,a)),function(e){return i(r(e))}}function Nk(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]=Rk(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=pO(e,t,1,r)-1;return i[n](o[n](t))}}function Bk(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Fk(){var e,t,n,r,o,i,a=Dk,s=Dk,c=Ak,u=Lk;function l(){var e=Math.min(a.length,s.length);return u!==Lk&&(u=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?Nk:Ik,o=i=null,f}function f(t){return null==t||isNaN(t=+t)?n:(o||(o=r(a.map(e),s,c)))(e(u(t)))}return f.invert=function(n){return u(t((i||(i=r(s,a.map(e),Sk)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,Pk),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),c=Tk,l()},f.clamp=function(e){return arguments.length?(u=!!e||Lk,l()):u!==Lk},f.interpolate=function(e){return arguments.length?(c=e,l()):c},f.unknown=function(e){return arguments.length?(n=e,f):n},function(n,r){return e=n,t=r,l()}}function zk(){return Fk()(Lk,Lk)}function Hk(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 Vk(e){return(e=Hk(Math.abs(e)))?e[1]:NaN}var Kk,Uk=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function $k(e){if(!(t=Uk.exec(e)))throw new Error("invalid format: "+e);var t;return new Wk({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 Wk(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 qk(e,t){var n=Hk(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")}$k.prototype=Wk.prototype,Wk.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 Zk={"%":(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)=>qk(100*e,t),r:qk,s:function(e,t){var n=Hk(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(Kk=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")+Hk(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Gk(e){return e}var Yk,Xk,Jk,Qk=Array.prototype.map,eE=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function tE(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?Gk:(t=Qk.call(e.grouping,Number),n=e.thousands+"",function(e,r){for(var o=e.length,i=[],a=0,s=t[0],c=0;o>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),i.push(e.substring(o-=s,o+s)),!((c+=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?Gk:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(Qk.call(e.numerals,String)),c=void 0===e.percent?"%":e.percent+"",u=void 0===e.minus?"−":e.minus+"",l=void 0===e.nan?"NaN":e.nan+"";function f(e){var t=(e=$k(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"):Zk[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)?c:"",x=Zk[m],C=/[defgprs%]/.test(m);function _(e){var o,i,c,d=b,_=w;if("c"===m)_=x(e)+_,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:u:"-"===f||"("===f?"":f)+d,_=("s"===m?eE[8+Kk/3]:"")+_+(S&&"("===f?")":""),C)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){_=(46===c?a+e.slice(o+1):e.slice(o))+_,e=e.slice(0,o);break}}g&&!p&&(e=r(e,1/0));var O=d.length+e.length+_.length,k=O<h?new Array(h-O+1).join(t):"";switch(g&&p&&(e=r(k+e,k.length?h-_.length:1/0),k=""),n){case"<":e=d+e+_+k;break;case"=":e=d+k+e+_;break;case"^":e=k.slice(0,O=k.length>>1)+d+e+_+k.slice(O);break;default:e=k+d+e+_}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)),_.toString=function(){return e+""},_}return{format:f,formatPrefix:function(e,t){var n=f(((e=$k(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Vk(t)/3))),o=Math.pow(10,-r),i=eE[8+r/3];return function(e){return n(o*e)+i}}}}function nE(e,t,n,r){var o,i=SO(e,t,n);switch((r=$k(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(Vk(t)/3)))-Vk(Math.abs(e)))}(i,a))||(r.precision=o),Jk(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,Vk(t)-Vk(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,-Vk(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return Xk(r)}function rE(e){var t=e.domain;return e.ticks=function(e){var n=t();return CO(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return nE(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,c=i[a],u=i[s],l=10;for(u<c&&(o=c,c=u,u=o,o=a,a=s,s=o);l-- >0;){if((o=_O(c,u,n))===r)return i[a]=c,i[s]=u,t(i);if(o>0)c=Math.floor(c/o)*o,u=Math.ceil(u/o)*o;else{if(!(o<0))break;c=Math.ceil(c*o)/o,u=Math.floor(u*o)/o}r=o}return e},e}function oE(){var e=zk();return e.copy=function(){return Bk(e,oE())},TO.apply(e,arguments),rE(e)}function iE(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 aE(e){return Math.log(e)}function sE(e){return Math.exp(e)}function cE(e){return-Math.log(-e)}function uE(e){return-Math.exp(-e)}function lE(e){return isFinite(e)?+("1e"+e):e<0?0:e}function fE(e){return(t,n)=>-e(-t,n)}function dE(e){const t=e(aE,sE),n=t.domain;let r,o,i=10;function a(){return r=function(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}(i),o=function(e){return 10===e?lE:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=fE(r),o=fE(o),e(cE,uE)):e(aE,sE),t}return t.base=function(e){return arguments.length?(i=+e,a()):i},t.domain=function(e){return arguments.length?(n(e),a()):n()},t.ticks=e=>{const t=n();let a=t[0],s=t[t.length-1];const c=s<a;c&&([a,s]=[s,a]);let u,l,f=r(a),d=r(s);const p=null==e?10:+e;let h=[];if(!(i%1)&&d-f<p){if(f=Math.floor(f),d=Math.ceil(d),a>0){for(;f<=d;++f)for(u=1;u<i;++u)if(l=f<0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}}else for(;f<=d;++f)for(u=i-1;u>=1;--u)if(l=f>0?u/o(-f):u*o(f),!(l<a)){if(l>s)break;h.push(l)}2*h.length<p&&(h=CO(a,s,p))}else h=CO(f,d,Math.min(d-f,p)).map(o);return c?h.reverse():h},t.tickFormat=(e,n)=>{if(null==e&&(e=10),null==n&&(n=10===i?"s":","),"function"!=typeof n&&(i%1||null!=(n=$k(n)).precision||(n.trim=!0),n=Xk(n)),e===1/0)return n;const a=Math.max(1,i*e/t.ticks().length);return e=>{let t=e/o(Math.round(r(e)));return t*i<i-.5&&(t*=i),t<=a?n(e):""}},t.nice=()=>n(iE(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function pE(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function hE(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function gE(e){var t=1,n=e(pE(t),hE(t));return n.constant=function(n){return arguments.length?e(pE(t=+n),hE(t)):t},rE(n)}function yE(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function vE(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function mE(e){return e<0?-e*e:e*e}function bE(e){var t=e(Lk,Lk),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(Lk,Lk):.5===n?e(vE,mE):e(yE(n),yE(1/n)):n},rE(t)}function wE(){var e=bE(Fk());return e.copy=function(){return Bk(e,wE()).exponent(e.exponent())},TO.apply(e,arguments),e}function xE(e){return Math.sign(e)*e*e}Yk=tE({thousands:",",grouping:[3],currency:["$",""]}),Xk=Yk.format,Jk=Yk.formatPrefix;const CE=new Date,_E=new Date;function SE(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=t=>(e(t=new Date(+t)),t),o.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),o.round=e=>{const t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=(e,n)=>(t(e=new Date(+e),null==n?1:Math.floor(n)),e),o.range=(n,r,i)=>{const a=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return a;let s;do{a.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return a},o.filter=n=>SE((t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)}),((e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})),n&&(o.count=(t,r)=>(CE.setTime(+t),_E.setTime(+r),e(CE),e(_E),Math.floor(n(CE,_E))),o.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?t=>r(t)%e==0:t=>o.count(0,t)%e==0):o:null)),o}const OE=SE((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));OE.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?SE((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):OE:null),OE.range;const kE=1e3,EE=6e4,jE=36e5,AE=864e5,TE=6048e5,ME=2592e6,PE=31536e6,DE=SE((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*kE)}),((e,t)=>(t-e)/kE),(e=>e.getUTCSeconds()));DE.range;const LE=SE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kE)}),((e,t)=>{e.setTime(+e+t*EE)}),((e,t)=>(t-e)/EE),(e=>e.getMinutes()));LE.range;const RE=SE((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*EE)}),((e,t)=>(t-e)/EE),(e=>e.getUTCMinutes()));RE.range;const IE=SE((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*kE-e.getMinutes()*EE)}),((e,t)=>{e.setTime(+e+t*jE)}),((e,t)=>(t-e)/jE),(e=>e.getHours()));IE.range;const NE=SE((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*jE)}),((e,t)=>(t-e)/jE),(e=>e.getUTCHours()));NE.range;const BE=SE((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EE)/AE),(e=>e.getDate()-1));BE.range;const FE=SE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/AE),(e=>e.getUTCDate()-1));FE.range;const zE=SE((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/AE),(e=>Math.floor(e/AE)));function HE(e){return SE((t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)}),((e,t)=>{e.setDate(e.getDate()+7*t)}),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*EE)/TE))}zE.range;const VE=HE(0),KE=HE(1),UE=HE(2),$E=HE(3),WE=HE(4),qE=HE(5),ZE=HE(6);function GE(e){return SE((t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+7*t)}),((e,t)=>(t-e)/TE))}VE.range,KE.range,UE.range,$E.range,WE.range,qE.range,ZE.range;const YE=GE(0),XE=GE(1),JE=GE(2),QE=GE(3),ej=GE(4),tj=GE(5),nj=GE(6);YE.range,XE.range,JE.range,QE.range,ej.range,tj.range,nj.range;const rj=SE((e=>{e.setDate(1),e.setHours(0,0,0,0)}),((e,t)=>{e.setMonth(e.getMonth()+t)}),((e,t)=>t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())),(e=>e.getMonth()));rj.range;const oj=SE((e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)}),((e,t)=>t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())),(e=>e.getUTCMonth()));oj.range;const ij=SE((e=>{e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,t)=>{e.setFullYear(e.getFullYear()+t)}),((e,t)=>t.getFullYear()-e.getFullYear()),(e=>e.getFullYear()));ij.every=e=>isFinite(e=Math.floor(e))&&e>0?SE((t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,n)=>{t.setFullYear(t.getFullYear()+n*e)})):null,ij.range;const aj=SE((e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)}),((e,t)=>t.getUTCFullYear()-e.getUTCFullYear()),(e=>e.getUTCFullYear()));function sj(e,t,n,r,o,i){const a=[[DE,1,kE],[DE,5,5e3],[DE,15,15e3],[DE,30,3e4],[i,1,EE],[i,5,3e5],[i,15,9e5],[i,30,18e5],[o,1,jE],[o,3,108e5],[o,6,216e5],[o,12,432e5],[r,1,AE],[r,2,1728e5],[n,1,TE],[t,1,ME],[t,3,7776e6],[e,1,PE]];function s(t,n,r){const o=Math.abs(n-t)/r,i=uO((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(SO(t/PE,n/PE,r));if(0===i)return OE.every(Math.max(SO(t,n,r),1));const[s,c]=a[o/a[i-1][2]<a[i][2]/o?i-1:i];return s.every(c)}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]}aj.every=e=>isFinite(e=Math.floor(e))&&e>0?SE((t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)})):null,aj.range;const[cj,uj]=sj(aj,oj,YE,zE,NE,RE),[lj,fj]=sj(ij,rj,VE,BE,IE,LE);function dj(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 pj(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 hj(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var gj,yj,vj,mj={"-":"",_:" ",0:"0"},bj=/^\s*\d+/,wj=/^%/,xj=/[\\^$*+?|[\]().{}]/g;function Cj(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 _j(e){return e.replace(xj,"\\$&")}function Sj(e){return new RegExp("^(?:"+e.map(_j).join("|")+")","i")}function Oj(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function kj(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ej(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Aj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Tj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Mj(e,t,n){var r=bj.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Pj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Dj(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 Lj(e,t,n){var r=bj.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function Rj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Ij(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nj(e,t,n){var r=bj.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Bj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Fj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function zj(e,t,n){var r=bj.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Hj(e,t,n){var r=bj.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Vj(e,t,n){var r=bj.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Kj(e,t,n){var r=wj.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Uj(e,t,n){var r=bj.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $j(e,t,n){var r=bj.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Wj(e,t){return Cj(e.getDate(),t,2)}function qj(e,t){return Cj(e.getHours(),t,2)}function Zj(e,t){return Cj(e.getHours()%12||12,t,2)}function Gj(e,t){return Cj(1+BE.count(ij(e),e),t,3)}function Yj(e,t){return Cj(e.getMilliseconds(),t,3)}function Xj(e,t){return Yj(e,t)+"000"}function Jj(e,t){return Cj(e.getMonth()+1,t,2)}function Qj(e,t){return Cj(e.getMinutes(),t,2)}function eA(e,t){return Cj(e.getSeconds(),t,2)}function tA(e){var t=e.getDay();return 0===t?7:t}function nA(e,t){return Cj(VE.count(ij(e)-1,e),t,2)}function rA(e){var t=e.getDay();return t>=4||0===t?WE(e):WE.ceil(e)}function oA(e,t){return e=rA(e),Cj(WE.count(ij(e),e)+(4===ij(e).getDay()),t,2)}function iA(e){return e.getDay()}function aA(e,t){return Cj(KE.count(ij(e)-1,e),t,2)}function sA(e,t){return Cj(e.getFullYear()%100,t,2)}function cA(e,t){return Cj((e=rA(e)).getFullYear()%100,t,2)}function uA(e,t){return Cj(e.getFullYear()%1e4,t,4)}function lA(e,t){var n=e.getDay();return Cj((e=n>=4||0===n?WE(e):WE.ceil(e)).getFullYear()%1e4,t,4)}function fA(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Cj(t/60|0,"0",2)+Cj(t%60,"0",2)}function dA(e,t){return Cj(e.getUTCDate(),t,2)}function pA(e,t){return Cj(e.getUTCHours(),t,2)}function hA(e,t){return Cj(e.getUTCHours()%12||12,t,2)}function gA(e,t){return Cj(1+FE.count(aj(e),e),t,3)}function yA(e,t){return Cj(e.getUTCMilliseconds(),t,3)}function vA(e,t){return yA(e,t)+"000"}function mA(e,t){return Cj(e.getUTCMonth()+1,t,2)}function bA(e,t){return Cj(e.getUTCMinutes(),t,2)}function wA(e,t){return Cj(e.getUTCSeconds(),t,2)}function xA(e){var t=e.getUTCDay();return 0===t?7:t}function CA(e,t){return Cj(YE.count(aj(e)-1,e),t,2)}function _A(e){var t=e.getUTCDay();return t>=4||0===t?ej(e):ej.ceil(e)}function SA(e,t){return e=_A(e),Cj(ej.count(aj(e),e)+(4===aj(e).getUTCDay()),t,2)}function OA(e){return e.getUTCDay()}function kA(e,t){return Cj(XE.count(aj(e)-1,e),t,2)}function EA(e,t){return Cj(e.getUTCFullYear()%100,t,2)}function jA(e,t){return Cj((e=_A(e)).getUTCFullYear()%100,t,2)}function AA(e,t){return Cj(e.getUTCFullYear()%1e4,t,4)}function TA(e,t){var n=e.getUTCDay();return Cj((e=n>=4||0===n?ej(e):ej.ceil(e)).getUTCFullYear()%1e4,t,4)}function MA(){return"+0000"}function PA(){return"%"}function DA(e){return+e}function LA(e){return Math.floor(+e/1e3)}function RA(e){return new Date(e)}function IA(e){return e instanceof Date?+e:+new Date(+e)}function NA(e,t,n,r,o,i,a,s,c,u){var l=zk(),f=l.invert,d=l.domain,p=u(".%L"),h=u(":%S"),g=u("%I:%M"),y=u("%I %p"),v=u("%a %d"),m=u("%b %d"),b=u("%B"),w=u("%Y");function x(e){return(c(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,IA)):d().map(RA)},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:u(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(iE(n,e)):l},l.copy=function(){return Bk(l,NA(e,t,n,r,o,i,a,s,c,u))},l}function BA(){var e,t,n,r,o,i=0,a=1,s=Lk,c=!1;function u(t){return null==t||isNaN(t=+t)?o:s(0===n?.5:(t=(r(t)-e)*n,c?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),u):[s(0),s(1)]}}return u.domain=function(o){return arguments.length?([i,a]=o,e=r(i=+i),t=r(a=+a),n=e===t?0:1/(t-e),u):[i,a]},u.clamp=function(e){return arguments.length?(c=!!e,u):c},u.interpolator=function(e){return arguments.length?(s=e,u):s},u.range=l(Ak),u.rangeRound=l(Tk),u.unknown=function(e){return arguments.length?(o=e,u):o},function(o){return r=o,e=o(i),t=o(a),n=e===t?0:1/(t-e),u}}function FA(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function zA(){var e=bE(BA());return e.copy=function(){return FA(e,zA()).exponent(e.exponent())},MO.apply(e,arguments)}function HA(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=Lk,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=Mk(e,[n,r,o]),p):[f(0),f(.5),f(1)]}}return p.domain=function(a){return arguments.length?([s,c,u]=a,e=i(s=+s),t=i(c=+c),n=i(u=+u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p):[s,c,u]},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(Ak),p.rangeRound=h(Tk),p.unknown=function(e){return arguments.length?(a=e,p):a},function(a){return i=a,e=a(s),t=a(c),n=a(u),r=e===t?0:.5/(t-e),o=t===n?0:.5/(n-t),l=t<e?-1:1,p}}function VA(){var e=bE(HA());return e.copy=function(){return FA(e,VA()).exponent(e.exponent())},MO.apply(e,arguments)}!function(e){gj=function(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,c=e.shortMonths,u=Sj(o),l=Oj(o),f=Sj(i),d=Oj(i),p=Sj(a),h=Oj(a),g=Sj(s),y=Oj(s),v=Sj(c),m=Oj(c),b={a:function(e){return a[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return c[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Wj,e:Wj,f:Xj,g:cA,G:lA,H:qj,I:Zj,j:Gj,L:Yj,m:Jj,M:Qj,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:DA,s:LA,S:eA,u:tA,U:nA,V:oA,w:iA,W:aA,x:null,X:null,y:sA,Y:uA,Z:fA,"%":PA},w={a:function(e){return a[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return c[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:dA,e:dA,f:vA,g:jA,G:TA,H:pA,I:hA,j:gA,L:yA,m:mA,M:bA,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:DA,s:LA,S:wA,u:xA,U:CA,V:SA,w:OA,W:kA,x:null,X:null,y:EA,Y:AA,Z:MA,"%":PA},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:Ij,e:Ij,f:Vj,g:Pj,G:Mj,H:Bj,I:Bj,j:Nj,L:Hj,m:Rj,M:Fj,p:function(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=l.get(r[0].toLowerCase()),n+r[0].length):-1},q:Lj,Q:Uj,s:$j,S:zj,u:Ej,U:jj,V:Aj,w:kj,W:Tj,x:function(e,t,r){return S(e,n,t,r)},X:function(e,t,n){return S(e,r,t,n)},y:Pj,Y:Mj,Z:Dj,"%":Kj};function C(e,t){return function(n){var r,o,i,a=[],s=-1,c=0,u=e.length;for(n instanceof Date||(n=new Date(+n));++s<u;)37===e.charCodeAt(s)&&(a.push(e.slice(c,s)),null!=(o=mj[r=e.charAt(++s)])?r=e.charAt(++s):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),a.push(r),c=s+1);return a.push(e.slice(c,s)),a.join("")}}function _(e,t){return function(n){var r,o,i=hj(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=pj(hj(i.y,0,1))).getUTCDay(),r=o>4||0===o?XE.ceil(r):XE(r),r=FE.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=dj(hj(i.y,0,1))).getDay(),r=o>4||0===o?KE.ceil(r):KE(r),r=BE.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?pj(hj(i.y,0,1)).getUTCDay():dj(hj(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,pj(i)):dj(i)}}function S(e,t,n,r){for(var o,i,a=0,s=t.length,c=n.length;a<s;){if(r>=c)return-1;if(37===(o=t.charCodeAt(a++))){if(o=t.charAt(a++),!(i=x[o in mj?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=C(n,b),b.X=C(r,b),b.c=C(t,b),w.x=C(n,w),w.X=C(r,w),w.c=C(t,w),{format:function(e){var t=C(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=_(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=_(e+="",!0);return t.toString=function(){return e},t}}}(e),yj=gj.format,gj.parse,vj=gj.utcFormat,gj.utcParse}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var KA,UA=Object.freeze({__proto__:null,scaleBand:LO,scaleDiverging:function e(){var t=rE(HA()(Lk));return t.copy=function(){return FA(t,e())},MO.apply(t,arguments)},scaleDivergingLog:function e(){var t=dE(HA()).domain([.1,1,10]);return t.copy=function(){return FA(t,e()).base(t.base())},MO.apply(t,arguments)},scaleDivergingPow:VA,scaleDivergingSqrt:function(){return VA.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=gE(HA());return t.copy=function(){return FA(t,e()).constant(t.constant())},MO.apply(t,arguments)},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,Pk),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,Pk):[0,1],rE(r)},scaleImplicit:PO,scaleLinear:oE,scaleLog:function e(){const t=dE(Fk()).domain([1,10]);return t.copy=()=>Bk(t,e()).base(t.base()),TO.apply(t,arguments),t},scaleOrdinal:DO,scalePoint:IO,scalePow:wE,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]=AO(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[pO(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(sO),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)},TO.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[pO(i,e,0,o)]:t}function c(){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,c()):[n,r]},s.range=function(e){return arguments.length?(o=(a=Array.from(e)).length-1,c()):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)},TO.apply(rE(s),arguments)},scaleRadial:function e(){var t,n=zk(),r=[0,1],o=!1;function i(e){var r=function(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}(n(e));return isNaN(r)?t:o?Math.round(r):r}return i.invert=function(e){return n.invert(xE(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,Pk)).map(xE)),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)},TO.apply(i,arguments),rE(i)},scaleSequential:function e(){var t=rE(BA()(Lk));return t.copy=function(){return FA(t,e())},MO.apply(t,arguments)},scaleSequentialLog:function e(){var t=dE(BA()).domain([1,10]);return t.copy=function(){return FA(t,e()).base(t.base())},MO.apply(t,arguments)},scaleSequentialPow:zA,scaleSequentialQuantile:function e(){var t=[],n=Lk;function r(e){if(null!=e&&!isNaN(e=+e))return n((pO(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(sO),r},r.interpolator=function(e){return arguments.length?(n=e,r):n},r.range=function(){return t.map(((e,r)=>n(r/(t.length-1))))},r.quantiles=function(e){return Array.from({length:e+1},((n,r)=>function(e,t,n){if(e=Float64Array.from(function*(e,t){if(void 0===t)for(let t of e)null!=t&&(t=+t)>=t&&(yield t);else{let n=-1;for(let r of e)null!=(r=t(r,++n,e))&&(r=+r)>=r&&(yield r)}}(e,n)),(r=e.length)&&!isNaN(t=+t)){if(t<=0||r<2)return kO(e);if(t>=1)return OO(e);var r,o=(r-1)*t,i=Math.floor(o),a=OO(EO(e,i).subarray(0,i+1));return a+(kO(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},MO.apply(r,arguments)},scaleSequentialSqrt:function(){return zA.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=gE(BA());return t.copy=function(){return FA(t,e()).constant(t.constant())},MO.apply(t,arguments)},scaleSqrt:function(){return wE.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=gE(Fk());return t.copy=function(){return Bk(t,e()).constant(t.constant())},TO.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[pO(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)},TO.apply(i,arguments)},scaleTime:function(){return TO.apply(NA(lj,fj,ij,rj,VE,BE,IE,LE,DE,yj).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return TO.apply(NA(cj,uj,aj,oj,YE,FE,NE,RE,DE,vj).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:nE}),$A=1e9,WA=!0,qA="[DecimalError] ",ZA=qA+"Invalid argument: ",GA=qA+"Exponent out of range: ",YA=Math.floor,XA=Math.pow,JA=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,QA=1e7,eT=7,tT=9007199254740991,nT=YA(tT/eT),rT={};function oT(e,t){var n,r,o,i,a,s,c,u,l=e.constructor,f=l.precision;if(!e.s||!t.s)return t.s||(t=new l(e)),WA?hT(t,f):t;if(c=e.d,u=t.d,a=e.e,o=t.e,c=c.slice(),i=a-o){for(i<0?(r=c,i=-i,s=u.length):(r=u,o=a,s=c.length),i>(s=(a=Math.ceil(f/eT))>s?a+1:s+1)&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for((s=c.length)-(i=u.length)<0&&(i=s,r=u,u=c,c=r),n=0;i;)n=(c[--i]=c[i]+u[i]+n)/QA|0,c[i]%=QA;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,WA?hT(t,f):t}function iT(e,t,n){if(e!==~~e||e<t||e>n)throw Error(ZA+e)}function aT(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",(n=eT-r.length)&&(i+=fT(n)),i+=r;a=e[t],(n=eT-(r=a+"").length)&&(i+=fT(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}rT.absoluteValue=rT.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},rT.comparedTo=rT.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},rT.decimalPlaces=rT.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*eT;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},rT.dividedBy=rT.div=function(e){return sT(this,new this.constructor(e))},rT.dividedToIntegerBy=rT.idiv=function(e){var t=this.constructor;return hT(sT(this,new t(e),0,1),t.precision)},rT.equals=rT.eq=function(e){return!this.cmp(e)},rT.exponent=function(){return uT(this)},rT.greaterThan=rT.gt=function(e){return this.cmp(e)>0},rT.greaterThanOrEqualTo=rT.gte=function(e){return this.cmp(e)>=0},rT.isInteger=rT.isint=function(){return this.e>this.d.length-2},rT.isNegative=rT.isneg=function(){return this.s<0},rT.isPositive=rT.ispos=function(){return this.s>0},rT.isZero=function(){return 0===this.s},rT.lessThan=rT.lt=function(e){return this.cmp(e)<0},rT.lessThanOrEqualTo=rT.lte=function(e){return this.cmp(e)<1},rT.logarithm=rT.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(KA))throw Error(qA+"NaN");if(n.s<1)throw Error(qA+(n.s?"NaN":"-Infinity"));return n.eq(KA)?new r(0):(WA=!1,t=sT(dT(n,i),dT(e,i),i),WA=!0,hT(t,o))},rT.minus=rT.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?gT(t,e):oT(t,(e.s=-e.s,e))},rT.modulo=rT.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(qA+"NaN");return n.s?(WA=!1,t=sT(n,e,0,1).times(e),WA=!0,n.minus(t)):hT(new r(n),o)},rT.naturalExponential=rT.exp=function(){return cT(this)},rT.naturalLogarithm=rT.ln=function(){return dT(this)},rT.negated=rT.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},rT.plus=rT.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?oT(t,e):gT(t,(e.s=-e.s,e))},rT.precision=rT.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(ZA+e);if(t=uT(o)+1,n=(r=o.d.length-1)*eT+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},rT.squareRoot=rT.sqrt=function(){var e,t,n,r,o,i,a,s=this,c=s.constructor;if(s.s<1){if(!s.s)return new c(0);throw Error(qA+"NaN")}for(e=uT(s),WA=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=aT(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=YA((e+1)/2)-(e<0||e%2),r=new c(t=o==1/0?"5e"+e:(t=o.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new c(o.toString()),o=a=(n=c.precision)+3;;)if(r=(i=r).plus(sT(s,i,a+2)).times(.5),aT(i.d).slice(0,a)===(t=aT(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(hT(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return WA=!0,hT(r,n)},rT.times=rT.mul=function(e){var t,n,r,o,i,a,s,c,u,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,(c=d.length)<(u=p.length)&&(i=d,d=p,p=i,a=c,c=u,u=a),i=[],r=a=c+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=c+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%QA|0,t=s/QA|0;i[o]=(i[o]+t)%QA|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,WA?hT(e,f.precision):e},rT.toDecimalPlaces=rT.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(iT(e,0,$A),void 0===t?t=r.rounding:iT(t,0,8),hT(n,e+uT(n)+1,t))},rT.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=yT(r,!0):(iT(e,0,$A),void 0===t?t=o.rounding:iT(t,0,8),n=yT(r=hT(new o(r),e+1,t),!0,e+1)),n},rT.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?yT(o):(iT(e,0,$A),void 0===t?t=i.rounding:iT(t,0,8),n=yT((r=hT(new i(o),e+uT(o)+1,t)).abs(),!1,e+uT(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},rT.toInteger=rT.toint=function(){var e=this,t=e.constructor;return hT(new t(e),uT(e)+1,t.rounding)},rT.toNumber=function(){return+this},rT.toPower=rT.pow=function(e){var t,n,r,o,i,a,s=this,c=s.constructor,u=+(e=new c(e));if(!e.s)return new c(KA);if(!(s=new c(s)).s){if(e.s<1)throw Error(qA+"Infinity");return s}if(s.eq(KA))return s;if(r=c.precision,e.eq(KA))return hT(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=tT){for(o=new c(KA),t=Math.ceil(r/eT+4),WA=!1;n%2&&vT((o=o.times(s)).d,t),0!==(n=YA(n/2));)vT((s=s.times(s)).d,t);return WA=!0,e.s<0?new c(KA).div(o):hT(o,r)}}else if(i<0)throw Error(qA+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,WA=!1,o=e.times(dT(s,r+12)),WA=!0,(o=cT(o)).s=i,o},rT.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=yT(o,(n=uT(o))<=i.toExpNeg||n>=i.toExpPos):(iT(e,1,$A),void 0===t?t=i.rounding:iT(t,0,8),r=yT(o=hT(new i(o),e,t),e<=(n=uT(o))||n<=i.toExpNeg,e)),r},rT.toSignificantDigits=rT.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(iT(e,1,$A),void 0===t?t=n.rounding:iT(t,0,8)),hT(new n(this),e,t)},rT.toString=rT.valueOf=rT.val=rT.toJSON=rT[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=uT(e),n=e.constructor;return yT(e,t<=n.toExpNeg||t>=n.toExpPos)};var sT=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%QA|0,r=n/QA|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*QA+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,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(qA+"Division by zero");for(c=r.e-o.e,_=j.length,x=E.length,h=(p=new O(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=O.precision:a?i+(uT(r)-uT(o))+1:i)<0)return new O(0);if(m=m/eT+2|0,u=0,1==_)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*QA+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=QA/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),_=j.length,x=E.length),w=_,y=(g=E.slice(0,_)).length;y<_;)g[y++]=0;(S=j.slice()).unshift(0),C=j[0],j[1]>=QA/2&&++C;do{l=0,(s=t(j,g,_,y))<0?(v=g[0],_!=y&&(v=v*QA+(g[1]||0)),(l=v/C|0)>1?(l>=QA&&(l=QA-1),1==(s=t(f=e(j,l),g,d=f.length,y=g.length))&&(l--,n(f,_<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,_,y=g.length))<1&&(l++,n(g,_<y?S:j,y)),y=g.length):0===s&&(l++,g=[0]),h[u++]=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=c,hT(p,a?i+uT(p)+1:i)}}();function cT(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(uT(e)>16)throw Error(GA+uT(e));if(!e.s)return new u(KA);for(null==t?(WA=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(XA(2,c))/Math.LN10*2+5|0,n=r=o=new u(KA),u.precision=a;;){if(r=hT(r.times(e),a),n=n.times(++s),aT((i=o.plus(sT(r,n,a))).d).slice(0,a)===aT(o.d).slice(0,a)){for(;c--;)o=hT(o.times(o),a);return u.precision=l,null==t?(WA=!0,hT(o,l)):o}o=i}}function uT(e){for(var t=e.e*eT,n=e.d[0];n>=10;n/=10)t++;return t}function lT(e,t,n){if(t>e.LN10.sd())throw WA=!0,n&&(e.precision=n),Error(qA+"LN10 precision limit exceeded");return hT(new e(e.LN10),t)}function fT(e){for(var t="";e--;)t+="0";return t}function dT(e,t){var n,r,o,i,a,s,c,u,l,f=1,d=e,p=d.d,h=d.constructor,g=h.precision;if(d.s<1)throw Error(qA+(d.s?"NaN":"-Infinity"));if(d.eq(KA))return new h(0);if(null==t?(WA=!1,u=g):u=t,d.eq(10))return null==t&&(WA=!0),lT(h,u);if(u+=10,h.precision=u,r=(n=aT(p)).charAt(0),i=uT(d),!(Math.abs(i)<15e14))return c=lT(h,u+2,g).times(i+""),d=dT(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(WA=!0,hT(d,g)):d;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=aT((d=d.times(e)).d)).charAt(0),f++;for(i=uT(d),r>1?(d=new h("0."+n),i++):d=new h(r+"."+n.slice(1)),s=a=d=sT(d.minus(KA),d.plus(KA),u),l=hT(d.times(d),u),o=3;;){if(a=hT(a.times(l),u),aT((c=s.plus(sT(a,new h(o),u))).d).slice(0,u)===aT(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(lT(h,u+2,g).times(i+""))),s=sT(s,new h(f),u),h.precision=g,null==t?(WA=!0,hT(s,g)):s;s=c,o+=2}}function pT(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=YA(n/eT),e.d=[],r=(n+1)%eT,n<0&&(r+=eT),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=eT;r<o;)e.d.push(+t.slice(r,r+=eT));t=t.slice(r),r=eT-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),WA&&(e.e>nT||e.e<-nT))throw Error(GA+n)}else e.s=0,e.e=0,e.d=[0];return e}function hT(e,t,n){var r,o,i,a,s,c,u,l,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if((r=t-a)<0)r+=eT,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/eT))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=eT)-eT+a}if(void 0!==n&&(s=u/(i=XA(10,a-o-1))%10|0,c=t<0||void 0!==f[l+1]||u%i,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?o>0?u/XA(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=uT(e),f.length=1,t=t-i-1,f[0]=XA(10,(eT-t%eT)%eT),e.e=YA(-t/eT)||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=XA(10,eT-r),f[l]=o>0?(u/XA(10,a-o)%XA(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==QA&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=QA)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(WA&&(e.e>nT||e.e<-nT))throw Error(GA+uT(e));return e}function gT(e,t){var n,r,o,i,a,s,c,u,l,f,d=e.constructor,p=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),WA?hT(t,p):t;if(c=e.d,f=t.d,r=t.e,u=e.e,c=c.slice(),a=u-r){for((l=a<0)?(n=c,a=-a,s=f.length):(n=f,r=u,s=c.length),a>(o=Math.max(Math.ceil(p/eT),s)+2)&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for((l=(o=c.length)<(s=f.length))&&(s=o),o=0;o<s;o++)if(c[o]!=f[o]){l=c[o]<f[o];break}a=0}for(l&&(n=c,c=f,f=n,t.s=-t.s),s=c.length,o=f.length-s;o>0;--o)c[s++]=0;for(o=f.length;o>a;){if(c[--o]<f[o]){for(i=o;i&&0===c[--i];)c[i]=QA-1;--c[i],c[o]+=QA}c[o]-=f[o]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,WA?hT(t,p):t):new d(0)}function yT(e,t,n){var r,o=uT(e),i=aT(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+fT(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+fT(-o-1)+i,n&&(r=n-a)>0&&(i+=fT(r))):o>=a?(i+=fT(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+fT(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=fT(r))),e.s<0?"-"+i:i}function vT(e,t){if(e.length>t)return e.length=t,!0}function mT(e){if(!e||"object"!=typeof e)throw Error(qA+"Object expected");var t,n,r,o=["precision",1,$A,"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(!(YA(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(ZA+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(ZA+n+": "+r);this[n]=new this(r)}return this}var bT=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(ZA+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])):pT(t,e.toString())}if("string"!=typeof e)throw Error(ZA+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!JA.test(e))throw Error(ZA+e);pT(t,e)}if(i.prototype=rT,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=mT,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"});KA=new bT(1);var wT=bT;function xT(e){return function(e){if(Array.isArray(e))return CT(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 CT(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 CT(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 CT(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 _T=function(e){return e},ST={"@@functional/placeholder":!0},OT=function(e){return e===ST},kT=function(e){return function t(){return 0===arguments.length||1===arguments.length&&OT(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},ET=function e(t,n){return 1===t?n:kT((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!==ST})).length;return a>=t?n.apply(void 0,o):e(t-a,kT((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 OT(e)?t.shift():e}));return n.apply(void 0,xT(i).concat(t))})))}))},jT=function(e){return ET(e.length,e)},AT=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},TT=jT((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)})),MT=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return _T;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))}},PT=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")},DT=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 LT=jT((function(e,t,n){var r=+e;return r+n*(+t-r)})),RT=jT((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),IT=jT((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),NT={rangeStep:function(e,t,n){for(var r=new wT(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 wT(e).abs().log(10).toNumber())+1},interpolateNumber:LT,uninterpolateNumber:RT,uninterpolateTruncation:IT};function BT(e){return function(e){if(Array.isArray(e))return HT(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||zT(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 FT(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)||zT(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 zT(e,t){if(e){if("string"==typeof e)return HT(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)?HT(e,t):void 0}}function HT(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 VT(e){var t=FT(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function KT(e,t,n){if(e.lte(0))return new wT(0);var r=NT.getDigitCount(e.toNumber()),o=new wT(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new wT(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new wT(Math.ceil(s))}function UT(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 wT(0),tickMin:new wT(0),tickMax:new wT(0)};var i,a=KT(new wT(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new wT(0):(i=new wT(e).add(t).div(2)).sub(new wT(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new wT(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?UT(e,t,n,r,o+1):(u<n&&(c=t>0?c+(n-u):c,s=t>0?s:s+(n-u)),{step:a,tickMin:i.sub(new wT(s).mul(a)),tickMax:i.add(new wT(c).mul(a))})}var $T=DT((function(e){var t=FT(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=FT(VT([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(BT(AT(0,o-1).map((function(){return 1/0})))):[].concat(BT(AT(0,o-1).map((function(){return-1/0}))),[u]);return n>r?PT(l):l}if(c===u)return function(e,t,n){var r=1,o=new wT(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new wT(10).pow(NT.getDigitCount(e)-1),o=new wT(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new wT(Math.floor(e)))}else 0===e?o=new wT(Math.floor((t-1)/2)):n||(o=new wT(Math.floor(e)));var a=Math.floor((t-1)/2),s=MT(TT((function(e){return o.add(new wT(e-a).mul(r)).toNumber()})),AT);return s(0,t)}(c,o,i);var f=UT(c,u,a,i),d=f.step,p=f.tickMin,h=f.tickMax,g=NT.rangeStep(p,h.add(new wT(.1).mul(d)),d);return n>r?PT(g):g})),WT=DT((function(e,t){var n=FT(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=FT(VT([r,o]),2),s=a[0],c=a[1];if(s===-1/0||c===1/0)return[r,o];if(s===c)return[s];var u=Math.max(t,2),l=KT(new wT(c).sub(s).div(u-1),i,0),f=[].concat(BT(NT.rangeStep(new wT(s),new wT(c).sub(new wT(.99).mul(l)),l)),[c]);return r>o?PT(f):f})),qT=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ZT(){return ZT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZT.apply(this,arguments)}function GT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YT(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 YT(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 YT(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 XT(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 JT(e){var n=e.offset,r=e.layout,o=e.width,i=e.dataKey,a=e.data,s=e.dataPointFormatter,c=e.xAxis,u=e.yAxis,l=XT(e,qT),f=ud(l),d=a.map((function(e,a){var l=s(e,i),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=GT(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=p+n,C=x+o,_=x-o,S=w(h-y),O=w(h+v);m.push({x1:O,y1:C,x2:O,y2:_}),m.push({x1:S,y1:x,x2:O,y2:x}),m.push({x1:S,y1:C,x2:S,y2:_})}else if("horizontal"===r){var k=u.scale,E=d+n,j=E-o,A=E+o,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 t.createElement(wd,ZT({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",ZT({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wd,{className:"recharts-errorBars"},d)}function QT(e){return QT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QT(e)}function eM(e){return function(e){if(Array.isArray(e))return tM(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return tM(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 tM(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 tM(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 nM(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 rM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nM(Object(n),!0).forEach((function(t){oM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==QT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iM(e,t,n){return xf(e)||xf(t)?n:If(t)?bf(e,t,n):su(t)?t(e):n}function aM(e,t,n,r){var o=aO(e,(function(e){return iM(e,t)}));if("number"===n){var i=o.filter((function(e){return Rf(e)||parseFloat(e)}));return i.length?[QS(i),qS(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!xf(e)})):o).map((function(e){return If(e)||e instanceof Date?e:""}))}JT.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},JT.displayName="ErrorBar";var sM=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},cM=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=ad(n,km);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:sM(t),value:o||r,payload:t.props}})),rM(rM(rM({},a.props),km.getWithHeight(a,o)),{},{payload:t,item:a})):null},uM=function(e,t,n,r,o){var i=id(t.props.children,JT).filter((function(e){return function(e,t,n){return!!xf(t)||("horizontal"===e?"yAxis"===t:"vertical"===e||"x"===n?"xAxis"===t:"y"!==n||"yAxis"===t)}(r,o,e.props.direction)}));if(i&&i.length){var a=i.map((function(e){return e.props.dataKey}));return e.reduce((function(e,t){var r=iM(t,n,0),o=uu(r)?[QS(r),qS(r)]:[r,r],i=a.reduce((function(e,n){var r=iM(t,n,0),i=o[0]-Math.abs(uu(r)?r[0]:r),a=o[1]+Math.abs(uu(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},lM=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&uM(e,t,i,r)||aM(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}),[])},fM=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},dM=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},pM=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,c=(t||n)&&"category"===i&&r.bandwidth?r.bandwidth()/s:0;return c="angleAxis"===e.axisType&&(null==a?void 0:a.length)>=2?2*Df(a[0]-a[1])*c:c,t&&(e.ticks||e.niceTicks)?(e.ticks||e.niceTicks).map((function(e){var t=o?o.indexOf(e):e;return{coordinate:r(t)+c,value:e,offset:c}})).filter((function(e){return!Pf(e.coordinate)})):e.isCategorical&&e.categoricalDomain?e.categoricalDomain.map((function(e,t){return{coordinate:r(e)+c,value:e,index:t,offset:c}})):r.ticks&&!n?r.ticks(e.tickCount).map((function(e){return{coordinate:r(e)+c,value:e,offset:c}})):r.domain().map((function(e,t){return{coordinate:r(e)+c,value:o?o[e]:e,index:t,offset:c}}))},hM=function(e,t,n){var r;return su(n)?r=n:su(t)&&(r=t),su(e)||r?function(t,n,o,i){su(e)&&e(t,n,o,i),su(r)&&r(t,n,o,i)}:null},gM=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:LO(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:oE(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:IO(),realScaleType:"point"}:"category"===o?{scale:LO(),realScaleType:"band"}:{scale:oE(),realScaleType:"linear"};if(hu(r)){var s="scale".concat(zy(r));return{scale:(UA[s]||IO)(),realScaleType:UA[s]?s:"point"}}return su(r)?{scale:r}:{scale:IO(),realScaleType:"point"}},yM=1e-4,vM=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])-yM,i=Math.max(r[0],r[1])+yM,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},mM={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=Pf(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}zv(e,t)}},none:zv,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}zv(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,c=0,u=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)}c+=f,u+=d*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,zv(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=Pf(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)}}},bM=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=Hy([]),t=Hv,n=zv,r=Vv;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Kv),c=s.length,u=-1;for(const e of o)for(i=0,++u;i<c;++i)(s[i][u]=[0,+r(e,s[i].key,u,o)]).data=e;for(i=0,a=ev(t(s));i<c;++i)s[a[i]].index=i;return n(s,a),s}return o.keys=function(t){return arguments.length?(e="function"==typeof t?t:Hy(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:Hy(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Hv:"function"==typeof e?e:Hy(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?zv:e,o):n},o}().keys(r).value((function(e,t){return+iM(e,t,0)})).order(Hv).offset(mM[n]);return o(e)},wM=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 c=e.domain();if(!c.length)return null;var u=$T(c,o,a);return e.domain([QS(u),qS(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:WT(l,o,a)}}return null},xM=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&&!xf(o[t.dataKey])){var s=Vf(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=iM(o,xf(a)?t.dataKey:a);return xf(c)?null:t.scale(c)},CM=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=iM(i,t.dataKey,t.domain[a]);return xf(s)?null:t.scale(s)-o/2+r},_M=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[QS(t.concat([e[0]]).filter(Rf)),qS(t.concat([e[1]]).filter(Rf))]}),[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}))},SM=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,OM=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,kM=function(e,t,n){if(su(e))return e(t,n);if(!uu(e))return t;var r=[];if(Rf(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(SM.test(e[0])){var o=+SM.exec(e[0])[1];r[0]=t[0]-o}else su(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Rf(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(OM.test(e[1])){var i=+OM.exec(e[1])[1];r[1]=t[1]+i}else su(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},EM=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=kC(t,(function(e){return e.coordinate})),i=1/0,a=1,s=o.length;a<s;a++){var c=o[a],u=o[a-1];i=Math.min((c.coordinate||0)-(u.coordinate||0),i)}return i===1/0?0:i}return n?void 0:0},jM=function(e,t,n){return e&&e.length?FS(e,bf(n,"type.defaultProps.domain"))?t:e:t},AM=function(e,t){var n=e.props,r=n.dataKey,o=n.name,i=n.unit,a=n.formatter,s=n.tooltipType,c=n.chartType;return rM(rM({},ud(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:sM(e),value:iM(t,r),type:s,payload:t,chartType:c})};function TM(e){return TM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},TM(e)}function MM(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 PM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MM(Object(n),!0).forEach((function(t){DM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==TM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return RM(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 RM(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 RM(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 IM=Math.PI/180,NM=function(e){return 180*e/Math.PI},BM=function(e,t,n,r){return{x:e+Math.cos(-IM*r)*n,y:t+Math.sin(-IM*r)*n}},FM=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},zM=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,c=Math.acos(s);return r>i&&(c=2*Math.PI-c),{radius:a,angle:NM(c),angleInRadian:c}},HM=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)},VM=function(e,t){var n=e.x,r=e.y,o=zM({x:n,y:r},t),i=o.radius,a=o.angle,s=t.innerRadius,c=t.outerRadius;if(i<s||i>c)return!1;if(0===i)return!0;var u,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;u=p>=f&&p<=d}else{for(;p>f;)p-=360;for(;p<d;)p+=360;u=p>=d&&p<=f}return u?PM(PM({},t),{},{radius:i,angle:HM(p,t)}):null};function KM(e){return KM="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},KM(e)}function UM(e){return function(e){if(Array.isArray(e))return $M(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return $M(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 $M(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 $M(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 WM(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 qM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?WM(Object(n),!0).forEach((function(t){ZM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==KM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KM(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GM(){return GM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GM.apply(this,arguments)}var YM=function(e){var t=e.value,n=e.formatter,r=xf(e.children)?t:e.children;return su(n)?n(r):r},XM=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,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 Df(t-e)*Math.min(Math.abs(t-e),360)}(g,y),w=b>=0?1:-1;"insideStart"===a?(o=g+w*c,i=v):"insideEnd"===a?(o=y-w*c,i=!v):"end"===a&&(o=y+w*c,i=v),i=b<=0?i:!i;var x=BM(f,d,m,o),C=BM(f,d,m,o+359*(i?1:-1)),_="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(C.x,",").concat(C.y),S=xf(e.id)?Bf("recharts-radial-line-"):e.id;return t.createElement("text",GM({},r,{dominantBaseline:"central",className:Fc("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:S,d:_})),t.createElement("textPath",{xlinkHref:"#".concat(S)},n))},JM=function(e){var t=e.viewBox,n=e.offset,r=e.position,o=t,i=o.cx,a=o.cy,s=o.innerRadius,c=o.outerRadius,u=(o.startAngle+o.endAngle)/2;if("outside"===r){var l=BM(i,a,c+n,u),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=BM(i,a,(s+c)/2,u);return{x:d.x,y:d.y,textAnchor:"middle",verticalAnchor:"middle"}},QM=function(e){var t=e.viewBox,n=e.parentViewBox,r=e.offset,o=e.position,i=t,a=i.x,s=i.y,c=i.width,u=i.height,l=u>=0?1:-1,f=l*r,d=l>0?"end":"start",p=l>0?"start":"end",h=c>=0?1:-1,g=h*r,y=h>0?"end":"start",v=h>0?"start":"end";if("top"===o)return qM(qM({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:d}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return qM(qM({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(n.y+n.height-(s+u),0),width:c}:{});if("left"===o){var m={x:a-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"};return qM(qM({},m),n?{width:Math.max(m.x-n.x,0),height:u}:{})}if("right"===o){var b={x:a+c+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"};return qM(qM({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?qM({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?qM({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?qM({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:p},w):"insideBottom"===o?qM({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:d},w):"insideTopLeft"===o?qM({x:a+g,y:s+f,textAnchor:v,verticalAnchor:p},w):"insideTopRight"===o?qM({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:p},w):"insideBottomLeft"===o?qM({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:d},w):"insideBottomRight"===o?qM({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:d},w):Hc(o)&&(Rf(o.x)||Lf(o.x))&&(Rf(o.y)||Lf(o.y))?qM({x:a+Ff(o.x,c),y:s+Ff(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):qM({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},eP=function(e){return"cx"in e&&Rf(e.cx)};function tP(e){var n,r=e.viewBox,o=e.position,i=e.value,a=e.children,s=e.content,c=e.className,u=void 0===c?"":c,l=e.textBreakAll;if(!r||xf(i)&&xf(a)&&!t.isValidElement(s)&&!su(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(su(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=YM(e);var f=eP(r),d=ud(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return XM(e,n,d);var p=f?JM(e):QM(e);return t.createElement(NS,GM({className:Fc("recharts-label",u)},d,p,{breakAll:l}),n)}tP.displayName="Label",tP.defaultProps={offset:5};var nP=function(e){var t=e.cx,n=e.cy,r=e.angle,o=e.startAngle,i=e.endAngle,a=e.r,s=e.radius,c=e.innerRadius,u=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(Rf(h)&&Rf(g)){if(Rf(l)&&Rf(f))return{x:l,y:f,width:h,height:g};if(Rf(d)&&Rf(p))return{x:d,y:p,width:h,height:g}}return Rf(l)&&Rf(f)?{x:l,y:f,width:0,height:0}:Rf(t)&&Rf(n)?{cx:t,cy:n,startAngle:o||r||0,endAngle:i||r||0,innerRadius:c||0,outerRadius:u||s||a||0,clockWise:y}:e.viewBox?e.viewBox:{}};tP.parseViewBox=nP,tP.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=nP(e),a=id(o,tP).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));if(!r)return a;var s=function(e,n){return e?!0===e?t.createElement(tP,{key:"label-implicit",viewBox:n}):If(e)?t.createElement(tP,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===tP?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(tP,{key:"label-implicit",content:e,viewBox:n}):su(e)?t.createElement(tP,{key:"label-implicit",content:e,viewBox:n}):Hc(e)?t.createElement(tP,GM({viewBox:n},e,{key:"label-implicit"})):null:null}(e.label,n||i);return[s].concat(UM(a))};var rP=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},oP=ct(rP);function iP(e){return iP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iP(e)}var aP=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function sP(e){return function(e){if(Array.isArray(e))return cP(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return cP(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 cP(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 cP(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 uP(){return uP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uP.apply(this,arguments)}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function fP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lP(Object(n),!0).forEach((function(t){dP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==iP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pP(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 hP={valueAccessor:function(e){return uu(e.value)?oP(e.value):e.value}};function gP(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=pP(e,aP);return n&&n.length?t.createElement(wd,{className:"recharts-label-list"},n.map((function(e,n){var u=xf(o)?r(e,n):iM(e&&e.payload,o),l=xf(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(tP,uP({},ud(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:tP.parseViewBox(xf(i)?e:fP(fP({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function yP(e){return yP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yP(e)}function vP(){return vP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vP.apply(this,arguments)}function mP(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,CP(r.key),r)}}function bP(e,t){return bP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},bP(e,t)}function wP(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=xP(e);if(t){var o=xP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===yP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function xP(e){return xP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xP(e)}function CP(e){var t=function(e,t){if("object"!==yP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==yP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===yP(t)?t:String(t)}gP.displayName="LabelList",gP.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=id(e.children,gP).map((function(e,r){return t.cloneElement(e,{data:n,key:"labelList-".concat(r)})}));return r?[function(e,n){return e?!0===e?t.createElement(gP,{key:"labelList-implicit",data:n}):t.isValidElement(e)||su(e)?t.createElement(gP,{key:"labelList-implicit",data:n,content:e}):Hc(e)?t.createElement(gP,uP({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(sP(o)):o},gP.defaultProps=hP;var _P=function(e){var t=e.cx,n=e.cy,r=e.radius,o=e.angle,i=e.sign,a=e.isExternal,s=e.cornerRadius,c=e.cornerIsExternal,u=s*(a?1:-1)+r,l=Math.asin(s/u)/IM,f=c?o:o+i*l,d=c?o-i*l:o;return{center:BM(t,n,u,f),circleTangency:BM(t,n,r,f),lineTangency:BM(t,n,u*Math.cos(l*IM),d),theta:l}},SP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=BM(t,n,o,i),u=BM(t,n,o,s),l="M ".concat(c.x,",").concat(c.y,"\n A ").concat(o,",").concat(o,",0,\n ").concat(+(Math.abs(a)>180),",").concat(+(i>s),",\n ").concat(u.x,",").concat(u.y,"\n ");if(r>0){var f=BM(t,n,r,i),d=BM(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},OP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bP(e,t)}(a,t.PureComponent);var n,r,o,i=wP(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.cornerRadius,s=e.forceCornerRadius,c=e.cornerIsExternal,u=e.startAngle,l=e.endAngle,f=e.className;if(i<o||u===l)return null;var d,p=Fc("recharts-sector",f),h=i-o,g=Ff(a,h,0,!0);return d=g>0&&Math.abs(u-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,c=e.startAngle,u=e.endAngle,l=Df(u-c),f=_P({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),d=f.circleTangency,p=f.lineTangency,h=f.theta,g=_P({cx:t,cy:n,radius:o,angle:u,sign:-l,cornerRadius:i,cornerIsExternal:s}),y=g.circleTangency,v=g.lineTangency,m=g.theta,b=s?Math.abs(c-u):Math.abs(c-u)-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 "):SP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});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=_P({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),C=x.circleTangency,_=x.lineTangency,S=x.theta,O=_P({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=O.circleTangency,E=O.lineTangency,j=O.theta,A=s?Math.abs(c-u):Math.abs(c-u)-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(C.x,",").concat(C.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):SP({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",vP({},ud(this.props,!0),{className:p,d:d,role:"img"}))}}],r&&mP(n.prototype,r),o&&mP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function kP(e){return kP="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kP(e)}function EP(){return EP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EP.apply(this,arguments)}function jP(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 AP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jP(Object(n),!0).forEach((function(t){TP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TP(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==kP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==kP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===kP(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e,t,n){(t=CP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(OP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var MP={curveBasisClosed:function(e){return new Ev(e)},curveBasisOpen:function(e){return new jv(e)},curveBasis:function(e){return new kv(e)},curveLinearClosed:function(e){return new Av(e)},curveLinear:nv,curveMonotoneX:function(e){return new Lv(e)},curveMonotoneY:function(e){return new Rv(e)},curveNatural:function(e){return new Nv(e)},curveStep:function(e){return new Fv(e,.5)},curveStepAfter:function(e){return new Fv(e,1)},curveStepBefore:function(e){return new Fv(e,0)}},PP=function(e){return e.x===+e.x&&e.y===+e.y},DP=function(e){return e.x},LP=function(e){return e.y},RP=function(e){var t,n=e.type,r=e.points,o=e.baseLine,i=e.layout,a=e.connectNulls,s=function(e,t){if(su(e))return e;var n="curve".concat(zy(e));return"curveMonotone"===n&&t?MP["".concat(n).concat("vertical"===t?"Y":"X")]:MP[n]||nv}(n,i),c=a?r.filter((function(e){return PP(e)})):r;if(uu(o)){var u=a?o.filter((function(e){return PP(e)})):o,l=c.map((function(e,t){return AP(AP({},e),{},{base:u[t]})}));return(t="vertical"===i?av().y(LP).x1(DP).x0((function(e){return e.base.x})):av().x(DP).y1(LP).y0((function(e){return e.base.y}))).defined(PP).curve(s),t(l)}return(t="vertical"===i&&Rf(o)?av().y(LP).x1(DP).x0(o):Rf(o)?av().x(DP).y1(LP).y0(o):iv().x(DP).y(LP)).defined(PP).curve(s),t(c)},IP=function(e){var n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?RP(e):o;return t.createElement("path",EP({},ud(e),Gf(e),{className:Fc("recharts-curve",n),d:a,ref:i}))};function NP(e){return NP="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},NP(e)}function BP(){return BP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BP.apply(this,arguments)}function FP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$P(r.key),r)}}function zP(e,t){return zP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zP(e,t)}function HP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=KP(e);if(t){var o=KP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return VP(e)}(this,n)}}function VP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KP(e){return KP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},KP(e)}function UP(e,t,n){return(t=$P(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $P(e){var t=function(e,t){if("object"!==NP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NP(t)?t:String(t)}IP.defaultProps={type:"linear",points:[],connectNulls:!1};var WP=function(e,t,n,r,o){var i,a=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,c=n>=0?1:-1,u=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(u,",").concat(e+c*l[0],",").concat(t)),i+="L ".concat(e+n-c*l[1],",").concat(t),l[1]>0&&(i+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(u,",\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(u,",\n ").concat(e+n-c*l[2],",").concat(t+r)),i+="L ".concat(e+c*l[3],",").concat(t+r),l[3]>0&&(i+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(u,",\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(u,",").concat(e+c*d,",").concat(t,"\n L ").concat(e+n-c*d,",").concat(t,"\n A ").concat(d,",").concat(d,",0,0,").concat(u,",").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(u,",").concat(e+n-c*d,",").concat(t+r,"\n L ").concat(e+c*d,",").concat(t+r,"\n A ").concat(d,",").concat(d,",0,0,").concat(u,",").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},qP=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 c=Math.min(o,o+a),u=Math.max(o,o+a),l=Math.min(i,i+s),f=Math.max(i,i+s);return n>=c&&n<=u&&r>=l&&r<=f}return!1},ZP=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zP(e,t)}(a,t.PureComponent);var n,r,o,i=HP(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return UP(VP(e=i.call.apply(i,[this].concat(n))),"state",{totalLength:-1}),e}return n=a,r=[{key:"componentDidMount",value:function(){if(this.node&&this.node.getTotalLength)try{var e=this.node.getTotalLength();e&&this.setState({totalLength:e})}catch(e){}}},{key:"render",value:function(){var e=this,n=this.props,r=n.x,o=n.y,i=n.width,a=n.height,s=n.radius,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,d=l.animationDuration,p=l.animationBegin,h=l.isAnimationActive,g=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||0===i||0===a)return null;var y=Fc("recharts-rectangle",c);return g?t.createElement(yw,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:d,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(yw,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:d,isActive:h,easing:f},t.createElement("path",BP({},ud(e.props,!0),{className:y,d:WP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",BP({},ud(this.props,!0),{className:y,d:WP(r,o,i,a,s)}))}}],r&&FP(n.prototype,r),o&&FP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function GP(e){return GP="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},GP(e)}UP(ZP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var YP=["points","className","baseLinePoints","connectNulls"];function XP(){return XP=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XP.apply(this,arguments)}function JP(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 QP(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==GP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===GP(i)?i:String(i)),r)}var o,i}function eD(e,t){return eD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eD(e,t)}function tD(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=nD(e);if(t){var o=nD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===GP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function nD(e){return nD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nD(e)}function rD(e){return function(e){if(Array.isArray(e))return oD(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return oD(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 oD(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 oD(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 iD=function(e){return e&&e.x===+e.x&&e.y===+e.y},aD=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){iD(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),iD(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(rD(e),rD(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},sD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eD(e,t)}(a,t.PureComponent);var n,r,o,i=tD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,(r=[{key:"render",value:function(){var e=this.props,n=e.points,r=e.className,o=e.baseLinePoints,i=e.connectNulls,a=JP(e,YP);if(!n||!n.length)return null;var s=Fc("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=aD(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(aD(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",XP({},ud(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",XP({},ud(a,!0),{fill:"none",d:aD(n,i)})):null,c?t.createElement("path",XP({},ud(a,!0),{fill:"none",d:aD(o,i)})):null)}var l=aD(n,i);return t.createElement("path",XP({},ud(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&QP(n.prototype,r),o&&QP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function cD(e){return cD="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cD(e)}function uD(){return uD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uD.apply(this,arguments)}function lD(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==cD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===cD(i)?i:String(i)),r)}var o,i}function fD(e,t){return fD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fD(e,t)}function dD(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=pD(e);if(t){var o=pD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===cD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function pD(e){return pD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},pD(e)}var hD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fD(e,t)}(a,t.PureComponent);var n,r,o,i=dD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.r,i=e.className,a=Fc("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",uD({},ud(this.props),Gf(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&lD(n.prototype,r),o&&lD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(this,arguments)}var yD=function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)},vD=function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.top,s=e.left,c=e.className;return Rf(n)&&Rf(r)&&Rf(o)&&Rf(i)&&Rf(a)&&Rf(s)?t.createElement("path",gD({},ud(e,!0),{className:Fc("recharts-cross",c),d:yD(n,r,o,i,a,s)})):null};vD.defaultProps={x:0,y:0,top:0,left:0,width:0,height:0};var mD=HS,bD=Vg,wD=ZS;var xD=function(e,t){return e&&e.length?mD(e,bD(t),wD):void 0},CD=ct(xD),_D=HS,SD=VS,OD=Vg;var kD=function(e,t){return e&&e.length?_D(e,OD(t),SD):void 0},ED=ct(kD),jD=["cx","cy","angle","ticks","axisLine"],AD=["ticks","tick","angle","tickFormatter","stroke"];function TD(e){return TD="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},TD(e)}function MD(){return MD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MD.apply(this,arguments)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function DD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LD(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 RD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zD(r.key),r)}}function ID(e,t){return ID=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ID(e,t)}function ND(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=BD(e);if(t){var o=BD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===TD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function BD(e){return BD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},BD(e)}function FD(e,t,n){return(t=zD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zD(e){var t=function(e,t){if("object"!==TD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==TD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===TD(t)?t:String(t)}var HD=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ID(e,t)}(a,t.PureComponent);var n,r,o,i=ND(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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 BM(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=ED(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:CD(o,(function(e){return e.coordinate||0})).coordinate||0,outerRadius:i.coordinate||0}}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.angle,i=e.ticks,a=e.axisLine,s=LD(e,jD),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=BM(n,r,c[0],o),l=BM(n,r,c[1],o),f=DD(DD(DD({},ud(s)),{},{fill:"none"},ud(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",MD({className:"recharts-polar-radius-axis-line"},f))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.angle,s=n.tickFormatter,c=n.stroke,u=LD(n,AD),l=this.getTickTextAnchor(),f=ud(u),d=ud(o),p=r.map((function(n,r){var u=e.getTickValueCoord(n),p=DD(DD(DD(DD({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},d),{},{index:r},u),{},{payload:n});return t.createElement(wd,MD({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},Yf(e.props,n,r)),a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-radius-axis-ticks"},p)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wd,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),tP.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,MD({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function VD(e){return VD="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},VD(e)}function KD(){return KD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KD.apply(this,arguments)}function UD(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 $D(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?UD(Object(n),!0).forEach((function(t){YD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function WD(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,XD(r.key),r)}}function qD(e,t){return qD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qD(e,t)}function ZD(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=GD(e);if(t){var o=GD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function GD(e){return GD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GD(e)}function YD(e,t,n){return(t=XD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XD(e){var t=function(e,t){if("object"!==VD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VD(t)?t:String(t)}FD(HD,"displayName","PolarRadiusAxis"),FD(HD,"axisType","radiusAxis"),FD(HD,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});var JD=Math.PI/180,QD=1e-5,eL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qD(e,t)}(a,t.PureComponent);var n,r,o,i=ZD(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(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=BM(n,r,o,e.coordinate),c=BM(n,r,o+("inner"===i?-1:1)*a,e.coordinate);return{x1:s.x,y1:s.y,x2:c.x,y2:c.y}}},{key:"getTickTextAnchor",value:function(e){var t=this.props.orientation,n=Math.cos(-e.coordinate*JD);return n>QD?"outer"===t?"start":"end":n<-QD?"outer"===t?"end":"start":"middle"}},{key:"renderAxisLine",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.radius,i=e.axisLine,a=e.axisLineType,s=$D($D({},ud(this.props)),{},{fill:"none"},ud(i));if("circle"===a)return t.createElement(hD,KD({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return BM(n,r,o,e.coordinate)}));return t.createElement(sD,KD({className:"recharts-polar-angle-axis-line"},s,{points:c}))}},{key:"renderTicks",value:function(){var e=this,n=this.props,r=n.ticks,o=n.tick,i=n.tickLine,s=n.tickFormatter,c=n.stroke,u=ud(this.props),l=ud(o),f=$D($D({},u),{},{fill:"none"},ud(i)),d=r.map((function(n,r){var d=e.getTickLineCoord(n),p=$D($D($D({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:d.x2,y:d.y2});return t.createElement(wd,KD({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},Yf(e.props,n,r)),i&&t.createElement("line",KD({className:"recharts-polar-angle-axis-tick-line"},f,d)),o&&a.renderTickItem(o,p,s?s(n.value,r):n.value))}));return t.createElement(wd,{className:"recharts-polar-angle-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.radius,o=e.axisLine;return r<=0||!n||!n.length?null:t.createElement(wd,{className:"recharts-polar-angle-axis"},o&&this.renderAxisLine(),this.renderTicks())}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,KD({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&WD(n.prototype,r),o&&WD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();YD(eL,"displayName","PolarAngleAxis"),YD(eL,"axisType","angleAxis"),YD(eL,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var tL=Zp(Object.getPrototypeOf,Object),nL=ru,rL=tL,oL=lu,iL=Function.prototype,aL=Object.prototype,sL=iL.toString,cL=aL.hasOwnProperty,uL=sL.call(Object);var lL=ct((function(e){if(!oL(e)||"[object Object]"!=nL(e))return!1;var t=rL(e);if(null===t)return!0;var n=cL.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&sL.call(n)==uL}));function fL(e){return fL="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},fL(e)}function dL(){return dL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dL.apply(this,arguments)}function pL(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 hL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pL(Object(n),!0).forEach((function(t){wL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gL(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,xL(r.key),r)}}function yL(e,t){return yL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yL(e,t)}function vL(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=bL(e);if(t){var o=bL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return mL(e)}(this,n)}}function mL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bL(e){return bL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bL(e)}function wL(e,t,n){return(t=xL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xL(e){var t=function(e,t){if("object"!==fL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fL(t)?t:String(t)}var CL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yL(e,t)}(a,t.PureComponent);var n,r,o,i=vL(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),wL(mL(t=i.call(this,e)),"pieRef",null),wL(mL(t),"sectorRefs",[]),wL(mL(t),"id",Bf("recharts-pie-")),wL(mL(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),su(e)&&e()})),wL(mL(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),su(e)&&e()})),t.state={isAnimationFinished:!e.isAnimationActive,prevIsAnimationActive:e.isAnimationActive,prevAnimationId:e.animationId,sectorToFocus:0},t}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"hasActiveIndex",value:function(){var e=this.props.activeIndex;return Array.isArray(e)?0!==e.length:e||0===e}},{key:"renderLabels",value:function(e){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var n=this.props,r=n.label,o=n.labelLine,i=n.dataKey,s=n.valueKey,c=ud(this.props),u=ud(r),l=ud(o),f=r&&r.offsetRadius||20,d=e.map((function(e,n){var d=(e.startAngle+e.endAngle)/2,p=BM(e.cx,e.cy,e.outerRadius+f,d),h=hL(hL(hL(hL({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(p.x,e.cx)},p),g=hL(hL(hL(hL({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[BM(e.cx,e.cy,e.outerRadius,d),p],key:"line"}),y=i;return xf(i)&&xf(s)?y="value":xf(i)&&(y=s),t.createElement(wd,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,iM(e,y)))}));return t.createElement(wd,{className:"recharts-pie-labels"},d)}},{key:"renderSectorsStatically",value:function(e){var n=this,r=this.props,o=r.activeShape,i=r.blendStroke,s=r.inactiveShape;return e.map((function(e,r){var c=s&&n.hasActiveIndex()?s:null,u=n.isActiveIndex(r)?o:c,l=hL(hL({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wd,dL({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},Yf(n.props,e,r),{key:"sector-".concat(r)}),a.renderSectorItem(u,l))}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.sectors,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state,l=u.prevSectors,f=u.prevIsAnimationActive;return t.createElement(yw,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c,"-").concat(f),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=[],a=(r&&r[0]).startAngle;return r.forEach((function(e,t){var n=l&&l[t],r=t>0?bf(e,"paddingAngle",0):0;if(n){var s=Hf(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=hL(hL({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,d=Hf(0,u-f)(o),p=hL(hL({},e),{},{startAngle:a+r,endAngle:a+d+r});i.push(p),a=p.endAngle}})),t.createElement(wd,null,e.renderSectorsStatically(i))}))}},{key:"attachKeyboardHandlers",value:function(e){var t=this;e.onkeydown=function(e){if(!e.altKey)switch(e.key){case"ArrowLeft":var n=++t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[n].focus(),t.setState({sectorToFocus:n});break;case"ArrowRight":var r=--t.state.sectorToFocus<0?t.sectorRefs.length-1:t.state.sectorToFocus%t.sectorRefs.length;t.sectorRefs[r].focus(),t.setState({sectorToFocus:r});break;case"Escape":t.sectorRefs[t.state.sectorToFocus].blur(),t.setState({sectorToFocus:0})}}}},{key:"renderSectors",value:function(){var e=this.props,t=e.sectors,n=e.isAnimationActive,r=this.state.prevSectors;return!(n&&t&&t.length)||r&&FS(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var e=this,n=this.props,r=n.hide,o=n.sectors,i=n.className,a=n.label,s=n.cx,c=n.cy,u=n.innerRadius,l=n.outerRadius,f=n.isAnimationActive,d=this.state.isAnimationFinished;if(r||!o||!o.length||!Rf(s)||!Rf(c)||!Rf(u)||!Rf(l))return null;var p=Fc("recharts-pie",i);return t.createElement(wd,{tabIndex:0,className:p,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),tP.renderCallByParent(this.props,null,!1),(!f||d)&&gP.renderCallByParent(this.props,o,!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,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(IP,dL({},n,{type:"linear",className:"recharts-pie-label-line"}))}},{key:"renderLabelItem",value:function(e,n,r){if(t.isValidElement(e))return t.cloneElement(e,n);var o=r;return su(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(NS,dL({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):lL(e)?t.createElement(OP,dL({tabIndex:-1},n,e)):t.createElement(OP,dL({tabIndex:-1},n))}}],r&&gL(n.prototype,r),o&&gL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();wL(CL,"displayName","Pie"),wL(CL,"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:!zC.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),wL(CL,"parseDeltaAngle",(function(e,t){return Df(t-e)*Math.min(Math.abs(t-e),360)})),wL(CL,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=ud(e.props),i=id(r,D_);return n&&n.length?n.map((function(e,t){return hL(hL(hL({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return hL(hL({},o),e.props)})):[]})),wL(CL,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=FM(o,i);return{cx:r+Ff(e.props.cx,o,o/2),cy:n+Ff(e.props.cy,i,i/2),innerRadius:Ff(e.props.innerRadius,a,0),outerRadius:Ff(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),wL(CL,"getComposedData",(function(e){var t=e.item,n=e.offset,r=CL.getRealPieData(t);if(!r||!r.length)return null;var o=t.props,i=o.cornerRadius,a=o.startAngle,s=o.endAngle,c=o.paddingAngle,u=o.dataKey,l=o.nameKey,f=o.valueKey,d=o.tooltipType,p=Math.abs(t.props.minAngle),h=CL.parseCoordinateOfPie(t,n),g=CL.parseDeltaAngle(a,s),y=Math.abs(g),v=u;xf(u)&&xf(f)?(j_(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):xf(u)&&(j_(!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!==iM(e,v,0)})).length,x=y-w*p-(y>=360?w:w-1)*c,C=r.reduce((function(e,t){var n=iM(t,v,0);return e+(Rf(n)?n:0)}),0);C>0&&(m=r.map((function(e,t){var n,r=iM(e,v,0),o=iM(e,l,t),s=(Rf(r)?r:0)/C,u=(n=t?b.endAngle+Df(g)*c*(0!==r?1:0):a)+Df(g)*((0!==r?p:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:d}],w=BM(h.cx,h.cy,y,f);return b=hL(hL(hL({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:iM(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Df(g)*c})})));return hL(hL({},h),{},{sectors:m,data:r})}));var _L=Math.ceil,SL=Math.max;var OL=function(e,t,n,r){for(var o=-1,i=SL(_L((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},kL=l_,EL=1/0;var jL=function(e){return e?(e=kL(e))===EL||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0},AL=OL,TL=CC,ML=jL;var PL=ct(function(e){return function(t,n,r){return r&&"number"!=typeof r&&TL(t,n,r)&&(n=r=void 0),t=ML(t),void 0===n?(n=t,t=0):n=ML(n),r=void 0===r?t<n?1:-1:ML(r),AL(t,n,r,e)}}());function DL(e){return DL="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},DL(e)}function LL(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 RL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LL(Object(n),!0).forEach((function(t){IL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function IL(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==DL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DL(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NL=["Webkit","Moz","O","ms"];function BL(e){return BL="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},BL(e)}function FL(){return FL=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FL.apply(this,arguments)}function zL(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 HL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zL(Object(n),!0).forEach((function(t){qL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VL(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,ZL(r.key),r)}}function KL(e,t){return KL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KL(e,t)}function UL(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=WL(e);if(t){var o=WL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $L(e)}(this,n)}}function $L(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WL(e){return WL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WL(e)}function qL(e,t,n){return(t=ZL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZL(e){var t=function(e,t){if("object"!==BL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BL(t)?t:String(t)}var GL=function(e){return e.changedTouches&&!!e.changedTouches.length},YL=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KL(e,t)}(a,t.PureComponent);var n,r,o,i=UL(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),qL($L(t=i.call(this,e)),"handleDrag",(function(e){t.leaveTimer&&(clearTimeout(t.leaveTimer),t.leaveTimer=null),t.state.isTravellerMoving?t.handleTravellerMove(e):t.state.isSlideMoving&&t.handleSlideDrag(e)})),qL($L(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),qL($L(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),qL($L(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),qL($L(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),qL($L(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),qL($L(t),"handleSlideDragStart",(function(e){var n=GL(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind($L(t),"startX"),endX:t.handleTravellerDragStart.bind($L(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,c=Math.min(t,n),u=Math.max(t,n),l=a.getIndexInRange(r,c),f=a.getIndexInRange(r,u);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=iM(n[e],o,e);return su(r)?r(i,e):i}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(e){var t=this.state,n=t.slideMoveStartX,r=t.startX,o=t.endX,i=this.props,a=i.x,s=i.width,c=i.travellerWidth,u=i.startIndex,l=i.endIndex,f=i.onChange,d=e.pageX-n;d>0?d=Math.min(d,a+s-c-o,a+s-c-r):d<0&&(d=Math.max(d,a-r,a-o));var p=this.getIndex({startX:r+d,endX:o+d});p.startIndex===u&&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=GL(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],c=this.props,u=c.x,l=c.width,f=c.travellerWidth,d=c.onChange,p=c.gap,h=c.data,g={startX:this.state.startX,endX:this.state.endX},y=e.pageX-r;y>0?y=Math.min(y,u+l-f-s):y<0&&(y=Math.max(y,u-s)),g[o]=s+y;var v=this.getIndex(g),m=v.startIndex,b=v.endIndex;this.setState((qL(t={},o,s+y),qL(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,n=e.x,r=e.y,o=e.width,i=e.height,a=e.fill,s=e.stroke;return t.createElement("rect",{stroke:s,fill:a,x:n,y:r,width:o,height:i})}},{key:"renderPanorama",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.data,s=e.children,c=e.padding,u=t.Children.only(s);return u?t.cloneElement(u,{x:n,y:r,width:o,height:i,margin:c,compact:!0,data:a}):null}},{key:"renderTravellerLayer",value:function(e,n){var r=this.props,o=r.y,i=r.travellerWidth,s=r.height,c=r.traveller,u=Math.max(e,this.props.x),l=HL(HL({},ud(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(wd,{className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[n],onTouchStart:this.travellerDragStartHandlers[n],style:{cursor:"col-resize"}},a.renderTraveller(c,l))}},{key:"renderSlide",value:function(e,n){var r=this.props,o=r.y,i=r.height,a=r.stroke,s=r.travellerWidth,c=Math.min(e,n)+s,u=Math.max(Math.abs(n-e)-s,0);return t.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:a,fillOpacity:.2,x:c,y:o,width:u,height:i})}},{key:"renderText",value:function(){var e=this.props,n=e.startIndex,r=e.endIndex,o=e.y,i=e.height,a=e.travellerWidth,s=e.stroke,c=this.state,u=c.startX,l=c.endX,f={pointerEvents:"none",fill:s};return t.createElement(wd,{className:"recharts-brush-texts"},t.createElement(NS,FL({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(NS,FL({textAnchor:"start",verticalAnchor:"middle",x:Math.max(u,l)+a+5,y:o+i/2},f),this.getTextOfTick(r)))}},{key:"render",value:function(){var e=this.props,n=e.data,r=e.className,o=e.children,i=e.x,a=e.y,s=e.width,c=e.height,u=e.alwaysShowText,l=this.state,f=l.startX,d=l.endX,p=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Rf(i)||!Rf(a)||!Rf(s)||!Rf(c)||s<=0||c<=0)return null;var y=Fc("recharts-brush",r),v=1===t.Children.count(o),m=function(e,t){if(!e)return null;var n=e.replace(/(\w)/,(function(e){return e.toUpperCase()})),r=NL.reduce((function(e,r){return RL(RL({},e),{},IL({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wd,{className:y,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||u)&&this.renderText())}}],o=[{key:"renderDefaultTraveller",value:function(e){var n=e.x,r=e.y,o=e.width,i=e.height,a=e.stroke,s=Math.floor(r+i/2)-1;return t.createElement(t.Fragment,null,t.createElement("rect",{x:n,y:r,width:o,height:i,fill:a,stroke:"none"}),t.createElement("line",{x1:n+1,y1:s,x2:n+o-1,y2:s,fill:"none",stroke:"#fff"}),t.createElement("line",{x1:n+1,y1:s+2,x2:n+o-1,y2:s+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):a.renderDefaultTraveller(n)}},{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,c=e.endIndex;if(n!==t.prevData||a!==t.prevUpdateId)return HL({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,c=IO().domain(PL(0,s)).range([o,o+i-a]),u=c.domain().map((function(e){return c(e)}));return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,startX:c(n),endX:c(r),scale:c,scaleValues:u}}({data:n,width:r,x:o,travellerWidth:i,startIndex:s,endIndex:c}):{scale:null,scaleValues:null});if(t.scale&&(r!==t.prevWidth||o!==t.prevX||i!==t.prevTravellerWidth)){t.scale.range([o,o+r-i]);var u=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:u}}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&&VL(n.prototype,r),o&&VL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();qL(YL,"displayName","Brush"),qL(YL,"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 XL=Bx;var JL=function(e,t){var n;return XL(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},QL=Bd,eR=Vg,tR=JL,nR=cu,rR=CC;var oR=function(e,t,n){var r=nR(e)?QL:tR;return n&&rR(e,t,n)&&(t=void 0),r(e,eR(t))},iR=ct(oR),aR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var sR=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},cR=Bx;var uR=function(e,t){var n=!0;return cR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},lR=sR,fR=uR,dR=Vg,pR=cu,hR=CC;var gR=function(e,t,n){var r=pR(e)?lR:fR;return n&&hR(e,t,n)&&(t=void 0),r(e,dR(t))},yR=ct(gR),vR=cC;var mR=function(e,t,n){"__proto__"==t&&vR?vR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},bR=mR,wR=Rx,xR=Vg;var CR=function(e,t){var n={};return t=xR(t),wR(e,(function(e,r,o){bR(n,r,t(e,r,o))})),n},_R=ct(CR),SR=["value","background"];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(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 ER(){return ER=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ER.apply(this,arguments)}function jR(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 AR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jR(Object(n),!0).forEach((function(t){RR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function TR(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,IR(r.key),r)}}function MR(e,t){return MR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},MR(e,t)}function PR(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=LR(e);if(t){var o=LR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===OR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return DR(e)}(this,n)}}function DR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LR(e){return LR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},LR(e)}function RR(e,t,n){return(t=IR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IR(e){var t=function(e,t){if("object"!==OR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==OR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===OR(t)?t:String(t)}var NR=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&MR(e,t)}(a,t.PureComponent);var n,r,o,i=PR(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return RR(DR(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),RR(DR(e),"id",Bf("recharts-bar-")),RR(DR(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),RR(DR(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 n=this,r=this.props.shape,o=ud(this.props);return e&&e.map((function(e,i){var s=AR(AR(AR({},o),e),{},{index:i});return t.createElement(wd,ER({className:"recharts-bar-rectangle"},Yf(n.props,e,i),{key:"rectangle-".concat(i),role:"img"}),a.renderRectangle(r,s))}))}},{key:"renderRectanglesWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.layout,i=n.isAnimationActive,a=n.animationBegin,s=n.animationDuration,c=n.animationEasing,u=n.animationId,l=this.state.prevData;return t.createElement(yw,{begin:a,duration:s,isActive:i,easing:c,from:{t:0},to:{t:1},key:"bar-".concat(u),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var i=n.t,a=r.map((function(e,t){var n=l&&l[t];if(n){var r=Hf(n.x,e.x),a=Hf(n.y,e.y),s=Hf(n.width,e.width),c=Hf(n.height,e.height);return AR(AR({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Hf(0,e.height)(i);return AR(AR({},e),{},{y:e.y+e.height-u,height:u})}var f=Hf(0,e.width)(i);return AR(AR({},e),{},{width:f})}));return t.createElement(wd,null,e.renderRectanglesStatically(a))}))}},{key:"renderRectangles",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&FS(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=ud(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=kR(t,SR);if(!o)return null;var s=AR(AR(AR(AR(AR({},i),{},{fill:"#eee"},o),n),Yf(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(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.data,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,JT);if(!c)return null;var u="vertical"===s?o[0].height/2:o[0].width/2;function l(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:iM(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,f,c.map((function(e,n){return t.cloneElement(e,{key:"error-bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,offset:u,dataPointFormatter:l})})))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.xAxis,a=e.yAxis,s=e.left,c=e.top,u=e.width,l=e.height,f=e.isAnimationActive,d=e.background,p=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Fc("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=xf(p)?this.id:p;return t.createElement(wd,{className:g},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:s,y:c,width:u,height:l}))):null,t.createElement(wd,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},d?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&gP.renderCallByParent(this.props,r))}}],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,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(ZP,n)}}],r&&TR(n.prototype,r),o&&TR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function BR(e){return BR="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},BR(e)}function FR(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,KR(r.key),r)}}function zR(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 HR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zR(Object(n),!0).forEach((function(t){VR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VR(e,t,n){return(t=KR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KR(e){var t=function(e,t){if("object"!==BR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===BR(t)?t:String(t)}RR(NR,"displayName","Bar"),RR(NR,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!zC.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),RR(NR,"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,c=e.yAxisTicks,u=e.stackedData,l=e.dataStartIndex,f=e.displayedData,d=e.offset,p=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}(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=u?b.scale.domain():null,x=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]}({numericAxis:b}),C=id(v,D_),_=f.map((function(e,t){var r,f,d,g,v,b;if(u?r=function(e,t){if(!t||2!==t.length||!Rf(t[0])||!Rf(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(!Rf(e[0])||e[0]<n)&&(o[0]=n),(!Rf(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o}(u[l+t],w):(r=iM(e,y),uu(r)||(r=[x,r])),"horizontal"===h){var _,S=[a.scale(r[0]),a.scale(r[1])],O=S[0],k=S[1];f=CM({axis:i,ticks:s,bandSize:o,offset:p.offset,entry:e,index:t}),d=null!==(_=null!=k?k:O)&&void 0!==_?_:void 0,g=p.size;var E=O-k;if(v=Number.isNaN(E)?0:E,b={x:f,y:a.y,width:g,height:a.height},Math.abs(m)>0&&Math.abs(v)<Math.abs(m)){var j=Df(v||m)*(Math.abs(m)-Math.abs(v));d-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],M=A[1];if(f=T,d=CM({axis:a,ticks:c,bandSize:o,offset:p.offset,entry:e,index:t}),g=M-T,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+=Df(g||m)*(Math.abs(m)-Math.abs(g))}return AR(AR(AR({},e),{},{x:f,y:d,width:g,height:v,value:u?r:r[1],payload:e,background:b},C&&C[t]&&C[t].props),{},{tooltipPayload:[AM(n,e)],tooltipPosition:{x:f+g/2,y:d+v/2}})}));return AR({data:_,layout:h},d)}));var UR=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.layout,c=e.children,u=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=!!ad(c,NR);return u.reduce((function(i,a){var c,u,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,C="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var _=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/_,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Ff(e.barCategoryGap,k*E),A=k*E/2;c=A-j-(A-j)/E*j}}u="xAxis"===r?[n.left+(b.left||0)+(c||0),n.left+n.width-(b.right||0)-(c||0)]:"yAxis"===r?"horizontal"===s?[n.top+n.height-(b.bottom||0),n.top+(b.top||0)]:[n.top+(b.top||0)+(c||0),n.top+n.height-(b.bottom||0)-(c||0)]:g.range,x&&(u=[u[1],u[0]]);var T=gM(g,o,f),M=T.scale,P=T.realScaleType;M.domain(v).range(u),vM(M);var D=wM(M,HR(HR({},g),{},{realScaleType:P}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,d=n.left,p=l[C]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,d=l[C]-h*g.width,p=n.top);var L=HR(HR(HR({},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 L.bandSize=EM(L,D),g.hide||"xAxis"!==r?g.hide||(l[C]+=(h?-1:1)*L.width):l[C]+=(h?-1:1)*L.height,HR(HR({},i),{},VR({},a,L))}),{})},$R=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)}},WR=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var 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&&FR(t.prototype,n),r&&FR(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();VR(WR,"EPS",1e-4);var qR=function(e){var t=Object.keys(e).reduce((function(t,n){return HR(HR({},t),{},VR({},n,WR.create(e[n])))}),{});return HR(HR({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return _R(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return yR(e,(function(e,n){return t[n].isInRange(e)}))}})};function ZR(e){return ZR="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},ZR(e)}function GR(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 YR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GR(Object(n),!0).forEach((function(t){XR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==ZR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==ZR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===ZR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return QR(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 QR(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 QR(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 eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eI.apply(this,arguments)}function tI(e){var n=e.x,r=e.y,o=e.segment,i=e.xAxis,a=e.yAxis,s=e.shape,c=e.className,u=e.alwaysShow,l=e.clipPathId;j_(void 0===u,'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,c=i.width,u=i.height,l=o.position;if(n){var f=o.y,d=o.yAxis.orientation,p=e.y.apply(f,{position:l});if(aR(o,"discard")&&!e.y.isInRange(p))return null;var h=[{x:a+c,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(aR(o,"discard")&&!e.x.isInRange(v))return null;var m=[{x:v,y:s+u},{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 aR(o,"discard")&&iR(b,(function(t){return!e.isInRange(t)}))?null:b}return null}(qR({x:i.scale,y:a.scale}),If(n),If(r),o&&2===o.length,e);if(!f)return null;var d=JR(f,2),p=d[0],h=p.x,g=p.y,y=d[1],v=y.x,m=y.y,b=YR(YR({clipPath:aR(e,"hidden")?"url(#".concat(l,")"):void 0},ud(e,!0)),{},{x1:h,y1:g,x2:v,y2:m});return t.createElement(wd,{className:Fc("recharts-reference-line",c)},function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement("line",eI({},n,{className:"recharts-reference-line-line"}))}(s,b),tP.renderCallByParent(e,function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return $R({x:t,y:n},{x:r,y:o})}({x1:h,y1:g,x2:v,y2:m})))}function nI(e){return nI="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},nI(e)}function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}function oI(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 iI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?oI(Object(n),!0).forEach((function(t){aI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function aI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==nI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==nI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===nI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}tI.displayName="ReferenceLine",tI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};function sI(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=If(n),c=If(r);if(j_(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=qR({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return aR(e,"discard")&&!i.isInRange(a)?null:a}(e);if(!u)return null;var l=u.x,f=u.y,d=e.shape,p=e.className,h=iI(iI({clipPath:aR(e,"hidden")?"url(#".concat(a,")"):void 0},ud(e,!0)),{},{cx:l,cy:f});return t.createElement(wd,{className:Fc("recharts-reference-dot",p)},sI.renderDot(d,h),tP.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}function cI(e){return cI="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},cI(e)}function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}function lI(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 fI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lI(Object(n),!0).forEach((function(t){dI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==cI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===cI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}sI.displayName="ReferenceDot",sI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},sI.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(hD,rI({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};function pI(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;j_(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=If(n),l=If(r),f=If(o),d=If(i),p=e.shape;if(!(u||l||f||d||p))return null;var h=function(e,t,n,r,o){var i=o.x1,a=o.x2,s=o.y1,c=o.y2,u=o.xAxis,l=o.yAxis;if(!u||!l)return null;var f=qR({x:u.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(c,{position:"end"}):f.y.rangeMax};return!aR(o,"discard")||f.isInRange(d)&&f.isInRange(p)?$R(d,p):null}(u,l,f,d,e);if(!h&&!p)return null;var g=aR(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wd,{className:Fc("recharts-reference-area",a)},pI.renderRect(p,fI(fI({clipPath:g},ud(e,!0)),h)),tP.renderCallByParent(e,h))}function hI(e,t,n){if(t<1)return[];if(1===t&&void 0===n)return e;for(var r=[],o=0;o<e.length;o+=t){if(void 0!==n&&!0!==n(e[o]))return;r.push(e[o])}return r}function gI(e){return gI="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},gI(e)}function yI(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 vI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yI(Object(n),!0).forEach((function(t){mI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mI(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==gI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gI(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bI(e,t){var n,r,o=e.ticks,i=e.tickFormatter,a=e.viewBox,s=e.orientation,c=e.minTickGap,u=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=u&&"width"===y?kS(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Df(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],C=su(i)?i(x.value,b-1):x.value,_=kS(C,{fontSize:l,letterSpacing:f})[y]+m,S=w*(x.coordinate+w*_/2-r);v[b-1]=x=vI(vI({},x),{},{tickCoord:S>0?x.coordinate-S*w:x.coordinate}),w*(x.tickCoord-w*_/2-n)>=0&&w*(x.tickCoord+w*_/2-r)<=0&&(r=x.tickCoord-w*(_/2+c),v[b-1]=vI(vI({},x),{},{isShow:!0}))}for(var O=t?b-1:b,k=0;k<O;k++){var E=v[k],j=su(i)?i(E.value,k):E.value,A=kS(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=vI(vI({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=vI(vI({},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+c),v[k]=vI(vI({},E),{},{isShow:!0}))}return v}function wI(e,t,n){var r=e.tick,o=e.ticks,i=e.viewBox,a=e.minTickGap,s=e.orientation,c=e.interval,u=e.tickFormatter,l=e.unit;if(!o||!o.length||!r)return[];if(Rf(c)||zC.isSsr)return function(e,t){return hI(e,t+1)}(o,"number"==typeof c&&Rf(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=hI(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=hI(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=bI({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?bI({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n},"preserveStartEnd"===c):function(e){var t,n,r=e.ticks,o=e.tickFormatter,i=e.viewBox,a=e.orientation,s=e.minTickGap,c=e.unit,u=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=c&&"width"===g?kS(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Df(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],C=su(o)?o(x.value,m-w-1):x.value,_=kS(C,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var S=b*(x.coordinate+b*_/2-n);v[w]=x=vI(vI({},x),{},{tickCoord:S>0?x.coordinate-S*b:x.coordinate})}else v[w]=x=vI(vI({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*_/2-t)>=0&&b*(x.tickCoord+b*_/2-n)<=0&&(n=x.tickCoord-b*(_/2+s),v[w]=vI(vI({},x),{},{isShow:!0}))}return v}({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n}),f.filter((function(e){return e.isShow})))}pI.displayName="ReferenceArea",pI.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},pI.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(ZP,uI({},n,{className:"recharts-reference-area-rect"}))};var xI=["viewBox"],CI=["viewBox"],_I=["ticks"];function SI(e){return SI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},SI(e)}function OI(){return OI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},OI.apply(this,arguments)}function kI(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 EI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kI(Object(n),!0).forEach((function(t){DI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function jI(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 AI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,LI(r.key),r)}}function TI(e,t){return TI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},TI(e,t)}function MI(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=PI(e);if(t){var o=PI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===SI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function PI(e){return PI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PI(e)}function DI(e,t,n){return(t=LI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function LI(e){var t=function(e,t){if("object"!==SI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==SI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===SI(t)?t:String(t)}var RI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&TI(e,t)}(a,t.Component);var n,r,o,i=MI(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={fontSize:"",letterSpacing:""},t}return n=a,r=[{key:"shouldComponentUpdate",value:function(e,t){var n=e.viewBox,r=jI(e,xI),o=this.props,i=o.viewBox,a=jI(o,CI);return!Kf(n,i)||!Kf(r,a)||!Kf(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,c=s.x,u=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=Rf(e.tickCoord)?e.tickCoord:e.coordinate;switch(d){case"top":t=n=e.coordinate,a=(r=(o=u+ +!h*f)-y*v)-y*g,i=m;break;case"left":r=o=e.coordinate,i=(t=(n=c+ +!h*l)-y*v)-y*g,a=m;break;case"right":r=o=e.coordinate,i=(t=(n=c+ +h*l)+y*v)+y*g,a=m;break;default:t=n=e.coordinate,a=(r=(o=u+ +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,n=e.x,r=e.y,o=e.width,i=e.height,a=e.orientation,s=e.mirror,c=e.axisLine,u=EI(EI(EI({},ud(this.props)),ud(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=EI(EI({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=EI(EI({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",OI({},u,{className:Fc("recharts-cartesian-axis-line",bf(c,"className"))}))}},{key:"renderTicks",value:function(e,n,r){var o=this,i=this.props,s=i.tickLine,c=i.stroke,u=i.tick,l=i.tickFormatter,f=i.unit,d=wI(EI(EI({},this.props),{},{ticks:e}),n,r),p=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=ud(this.props),y=ud(u),v=EI(EI({},g),{},{fill:"none"},ud(s)),m=d.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=EI(EI(EI(EI({textAnchor:p,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:d.length,tickFormatter:l});return t.createElement(wd,OI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},Yf(o.props,e,n)),s&&t.createElement("line",OI({},v,i,{className:Fc("recharts-cartesian-axis-tick-line",bf(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(su(l)?l(e.value,n):e.value).concat(f||"")))}));return t.createElement("g",{className:"recharts-cartesian-axis-ticks"},m)}},{key:"render",value:function(){var e=this,n=this.props,r=n.axisLine,o=n.width,i=n.height,a=n.ticksGenerator,s=n.className;if(n.hide)return null;var c=this.props,u=c.ticks,l=jI(c,_I),f=u;return su(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(wd,{className:Fc("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),tP.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(NS,OI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&AI(n.prototype,r),o&&AI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();DI(RI,"displayName","CartesianAxis"),DI(RI,"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 II=["x1","y1","x2","y2","key"];function NI(e){return NI="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},NI(e)}function BI(){return BI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BI.apply(this,arguments)}function FI(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 zI(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 HI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zI(Object(n),!0).forEach((function(t){WI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function VI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qI(r.key),r)}}function KI(e,t){return KI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},KI(e,t)}function UI(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=$I(e);if(t){var o=$I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===NI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function $I(e){return $I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$I(e)}function WI(e,t,n){return(t=qI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qI(e){var t=function(e,t){if("object"!==NI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==NI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===NI(t)?t:String(t)}var ZI=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KI(e,t)}(a,t.PureComponent);var n,r,o,i=UI(a);function a(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.apply(this,arguments)}return n=a,r=[{key:"renderHorizontal",value:function(e){var n=this,r=this.props,o=r.x,i=r.width,s=r.horizontal;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=HI(HI({},n.props),{},{x1:o,y1:e,x2:o+i,y2:e,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-horizontal"},c)}},{key:"renderVertical",value:function(e){var n=this,r=this.props,o=r.y,i=r.height,s=r.vertical;if(!e||!e.length)return null;var c=e.map((function(e,t){var r=HI(HI({},n.props),{},{x1:e,y1:o,x2:e,y2:o+i,key:"line-".concat(t),index:t});return a.renderLineItem(s,r)}));return t.createElement("g",{className:"recharts-cartesian-grid-vertical"},c)}},{key:"renderVerticalStripes",value:function(e){var n=this.props.verticalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+i-i)})).sort((function(e,t){return e-t}));i!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:i+s-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),x:e,y:a,width:l,height:c,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}},{key:"renderHorizontalStripes",value:function(e){var n=this.props.horizontalFill;if(!n||!n.length)return null;var r=this.props,o=r.fillOpacity,i=r.x,a=r.y,s=r.width,c=r.height,u=e.map((function(e){return Math.round(e+a-a)})).sort((function(e,t){return e-t}));a!==u[0]&&u.unshift(0);var l=u.map((function(e,r){var l=u[r+1]?u[r+1]-e:a+c-e;if(l<=0)return null;var f=r%n.length;return t.createElement("rect",{key:"react-".concat(r),y:e,x:i,height:l,width:s,stroke:"none",fill:n[f],fillOpacity:o,className:"recharts-cartesian-grid-bg"})}));return t.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}},{key:"renderBackground",value:function(){var e=this.props.fill;if(!e||"none"===e)return null;var n=this.props,r=n.fillOpacity,o=n.x,i=n.y,a=n.width,s=n.height;return t.createElement("rect",{x:o,y:i,width:a,height:s,stroke:"none",fill:e,fillOpacity:r,className:"recharts-cartesian-grid-bg"})}},{key:"render",value:function(){var e=this.props,n=e.x,r=e.y,o=e.width,i=e.height,a=e.horizontal,s=e.vertical,c=e.horizontalCoordinatesGenerator,u=e.verticalCoordinatesGenerator,l=e.xAxis,f=e.yAxis,d=e.offset,p=e.chartWidth,h=e.chartHeight;if(!Rf(o)||o<=0||!Rf(i)||i<=0||!Rf(n)||n!==+n||!Rf(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!su(c)||(y=c({yAxis:f,width:p,height:h,offset:d})),v&&v.length||!su(u)||(v=u({xAxis:l,width:p,height:h,offset:d})),t.createElement("g",{className:"recharts-cartesian-grid"},this.renderBackground(),a&&this.renderHorizontal(y),s&&this.renderVertical(v),a&&this.renderHorizontalStripes(y),s&&this.renderVerticalStripes(v))}}],o=[{key:"renderLineItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(su(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=FI(n,II);r=t.createElement("line",BI({},ud(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&VI(n.prototype,r),o&&VI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();WI(ZI,"displayName","CartesianGrid"),WI(ZI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var GI=["type","layout","connectNulls","ref"];function YI(e){return YI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},YI(e)}function XI(e,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 JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JI.apply(this,arguments)}function QI(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 eN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?QI(Object(n),!0).forEach((function(t){cN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tN(e){return function(e){if(Array.isArray(e))return nN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return nN(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 nN(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 nN(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 rN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uN(r.key),r)}}function oN(e,t){return oN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oN(e,t)}function iN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=sN(e);if(t){var o=sN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===YI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return aN(e)}(this,n)}}function aN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sN(e){return sN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sN(e)}function cN(e,t,n){return(t=uN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uN(e){var t=function(e,t){if("object"!==YI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==YI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===YI(t)?t:String(t)}var lN=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oN(e,t)}(a,t.PureComponent);var n,r,o,i=iN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return cN(aN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),cN(aN(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,c=[],u=0,l=0;;l+=n[u],++u)if(l+n[u]>i){c=[].concat(tN(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(tN(a.repeat(n,o)),tN(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),cN(aN(e),"id",Bf("recharts-line-")),cN(aN(e),"pathRef",(function(t){e.mainCurve=t})),cN(aN(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),cN(aN(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(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.points,i=r.xAxis,a=r.yAxis,s=r.layout,c=id(r.children,JT);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:iM(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,l,c.map((function(e,n){return t.cloneElement(e,{key:"bar-".concat(n),data:o,xAxis:i,yAxis:a,layout:s,dataPointFormatter:u})})))}},{key:"renderDots",value:function(e,n){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var r=this.props,o=r.dot,i=r.points,s=r.dataKey,c=ud(this.props),u=ud(o,!0),l=i.map((function(e,t){var n=eN(eN(eN({key:"dot-".concat(t),r:3},c),u),{},{value:e.value,dataKey:s,cx:e.x,cy:e.y,index:t,payload:e.payload});return a.renderDotItem(o,n)})),f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wd,JI({className:"recharts-line-dots",key:"dots"},f,{role:"img"}),l)}},{key:"renderCurveStatically",value:function(e,n,r,o){var i=this.props,a=i.type,s=i.layout,c=i.connectNulls;i.ref;var u=XI(i,GI),l=eN(eN(eN({},ud(u,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:n?"url(#clipPath-".concat(r,")"):null,points:e},o),{},{type:a,layout:s,connectNulls:c});return t.createElement(IP,JI({},l,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.strokeDasharray,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,d=o.animateNewValues,p=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(yw,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"line-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var o=t.t;if(y){var s=y.length/i.length,c=i.map((function(e,t){var n=Math.floor(t*s);if(y[n]){var r=y[n],i=Hf(r.x,e.x),a=Hf(r.y,e.y);return eN(eN({},e),{},{x:i(o),y:a(o)})}if(d){var c=Hf(2*p,e.x),u=Hf(h/2,e.y);return eN(eN({},e),{},{x:c(o),y:u(o)})}return eN(eN({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Hf(0,v)(o);if(a){var f="".concat(a).split(/[,\s]+/gim).map((function(e){return parseFloat(e)}));u=r.getStrokeDasharray(l,v,f)}else u="".concat(l,"px ").concat(v-l,"px");return r.renderCurveStatically(i,e,n,{strokeDasharray:u})}))}},{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||!FS(a,r))?this.renderCurveWithAnimation(e,t):this.renderCurveStatically(r,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.xAxis,s=e.yAxis,c=e.top,u=e.left,l=e.width,f=e.height,d=e.isAnimationActive,p=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Fc("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=xf(p)?this.id:p;return t.createElement(wd,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:u,y:c,width:l,height:f}))):null,!g&&this.renderCurve(v,m),this.renderErrorBar(v,m),(g||r)&&this.renderDots(v,m),(!d||h)&&gP.renderCallByParent(this.props,o))}}],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(tN(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(tN(r),tN(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(su(e))r=e(n);else{var o=Fc("recharts-line-dot",e?e.className:"");r=t.createElement(hD,JI({},n,{className:o}))}return r}}],r&&rN(n.prototype,r),o&&rN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();cN(lN,"displayName","Line"),cN(lN,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!zC.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),cN(lN,"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,c=e.displayedData,u=e.offset,l=t.layout,f=c.map((function(e,t){var c=iM(e,a);return"horizontal"===l?{x:xM({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:xf(c)?null:r.scale(c),value:c,payload:e}:{x:xf(c)?null:n.scale(c),y:xM({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}}));return eN({points:f,layout:l},u)}));var fN=function(){return null};fN.displayName="XAxis",fN.defaultProps={allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0};var dN=function(){return null};dN.displayName="YAxis",dN.defaultProps={allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1};var pN=Vg,hN=nh,gN=ah;var yN=function(e){return function(t,n,r){var o=Object(t);if(!hN(t)){var i=pN(n);t=gN(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}},vN=jL;var mN=Kg,bN=Vg,wN=function(e){var t=vN(e),n=t%1;return t==t?n?t-n:t:0},xN=Math.max;var CN=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:wN(n);return o<0&&(o=xN(r+o,0)),mN(e,bN(t),o)},_N=ct(yN(CN)),SN=ru,ON=lu;var kN=ct((function(e){return!0===e||!1===e||ON(e)&&"[object Boolean]"==SN(e)}));function EN(e){return function(e){if(Array.isArray(e))return jN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return jN(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 jN(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 jN(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 AN=function(e,t,n,r,o){var i=id(e,tI),a=id(e,sI),s=[].concat(EN(i),EN(a)),c=id(e,pI),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&aR(t.props,"extendDomain")&&Rf(t.props[l])){var r=t.props[l];return[Math.min(e[0],r),Math.max(e[1],r)]}return e}),f)),c.length){var d="".concat(l,"1"),p="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&aR(t.props,"extendDomain")&&Rf(t.props[d])&&Rf(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 Rf(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},TN={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),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=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 c,u,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(u=1,c=new Array(f-1);u<f;u++)c[u-1]=arguments[u];l.fn.apply(l.context,c)}else{var d,p=l.length;for(u=0;u<p;u++)switch(l[u].once&&this.removeListener(e,l[u].fn,void 0,!0),f){case 1:l[u].fn.call(l[u].context);break;case 2:l[u].fn.call(l[u].context,t);break;case 3:l[u].fn.call(l[u].context,t,r);break;case 4:l[u].fn.call(l[u].context,t,r,o);break;default:if(!c)for(d=1,c=new Array(f-1);d<f;d++)c[d-1]=arguments[d];l[u].fn.apply(l[u].context,c)}}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 c=0,u=[],l=s.length;c<l;c++)(s[c].fn!==t||o&&!s[c].once||r&&s[c].context!==r)&&u.push(s[c]);u.length?this._events[i]=1===u.length?u[0]:u: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}(TN);var MN=new(ct(TN.exports));MN.setMaxListeners&&MN.setMaxListeners(10);var PN="recharts.syncMouseEvents";function DN(e){return DN="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},DN(e)}function LN(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,IN(r.key),r)}}function RN(e,t,n){return(t=IN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IN(e){var t=function(e,t){if("object"!==DN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DN(t)?t:String(t)}var NN=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),RN(this,"activeIndex",0),RN(this,"coordinateList",[]),RN(this,"layout","horizontal")}var t,n,r;return t=e,n=[{key:"setDetails",value:function(e){var t=e.coordinateList,n=void 0===t?[]:t,r=e.container,o=void 0===r?null:r,i=e.layout,a=void 0===i?null:i,s=e.offset,c=void 0===s?null:s,u=e.mouseHandlerCallback,l=void 0===u?null:u;this.coordinateList=null!=n?n:this.coordinateList,this.container=null!=o?o:this.container,this.layout=null!=a?a:this.layout,this.offset=null!=c?c:this.offset,this.mouseHandlerCallback=null!=l?l:this.mouseHandlerCallback,this.activeIndex>=this.coordinateList.length&&(this.activeIndex=this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(e){switch(e.key){case"ArrowRight":if("horizontal"!==this.layout)return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break;case"ArrowLeft":if("horizontal"!==this.layout)return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse()}}},{key:"spoofMouse",value:function(){if("horizontal"===this.layout){var e=this.container.getBoundingClientRect(),t=e.x,n=e.y,r=t+this.coordinateList[this.activeIndex].coordinate,o=n+this.offset.top;this.mouseHandlerCallback({pageX:r,pageY:o})}}}],n&&LN(t.prototype,n),r&&LN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),BN=["item"],FN=["children","className","width","height","style","compact","title","desc"];function zN(e){return zN="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},zN(e)}function HN(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){u=!0,o=e}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||YN(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 VN(){return VN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VN.apply(this,arguments)}function KN(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 UN(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,tB(r.key),r)}}function $N(e,t){return $N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},$N(e,t)}function WN(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=ZN(e);if(t){var o=ZN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===zN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return qN(e)}(this,n)}}function qN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ZN(e){return ZN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ZN(e)}function GN(e){return function(e){if(Array.isArray(e))return XN(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||YN(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 YN(e,t){if(e){if("string"==typeof e)return XN(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)?XN(e,t):void 0}}function XN(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 JN(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 QN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?JN(Object(n),!0).forEach((function(t){eB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eB(e,t,n){return(t=tB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tB(e){var t=function(e,t){if("object"!==zN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==zN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===zN(t)?t:String(t)}var nB={xAxis:["bottom","top"],yAxis:["left","right"]},rB={x:0,y:0},oB=Number.isFinite?Number.isFinite:isFinite,iB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,aB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,sB=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(GN(e),GN(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&&Rf(o)&&Rf(i)?e.slice(o,i+1):[]};function cB(e){return"number"===e?[0,"auto"]:void 0}var uB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=sB(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=Vf(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(GN(e),[AM(t,o)]):e}),[])},lB=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,c=e.tooltipTicks,u=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)return 0;if(o&&"angleAxis"===o.axisType&&Math.abs(Math.abs(o.range[1]-o.range[0])-360)<=1e-6)for(var s=o.range,c=0;c<a;c++){var u=c>0?r[c-1].coordinate:r[a-1].coordinate,l=r[c].coordinate,f=c>=a-1?r[0].coordinate:r[c+1].coordinate,d=void 0;if(Df(l-u)!==Df(f-l)){var p=[];if(Df(f-l)===Df(s[1]-s[0])){d=f;var h=l+s[1]-s[0];p[0]=Math.min(h,(h+u)/2),p[1]=Math.max(h,(h+u)/2)}else{d=u;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[c].index;break}}else{var v=Math.min(u,f),m=Math.max(u,f);if(e>(v+l)/2&&e<=(m+l)/2){i=r[c].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}return i}(i,a,c,s);if(u>=0&&c){var l=c[u]&&c[u].value,f=uB(e,t,u,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 QN(QN(QN({},r),BM(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return QN(QN(QN({},r),BM(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return rB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:d}}return null},fB=function(e,t){var n=t.axes,r=t.graphicalItems,o=t.axisType,i=t.axisIdKey,a=t.stackGroups,s=t.dataStartIndex,c=t.dataEndIndex,u=e.layout,l=e.children,f=e.stackOffset,d=fM(u,o),p=n.reduce((function(t,n){var p,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,C=n.props[i];if(t[C])return t;var _,S,O,k=sB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===C})),dataStartIndex:s,dataEndIndex:c}),E=k.length;(function(e,t,n){if("number"===n&&!0===t&&Array.isArray(e)){var r=null==e?void 0:e[0],o=null==e?void 0:e[1];if(r&&o&&Rf(r)&&Rf(o))return!0}return!1})(n.props.domain,v,g)&&(_=kM(n.props.domain,null,v),!d||"number"!==g&&"auto"===b||(O=aM(k,y,"category")));var j=cB(g);if(!_||0===_.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(y){if(_=aM(k,y,g),"category"===g&&d){var M=function(e){if(!uu(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}(_);m&&M?(S=_,_=PL(0,E)):m||(_=jM(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(GN(e),[t])}),[]))}else if("category"===g)_=m?_.filter((function(e){return""!==e&&!xf(e)})):jM(T,_,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||xf(t)?e:[].concat(GN(e),[t])}),[]);else if("number"===g){var P=function(e,t,n,r,o){var i=t.map((function(t){return uM(e,t,n,o,r)})).filter((function(e){return!xf(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}(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),y,o,u);P&&(_=P)}!d||"number"!==g&&"auto"===b||(O=aM(k,y,"category"))}else _=d?PL(0,E):a&&a[C]&&a[C].hasStack&&"number"===g?"expand"===f?[0,1]:_M(a[C].stackGroups,s,c):lM(k,r.filter((function(e){return e.props[i]===C&&(x||!e.props.hide)})),g,u,!0);if("number"===g)_=AN(l,_,C,o,w),T&&(_=kM(T,_,v));else if("category"===g&&T){var D=T;_.every((function(e){return D.indexOf(e)>=0}))&&(_=D)}}return QN(QN({},t),{},eB({},C,QN(QN({},n.props),{},{axisType:o,domain:_,categoricalDomain:O,duplicateDomain:S,originalDomain:null!==(p=n.props.domain)&&void 0!==p?p:j,isCategorical:d,layout:u})))}),{});return p},dB=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,c=t.dataEndIndex,u=e.children,l="".concat(r,"Id"),f=id(u,o),d={};return f&&f.length?d=fB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):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,c=t.dataEndIndex,u=e.layout,l=e.children,f=sB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),d=f.length,p=fM(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=cB("number");return e[y]?e:(h++,p?g=PL(0,d):a&&a[y]&&a[y].hasStack?(g=_M(a[y].stackGroups,s,c),g=AN(l,g,y,o)):(g=kM(v,lM(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=AN(l,g,y,o)),QN(QN({},e),{},eB({},y,QN(QN({axisType:o},r.defaultProps),{},{hide:!0,orientation:bf(nB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:p,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),d},pB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=ad(r,YL);return{chartX:0,chartY:0,dataStartIndex:i&&i.props&&i.props.startIndex||0,dataEndIndex:void 0!==(null==i||null===(t=i.props)||void 0===t?void 0:t.endIndex)?null==i||null===(n=i.props)||void 0===n?void 0:n.endIndex:e.data&&e.data.length-1||0,activeTooltipIndex:-1,isTooltipActive:!xf(o)&&o}},hB=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"}},gB=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,c=n.height,u=n.children,l=n.margin||{},f=ad(u,YL),d=ad(u,km),p=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:QN(QN({},e),{},eB({},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:QN(QN({},e),{},eB({},r,bf(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=QN(QN({},h),p),y=g.bottom;return f&&(g.bottom+=f.props.height||YL.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),c=cM({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,d=c.verticalAlign,p=c.layout;("vertical"===p||"horizontal"===p&&"middle"===d)&&Rf(e[f])&&(u=rM(rM({},e),{},oM({},f,u[f]+(l.width||0)))),("horizontal"===p||"vertical"===p&&"center"===f)&&Rf(e[d])&&(u=rM(rM({},e),{},oM({},d,u[d]+(l.height||0))))}return u}(g,0,n,t)),QN(QN({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},yB=function(e){var n,r=e.chartName,o=e.GraphicalChild,i=e.defaultTooltipEventType,a=void 0===i?"axis":i,s=e.validateTooltipEventTypes,c=void 0===s?["axis"]:s,u=e.axisComponents,l=e.legendContent,f=e.formatAxisMap,d=e.defaultProps,p=function(e,t){var n=t.graphicalItems,r=t.stackGroups,o=t.offset,i=t.updateId,a=t.dataStartIndex,s=t.dataEndIndex,c=e.barSize,l=e.layout,f=e.barGap,d=e.barCategoryGap,p=e.maxBarSize,h=hB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=td(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 c=r[i[a]].stackGroups,u=Object.keys(c),l=0,f=u.length;l<f;l++){var d=c[u[l]],p=d.items,h=d.cateAxisId,g=p.filter((function(e){return td(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:xf(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=sB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,C=n.props["".concat(g,"Id")],_=n.props["".concat(y,"Id")],S=u.reduce((function(e,r){var o,i=t["".concat(r.axisType,"Map")],a=n.props["".concat(r.axisType,"Id")],s=i&&i[a];return QN(QN({},e),{},(eB(o={},r.axisType,s),eB(o,"".concat(r.axisType,"Ticks"),pM(s)),o))}),{}),O=S[y],k=S["".concat(y,"Ticks")],E=r&&r[C]&&r[C].hasStack&&function(e,t){var n=e.props.stackId;if(If(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[C].stackGroups),j=td(n.type).indexOf("Bar")>=0,A=EM(O,k),T=[];if(j){var M,P,D=xf(x)?p:x,L=null!==(M=null!==(P=EM(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 c,u=Ff(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)*u)>=r&&(d-=(s-1)*u,u=0),d>=r&&f>0&&(l=!0,d=s*(f*=.9));var p={offset:((r-d)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(eM(e),[{item:t.item,position:{offset:p.offset+p.size+u,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=Ff(n,r,0,!0);r-2*h-(s-1)*u<=0&&(u=0);var g=(r-2*h-(s-1)*u)/s;g>1&&(g>>=0);var y=a===+a?Math.min(g,a):g;c=i.reduce((function(e,t,n){var r=[].concat(eM(e),[{item:t.item,position:{offset:h+(g+u)*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 c}({barGap:f,barCategoryGap:d,bandSize:L!==A?L:A,sizeList:m[_],maxBarSize:D}),L!==A&&(T=T.map((function(e){return QN(QN({},e),{},{position:QN(QN({},e.position),{},{offset:e.position.offset-L/2})})})))}var R,I,N,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:QN(QN({},B(QN(QN({},S),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(R={key:n.key||"item-".concat(c)},eB(R,g,S[g]),eB(R,y,S[y]),eB(R,"animationId",i),R)),childIndex:(I=n,N=e.children,od(N).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!sd({props:n}))return null;var c=n.children,l=n.layout,d=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=hB(l),v=y.numericAxisName,m=y.cateAxisName,b=id(c,o),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(If(i)){var c=s.stackGroups[i]||{numericAxisId:n,cateAxisId:r,items:[]};c.items.push(t),s.hasStack=!0,s.stackGroups[i]=c}else s.stackGroups[Bf("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return rM(rM({},e),{},oM({},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 rM(rM({},t),{},oM({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:bM(e,a.items,o)}))}),{})),rM(rM({},t),{},oM({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),d,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return QN(QN({},e),{},eB({},r,dB(n,QN(QN({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),C=gB(QN(QN({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],C,e.replace("Map",""),r)}));var _,S,O=x["".concat(m,"Map")],k=(_=zf(O),{tooltipTicks:S=pM(_,!1,!0),orderedTooltipTicks:kC(S,(function(e){return e.coordinate})),tooltipAxis:_,tooltipAxisBandSize:EM(_,S)}),E=p(n,QN(QN({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:C}));return QN(QN({formattedGraphicalItems:E,graphicalItems:b,offset:C,stackGroups:w},k),x)};return 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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$N(e,t)}(u,t.Component);var n,o,i,s=WN(u);function u(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),eB(qN(n=s.call(this,e)),"accessibilityManager",new NN),eB(qN(n),"clearDeferId",(function(){!xf(n.deferId)&&aB&&aB(n.deferId),n.deferId=null})),eB(qN(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(QN({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},QN(QN({},n.state),{},{legendBBox:e}))))}})),eB(qN(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=iB&&iB(n.applySyncEvent.bind(qN(n),r)))})),eB(qN(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 QN({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),eB(qN(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=QN(QN({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)}})),eB(qN(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?QN(QN({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)})),eB(qN(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),eB(qN(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),eB(qN(n),"handleMouseMove",(function(e){e&&su(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),eB(qN(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),su(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),eB(qN(n),"handleOuterEvent",(function(e){var t=function(e){var t=e&&e.type;return t&&ed[t]?ed[t]:null}(e),r=bf(n.props,"".concat(t));t&&su(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),eB(qN(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=QN(QN({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),su(t)&&t(o,e)}})),eB(qN(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;su(t)&&t(n.getMouseInfo(e),e)})),eB(qN(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;su(t)&&t(n.getMouseInfo(e),e)})),eB(qN(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),eB(qN(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),eB(qN(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),eB(qN(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return dM(wI(QN(QN(QN({},RI.defaultProps),t),{},{ticks:pM(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),eB(qN(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return dM(wI(QN(QN(QN({},RI.defaultProps),t),{},{ticks:pM(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),eB(qN(n),"axesTicksGenerator",(function(e){return pM(e,!0)})),eB(qN(n),"renderCursor",(function(e){var o=n.state,i=o.isTooltipActive,a=o.activeCoordinate,s=o.activePayload,c=o.offset,u=o.activeTooltipIndex,l=n.getTooltipEventType();if(!e||!e.props.cursor||!i||!a||"ScatterChart"!==r&&"axis"!==l)return null;var f,d=n.props.layout,p=IP;if("ScatterChart"===r)f=a,p=vD;else if("BarChart"===r)f=n.getCursorRectangle(),p=ZP;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=OP}else f={points:n.getCursorPoints()},p=IP;var m=e.key||"_recharts-cursor",b=QN(QN(QN(QN({stroke:"#ccc",pointerEvents:"none"},c),f),ud(e.props.cursor)),{},{payload:s,payloadIndex:u,key:m,className:"recharts-tooltip-cursor"});return t.isValidElement(e.props.cursor)?t.cloneElement(e.props.cursor,b):t.createElement(p,b)})),eB(qN(n),"renderPolarAxis",(function(e,r,o){var i=bf(e,"type.axisType"),a=bf(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,QN(QN({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:pM(s,!0)}))})),eB(qN(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),eB(qN(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),eB(qN(n),"renderGrid",(function(e){var r=n.state,o=r.xAxisMap,i=r.yAxisMap,a=r.offset,s=n.props,c=s.width,u=s.height,l=zf(o),f=_N(i,(function(e){return yR(e.domain,oB)}))||zf(i),d=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Rf(d.x)?d.x:a.left,y:Rf(d.y)?d.y:a.top,width:Rf(d.width)?d.width:a.width,height:Rf(d.height)?d.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:d.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:d.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),eB(qN(n),"renderPolarGrid",(function(e){var r=e.props,o=r.radialLines,i=r.polarAngles,a=r.polarRadius,s=n.state,c=s.radiusAxisMap,u=s.angleAxisMap,l=zf(c),f=zf(u),d=f.cx,p=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:uu(i)?i:pM(f,!0).map((function(e){return e.coordinate})),polarRadius:uu(a)?a:pM(l,!0).map((function(e){return e.coordinate})),cx:d,cy:p,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),eB(qN(n),"renderLegend",(function(){var e=n.state.formattedGraphicalItems,r=n.props,o=r.children,i=r.width,a=r.height,s=n.props.margin||{},c=i-(s.left||0)-(s.right||0),u=cM({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,d=KN(u,BN);return t.cloneElement(f,QN(QN({},d),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),eB(qN(n),"renderTooltip",(function(){var e=ad(n.props.children,YC);if(!e)return null;var r=n.state,o=r.isTooltipActive,i=r.activeCoordinate,a=r.activePayload,s=r.activeLabel,c=r.offset;return t.cloneElement(e,{viewBox:QN(QN({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),eB(qN(n),"renderBrush",(function(e){var r=n.props,o=r.margin,i=r.data,a=n.state,s=a.offset,c=a.dataStartIndex,u=a.dataEndIndex,l=a.updateId;return t.cloneElement(e,{key:e.key||"_recharts-brush",onChange:hM(n.handleBrushChange,null,e.props.onChange),data:i,x:Rf(e.props.x)?e.props.x:s.left,y:Rf(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Rf(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),eB(qN(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=qN(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=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:c[d],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),eB(qN(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,c=t.item.props,l=c.activeDot,f=QN(QN({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:sM(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},ud(l)),Gf(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,QN(QN({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),eB(qN(n),"renderGraphicChild",(function(e,r,o){var i=n.filterFormatItem(e,r,o);if(!i)return null;var a=n.getTooltipEventType(),s=n.state,c=s.isTooltipActive,u=s.tooltipAxis,l=s.activeTooltipIndex,f=s.activeLabel,d=ad(n.props.children,YC),p=i.props,h=p.points,g=p.isRange,y=p.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&d&&m&&l>=0,w={};"axis"!==a&&d&&"click"===d.props.trigger?w={onClick:hM(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:hM(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:hM(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,QN(QN({},i.props),w));if(b){var C,_;if(u.dataKey&&!u.allowDuplicatedCategory){var S="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());C=Vf(h,S,f),_=g&&y&&Vf(y,S,f)}else C=h[l],_=g&&y&&y[l];if(!xf(C))return[x].concat(GN(n.renderActivePoints({item:i,activePoint:C,basePoint:_,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),eB(qN(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,QN(QN({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=xf(e.id)?Bf("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=x_(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){var e,t;xf(this.props.syncId)||this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:null!==(e=this.props.margin.left)&&void 0!==e?e:0,top:null!==(t=this.props.margin.top)&&void 0!==t?t:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.handleMouseMove,layout:this.props.layout})}},{key:"getSnapshotBeforeUpdate",value:function(e,t){return this.props.accessibilityLayer?(this.state.tooltipTicks!==t.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==e.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==e.margin&&this.accessibilityManager.setDetails({offset:{left:null!==(n=this.props.margin.left)&&void 0!==n?n:0,top:null!==(r=this.props.margin.top)&&void 0!==r?r:0}}),null):null;var n,r}},{key:"componentDidUpdate",value:function(e){xf(e.syncId)&&!xf(this.props.syncId)&&this.addListener(),!xf(e.syncId)&&xf(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),xf(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=ad(this.props.children,YC);if(e&&kN(e.props.shared)){var t=e.props.shared?"axis":"item";return c.indexOf(t)>=0?t:a}return a}},{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,c=a.yAxisMap;if("axis"!==this.getTooltipEventType()&&s&&c){var u=zf(s).scale,l=zf(c).scale,f=u&&u.invert?u.invert(o.chartX):null,d=l&&l.invert?l.invert(o.chartY):null;return QN(QN({},o),{},{xValue:f,yValue:d})}var p=lB(this.state,this.props.data,this.props.layout,i);return p?QN(QN({},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(!xf(a.cx)||!xf(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,d=a.endAngle;return{points:[BM(c,u,l,f),BM(c,u,l,d)],cx:c,cy:u,radius:l,startAngle:f,endAngle:d}}var p=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=BM(p,h,g,v),b=BM(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=zf(i);return VM({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=ad(e,YC),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}),QN(QN({},Gf(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){MN.on(PN,this.handleReceiveSyncEvent),MN.setMaxListeners&&MN._maxListeners&&MN.setMaxListeners(MN._maxListeners+1)}},{key:"removeListener",value:function(){MN.removeListener(PN,this.handleReceiveSyncEvent),MN.setMaxListeners&&MN._maxListeners&&MN.setMaxListeners(MN._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;xf(t)||MN.emit(PN,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(xf(e.dataStartIndex)&&xf(e.dataEndIndex))if(xf(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,d=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(d,e);else if("value"===r){u=-1;for(var p=0;p<d.length;p++)if(d[p].value===e.activeLabel){u=p;break}}var g=QN(QN({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=d[u]&&d[u].value,b=uB(this.state,this.props.data,u),w=d[u]?{x:"horizontal"===n?d[u].coordinate:y,y:"horizontal"===n?v:d[u].coordinate}:rB;this.setState(QN(QN({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(QN({dataStartIndex:i,dataEndIndex:a},h({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===td(a.item.type)&&n===a.childIndex)return a}return null}},{key:"renderAxis",value:function(e,n,r,o){var i=this.props,a=i.width,s=i.height;return t.createElement(RI,VN({},e,{className:"recharts-".concat(e.axisType," ").concat(e.axisType),key:n.key||"".concat(r,"-").concat(o),viewBox:{x:0,y:0,width:a,height:s},ticksGenerator:this.axesTicksGenerator}))}},{key:"renderClipPath",value:function(){var e=this.clipPathId,n=this.state.offset,r=n.left,o=n.top,i=n.height,a=n.width;return t.createElement("defs",null,t.createElement("clipPath",{id:e},t.createElement("rect",{x:r,y:o,height:i,width:a})))}},{key:"getXScales",value:function(){var e=this.state.xAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HN(t,2),r=n[0],o=n[1];return QN(QN({},e),{},eB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=HN(t,2),r=n[0],o=n[1];return QN(QN({},e),{},eB({},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=td(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return qP(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return VM(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!sd(this))return null;var n=this.props,r=n.children,o=n.className,i=n.width,a=n.height,s=n.style,c=n.compact,u=n.title,l=n.desc,f=KN(n,FN),d=ud(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(c)return t.createElement(yd,VN({},d,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),dd(r,p));this.props.accessibilityLayer&&(d.tabIndex=0,d.role="img",d.onKeyDown=function(t){e.accessibilityManager.keyboardEvent(t)},d.onFocus=function(){e.accessibilityManager.focus()});var h=this.parseEventsOfWrapper();return t.createElement("div",VN({className:Fc("recharts-wrapper",o),style:QN({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(yd,VN({},d,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),dd(r,p)),this.renderLegend(),this.renderTooltip())}}],o&&UN(n.prototype,o),i&&UN(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),eB(n,"displayName",r),eB(n,"defaultProps",QN({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),eB(n,"getDerivedStateFromProps",(function(e,t){var n=e.data,r=e.children,o=e.width,i=e.height,a=e.layout,s=e.stackOffset,c=e.margin;if(xf(t.updateId)){var u=pB(e);return QN(QN(QN({},u),{},{updateId:0},h(QN(QN({props:e},u),{},{updateId:0}),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(n!==t.prevData||o!==t.prevWidth||i!==t.prevHeight||a!==t.prevLayout||s!==t.prevStackOffset||!Kf(c,t.prevMargin)){var l=pB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},d=QN(QN({},lB(t,n,a)),{},{updateId:t.updateId+1}),p=QN(QN(QN({},l),f),d);return QN(QN(QN({},p),h(QN({props:e},p),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!ld(r,t.prevChildren)){var g=!xf(n)?t.updateId:t.updateId+1;return QN(QN({updateId:g},h(QN(QN({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),eB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):su(e)?e(n):t.createElement(hD,n),t.createElement(wd,{className:"recharts-active-dot",key:n.key},r)})),n},vB=yB({chartName:"LineChart",GraphicalChild:lN,axisComponents:[{axisType:"xAxis",AxisComp:fN},{axisType:"yAxis",AxisComp:dN}],formatAxisMap:UR}),mB=yB({chartName:"BarChart",GraphicalChild:NR,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:fN},{axisType:"yAxis",AxisComp:dN}],formatAxisMap:UR}),bB=yB({chartName:"PieChart",GraphicalChild:CL,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:eL},{axisType:"radiusAxis",AxisComp:HD}],formatAxisMap:function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Ff(e.cx,i,i/2),l=Ff(e.cy,a,a/2),f=FM(i,a,n),d=Ff(e.innerRadius,f,0),p=Ff(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(xf(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[d,p]),h&&(i=[i[1],i[0]]);else{var g=LM(i=a.range,2);s=g[0],c=g[1]}var y=gM(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),vM(m);var b=wM(m,PM(PM({},a),{},{realScaleType:v})),w=PM(PM(PM({},a),b),{},{range:i,radius:p,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:d,outerRadius:p,startAngle:s,endAngle:c});return PM(PM({},e),{},DM({},n,w))}),{})},defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});const wB=W.div((({theme:e,color:t,size:n})=>({borderRadius:"50%",backgroundColor:t||e.color.brand,width:n||8,height:n||8})),(({theme:{font:e},number:t})=>t&&{display:"flex",padding:"1px 1px 0",alignItems:"center",justifyContent:"center",fontFamily:e.family.light,fontSize:e.size.sm}),un,ln);function xB(e){return xB="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},xB(e)}function CB(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 _B(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function SB(e){_B(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===xB(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 OB(e,t){_B(2,arguments);var n=SB(e),r=CB(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function kB(e,t){_B(2,arguments);var n=SB(e),r=CB(t);if(isNaN(r))return new Date(NaN);if(!r)return n;var o=n.getDate(),i=new Date(n.getTime());return i.setMonth(n.getMonth()+r+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function EB(e,t){if(_B(2,arguments),!t||"object"!==xB(t))return new Date(NaN);var n=t.years?CB(t.years):0,r=t.months?CB(t.months):0,o=t.weeks?CB(t.weeks):0,i=t.days?CB(t.days):0,a=t.hours?CB(t.hours):0,s=t.minutes?CB(t.minutes):0,c=t.seconds?CB(t.seconds):0,u=SB(e),l=r||n?kB(u,r+12*n):u,f=i||o?OB(l,i+7*o):l,d=1e3*(c+60*(s+60*a));return new Date(f.getTime()+d)}var jB={};function AB(){return jB}function TB(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 MB(e){_B(1,arguments);var t=SB(e);return t.setHours(0,0,0,0),t}var PB=864e5;function DB(e,t){_B(2,arguments);var n=MB(e),r=MB(t);return n.getTime()===r.getTime()}function LB(e){if(_B(1,arguments),!function(e){return _B(1,arguments),e instanceof Date||"object"===xB(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=SB(e);return!isNaN(Number(t))}function RB(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 IB(e,t){_B(2,arguments);var n=SB(e),r=SB(t),o=RB(n,r),i=Math.abs(function(e,t){_B(2,arguments);var n=MB(e),r=MB(t),o=n.getTime()-TB(n),i=r.getTime()-TB(r);return Math.round((o-i)/PB)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(RB(n,r)===-o));return 0===a?0:a}var NB={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},BB="trunc";function FB(e){return e?NB[e]:NB[BB]}function zB(e,t,n){_B(2,arguments);var r=function(e,t){return _B(2,arguments),SB(e).getTime()-SB(t).getTime()}(e,t)/6e4;return FB(null==n?void 0:n.roundingMethod)(r)}function HB(e,t){return _B(2,arguments),function(e,t){_B(2,arguments);var n=SB(e).getTime(),r=CB(t);return new Date(n+r)}(e,-CB(t))}function VB(e){_B(1,arguments);var t=SB(e),n=t.getUTCDay(),r=(n<1?7:0)+n-1;return t.setUTCDate(t.getUTCDate()-r),t.setUTCHours(0,0,0,0),t}function KB(e){_B(1,arguments);var t=SB(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=VB(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=VB(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function UB(e){_B(1,arguments);var t=SB(e),n=VB(t).getTime()-function(e){_B(1,arguments);var t=KB(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),VB(n)}(t).getTime();return Math.round(n/6048e5)+1}function $B(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=AB(),f=CB(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===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.weekStartsOn)&&void 0!==n?n:0);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=SB(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 WB(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=SB(e),f=l.getUTCFullYear(),d=AB(),p=CB(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===(c=d.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.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=$B(h,t),y=new Date(0);y.setUTCFullYear(f,0,p),y.setUTCHours(0,0,0,0);var v=$B(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}function qB(e,t){_B(1,arguments);var n=SB(e),r=$B(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;_B(1,arguments);var l=AB(),f=CB(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===(c=l.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1),d=WB(e,t),p=new Date(0);return p.setUTCFullYear(d,0,f),p.setUTCHours(0,0,0,0),$B(p,t)}(n,t).getTime();return Math.round(r/6048e5)+1}function ZB(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var GB={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return ZB("yy"===t?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):ZB(n+1,2)},d:function(e,t){return ZB(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];default:return"am"===n?"a.m.":"p.m."}},h:function(e,t){return ZB(e.getUTCHours()%12||12,t.length)},H:function(e,t){return ZB(e.getUTCHours(),t.length)},m:function(e,t){return ZB(e.getUTCMinutes(),t.length)},s:function(e,t){return ZB(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds();return ZB(Math.floor(r*Math.pow(10,n-3)),t.length)}},YB=GB,XB="midnight",JB="noon",QB="morning",eF="afternoon",tF="evening",nF="night",rF={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 YB.y(e,t)},Y:function(e,t,n,r){var o=WB(e,r),i=o>0?o:1-o;return"YY"===t?ZB(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):ZB(i,t.length)},R:function(e,t){return ZB(KB(e),t.length)},u:function(e,t){return ZB(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 ZB(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 ZB(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 YB.M(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 ZB(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=qB(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):ZB(o,t.length)},I:function(e,t,n){var r=UB(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):ZB(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):YB.d(e,t)},D:function(e,t,n){var r=function(e){_B(1,arguments);var t=SB(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/864e5)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):ZB(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 ZB(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 ZB(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 ZB(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?JB:0===o?XB: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?tF:o>=12?eF:o>=4?QB:nF,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 YB.h(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):YB.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZB(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):ZB(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):YB.m(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):YB.s(e,t)},S:function(e,t){return YB.S(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return iF(o);case"XXXX":case"XX":return aF(o);default:return aF(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return iF(o);case"xxxx":case"xx":return aF(o);default:return aF(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+oF(o,":");default:return"GMT"+aF(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+oF(o,":");default:return"GMT"+aF(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return ZB(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return ZB((r._originalDate||e).getTime(),t.length)}};function oF(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+ZB(i,2)}function iF(e,t){return e%60==0?(e>0?"-":"+")+ZB(Math.abs(e)/60,2):aF(e,t)}function aF(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+ZB(Math.floor(o/60),2)+n+ZB(o%60,2)}var sF=rF,cF=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"})}},uF=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"})}},lF={p:uF,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return cF(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}}",cF(o,t)).replace("{{time}}",uF(i,t))}},fF=lF,dF=["D","DD"],pF=["YY","YYYY"];function hF(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 gF={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"}},yF=function(e,t,n){var r,o=gF[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};function vF(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var mF={date:vF({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vF({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:vF({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},bF={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},wF=function(e,t,n,r){return bF[e]};function xF(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 CF={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:xF({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:xF({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:xF({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:xF({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:xF({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"})},_F=CF;function SF(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],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(c)?function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return}(c,(function(e){return e.test(s)})):function(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n;return}(c,(function(e){return e.test(s)}));return a=e.valueCallback?e.valueCallback(u):u,{value:a=n.valueCallback?n.valueCallback(a):a,rest:t.slice(s.length)}}}var OF,kF={ordinalNumber:(OF={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(OF.matchPattern);if(!n)return null;var r=n[0],o=e.match(OF.parsePattern);if(!o)return null;var i=OF.valueCallback?OF.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:SF({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:SF({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:SF({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:SF({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:SF({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"})},EF={code:"en-US",formatDistance:yF,formatLong:mF,formatRelative:wF,localize:_F,match:kF,options:{weekStartsOn:0,firstWeekContainsDate:1}},jF=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AF=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TF=/^'([^]*?)'?$/,MF=/''/g,PF=/[a-zA-Z]/;function DF(e,t,n){var r,o,i,a,s,c,u,l,f,d,p,h,g,y,v,m,b,w;_B(2,arguments);var x=String(t),C=AB(),_=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:C.locale)&&void 0!==r?r:EF,S=CB(null!==(i=null!==(a=null!==(s=null!==(c=null==n?void 0:n.firstWeekContainsDate)&&void 0!==c?c:null==n||null===(u=n.locale)||void 0===u||null===(l=u.options)||void 0===l?void 0:l.firstWeekContainsDate)&&void 0!==s?s:C.firstWeekContainsDate)&&void 0!==a?a:null===(f=C.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=CB(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:C.weekStartsOn)&&void 0!==h?h:null===(b=C.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(!_.localize)throw new RangeError("locale must contain localize property");if(!_.formatLong)throw new RangeError("locale must contain formatLong property");var k=SB(e);if(!LB(k))throw new RangeError("Invalid time value");var E=HB(k,TB(k)),j={firstWeekContainsDate:S,weekStartsOn:O,locale:_,_originalDate:k},A=x.match(AF).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,fF[t])(e,_.formatLong):e})).join("").match(jF).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(TF);if(!t)return e;return t[1].replace(MF,"'")}(r);var i,a=sF[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===pF.indexOf(i))||hF(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==dF.indexOf(e)}(r)||hF(r,t,String(e)),a(E,r,_.localize,j);if(o.match(PF))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function LF(e){return _B(1,arguments),SB(e).getDate()}function RF(e){_B(1,arguments);var t=SB(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 IF(e){_B(1,arguments);var t=SB(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function NF(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getTime()>r.getTime()}function BF(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getTime()<r.getTime()}function FF(e){return _B(1,arguments),function(e,t){_B(2,arguments);var n=SB(e),r=SB(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function zF(e,t){return _B(2,arguments),OB(e,-CB(t))}function HF(e,t){if(_B(2,arguments),"object"!==xB(t)||null===t)throw new RangeError("values parameter must be an object");var n=SB(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){_B(2,arguments);var n=SB(e),r=CB(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=RF(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(CB(t.date)),null!=t.hours&&n.setHours(CB(t.hours)),null!=t.minutes&&n.setMinutes(CB(t.minutes)),null!=t.seconds&&n.setSeconds(CB(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(CB(t.milliseconds)),n)}function VF(e,t){_B(2,arguments);var n=SB(e),r=CB(t);return n.setDate(r),n}function KF(e,t){if(_B(2,arguments),!t||"object"!==xB(t))return new Date(NaN);var n=t.years?CB(t.years):0,r=t.months?CB(t.months):0,o=t.weeks?CB(t.weeks):0,i=t.days?CB(t.days):0,a=t.hours?CB(t.hours):0,s=t.minutes?CB(t.minutes):0,c=t.seconds?CB(t.seconds):0,u=function(e,t){return _B(2,arguments),kB(e,-CB(t))}(e,r+12*n),l=zF(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const UF=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},$F=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),WF=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-vertical line:first-of-type":{strokeOpacity:0},".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),qF=W.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),un),ZF=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(QF,{children:[e.jsx(ez,{children:r}),null==n?void 0:n.map((t=>{var n;const r=t.color||(null===(n=t.payload)||void 0===n?void 0:n.color);return e.jsxs(JF,{children:[r&&e.jsx(wB,{color:r}),t.name,": ",$F(t.value||0)]},t.value)}))]}):null,GF=()=>{const{elevation1:t}=n.useTheme();return e.jsx(YC,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(ZF,{})})},YF=({payload:t,toggleData:n})=>e.jsx(XF,{children:null==t?void 0:t.map((t=>e.jsxs(JF,Object.assign({onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive},{children:[e.jsx(wB,{color:t.color}),t.value]}),t.value)))}),XF=W.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),JF=W.div((({theme:e,clickable:t,inactive:n})=>({color:e.scale8,fontSize:e.font.size.sm,display:"flex",alignItems:"center",columnGap:8,textTransform:"capitalize",borderRadius:8,lineHeight:"15px",backgroundColor:t?e.scale1:void 0,padding:t?"4px 8px":void 0,cursor:t?"pointer":void 0,opacity:n?.3:1}))),QF=W.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),ez=W.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));let tz;const nz=new Uint8Array(16);function rz(){if(!tz&&(tz="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!tz))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return tz(nz)}const oz=[];for(let e=0;e<256;++e)oz.push((e+256).toString(16).slice(1));var iz={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function az(e,t,n){if(iz.randomUUID&&!t&&!e)return iz.randomUUID();const r=(e=e||{}).random||(e.rng||rz)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(oz[e[t+0]]+oz[e[t+1]]+oz[e[t+2]]+oz[e[t+3]]+"-"+oz[e[t+4]]+oz[e[t+5]]+"-"+oz[e[t+6]]+oz[e[t+7]]+"-"+oz[e[t+8]]+oz[e[t+9]]+"-"+oz[e[t+10]]+oz[e[t+11]]+oz[e[t+12]]+oz[e[t+13]]+oz[e[t+14]]+oz[e[t+15]]).toLowerCase()}(r)}const sz=W.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"}))),cz=W.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),uz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),lz=W.div({display:"flex"}),fz=W.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),dz=W.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"}})),pz=W.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),hz=W.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),gz=W.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}})),un),yz=W.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`}}}))),vz=W.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),mz=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),C="right"===i,_={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(gz,Object.assign({htmlFor:r,labelRight:C,disabled:u},_,{children:[o&&e.jsx(vz,{children:o}),e.jsx(yz,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(dn,{name:v,marginLeft:o&&!C?8:0,marginRight:o&&C?8:0,pointer:!u})]}))};function bz(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=bz(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function wz(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=bz(e))&&(r&&(r+=" "),r+=t);return r}var xz,Cz,_z=Object.create,Sz=Object.defineProperty,Oz=Object.defineProperties,kz=Object.getOwnPropertyDescriptor,Ez=Object.getOwnPropertyDescriptors,jz=Object.getOwnPropertyNames,Az=Object.getOwnPropertySymbols,Tz=Object.getPrototypeOf,Mz=Object.prototype.hasOwnProperty,Pz=Object.prototype.propertyIsEnumerable,Dz=(e,t,n)=>t in e?Sz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Lz=(e,t)=>{for(var n in t||(t={}))Mz.call(t,n)&&Dz(e,n,t[n]);if(Az)for(var n of Az(t))Pz.call(t,n)&&Dz(e,n,t[n]);return e},Rz=(e,t)=>Oz(e,Ez(t)),Iz=(e,t)=>{var n={};for(var r in e)Mz.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Az)for(var r of Az(e))t.indexOf(r)<0&&Pz.call(e,r)&&(n[r]=e[r]);return n},Nz=(xz={"../../node_modules/.pnpm/prismjs@1.29.0_patch_hash=vrxx3pzkik6jpmgpayxfjunetu/node_modules/prismjs/prism.js"(e,t){var n=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,"&").replace(/</g,"<").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 c in n)n.hasOwnProperty(c)&&(a[c]=n[c]);n.hasOwnProperty(s)||(a[s]=i[s])}var u=o[e];return o[e]=a,r.languages.DFS(r.languages,(function(t,n){n===u&&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 c=t[s],u=r.util.type(c);"Object"!==u||i[a(c)]?"Array"!==u||i[a(c)]||(i[a(c)]=!0,e(c,n,s,i)):(i[a(c)]=!0,e(c,n,null,i))}}},plugins:{},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return 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 c(o,o.head,e),a(e,o,t,o.head,0),function(e){for(var t=[],n=e.head.next;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,C=s.next,_=l;C!==t.tail&&!(f&&_>=f.reach);_+=C.value.length,C=C.next){var S=C.value;if(t.length>e.length)return;if(!(S instanceof o)){var O,k=1;if(m){if(!(O=i(x,_,e,v))||O.index>=e.length)break;var E=O.index,j=O.index+O[0].length,A=_;for(A+=C.value.length;E>=A;)A+=(C=C.next).value.length;if(_=A-=C.value.length,C.value instanceof o)continue;for(var T=C;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,S=e.slice(_,A),O.index-=_}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),L=_+S.length;f&&L>f.reach&&(f.reach=L);var R=C.prev;if(P&&(R=c(t,R,P),_+=P.length),u(t,R,k),C=c(t,R,new o(d,y?r.tokenize(M,y):M,b,M)),D&&c(t,C,D),k>1){var I={cause:d+","+h,reach:L};a(e,t,n,C.prev,_,I),f&&I.reach>f.reach&&(f.reach=I.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 c(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 u(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 c in i.attributes)s+=" "+c+'="'+(i.attributes[c]||"").replace(/"/g,""")+'"';return"<"+i.tag+' class="'+i.classes.join(" ")+'"'+s+">"+i.content+"</"+i.tag+">"},r}();t.exports=n,n.default=n}},function(){return Cz||(0,xz[jz(xz)[0]])((Cz={exports:{}}).exports,Cz),Cz.exports}),Bz=((e,t,n)=>(n=null!=e?_z(Tz(e)):{},((e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let o of jz(t))Mz.call(e,o)||o===n||Sz(e,o,{get:()=>t[o],enumerable:!(r=kz(t,o))||r.enumerable});return e})(!t&&e&&e.__esModule?n:Sz(n,"default",{value:e,enumerable:!0}),e)))(Nz());!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,r="(?:[^\\\\-]|"+n.source+")",o=(r=RegExp(r+"-"+r),{pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"});e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":o}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":o}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Bz),Bz.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:/[{}[\];(),.:]/},Bz.languages.javascript=Bz.languages.extend("clike",{"class-name":[Bz.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}|\?\?=?|\?\.?|[~:]/}),Bz.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Bz.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Bz.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:Bz.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Bz.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Bz.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:Bz.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Bz.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:Bz.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"}}),Bz.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Bz.languages.markup&&(Bz.languages.markup.tag.addInlined("script","javascript"),Bz.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")),Bz.languages.js=Bz.languages.javascript,Bz.languages.actionscript=Bz.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),Bz.languages.actionscript["class-name"].alias="function",delete Bz.languages.actionscript.parameter,delete Bz.languages.actionscript["literal-property"],Bz.languages.markup&&Bz.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:Bz.languages.markup}}),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}(Bz),function(e){var t=e.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};Object.defineProperty(t,"addSupport",{value:function(t,n){(t="string"==typeof t?[t]:t).forEach((function(t){var r=function(e){e.inside||(e.inside={}),e.inside.rest=n},o="doc-comment";if(i=e.languages[t]){var i,a=i[o];if((a=a||(i=e.languages.insertBefore(t,"comment",{"doc-comment":{pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"}}))[o])instanceof RegExp&&(a=i[o]={pattern:a}),Array.isArray(a))for(var s=0,c=a.length;s<c;s++)a[s]instanceof RegExp&&(a[s]={pattern:a[s]}),r(a[s]);else r(a)}}))}}),t.addSupport(["java","javascript","php"],t)}(Bz),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;(t=(e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),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,e.languages.markup))&&(t.tag.addInlined("style","css"),t.tag.addAttribute("style","css"))}(Bz),function(e){var t=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,n=(t=(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("\\[(?:[^[\\]\"']|"+t.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":[t,{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}}),{pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0}),{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|RebeccaPurple|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:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,number:n})}(Bz),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}(Bz),Bz.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"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Bz.languages.markup.tag.inside["attr-value"].inside.entity=Bz.languages.markup.entity,Bz.languages.markup.doctype.inside["internal-subset"].inside=Bz.languages.markup,Bz.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(Bz.languages.markup.tag,"addInlined",{value:function(e,t){var n;(t=((n=((n={})["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Bz.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i,{"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}}))["language-"+t]={pattern:/[\s\S]+/,inside:Bz.languages[t]},{}))[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:n},Bz.languages.insertBefore("markup","cdata",t)}}),Object.defineProperty(Bz.languages.markup.tag,"addAttribute",{value:function(e,t){Bz.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:Bz.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Bz.languages.html=Bz.languages.markup,Bz.languages.mathml=Bz.languages.markup,Bz.languages.svg=Bz.languages.markup,Bz.languages.xml=Bz.languages.extend("markup",{}),Bz.languages.ssml=Bz.languages.xml,Bz.languages.atom=Bz.languages.xml,Bz.languages.rss=Bz.languages.xml,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,a=(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,i=t[n];"code"!==i.type?e(i.content):(o=i.content[1],i=i.content[3],o&&i&&"code-language"===o.type&&"code-block"===i.type&&"string"==typeof o.content&&(o=o.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),o="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase()),i.alias?"string"==typeof i.alias?i.alias=[i.alias,o]:i.alias.push(o):i.alias=[o]))}}(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];if(i=/language-(.+)/.exec(i)){n=i[1];break}}var u,l=e.languages[n];l?t.content=e.highlight(t.content.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;return"#"===(t=t.toLowerCase())[0]?(n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n)):s[t]||e})),l,n):n&&"none"!==n&&e.plugins.autoloader&&(u="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random()),t.attributes.id=u,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(u);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))})))}})),RegExp(e.languages.markup.tag.pattern.source,"gi")),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Bz),Bz.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:Bz.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+/},Bz.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"),0<o.length)){var s=d(/^\{$/,/^\}$/);if(-1!==s)for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&0<=o.indexOf(u.content)&&p(u,"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}return 1}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)}})),Bz.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(t,n,r){return t={code:t,grammar:n,language:r},e.hooks.run("before-tokenize",t),t.tokens=e.tokenize(t.code,t.grammar),e.hooks.run("after-tokenize",t),t.tokens}function c(t,n,a){var c=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),u=0,l={},f=(c=s(c.map((function(e){if("string"==typeof e)return e;var n,r;for(e=e.content;-1!==t.indexOf((r=u++,n="___"+a.toUpperCase()+"_"+r+"___")););return l[n]=e,n})).join(""),n,a),Object.keys(l));return u=0,function t(n){for(var i=0;i<n.length;i++){if(u>=f.length)return;var a,c,d,p,h,g,y,v=n[i];"string"==typeof v||"string"==typeof v.content?(a=f[u],-1!==(y=(g="string"==typeof v?v:v.content).indexOf(a))&&(++u,c=g.substring(0,y),h=l[a],d=void 0,(p={})["interpolation-punctuation"]=o,3===(p=e.tokenize(h,p)).length&&((d=[1,1]).push.apply(d,s(p[1],e.languages.javascript,"javascript")),p.splice.apply(p,d)),d=new e.Token("interpolation",p,r.alias,h),p=g.substring(y+a.length),h=[],c&&h.push(c),h.push(d),p&&(t(g=[p]),h.push.apply(h,g)),"string"==typeof v?(n.splice.apply(n,[i,1].concat(h)),i+=h.length-1):v.content=h)):(y=v.content,Array.isArray(y)?t(y):t([y]))}}(c),new e.Token(a,c,"language-"+a,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 u={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function l(e){return"string"==typeof e?e:Array.isArray(e)?e.map(l).join(""):l(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in u&&function t(n){for(var r=0,o=n.length;r<o;r++){var i,a,s,u=n[r];"string"!=typeof u&&(i=u.content,Array.isArray(i)?"template-string"===u.type?(u=i[1],3===i.length&&"string"!=typeof u&&"embedded-code"===u.type&&(a=l(u),u=u.alias,u=Array.isArray(u)?u[0]:u,s=e.languages[u])&&(i[1]=c(a,s,u))):t(i):"string"!=typeof i&&t([i]))}}(t.tokens)}))}(Bz),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}(Bz),function(e){var t=e.languages.javascript,n=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,r="(@(?:arg|argument|param|property)\\s+(?:"+n+"\\s+)?)";e.languages.jsdoc=e.languages.extend("javadoclike",{parameter:{pattern:RegExp(r+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),e.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(r+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:t,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,(function(){return n}))),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+n),lookbehind:!0,inside:{string:t.string,number:t.number,boolean:t.boolean,keyword:e.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:t,alias:"language-javascript"}}}}),e.languages.javadoclike.addSupport("javascript",e.languages.jsdoc)}(Bz),function(e){e.languages.flow=e.languages.extend("javascript",{}),e.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|[Ss]ymbol|any|mixed|null|void)\b/,alias:"class-name"}]}),e.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete e.languages.flow.parameter,e.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(e.languages.flow.keyword)||(e.languages.flow.keyword=[e.languages.flow.keyword]),e.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})}(Bz),Bz.languages.n4js=Bz.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),Bz.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),Bz.languages.n4jsd=Bz.languages.n4js,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];o=(i="RegExp"===e.util.type(i)?e.languages.javascript[o]={pattern:i}:i).inside||{};(i.inside=o)["maybe-class-name"]=/^[A-Z][\s\S]*/}}(Bz),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)}function a(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;"string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?0<n.length&&n[n.length-1].tagName===s(o.content[0].content[1])&&n.pop():"/>"!==o.content[o.content.length-1].content&&n.push({tagName:s(o.content[0].content[1]),openedBraces:0}):0<n.length&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:0<n.length&&0<n[n.length-1].openedBraces&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&0<n.length&&0===n[n.length-1].openedBraces&&(i=s(o),r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(i+=s(t[r+1]),t.splice(r+1,1)),0<r&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(i=s(t[r-1])+i,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",i,null,i)),o.content&&"string"!=typeof o.content&&a(o.content)}}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 s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||a(e.tokens)}))}(Bz),function(e){var t=e.util.clone(e.languages.typescript);(t=(e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"],e.languages.tsx.tag)).pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+t.pattern.source+")",t.pattern.flags),t.lookbehind=!0}(Bz),Bz.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Bz.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Bz.languages.swift})),function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Bz),Bz.languages.c=Bz.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|[?:~]|[-+*/%&|^!=<>]=?/}),Bz.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Bz.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},Bz.languages.c.string],char:Bz.languages.c.char,comment:Bz.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:Bz.languages.c}}}}),Bz.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 Bz.languages.c.boolean,Bz.languages.objectivec=Bz.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 Bz.languages.objectivec["class-name"],Bz.languages.objc=Bz.languages.objectivec,Bz.languages.reason=Bz.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/}),Bz.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 Bz.languages.reason.function,function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Bz),Bz.languages.go=Bz.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/}),Bz.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Bz.languages.go["class-name"],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"])}(Bz);var Fz={};((e,t)=>{for(var n in t)Sz(e,n,{get:t[n],enumerable:!0})})(Fz,{dracula:()=>zz,duotoneDark:()=>Hz,duotoneLight:()=>Vz,github:()=>Kz,jettwaveDark:()=>nH,jettwaveLight:()=>rH,nightOwl:()=>Uz,nightOwlLight:()=>$z,oceanicNext:()=>Zz,okaidia:()=>Gz,palenight:()=>Yz,shadesOfPurple:()=>Xz,synthwave84:()=>Jz,ultramin:()=>Qz,vsDark:()=>eH,vsLight:()=>tH});var zz={plain:{color:"#F8F8F2",backgroundColor:"#282A36"},styles:[{types:["prolog","constant","builtin"],style:{color:"rgb(189, 147, 249)"}},{types:["inserted","function"],style:{color:"rgb(80, 250, 123)"}},{types:["deleted"],style:{color:"rgb(255, 85, 85)"}},{types:["changed"],style:{color:"rgb(255, 184, 108)"}},{types:["punctuation","symbol"],style:{color:"rgb(248, 248, 242)"}},{types:["string","char","tag","selector"],style:{color:"rgb(255, 121, 198)"}},{types:["keyword","variable"],style:{color:"rgb(189, 147, 249)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(98, 114, 164)"}},{types:["attr-name"],style:{color:"rgb(241, 250, 140)"}}]},Hz={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"}}]},Vz={plain:{backgroundColor:"#faf8f5",color:"#728fcb"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#b6ad9a"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#063289"}},{types:["property","function"],style:{color:"#b29762"}},{types:["tag-id","selector","atrule-id"],style:{color:"#2d2006"}},{types:["attr-name"],style:{color:"#896724"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule"],style:{color:"#728fcb"}},{types:["placeholder","variable"],style:{color:"#93abdc"}},{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:"#896724"}}]},Kz={plain:{color:"#393A34",backgroundColor:"#f6f8fa"},styles:[{types:["comment","prolog","doctype","cdata"],style:{color:"#999988",fontStyle:"italic"}},{types:["namespace"],style:{opacity:.7}},{types:["string","attr-value"],style:{color:"#e3116c"}},{types:["punctuation","operator"],style:{color:"#393A34"}},{types:["entity","url","symbol","number","boolean","variable","constant","property","regex","inserted"],style:{color:"#36acaa"}},{types:["atrule","keyword","attr-name","selector"],style:{color:"#00a4db"}},{types:["function","deleted","tag"],style:{color:"#d73a49"}},{types:["function-variable"],style:{color:"#6f42c1"}},{types:["tag","selector","keyword"],style:{color:"#00009f"}}]},Uz={plain:{color:"#d6deeb",backgroundColor:"#011627"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(99, 119, 119)",fontStyle:"italic"}},{types:["string","url"],style:{color:"rgb(173, 219, 103)"}},{types:["variable"],style:{color:"rgb(214, 222, 235)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation"],style:{color:"rgb(199, 146, 234)"}},{types:["selector","doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(255, 203, 139)"}},{types:["tag","operator","keyword"],style:{color:"rgb(127, 219, 202)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["property"],style:{color:"rgb(128, 203, 196)"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}}]},$z={plain:{color:"#403f53",backgroundColor:"#FBFBFB"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)",fontStyle:"italic"}},{types:["inserted","attr-name"],style:{color:"rgb(72, 118, 214)",fontStyle:"italic"}},{types:["comment"],style:{color:"rgb(152, 159, 177)",fontStyle:"italic"}},{types:["string","builtin","char","constant","url"],style:{color:"rgb(72, 118, 214)"}},{types:["variable"],style:{color:"rgb(201, 103, 101)"}},{types:["number"],style:{color:"rgb(170, 9, 130)"}},{types:["punctuation"],style:{color:"rgb(153, 76, 195)"}},{types:["function","selector","doctype"],style:{color:"rgb(153, 76, 195)",fontStyle:"italic"}},{types:["class-name"],style:{color:"rgb(17, 17, 17)"}},{types:["tag"],style:{color:"rgb(153, 76, 195)"}},{types:["operator","property","keyword","namespace"],style:{color:"rgb(12, 150, 155)"}},{types:["boolean"],style:{color:"rgb(188, 84, 84)"}}]},Wz="#c5a5c5",qz="#8dc891",Zz={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:Wz}},{types:["attr-value"],style:{color:qz}},{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:qz}},{types:["punctuation"],style:{color:qz}},{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:Wz}},{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}}]},Gz={plain:{color:"#f8f8f2",backgroundColor:"#272822"},styles:[{types:["changed"],style:{color:"rgb(162, 191, 252)",fontStyle:"italic"}},{types:["deleted"],style:{color:"#f92672",fontStyle:"italic"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)",fontStyle:"italic"}},{types:["comment"],style:{color:"#8292a2",fontStyle:"italic"}},{types:["string","url"],style:{color:"#a6e22e"}},{types:["variable"],style:{color:"#f8f8f2"}},{types:["number"],style:{color:"#ae81ff"}},{types:["builtin","char","constant","function","class-name"],style:{color:"#e6db74"}},{types:["punctuation"],style:{color:"#f8f8f2"}},{types:["selector","doctype"],style:{color:"#a6e22e",fontStyle:"italic"}},{types:["tag","operator","keyword"],style:{color:"#66d9ef"}},{types:["boolean"],style:{color:"#ae81ff"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)",opacity:.7}},{types:["tag","property"],style:{color:"#f92672"}},{types:["attr-name"],style:{color:"#a6e22e !important"}},{types:["doctype"],style:{color:"#8292a2"}},{types:["rule"],style:{color:"#e6db74"}}]},Yz={plain:{color:"#bfc7d5",backgroundColor:"#292d3e"},styles:[{types:["comment"],style:{color:"rgb(105, 112, 152)",fontStyle:"italic"}},{types:["string","inserted"],style:{color:"rgb(195, 232, 141)"}},{types:["number"],style:{color:"rgb(247, 140, 108)"}},{types:["builtin","char","constant","function"],style:{color:"rgb(130, 170, 255)"}},{types:["punctuation","selector"],style:{color:"rgb(199, 146, 234)"}},{types:["variable"],style:{color:"rgb(191, 199, 213)"}},{types:["class-name","attr-name"],style:{color:"rgb(255, 203, 107)"}},{types:["tag","deleted"],style:{color:"rgb(255, 85, 114)"}},{types:["operator"],style:{color:"rgb(137, 221, 255)"}},{types:["boolean"],style:{color:"rgb(255, 88, 116)"}},{types:["keyword"],style:{fontStyle:"italic"}},{types:["doctype"],style:{color:"rgb(199, 146, 234)",fontStyle:"italic"}},{types:["namespace"],style:{color:"rgb(178, 204, 214)"}},{types:["url"],style:{color:"rgb(221, 221, 221)"}}]},Xz={plain:{color:"#9EFEFF",backgroundColor:"#2D2A55"},styles:[{types:["changed"],style:{color:"rgb(255, 238, 128)"}},{types:["deleted"],style:{color:"rgba(239, 83, 80, 0.56)"}},{types:["inserted"],style:{color:"rgb(173, 219, 103)"}},{types:["comment"],style:{color:"rgb(179, 98, 255)",fontStyle:"italic"}},{types:["punctuation"],style:{color:"rgb(255, 255, 255)"}},{types:["constant"],style:{color:"rgb(255, 98, 140)"}},{types:["string","url"],style:{color:"rgb(165, 255, 144)"}},{types:["variable"],style:{color:"rgb(255, 238, 128)"}},{types:["number","boolean"],style:{color:"rgb(255, 98, 140)"}},{types:["attr-name"],style:{color:"rgb(255, 180, 84)"}},{types:["keyword","operator","property","namespace","tag","selector","doctype"],style:{color:"rgb(255, 157, 0)"}},{types:["builtin","char","constant","function","class-name"],style:{color:"rgb(250, 208, 0)"}}]},Jz={plain:{backgroundColor:"linear-gradient(to bottom, #2a2139 75%, #34294f)",backgroundImage:"#34294f",color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"},styles:[{types:["comment","block-comment","prolog","doctype","cdata"],style:{color:"#495495",fontStyle:"italic"}},{types:["punctuation"],style:{color:"#ccc"}},{types:["tag","attr-name","namespace","number","unit","hexcode","deleted"],style:{color:"#e2777a"}},{types:["property","selector"],style:{color:"#72f1b8",textShadow:"0 0 2px #100c0f, 0 0 10px #257c5575, 0 0 35px #21272475"}},{types:["function-name"],style:{color:"#6196cc"}},{types:["boolean","selector-id","function"],style:{color:"#fdfdfd",textShadow:"0 0 2px #001716, 0 0 3px #03edf975, 0 0 5px #03edf975, 0 0 8px #03edf975"}},{types:["class-name","maybe-class-name","builtin"],style:{color:"#fff5f6",textShadow:"0 0 2px #000, 0 0 10px #fc1f2c75, 0 0 5px #fc1f2c75, 0 0 25px #fc1f2c75"}},{types:["constant","symbol"],style:{color:"#f92aad",textShadow:"0 0 2px #100c0f, 0 0 5px #dc078e33, 0 0 10px #fff3"}},{types:["important","atrule","keyword","selector-class"],style:{color:"#f4eee4",textShadow:"0 0 2px #393a33, 0 0 8px #f39f0575, 0 0 2px #f39f0575"}},{types:["string","char","attr-value","regex","variable"],style:{color:"#f87c32"}},{types:["parameter"],style:{fontStyle:"italic"}},{types:["entity","url"],style:{color:"#67cdcc"}},{types:["operator"],style:{color:"ffffffee"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["entity"],style:{cursor:"help"}},{types:["inserted"],style:{color:"green"}}]},Qz={plain:{color:"#282a2e",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(197, 200, 198)"}},{types:["string","number","builtin","variable"],style:{color:"rgb(150, 152, 150)"}},{types:["class-name","function","tag","attr-name"],style:{color:"rgb(40, 42, 46)"}}]},eH={plain:{color:"#9CDCFE",backgroundColor:"#1E1E1E"},styles:[{types:["prolog"],style:{color:"rgb(0, 0, 128)"}},{types:["comment"],style:{color:"rgb(106, 153, 85)"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"rgb(86, 156, 214)"}},{types:["number","inserted"],style:{color:"rgb(181, 206, 168)"}},{types:["constant"],style:{color:"rgb(100, 102, 149)"}},{types:["attr-name","variable"],style:{color:"rgb(156, 220, 254)"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"rgb(206, 145, 120)"}},{types:["selector"],style:{color:"rgb(215, 186, 125)"}},{types:["tag"],style:{color:"rgb(78, 201, 176)"}},{types:["tag"],languages:["markup"],style:{color:"rgb(86, 156, 214)"}},{types:["punctuation","operator"],style:{color:"rgb(212, 212, 212)"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"rgb(220, 220, 170)"}},{types:["class-name"],style:{color:"rgb(78, 201, 176)"}},{types:["char"],style:{color:"rgb(209, 105, 105)"}}]},tH={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)"}}]},nH={plain:{color:"#f8fafc",backgroundColor:"#011627"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#569CD6"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#f8fafc"}},{types:["attr-name","variable"],style:{color:"#9CDCFE"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#cbd5e1"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#D4D4D4"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#7dd3fc"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},rH={plain:{color:"#0f172a",backgroundColor:"#f1f5f9"},styles:[{types:["prolog"],style:{color:"#000080"}},{types:["comment"],style:{color:"#6A9955"}},{types:["builtin","changed","keyword","interpolation-punctuation"],style:{color:"#0c4a6e"}},{types:["number","inserted"],style:{color:"#B5CEA8"}},{types:["constant"],style:{color:"#0f172a"}},{types:["attr-name","variable"],style:{color:"#0c4a6e"}},{types:["deleted","string","attr-value","template-punctuation"],style:{color:"#64748b"}},{types:["selector"],style:{color:"#D7BA7D"}},{types:["tag"],style:{color:"#0ea5e9"}},{types:["tag"],languages:["markup"],style:{color:"#0ea5e9"}},{types:["punctuation","operator"],style:{color:"#475569"}},{types:["punctuation"],languages:["markup"],style:{color:"#808080"}},{types:["function"],style:{color:"#0e7490"}},{types:["class-name"],style:{color:"#0ea5e9"}},{types:["char"],style:{color:"#D16969"}}]},oH=(e,t)=>{const{plain:n}=e,r=e.styles.reduce(((e,n)=>{const{languages:r,style:o}=n;return r&&!r.includes(t)||n.types.forEach((t=>{const n=Lz(Lz({},e[t]),o);e[t]=n})),e}),{});return r.root=n,r.plain=Rz(Lz({},n),{backgroundColor:void 0}),r},iH=/\r\n|\r|\n/,aH=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)},sH=(e,t)=>{const n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},cH=e=>{const t=[[]],n=[e],r=[0],o=[e.length];let i=0,a=0,s=[];const c=[s];for(;a>-1;){for(;(i=r[a]++)<o[a];){let e,u=t[a];const l=n[a][i];if("string"==typeof l?(u=a>0?u:["plain"],e=l):(u=sH(u,l.type),l.alias&&(u=sH(u,l.alias)),e=l.content),"string"!=typeof e){a++,t.push(u),n.push(e),r.push(0),o.push(e.length);continue}const f=e.split(iH),d=f.length;s.push({types:u,content:f[0]});for(let e=1;e<d;e++)aH(s),c.push(s=[]),s.push({types:u,content:f[e]})}a--,t.pop(),n.pop(),r.pop(),o.pop()}return aH(s),c},uH=({children:e,language:n,code:r,theme:o,prism:i})=>{const a=n.toLowerCase(),s=((e,n)=>{const[r,o]=t.useState(oH(n,e)),i=t.useRef(),a=t.useRef();return t.useEffect((()=>{n===i.current&&e===a.current||(i.current=n,a.current=e,o(oH(n,e)))}),[e,n]),r})(a,o),c=(e=>t.useCallback((t=>{var n=t,{className:r,style:o,line:i}=n,a=Iz(n,["className","style","line"]);const s=Rz(Lz({},a),{className:wz("token-line",r)});return"object"==typeof e&&"plain"in e&&(s.style=e.plain),"object"==typeof o&&(s.style=Lz(Lz({},s.style||{}),o)),s}),[e]))(s),u=(e=>{const n=t.useCallback((({types:t,empty:n})=>{if(null!=e)return 1===t.length&&"plain"===t[0]?null!=n?{display:"inline-block"}:void 0:1===t.length&&null!=n?e[t[0]]:Object.assign(null!=n?{display:"inline-block"}:{},...t.map((t=>e[t])))}),[e]);return t.useCallback((e=>{var t=e,{token:r,className:o,style:i}=t,a=Iz(t,["token","className","style"]);const s=Rz(Lz({},a),{className:wz("token",...r.types,o),children:r.content,style:n(r)});return null!=i&&(s.style=Lz(Lz({},s.style||{}),i)),s}),[n])})(s),l=(({prism:e,code:n,grammar:r,language:o})=>{const i=t.useRef(e);return t.useMemo((()=>{if(null==r)return cH([n]);const e={code:n,grammar:r,language:o,tokens:[]};return i.current.hooks.run("before-tokenize",e),e.tokens=i.current.tokenize(n,r),i.current.hooks.run("after-tokenize",e),cH(e.tokens)}),[n,r,o])})({prism:i,language:a,code:r,grammar:i.languages[a]});return e({tokens:l,className:`prism-code language-${a}`,style:null!=s?s.root:{},getLineProps:c,getTokenProps:u})},lH=e=>t.createElement(uH,Lz({prism:Bz,theme:eH},e))
|
|
210
210
|
/*! Bundled license information:
|
|
211
211
|
|
|
212
212
|
prismjs/prism.js:
|
|
@@ -218,11 +218,11 @@ prismjs/prism.js:
|
|
|
218
218
|
* @namespace
|
|
219
219
|
* @public
|
|
220
220
|
*)
|
|
221
|
-
*/;const dH=({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(pH,Object.assign({onClick:()=>{UF(r),i(!0)},copied:o},{children:o?e.jsx(dn,{name:"check-circle",color:a.success}):e.jsx(dn,{name:"copy",color:s})}))},pH=W.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}}))),hH=({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(gH,Object.assign({},i,{children:[e.jsx(yH,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(vH,{children:r}),e.jsx(dH,{content:r})]}))},gH=W.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}))),yH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),vH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),mH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),un),bH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),wH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),xH=W.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 CH={exports:{}};CH.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:Z(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function u(e){return s(e)||c(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=c,n.isAssociative=u,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 C(e){return e.value=!1,e}function _(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,L=1,R=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=I||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 H(){return{value:void 0,done:!0}}function V(e){return!!$(e)}function K(e){return e&&"function"==typeof e.next}function U(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function Z(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=R,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(Z,q),Z.prototype.toKeyedSeq=function(){return this},t(G,q),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.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=Z,q.Set=Y,q.Indexed=G;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():K(e)?new oe(e).fromEntrySeq():V(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 ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(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 W(e)?new te(e):K(e)?new oe(e):V(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?H():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,G(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ye(e)?Z(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)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(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 Ce(){throw TypeError("Abstract")}function _e(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,G),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?H():z(e,o,n[t?r-o++:o++])}))},t(ne,Z),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?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),r=0;if(K(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=U(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),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,G),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):H()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,G),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?H():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(Ce,n),t(_e,Ce),t(Se,Ce),t(Oe,Ce),Ce.Keyed=_e,Ce.Indexed=Se,Ce.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=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[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(Ie&&void 0!==(t=Re.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=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Re.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 Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Ie="function"==typeof WeakMap;Ie&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ue,_e),Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return it(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ue.prototype.remove=function(e){return it(this,e,b)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,Cn(e),t,n);return r===b?void 0:r},Ue.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()},Ue.prototype.merge=function(){return dt(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ue.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]}))},Ue.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ue.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]}))},Ue.prototype.sort=function(e){return Vt(fn(this,e))},Ue.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new et(this,e,t)},Ue.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},Ue.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)},Ue.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ze=Ue.prototype;function Ge(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(Ze);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(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 Ge(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:(_(s),_(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(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?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(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,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,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],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}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 c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,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}Ze[qe]=!0,Ze[g]=Ze.remove,Ze.removeIn=Ze.deleteIn,Ge.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},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(_(a),(s||!f)&&_(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(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,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-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>=Ct)return ft(e,d,u,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?u:u^c:u|c,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,c=o===b,u=this.nodes,l=u[s];if(c&&!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<_t)return lt(e,u,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(u,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:(_(a),_(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(_(a),(s||!f)&&_(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[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,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(_(a),s?void _(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(_(i),ct(this,e,t,je(r),[r,o])))},Ge.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 H()};var xt=v/4,Ct=v/2,_t=v/4;function St(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(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 Rt(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):Lt()},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?H():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=Ze.setIn,Et.deleteIn=Et.removeIn=Ze.removeIn,Et.update=Ze.update,Et.updateIn=Ze.updateIn,Et.mergeIn=Ze.mergeIn,Et.mergeDeepIn=Ze.mergeDeepIn,Et.withMutations=Ze.withMutations,Et.asMutable=Ze.asMutable,Et.asImmutable=Ze.asImmutable,Et.wasAltered=Ze.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 c=0;c<r;c++)s.array[c]=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=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Mt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=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(u===l)return Mt;var n=t?--l:u++;s=a(c&&c[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 Lt(){return At||(At=Dt(0,0,y))}function Rt(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=C(x);return t>=Ht(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(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 It(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=It(u,t,n-y,r,o,i);return l===u?e:((a=Nt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(_(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>=Ht(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 c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ht(i),d=Ht(s);d>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=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=u=Nt(u,r),v=c;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,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(l=0;u;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&d<f&&(u=u.removeAfter(r,c,d-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return pe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<v?0:e-1>>>y<<y}function Vt(e){return null==e?$t():Kt(e)?e:$t().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return $e(e)&&l(e)}function Ut(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Ut(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)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(c){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):Ut(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Gt(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===R){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===L?D:L,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(R,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,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(R,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ue().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)?Vt():Ue()).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,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}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(R,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===R?e:z(r,c,u,e):(s=!1,H())}))},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,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(R,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===L?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===R?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):ce(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)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return H()}))},r}function un(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(L,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?Z(i):c(e)?G(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(L,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),U(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?H():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 Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?Z:c(e)?G: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 Cn(e){var t=U(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function _n(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=Ue(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Vt,Ue),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ut(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,Z),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(L,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(Zt,G),Zt.prototype.includes=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,Z),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(L,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)}}}))},Zt.prototype.cacheResult=qt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(_n,_e),_n.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},_n.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},_n.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},_n.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()))},_n.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)},_n.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)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},_n.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},_n.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=_n.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?In():Tn(e)&&!l(e)?e:In().withMutations((function(t){var n=i(e);Ke(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=Ze.removeIn,Sn.merge=Ze.merge,Sn.mergeWith=Ze.mergeWith,Sn.mergeIn=Ze.mergeIn,Sn.mergeDeep=Ze.mergeDeep,Sn.mergeDeepWith=Ze.mergeDeepWith,Sn.mergeDeepIn=Ze.mergeDeepIn,Sn.setIn=Ze.setIn,Sn.update=Ze.update,Sn.updateIn=Ze.updateIn,Sn.withMutations=Ze.withMutations,Sn.asMutable=Ze.asMutable,Sn.asImmutable=Ze.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 Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(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 Ln(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 Rn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Rn(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(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=Ze.withMutations,Dn.asMutable=Ze.asMutable,Dn.asImmutable=Ze.asImmutable,Dn.__empty=In,Dn.__make=Rn,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 Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn($t()))}function Kn(e){return null==e?Gn():Un(e)?e:Gn().unshiftAll(e)}function Un(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,Se),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.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):Zn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(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):Zn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.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):Gn()},Kn.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):Zn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Zn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.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},Kn.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 H()}))},Kn.isStack=Un;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Kn.prototype;function Zn(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 Gn(){return $n||($n=Zn(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[Wn]=!0,qn.withMutations=Ze.withMutations,qn.asMutable=Ze.asMutable,qn.asImmutable=Ze.asImmutable,qn.wasAltered=Ze.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Zt(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 Ue(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(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(R)},every:function(e,t){Ke(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 Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(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 Ke(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(L)},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,un(this,e,t))},flatten:function(e){return gn(this,cn(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=Cn(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+cr(je(e),je(t))|0}:function(e,t){r=r+cr(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 cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}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,cn(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(),G.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(Z,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(_e,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype);var ur={Iterable:n,Seq:q,Collection:Ce,Map:Ue,OrderedMap:Vt,List:St,Stack:Kn,Set:An,OrderedSet:Nn,Record:_n,Range:xe,Repeat:be,is:ve,fromJS:pe};return ur}();var _H=CH.exports,SH=_H.OrderedMap,OH={createFromArray:function(e){return SH(e.map((function(e){return[e.getKey(),e]})))}};var kH=_H,EH=kH.Map,jH=kH.OrderedSet,AH=kH.Record,TH=jH(),MH={style:TH,entity:null},PH=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 DH;var t=EH({style:TH,entity:null}).merge(e),n=LH.get(t);if(n)return n;var o=new r(t);return LH=LH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?jH(t):t,entity:Array.isArray(n)?jH(n):n})},r}(AH(MH)),DH=new PH,LH=EH([[EH(MH),DH]]);PH.EMPTY=DH;var RH=PH;var IH=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 NH=RH,BH=IH,FH=_H,zH=FH.List,HH=FH.Map,VH=FH.OrderedSet,KH=FH.Record,UH=FH.Repeat,$H=VH(),WH=KH({key:"",type:"unstyled",text:"",characterList:zH(),depth:0,data:HH()}),qH=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=zH(UH(NH.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():$H},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){BH(this.getCharacterList(),ZH,e,t)},o.findEntityRanges=function(e,t){BH(this.getCharacterList(),GH,e,t)},r}(WH);function ZH(e,t){return e.getStyle()===t.getStyle()}function GH(e,t){return e.getEntity()===t.getEntity()}var YH=qH;var XH=RH,JH=IH,QH=_H,eV=QH.List,tV=QH.Map,nV=QH.OrderedSet,rV=QH.Record,oV=QH.Repeat,iV=nV(),aV={parent:null,characterList:eV(),data:tV(),depth:0,key:"",text:"",type:"unstyled",children:eV(),prevSibling:null,nextSibling:null},sV=function(e,t){return e.getStyle()===t.getStyle()},cV=function(e,t){return e.getEntity()===t.getEntity()},uV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:aV;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=eV(oV(XH.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():iV},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){JH(this.getCharacterList(),sV,e,t)},o.findEntityRanges=function(e,t){JH(this.getCharacterList(),cV,e,t)},r}(rV(aV)),lV=uV,fV=RH,dV=_H.Map;function pV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(dV([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?fV.applyStyle(l,n):fV.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var hV={add:function(e,t,n){return pV(e,t,n,!0)},remove:function(e,t,n){return pV(e,t,n,!1)}},gV=RH;var yV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,gV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},vV=_H;var mV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(vV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return yV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},bV={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,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=u===f;return(!d&&p||d&&!p)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},wV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var xV=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(wV(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}},CV=xV;var _V=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?CV(!1,"Entity key not found in this range."):CV(!1)),n},SV=bV,OV=_V,kV=xV;function EV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=OV(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?kV(!1,"There should only be one entity range within this removal range."):kV(!1));var d=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=SV.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var jV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=EV(e,t,u,o,s,!0,!0);else if(s&&c){var l=EV(e,t,u,o,s,!1,!0),f=EV(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=EV(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=EV(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},AV={},TV=Math.pow(2,24);var MV=function(){for(var e;void 0===e||AV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*TV).toString(32);return AV[e]=!0,e},PV=lV,DV=MV,LV=_H.OrderedMap,RV=function(e){return e.first()instanceof PV?function(e){var t,n={};return LV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=DV();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)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"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);c.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 LV(e.toArray().map((function(e){var t=DV();return[t,e.set("key",t)]})))}(e)},IV=RH,NV=IH,BV=xV;function FV(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 c,u=function(e,t,n){var r;return NV(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?BV(!1,"Removal range must exist within character list."):BV(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,IV.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var zV=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=FV(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var d=FV(r,f,l);return d!==f&&(o[u]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},HV=RV,VV=zV,KV=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=VV(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return HV(a.slice(c,u).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 UV=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},$V=OH,WV=lV,qV=UV,ZV=xV,GV=RV,YV=_H.List,XV=function(e,t,n,r,o,i){var a=n.first()instanceof WV,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!u.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,c-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),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=$V.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(),c=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),u=c[c.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([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.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(c)),t.setIn([s,"children"],YV(d))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},JV=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?ZV(!1,"`insertFragment` should only be called with a collapsed selection state."):ZV(!1));var o=e.getBlockMap(),i=GV(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof WV&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?ZV(!1,"`insertFragment` should not be called when a container node is selected."):ZV(!1))),1===i.size?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),c=s.getText(),u=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();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:qV(u,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})})}(e,t,o,i.first(),a,s,r):XV(e,t,o,i,a,s)},QV=UV,eK=xV,tK=_H.Repeat;var nK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?eK(!1,"`insertText` should only be called with a collapsed range."):eK(!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(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:QV(c.getCharacterList(),tK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},rK=_H.Map;var oK=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(rK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},iK=lV,aK=function(e,t){if(!(e instanceof iK))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},sK=lV,cK=aK,uK=_H;uK.List;var lK=uK.Map,fK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},dK=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},pK=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},hK=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},gK=function(e,t,n,r){return e.withMutations((function(o){if(fK(t.getKey(),o,(function(e){return e.merge({nextSibling:pK(e,o,r),prevSibling:hK(e,o,r)})})),fK(n.getKey(),o,(function(e){return e.merge({nextSibling:pK(e,o,r),prevSibling:hK(e,o,r)})})),dK(t.getKey(),r).forEach((function(e){return fK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:pK(e,o,r),prevSibling:hK(e,o,r)})}))})),fK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),fK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:pK(e,o,r)})})),fK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:hK(e,o,r)})})),fK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),dK(n.getKey(),r).forEach((function(e){fK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:pK(e,o,r),prevSibling:hK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=cK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?cK(o,t):null}return n}(n,r).forEach((function(e){return fK(e,o,(function(e){return e.merge({nextSibling:pK(e,o,r),prevSibling:hK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();fK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),fK(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){fK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);fK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}fK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},yK=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},vK=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(),c=r.get(o),u=r.get(a),l=c instanceof sK,f=[];if(l){var d=u.getChildKeys(),p=dK(a,r);u.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(dK(cK(u,r),r))}n=c===u?yK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?lK([[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(lK([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=gK(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},mK=lV,bK=MV,wK=_H,xK=xV,CK=oK,_K=wK.List,SK=wK.Map,OK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},kK=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?xK(!1,"Selection range must be collapsed."):xK(!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 CK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=bK(),l=o instanceof mK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:SK()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[u,d]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?xK(!1,"ContentBlockNode must not have children"):xK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();OK(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:_K(i)})})),OK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),OK(r,e,(function(e){return e.merge({nextSibling:o})})),OK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},EK=RH,jK=hV,AK=mV,TK=jV,MK=KV,PK=JV,DK=nK,LK=xV,RK=oK,IK=zV,NK=vK,BK=kK,FK=_H.OrderedSet,zK={replaceText:function(e,t,n,r,o){var i=IK(e,t),a=NK(i,t),s=EK.create({style:r||FK(),entity:o||null});return DK(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?LK(!1,"Target range must be collapsed for `insertText`."):LK(!1)),zK.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=MK(e,t),o=zK.removeRange(e,t,"backward");return zK.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=IK(e,t),i=NK(o,t);return PK(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(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=TK(e.getEntityMap(),i,a,t,n);return NK(e,f)}var d=IK(e,t);return NK(d,t)},splitBlock:function(e,t){var n=IK(e,t),r=NK(n,t);return BK(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return jK.add(e,t,n)},removeInlineStyle:function(e,t,n){return jK.remove(e,t,n)},setBlockType:function(e,t,n){return RK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return RK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return RK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=IK(e,t);return AK(r,t,n)}},HK=zK;var VK=function(e){return Object.keys(e).map((function(t){return e[t]}))};function KK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var UK=IH,$K=VK,WK=_H,qK=WK.List,ZK=WK.Repeat,GK=WK.Record,YK=function(){return!0},XK=GK({start:null,end:null}),JK=GK({start:null,end:null,decoratorKey:null,leaves:null}),QK={generate:function(e,t,n){var r=t.getLength();if(!r)return qK.of(new JK({start:0,end:0,decoratorKey:null,leaves:qK.of(new XK({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):qK(ZK(null,r)),a=t.getCharacterList();return UK(i,tU,YK,(function(e,t){o.push(new JK({start:e,end:t,decoratorKey:i.get(e),leaves:eU(a.slice(e,t).toList(),e)}))})),qK(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 JK(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){KK(e,t,n[t])}))}return e}({},n,{leaves:null!=t?qK(Array.isArray(t)?t:$K(t)).map((function(e){return XK(e)})):null}))}};function eU(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return UK(r,tU,YK,(function(e,r){n.push(new XK({start:e+t,end:r+t}))})),qK(n)}function tU(e,t){return e===t}var nU=QK;var rU=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,_H.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),oU=rU;var iU=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 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 sU=oU,cU=xV,uU=iU,lU=(0,_H.Map)(),fU=uU();function dU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var pU={getLastCreatedEntityKey:function(){return dU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),pU.__getLastCreatedEntityKey()},create:function(e,t,n){return dU("DraftEntity.create","contentState.createEntity"),pU.__create(e,t,n)},add:function(e){return dU("DraftEntity.add","contentState.addEntity"),pU.__add(e)},get:function(e){return dU("DraftEntity.get","contentState.getEntity"),pU.__get(e)},__getAll:function(){return lU},__loadWithEntities:function(e){lU=e,fU=uU()},mergeData:function(e,t){return dU("DraftEntity.mergeData","contentState.mergeEntityData"),pU.__mergeData(e,t)},replaceData:function(e,t){return dU("DraftEntity.replaceData","contentState.replaceEntityData"),pU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return fU},__create:function(e,t,n){return pU.__add(new sU({type:e,mutability:t,data:n||{}}))},__add:function(e){return fU=uU(),lU=lU.set(fU,e),fU},__get:function(e){var t=lU.get(e);return t||("production"!==process.env.NODE_ENV?cU(!1,"Unknown DraftEntity key: %s.",e):cU(!1)),t},__mergeData:function(e,t){var n=pU.__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){aU(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return lU=lU.set(e,o),o},__replaceData:function(e,t){var n=pU.__get(e).set("data",t);return lU=lU.set(e,n),n}},hU=pU;var 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.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,_H.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),yU=gU,vU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},mU=new RegExp("\r","g");var bU=function(e){return e.replace(mU,"")};function wU(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){xU(e,t,n[t])}))}return e}function xU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var CU=OH,_U=RH,SU=YH,OU=lV,kU=hU,EU=yU,jU=MV,AU=VK,TU=vU,MU=_H,PU=bU,DU=MU.List,LU=MU.Record,RU=MU.Repeat,IU=MU.Map,NU=MU.OrderedMap,BU=LU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),FU=TU("draft_tree_data_support")?OU:SU,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 kU},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 kU.__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 kU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return kU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return kU.__replaceData(e,t),this},o.addEntity=function(e){return kU.__add(e),this},o.getEntity=function(e){return kU.__get(e)},o.getAllEntities=function(){return kU.__getAll()},o.loadWithEntities=function(e){return kU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=CU.createFromArray(n),i=o.isEmpty()?new EU:EU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||kU,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).map((function(e){return e=PU(e),new FU({key:jU(),text:e,type:"unstyled",characterList:DU(RU(_U.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(wU({},e,{blockMap:NU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new EU(e.selectionBefore),selectionAfter:new EU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new FU(wU({},e,{data:IU(e.data),characterList:null!=t?DU((Array.isArray(t)?t:AU(t)).map((function(e){return _U.fromJS(e)}))):void 0}))},r}(BU),HU=zU,VU=xV,KU="LTR",UU="RTL",$U=null;function WU(e){return e===KU||e===UU}function qU(e){return WU(e)||("production"!==process.env.NODE_ENV?VU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):VU(!1)),e===KU?"ltr":"rtl"}function ZU(e){$U=e}var GU={NEUTRAL:"NEUTRAL",LTR:KU,RTL:UU,isStrong:WU,getHTMLDir:qU,getHTMLDirIfDifferent:function(e,t){return WU(e)||("production"!==process.env.NODE_ENV?VU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):VU(!1)),WU(t)||("production"!==process.env.NODE_ENV?VU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):VU(!1)),e===t?null:qU(e)},setGlobalDir:ZU,initGlobalDir:function(){ZU(KU)},getGlobalDir:function(){return $U||this.initGlobalDir(),$U||("production"!==process.env.NODE_ENV?VU(!1,"Global direction not set."):VU(!1)),$U}},YU=GU,XU=xV,JU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",QU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",e$=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+JU+QU+"]"),t$=new RegExp("["+JU+QU+"]");function n$(e){var t=e$.exec(e);return null==t?null:t[0]}function r$(e){var t=n$(e);return null==t?YU.NEUTRAL:t$.exec(t)?YU.RTL:YU.LTR}function o$(e,t){if(t=t||YU.NEUTRAL,!e.length)return t;var n=r$(e);return n===YU.NEUTRAL?t:n}function i$(e,t){return t||(t=YU.getGlobalDir()),YU.isStrong(t)||("production"!==process.env.NODE_ENV?XU(!1,"Fallback direction must be a strong direction"):XU(!1)),o$(e,t)}var a$={firstStrongChar:n$,firstStrongCharDir:r$,resolveBlockDir:o$,getDirection:i$,isDirectionLTR:function(e,t){return i$(e,t)===YU.LTR},isDirectionRTL:function(e,t){return i$(e,t)===YU.RTL}};function s$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c$,u$=a$,l$=GU,f$=xV,d$=function(){function e(e){s$(this,"_defaultDir",void 0),s$(this,"_lastDir",void 0),e?l$.isStrong(e)||("production"!==process.env.NODE_ENV?f$(!1,"Default direction must be a strong direction (LTR or RTL)"):f$(!1)):e=l$.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=u$.getDirection(e,this._lastDir),this._lastDir},e}(),p$=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},h$=d$,g$=_H,y$=p$,v$=g$.OrderedMap;function m$(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){b$(e,t,n[t])}))}return e}function b$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w$=nU,x$=HU,C$={getDirectionMap:function(e,t){c$?c$.reset():c$=new h$;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return y$(c$).getDirection(e.getText())})),o=v$(n.keySeq().zip(r));return null!=t&&g$.is(t,o)?t:o}},_$=yU,S$=_H,O$=S$.OrderedSet,k$=S$.Record,E$=S$.Stack,j$=S$.OrderedMap,A$=S$.List,T$=k$({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:E$(),selection:null,treeMap:null,undoStack:E$()}),M$=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(x$.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:E$(),redoStack:E$(),decorator:n||null,selection:_$.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=m$({},e,{treeMap:D$(n,e.decorator),directionMap:C$.getDirectionMap(n)});return new t(new T$(r))},t.fromJS=function(e){return new t(new T$(m$({},e,{directionMap:null!=e.directionMap?j$(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?O$(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?x$.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?E$(e.redoStack.map((function(e){return x$.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new _$(e.selection):e.selection,treeMap:null!=e.treeMap?j$(e.treeMap).map((function(e){return A$(e).map((function(e){return w$.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?E$(e.undoStack.map((function(e){return x$.fromJS(e)}))):e.undoStack,currentContent:x$.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 w$.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):D$(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(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return w$.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){b$(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 L$(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 L$(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 P$(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),P$(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new _$({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=C$.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(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:E$(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},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=C$.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=C$.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 P$(e,t,n){return M$.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function D$(e,t){return e.getBlockMap().map((function(n){return w$.generate(e,n,t)})).toOrderedMap()}function L$(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):O$()}var R$=M$,I$=lV,N$=aK,B$=_H,F$=xV,z$=B$.OrderedMap,H$=B$.List,V$=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},K$=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){V$(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),V$(l,e,(function(e){return e.merge({nextSibling:u})})),V$(u,e,(function(e){return e.merge({prevSibling:l})})),V$(d,e,(function(e){return e.merge({prevSibling:a})})),V$(p,e,(function(e){return e.merge({nextSibling:a})})),V$(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:H$(o)})})),V$(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function U$(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){$$(e,t,n[t])}))}return e}function $$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W$=OH,q$=RH,Z$=YH,G$=lV,Y$=HK,X$=R$,J$=MV,Q$=_H,eW=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?F$(!1,"Replacing blocks is not supported."):F$(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?F$(!1,"Block cannot be moved next to itself."):F$(!1));var a=e.getBlockMap(),s=t instanceof I$,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=N$(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){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=z$();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?F$(!1,"Block cannot be moved next to itself."):F$(!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?F$(!1,"Block cannot be moved next to itself."):F$(!1)),p=l.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:K$(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},tW=vU("draft_tree_data_support"),nW=tW?G$:Z$,rW=Q$.List,oW=Q$.Repeat,iW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=Y$.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=Y$.splitBlock(i,a),c=s.getSelectionAfter(),u=Y$.setBlockType(s,c,"atomic"),l=q$.create({entity:t}),f={key:J$(),type:"atomic",text:n,characterList:rW(oW(l,n.length))},d={key:J$(),type:"unstyled"};tW&&(f=U$({},f,{nextSibling:d.key}),d=U$({},d,{prevSibling:f.key}));var p=[new nW(f),new nW(d)],h=W$.createFromArray(p),g=Y$.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return X$.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=eW(i,t,s,r)}else{var c=Y$.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=eW(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=eW(c,t,l,"after");else{var f=Y$.splitBlock(c,u),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=eW(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return X$.push(e,h,"move-block")}};var aW=_H.List,sW=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)})),aW(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 cW=sW;function uW(e){return e.replace(/\//g,"-")}var lW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(uW).join(" "):Array.prototype.map.call(arguments,uW).join(" ")},fW=t,dW=lW,pW=(0,_H.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:fW.createElement("ul",{className:dW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:fW.createElement("ol",{className:dW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:fW.createElement("pre",{className:dW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),hW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},gW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="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",C="ASUS",_="BlackBerry",S="Browser",O="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",M="Motorola",P="Opera",D="Samsung",L="Sharp",R="Sony",I="Xiaomi",N="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},K=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!u;)if(u=d[n++].exec(e))for(s=0;s<p.length;s++)l=u[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=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(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={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"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,d],[/opios[\/ ]+([\w\.]+)/i],[d,[u,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[u,P]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],d],[/\bfocus\/([\w\.]+)/i],[d,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[u,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[u,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[d,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],d],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[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],[u,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[u,k+" 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],[u,d],[/(cobalt)\/([\w\.]+)/i],[u,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,H]],[/((?: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/,"",H]],[/(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,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,j],[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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,I],[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],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[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],[c,[f,M],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,M],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,_],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,C],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,C],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,L],[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,c,[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,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,N],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,N],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,R],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,O+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,L],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,R],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,I],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,N],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[u,"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],[u,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[d,U,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[d,U,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,d],[/\(bb(10);/i],[d,[u,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[u,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"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],[u,d],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,d]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=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}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[d]=r,K.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[p]=r,K.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,K.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[d]=r,K.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[d]=r,K.call(e,o,h.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>350?V(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,d,"major"]),q.CPU=F([p]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,d]),e.exports&&(t=e.exports=q),t.UAParser=q;var Z=typeof n!==i&&(n.jQuery||n.Zepto);if(Z&&!Z.ua){var G=new q;Z.ua=G.getResult(),Z.ua.get=function(){return G.getUA()},Z.ua.set=function(e){G.setUA(e);var t=G.getResult();for(var n in t)Z.ua[n]=t[n]}}}("object"==typeof window?window:st)}(gW,gW.exports);var yW="Unknown",vW={"Mac OS":"Mac OS X"};var mW,bW=(new(0,gW.exports)).getResult(),wW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(bW.browser.version),xW={browserArchitecture:bW.cpu.architecture||yW,browserFullVersion:bW.browser.version||yW,browserMinorVersion:wW.minor||yW,browserName:bW.browser.name||yW,browserVersion:bW.browser.major||yW,deviceName:bW.device.model||yW,engineName:bW.engine.name||yW,engineVersion:bW.engine.version||yW,platformArchitecture:bW.cpu.architecture||yW,platformName:(mW=bW.os.name,vW[mW]||mW||yW),platformVersion:bW.os.version||yW,platformFullVersion:bW.os.version||yW},CW=xV,_W=/\./,SW=/\|\|/,OW=/\s+\-\s+/,kW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,EW=/^(\d*)(.*)/;function jW(e,t){var n=e.split(SW);return n.length>1?n.some((function(e){return FW.contains(e,t)})):function(e,t){var n=e.split(OW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?CW(!1,'the "-" operator expects exactly 2 operands'):CW(!1)),1===n.length)return AW(n[0],t);var r=n[0],o=n[1];return LW(r)&&LW(o)||("production"!==process.env.NODE_ENV?CW(!1,'operands to the "-" operator must be simple (no modifiers)'):CW(!1)),AW(">="+r,t)&&AW("<="+o,t)}(e=n[0].trim(),t)}function AW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(_W),r=PW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return TW(n,i);case"<=":return function(e,t){var n=BW(e,t);return-1===n||0===n}(n,i);case">=":return MW(n,i);case">":return function(e,t){return 1===BW(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);DW(i)&&(r[o]=i+1+"");return MW(e,n)&&TW(e,r)}(n,i);default:return function(e,t){return 0===BW(e,t)}(n,i)}}function TW(e,t){return-1===BW(e,t)}function MW(e,t){var n=BW(e,t);return 1===n||0===n}function PW(e){var t=e.split(_W),n=t[0].match(kW);return n||("production"!==process.env.NODE_ENV?CW(!1,"expected regex to match but it did not"):CW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function DW(e){return!isNaN(e)&&isFinite(e)}function LW(e){return!PW(e).modifier}function RW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function IW(e,t){var n=e.match(EW)[1],r=t.match(EW)[1],o=parseInt(n,10),i=parseInt(r,10);return DW(o)&&DW(i)&&o!==i?NW(o,i):NW(e,t)}function NW(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?CW(!1,'"a" and "b" must be of the same type'):CW(!1)),e>t?1:e<t?-1:0}function BW(e,t){for(var n=function(e,t){RW(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 RW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=IW(r[i],o[i]);if(a)return a}return 0}var FW={contains:function(e,t){return jW(e.trim(),t.trim())}},zW=FW,HW=Object.prototype.hasOwnProperty;var VW=function(e,t,n){if(!e)return null;var r={};for(var o in e)HW.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var KW=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},UW=xW,$W=zW;function WW(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,$W.contains(o,t))}function qW(e){return"Windows"===UW.platformName?e.replace(/^\s*NT/,""):e}var ZW=VW({isBrowser:function(e){return WW(UW.browserName,UW.browserFullVersion,e)},isBrowserArchitecture:function(e){return WW(UW.browserArchitecture,null,e)},isDevice:function(e){return WW(UW.deviceName,null,e)},isEngine:function(e){return WW(UW.engineName,UW.engineVersion,e)},isPlatform:function(e){return WW(UW.platformName,UW.platformFullVersion,e,qW)},isPlatformArchitecture:function(e){return WW(UW.platformArchitecture,null,e)}},KW);var GW=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var YW=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},XW=YW;var JW=function e(t){if(XW(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},QW=GW,eq=JW;var tq=function(e){for(var t=e;t&&t!==QW(e).documentElement;){var n=eq(t);if(null!=n)return n;t=t.parentNode}return null};var nq=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function rq(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=ZW,iq=tq,aq=nq,sq=xV,cq=p$,uq=_H.Map,lq={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},fq=oq.isBrowser("IE <= 11"),dq=function(){function e(e){var t=this;rq(this,"observer",void 0),rq(this,"container",void 0),rq(this,"mutations",void 0),rq(this,"onCharData",void 0),this.container=e,this.mutations=uq();var n=aq(e);n.MutationObserver&&!fq?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?sq(!1,"Expected target to be an instance of Node"):sq(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,lq):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=uq(),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 fq?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=cq(iq(e.target));this.mutations=this.mutations.set(n,t)}},e}(),pq="-",hq={encode:function(e,t,n){return e+pq+t+pq+n},decode:function(e){var t=e.split(pq).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(pq),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},gq={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},yq={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var vq=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},mq=xV,bq=vq;var wq=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?mq(!1,"Missing editorNode"):mq(!1)),bq(t.firstChild)||("production"!==process.env.NODE_ENV?mq(!1,"editorNode.firstChild is not an HTMLElement"):mq(!1)),t.firstChild},xq=hq,Cq=p$;var _q=function(e,t,n,r,o){var i=Cq(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=xq.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=xq.decode(r),f=l.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=p.get("start"),y=u?h+n:null,v=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},Sq=tq,Oq=JW,kq=_q,Eq=xV,jq=YW,Aq=p$;function Tq(e,t,n){var r=t,o=Sq(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?Eq(!1,"Unknown node in selection range."):Eq(!1)),e===r)&&(r=r.firstChild,jq(r)||("production"!==process.env.NODE_ENV?Eq(!1,"Invalid DraftEditorContents node."):Eq(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?Eq(!1,"Invalid DraftEditorContents structure."):Eq(!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&&(jq(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Oq(e.firstChild));)e=e.firstChild;return e}(r);i=Aq(Oq(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(Oq(s)){var l=function(e){for(;e.lastChild&&(jq(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Oq(e.lastChild));)e=e.lastChild;return e}(s);c=Aq(Oq(l)),u=Mq(l)}else c=Aq(o),u=Mq(s);return{key:c,offset:u}}function Mq(e){var t=e.textContent;return"\n"===t?0:t.length}var Pq=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:kq(e,Aq(Sq(n)),r,Aq(Sq(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:Aq(Sq(n)),offset:r},u=Tq(t,o,i)):s?(u={key:Aq(Sq(o)),offset:i},c=Tq(t,n,r)):(c=Tq(t,n,r),u=Tq(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:kq(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},Dq=Pq;var Lq=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}:Dq(e,t,r,o,i,a)},Rq=yq,Iq=R$,Nq=wq,Bq=Lq;var Fq=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();Rq.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=Bq(n,Nq(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Iq.forceSelection(n,o):Iq.acceptSelection(n,o),e.update(n))}};var zq={notEmptyKey:function(e){return null!=e&&""!=e}},Hq=zq.notEmptyKey;function Vq(e,t){return Hq(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var Kq=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:Vq(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),Vq(e.getEntityMap(),n)},Uq=dq,$q=HK,Wq=hq,qq=R$,Zq=gq,Gq=Fq,Yq=wq,Xq=Lq,Jq=Kq,Qq=p$,eZ=ZW.isBrowser("IE"),tZ=!1,nZ=!1,rZ=null;var oZ,iZ,aZ={onCompositionStart:function(e){nZ=!0,function(e){rZ||(rZ=new Uq(Yq(e))).start()}(e)},onCompositionEnd:function(e){tZ=!1,nZ=!1,setTimeout((function(){tZ||aZ.resolveComposition(e)}),20)},onSelect:Gq,onKeyDown:function(e,t){if(!nZ)return aZ.resolveComposition(e),void e._onKeyDown(t);t.which!==Zq.RIGHT&&t.which!==Zq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===Zq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!nZ){var t=Qq(rZ).stopAndFlushMutations();rZ=null,tZ=!0;var n=qq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=Wq.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),d=Jq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(u);r=$q.replaceText(r,f,e,p,d),n=qq.set(n,{currentContent:r})}));var o=Xq(n,Yq(e)).selectionState;e.restoreEditorDOM();var i=eZ?qq.forceSelection(n,o):qq.acceptSelection(n,o);e.update(qq.push(i,r,"insert-characters"))}else e.update(n)}}},sZ=aZ;function cZ(){if(iZ)return oZ;iZ=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}var r=hq,o=t,i=a$,a=GU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return oZ=s}function uZ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fZ=t,dZ=xV,pZ=YW,hZ=ZW.isBrowser("IE <= 11");var gZ=function(e){var t,n;function r(t){var n;return lZ(uZ(n=e.call(this,t)||this),"_forceFlag",void 0),lZ(uZ(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;pZ(t)||("production"!==process.env.NODE_ENV?dZ(!1,"node is not an Element"):dZ(!1));var r=t;return n?!function(e){return hZ?"\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},hZ?fZ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):fZ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return hZ?fZ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):fZ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):fZ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(fZ.Component),yZ=gZ,vZ=YW;var mZ=function(e){return!(!e||!e.ownerDocument)&&(vZ(e)&&"BR"===e.nodeName)},bZ={initODS:function(){},handleExtensionCausedError:function(){}};var wZ=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))},xZ=wZ;var CZ=function(e){return xZ(e)&&3==e.nodeType},_Z=CZ;var SZ=function e(t,n){return!(!t||!n)&&(t===n||!_Z(t)&&(_Z(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var OZ=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}},kZ=bZ,EZ=yq,jZ=SZ,AZ=OZ,TZ=GW,MZ=xV,PZ=YW,DZ=ZW.isBrowser("IE");function LZ(e,t){if(!e)return"[empty]";var n=RZ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(PZ(n)||("production"!==process.env.NODE_ENV?MZ(!1,"Node must be an Element if it is not a text node."):MZ(!1)),n.outerHTML)}function RZ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return TZ(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(RZ(i[a],t));return o}function IZ(e,t){for(var n=e,r=n;n;){if(PZ(n)&&r.hasAttribute("contenteditable"))return LZ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function NZ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function BZ(e,t,n,r){var o=AZ();if(e.extend&&null!=t&&jZ(o,t)){n>NZ(t)&&EZ.logSelectionStateFailure({anonymizedDom:IZ(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 EZ.logSelectionStateFailure({anonymizedDom:IZ(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 FZ(e,t,n,r){var o=TZ(t).createRange();if(n>NZ(t)&&(EZ.logSelectionStateFailure({anonymizedDom:IZ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),kZ.handleExtensionCausedError()),o.setStart(t,n),DZ)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 zZ=function(e,t,n,r,o){var i=TZ(t);if(jZ(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=u,c=l,u=d,l=p,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),FZ(a,t,c-r,e),void BZ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),FZ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),FZ(a,t,c-r,e),BZ(a,y,v,e)}}else h&&(a.removeAllRanges(),FZ(a,t,c-r,e)),g&&BZ(a,t,l-r,e)}},HZ=Hm;var VZ,KZ,UZ=yZ,$Z=t,WZ=xV,qZ=mZ,ZZ=zZ,GZ=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 function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(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?WZ(!1,"Missing node"):WZ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?WZ(!1,"Missing child"):WZ(!1)),u.nodeType===Node.TEXT_NODE?c=u:qZ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?WZ(!1,"Missing targetNode"):WZ(!1)),ZZ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?WZ(!1,"Missing leafNode"):WZ(!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,c=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()),HZ(e,r,n)}),{});if(i){var u=i(s,t);c=HZ(c,u)}return $Z.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},$Z.createElement(UZ,null,n))},r}($Z.Component),YZ=GZ;function XZ(){if(KZ)return VZ;KZ=1;var e=cZ(),n=YZ,r=hq,o=t,i=lW;_H.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:p?h:null,forceSelection:d,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return VZ=a}function JZ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var QZ={getTop:function(e){var t=e.ownerDocument;return JZ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;JZ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return JZ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;JZ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},eG=/-(.)/g;var tG=function(e){return e.replace(eG,(function(e,t){return t.toUpperCase()}))},nG=/([A-Z])/g;var rG=function(e){return e.replace(nG,"-$1").toLowerCase()},oG=tG,iG=rG;function aG(e){return null==e?e:String(e)}var sG=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return aG(n.getPropertyValue(iG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return aG(n.getPropertyValue(iG(t)));if("display"===t)return"none"}return e.currentStyle?aG("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[oG(t)]):aG(e.style&&e.style[oG(t)])};function cG(e,t){var n=uG.get(e,t);return"auto"===n||"scroll"===n}var uG={get:sG,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(cG(e,"overflow")||cG(e,"overflowY")||cG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},lG=uG,fG=SZ;var dG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!fG(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 pG=function(e){var t=dG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},hG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var gG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:hG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},yG=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 vG=function(e){var t=gG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=yG(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 mG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function bG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function wG(){return{width:window.innerWidth||mG(),height:window.innerHeight||bG()}}wG.withoutScrollbars=function(){return{width:mG(),height:bG()}};var xG,CG,_G,SG,OG=wG;function kG(){if(CG)return xG;CG=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}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=XZ(),a=hq,s=t,c=QZ,u=lG,l=pG,f=vG,d=OG,p=xV,h=vq;_H.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=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}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.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||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.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=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,_=t.forceSelection,S=t.selection,O=t.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=v(i,u),g=d.CustomComponent||w,b=y(i,c),x=b.Element,C=b.wrapperTemplate,_=m(i,p,o,l,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,_,s.createElement(g,S))),!C||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,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:_,hasSelection:g(S,E),selection:S,tree:O});if(o.getParentKey())return M;var P=y(o,c).Element,D=m(o,p,j,l,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return xG=b}var EG=Hm;function jG(){return jG=EG||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},jG.apply(this,arguments)}var AG,TG,MG,PG,DG=YZ,LG=hq,RG=t,IG=QZ,NG=lG,BG=a$,FG=GU,zG=lW,HG=pG,VG=vG,KG=OG,UG=xV,$G=vq,WG=p$,qG=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},ZG=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 function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(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||qG(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=NG.getScrollParent(n),i=VG(o);if(o===window){var a=HG(n);(r=a.y+a.height-KG().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{$G(n)||("production"!==process.env.NODE_ENV?UG(!1,"blockNode is not an HTMLElement"):UG(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&IG.setTop(o,IG.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=qG(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=LG.encode(n,s,c),f=a.get("start"),d=a.get("end");return RG.createElement(DG,{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&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var d=WG(e.props.decorator),p=d.getComponentForKey(f);if(!p)return l;var h=d.getPropsForKey(f),g=LG.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=FG.getHTMLDirIfDifferent(BG.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 RG.createElement(p,jG({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=zG({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return RG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(RG.Component),GG=ZG;var YG=vU("draft_tree_data_support")?function(){if(SG)return _G;SG=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}var r=kG(),o=hq,i=t,a=p$,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.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(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=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=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:d,editorState:f,forceSelection:y,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},_=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:_,key:x,offsetKey:o.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=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return _G=s}():function(){if(PG)return MG;PG=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}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=GG,a=hq,s=t,c=lW,u=(TG||(TG=1,AG=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}),AG),l=p$,f=function(e,t,n,r){return c({"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 t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.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(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=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(),C=l(h.getDirectionMap()),_=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<_.length;E++){var j=_[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var R=v||C.get(A),I=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:R,forceSelection:w,offsetKey:I,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,H=j.getDepth(),V="";if(c&&(V=c(j)),"li"===z)V=u(V,f(T,H,k!==F||null===O||H>O,R));var K=P||i,U={className:V,"data-block":!0,"data-editor":g,"data-offset-key":I,key:A};void 0!==L&&(U=r({},U,{contentEditable:L,suppressContentEditableWarning:!0}));var $=s.createElement(z,U,s.createElement(K,n({},N,{key:A})));S.push({block:$,wrapperTemplate:F,key:A,offsetKey:I}),O=F?j.getDepth():null,k=F}for(var W=[],q=0;q<S.length;){var Z=S[q];if(Z.wrapperTemplate){var G=[];do{G.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===Z.wrapperTemplate);var Y=s.cloneElement(Z.wrapperTemplate,{key:Z.key+"-wrap","data-offset-key":Z.offsetKey},G);W.push(Y)}else W.push(Z.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return MG=d}(),XG={isImage:function(e){return"image"===JG(e)[0]},isJpeg:function(e){var t=JG(e);return XG.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function JG(e){return e.split("/")}var QG=XG,eY=xV;var tY=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?eY(!1,"toArray: Array-like object expected"):eY(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?eY(!1,"toArray: Object needs a length property"):eY(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?eY(!1,"toArray: Object should have keys for indices"):eY(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?eY(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):eY(!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 nY(e){return function(){return e}}var rY=function(){};rY.thatReturns=nY,rY.thatReturnsFalse=nY(!1),rY.thatReturnsTrue=nY(!0),rY.thatReturnsNull=nY(null),rY.thatReturnsThis=function(){return this},rY.thatReturnsArgument=function(e){return e};var oY=rY,iY=QG,aY=tY,sY=oY,cY=new RegExp("\r\n","g"),uY={"text/rtf":1,"text/html":1};function lY(e){if("file"==e.kind)return e.getAsFile()}var fY=function(){function e(e){this.data=e,this.types=e.types?aY(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return uY[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(cY,"\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(!iY.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(lY).filter(sY.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),dY=fY,pY=xV,hY=/\.textClipping$/,gY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var yY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in gY))return void t("");if(""===e.type){var n="";return hY.test(e.name)&&(n=e.name.replace(hY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?pY(!1,'We should be calling "FileReader.readAsText" which returns a string'):pY(!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 vY=function(e){return"handled"===e||!0===e},mY=dY,bY=HK,wY=R$,xY=tq,CY=GW,_Y=yY,SY=_q,OY=nq,kY=vY,EY=p$;var jY={onDragEnd:function(e){e.exitCurrentMode(),AY(e)},onDrop:function(e,t){var n=new mY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=CY(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=EY(n),r=EY(r);var a=EY(xY(n));return SY(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&&kY(e.props.handleDroppedFiles(o,i)))return;_Y(i,(function(t){t&&e.update(TY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&kY(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=bY.moveText(e.getCurrentContent(),e.getSelection(),t);return wY.push(e,n,"insert-fragment")}(r,o)):e.update(TY(r,o,n.getText()))),AY(e)}}}};function AY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:OY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function TY(e,t,n){var r=bY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return wY.push(e,r,"insert-fragment")}var MY=jY;var PY=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,c={},u=!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 c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),u=!1}}}}}("undefined"==typeof self?st:self);var DY=st.setImmediate,LY=HK,RY=R$,IY=Kq,NY=vY,BY=PY,FY=p$,zY=DY,HY="'",VY="/",KY=ZW.isBrowser("Firefox");function UY(e,t,n,r,o){var i=LY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return RY.push(e,i,"insert-characters",o)}var $Y=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&&NY(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(UY(n,r,n.getCurrentInlineStyle(),IY(n.getCurrentContent(),n.getSelection()),!0));var s,c=UY(n,r,n.getCurrentInlineStyle(),IY(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=BY(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=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"),c=s+(s>=i?r.length:0),u=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!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=KY&&(s==HY||s==VY)),u||(u=FY(c.getDirectionMap()).get(a)!==FY(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=RY.set(c,{forceSelection:!0}),void e.update(c);c=RY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,zY((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},WY=R$,qY=SZ,ZY=OZ;var GY=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&ZY(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&qY(o,r.anchorNode)&&qY(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(WY.acceptSelection(i,s))}},YY=R$;var XY=function(e,t){e.setMode("composite"),e.update(YY.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},JY=KV;var QY=function(e){var t=e.getSelection();return t.isCollapsed()?null:JY(e.getCurrentContent(),t)},eX=QY;var tX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(eX(e._latestEditorState))};var nX=HK,rX=R$,oX=lG,iX=QY,aX=vG,sX=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 cX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(sX(i)){var a=i;n=aX(oX.getScrollParent(a))}var s=iX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=nX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return rX.push(e,t,"remove-range")}(r))}),0)}};var uX=function(e,t){e.setMode("drag"),t.preventDefault()};var lX=function(e){e._internalDrag=!0,e.setMode("drag")},fX=R$,dX=ZW;var pX=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),dX.isBrowser("Chrome < 60.0.3081.0")?e.update(fX.forceSelection(n,o)):e.update(fX.acceptSelection(n,o))}},hX=xV,gX=55296,yX=57343,vX=/[\uD800-\uDFFF]/;function mX(e){return gX<=e&&e<=yX}function bX(e){return vX.test(e)}function wX(e,t){return 1+mX(e.charCodeAt(t))}function xX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!bX(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+=wX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=wX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=wX(e,i);return e.substring(o,i)}var CX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=wX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:wX,hasSurrogateUnit:bX,isCodeUnitInSurrogateRange:mX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?hX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):hX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return gX<=n&&n<=56319&&56320<=r&&r<=yX},strlen:function(e){if(!bX(e))return e.length;for(var t=0,n=0;n<e.length;n+=wX(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 xX(e,t=t<n?t:n,r)},substr:xX},_X=CX,SX=oY;function OX(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 kX="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];OX.apply(void 0,[t].concat(r))}}:SX,EX=kX,jX=EX;var AX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&jX(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 c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},TX=HK,MX=vU("draft_tree_data_support");var PX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(MX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(MX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return TX.removeRange(o,i,n)},DX=R$,LX=_X,RX=AX,IX=PX;var NX=function(e){var t=IX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return RX(e,i?LX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return DX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},BX=HK,FX=hq,zX=R$,HX=zq.notEmptyKey,VX=tq,KX=NX,UX=p$,$X=ZW.isEngine("Gecko");var WX=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 c=r.textContent,u=e._latestEditorState,l=UX(VX(r)),f=FX.decode(l),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(d).getIn([p,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(y,v);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,_,S,O=u.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=HX(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=BX.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if($X)x=n.anchorOffset,C=n.focusOffset,S=(_=y+Math.min(x,C))+Math.abs(x-C),x=_,C=S;else{var P=c.length-w.length;_=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:C})});e.update(zX.push(u,D,T))}else{var L=t.nativeEvent.inputType;if(L){var R=function(e,t){return"deleteContentBackward"===e?KX(t):t}(L,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},qX=gq;var ZX=function(e){return e.which===qX.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},GX=ZX,YX=ZW.isPlatform("Mac OS X"),XX={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return YX&&e.altKey},usesMacOSHeuristics:function(){return YX},hasCommandModifier:function(e){return YX?!!e.metaKey&&!e.altKey:XX.isCtrlKeyCommand(e)},isSoftNewlineEvent:GX},JX=XX,QX=HK,eJ=R$,tJ=KV,nJ=p$,rJ=null,oJ={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=nJ(r),rJ=tJ(t,r);var s=QX.removeRange(t,r,"forward");return s===t?e:eJ.push(e,s,"remove-range")},paste:function(e){if(!rJ)return e;var t=QX.replaceWithFragment(e.getCurrentContent(),e.getSelection(),rJ);return eJ.push(e,t,"insert-fragment")}},iJ=xV;var aJ=ZW.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?iJ(!1,"Found an unexpected detached subtree when getting range client rects."):iJ(!1)}:function(e){return Array.from(e.getClientRects())},sJ=aJ,cJ=_X,uJ=GW,lJ=sJ,fJ=xV;function dJ(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 pJ(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 hJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?fJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):fJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=uJ(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?fJ(!1,"Missing document.body"):fJ(!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);dJ(lJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?fJ(!1,"Found unexpected detached subtree when traversing."):fJ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&cJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!dJ(lJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=pJ(i=i.childNodes[c])}return e.setStart(r,o),e},gJ=R$,yJ=hJ,vJ=Pq,mJ=AX,bJ=PX;var wJ=function(e,t){var n=bJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return mJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=yJ(r),vJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:gJ.push(e,n,"remove-range")},xJ="['‘’]",CJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),_J=new RegExp("^(?:"+CJ+")*(?:"+xJ+"|(?!"+CJ+").)*(?:(?!"+CJ+").)"),SJ=new RegExp("(?:(?!"+CJ+").)(?:"+xJ+"|(?!"+CJ+").)*(?:"+CJ+")*$");function OJ(e,t){var n=t?SJ.exec(e):_J.exec(e);return n?n[0]:e}var kJ={getBackward:function(e){return OJ(e,!0)},getForward:function(e){return OJ(e,!1)}},EJ=kJ,jJ=R$,AJ=AX,TJ=PX;var MJ=function(e){var t=TJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return AJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=EJ.getBackward(o);return AJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:jJ.push(e,t,"remove-range")},PJ=EX;var DJ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&PJ(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})},LJ=kJ,RJ=R$,IJ=DJ,NJ=PX;var BJ=function(e){var t=NJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=LJ.getForward(o);return IJ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:RJ.push(e,t,"remove-range")},FJ=HK,zJ=R$;var HJ=R$;var VJ=R$;var KJ=R$,UJ=_X,$J=DJ,WJ=PX;var qJ=function(e){var t=WJ(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return $J(e,i?UJ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return KJ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},ZJ=HK,GJ=R$,YJ=KV;var XJ=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 c=YJ(a,r),u=ZJ.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,d=l.merge({anchorOffset:f,focusOffset:f}),p=ZJ.replaceWithFragment(u,d,c),h=GJ.push(e,p,"insert-fragment");return GJ.acceptSelection(h,o)},JJ=R$;var QJ=function(e,t,n){var r=JJ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(JJ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(JJ.set(r,{nativelyRenderedContent:o}))}},eQ=HK,tQ=R$,nQ=gq,rQ=oJ,oQ=ZW,iQ=vY,aQ=wJ,sQ=MJ,cQ=BJ,uQ=function(e){var t=FJ.splitBlock(e.getCurrentContent(),e.getSelection());return zJ.push(e,t,"split-block")},lQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return HJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},fQ=function(e){var t=e.getSelection(),n=t.getStartKey();return VJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},dQ=NX,pQ=qJ,hQ=XJ,gQ=QJ,yQ=JX.isOptionKeyCommand,vQ=oQ.isBrowser("Chrome");var mQ=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 nQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&iQ(e.props.handleReturn(t,r)))return;break;case nQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case nQ.TAB:if(o("onTab"))return;break;case nQ.UP:if(o("onUpArrow"))return;break;case nQ.RIGHT:if(o("onRightArrow"))return;break;case nQ.DOWN:if(o("onDownArrow"))return;break;case nQ.LEFT:if(o("onLeftArrow"))return;break;case nQ.SPACE:vQ&&yQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!iQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return tQ.redo(t);case"delete":return pQ(t);case"delete-word":return cQ(t);case"backspace":return dQ(t);case"backspace-word":return sQ(t);case"backspace-to-start-of-line":return aQ(t,n);case"split-block":return uQ(t);case"transpose-characters":return hQ(t);case"move-selection-to-start-of-block":return fQ(t);case"move-selection-to-end-of-block":return lQ(t);case"secondary-cut":return rQ.cut(t);case"secondary-paste":return rQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else gQ(t,r,e.update);else if(n===nQ.SPACE&&vQ&&yQ(t)){var s=eQ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(tQ.push(r,s,"insert-characters"))}};var bQ=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}(),wQ=bQ,xQ=xV,CQ=ZW.isBrowser("IE <= 9");var _Q=function(e){var t,n=null;return!CQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?xQ(!1,"Missing doc.documentElement"):xQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},SQ=YW;var OQ=function(e){return!(!e||!e.ownerDocument)&&(SQ(e)&&"A"===e.nodeName)},kQ=YW;var EQ,jQ=function(e){return!(!e||!e.ownerDocument)&&(kQ(e)&&"IMG"===e.nodeName)};function AQ(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){TQ(e,t,n[t])}))}return e}function TQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var MQ=RH,PQ=YH,DQ=lV,LQ=pW,RQ=hU,IQ=wQ,NQ=lW,BQ=MV,FQ=_Q,zQ=vU,HQ=_H,VQ=HQ.List,KQ=HQ.Map,UQ=HQ.OrderedSet,$Q=OQ,WQ=mZ,qQ=vq,ZQ=jQ,GQ=zQ("draft_tree_data_support"),YQ=new RegExp("\r","g"),XQ=new RegExp("\n","g"),JQ=new RegExp("^\n","g"),QQ=new RegExp(" ","g"),e1=new RegExp(" ?","g"),t1=new RegExp("​?","g"),n1=["bold","bolder","500","600","700","800","900"],r1=["light","lighter","normal","100","200","300","400"],o1=["className","href","rel","target","title"],i1=["alt","className","height","src","width"],a1=(TQ(EQ={},NQ("public/DraftStyleDefault/depth0"),0),TQ(EQ,NQ("public/DraftStyleDefault/depth1"),1),TQ(EQ,NQ("public/DraftStyleDefault/depth2"),2),TQ(EQ,NQ("public/DraftStyleDefault/depth3"),3),TQ(EQ,NQ("public/DraftStyleDefault/depth4"),4),EQ),s1=KQ({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),c1=function(e){if(qQ(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},u1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(a1).some((function(n){e.classList.contains(n)&&(t=a1[n])})),t},l1=function(e){if(!$Q(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 IQ(t.href);return!0}catch(e){return!1}},f1=function(e){if(!ZQ(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},d1=function(e,t){if(!qQ(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){n1.indexOf(r)>=0?e.add("BOLD"):r1.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"))}))},p1=function(e){return"ul"===e||"ol"===e},h1=function(){function e(e,t){TQ(this,"characterList",VQ()),TQ(this,"currentBlockType","unstyled"),TQ(this,"currentDepth",0),TQ(this,"currentEntity",null),TQ(this,"currentText",""),TQ(this,"wrapper",null),TQ(this,"blockConfigs",[]),TQ(this,"contentBlocks",[]),TQ(this,"entityMap",RQ),TQ(this,"blockTypeMap",void 0),TQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=VQ(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=RQ,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],UQ())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(GQ?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=AQ({key:e.key||BQ(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:VQ(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=VQ(),this.currentBlockType="unstyled",this.currentText="",t},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||p1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;p1(i)&&(this.wrapper=i,p1(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(f1(o))this._addImgNode(o,t);else if(l1(o))this._addAnchorNode(o,n,t);else{var u=t;s1.has(i)&&(u=u.add(s1.get(i))),u=d1(o,u);var l=c1(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}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 c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!GQ&&qQ(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=u1(p,this.currentDepth)}var h=BQ(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=MQ.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=VQ()):(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(JQ,"")).replace(XQ," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){WQ(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(ZQ(e)){var n=e,r={};i1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),zQ("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($Q(e)){var r=e,o={};o1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new IQ(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=VQ(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new DQ(AQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return VQ(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 PQ(AQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=VQ(),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}(),g1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:LQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:FQ)(e=e.trim().replace(YQ,"").replace(QQ," ").replace(e1,"").replace(t1,""));if(!n)return null;var r=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)}))})),KQ(t)}(t);return new h1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function y1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v1=YH,m1=lV,b1=g1,w1=MV,x1=_Q,C1=vU,_1=_H,S1=bU,O1=_1.List,k1=_1.Repeat,E1=C1("draft_tree_data_support"),j1=E1?m1:v1,A1={processHTML:function(e,t){return b1(e,x1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=S1(r);var i=w1(),a={key:i,type:n,text:r,characterList:O1(k1(t,r.length))};if(E1&&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){y1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new j1(a)),e}),[])}};var T1=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})},M1=HK,P1=R$,D1=T1,L1=p$,R1={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 R1.toggleInlineStyle(e,"BOLD");case"italic":return R1.toggleInlineStyle(e,"ITALIC");case"underline":return R1.toggleInlineStyle(e,"UNDERLINE");case"code":return R1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return R1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return R1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=M1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=P1.push(e,t,"insert-characters");return P1.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 P1.push(e,a,"remove-range")}var s=R1.tryToRemoveBlockStyle(e);return s?P1.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=M1.removeRange(n,a,"forward");return s!==n?P1.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 c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=D1(i,r,e.shiftKey?-1:1,n);return P1.push(t,u,"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=L1(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=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(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return P1.push(e,M1.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?R1.toggleBlockType(e,"code-block"):R1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return P1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?M1.removeInlineStyle(i,n,t):M1.applyInlineStyle(i,n,t),P1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=M1.applyEntity(e.getCurrentContent(),t,n);return P1.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 M1.setBlockType(o,t,"unstyled")}return null}},I1=R1,N1=/\r\n?|\n/g;var B1=OH,F1=RH,z1=dY,H1=HK,V1=A1,K1=R$,U1=I1,$1=Kq,W1=yY,q1=vY,Z1=function(e){return e.split(N1)};function G1(e,t,n){var r=H1.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return K1.push(e,r.set("entityMap",n),"insert-fragment")}var Y1=function(e,t){t.preventDefault();var n=new z1(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&q1(e.props.handlePastedFiles(r)))return;return void W1(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=Z1(t),i=F1.create({style:n.getCurrentInlineStyle(),entity:$1(n.getCurrentContent(),n.getSelection())}),a=U1.getCurrentBlockType(n),s=V1.processText(r,i,a),c=B1.createFromArray(s),u=H1.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(K1.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!q1(e.props.handlePastedText(a,s,c))){if(a&&(i=Z1(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(G1(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(G1(e._latestEditorState,f));if(s){var d=V1.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=B1.createFromArray(p);return void e.update(G1(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=F1.create({style:c.getCurrentInlineStyle(),entity:$1(c.getCurrentContent(),c.getSelection())}),v=U1.getCurrentBlockType(c),m=V1.processText(i,y,v),b=B1.createFromArray(m);e.update(G1(e._latestEditorState,b))}}},X1=ZW,J1=$Y,Q1=GY,e0=XY,t0=tX,n0=cX,r0=uX,o0=lX,i0=pX,a0=WX,s0=mQ,c0=Y1,u0=Fq,l0=X1.isBrowser("Chrome"),f0=X1.isBrowser("Firefox"),d0=l0||f0?u0:function(e){},p0={onBeforeInput:J1,onBlur:Q1,onCompositionStart:e0,onCopy:t0,onCut:n0,onDragOver:r0,onDragStart:o0,onFocus:i0,onInput:a0,onKeyDown:s0,onPaste:c0,onSelect:u0,onMouseUp:d0,onKeyUp:d0},h0=r.unstable_flushControlled;var g0=t,y0=lW,v0=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=y0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return g0.createElement("div",{className:t},g0.createElement("div",{className:y0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(g0.Component),m0=v0,b0=JX,w0=gq,x0=ZW,C0=x0.isPlatform("Mac OS X"),_0=C0&&x0.isBrowser("Firefox < 29"),S0=b0.hasCommandModifier,O0=b0.isCtrlKeyCommand;function k0(e){return C0&&e.altKey||O0(e)}var E0=function(e){switch(e.keyCode){case 66:return S0(e)?"bold":null;case 68:return O0(e)?"delete":null;case 72:return O0(e)?"backspace":null;case 73:return S0(e)?"italic":null;case 74:return S0(e)?"code":null;case 75:return C0&&O0(e)?"secondary-cut":null;case 77:case 79:return O0(e)?"split-block":null;case 84:return C0&&O0(e)?"transpose-characters":null;case 85:return S0(e)?"underline":null;case 87:return C0&&O0(e)?"backspace-word":null;case 89:return O0(e)?C0?"secondary-paste":"redo":null;case 90:return function(e){return S0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case w0.RETURN:return"split-block";case w0.DELETE:return function(e){return!C0&&e.shiftKey?null:k0(e)?"delete-word":"delete"}(e);case w0.BACKSPACE:return function(e){return S0(e)&&C0?"backspace-to-start-of-line":k0(e)?"backspace-word":"backspace"}(e);case w0.LEFT:return _0&&S0(e)?"move-selection-to-start-of-block":null;case w0.RIGHT:return _0&&S0(e)?"move-selection-to-end-of-block":null;default:return null}},j0=Hm;function A0(){return A0=j0||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},A0.apply(this,arguments)}function T0(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){P0(e,t,n[t])}))}return e}function M0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var L0=pW,R0=hW,I0=sZ,N0=YG,B0=MY,F0=p0,z0=h0,H0=m0,V0=bZ,K0=R$,U0=t,$0=QZ,W0=lG,q0=lW,Z0=MV,G0=E0,Y0=vG,X0=vU,J0=xV,Q0=vq,e2=p$,t2=ZW.isBrowser("IE"),n2=!t2,r2={edit:F0,composite:I0,drag:B0,cut:null,render:null},o2=!1,i2=function(e){function t(){return e.apply(this,arguments)||this}D0(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}(U0.Component),a2=function(e){function t(t){var n;return P0(M0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),P0(M0(n),"_clipboard",void 0),P0(M0(n),"_handler",void 0),P0(M0(n),"_dragCount",void 0),P0(M0(n),"_internalDrag",void 0),P0(M0(n),"_editorKey",void 0),P0(M0(n),"_placeholderAccessibilityID",void 0),P0(M0(n),"_latestEditorState",void 0),P0(M0(n),"_latestCommittedEditorState",void 0),P0(M0(n),"_pendingStateFromBeforeInput",void 0),P0(M0(n),"_onBeforeInput",void 0),P0(M0(n),"_onBlur",void 0),P0(M0(n),"_onCharacterData",void 0),P0(M0(n),"_onCompositionEnd",void 0),P0(M0(n),"_onCompositionStart",void 0),P0(M0(n),"_onCopy",void 0),P0(M0(n),"_onCut",void 0),P0(M0(n),"_onDragEnd",void 0),P0(M0(n),"_onDragOver",void 0),P0(M0(n),"_onDragStart",void 0),P0(M0(n),"_onDrop",void 0),P0(M0(n),"_onInput",void 0),P0(M0(n),"_onFocus",void 0),P0(M0(n),"_onKeyDown",void 0),P0(M0(n),"_onKeyPress",void 0),P0(M0(n),"_onKeyUp",void 0),P0(M0(n),"_onMouseDown",void 0),P0(M0(n),"_onMouseUp",void 0),P0(M0(n),"_onPaste",void 0),P0(M0(n),"_onSelect",void 0),P0(M0(n),"editor",void 0),P0(M0(n),"editorContainer",void 0),P0(M0(n),"focus",void 0),P0(M0(n),"blur",void 0),P0(M0(n),"setMode",void 0),P0(M0(n),"exitCurrentMode",void 0),P0(M0(n),"restoreEditorDOM",void 0),P0(M0(n),"setClipboard",void 0),P0(M0(n),"getClipboard",void 0),P0(M0(n),"getEditorKey",void 0),P0(M0(n),"update",void 0),P0(M0(n),"onDragEnter",void 0),P0(M0(n),"onDragLeave",void 0),P0(M0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),P0(M0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=W0.getScrollParent(o),a=e||Y0(i),s=a.x,c=a.y;Q0(o)||("production"!==process.env.NODE_ENV?J0(!1,"editorNode is not an HTMLElement"):J0(!1)),o.focus(),i===window?window.scrollTo(s,c):$0.setTop(i,c),r||n.update(K0.forceSelection(t,t.getSelection()))}})),P0(M0(n),"blur",(function(){var e=n.editor;e&&(Q0(e)||("production"!==process.env.NODE_ENV?J0(!1,"editorNode is not an HTMLElement"):J0(!1)),e.blur())})),P0(M0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=T0({},r2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=T0({},r2,{edit:a});n._handler=s[e]})),P0(M0(n),"exitCurrentMode",(function(){n.setMode("edit")})),P0(M0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),P0(M0(n),"setClipboard",(function(e){n._clipboard=e})),P0(M0(n),"getClipboard",(function(){return n._clipboard})),P0(M0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),P0(M0(n),"onDragEnter",(function(){n._dragCount++})),P0(M0(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||Z0(),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}D0(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&&(z0?z0((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:e2(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return U0.createElement(H0,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,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=q0({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:T0({},R0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return U0.createElement("div",{className:f},this._renderPlaceholder(),U0.createElement("div",{className:q0("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},U0.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:q0({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"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:c?null:d,spellCheck:n2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},U0.createElement(i2,{editor:this,editorState:a}),U0.createElement(N0,A0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!o2&&X0("draft_ods_enabled")&&(o2=!0,V0.initODS()),this.setMode("edit"),t2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(U0.Component);P0(a2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:L0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:G0,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var s2=a2,c2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},u2=c2,l2=_X.strlen;var f2=_X,d2=IH,p2=function(e,t){return e===t},h2=function(e){return!!e},g2=[];var y2=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 d2(o,p2,h2,(function(t,o){var i=e.getText();r.push({offset:f2.strlen(i.slice(0,t)),length:f2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(g2,n.toJS())};function v2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m2=YH,b2=lV,w2=c2,x2=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:l2(i.slice(0,r)),length:l2(i.slice(r,o)),key:Number(t[u2.stringify(a)])})})),n},C2=y2,_2=xV,S2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:C2(e),entityRanges:x2(e,t),data:e.getData().toObject()}},O2=function(e,t,n,r){if(e instanceof m2)n.push(S2(e,t));else{e instanceof b2||("production"!==process.env.NODE_ENV?_2(!1,"block is not a BlockNode"):_2(!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){v2(e,t,n[t])}))}return e}({},S2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},k2=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=w2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),O2(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(w2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function E2(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){j2(e,t,n[t])}))}return e}function j2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var A2=MV,T2=xV,M2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},P2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?T2(!1,"Invalid raw state"):T2(!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?T2(!1,"Invalid tree raw block"):T2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=E2({},e);M2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?E2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,E2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=M2(e),o=e.depth||0,i=E2({},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:A2(),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)})),E2({},e,{blocks:t})}},D2=EX,L2={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&&D2(!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&&D2(!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&&D2(!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&&D2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&D2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&D2(!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&&D2(!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 c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&D2(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&D2(!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)}},R2=L2,I2=RH,N2=_H.List;var B2=function(e,t){var n=e.map((function(e,n){var r=t[n];return I2.create({style:e,entity:r})}));return N2(n)},F2=_X.substr;var z2=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=F2(e,0,t.offset).length,o=r+F2(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},H2=_X,V2=_H.OrderedSet,K2=H2.substr,U2=V2();var $2=function(e,t){var n=Array(e.length).fill(U2);return t&&t.forEach((function(t){for(var r=K2(e,0,t.offset).length,o=r+K2(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function W2(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){q2(e,t,n[t])}))}return e}function q2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z2=YH,G2=lV,Y2=HU,X2=hU,J2=P2,Q2=R2,e5=yU,t5=B2,n5=z2,r5=$2,o5=MV,i5=_H,a5=xV,s5=vU("draft_tree_data_support"),c5=i5.List,u5=i5.Map,l5=i5.OrderedMap,f5=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||o5(),data:u5(o),characterList:d5(e,t)}},d5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return t5(r5(n,o||[]),n5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return W2({},e,{key:t[e.key]})}))))},p5=function(e){return W2({},e,{key:e.key||o5()})},h5=function(e,t,n){var r=t.map((function(e){return W2({},e,{parentRef:n})}));return e.concat(r.reverse())},g5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=s5&&!n?J2.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!s5)return function(e,t){return l5(e.map((function(e){var n=new Z2(f5(e,t));return[n.getKey(),n]})))}(n?J2.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(p5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?a5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):a5(!1));var i=r.children.map(p5),a=new G2(W2({},f5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:c5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=h5([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?a5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):a5(!1));break}var p=c.children.map(p5),h=new G2(W2({},f5(c,t),{parent:u.getKey(),children:c5(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=h5(s,p,h)}return n}),l5())}(r,t);return"production"!==process.env.NODE_ENV&&(Q2.isValidTree(o)||("production"!==process.env.NODE_ENV?a5(!1,"Should be a valid tree"):a5(!1))),o},y5=sJ;var v5=function(e){var t=y5(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 c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},m5=v5;var b5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=m5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},w5={Editor:s2,EditorBlock:GG,EditorState:R$,CompositeDecorator:cW,Entity:hU,EntityInstance:oU,BlockMapBuilder:OH,CharacterMetadata:RH,ContentBlock:YH,ContentState:HU,RawDraftContentState:{},SelectionState:yU,AtomicBlockUtils:iW,KeyBindingUtil:JX,Modifier:HK,RichUtils:I1,DefaultDraftBlockRenderMap:pW,DefaultDraftInlineStyle:hW,convertFromHTML:g1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?a5(!1,"invalid RawDraftContentState"):a5(!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]=X2.__create(o,i,a||{})})),n}(e),n=g5(e,t),r=n.isEmpty()?new e5:e5.createEmpty(n.first().getKey());return new Y2({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:k2,genKey:MV,getDefaultKeyBinding:E0,getVisibleSelectionRect:b5};const x5="FOUND_FIELD",C5="NOT_FOUND",_5="IMMUTABLE",S5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),O5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},k5=new w5.CompositeDecorator([{strategy:(e,t,n)=>O5(e,t,n,x5),component:({children:t})=>e.jsx(S5,{children:t})},{strategy:(e,t,n)=>O5(e,t,n,C5),component:({children:t})=>e.jsx(S5,Object.assign({error:!0},{children:t}))}]),E5=(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}},j5=(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:c,isValid:u}=E5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?x5:C5,mutability:_5,data:{id:i}}}o.text+=a}return w5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return w5.EditorState.createWithContent(r,k5)},A5=(e,t=!0)=>{const n=e.getCurrentContent(),r=w5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ft.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},T5=e=>{const t=A5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},M5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new w5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return w5.EditorState.forceSelection(e,o)},P5=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},D5=e=>!!e||null!=e&&""!==e,L5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:u,pointer:l})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:null!=n?n:0,borderBottomRightRadius:null!=n?n:0,cursor:l?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),sn,un,cn),R5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),I5=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),N5=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var B5={Container:L5,Wrapper:R5,Label:I5,Description:N5,useInputFocus:P5,isInputFilled:D5};const F5=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:y,borderless:v=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:_,label:S,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,R=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[I,N]=t.useState((()=>j5(o,l,w))),{focused:B,handleFocus:F,handleBlur:z}=P5(s,u),[H,V]=t.useState(!1),K=t.useRef(null),U=t.useRef(),$=null!=y?y:g,W=$?$-(v?0:S?29:11):void 0,q=e=>{N(e);const t=(e=>T5(e).some((e=>e.type===C5)))(e);V(t);const n=A5(e),r=e.getLastChangeType();i&&i(n,t,r)},Z=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=E5(e,t,r),u=c?x5:C5,l=i.createEntity(u,_5,{id:o}).getLastCreatedEntityKey(),f=w5.Modifier.insertText(i,a,s,void 0,l),d=w5.EditorState.push(n,f,"insert-characters");return w5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,l,I,w);q(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=M5(I);N(e)};t.useImperativeHandle(r,(()=>({insertField:Z,focusAtEnd:G})));t.useEffect((()=>{A5(I)!==o&&(e=>{const t=I.getSelection(),n=j5(e,l,w),r=M5(n),o=t.getHasFocus()?r:n;q(o)})(o)}),[o]),t.useEffect((()=>{U.current=l}),[]),t.useEffect((()=>{const{current:e}=U,t=ft.isEqual(e,l),n=T5(I);if(!t&&n.length>0){U.current=l;const e=j5(o,l,w);q(e)}}),[l]);return e.jsxs(z5,Object.assign({onClick:e=>{b||e.stopPropagation();I.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:v||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:_,filled:D5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!S,hideEditor:!D5(o)&&!!S&&!B},{children:[e.jsxs(R5,Object.assign({readOnly:b},{children:[S&&e.jsx(I5,Object.assign({filled:D5(o),focused:B,disabled:O},{children:S})),e.jsx(w5.Editor,Object.assign({ref:K,editorState:I,onChange:q,placeholder:f,readOnly:b,handleReturn:e=>{const t=w5.RichUtils.insertSoftNewline(I);return e.shiftKey||!a?q(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=w5.convertFromRaw({blocks:[o],entityMap:{}}),a=w5.EditorState.createWithContent(i,k5).getCurrentContent().getBlockMap(),s=w5.Modifier.replaceWithFragment(n,r,a);return w5.EditorState.push(t,s,"insert-fragment")})(e,n);return q(r),"handled"},onFocus:F,onBlur:z},R))]})),d&&e.jsx(N5,Object.assign({invalid:p},{children:d}))]}))})),z5=W(L5)((({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:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?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}}}));var H5={exports:{}};H5.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,c],f=0;(u=new Error(t.replace(/%s/g,(function(){return l[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=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){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=u(i),s=u(n(7)),c=n(12);function u(e){return e&&e.__esModule?e:{default: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}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),u=s.phoneNumber,l=void 0===u?"":u,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:l,cursorPosition:d,key:t}),r.props.onChange(l)}},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(l(e={},i,(function(e){return t.textInput=e})),l(e,"type","tel"),l(e,"value",n),l(e,"onKeyDown",this.handleKeyDown),l(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var u="function"==typeof Symbol&&Symbol.iterator,l="@@iterator",f="<<anonymous>>",d={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var u=e(a,c,r,o,i+"["+c+"]",s);if(u instanceof Error)return u}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var l=e(a,u,r,o,i+"."+u,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var l=e[u];if(l){var f=l(a,u,r,o,i+"."+u,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],u=m(c);if("object"!==u)return new h("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var f in l){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,u,l,d,p,g,y){if(d=d||f,g=g||l,y!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=d+":"+l;!r[v]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[v]=!0,a++)}return null==u[l]?c?null===u[l]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(u,l,d,p,g)}var u=c.bind(null,!1);return u.isRequired=c.bind(null,!0),u}function y(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e[l]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
221
|
+
*/;const fH=({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(dH,Object.assign({onClick:()=>{UF(r),i(!0)},copied:o},{children:o?e.jsx(dn,{name:"check-circle",color:a.success}):e.jsx(dn,{name:"copy",color:s})}))},dH=W.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}}))),pH=({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(hH,Object.assign({},i,{children:[e.jsx(gH,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(yH,{children:r}),e.jsx(fH,{content:r})]}))},hH=W.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}))),gH=W.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),yH=W.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),vH=W.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),un),mH=W.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),bH=W.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),wH=W.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 xH={exports:{}};xH.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:Z(e)}function o(e){return c(e)?e:G(e)}function i(e){return a(e)&&!u(e)?e:Y(e)}function a(e){return!(!e||!e[f])}function s(e){return!(!e||!e[d])}function c(e){return!(!e||!e[p])}function u(e){return s(e)||c(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=c,n.isAssociative=u,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 C(e){return e.value=!1,e}function _(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,L=1,R=2,I="function"==typeof Symbol&&Symbol.iterator,N="@@iterator",B=I||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 H(){return{value:void 0,done:!0}}function V(e){return!!$(e)}function K(e){return e&&"function"==typeof e.next}function U(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[N]);if("function"==typeof t)return t}function W(e){return e&&"number"==typeof e.length}function q(e){return null==e?ae():a(e)?e.toSeq():ue(e)}function Z(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function G(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():ce(e)}function Y(e){return(null==e?ae():a(e)?s(e)?e.entrySeq():e:ce(e)).toSetSeq()}F.prototype.toString=function(){return"[Iterator]"},F.KEYS=D,F.VALUES=L,F.ENTRIES=R,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(Z,q),Z.prototype.toKeyedSeq=function(){return this},t(G,q),G.of=function(){return G(arguments)},G.prototype.toIndexedSeq=function(){return this},G.prototype.toString=function(){return this.__toString("Seq [","]")},G.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},G.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=Z,q.Set=Y,q.Indexed=G;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():K(e)?new oe(e).fromEntrySeq():V(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 ce(e){var t=le(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(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 W(e)?new te(e):K(e)?new oe(e):V(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?H():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,G(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?G(e).map(ge).toList():ye(e)?Z(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)||c(e)!==c(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!u(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 Ce(){throw TypeError("Abstract")}function _e(){}function Se(){}function Oe(){}q.prototype[ee]=!0,t(te,G),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?H():z(e,o,n[t?r-o++:o++])}))},t(ne,Z),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?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,G),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=U(this._iterable),r=0;if(K(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=U(this._iterable);if(!K(n))return new F(H);var r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value)}))},t(oe,G),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,G),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):H()}))},be.prototype.equals=function(e){return e instanceof be?ve(this._value,e._value):me(e)},t(xe,G),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?H():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(Ce,n),t(_e,Ce),t(Se,Ce),t(Oe,Ce),Ce.Keyed=_e,Ce.Indexed=Se,Ce.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=Ve[e];return void 0===t&&(t=Te(e),He===ze&&(He=0,Ve={}),He++,Ve[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(Ie&&void 0!==(t=Re.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=Le(e)))return t}if(t=++Ne,1073741824&Ne&&(Ne=0),Ie)Re.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 Le(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Re,Ie="function"==typeof WeakMap;Ie&&(Re=new WeakMap);var Ne=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ke(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ue,_e),Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return it(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ue.prototype.remove=function(e){return it(this,e,b)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,Cn(e),t,n);return r===b?void 0:r},Ue.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()},Ue.prototype.merge=function(){return dt(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){return dt(this,t,e.call(arguments,1))},Ue.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]}))},Ue.prototype.mergeDeep=function(){return dt(this,pt,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return dt(this,ht(t),n)},Ue.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]}))},Ue.prototype.sort=function(e){return Vt(fn(this,e))},Ue.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new et(this,e,t)},Ue.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},Ue.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)},Ue.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ze=Ue.prototype;function Ge(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(Ze);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=C(w),a=C(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 Ge(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:(_(s),_(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function ct(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?[ct(e,t,n+y,r,o)]:(i=new Qe(t,r,o),a<s?[e,i]:[i,e]))}function ut(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,c=1,u=t.length;s<u;s++,c<<=1){var l=t[s];void 0!==l&&s!==r&&(o|=c,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],c=r(s);a(s)||(c=c.map((function(e){return pe(e)}))),o.push(c)}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 c=i.value,u=o?b:e.get(c,b),l=yt(u,t,n,r);return l===u?e:l===b?e.remove(c):(o?ot():e).set(c,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}Ze[qe]=!0,Ze[g]=Ze.remove,Ze.removeIn=Ze.deleteIn,Ge.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},Ge.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(_(a),(s||!f)&&_(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Ge(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,c=1<<s,u=this.bitmap,l=0!=(u&c);if(!l&&o===b)return this;var f=vt(u&c-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>=Ct)return ft(e,d,u,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?u:u^c:u|c,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,c=o===b,u=this.nodes,l=u[s];if(c&&!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<_t)return lt(e,u,d,s)}else d++;var p=e&&e===this.ownerID,h=mt(u,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:(_(a),_(i),ct(this,e,t,n,[r,o]));for(var c=this.entries,u=0,l=c.length;u<l&&!ve(r,c[u][0]);u++);var f=u<l;if(f?c[u][1]===o:s)return this;if(_(a),(s||!f)&&_(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var d=e&&e===this.ownerID,p=d?c:O(c);return f?s?u===l-1?p.pop():p[u]=p.pop():p[u]=[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,c=ve(r,this.entry[0]);return(c?o===this.entry[1]:s)?this:(_(a),s?void _(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(_(i),ct(this,e,t,je(r),[r,o])))},Ge.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 H()};var xt=v/4,Ct=v/2,_t=v/4;function St(e){var t=Lt();if(null==e)return t;if(Ot(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ke(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 Rt(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):Lt()},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?H():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=Ze.setIn,Et.deleteIn=Et.removeIn=Ze.removeIn,Et.update=Ze.update,Et.updateIn=Ze.updateIn,Et.mergeIn=Ze.mergeIn,Et.mergeDeepIn=Ze.mergeDeepIn,Et.withMutations=Ze.withMutations,Et.asMutable=Ze.asMutable,Et.asImmutable=Ze.asImmutable,Et.wasAltered=Ze.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 c=0;c<r;c++)s.array[c]=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=Ht(r),i=e._tail;return a(e._root,e._level,0);function a(e,t,n){return 0===t?s(e,n):c(e,t,n)}function s(e,a){var s=a===o?i&&i.array:e&&e.array,c=a>n?0:n-a,u=r-a;return u>v&&(u=v),function(){if(c===u)return Mt;var e=t?--u:c++;return s&&s[e]}}function c(e,o,i){var s,c=e&&e.array,u=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(u===l)return Mt;var n=t?--l:u++;s=a(c&&c[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 Lt(){return At||(At=Dt(0,0,y))}function Rt(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=C(x);return t>=Ht(e._capacity)?r=It(r,e.__ownerID,0,t,n,i):o=It(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 It(e,t,n,r,o,i){var a,s=r>>>n&m,c=e&&s<e.array.length;if(!c&&void 0===o)return e;if(n>0){var u=e&&e.array[s],l=It(u,t,n-y,r,o,i);return l===u?e:((a=Nt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(_(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>=Ht(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 c=e._level,u=e._root,l=0;a+l<0;)u=new jt(u&&u.array.length?[void 0,u]:[],r),l+=1<<(c+=y);l&&(a+=l,o+=l,s+=l,i+=l);for(var f=Ht(i),d=Ht(s);d>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=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=u=Nt(u,r),v=c;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,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(l=0;u;){var w=a>>>c&m;if(w!==d>>>c&m)break;w&&(l+=(1<<c)*w),c-=y,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,c,a-l)),u&&d<f&&(u=u.removeAfter(r,c,d-l)),l&&(a-=l,s-=l)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=c,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):Dt(a,s,c,u,h)}function zt(e,t,n){for(var r=[],i=0,s=0;s<n.length;s++){var c=n[s],u=o(c);u.size>i&&(i=u.size),a(c)||(u=u.map((function(e){return pe(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),gt(e,t,r)}function Ht(e){return e<v?0:e-1>>>y<<y}function Vt(e){return null==e?$t():Kt(e)?e:$t().withMutations((function(t){var n=r(e);Ke(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Kt(e){return $e(e)&&l(e)}function Ut(e,t,n,r){var o=Object.create(Vt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function $t(){return Tt||(Tt=Ut(ot(),Lt()))}function Wt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),c=void 0!==s;if(n===b){if(!c)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(c){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):Ut(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Gt(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===R){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===L?D:L,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(R,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,c){if(t.call(n,e,i,c))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(R,i),s=0;return new F((function(){for(;;){var i=a.next();if(i.done)return i;var c=i.value,u=c[0],l=c[1];if(t.call(n,l,u,e))return z(o,r?u:s++,l,i)}}))},o}function tn(e,t,n){var r=Ue().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)?Vt():Ue()).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,c=a-i;c==c&&(s=c<0?0:c);var u=bn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=E(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,c=!0,u=0;return e.__iterate((function(e,n){if(!c||!(c=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,c=0;return new F((function(){for(;a++<i;)o.next();if(++c>s)return H();var e=o.next();return r||t===L?e:z(t,c-1,t===D?void 0:e.value[1],e)}))},u}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(R,o),s=!0;return new F((function(){if(!s)return H();var e=a.next();if(e.done)return e;var o=e.value,c=o[0],u=o[1];return t.call(n,u,c,i)?r===R?e:z(r,c,u,e):(s=!1,H())}))},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,c=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return c++,o(e,r?i:c-1,a)})),c},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(R,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===L?e:z(o,u++,o===D?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],c&&(c=t.call(n,l,i,a))}while(c);return o===R?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):ce(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)||c(e)&&c(i))return i}var u=new te(o);return n?u=u.toKeyedSeq():c(e)||(u=u.toSetSeq()),(u=u.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),u}function cn(e,t,n){var r=bn(e);return r.__iterateUncached=function(r,o){var i=0,s=!1;function c(e,u){var l=this;e.__iterate((function(e,o){return(!t||u<t)&&a(e)?c(e,u+1):!1===r(e,n?o:i++,l)&&(s=!0),!s}),o)}return c(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),s=[],c=0;return new F((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(s.length<t)||!a(u))return n?e:z(r,c++,u,e);s.push(i),i=u.__iterator(r,o)}else i=s.pop()}return H()}))},r}function un(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(L,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?Z(i):c(e)?G(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(L,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),U(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?H():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 Ke(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?Z:c(e)?G: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 Cn(e){var t=U(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=U(n(e))}return t}function _n(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=Ue(i)},o=r.prototype=Object.create(Sn);return o.constructor=r,r}t(Vt,Ue),Vt.of=function(){return this(arguments)},Vt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Vt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Vt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):$t()},Vt.prototype.set=function(e,t){return Wt(this,e,t)},Vt.prototype.remove=function(e){return Wt(this,e,b)},Vt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Vt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Vt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Vt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Ut(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Kt,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,Z),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(L,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(Zt,G),Zt.prototype.includes=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Gt,Y),Gt.prototype.has=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,Z),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(L,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)}}}))},Zt.prototype.cacheResult=qt.prototype.cacheResult=Gt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(_n,_e),_n.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},_n.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},_n.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},_n.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()))},_n.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)},_n.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)},_n.prototype.wasAltered=function(){return this._map.wasAltered()},_n.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},_n.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},_n.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=_n.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?In():Tn(e)&&!l(e)?e:In().withMutations((function(t){var n=i(e);Ke(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=Ze.removeIn,Sn.merge=Ze.merge,Sn.mergeWith=Ze.mergeWith,Sn.mergeIn=Ze.mergeIn,Sn.mergeDeep=Ze.mergeDeep,Sn.mergeDeepWith=Ze.mergeDeepWith,Sn.mergeDeepIn=Ze.mergeDeepIn,Sn.setIn=Ze.setIn,Sn.update=Ze.update,Sn.updateIn=Ze.updateIn,Sn.withMutations=Ze.withMutations,Sn.asMutable=Ze.asMutable,Sn.asImmutable=Ze.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 Ln(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Ln(this,this._map.remove(e))},An.prototype.clear=function(){return Ln(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 Ln(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 Rn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Mn||(Mn=Rn(ot()))}function Nn(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ke(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=Ze.withMutations,Dn.asMutable=Ze.asMutable,Dn.asImmutable=Ze.asImmutable,Dn.__empty=In,Dn.__make=Rn,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 Hn(e,t){var n=Object.create(zn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function Vn(){return Fn||(Fn=Hn($t()))}function Kn(e){return null==e?Gn():Un(e)?e:Gn().unshiftAll(e)}function Un(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Kn,Se),Kn.of=function(){return this(arguments)},Kn.prototype.toString=function(){return this.__toString("Stack [","]")},Kn.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Kn.prototype.peek=function(){return this._head&&this._head.value},Kn.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):Zn(e,t)},Kn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ke(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):Zn(t,n)},Kn.prototype.pop=function(){return this.slice(1)},Kn.prototype.unshift=function(){return this.push.apply(this,arguments)},Kn.prototype.unshiftAll=function(e){return this.pushAll(e)},Kn.prototype.shift=function(){return this.pop.apply(this,arguments)},Kn.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):Gn()},Kn.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):Zn(r,o)},Kn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Zn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Kn.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},Kn.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 H()}))},Kn.isStack=Un;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Kn.prototype;function Zn(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 Gn(){return $n||($n=Zn(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[Wn]=!0,qn.withMutations=Ze.withMutations,qn.asMutable=Ze.asMutable,qn.asImmutable=Ze.asImmutable,qn.wasAltered=Ze.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Zt(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 Ue(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Nn(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Gt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kn(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(R)},every:function(e,t){Ke(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 Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(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 Ke(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(L)},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,un(this,e,t))},flatten:function(e){return gn(this,cn(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=Cn(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+cr(je(e),je(t))|0}:function(e,t){r=r+cr(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 cr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}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,cn(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(),G.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(Z,r.prototype),Yn(G,o.prototype),Yn(Y,i.prototype),Yn(_e,r.prototype),Yn(Se,o.prototype),Yn(Oe,i.prototype);var ur={Iterable:n,Seq:q,Collection:Ce,Map:Ue,OrderedMap:Vt,List:St,Stack:Kn,Set:An,OrderedSet:Nn,Record:_n,Range:xe,Repeat:be,is:ve,fromJS:pe};return ur}();var CH=xH.exports,_H=CH.OrderedMap,SH={createFromArray:function(e){return _H(e.map((function(e){return[e.getKey(),e]})))}};var OH=CH,kH=OH.Map,EH=OH.OrderedSet,jH=OH.Record,AH=EH(),TH={style:AH,entity:null},MH=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 PH;var t=kH({style:AH,entity:null}).merge(e),n=DH.get(t);if(n)return n;var o=new r(t);return DH=DH.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?EH(t):t,entity:Array.isArray(n)?EH(n):n})},r}(jH(TH)),PH=new MH,DH=kH([[kH(TH),PH]]);MH.EMPTY=PH;var LH=MH;var RH=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 IH=LH,NH=RH,BH=CH,FH=BH.List,zH=BH.Map,HH=BH.OrderedSet,VH=BH.Record,KH=BH.Repeat,UH=HH(),$H=VH({key:"",type:"unstyled",text:"",characterList:FH(),depth:0,data:zH()}),WH=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=FH(KH(IH.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():UH},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){NH(this.getCharacterList(),qH,e,t)},o.findEntityRanges=function(e,t){NH(this.getCharacterList(),ZH,e,t)},r}($H);function qH(e,t){return e.getStyle()===t.getStyle()}function ZH(e,t){return e.getEntity()===t.getEntity()}var GH=WH;var YH=LH,XH=RH,JH=CH,QH=JH.List,eV=JH.Map,tV=JH.OrderedSet,nV=JH.Record,rV=JH.Repeat,oV=tV(),iV={parent:null,characterList:QH(),data:eV(),depth:0,key:"",text:"",type:"unstyled",children:QH(),prevSibling:null,nextSibling:null},aV=function(e,t){return e.getStyle()===t.getStyle()},sV=function(e,t){return e.getEntity()===t.getEntity()},cV=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iV;return e.call(this,function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=QH(rV(YH.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():oV},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){XH(this.getCharacterList(),aV,e,t)},o.findEntityRanges=function(e,t){XH(this.getCharacterList(),sV,e,t)},r}(nV(iV)),uV=cV,lV=LH,fV=CH.Map;function dV(e,t,n,r){var o=e.getBlockMap(),i=t.getStartKey(),a=t.getStartOffset(),s=t.getEndKey(),c=t.getEndOffset(),u=o.skipUntil((function(e,t){return t===i})).takeUntil((function(e,t){return t===s})).concat(fV([[s,o.get(s)]])).map((function(e,t){var o,u;i===s?(o=a,u=c):(o=t===i?a:0,u=t===s?c:e.getLength());for(var l,f=e.getCharacterList();o<u;)l=f.get(o),f=f.set(o,r?lV.applyStyle(l,n):lV.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var pV={add:function(e,t,n){return dV(e,t,n,!0)},remove:function(e,t,n){return dV(e,t,n,!1)}},hV=LH;var gV=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,hV.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},yV=CH;var vV=function(e,t,n){var r=e.getBlockMap(),o=t.getStartKey(),i=t.getStartOffset(),a=t.getEndKey(),s=t.getEndOffset(),c=r.skipUntil((function(e,t){return t===o})).takeUntil((function(e,t){return t===a})).toOrderedMap().merge(yV.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return gV(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},mV={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,c=null,u=null,l=0;l<i.length;l++){if(e<(a=s+i[l].length)&&s<t)null!==c||(c=s),u=a;else if(null!==c)break;s=a}var f=r+n.length,d=c===r,p=u===f;return(!d&&p||d&&!p)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},bV="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var wV=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(bV(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}},xV=wV;var CV=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?xV(!1,"Entity key not found in this range."):xV(!1)),n},_V=mV,SV=CV,OV=wV;function kV(e,t,n,r,o,i,a){var s=n.getStartOffset(),c=n.getEndOffset(),u=e.__get(o).getMutability(),l=a?s:c;if("MUTABLE"===u)return n;var f=SV(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?OV(!1,"There should only be one entity range within this removal range."):OV(!1));var d=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1});i||(a?c=d.end:s=d.start);var p=_V.getRemovalRange(s,c,t.getText().slice(d.start,d.end),d.start,r);return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1})}var EV=function(e,t,n,r,o){var i=r.getStartOffset(),a=r.getEndOffset(),s=t.getEntityAt(i),c=n.getEntityAt(a-1);if(!s&&!c)return r;var u=r;if(s&&s===c)u=kV(e,t,u,o,s,!0,!0);else if(s&&c){var l=kV(e,t,u,o,s,!1,!0),f=kV(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var d=kV(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:d.getStartOffset(),isBackward:!1})}else if(c){var p=kV(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:p.getEndOffset(),isBackward:!1})}return u},jV={},AV=Math.pow(2,24);var TV=function(){for(var e;void 0===e||jV.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*AV).toString(32);return jV[e]=!0,e},MV=uV,PV=TV,DV=CH.OrderedMap,LV=function(e){return e.first()instanceof MV?function(e){var t,n={};return DV(e.withMutations((function(e){e.forEach((function(r,o){var i=r.getKey(),a=r.getNextSiblingKey(),s=r.getPrevSiblingKey(),c=r.getChildKeys(),u=r.getParentKey(),l=PV();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)),u&&e.get(u)){var f=e.get(u).getChildKeys();e.setIn([u,"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);c.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 DV(e.toArray().map((function(e){var t=PV();return[t,e.set("key",t)]})))}(e)},RV=LH,IV=RH,NV=wV;function BV(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 c,u=function(e,t,n){var r;return IV(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?NV(!1,"Removal range must exist within character list."):NV(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,RV.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var FV=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=BV(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var d=BV(r,f,l);return d!==f&&(o[u]=d),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},zV=LV,HV=FV,VV=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=HV(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return zV(a.slice(c,u).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 KV=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},UV=SH,$V=uV,WV=KV,qV=wV,ZV=LV,GV=CH.List,YV=function(e,t,n,r,o,i){var a=n.first()instanceof $V,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),d=f.getLength(),p=f.getKey(),h=a&&(!u.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,c-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),c=n.last();return c.merge({text:c.getText()+a,characterList:c.getCharacterList().concat(s),data:c.getData()})}(e,i,r))):s.push(e)}));var g=UV.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(),c=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),u=c[c.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([u,"nextSibling"],a),a&&t.setIn([a,"prevSibling"],u),c.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(c)),t.setIn([s,"children"],GV(d))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:p,anchorOffset:d,focusKey:p,focusOffset:d,isBackward:!1})})},XV=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?qV(!1,"`insertFragment` should only be called with a collapsed selection state."):qV(!1));var o=e.getBlockMap(),i=ZV(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof $V&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?qV(!1,"`insertFragment` should not be called when a container node is selected."):qV(!1))),1===i.size?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),c=s.getText(),u=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();c&&"unstyled"===p&&(p=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:WV(u,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})})}(e,t,o,i.first(),a,s,r):YV(e,t,o,i,a,s)},JV=KV,QV=wV,eK=CH.Repeat;var tK=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?QV(!1,"`insertText` should only be called with a collapsed range."):QV(!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(),c=i.get(a),u=c.getText(),l=c.merge({text:u.slice(0,s)+n+u.slice(s,c.getLength()),characterList:JV(c.getCharacterList(),eK(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},nK=CH.Map;var rK=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(nK([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},oK=uV,iK=function(e,t){if(!(e instanceof oK))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},aK=uV,sK=iK,cK=CH;cK.List;var uK=cK.Map,lK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},fK=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},dK=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},pK=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},hK=function(e,t,n,r){return e.withMutations((function(o){if(lK(t.getKey(),o,(function(e){return e.merge({nextSibling:dK(e,o,r),prevSibling:pK(e,o,r)})})),lK(n.getKey(),o,(function(e){return e.merge({nextSibling:dK(e,o,r),prevSibling:pK(e,o,r)})})),fK(t.getKey(),r).forEach((function(e){return lK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:dK(e,o,r),prevSibling:pK(e,o,r)})}))})),lK(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),lK(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:dK(e,o,r)})})),lK(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:pK(e,o,r)})})),lK(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),fK(n.getKey(),r).forEach((function(e){lK(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:dK(e,o,r),prevSibling:pK(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=sK(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?sK(o,t):null}return n}(n,r).forEach((function(e){return lK(e,o,(function(e){return e.merge({nextSibling:dK(e,o,r),prevSibling:pK(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();lK(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),lK(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){lK(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);lK(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}lK(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},gK=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},yK=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(),c=r.get(o),u=r.get(a),l=c instanceof aK,f=[];if(l){var d=u.getChildKeys(),p=fK(a,r);u.getNextSiblingKey()&&(f=f.concat(p)),d.isEmpty()||(f=f.concat(p.concat([a]))),f=f.concat(fK(sK(u,r),r))}n=c===u?gK(c.getCharacterList(),i,s):c.getCharacterList().slice(0,i).concat(u.getCharacterList().slice(s));var h=c.merge({text:c.getText().slice(0,i)+u.getText().slice(s),characterList:n}),g=l&&0===i&&0===s&&u.getParentKey()===o&&null==u.getPrevSiblingKey()?uK([[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(uK([[a,null]])).map((function(e,t){return t===o?h:null})),y=r.merge(g).filter((function(e){return!!e}));return l&&c!==u&&(y=hK(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},vK=uV,mK=TV,bK=CH,wK=wV,xK=rK,CK=bK.List,_K=bK.Map,SK=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},OK=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?wK(!1,"Selection range must be collapsed."):wK(!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 xK(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=mK(),l=o instanceof vK,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),d=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:_K()}),p=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=p.concat([[n,f],[u,d]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?wK(!1,"ContentBlockNode must not have children"):wK(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();SK(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:CK(i)})})),SK(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),SK(r,e,(function(e){return e.merge({nextSibling:o})})),SK(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,d)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},kK=LH,EK=pV,jK=vV,AK=EV,TK=VV,MK=XV,PK=tK,DK=wV,LK=rK,RK=FV,IK=yK,NK=OK,BK=CH.OrderedSet,FK={replaceText:function(e,t,n,r,o){var i=RK(e,t),a=IK(i,t),s=kK.create({style:r||BK(),entity:o||null});return PK(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?DK(!1,"Target range must be collapsed for `insertText`."):DK(!1)),FK.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=TK(e,t),o=FK.removeRange(e,t,"backward");return FK.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=RK(e,t),i=IK(o,t);return MK(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(),c=t.getEndOffset(),u=i.getEntityAt(s),l=a.getEntityAt(c-1);if(r===o&&u&&u===l){var f=AK(e.getEntityMap(),i,a,t,n);return IK(e,f)}var d=RK(e,t);return IK(d,t)},splitBlock:function(e,t){var n=RK(e,t),r=IK(n,t);return NK(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return EK.add(e,t,n)},removeInlineStyle:function(e,t,n){return EK.remove(e,t,n)},setBlockType:function(e,t,n){return LK(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return LK(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return LK(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=RK(e,t);return jK(r,t,n)}},zK=FK;var HK=function(e){return Object.keys(e).map((function(t){return e[t]}))};function VK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var KK=RH,UK=HK,$K=CH,WK=$K.List,qK=$K.Repeat,ZK=$K.Record,GK=function(){return!0},YK=ZK({start:null,end:null}),XK=ZK({start:null,end:null,decoratorKey:null,leaves:null}),JK={generate:function(e,t,n){var r=t.getLength();if(!r)return WK.of(new XK({start:0,end:0,decoratorKey:null,leaves:WK.of(new YK({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):WK(qK(null,r)),a=t.getCharacterList();return KK(i,eU,GK,(function(e,t){o.push(new XK({start:e,end:t,decoratorKey:i.get(e),leaves:QK(a.slice(e,t).toList(),e)}))})),WK(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 XK(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){VK(e,t,n[t])}))}return e}({},n,{leaves:null!=t?WK(Array.isArray(t)?t:UK(t)).map((function(e){return YK(e)})):null}))}};function QK(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return KK(r,eU,GK,(function(e,r){n.push(new YK({start:e+t,end:r+t}))})),WK(n)}function eU(e,t){return e===t}var tU=JK;var nU=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,CH.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),rU=nU;var oU=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 iU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var aU=rU,sU=wV,cU=oU,uU=(0,CH.Map)(),lU=cU();function fU(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var dU={getLastCreatedEntityKey:function(){return fU("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),dU.__getLastCreatedEntityKey()},create:function(e,t,n){return fU("DraftEntity.create","contentState.createEntity"),dU.__create(e,t,n)},add:function(e){return fU("DraftEntity.add","contentState.addEntity"),dU.__add(e)},get:function(e){return fU("DraftEntity.get","contentState.getEntity"),dU.__get(e)},__getAll:function(){return uU},__loadWithEntities:function(e){uU=e,lU=cU()},mergeData:function(e,t){return fU("DraftEntity.mergeData","contentState.mergeEntityData"),dU.__mergeData(e,t)},replaceData:function(e,t){return fU("DraftEntity.replaceData","contentState.replaceEntityData"),dU.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return lU},__create:function(e,t,n){return dU.__add(new aU({type:e,mutability:t,data:n||{}}))},__add:function(e){return lU=cU(),uU=uU.set(lU,e),lU},__get:function(e){var t=uU.get(e);return t||("production"!==process.env.NODE_ENV?sU(!1,"Unknown DraftEntity key: %s.",e):sU(!1)),t},__mergeData:function(e,t){var n=dU.__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){iU(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return uU=uU.set(e,o),o},__replaceData:function(e,t){var n=dU.__get(e).set("data",t);return uU=uU.set(e,n),n}},pU=dU;var hU=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,CH.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),gU=hU,yU=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},vU=new RegExp("\r","g");var mU=function(e){return e.replace(vU,"")};function bU(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){wU(e,t,n[t])}))}return e}function wU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xU=SH,CU=LH,_U=GH,SU=uV,OU=pU,kU=gU,EU=TV,jU=HK,AU=yU,TU=CH,MU=mU,PU=TU.List,DU=TU.Record,LU=TU.Repeat,RU=TU.Map,IU=TU.OrderedMap,NU=DU({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),BU=AU("draft_tree_data_support")?SU:_U,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.getEntityMap=function(){return OU},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 OU.__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 OU.__create(e,t,n),this},o.mergeEntityData=function(e,t){return OU.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return OU.__replaceData(e,t),this},o.addEntity=function(e){return OU.__add(e),this},o.getEntity=function(e){return OU.__get(e)},o.getAllEntities=function(){return OU.__getAll()},o.loadWithEntities=function(e){return OU.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=xU.createFromArray(n),i=o.isEmpty()?new kU:kU.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||OU,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).map((function(e){return e=MU(e),new BU({key:EU(),text:e,type:"unstyled",characterList:PU(LU(CU.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(bU({},e,{blockMap:IU(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new kU(e.selectionBefore),selectionAfter:new kU(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new BU(bU({},e,{data:RU(e.data),characterList:null!=t?PU((Array.isArray(t)?t:jU(t)).map((function(e){return CU.fromJS(e)}))):void 0}))},r}(NU),zU=FU,HU=wV,VU="LTR",KU="RTL",UU=null;function $U(e){return e===VU||e===KU}function WU(e){return $U(e)||("production"!==process.env.NODE_ENV?HU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):HU(!1)),e===VU?"ltr":"rtl"}function qU(e){UU=e}var ZU={NEUTRAL:"NEUTRAL",LTR:VU,RTL:KU,isStrong:$U,getHTMLDir:WU,getHTMLDirIfDifferent:function(e,t){return $U(e)||("production"!==process.env.NODE_ENV?HU(!1,"`dir` must be a strong direction to be converted to HTML Direction"):HU(!1)),$U(t)||("production"!==process.env.NODE_ENV?HU(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):HU(!1)),e===t?null:WU(e)},setGlobalDir:qU,initGlobalDir:function(){qU(VU)},getGlobalDir:function(){return UU||this.initGlobalDir(),UU||("production"!==process.env.NODE_ENV?HU(!1,"Global direction not set."):HU(!1)),UU}},GU=ZU,YU=wV,XU="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",JU="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",QU=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+XU+JU+"]"),e$=new RegExp("["+XU+JU+"]");function t$(e){var t=QU.exec(e);return null==t?null:t[0]}function n$(e){var t=t$(e);return null==t?GU.NEUTRAL:e$.exec(t)?GU.RTL:GU.LTR}function r$(e,t){if(t=t||GU.NEUTRAL,!e.length)return t;var n=n$(e);return n===GU.NEUTRAL?t:n}function o$(e,t){return t||(t=GU.getGlobalDir()),GU.isStrong(t)||("production"!==process.env.NODE_ENV?YU(!1,"Fallback direction must be a strong direction"):YU(!1)),r$(e,t)}var i$={firstStrongChar:t$,firstStrongCharDir:n$,resolveBlockDir:r$,getDirection:o$,isDirectionLTR:function(e,t){return o$(e,t)===GU.LTR},isDirectionRTL:function(e,t){return o$(e,t)===GU.RTL}};function a$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s$,c$=i$,u$=ZU,l$=wV,f$=function(){function e(e){a$(this,"_defaultDir",void 0),a$(this,"_lastDir",void 0),e?u$.isStrong(e)||("production"!==process.env.NODE_ENV?l$(!1,"Default direction must be a strong direction (LTR or RTL)"):l$(!1)):e=u$.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=c$.getDirection(e,this._lastDir),this._lastDir},e}(),d$=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},p$=f$,h$=CH,g$=d$,y$=h$.OrderedMap;function v$(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){m$(e,t,n[t])}))}return e}function m$(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$=tU,w$=zU,x$={getDirectionMap:function(e,t){s$?s$.reset():s$=new p$;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return g$(s$).getDirection(e.getText())})),o=y$(n.keySeq().zip(r));return null!=t&&h$.is(t,o)?t:o}},C$=gU,_$=CH,S$=_$.OrderedSet,O$=_$.Record,k$=_$.Stack,E$=_$.OrderedMap,j$=_$.List,A$=O$({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:k$(),selection:null,treeMap:null,undoStack:k$()}),T$=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(w$.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:k$(),redoStack:k$(),decorator:n||null,selection:C$.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=v$({},e,{treeMap:P$(n,e.decorator),directionMap:x$.getDirectionMap(n)});return new t(new A$(r))},t.fromJS=function(e){return new t(new A$(v$({},e,{directionMap:null!=e.directionMap?E$(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?S$(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?w$.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?k$(e.redoStack.map((function(e){return w$.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new C$(e.selection):e.selection,treeMap:null!=e.treeMap?E$(e.treeMap).map((function(e){return j$(e).map((function(e){return b$.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?k$(e.undoStack.map((function(e){return w$.fromJS(e)}))):e.undoStack,currentContent:w$.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 b$.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):P$(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(),a=e.getImmutable().get("treeMap");return a.merge(t.toSeq().filter((function(e,t){return e!==i.get(t)})).map((function(e){return b$.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){m$(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 D$(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 D$(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 M$(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),M$(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new C$({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=x$.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(),c=e.getUndoStack(),u=n;a!==s.getSelectionAfter()||function(e,t){var n=e.getLastChangeType();return t!==n||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(e,r)?(c=c.push(s),u=u.set("selectionBefore",a)):"insert-characters"!==r&&"backspace-character"!==r&&"delete-character"!==r||(u=u.set("selectionBefore",s.getSelectionBefore()));var l=e.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(r)&&(l=null);var f={currentContent:u,directionMap:i,undoStack:c,redoStack:k$(),lastChangeType:r,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:l};return t.set(e,f)},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=x$.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=x$.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 M$(e,t,n){return T$.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function P$(e,t){return e.getBlockMap().map((function(n){return b$.generate(e,n,t)})).toOrderedMap()}function D$(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):S$()}var L$=T$,R$=uV,I$=iK,N$=CH,B$=wV,F$=N$.OrderedMap,z$=N$.List,H$=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},V$=function(e,t,n,r,o){if(!o)return e;var i="after"===r,a=t.getKey(),s=n.getKey(),c=t.getParentKey(),u=t.getNextSiblingKey(),l=t.getPrevSiblingKey(),f=n.getParentKey(),d=i?n.getNextSiblingKey():s,p=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){H$(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),H$(l,e,(function(e){return e.merge({nextSibling:u})})),H$(u,e,(function(e){return e.merge({prevSibling:l})})),H$(d,e,(function(e){return e.merge({prevSibling:a})})),H$(p,e,(function(e){return e.merge({nextSibling:a})})),H$(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:z$(o)})})),H$(a,e,(function(e){return e.merge({nextSibling:d,prevSibling:p,parent:f})}))}))};function K$(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){U$(e,t,n[t])}))}return e}function U$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $$=SH,W$=LH,q$=GH,Z$=uV,G$=zK,Y$=L$,X$=TV,J$=CH,Q$=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?B$(!1,"Replacing blocks is not supported."):B$(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?B$(!1,"Block cannot be moved next to itself."):B$(!1));var a=e.getBlockMap(),s=t instanceof R$,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=I$(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){c.push(t),e.delete(t.getKey())}))})));var l=u.toSeq().takeUntil((function(e){return e===n})),f=u.toSeq().skipUntil((function(e){return e===n})).skip(1),d=c.map((function(e){return[e.getKey(),e]})),p=F$();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?B$(!1,"Block cannot be moved next to itself."):B$(!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?B$(!1,"Block cannot be moved next to itself."):B$(!1)),p=l.concat([[o,n]].concat(d),f).toOrderedMap()}return e.merge({blockMap:V$(p,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},eW=yU("draft_tree_data_support"),tW=eW?Z$:q$,nW=J$.List,rW=J$.Repeat,oW={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=G$.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=G$.splitBlock(i,a),c=s.getSelectionAfter(),u=G$.setBlockType(s,c,"atomic"),l=W$.create({entity:t}),f={key:X$(),type:"atomic",text:n,characterList:nW(rW(l,n.length))},d={key:X$(),type:"unstyled"};eW&&(f=K$({},f,{nextSibling:d.key}),d=K$({},d,{prevSibling:f.key}));var p=[new tW(f),new tW(d)],h=$$.createFromArray(p),g=G$.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return Y$.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=Q$(i,t,s,r)}else{var c=G$.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=Q$(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=Q$(c,t,l,"after");else{var f=G$.splitBlock(c,u),d=f.getSelectionAfter(),p=f.getBlockForKey(d.getFocusKey());o=Q$(f,t,p,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return Y$.push(e,h,"move-block")}};var iW=CH.List,aW=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)})),iW(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 sW=aW;function cW(e){return e.replace(/\//g,"-")}var uW=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(cW).join(" "):Array.prototype.map.call(arguments,cW).join(" ")},lW=t,fW=uW,dW=(0,CH.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:lW.createElement("ul",{className:fW("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:lW.createElement("ol",{className:fW("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:lW.createElement("pre",{className:fW("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),pW={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},hW={exports:{}};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="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",C="ASUS",_="BlackBerry",S="Browser",O="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",M="Motorola",P="Opera",D="Samsung",L="Sharp",R="Sony",I="Xiaomi",N="Zebra",B="Facebook",F=function(e){for(var t={},n=0;n<e.length;n++)t[e[n].toUpperCase()]=e[n];return t},z=function(e,t){return typeof e===s&&-1!==H(t).indexOf(H(e))},H=function(e){return e.toLowerCase()},V=function(e,t){if(typeof e===s)return e=e.replace(/^\s\s*/,""),typeof t===i?e:e.substring(0,350)},K=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var d=t[f],p=t[f+1];for(n=i=0;n<d.length&&!u;)if(u=d[n++].exec(e))for(s=0;s<p.length;s++)l=u[++i],typeof(c=p[s])===a&&c.length>0?2===c.length?typeof c[1]==o?this[c[0]]=c[1].call(this,l):this[c[0]]=c[1]:3===c.length?typeof c[1]!==o||c[1].exec&&c[1].test?this[c[0]]=l?l.replace(c[1],c[2]):r:this[c[0]]=l?c[1].call(this,l,c[2]):r:4===c.length&&(this[c[0]]=l?c[3].call(this,l.replace(c[1],c[2])):r):this[c]=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(z(t[n][o],e))return"?"===n?r:n}else if(z(t[n],e))return"?"===n?r:n;return e},$={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"},W={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[d,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[d,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,d],[/opios[\/ ]+([\w\.]+)/i],[d,[u,P+" Mini"]],[/\bopr\/([\w\.]+)/i],[d,[u,P]],[/(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|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[u,d],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[d,[u,"UC"+S]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[d,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[d,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[d,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[d,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[d,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+S],d],[/\bfocus\/([\w\.]+)/i],[d,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[d,[u,P+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[d,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[d,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[d,[u,P+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[d,[u,"MIUI "+S]],[/fxios\/([-\w\.]+)/i],[d,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+S]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+S],d],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],d],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,d],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],d],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,d],[/\bgsa\/([\w\.]+) .*safari\//i],[d,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[d,[u,O+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,O+" WebView"],d],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[d,[u,"Android "+S]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,d],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[d,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[d,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[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],[u,d],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],d],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[d,[u,k+" 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],[u,d],[/(cobalt)\/([\w\.]+)/i],[u,[d,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[p,"amd64"]],[/(ia32(?=;))/i],[[p,H]],[/((?: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/,"",H]],[/(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,H]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[f,D],[l,y]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[c,[f,D],[l,g]],[/\((ip(?:hone|od)[\w ]*);/i],[c,[f,x],[l,g]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[f,x],[l,y]],[/(macintosh);/i],[c,[f,x]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[f,j],[l,y]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[f,j],[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|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[c,/_/g," "],[f,I],[l,g]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[f,I],[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],[c,[f,"OPPO"],[l,g]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[f,"Vivo"],[l,g]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[c,[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],[c,[f,M],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,M],[l,y]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[f,A],[l,y]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[f,A],[l,g]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[f,"Lenovo"],[l,y]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[f,"Nokia"],[l,g]],[/(pixel c)\b/i],[c,[f,E],[l,y]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[f,E],[l,g]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[f,R],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,R],[l,y]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[f,"OnePlus"],[l,g]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[f,w],[l,y]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)/g,"Fire Phone $1"],[f,w],[l,g]],[/(playbook);[-\w\),; ]+(rim)/i],[c,f,[l,y]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[f,_],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,C],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,C],[l,g]],[/(nexus 9)/i],[c,[f,"HTC"],[l,y]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[f,[c,/_/g," "],[l,g]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[f,"Acer"],[l,y]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[f,"Meizu"],[l,g]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[f,L],[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,c,[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,c,[l,y]],[/(surface duo)/i],[c,[f,T],[l,y]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[f,"Fairphone"],[l,g]],[/(u304aa)/i],[c,[f,"AT&T"],[l,g]],[/\bsie-(\w*)/i],[c,[f,"Siemens"],[l,g]],[/\b(rct\w+) b/i],[c,[f,"RCA"],[l,y]],[/\b(venue[\d ]{2,7}) b/i],[c,[f,"Dell"],[l,y]],[/\b(q(?:mv|ta)\w+) b/i],[c,[f,"Verizon"],[l,y]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[f,"Barnes & Noble"],[l,y]],[/\b(tm\d{3}\w+) b/i],[c,[f,"NuVision"],[l,y]],[/\b(k88) b/i],[c,[f,"ZTE"],[l,y]],[/\b(nx\d{3}j) b/i],[c,[f,"ZTE"],[l,g]],[/\b(gen\d{3}) b.+49h/i],[c,[f,"Swiss"],[l,g]],[/\b(zur\d{3}) b/i],[c,[f,"Swiss"],[l,y]],[/\b((zeki)?tb.*\b) b/i],[c,[f,"Zeki"],[l,y]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[f,"Dragon Touch"],c,[l,y]],[/\b(ns-?\w{0,9}) b/i],[c,[f,"Insignia"],[l,y]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[f,"NextBook"],[l,y]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[f,"Voice"],c,[l,g]],[/\b(lvtel\-)?(v1[12]) b/i],[[f,"LvTel"],c,[l,g]],[/\b(ph-1) /i],[c,[f,"Essential"],[l,g]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[f,"Envizen"],[l,y]],[/\b(trio[-\w\. ]+) b/i],[c,[f,"MachSpeed"],[l,y]],[/\btu_(1491) b/i],[c,[f,"Rotor"],[l,y]],[/(shield[\w ]+) b/i],[c,[f,"Nvidia"],[l,y]],[/(sprint) (\w+)/i],[f,c,[l,g]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[f,T],[l,g]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[f,N],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,N],[l,g]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[f,c,[l,h]],[/droid.+; (shield) bui/i],[c,[f,"Nvidia"],[l,h]],[/(playstation [345portablevi]+)/i],[c,[f,R],[l,h]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[f,T],[l,h]],[/smart-tv.+(samsung)/i],[f,[l,v]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[f,D],[l,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[f,A],[l,v]],[/(apple) ?tv/i],[f,[c,x+" TV"],[l,v]],[/crkey/i],[[c,O+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,L],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,R],[l,v]],[/(mitv-\w{5}) bui/i],[c,[f,I],[l,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[f,V],[c,V],[l,v]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[l,v]],[/((pebble))app/i],[f,c,[l,m]],[/droid.+; (glass) \d/i],[c,[f,E],[l,m]],[/droid.+; (wt63?0{2,3})\)/i],[c,[f,N],[l,m]],[/(quest( 2)?)/i],[c,[f,B],[l,m]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[f,[l,b]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[c,[l,g]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[l,y]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[l,y]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[l,g]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[f,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[d,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[d,[u,"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],[u,d],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[d,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,d],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[d,U,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[d,U,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[d,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[d,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[d,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,d],[/\(bb(10);/i],[d,[u,_]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[d,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[d,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[d,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[d,[u,O+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"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],[u,d],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],d],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,d]]},q=function(e,t){if(typeof e===a&&(t=e,e=r),!(this instanceof q))return new q(e,t).getResult();var o=e||(typeof n!==i&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),h=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}(W,t):W;return this.getBrowser=function(){var e,t={};return t[u]=r,t[d]=r,K.call(t,o,h.browser),t.major=typeof(e=t.version)===s?e.replace(/[^\d\.]/g,"").split(".")[0]:r,t},this.getCPU=function(){var e={};return e[p]=r,K.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,K.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[d]=r,K.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[d]=r,K.call(e,o,h.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>350?V(e,350):e,this},this.setUA(o),this};q.VERSION="0.7.33",q.BROWSER=F([u,d,"major"]),q.CPU=F([p]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,d]),e.exports&&(t=e.exports=q),t.UAParser=q;var Z=typeof n!==i&&(n.jQuery||n.Zepto);if(Z&&!Z.ua){var G=new q;Z.ua=G.getResult(),Z.ua.get=function(){return G.getUA()},Z.ua.set=function(e){G.setUA(e);var t=G.getResult();for(var n in t)Z.ua[n]=t[n]}}}("object"==typeof window?window:st)}(hW,hW.exports);var gW="Unknown",yW={"Mac OS":"Mac OS X"};var vW,mW=(new(0,hW.exports)).getResult(),bW=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(mW.browser.version),wW={browserArchitecture:mW.cpu.architecture||gW,browserFullVersion:mW.browser.version||gW,browserMinorVersion:bW.minor||gW,browserName:mW.browser.name||gW,browserVersion:mW.browser.major||gW,deviceName:mW.device.model||gW,engineName:mW.engine.name||gW,engineVersion:mW.engine.version||gW,platformArchitecture:mW.cpu.architecture||gW,platformName:(vW=mW.os.name,yW[vW]||vW||gW),platformVersion:mW.os.version||gW,platformFullVersion:mW.os.version||gW},xW=wV,CW=/\./,_W=/\|\|/,SW=/\s+\-\s+/,OW=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,kW=/^(\d*)(.*)/;function EW(e,t){var n=e.split(_W);return n.length>1?n.some((function(e){return BW.contains(e,t)})):function(e,t){var n=e.split(SW);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?xW(!1,'the "-" operator expects exactly 2 operands'):xW(!1)),1===n.length)return jW(n[0],t);var r=n[0],o=n[1];return DW(r)&&DW(o)||("production"!==process.env.NODE_ENV?xW(!1,'operands to the "-" operator must be simple (no modifiers)'):xW(!1)),jW(">="+r,t)&&jW("<="+o,t)}(e=n[0].trim(),t)}function jW(e,t){if(""===(e=e.trim()))return!0;var n=t.split(CW),r=MW(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return AW(n,i);case"<=":return function(e,t){var n=NW(e,t);return-1===n||0===n}(n,i);case">=":return TW(n,i);case">":return function(e,t){return 1===NW(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);PW(i)&&(r[o]=i+1+"");return TW(e,n)&&AW(e,r)}(n,i);default:return function(e,t){return 0===NW(e,t)}(n,i)}}function AW(e,t){return-1===NW(e,t)}function TW(e,t){var n=NW(e,t);return 1===n||0===n}function MW(e){var t=e.split(CW),n=t[0].match(OW);return n||("production"!==process.env.NODE_ENV?xW(!1,"expected regex to match but it did not"):xW(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function PW(e){return!isNaN(e)&&isFinite(e)}function DW(e){return!MW(e).modifier}function LW(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function RW(e,t){var n=e.match(kW)[1],r=t.match(kW)[1],o=parseInt(n,10),i=parseInt(r,10);return PW(o)&&PW(i)&&o!==i?IW(o,i):IW(e,t)}function IW(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?xW(!1,'"a" and "b" must be of the same type'):xW(!1)),e>t?1:e<t?-1:0}function NW(e,t){for(var n=function(e,t){LW(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 LW(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=RW(r[i],o[i]);if(a)return a}return 0}var BW={contains:function(e,t){return EW(e.trim(),t.trim())}},FW=BW,zW=Object.prototype.hasOwnProperty;var HW=function(e,t,n){if(!e)return null;var r={};for(var o in e)zW.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var VW=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},KW=wW,UW=FW;function $W(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,UW.contains(o,t))}function WW(e){return"Windows"===KW.platformName?e.replace(/^\s*NT/,""):e}var qW=HW({isBrowser:function(e){return $W(KW.browserName,KW.browserFullVersion,e)},isBrowserArchitecture:function(e){return $W(KW.browserArchitecture,null,e)},isDevice:function(e){return $W(KW.deviceName,null,e)},isEngine:function(e){return $W(KW.engineName,KW.engineVersion,e)},isPlatform:function(e){return $W(KW.platformName,KW.platformFullVersion,e,WW)},isPlatformArchitecture:function(e){return $W(KW.platformArchitecture,null,e)}},VW);var ZW=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var GW=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},YW=GW;var XW=function e(t){if(YW(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},JW=ZW,QW=XW;var eq=function(e){for(var t=e;t&&t!==JW(e).documentElement;){var n=QW(t);if(null!=n)return n;t=t.parentNode}return null};var tq=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function nq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var rq=qW,oq=eq,iq=tq,aq=wV,sq=d$,cq=CH.Map,uq={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},lq=rq.isBrowser("IE <= 11"),fq=function(){function e(e){var t=this;nq(this,"observer",void 0),nq(this,"container",void 0),nq(this,"mutations",void 0),nq(this,"onCharData",void 0),this.container=e,this.mutations=cq();var n=iq(e);n.MutationObserver&&!lq?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?aq(!1,"Expected target to be an instance of Node"):aq(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,uq):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=cq(),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 lq?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=sq(oq(e.target));this.mutations=this.mutations.set(n,t)}},e}(),dq="-",pq={encode:function(e,t,n){return e+dq+t+dq+n},decode:function(e){var t=e.split(dq).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(dq),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},hq={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},gq={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var yq=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},vq=wV,mq=yq;var bq=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?vq(!1,"Missing editorNode"):vq(!1)),mq(t.firstChild)||("production"!==process.env.NODE_ENV?vq(!1,"editorNode.firstChild is not an HTMLElement"):vq(!1)),t.firstChild},wq=pq,xq=d$;var Cq=function(e,t,n,r,o){var i=xq(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=wq.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=wq.decode(r),f=l.blockKey,d=e.getBlockTree(f),p=d&&d.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!p)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=p.get("start"),y=u?h+n:null,v=p?g+o:null;if(i.getAnchorKey()===s&&i.getAnchorOffset()===y&&i.getFocusKey()===f&&i.getFocusOffset()===v)return i;var m=!1;if(s===f){var b=u.get("end"),w=p.get("end");m=g===h&&w===b?o<n:g<h}else{m=e.getCurrentContent().getBlockMap().keySeq().skipUntil((function(e){return e===s||e===f})).first()===f}return i.merge({anchorKey:s,anchorOffset:y,focusKey:f,focusOffset:v,isBackward:m})},_q=eq,Sq=XW,Oq=Cq,kq=wV,Eq=GW,jq=d$;function Aq(e,t,n){var r=t,o=_q(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?kq(!1,"Unknown node in selection range."):kq(!1)),e===r)&&(r=r.firstChild,Eq(r)||("production"!==process.env.NODE_ENV?kq(!1,"Invalid DraftEditorContents node."):kq(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?kq(!1,"Invalid DraftEditorContents structure."):kq(!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&&(Eq(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||Sq(e.firstChild));)e=e.firstChild;return e}(r);i=jq(Sq(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(Sq(s)){var l=function(e){for(;e.lastChild&&(Eq(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||Sq(e.lastChild));)e=e.lastChild;return e}(s);c=jq(Sq(l)),u=Tq(l)}else c=jq(o),u=Tq(s);return{key:c,offset:u}}function Tq(e){var t=e.textContent;return"\n"===t?0:t.length}var Mq=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:Oq(e,jq(_q(n)),r,jq(_q(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:jq(_q(n)),offset:r},u=Aq(t,o,i)):s?(u={key:jq(_q(o)),offset:i},c=Aq(t,n,r)):(c=Aq(t,n,r),u=Aq(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:Oq(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},Pq=Mq;var Dq=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}:Pq(e,t,r,o,i,a)},Lq=gq,Rq=L$,Iq=bq,Nq=Dq;var Bq=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();Lq.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=Nq(n,Iq(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?Rq.forceSelection(n,o):Rq.acceptSelection(n,o),e.update(n))}};var Fq={notEmptyKey:function(e){return null!=e&&""!=e}},zq=Fq.notEmptyKey;function Hq(e,t){return zq(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var Vq=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:Hq(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),Hq(e.getEntityMap(),n)},Kq=fq,Uq=zK,$q=pq,Wq=L$,qq=hq,Zq=Bq,Gq=bq,Yq=Dq,Xq=Vq,Jq=d$,Qq=qW.isBrowser("IE"),eZ=!1,tZ=!1,nZ=null;var rZ,oZ,iZ={onCompositionStart:function(e){tZ=!0,function(e){nZ||(nZ=new Kq(Gq(e))).start()}(e)},onCompositionEnd:function(e){eZ=!1,tZ=!1,setTimeout((function(){eZ||iZ.resolveComposition(e)}),20)},onSelect:Zq,onKeyDown:function(e,t){if(!tZ)return iZ.resolveComposition(e),void e._onKeyDown(t);t.which!==qq.RIGHT&&t.which!==qq.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===qq.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!tZ){var t=Jq(nZ).stopAndFlushMutations();nZ=null,eZ=!0;var n=Wq.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=$q.decode(t),i=o.blockKey,a=o.decoratorKey,s=o.leafKey,c=n.getBlockTree(i).getIn([a,"leaves",s]),u=c.start,l=c.end,f=n.getSelection().merge({anchorKey:i,focusKey:i,anchorOffset:u,focusOffset:l,isBackward:!1}),d=Xq(r,f),p=r.getBlockForKey(i).getInlineStyleAt(u);r=Uq.replaceText(r,f,e,p,d),n=Wq.set(n,{currentContent:r})}));var o=Yq(n,Gq(e)).selectionState;e.restoreEditorDOM();var i=Qq?Wq.forceSelection(n,o):Wq.acceptSelection(n,o);e.update(Wq.push(i,r,"insert-characters"))}else e.update(n)}}},aZ=iZ;function sZ(){if(oZ)return rZ;oZ=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}var r=pq,o=t,i=i$,a=ZU,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}return s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s,c.prototype.render=function(){var e=this.props,t=e.block,s=e.children,c=e.contentState,u=e.decorator,l=e.decoratorKey,f=e.direction,d=e.leafSet,p=e.text,h=t.getKey(),g=d.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=p.slice(g.first().get("start"),g.last().get("end")),w=a.getHTMLDirIfDifferent(i.getDirection(b),f);return o.createElement(y,n({},v,{contentState:c,decoratedText:b,dir:w,key:m,entityKey:t.getEntityAt(d.get("start")),offsetKey:m}),s)},c}(o.Component);return rZ=s}function cZ(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lZ=t,fZ=wV,dZ=GW,pZ=qW.isBrowser("IE <= 11");var hZ=function(e){var t,n;function r(t){var n;return uZ(cZ(n=e.call(this,t)||this),"_forceFlag",void 0),uZ(cZ(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;dZ(t)||("production"!==process.env.NODE_ENV?fZ(!1,"node is not an Element"):fZ(!1));var r=t;return n?!function(e){return pZ?"\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},pZ?lZ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):lZ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return pZ?lZ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):lZ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):lZ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(lZ.Component),gZ=hZ,yZ=GW;var vZ=function(e){return!(!e||!e.ownerDocument)&&(yZ(e)&&"BR"===e.nodeName)},mZ={initODS:function(){},handleExtensionCausedError:function(){}};var bZ=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))},wZ=bZ;var xZ=function(e){return wZ(e)&&3==e.nodeType},CZ=xZ;var _Z=function e(t,n){return!(!t||!n)&&(t===n||!CZ(t)&&(CZ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var SZ=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}},OZ=mZ,kZ=gq,EZ=_Z,jZ=SZ,AZ=ZW,TZ=wV,MZ=GW,PZ=qW.isBrowser("IE");function DZ(e,t){if(!e)return"[empty]";var n=LZ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(MZ(n)||("production"!==process.env.NODE_ENV?TZ(!1,"Node must be an Element if it is not a text node."):TZ(!1)),n.outerHTML)}function LZ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return AZ(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(LZ(i[a],t));return o}function RZ(e,t){for(var n=e,r=n;n;){if(MZ(n)&&r.hasAttribute("contenteditable"))return DZ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function IZ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function NZ(e,t,n,r){var o=jZ();if(e.extend&&null!=t&&EZ(o,t)){n>IZ(t)&&kZ.logSelectionStateFailure({anonymizedDom:RZ(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 kZ.logSelectionStateFailure({anonymizedDom:RZ(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 BZ(e,t,n,r){var o=AZ(t).createRange();if(n>IZ(t)&&(kZ.logSelectionStateFailure({anonymizedDom:RZ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),OZ.handleExtensionCausedError()),o.setStart(t,n),PZ)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 FZ=function(e,t,n,r,o){var i=AZ(t);if(EZ(i.documentElement,t)){var a=i.defaultView.getSelection(),s=e.getAnchorKey(),c=e.getAnchorOffset(),u=e.getFocusKey(),l=e.getFocusOffset(),f=e.getIsBackward();if(!a.extend&&f){var d=s,p=c;s=u,c=l,u=d,l=p,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),BZ(a,t,c-r,e),void NZ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),BZ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),BZ(a,t,c-r,e),NZ(a,y,v,e)}}else h&&(a.removeAllRanges(),BZ(a,t,c-r,e)),g&&NZ(a,t,l-r,e)}},zZ=Hm;var HZ,VZ,KZ=gZ,UZ=t,$Z=wV,WZ=vZ,qZ=FZ,ZZ=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 function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(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?$Z(!1,"Missing node"):$Z(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?$Z(!1,"Missing child"):$Z(!1)),u.nodeType===Node.TEXT_NODE?c=u:WZ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?$Z(!1,"Missing targetNode"):$Z(!1)),qZ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?$Z(!1,"Missing leafNode"):$Z(!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,c=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()),zZ(e,r,n)}),{});if(i){var u=i(s,t);c=zZ(c,u)}return UZ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},UZ.createElement(KZ,null,n))},r}(UZ.Component),GZ=ZZ;function YZ(){if(VZ)return HZ;VZ=1;var e=sZ(),n=GZ,r=pq,o=t,i=uW;CH.List;var a=function(t){var a,s;function c(){return t.apply(this,arguments)||this}return s=t,(a=c).prototype=Object.create(s.prototype),a.prototype.constructor=a,a.__proto__=s,c.prototype.render=function(){var t=this.props,a=t.block,s=t.contentState,c=t.customStyleFn,u=t.customStyleMap,l=t.decorator,f=t.direction,d=t.forceSelection,p=t.hasSelection,h=t.selection,g=t.tree,y=a.getKey(),v=a.getText(),m=g.size-1,b=this.props.children||g.map((function(t,i){var g=t.get("decoratorKey"),b=t.get("leaves"),w=b.size-1,x=b.map((function(e,t){var s=r.encode(y,i,t),l=e.get("start"),f=e.get("end");return o.createElement(n,{key:s,offsetKey:s,block:a,start:l,selection:p?h:null,forceSelection:d,text:v.slice(l,f),styleSet:a.getInlineStyleAt(l),customStyleMap:u,customStyleFn:c,isLast:g===m&&t===w})})).toArray();return g&&l?o.createElement(e,{block:a,children:x,contentState:s,decorator:l,decoratorKey:g,direction:f,leafSet:t,text:v,key:i}):x})).toArray();return o.createElement("div",{"data-offset-key":r.encode(y,0,0),className:i({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===f,"public/DraftStyleDefault/rtl":"RTL"===f})},b)},c}(o.Component);return HZ=a}function XZ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var JZ={getTop:function(e){var t=e.ownerDocument;return XZ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;XZ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return XZ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;XZ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},QZ=/-(.)/g;var eG=function(e){return e.replace(QZ,(function(e,t){return t.toUpperCase()}))},tG=/([A-Z])/g;var nG=function(e){return e.replace(tG,"-$1").toLowerCase()},rG=eG,oG=nG;function iG(e){return null==e?e:String(e)}var aG=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return iG(n.getPropertyValue(oG(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return iG(n.getPropertyValue(oG(t)));if("display"===t)return"none"}return e.currentStyle?iG("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[rG(t)]):iG(e.style&&e.style[rG(t)])};function sG(e,t){var n=cG.get(e,t);return"auto"===n||"scroll"===n}var cG={get:aG,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(sG(e,"overflow")||sG(e,"overflowY")||sG(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},uG=cG,lG=_Z;var fG=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!lG(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 dG=function(e){var t=fG(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},pG="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var hG=function(e){return(e=e||document).scrollingElement?e.scrollingElement:pG||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},gG=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 yG=function(e){var t=hG(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=gG(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 vG(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function mG(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function bG(){return{width:window.innerWidth||vG(),height:window.innerHeight||mG()}}bG.withoutScrollbars=function(){return{width:vG(),height:mG()}};var wG,xG,CG,_G,SG=bG;function OG(){if(xG)return wG;xG=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}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=YZ(),a=pq,s=t,c=JZ,u=uG,l=dG,f=yG,d=SG,p=wV,h=yq;CH.List;var g=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},y=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}},v=function(e,t){var n=t(e);return n?{CustomComponent:n.component,customProps:n.props,customEditable:n.editable}:{}},m=function(e,t,n,o,i,a){var s={"data-block":!0,"data-editor":t,"data-offset-key":n,key:e.getKey(),ref:a},c=o(e);return c&&(s.className=c),void 0!==i.customEditable&&(s=r({},s,{contentEditable:i.customEditable,suppressContentEditableWarning:!0})),s},b=function(e){var t,b;function w(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return o(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(t=e.call.apply(e,[this].concat(r))||this),"wrapperRef",s.createRef()),t}b=e,(t=w).prototype=Object.create(b.prototype),t.prototype.constructor=t,t.__proto__=b;var x=w.prototype;return x.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||g(e.selection,e.block.getKey())&&e.forceSelection;return i||a},x.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=u.getScrollParent(n),i=f(o);if(o===window){var a=l(n);(r=a.y+a.height-d().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?p(!1,"blockNode is not an HTMLElement"):p(!1));var s=n;(r=s.offsetHeight+s.offsetTop-(o.offsetHeight+i.y))>0&&c.setTop(o,c.getTop(o)+r+10)}}}},x.render=function(){var e=this,t=this.props,o=t.block,c=t.blockRenderMap,u=t.blockRendererFn,l=t.blockStyleFn,f=t.contentState,d=t.decorator,p=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,C=t.direction,_=t.forceSelection,S=t.selection,O=t.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=v(i,u),g=d.CustomComponent||w,b=y(i,c),x=b.Element,C=b.wrapperTemplate,_=m(i,p,o,l,d,null),S=r({},e.props,{tree:h.getBlockTree(n),blockProps:d.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,_,s.createElement(g,S))),!C||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,c=void 0;try{for(var u,l=n.reverse()[Symbol.iterator]();!(o=(u=l.next()).done);o=!0){var f=u.value;if(f.type!==t)break;r.push(f)}}catch(e){i=!0,c=e}finally{try{o||null==l.return||l.return()}finally{if(i)throw c}}n.splice(n.indexOf(r[0]),r.length+1);var d=r.reverse(),p=d[0].key;n.push(s.cloneElement(e,{key:"".concat(p,"-wrap"),"data-offset-key":a.encode(p,0,0)},d))}(C,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,M=null!=T?s.createElement(T,n({},this.props,{tree:h.getBlockTree(E),blockProps:A.customProps,offsetKey:j,block:o})):s.createElement(i,{block:o,children:k,contentState:f,customStyleFn:b,customStyleMap:x,decorator:d,direction:C,forceSelection:_,hasSelection:g(S,E),selection:S,tree:O});if(o.getParentKey())return M;var P=y(o,c).Element,D=m(o,p,j,l,A,this.wrapperRef);return s.createElement(P,D,M)},w}(s.Component);return wG=b}var kG=Hm;function EG(){return EG=kG||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},EG.apply(this,arguments)}var jG,AG,TG,MG,PG=GZ,DG=pq,LG=t,RG=JZ,IG=uG,NG=i$,BG=ZU,FG=uW,zG=dG,HG=yG,VG=SG,KG=wV,UG=yq,$G=d$,WG=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},qG=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 function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(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||WG(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=IG.getScrollParent(n),i=HG(o);if(o===window){var a=zG(n);(r=a.y+a.height-VG().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{UG(n)||("production"!==process.env.NODE_ENV?KG(!1,"blockNode is not an HTMLElement"):KG(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&RG.setTop(o,RG.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=WG(this.props.selection,n);return this.props.tree.map((function(a,s){var c=a.get("leaves");if(0===c.size)return null;var u=c.size-1,l=c.map((function(a,c){var l=DG.encode(n,s,c),f=a.get("start"),d=a.get("end");return LG.createElement(PG,{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&&c===u})})).toArray(),f=a.get("decoratorKey");if(null==f)return l;if(!e.props.decorator)return l;var d=$G(e.props.decorator),p=d.getComponentForKey(f);if(!p)return l;var h=d.getPropsForKey(f),g=DG.encode(n,s,0),y=c.first().get("start"),v=c.last().get("end"),m=r.slice(y,v),b=t.getEntityAt(a.get("start")),w=BG.getHTMLDirIfDifferent(NG.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 LG.createElement(p,EG({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=FG({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return LG.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(LG.Component),ZG=qG;var GG=yU("draft_tree_data_support")?function(){if(_G)return CG;_G=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}var r=OG(),o=pq,i=t,a=d$,s=function(e){var t,s;function c(){return e.apply(this,arguments)||this}s=e,(t=c).prototype=Object.create(s.prototype),t.prototype.constructor=t,t.__proto__=s;var u=c.prototype;return u.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(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},u.render=function(){for(var e=this.props,t=e.blockRenderMap,s=e.blockRendererFn,c=e.blockStyleFn,u=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=a(f.getDirectionMap()),b=[],w=h.getBlocksAsArray()[0];w;){var x=w.getKey(),C={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:d,editorState:f,forceSelection:y,selection:g,block:w,direction:p||m.get(x),tree:f.getBlockTree(x)},_=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},C)),wrapperTemplate:_,key:x,offsetKey:o.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=i.cloneElement(E.wrapperTemplate,{key:E.key+"-wrap","data-offset-key":E.offsetKey},j);O.push(A)}else O.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},O)},c}(i.Component);return CG=s}():function(){if(MG)return TG;MG=1;var e=Hm;function n(){return n=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},n.apply(this,arguments)}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=ZG,a=pq,s=t,c=uW,u=(AG||(AG=1,jG=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}),jG),l=d$,f=function(e,t,n,r){return c({"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 t,o;function c(){return e.apply(this,arguments)||this}o=e,(t=c).prototype=Object.create(o.prototype),t.prototype.constructor=t,t.__proto__=o;var d=c.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(),c=t.getDecorator(),u=n.getDecorator();return o!==i||a!==s||c!==u||n.mustForceSelection()},d.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=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(),C=l(h.getDirectionMap()),_=m.getBlocksAsArray(),S=[],O=null,k=null,E=0;E<_.length;E++){var j=_[E],A=j.getKey(),T=j.getType(),M=o(j),P=void 0,D=void 0,L=void 0;M&&(P=M.component,D=M.props,L=M.editable);var R=v||C.get(A),I=a.encode(A,0,0),N={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:d,customStyleFn:p,decorator:x,direction:R,forceSelection:w,offsetKey:I,preventScroll:y,selection:b,tree:h.getBlockTree(A)},B=t.get(T)||t.get("unstyled"),F=B.wrapper,z=B.element||t.get("unstyled").element,H=j.getDepth(),V="";if(c&&(V=c(j)),"li"===z)V=u(V,f(T,H,k!==F||null===O||H>O,R));var K=P||i,U={className:V,"data-block":!0,"data-editor":g,"data-offset-key":I,key:A};void 0!==L&&(U=r({},U,{contentEditable:L,suppressContentEditableWarning:!0}));var $=s.createElement(z,U,s.createElement(K,n({},N,{key:A})));S.push({block:$,wrapperTemplate:F,key:A,offsetKey:I}),O=F?j.getDepth():null,k=F}for(var W=[],q=0;q<S.length;){var Z=S[q];if(Z.wrapperTemplate){var G=[];do{G.push(S[q].block),q++}while(q<S.length&&S[q].wrapperTemplate===Z.wrapperTemplate);var Y=s.cloneElement(Z.wrapperTemplate,{key:Z.key+"-wrap","data-offset-key":Z.offsetKey},G);W.push(Y)}else W.push(Z.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return TG=d}(),YG={isImage:function(e){return"image"===XG(e)[0]},isJpeg:function(e){var t=XG(e);return YG.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function XG(e){return e.split("/")}var JG=YG,QG=wV;var eY=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?QG(!1,"toArray: Array-like object expected"):QG(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?QG(!1,"toArray: Object needs a length property"):QG(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?QG(!1,"toArray: Object should have keys for indices"):QG(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?QG(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):QG(!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 tY(e){return function(){return e}}var nY=function(){};nY.thatReturns=tY,nY.thatReturnsFalse=tY(!1),nY.thatReturnsTrue=tY(!0),nY.thatReturnsNull=tY(null),nY.thatReturnsThis=function(){return this},nY.thatReturnsArgument=function(e){return e};var rY=nY,oY=JG,iY=eY,aY=rY,sY=new RegExp("\r\n","g"),cY={"text/rtf":1,"text/html":1};function uY(e){if("file"==e.kind)return e.getAsFile()}var lY=function(){function e(e){this.data=e,this.types=e.types?iY(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return cY[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(sY,"\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(!oY.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(uY).filter(aY.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),fY=lY,dY=wV,pY=/\.textClipping$/,hY={"text/plain":!0,"text/html":!0,"text/rtf":!0};var gY=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!st.FileReader||e.type&&!(e.type in hY))return void t("");if(""===e.type){var n="";return pY.test(e.name)&&(n=e.name.replace(pY,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?dY(!1,'We should be calling "FileReader.readAsText" which returns a string'):dY(!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 yY=function(e){return"handled"===e||!0===e},vY=fY,mY=zK,bY=L$,wY=eq,xY=ZW,CY=gY,_Y=Cq,SY=tq,OY=yY,kY=d$;var EY={onDragEnd:function(e){e.exitCurrentMode(),jY(e)},onDrop:function(e,t){var n=new vY(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=xY(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=kY(n),r=kY(r);var a=kY(wY(n));return _Y(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&&OY(e.props.handleDroppedFiles(o,i)))return;CY(i,(function(t){t&&e.update(AY(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&OY(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=mY.moveText(e.getCurrentContent(),e.getSelection(),t);return bY.push(e,n,"insert-fragment")}(r,o)):e.update(AY(r,o,n.getText()))),jY(e)}}}};function jY(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:SY(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function AY(e,t,n){var r=mY.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return bY.push(e,r,"insert-fragment")}var TY=EY;var MY=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,c={},u=!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 c[s]=o,n(s),s++},f.clearImmediate=d}function d(e){delete c[e]}function p(e){if(u)setTimeout(p,0,e);else{var n=c[e];if(n){u=!0;try{!function(e){var n=e.callback,r=e.args;switch(r.length){case 0:n();break;case 1:n(r[0]);break;case 2:n(r[0],r[1]);break;case 3:n(r[0],r[1],r[2]);break;default:n.apply(t,r)}}(n)}finally{d(e),u=!1}}}}}("undefined"==typeof self?st:self);var PY=st.setImmediate,DY=zK,LY=L$,RY=Vq,IY=yY,NY=MY,BY=d$,FY=PY,zY="'",HY="/",VY=qW.isBrowser("Firefox");function KY(e,t,n,r,o){var i=DY.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return LY.push(e,i,"insert-characters",o)}var UY=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&&IY(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(KY(n,r,n.getCurrentInlineStyle(),RY(n.getCurrentContent(),n.getSelection()),!0));var s,c=KY(n,r,n.getCurrentInlineStyle(),RY(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=NY(e._latestCommittedEditorState)),!u){var l=n.getBlockTree(a),f=c.getBlockTree(a);u=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"),c=s+(s>=i?r.length:0),u=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!==u||c!==l||null!=f&&l-u!=s-o}))}if(u||(s=r,u=VY&&(s==zY||s==HY)),u||(u=BY(c.getDirectionMap()).get(a)!==BY(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=LY.set(c,{forceSelection:!0}),void e.update(c);c=LY.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,FY((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},$Y=L$,WY=_Z,qY=SZ;var ZY=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&qY(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&WY(o,r.anchorNode)&&WY(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($Y.acceptSelection(i,s))}},GY=L$;var YY=function(e,t){e.setMode("composite"),e.update(GY.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},XY=VV;var JY=function(e){var t=e.getSelection();return t.isCollapsed()?null:XY(e.getCurrentContent(),t)},QY=JY;var eX=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(QY(e._latestEditorState))};var tX=zK,nX=L$,rX=uG,oX=JY,iX=yG,aX=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 sX=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(aX(i)){var a=i;n=iX(rX.getScrollParent(a))}var s=oX(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=tX.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return nX.push(e,t,"remove-range")}(r))}),0)}};var cX=function(e,t){e.setMode("drag"),t.preventDefault()};var uX=function(e){e._internalDrag=!0,e.setMode("drag")},lX=L$,fX=qW;var dX=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),fX.isBrowser("Chrome < 60.0.3081.0")?e.update(lX.forceSelection(n,o)):e.update(lX.acceptSelection(n,o))}},pX=wV,hX=55296,gX=57343,yX=/[\uD800-\uDFFF]/;function vX(e){return hX<=e&&e<=gX}function mX(e){return yX.test(e)}function bX(e,t){return 1+vX(e.charCodeAt(t))}function wX(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!mX(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+=bX(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=bX(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=bX(e,i);return e.substring(o,i)}var xX={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=bX(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:bX,hasSurrogateUnit:mX,isCodeUnitInSurrogateRange:vX,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?pX(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):pX(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return hX<=n&&n<=56319&&56320<=r&&r<=gX},strlen:function(e){if(!mX(e))return e.length;for(var t=0,n=0;n<e.length;n+=bX(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 wX(e,t=t<n?t:n,r)},substr:wX},CX=xX,_X=rY;function SX(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 OX="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];SX.apply(void 0,[t].concat(r))}}:_X,kX=OX,EX=kX;var jX=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&EX(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 c=r.getKeyBefore(o);if(null==c)a=o;else a=c,s=r.getBlockForKey(c).getText().length}else s=i-t;return n.merge({focusKey:a,focusOffset:s,isBackward:!0})},AX=zK,TX=yU("draft_tree_data_support");var MX=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(TX&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(TX)if(r.getAnchorOffset()===o.getBlockForKey(a).getLength()){var u=o.getBlockForKey(c.nextSibling);if(!u||0===u.getLength())return o}}else if(e.isSelectionAtStartOfContent())return o;if((i=t(e))===r)return o}return AX.removeRange(o,i,n)},PX=L$,DX=CX,LX=jX,RX=MX;var IX=function(e){var t=RX(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return LX(e,i?DX.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return PX.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},NX=zK,BX=pq,FX=L$,zX=Fq.notEmptyKey,HX=eq,VX=IX,KX=d$,UX=qW.isEngine("Gecko");var $X=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 c=r.textContent,u=e._latestEditorState,l=KX(HX(r)),f=BX.decode(l),d=f.blockKey,p=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(d).getIn([p,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(d),w=b.getText().slice(y,v);if(c.endsWith("\n\n")&&(c=c.slice(0,-1)),c!==w){var x,C,_,S,O=u.getSelection(),k=O.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=zX(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",M=NX.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(UX)x=n.anchorOffset,C=n.focusOffset,S=(_=y+Math.min(x,C))+Math.abs(x-C),x=_,C=S;else{var P=c.length-w.length;_=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:C})});e.update(FX.push(u,D,T))}else{var L=t.nativeEvent.inputType;if(L){var R=function(e,t){return"deleteContentBackward"===e?VX(t):t}(L,u);if(R!==u)return e.restoreEditorDOM(),void e.update(R)}}}},WX=hq;var qX=function(e){return e.which===WX.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},ZX=qX,GX=qW.isPlatform("Mac OS X"),YX={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return GX&&e.altKey},usesMacOSHeuristics:function(){return GX},hasCommandModifier:function(e){return GX?!!e.metaKey&&!e.altKey:YX.isCtrlKeyCommand(e)},isSoftNewlineEvent:ZX},XX=YX,JX=zK,QX=L$,eJ=VV,tJ=d$,nJ=null,rJ={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=tJ(r),nJ=eJ(t,r);var s=JX.removeRange(t,r,"forward");return s===t?e:QX.push(e,s,"remove-range")},paste:function(e){if(!nJ)return e;var t=JX.replaceWithFragment(e.getCurrentContent(),e.getSelection(),nJ);return QX.push(e,t,"insert-fragment")}},oJ=wV;var iJ=qW.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?oJ(!1,"Found an unexpected detached subtree when getting range client rects."):oJ(!1)}:function(e){return Array.from(e.getClientRects())},aJ=iJ,sJ=CX,cJ=ZW,uJ=aJ,lJ=wV;function fJ(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 dJ(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 pJ=function(e){e.collapsed||("production"!==process.env.NODE_ENV?lJ(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):lJ(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=cJ(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?lJ(!1,"Missing document.body"):lJ(!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);fJ(uJ(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?lJ(!1,"Found unexpected detached subtree when traversing."):lJ(!1)),e.setStartBefore(r),1!==r.nodeType||"inline"===getComputedStyle(r).display););for(var i=r,a=o-1;;){for(var s=i.nodeValue,c=a;c>=0;c--)if(!(null!=s&&c>0&&sJ.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!fJ(uJ(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=dJ(i=i.childNodes[c])}return e.setStart(r,o),e},hJ=L$,gJ=pJ,yJ=Mq,vJ=jX,mJ=MX;var bJ=function(e,t){var n=mJ(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return vJ(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=gJ(r),yJ(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:hJ.push(e,n,"remove-range")},wJ="['‘’]",xJ="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),CJ=new RegExp("^(?:"+xJ+")*(?:"+wJ+"|(?!"+xJ+").)*(?:(?!"+xJ+").)"),_J=new RegExp("(?:(?!"+xJ+").)(?:"+wJ+"|(?!"+xJ+").)*(?:"+xJ+")*$");function SJ(e,t){var n=t?_J.exec(e):CJ.exec(e);return n?n[0]:e}var OJ={getBackward:function(e){return SJ(e,!0)},getForward:function(e){return SJ(e,!1)}},kJ=OJ,EJ=L$,jJ=jX,AJ=MX;var TJ=function(e){var t=AJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return jJ(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=kJ.getBackward(o);return jJ(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:EJ.push(e,t,"remove-range")},MJ=kX;var PJ=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&MJ(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})},DJ=OJ,LJ=L$,RJ=PJ,IJ=MX;var NJ=function(e){var t=IJ(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=DJ.getForward(o);return RJ(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:LJ.push(e,t,"remove-range")},BJ=zK,FJ=L$;var zJ=L$;var HJ=L$;var VJ=L$,KJ=CX,UJ=PJ,$J=MX;var WJ=function(e){var t=$J(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return UJ(e,i?KJ.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return VJ.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},qJ=zK,ZJ=L$,GJ=VV;var YJ=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 c=GJ(a,r),u=qJ.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,d=l.merge({anchorOffset:f,focusOffset:f}),p=qJ.replaceWithFragment(u,d,c),h=ZJ.push(e,p,"insert-fragment");return ZJ.acceptSelection(h,o)},XJ=L$;var JJ=function(e,t,n){var r=XJ.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(XJ.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(XJ.set(r,{nativelyRenderedContent:o}))}},QJ=zK,eQ=L$,tQ=hq,nQ=rJ,rQ=qW,oQ=yY,iQ=bJ,aQ=TJ,sQ=NJ,cQ=function(e){var t=BJ.splitBlock(e.getCurrentContent(),e.getSelection());return FJ.push(e,t,"split-block")},uQ=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return zJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},lQ=function(e){var t=e.getSelection(),n=t.getStartKey();return HJ.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},fQ=IX,dQ=WJ,pQ=YJ,hQ=JJ,gQ=XX.isOptionKeyCommand,yQ=rQ.isBrowser("Chrome");var vQ=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 tQ.RETURN:if(t.preventDefault(),e.props.handleReturn&&oQ(e.props.handleReturn(t,r)))return;break;case tQ.ESC:if(t.preventDefault(),o("onEscape"))return;break;case tQ.TAB:if(o("onTab"))return;break;case tQ.UP:if(o("onUpArrow"))return;break;case tQ.RIGHT:if(o("onRightArrow"))return;break;case tQ.DOWN:if(o("onDownArrow"))return;break;case tQ.LEFT:if(o("onLeftArrow"))return;break;case tQ.SPACE:yQ&&gQ(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!oQ(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return eQ.redo(t);case"delete":return dQ(t);case"delete-word":return sQ(t);case"backspace":return fQ(t);case"backspace-word":return aQ(t);case"backspace-to-start-of-line":return iQ(t,n);case"split-block":return cQ(t);case"transpose-characters":return pQ(t);case"move-selection-to-start-of-block":return lQ(t);case"move-selection-to-end-of-block":return uQ(t);case"secondary-cut":return nQ.cut(t);case"secondary-paste":return nQ.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else hQ(t,r,e.update);else if(n===tQ.SPACE&&yQ&&gQ(t)){var s=QJ.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(eQ.push(r,s,"insert-characters"))}};var mQ=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}(),bQ=mQ,wQ=wV,xQ=qW.isBrowser("IE <= 9");var CQ=function(e){var t,n=null;return!xQ&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?wQ(!1,"Missing doc.documentElement"):wQ(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},_Q=GW;var SQ=function(e){return!(!e||!e.ownerDocument)&&(_Q(e)&&"A"===e.nodeName)},OQ=GW;var kQ,EQ=function(e){return!(!e||!e.ownerDocument)&&(OQ(e)&&"IMG"===e.nodeName)};function jQ(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){AQ(e,t,n[t])}))}return e}function AQ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var TQ=LH,MQ=GH,PQ=uV,DQ=dW,LQ=pU,RQ=bQ,IQ=uW,NQ=TV,BQ=CQ,FQ=yU,zQ=CH,HQ=zQ.List,VQ=zQ.Map,KQ=zQ.OrderedSet,UQ=SQ,$Q=vZ,WQ=yq,qQ=EQ,ZQ=FQ("draft_tree_data_support"),GQ=new RegExp("\r","g"),YQ=new RegExp("\n","g"),XQ=new RegExp("^\n","g"),JQ=new RegExp(" ","g"),QQ=new RegExp(" ?","g"),e1=new RegExp("​?","g"),t1=["bold","bolder","500","600","700","800","900"],n1=["light","lighter","normal","100","200","300","400"],r1=["className","href","rel","target","title"],o1=["alt","className","height","src","width"],i1=(AQ(kQ={},IQ("public/DraftStyleDefault/depth0"),0),AQ(kQ,IQ("public/DraftStyleDefault/depth1"),1),AQ(kQ,IQ("public/DraftStyleDefault/depth2"),2),AQ(kQ,IQ("public/DraftStyleDefault/depth3"),3),AQ(kQ,IQ("public/DraftStyleDefault/depth4"),4),kQ),a1=VQ({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),s1=function(e){if(WQ(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},c1=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(i1).some((function(n){e.classList.contains(n)&&(t=i1[n])})),t},u1=function(e){if(!UQ(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 RQ(t.href);return!0}catch(e){return!1}},l1=function(e){if(!qQ(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},f1=function(e,t){if(!WQ(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){t1.indexOf(r)>=0?e.add("BOLD"):n1.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"))}))},d1=function(e){return"ul"===e||"ol"===e},p1=function(){function e(e,t){AQ(this,"characterList",HQ()),AQ(this,"currentBlockType","unstyled"),AQ(this,"currentDepth",0),AQ(this,"currentEntity",null),AQ(this,"currentText",""),AQ(this,"wrapper",null),AQ(this,"blockConfigs",[]),AQ(this,"contentBlocks",[]),AQ(this,"entityMap",LQ),AQ(this,"blockTypeMap",void 0),AQ(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=HQ(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=LQ,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],KQ())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(ZQ?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=jQ({key:e.key||NQ(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:HQ(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=HQ(),this.currentBlockType="unstyled",this.currentText="",t},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||d1(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;d1(i)&&(this.wrapper=i,d1(s)&&this.currentDepth++),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),t)),this.currentDepth=a,this.wrapper=s}else{var c=this.blockTypeMap.get(i);if(void 0===c)if("#text"!==i)if("br"!==i)if(l1(o))this._addImgNode(o,t);else if(u1(o))this._addAnchorNode(o,n,t);else{var u=t;a1.has(i)&&(u=u.add(a1.get(i))),u=f1(o,u);var l=s1(o);null!=l&&(u=u.add(l)),n.push.apply(n,this._toBlockConfigs(Array.from(o.childNodes),u))}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 c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!ZQ&&WQ(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var p=o;this.currentDepth=c1(p,this.currentDepth)}var h=NQ(),g=this._toBlockConfigs(Array.from(o.childNodes),t);this._trimCurrentText(),n.push(this._makeBlockConfig({key:h,childConfigs:g,type:c})),this.currentDepth=f,this.wrapper=d}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=TQ.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=HQ()):(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(XQ,"")).replace(YQ," ")),this._appendText(n,t)},t._addBreakNode=function(e,t){$Q(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(qQ(e)){var n=e,r={};o1.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),FQ("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(UQ(e)){var r=e,o={};r1.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new RQ(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=HQ(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new PQ(jQ({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return HQ(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 MQ(jQ({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=HQ(),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}(),h1=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:DQ,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:BQ)(e=e.trim().replace(GQ,"").replace(JQ," ").replace(QQ,"").replace(e1,""));if(!n)return null;var r=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)}))})),VQ(t)}(t);return new p1(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function g1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y1=GH,v1=uV,m1=h1,b1=TV,w1=CQ,x1=yU,C1=CH,_1=mU,S1=C1.List,O1=C1.Repeat,k1=x1("draft_tree_data_support"),E1=k1?v1:y1,j1={processHTML:function(e,t){return m1(e,w1,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=_1(r);var i=b1(),a={key:i,type:n,text:r,characterList:S1(O1(t,r.length))};if(k1&&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){g1(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new E1(a)),e}),[])}};var A1=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})},T1=zK,M1=L$,P1=A1,D1=d$,L1={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 L1.toggleInlineStyle(e,"BOLD");case"italic":return L1.toggleInlineStyle(e,"ITALIC");case"underline":return L1.toggleInlineStyle(e,"UNDERLINE");case"code":return L1.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return L1.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return L1.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=T1.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=M1.push(e,t,"insert-characters");return M1.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 M1.push(e,a,"remove-range")}var s=L1.tryToRemoveBlockStyle(e);return s?M1.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=T1.removeRange(n,a,"forward");return s!==n?M1.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 c=a.getDepth();if(!e.shiftKey&&c===n)return t;var u=P1(i,r,e.shiftKey?-1:1,n);return M1.push(t,u,"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=D1(i.getBlockBefore(o));o=s.getKey(),a=a.merge({anchorKey:r,anchorOffset:n.getStartOffset(),focusKey:o,focusOffset:s.getLength(),isBackward:!1})}var c=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(c)return e;var u=i.getBlockForKey(r).getType()===t?"unstyled":t;return M1.push(e,T1.setBlockType(i,a,u),"change-block-type")},toggleCode:function(e){var t=e.getSelection(),n=t.getAnchorKey(),r=t.getFocusKey();return t.isCollapsed()||n!==r?L1.toggleBlockType(e,"code-block"):L1.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return M1.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?T1.removeInlineStyle(i,n,t):T1.applyInlineStyle(i,n,t),M1.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=T1.applyEntity(e.getCurrentContent(),t,n);return M1.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 T1.setBlockType(o,t,"unstyled")}return null}},R1=L1,I1=/\r\n?|\n/g;var N1=SH,B1=LH,F1=fY,z1=zK,H1=j1,V1=L$,K1=R1,U1=Vq,$1=gY,W1=yY,q1=function(e){return e.split(I1)};function Z1(e,t,n){var r=z1.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return V1.push(e,r.set("entityMap",n),"insert-fragment")}var G1=function(e,t){t.preventDefault();var n=new F1(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&W1(e.props.handlePastedFiles(r)))return;return void $1(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=q1(t),i=B1.create({style:n.getCurrentInlineStyle(),entity:U1(n.getCurrentContent(),n.getSelection())}),a=K1.getCurrentBlockType(n),s=H1.processText(r,i,a),c=N1.createFromArray(s),u=z1.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(V1.push(n,u,"insert-fragment"))}}))}}var i=[],a=n.getText(),s=n.getHTML(),c=e._latestEditorState;if(e.props.formatPastedText){var u=e.props.formatPastedText(a,s);a=u.text,s=u.html}if(!e.props.handlePastedText||!W1(e.props.handlePastedText(a,s,c))){if(a&&(i=q1(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(Z1(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(Z1(e._latestEditorState,f));if(s){var d=H1.processHTML(s,e.props.blockRenderMap);if(d){var p=d.contentBlocks,h=d.entityMap;if(p){var g=N1.createFromArray(p);return void e.update(Z1(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=B1.create({style:c.getCurrentInlineStyle(),entity:U1(c.getCurrentContent(),c.getSelection())}),v=K1.getCurrentBlockType(c),m=H1.processText(i,y,v),b=N1.createFromArray(m);e.update(Z1(e._latestEditorState,b))}}},Y1=qW,X1=UY,J1=ZY,Q1=YY,e0=eX,t0=sX,n0=cX,r0=uX,o0=dX,i0=$X,a0=vQ,s0=G1,c0=Bq,u0=Y1.isBrowser("Chrome"),l0=Y1.isBrowser("Firefox"),f0=u0||l0?c0:function(e){},d0={onBeforeInput:X1,onBlur:J1,onCompositionStart:Q1,onCopy:e0,onCut:t0,onDragOver:n0,onDragStart:r0,onFocus:o0,onInput:i0,onKeyDown:a0,onPaste:s0,onSelect:c0,onMouseUp:f0,onKeyUp:f0},p0=r.unstable_flushControlled;var h0=t,g0=uW,y0=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=g0({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return h0.createElement("div",{className:t},h0.createElement("div",{className:g0("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(h0.Component),v0=y0,m0=XX,b0=hq,w0=qW,x0=w0.isPlatform("Mac OS X"),C0=x0&&w0.isBrowser("Firefox < 29"),_0=m0.hasCommandModifier,S0=m0.isCtrlKeyCommand;function O0(e){return x0&&e.altKey||S0(e)}var k0=function(e){switch(e.keyCode){case 66:return _0(e)?"bold":null;case 68:return S0(e)?"delete":null;case 72:return S0(e)?"backspace":null;case 73:return _0(e)?"italic":null;case 74:return _0(e)?"code":null;case 75:return x0&&S0(e)?"secondary-cut":null;case 77:case 79:return S0(e)?"split-block":null;case 84:return x0&&S0(e)?"transpose-characters":null;case 85:return _0(e)?"underline":null;case 87:return x0&&S0(e)?"backspace-word":null;case 89:return S0(e)?x0?"secondary-paste":"redo":null;case 90:return function(e){return _0(e)?e.shiftKey?"redo":"undo":null}(e)||null;case b0.RETURN:return"split-block";case b0.DELETE:return function(e){return!x0&&e.shiftKey?null:O0(e)?"delete-word":"delete"}(e);case b0.BACKSPACE:return function(e){return _0(e)&&x0?"backspace-to-start-of-line":O0(e)?"backspace-word":"backspace"}(e);case b0.LEFT:return C0&&_0(e)?"move-selection-to-start-of-block":null;case b0.RIGHT:return C0&&_0(e)?"move-selection-to-end-of-block":null;default:return null}},E0=Hm;function j0(){return j0=E0||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},j0.apply(this,arguments)}function A0(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){M0(e,t,n[t])}))}return e}function T0(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M0(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P0(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var D0=dW,L0=pW,R0=aZ,I0=GG,N0=TY,B0=d0,F0=p0,z0=v0,H0=mZ,V0=L$,K0=t,U0=JZ,$0=uG,W0=uW,q0=TV,Z0=k0,G0=yG,Y0=yU,X0=wV,J0=yq,Q0=d$,e2=qW.isBrowser("IE"),t2=!e2,n2={edit:B0,composite:R0,drag:N0,cut:null,render:null},r2=!1,o2=function(e){function t(){return e.apply(this,arguments)||this}P0(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}(K0.Component),i2=function(e){function t(t){var n;return M0(T0(n=e.call(this,t)||this),"_blockSelectEvents",void 0),M0(T0(n),"_clipboard",void 0),M0(T0(n),"_handler",void 0),M0(T0(n),"_dragCount",void 0),M0(T0(n),"_internalDrag",void 0),M0(T0(n),"_editorKey",void 0),M0(T0(n),"_placeholderAccessibilityID",void 0),M0(T0(n),"_latestEditorState",void 0),M0(T0(n),"_latestCommittedEditorState",void 0),M0(T0(n),"_pendingStateFromBeforeInput",void 0),M0(T0(n),"_onBeforeInput",void 0),M0(T0(n),"_onBlur",void 0),M0(T0(n),"_onCharacterData",void 0),M0(T0(n),"_onCompositionEnd",void 0),M0(T0(n),"_onCompositionStart",void 0),M0(T0(n),"_onCopy",void 0),M0(T0(n),"_onCut",void 0),M0(T0(n),"_onDragEnd",void 0),M0(T0(n),"_onDragOver",void 0),M0(T0(n),"_onDragStart",void 0),M0(T0(n),"_onDrop",void 0),M0(T0(n),"_onInput",void 0),M0(T0(n),"_onFocus",void 0),M0(T0(n),"_onKeyDown",void 0),M0(T0(n),"_onKeyPress",void 0),M0(T0(n),"_onKeyUp",void 0),M0(T0(n),"_onMouseDown",void 0),M0(T0(n),"_onMouseUp",void 0),M0(T0(n),"_onPaste",void 0),M0(T0(n),"_onSelect",void 0),M0(T0(n),"editor",void 0),M0(T0(n),"editorContainer",void 0),M0(T0(n),"focus",void 0),M0(T0(n),"blur",void 0),M0(T0(n),"setMode",void 0),M0(T0(n),"exitCurrentMode",void 0),M0(T0(n),"restoreEditorDOM",void 0),M0(T0(n),"setClipboard",void 0),M0(T0(n),"getClipboard",void 0),M0(T0(n),"getEditorKey",void 0),M0(T0(n),"update",void 0),M0(T0(n),"onDragEnter",void 0),M0(T0(n),"onDragLeave",void 0),M0(T0(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),M0(T0(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=$0.getScrollParent(o),a=e||G0(i),s=a.x,c=a.y;J0(o)||("production"!==process.env.NODE_ENV?X0(!1,"editorNode is not an HTMLElement"):X0(!1)),o.focus(),i===window?window.scrollTo(s,c):U0.setTop(i,c),r||n.update(V0.forceSelection(t,t.getSelection()))}})),M0(T0(n),"blur",(function(){var e=n.editor;e&&(J0(e)||("production"!==process.env.NODE_ENV?X0(!1,"editorNode is not an HTMLElement"):X0(!1)),e.blur())})),M0(T0(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=A0({},n2.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=A0({},n2,{edit:a});n._handler=s[e]})),M0(T0(n),"exitCurrentMode",(function(){n.setMode("edit")})),M0(T0(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),M0(T0(n),"setClipboard",(function(e){n._clipboard=e})),M0(T0(n),"getClipboard",(function(){return n._clipboard})),M0(T0(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),M0(T0(n),"onDragEnter",(function(){n._dragCount++})),M0(T0(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||q0(),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}P0(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&&(F0?F0((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:Q0(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return K0.createElement(z0,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,c=e.readOnly,u=e.textAlignment,l=e.textDirectionality,f=W0({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),d=this.props.role||"textbox",p="combobox"===d?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:A0({},L0,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return K0.createElement("div",{className:f},this._renderPlaceholder(),K0.createElement("div",{className:W0("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},K0.createElement("div",{"aria-activedescendant":c?null:this.props.ariaActiveDescendantID,"aria-autocomplete":c?null:this.props.ariaAutoComplete,"aria-controls":c?null:this.props.ariaControls,"aria-describedby":this._renderARIADescribedBy(),"aria-expanded":c?null:p,"aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledBy,"aria-multiline":this.props.ariaMultiline,"aria-owns":c?null:this.props.ariaOwneeID,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:W0({notranslate:!c,"public/DraftEditor/content":!0}),contentEditable:!c,"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:c?null:d,spellCheck:t2&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},K0.createElement(o2,{editor:this,editorState:a}),K0.createElement(I0,j0({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!r2&&Y0("draft_ods_enabled")&&(r2=!0,H0.initODS()),this.setMode("edit"),e2&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):st.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(K0.Component);M0(i2,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:D0,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:Z0,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var a2=i2,s2={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},c2=s2,u2=CX.strlen;var l2=CX,f2=RH,d2=function(e,t){return e===t},p2=function(e){return!!e},h2=[];var g2=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 f2(o,d2,p2,(function(t,o){var i=e.getText();r.push({offset:l2.strlen(i.slice(0,t)),length:l2.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(h2,n.toJS())};function y2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v2=GH,m2=uV,b2=s2,w2=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:u2(i.slice(0,r)),length:u2(i.slice(r,o)),key:Number(t[c2.stringify(a)])})})),n},x2=g2,C2=wV,_2=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:x2(e),entityRanges:w2(e,t),data:e.getData().toObject()}},S2=function(e,t,n,r){if(e instanceof v2)n.push(_2(e,t));else{e instanceof m2||("production"!==process.env.NODE_ENV?C2(!1,"block is not a BlockNode"):C2(!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){y2(e,t,n[t])}))}return e}({},_2(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},O2=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=b2.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),S2(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(b2.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function k2(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){E2(e,t,n[t])}))}return e}function E2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j2=TV,A2=wV,T2=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},M2={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?A2(!1,"Invalid raw state"):A2(!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?A2(!1,"Invalid tree raw block"):A2(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=k2({},e);T2(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?k2({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,k2({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=T2(e),o=e.depth||0,i=k2({},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:j2(),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)})),k2({},e,{blocks:t})}},P2=kX,D2={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&&P2(!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&&P2(!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&&P2(!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&&P2(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&P2(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&P2(!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&&P2(!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 c=a.map((function(t){return e.get(t)})),u=c.find((function(e){return null==e.getPrevSiblingKey()}));if(null==u)return"production"!==process.env.NODE_ENV&&P2(!0,"%s has no first child",r),!1;r=u.getKey()}else r=null!=i.getNextSiblingKey()?i.getNextSiblingKey():o.shift();n++}return n===e.size||("production"!==process.env.NODE_ENV&&P2(!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)}},L2=D2,R2=LH,I2=CH.List;var N2=function(e,t){var n=e.map((function(e,n){var r=t[n];return R2.create({style:e,entity:r})}));return I2(n)},B2=CX.substr;var F2=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=B2(e,0,t.offset).length,o=r+B2(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},z2=CX,H2=CH.OrderedSet,V2=z2.substr,K2=H2();var U2=function(e,t){var n=Array(e.length).fill(K2);return t&&t.forEach((function(t){for(var r=V2(e,0,t.offset).length,o=r+V2(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function $2(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){W2(e,t,n[t])}))}return e}function W2(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var q2=GH,Z2=uV,G2=zU,Y2=pU,X2=M2,J2=L2,Q2=gU,e5=N2,t5=F2,n5=U2,r5=TV,o5=CH,i5=wV,a5=yU("draft_tree_data_support"),s5=o5.List,c5=o5.Map,u5=o5.OrderedMap,l5=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||r5(),data:c5(o),characterList:f5(e,t)}},f5=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return e5(n5(n,o||[]),t5(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return $2({},e,{key:t[e.key]})}))))},d5=function(e){return $2({},e,{key:e.key||r5()})},p5=function(e,t,n){var r=t.map((function(e){return $2({},e,{parentRef:n})}));return e.concat(r.reverse())},h5=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=a5&&!n?X2.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!a5)return function(e,t){return u5(e.map((function(e){var n=new q2(l5(e,t));return[n.getKey(),n]})))}(n?X2.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(d5).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?i5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):i5(!1));var i=r.children.map(d5),a=new Z2($2({},l5(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:s5(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=p5([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),d=Array.isArray(c.children);if(!d){d||("production"!==process.env.NODE_ENV?i5(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):i5(!1));break}var p=c.children.map(d5),h=new Z2($2({},l5(c,t),{parent:u.getKey(),children:s5(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=p5(s,p,h)}return n}),u5())}(r,t);return"production"!==process.env.NODE_ENV&&(J2.isValidTree(o)||("production"!==process.env.NODE_ENV?i5(!1,"Should be a valid tree"):i5(!1))),o},g5=aJ;var y5=function(e){var t=g5(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 c=1;c<t.length;c++){var u=t[c];0!==u.height&&0!==u.width&&(n=Math.min(n,u.top),r=Math.max(r,u.right),o=Math.max(o,u.bottom),i=Math.min(i,u.left))}}return{top:n,right:r,bottom:o,left:i,width:r-i,height:o-n}},v5=y5;var m5=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=v5(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},b5={Editor:a2,EditorBlock:ZG,EditorState:L$,CompositeDecorator:sW,Entity:pU,EntityInstance:rU,BlockMapBuilder:SH,CharacterMetadata:LH,ContentBlock:GH,ContentState:zU,RawDraftContentState:{},SelectionState:gU,AtomicBlockUtils:oW,KeyBindingUtil:XX,Modifier:zK,RichUtils:R1,DefaultDraftBlockRenderMap:dW,DefaultDraftInlineStyle:pW,convertFromHTML:h1,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?i5(!1,"invalid RawDraftContentState"):i5(!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]=Y2.__create(o,i,a||{})})),n}(e),n=h5(e,t),r=n.isEmpty()?new Q2:Q2.createEmpty(n.first().getKey());return new G2({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:O2,genKey:TV,getDefaultKeyBinding:k0,getVisibleSelectionRect:m5};const w5="FOUND_FIELD",x5="NOT_FOUND",C5="IMMUTABLE",_5=W.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),S5=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},O5=new b5.CompositeDecorator([{strategy:(e,t,n)=>S5(e,t,n,w5),component:({children:t})=>e.jsx(_5,{children:t})},{strategy:(e,t,n)=>S5(e,t,n,x5),component:({children:t})=>e.jsx(_5,Object.assign({error:!0},{children:t}))}]),k5=(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}},E5=(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:c,isValid:u}=k5(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?w5:x5,mutability:C5,data:{id:i}}}o.text+=a}return b5.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return b5.EditorState.createWithContent(r,O5)},j5=(e,t=!0)=>{const n=e.getCurrentContent(),r=b5.convertToRaw(n);return t?(e=>{const t=e.blocks.map((t=>{const{text:n,entityRanges:r}=t;if(r.length<1)return n;const o=[];let i=0;return r.forEach((({key:t,offset:r,length:a})=>{r>i&&o.push(n.substr(i,r-i));const s=ft.get(e,`entityMap[${t}].data.id`,"unknown");o.push(`<<${s}>>`),i=r+a})),o.push(n.substr(i)),o.join("")}));return t.join(" ")})(r):r},A5=e=>{const t=j5(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},T5=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new b5.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return b5.EditorState.forceSelection(e,o)},M5=(e,n,r=!0)=>{const[o,i]=t.useState(!1);return{focused:o,handleFocus:t=>{r&&i(!0),e&&e(t)},handleBlur:e=>{i(!1),n&&n(e)}}},P5=e=>!!e||null!=e&&""!==e,D5=W.div((({theme:{input:e},backgroundColor:t,borderRadius:n,borderless:r,borderColor:o,textOnly:i,focused:a,invalid:s,disabled:c,hasLabel:u,pointer:l})=>({display:"flex",justifyContent:"space-between",alignItems:"center",position:"relative",minHeight:u?48:40,height:u?48:40,padding:"5px 16px",boxSizing:"border-box",color:c?e.labelColor.disabled:e.labelColor.default,backgroundColor:e.background.default,borderBottom:r?void 0:"1px solid",borderColor:o||e.borderColor.default,borderRadius:null!=n?n:4,borderBottomLeftRadius:null!=n?n:0,borderBottomRightRadius:null!=n?n:0,cursor:l?"pointer":void 0,"&:hover":{backgroundColor:c||i||t?void 0:e.background.hover,borderColor:a||c||r||s?void 0:e.borderColor.hover,Label:{color:a||c?void 0:e.labelColor.hover}}})),(({theme:{input:e},focused:t})=>({backgroundColor:t?e.background.focused:void 0,borderColor:t?e.borderColor.focused:void 0})),(({theme:{input:e},invalid:t})=>({borderColor:t?e.borderColor.error:void 0})),(({theme:{input:e},disabled:t,readOnly:n})=>({backgroundColor:t?e.background.disabled:void 0,borderColor:t?e.borderColor.disabled:void 0,pointerEvents:t||n?"none":void 0})),(({borderless:e})=>({border:e?"none":void 0})),(({theme:e,textOnly:t,disabled:n})=>({padding:t?0:void 0,backgroundColor:t?"transparent":void 0,width:t?"max-content":void 0,height:t?"max-content":void 0,minHeight:t?"max-content":void 0,color:t&&n?e.scale4:void 0})),(({backgroundColor:e})=>({backgroundColor:e})),sn,un,cn),L5=W.div((({readOnly:e})=>({display:"flex",flexDirection:"column",boxSizing:"border-box",width:"100%",position:"relative","& > label, & > input":{pointerEvents:e?"none":void 0,caretColor:e?"transparent":void 0}}))),R5=W.label((({theme:{font:e,input:t},filled:n,focused:r})=>({fontSize:n||r?e.size.sm:e.size.lg,color:n?t.labelColor.filled:t.labelColor.default,position:"relative",top:n||r?void 0:1})),(({theme:{input:e},disabled:t})=>({color:t?e.labelColor.disabled:void 0})),(({theme:{input:e},focused:t})=>({color:t?e.labelColor.focused:void 0}))),I5=W.div((({theme:{font:e,input:t},invalid:n})=>({color:n?t.color.descriptionError:t.color.description,fontSize:e.size.sm,position:"absolute",left:0,top:"calc(100% + 4px)"})));var N5={Container:D5,Wrapper:L5,Label:R5,Description:I5,useInputFocus:M5,isInputFilled:P5};const B5=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:a,onFocus:s,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",description:d,invalid:p,width:h,height:g,maxHeight:y,borderless:v=!1,noPadding:m=!1,readOnly:b=!1,displayMergedValues:w=!1,color:x,overflow:C,clampLines:_,label:S,disabled:O,borderRadius:k,backgroundColor:E,fontSize:j,textOnly:A,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L}=n,R=c(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","description","invalid","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[I,N]=t.useState((()=>E5(o,l,w))),{focused:B,handleFocus:F,handleBlur:z}=M5(s,u),[H,V]=t.useState(!1),K=t.useRef(null),U=t.useRef(),$=null!=y?y:g,W=$?$-(v?0:S?29:11):void 0,q=e=>{N(e);const t=(e=>A5(e).some((e=>e.type===x5)))(e);V(t);const n=j5(e),r=e.getLastChangeType();i&&i(n,t,r)},Z=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=k5(e,t,r),u=c?w5:x5,l=i.createEntity(u,C5,{id:o}).getLastCreatedEntityKey(),f=b5.Modifier.insertText(i,a,s,void 0,l),d=b5.EditorState.push(n,f,"insert-characters");return b5.EditorState.forceSelection(d,f.getSelectionAfter())})(e,l,I,w);q(t)},G=()=>{(null==K?void 0:K.current)&&K.current.focus();const e=T5(I);N(e)};t.useImperativeHandle(r,(()=>({insertField:Z,focusAtEnd:G})));t.useEffect((()=>{j5(I)!==o&&(e=>{const t=I.getSelection(),n=E5(e,l,w),r=T5(n),o=t.getHasFocus()?r:n;q(o)})(o)}),[o]),t.useEffect((()=>{U.current=l}),[]),t.useEffect((()=>{const{current:e}=U,t=ft.isEqual(e,l),n=A5(I);if(!t&&n.length>0){U.current=l;const e=E5(o,l,w);q(e)}}),[l]);return e.jsxs(F5,Object.assign({onClick:e=>{b||e.stopPropagation();I.getSelection().getHasFocus()||G()},width:h,height:g,editorMaxHeight:W,borderless:v||A,noPadding:m||A,readOnly:b,color:x,overflow:C,clampLines:_,filled:P5(o),invalid:p||H,textOnly:A,borderRadius:k,backgroundColor:E,fontSize:j,margin:T,marginLeft:M,marginRight:P,marginTop:D,marginBottom:L,focused:B,disabled:O,hasLabel:!!S,hideEditor:!P5(o)&&!!S&&!B},{children:[e.jsxs(L5,Object.assign({readOnly:b},{children:[S&&e.jsx(R5,Object.assign({filled:P5(o),focused:B,disabled:O},{children:S})),e.jsx(b5.Editor,Object.assign({ref:K,editorState:I,onChange:q,placeholder:f,readOnly:b,handleReturn:e=>{const t=b5.RichUtils.insertSoftNewline(I);return e.shiftKey||!a?q(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=b5.convertFromRaw({blocks:[o],entityMap:{}}),a=b5.EditorState.createWithContent(i,O5).getCurrentContent().getBlockMap(),s=b5.Modifier.replaceWithFragment(n,r,a);return b5.EditorState.push(t,s,"insert-fragment")})(e,n);return q(r),"handled"},onFocus:F,onBlur:z},R))]})),d&&e.jsx(I5,Object.assign({invalid:p},{children:d}))]}))})),F5=W(D5)((({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:c,filled:u})=>({"& .public-DraftEditor-content":{maxHeight:r||t,overflow:o||"auto",lineHeight:n?"19px":"21px",position:a?"absolute":"relative",fontSize:s||e.font.size.lg,top:!u||n||c?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}}}));var z5={exports:{}};z5.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=5)}([function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var c,u=[],l=!1,f=-1;function d(){l&&c&&(l=!1,c.length?u=c.concat(u):f=-1,u.length&&p())}function p(){if(!l){var e=s(d);l=!0;for(var t=u.length;t;){for(c=u,u=[];++f<t;)c&&c[f].run();f=-1,t=u.length}c=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||l||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,n){function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){(function(t){var n=function(e){};"production"!==t.env.NODE_ENV&&(n=function(e){if(void 0===e)throw new Error("invariant requires an error message argument")}),e.exports=function(e,t,r,o,i,a,s,c){if(n(t),!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,o,i,a,s,c],f=0;(u=new Error(t.replace(/%s/g,(function(){return l[f++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}}).call(t,n(0))},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){(function(t){var r=n(1);if("production"!==t.env.NODE_ENV){var o=function(e){for(var t=arguments.length,n=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){}};r=function(e,t){if(void 0===t)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");if(0!==t.indexOf("Failed Composite propType: ")&&!e){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];o.apply(void 0,[t].concat(r))}}}e.exports=r}).call(t,n(0))},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.normalize=t.format=void 0;var r=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},o=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),i=n(6),a=u(i),s=u(n(7)),c=n(12);function u(e){return e&&e.__esModule?e:{default: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}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={phoneNumber:r.props.value?(0,c.format)(r.props.value):"",cursorPosition:0,key:""},r.handleKeyDown=function(e){var t=e.key,n=e.currentTarget,o=n.selectionStart,i=n.selectionEnd;if(!(0,c.isInvalidKey)(t)){var a={start:o,end:i},s=(0,c.update)(r.state.phoneNumber,a,t),u=s.phoneNumber,l=void 0===u?"":u,f=s.cursorPosition,d=void 0===f?0:f;r.setState({phoneNumber:l,cursorPosition:d,key:t}),r.props.onChange(l)}},f(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"UNSAFE_componentWillReceiveProps",value:function(e){this.props.value!==e.value&&this.setState({phoneNumber:(0,c.format)(e.value),cursorPosition:0,key:""})}},{key:"componentDidUpdate",value:function(){var e=this,t=this.state.cursorPosition;this.textInput&&(navigator.userAgent.search("Chrome")>0&&window.requestAnimationFrame((function(){e.textInput.setSelectionRange(t,t)})),setTimeout((function(){e.textInput.setSelectionRange(t,t)}),20))}},{key:"render",value:function(){var e,t=this,n=this.state.phoneNumber,o=this.props.inputComponent,i=o?"innerRef":"ref",s=r({},this.props,(l(e={},i,(function(e){return t.textInput=e})),l(e,"type","tel"),l(e,"value",n),l(e,"onKeyDown",this.handleKeyDown),l(e,"onChange",(function(){})),e));return o?a.default.createElement(o,s):a.default.createElement("input",s)}}]),t}(i.Component);d.propTypes={inputComponent:s.default.oneOfType([s.default.instanceOf(i.Component),s.default.func]),onChange:s.default.func,value:s.default.string},d.defaultProps={onChange:function(){}},t.format=c.format,t.normalize=c.normalize,t.default=d},function(e,n){e.exports=t},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV){var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;e.exports=n(8)((function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r}),!0)}else e.exports=n(11)()}).call(t,n(0))},function(e,t,n){(function(t){var r=n(1),o=n(2),i=n(4),a=n(9),s=n(3),c=n(10);e.exports=function(e,n){var u="function"==typeof Symbol&&Symbol.iterator,l="@@iterator",f="<<anonymous>>",d={array:y("array"),bool:y("boolean"),func:y("function"),number:y("number"),object:y("object"),string:y("string"),symbol:y("symbol"),any:g(r.thatReturnsNull),arrayOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var a=t[n];if(!Array.isArray(a))return new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected an array.");for(var c=0;c<a.length;c++){var u=e(a,c,r,o,i+"["+c+"]",s);if(u instanceof Error)return u}return null}))},element:g((function(t,n,r,o,i){var a=t[n];return e(a)?null:new h("Invalid "+o+" `"+i+"` of type `"+m(a)+"` supplied to `"+r+"`, expected a single ReactElement.")})),instanceOf:function(e){return g((function(t,n,r,o,i){if(!(t[n]instanceof e)){var a=e.name||f;return new h("Invalid "+o+" `"+i+"` of type `"+((s=t[n]).constructor&&s.constructor.name?s.constructor.name:f)+"` supplied to `"+r+"`, expected instance of `"+a+"`.")}var s;return null}))},node:g((function(e,t,n,r,o){return v(e[t])?null:new h("Invalid "+r+" `"+o+"` supplied to `"+n+"`, expected a ReactNode.")})),objectOf:function(e){return g((function(t,n,r,o,i){if("function"!=typeof e)return new h("Property `"+i+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected an object.");for(var u in a)if(a.hasOwnProperty(u)){var l=e(a,u,r,o,i+"."+u,s);if(l instanceof Error)return l}return null}))},oneOf:function(e){return Array.isArray(e)?g((function(t,n,r,o,i){for(var a=t[n],s=0;s<e.length;s++)if(p(a,e[s]))return null;return new h("Invalid "+o+" `"+i+"` of value `"+a+"` supplied to `"+r+"`, expected one of "+JSON.stringify(e)+".")})):("production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOf, expected an instance of array."),r.thatReturnsNull)},oneOfType:function(e){if(!Array.isArray(e))return"production"!==t.env.NODE_ENV&&i(!1,"Invalid argument supplied to oneOfType, expected an instance of array."),r.thatReturnsNull;for(var n=0;n<e.length;n++){var o=e[n];if("function"!=typeof o)return i(!1,"Invalid argument supplied to oneOfType. Expected an array of check functions, but received %s at index %s.",w(o),n),r.thatReturnsNull}return g((function(t,n,r,o,i){for(var a=0;a<e.length;a++)if(null==(0,e[a])(t,n,r,o,i,s))return null;return new h("Invalid "+o+" `"+i+"` supplied to `"+r+"`.")}))},shape:function(e){return g((function(t,n,r,o,i){var a=t[n],c=m(a);if("object"!==c)return new h("Invalid "+o+" `"+i+"` of type `"+c+"` supplied to `"+r+"`, expected `object`.");for(var u in e){var l=e[u];if(l){var f=l(a,u,r,o,i+"."+u,s);if(f)return f}}return null}))},exact:function(e){return g((function(t,n,r,o,i){var c=t[n],u=m(c);if("object"!==u)return new h("Invalid "+o+" `"+i+"` of type `"+u+"` supplied to `"+r+"`, expected `object`.");var l=a({},t[n],e);for(var f in l){var d=e[f];if(!d)return new h("Invalid "+o+" `"+i+"` key `"+f+"` supplied to `"+r+"`.\nBad object: "+JSON.stringify(t[n],null," ")+"\nValid keys: "+JSON.stringify(Object.keys(e),null," "));var p=d(c,f,r,o,i+"."+f,s);if(p)return p}return null}))}};function p(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}function h(e){this.message=e,this.stack=""}function g(e){if("production"!==t.env.NODE_ENV)var r={},a=0;function c(c,u,l,d,p,g,y){if(d=d||f,g=g||l,y!==s)if(n)o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");else if("production"!==t.env.NODE_ENV&&"undefined"!=typeof console){var v=d+":"+l;!r[v]&&a<3&&(i(!1,"You are manually calling a React.PropTypes validation function for the `%s` prop on `%s`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details.",g,d),r[v]=!0,a++)}return null==u[l]?c?null===u[l]?new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `null`."):new h("The "+p+" `"+g+"` is marked as required in `"+d+"`, but its value is `undefined`."):null:e(u,l,d,p,g)}var u=c.bind(null,!1);return u.isRequired=c.bind(null,!0),u}function y(e){return g((function(t,n,r,o,i,a){var s=t[n];return m(s)!==e?new h("Invalid "+o+" `"+i+"` of type `"+b(s)+"` supplied to `"+r+"`, expected `"+e+"`."):null}))}function v(t){switch(typeof t){case"number":case"string":case"undefined":return!0;case"boolean":return!t;case"object":if(Array.isArray(t))return t.every(v);if(null===t||e(t))return!0;var n=function(e){var t=e&&(u&&e[u]||e[l]);if("function"==typeof t)return t}(t);if(!n)return!1;var r,o=n.call(t);if(n!==t.entries){for(;!(r=o.next()).done;)if(!v(r.value))return!1}else for(;!(r=o.next()).done;){var i=r.value;if(i&&!v(i[1]))return!1}return!0;default:return!1}}function m(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":function(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}(t,e)?"symbol":t}function b(e){if(null==e)return""+e;var t=m(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function w(e){var t=b(e);switch(t){case"array":case"object":return"an "+t;case"boolean":case"date":case"regexp":return"a "+t;default:return t}}return h.prototype=Error.prototype,d.checkPropTypes=c,d.PropTypes=d,d}}).call(t,n(0))},function(e,t,n){
|
|
222
222
|
/*
|
|
223
223
|
object-assign
|
|
224
224
|
(c) Sindre Sorhus
|
|
225
225
|
@license MIT
|
|
226
226
|
*/
|
|
227
|
-
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,u){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,l,typeof e[l]),f=e[l](n,l,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=l(e,n,t)),a(t)||(o=l(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},l=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),u=c?c.length:0,l=f(t),d=p(l,u);return l.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var V5=H5.exports;const K5=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(dn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(dn,Object.assign({},n,r))},U5=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:l,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:y,invalid:v,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:_,height:S,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:R,value:I,disabled:N,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:K,onFocus:U,onBlur:$}=r,W=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:Z,handleBlur:G}=P5(U,$,!F&&!B),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},ne={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,I,s,ee]);const re=h?I||s:I,oe=I&&K&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof I&&10===I.length&&I===V5.normalize(I)){const{current:n}=Y;if(n){const r=V5.format(I),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[I]);const ie=()=>{q||Z()},ae=()=>{q&&G()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:q}))),t.useEffect((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return e.jsxs(L5,Object.assign({ref:R,invalid:v,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:_,height:S,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ie(),V&&V(e)},pointer:z,readOnly:B},te,ne,{children:[d&&e.jsx(dn,{name:"search",marginRight:8,inheritColor:!0}),g&&K5(g,{marginRight:8}),e.jsxs(R5,Object.assign({readOnly:B||F},{children:[h&&e.jsx(q5,Object.assign({ref:ee,fontSize:C},{children:re})),a&&!h&&e.jsx(I5,Object.assign({htmlFor:i||a,filled:D5(I),focused:q,disabled:N},{children:a})),e.jsx($5,Object.assign({id:i||a,ref:Y,value:I,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=V5.normalize(t);if(n.length>10)return;const r=V5.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:Z,onBlur:G,disabled:N,hide:!(D5(I)||!a||q||h),width:J,fontSize:C},W))]})),y&&K5(y),f&&e.jsx(ac,{}),oe&&e.jsx(W5,Object.assign({onClick:K},{children:e.jsx(dn,{name:"close-circle-outline",color:X.brand})})),l&&e.jsx(N5,Object.assign({invalid:v},{children:l}))]}))})),$5=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),W5=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),q5=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),Z5=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),G5=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:l,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:y,borderless:v,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:_,height:S,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:R,centerX:I,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:U,filter:$,restrictInput:W,inputRef:q,optionsParent:Z}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},ue=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&U){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,U]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const le=at(ue,ee,Z?[Z,`${Z} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ye().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:sz(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&ue(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""===h&&he()}),[h]);const ye=()=>{const e=Rs(y).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=Z5(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Fs(g||[],{search:U,filter:$,inputText:J}),...e]},ve={options:ye(),select:ge,open:ue,close:ue,searchText:U?J:void 0,isOpen:ee,isFocused:ne},[me,be]=dt(ve),we=Hs(g||[],y,ge,ue,{selected:me,search:U,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,_e=c(G,["onClear","phone"]);return e.jsx(Y5,Object.assign({textOnly:C,altTrigger:!!L,width:_,height:S,focused:ne,search:U},ce,{children:e.jsxs(X5,Object.assign({ref:le},{children:[L?e.jsx(J5,Object.assign({id:P,onClick:ue,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1)},{children:L})):e.jsx(e3,Object.assign({shake:oe},{children:e.jsx(U5,Object.assign({},_e,{ref:q||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!U,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:v,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:ue,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;U?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!(U&&(!i||r))?ge(o,e):U&&!a||he(e)},onFocus:e=>{re(!0),u&&u(e)},onBlur:e=>{var t;if(re(!1),l&&l(e),U&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))})),ee&&we.length>0&&e.jsx(Is,Object.assign({containerRef:be,parentSelector:Z,width:!L&&!C||Z?"100%":void 0,centerY:R,centerX:I,offsetY:N,offsetX:B,direction:F},{children:we}))]}))}))};G5.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:u,id:l})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:l,label:n||Z5(i)||"",value:t};r&&r(o,e)};return e.jsx(Is.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const Y5=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),sn,un),X5=W.div({position:"relative",width:"100%",height:"inherit"}),J5=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),Q5=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),e3=W.div((({shake:e})=>({"& input":{animation:e?`${Q5} .5s linear`:void 0}}))),t3=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,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:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),cn,un);t3.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),cn,un);const n3=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(yz,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(mz,{children:r}),e.jsx(vz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(dn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},r3=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(yz,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(mz,{children:o}),e.jsx(vz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(dn,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},o3=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(i3,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&K5(r,{marginRight:4,size:"small"}),n,o&&K5(o,{marginLeft:4,size:"small"})]}))},i3=W.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}}),un),a3=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(s3,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};a3.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(c3,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},a3.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(u3,Object.assign({},a,{inline:r,align:o,disabled:i},{children:n}))},a3.Input=U5,a3.Dropdown=G5,a3.Radio=n3,a3.Toggle=r3,a3.Checkbox=bz,a3.Label=o3;const s3=W(t3)({boxSizing:"border-box"}),c3=W(t3)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),u3=W.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"}),un),l3=W.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}))),f3=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),d3=W.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%)`}}))),p3=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),h3=W.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"}))),g3=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(y3,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Rs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),y3=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({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:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({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:c,borderBottomRightRadius:u}))),v3=W.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}))),m3=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),b3=W.div({marginLeft:"auto",marginRight:8});g3.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(v3,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),g3.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Rs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(m3,Object.assign({backgroundColor:d},{children:[e.jsxs(v3,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(b3,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(dn,{name:p?"chevron-up":"chevron-down",pointer:!0})}))]})),p&&y]}))};const w3=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,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:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(_3,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(dn,{name:h,style:{marginRight:10},color:g}),e.jsx(S3,{children:r||d}),o&&e.jsx(dn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},x3=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),C3=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));w3.Header=x3,w3.Body=C3;const _3=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,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})),un),S3=W.div({width:"100%"}),O3=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),k3=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),E3=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),j3=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,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:C,paddingBottom:_,paddingRight:S,paddingLeft:O})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:O},j=Rs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(M3,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(A3,Object.assign({ref:k,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(T3,Object.assign({inline:p},{children:e.jsx(dn,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};j3.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),j3.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),j3.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),un),j3.Footer=W.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})),un);const A3=W.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"})`}),cn),T3=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),M3=W.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)"}))),P3=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:l,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:y,restrictInput:v,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:_,addItem:S,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!l,H=e=>{e&&S(e)},V=()=>{const{current:e}=F;A||l||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const U=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];O(t)}}),A&&!D,[u]);const $=s.filter((e=>!u.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${sz()}`),[]),q=t.useMemo((()=>`multi-select-list-${sz()}`),[]),Z=p?u.length>=p:void 0,G=m||!A||Z,Y=()=>{const t=e.jsxs(I3,Object.assign({id:q,expanded:A,padTop:A&&u.length>0,labeled:!!l},{children:[f&&e.jsx(N3,Object.assign({expanded:A,labeled:!!l},{children:f})),a?a(A,!!m):u.map((t=>e.jsx(o3,Object.assign({pill:!0,iconRight:A&&!m?e.jsx(dn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m},{children:t.label}),t.id))),e.jsx(G5,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:y,backgroundColor:"transparent",restrictInput:v,options:$,fontSize:I.size.md,placeholder:m||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:U,onError:e=>P(e),disabled:G,optionsParent:w?`#${q}`:`#${W}`,autoFocus:E}))]}));if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(D3,Object.assign({width:g,ref:B,labeled:!!l,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()}},{children:[e.jsxs(L3,Object.assign({collapse:z,id:W,expanded:A&&u.length>0,error:M,labeled:!!l,backgroundColor:C,borderless:_},{children:[l?e.jsx(R3,Object.assign({collapse:z},{children:l})):Y(),e.jsxs(B3,{children:[p&&!b&&e.jsx(z3,{children:m&&d?e.jsxs(e.Fragment,{children:[u.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(F3,Object.assign({error:u.length>=p},{children:u.length})),"/",p," ",d]})}),u.length>0&&e.jsx(dn,{name:A?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]})),l&&A&&Y()]}))})),D3=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),L3=W.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"}))),R3=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),I3=W.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}:{})),N3=W.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}))),B3=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),F3=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),z3=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),H3=e=>e?+e:0,V3=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),un),K3=W.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`}}))),U3=W(K3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),$3=W(K3)((({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}))),W3=W.span((({theme:e})=>({color:e.scale6}))),q3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(Z3,Object.assign({size:n},l,{children:[e.jsx(G3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(Y3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},Z3=W.svg((({size:e})=>({display:"block",width:e,height:e})),un),G3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),Y3=W(G3)((({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"}))),X3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),un),J3=W.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 Q3={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 c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(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(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(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 C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(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){c(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:"+C(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 C(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"},L=null;function R(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function I(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=R()&&I(e,n,i)),t?o()-e.A>=e.w?R()&&I(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(){u(this.g.a),u(this.h.a),u(this.j.a),u(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 H(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 V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function K(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 c,u=[];for(c=0;c<n.length;c++){var f=n[c],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),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function U(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(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,H(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),H(this)},V.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){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},U.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 c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}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([])},$.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 c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var G={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 W(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 Z(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,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).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=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[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,_("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 V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new U(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))}()}(Q3);var e9=ct(Q3.exports);const t9=W.div(sn),n9=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),un),r9=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),o9=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),i9=W.div({display:"flex",flexDirection:"column"}),a9=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),s9=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),c9=W.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"}}})),u9=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),l9=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),f9=t.createContext({}),d9=(t,n,r)=>{const o="th"===n?p9:h9,i=r?{style:r}:{};return Rs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},p9=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),h9=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),g9=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),y9=W(t3)({alignItems:"center",padding:"8px 24px"},cn),v9=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),m9=W(t3)((({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"}}),cn),b9=W.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),w9=W(b9)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),cn),x9=W(b9)({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}}))),C9=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(f9.Provider,Object.assign({value:p},{children:e.jsx(_9,Object.assign({},a,{children:d}))}))};C9.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:u}=t.useContext(f9),l=o||u||"equal";return e.jsx(g9,Object.assign({alignToScrollBody:a},{children:e.jsx(y9,Object.assign({as:"tr",columns:l},s,{children:d9(r,"th",i)}))}))},C9.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(f9),p=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(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&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(x9,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(dn,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},C9.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(f9);return e.jsx(v9,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},C9.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:u}=t.useContext(f9),l=o||u||"equal";return e.jsx(m9,Object.assign({as:"tr",columns:l,onClick:i,hoverEffect:!!i},s,{children:d9(r,"td",a)}))},C9.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(w9,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const _9=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),cn,un),S9=t.forwardRef(((e,n)=>t.createElement(se.span,q({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[O9,k9]=Z("Tooltip",[Yo]),E9=Yo(),j9=700,A9="tooltip.open",[T9,M9]=O9("TooltipProvider"),P9="Tooltip",[D9,L9]=O9(P9),R9="TooltipTrigger",I9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=L9(R9,r),a=M9(R9,r),s=E9(r),c=X(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),l=t.useRef(!1),f=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(ui,q({asChild:!0},s),t.createElement(se.button,q({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(l.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),l.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),l.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),N9="TooltipPortal",[B9,F9]=O9(N9,{forceMount:void 0}),z9="TooltipContent",H9=t.forwardRef(((e,n)=>{const r=F9(z9,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=L9(z9,e.__scopeTooltip);return t.createElement(le,{present:o||s.open},s.disableHoverableContent?t.createElement($9,q({side:i},a,{ref:n})):t.createElement(V9,q({side:i},a,{ref:n})))})),V9=t.forwardRef(((e,n)=>{const r=L9(z9,e.__scopeTooltip),o=M9(z9,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:u,onClose:l}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&f){const e=e=>h(e,f),t=e=>h(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[u,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,u=t[i].y;s>r!=u>r&&n<(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,f,s,l,p]),t.createElement($9,q({},e,{ref:a}))})),[K9,U9]=O9(P9,{isInside:!1}),$9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,u=L9(z9,r),l=E9(r),{onClose:f}=u;return t.useEffect((()=>(document.addEventListener(A9,f),()=>document.removeEventListener(A9,f))),[f]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,f]),t.createElement(vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(li,q({"data-state":u.stateAttribute},l,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(K9,{scope:r,isInside:!0},t.createElement(S9,{id:u.contentId,role:"tooltip"},i||o))))}));const W9=e=>{const{__scopeTooltip:n,delayDuration:r=j9,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),u=t.useRef(!1),l=t.useRef(0);return t.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),t.createElement(T9,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(l.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},q9=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,u=M9(P9,e.__scopeTooltip),l=E9(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:u.disableHoverableContent,y=null!=c?c:u.delayDuration,v=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(A9))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?v.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),_=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),y)}),[y,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(ci,l,t.createElement(D9,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?_():x()}),[u.isOpenDelayed,_,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},Z9=I9,G9=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=L9(N9,n);return t.createElement(B9,{scope:n,forceMount:r},t.createElement(le,{present:r||a.open},t.createElement(di,{asChild:!0,container:i},o)))},Y9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=E9(r);return U9("TooltipArrow",r).isInside?null:t.createElement(fi,q({},i,o,{ref:n}))})),X9=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:l,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:y,container:v,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx(W9,{children:e.jsxs(q9,Object.assign({delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d},{children:[e.jsx(Z9,Object.assign({asChild:!0},{children:e.jsx(Q9,Object.assign({},w,{children:n}))})),e.jsx(G9,Object.assign({container:v},{children:!p&&e.jsxs(J9,Object.assign({side:Us(i).side,align:Us(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:l,textAlign:f,id:h,bgColor:g,textColor:y},{children:[o||r,e.jsx(Y9,{className:"tooltip-arrow",width:12,height:8})]}))}))]}))})},J9=W(H9,{shouldForwardProp:e=>$s(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,u=s.background,l=o||u;return{backgroundColor:l,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:l,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),Q9=W.div({display:"inline-flex"}),e4=W.div((({theme:e})=>({color:e.tooltip.color.default}))),t4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));X9.Header=e4,X9.Body=t4;const n4="#0074F4",r4="#FF6068",o4="#FF9900",i4="#F0BB00",a4="#00C242",s4="#001D32",c4="#FFFFFF",u4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:n4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,n4),brandTint1:fr(.9,n4),brandTint2:fr(.8,n4),brandTint3:fr(.7,n4),brandTint4:fr(.6,n4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:r4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,r4),errorTint1:fr(.9,r4),errorTint2:fr(.8,r4),warning:o4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,o4),warningTint1:fr(.9,o4),warningTint2:fr(.8,o4),alert:i4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,i4),alertTint1:fr(.9,i4),alertTint2:fr(.8,i4),success:a4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,a4),successTint1:fr(.9,a4),successTint2:fr(.8,a4),grayscale0:fr(.95,s4),grayscale1:fr(.9,s4),grayscale2:fr(.8,s4),grayscale3:fr(.7,s4),grayscale4:fr(.6,s4),grayscale5:fr(.5,s4),grayscale6:fr(.4,s4),grayscale7:fr(.3,s4),grayscale8:fr(.2,s4),grayscale9:fr(.1,s4),grayscale10:s4,contrast0:fr(.95,c4),contrast1:fr(.9,c4),contrast2:fr(.8,c4),contrast3:fr(.7,c4),contrast4:fr(.6,c4),contrast5:fr(.5,c4),contrast6:fr(.4,c4),contrast7:fr(.3,c4),contrast8:fr(.2,c4),contrast9:fr(.1,c4),contrast10:c4};var l4={color:u4,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:f4}=l4;var d4={small:{height:28,iconSize:18,font:f4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:f4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:f4.size.lg,padding:14,iconOnlyPadding:6}};const p4="#FFFFFF",h4=u4.grayscale0,g4=u4.grayscale1,y4=u4.grayscale2,v4=u4.grayscale3,m4=u4.grayscale4,b4=u4.grayscale5,w4=u4.grayscale6,x4=u4.grayscale7,C4=u4.grayscale8,_4=u4.grayscale9,S4=u4.grayscale10,O4=Object.assign(Object.assign({},l4),{name:"light",accent:u4.brand,accentShade:u4.brandShade1,background0:p4,background1:p4,background2:p4,background3:p4,background4:p4,background5:p4,scale0:h4,scale1:g4,scale2:y4,scale3:v4,scale4:m4,scale5:b4,scale6:w4,scale7:x4,scale8:C4,scale9:_4,scale10:S4,button:Object.assign(Object.assign({},d4),{primary:{color:{default:p4,hover:p4,active:p4},outlineColor:{default:S4,hover:S4,active:S4},background:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},outlineBackground:{default:u4.brandTint0,hover:u4.brandTint1,active:u4.brandTint2},border:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},divider:y4},secondary:{color:{default:S4,hover:S4,active:S4},outlineColor:{default:S4,hover:S4,active:S4},background:{default:g4,hover:y4,active:v4},outlineBackground:{default:g4,hover:y4,active:v4},border:{default:y4,hover:y4,active:y4},divider:y4},positive:{color:{default:p4,hover:p4,active:p4},outlineColor:{default:S4,hover:S4,active:S4},background:{default:u4.success,hover:u4.successShade1,active:u4.successShade2},outlineBackground:{default:u4.successTint0,hover:u4.successTint1,active:u4.successTint2},border:{default:u4.success,hover:u4.successShade1,active:u4.successShade2},divider:y4},negative:{color:{default:p4,hover:p4,active:p4},outlineColor:{default:S4,hover:S4,active:S4},background:{default:u4.error,hover:u4.errorShade1,active:u4.errorShade2},outlineBackground:{default:u4.errorTint0,hover:u4.errorTint1,active:u4.errorTint2},border:{default:u4.error,hover:u4.errorShade1,active:u4.errorShade2},divider:y4},caution:{color:{default:p4,hover:p4,active:p4},outlineColor:{default:S4,hover:S4,active:S4},background:{default:u4.warning,hover:u4.warningShade1,active:u4.warningShade2},outlineBackground:{default:u4.warningTint0,hover:u4.warningTint1,active:u4.warningTint2},border:{default:u4.warning,hover:u4.warningShade1,active:u4.warningShade2},divider:y4},subtle:{color:{default:u4.brand,hover:u4.brand,active:u4.brand},outlineColor:{default:u4.brand,hover:u4.brand,active:u4.brand},secondaryColor:{default:S4,hover:S4,active:S4},positiveColor:{default:u4.success,hover:u4.success,active:u4.success},negativeColor:{default:u4.error,hover:u4.error,active:u4.error},cautionColor:{default:u4.warning,hover:u4.warning,active:u4.warning},background:{default:"transparent",hover:g4,active:y4},outlineBackground:{default:"transparent",hover:g4,active:y4},border:{default:"transparent",hover:y4,active:y4},divider:y4},link:{color:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},outlineColor:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},secondaryColor:{default:C4,hover:_4,active:S4},positiveColor:{default:u4.success,hover:u4.successShade1,active:u4.successShade2},negativeColor:{default:u4.error,hover:u4.errorShade1,active:u4.errorShade2},cautionColor:{default:u4.warning,hover:u4.warningShade1,active:u4.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:m4,hover:m4,active:m4},outlineColor:{default:m4,hover:m4,active:m4},background:{default:g4,hover:g4,active:g4},outlineBackground:{default:h4,hover:h4,active:h4},border:{default:g4,hover:g4,active:g4},divider:g4},color:{default:p4}}),calendar:{background:{container:u4.contrast10,hover:g4,active:u4.brand,activeHover:u4.brandShade1},color:{disabled:m4,default:S4,active:u4.contrast10,current:u4.brand,outside:w4,weekday:C4,monthYear:C4,iconDefault:m4,iconHover:S4}},defaultBorder:`1px solid ${g4}`,formControl:{color:{default:C4,hover:S4,active:u4.brand,activeHover:u4.brandShade1,disabled:m4}},input:{borderRadius:4,background:{default:h4,hover:g4,focused:g4,disabled:h4},color:{default:S4,disabled:m4,placeholder:w4,description:w4,descriptionError:u4.error},borderColor:{default:w4,hover:C4,focused:u4.brand,disabled:m4,error:u4.error},labelColor:{default:C4,hover:C4,filled:w4,focused:u4.brand,disabled:m4}},menu:{background:p4},menuItem:{borderColor:u4.brand,background:{active:h4,hover:g4,inactive:"transparent"},color:{active:S4,hover:S4,inactive:w4}},modal:{background:u4.contrast10,color:{header:S4,body:w4}},options:{background:u4.contrast10},optionItem:{background:{active:g4,inactive:"transparent"},color:{active:S4,inactive:S4,accent:u4.brand}},table:{color:{header:w4,body:S4},borderColor:g4},toast:{color:S4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:C4,info:u4.brand,success:u4.success,warning:u4.warning,error:u4.error}},toggle:{slider:u4.contrast10},tooltip:{background:"#FFF",color:{default:S4,subtext:w4}}}),k4=u4.contrast0,E4=u4.contrast1,j4=u4.contrast2,A4=u4.contrast3,T4=u4.contrast4,M4=u4.contrast5,P4=u4.contrast6,D4=u4.contrast7,L4=u4.contrast8,R4=u4.contrast9,I4=u4.contrast10,N4=u4.brandDark,B4={light:O4,dark:Object.assign(Object.assign({},l4),{name:"dark",accent:N4,accentShade:u4.brandDarkShade1,background0:u4.brandBackground0,background1:u4.brandBackground1,background2:u4.brandBackground2,background3:u4.brandBackground3,background4:u4.brandBackground4,background5:u4.brandBackground5,scale0:k4,scale1:E4,scale2:j4,scale3:A4,scale4:T4,scale5:M4,scale6:P4,scale7:D4,scale8:L4,scale9:R4,scale10:I4,button:Object.assign(Object.assign({},d4),{primary:{color:{default:I4,hover:I4,active:I4},outlineColor:{default:I4,hover:I4,active:I4},background:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},outlineBackground:{default:u4.brandTint0,hover:u4.brandTint1,active:u4.brandTint2},border:{default:u4.brand,hover:u4.brandShade1,active:u4.brandShade2},divider:j4},secondary:{color:{default:I4,hover:I4,active:I4},outlineColor:{default:I4,hover:I4,active:I4},background:{default:E4,hover:j4,active:A4},outlineBackground:{default:E4,hover:j4,active:A4},border:{default:j4,hover:j4,active:j4},divider:j4},positive:{color:{default:I4,hover:I4,active:I4},outlineColor:{default:I4,hover:I4,active:I4},background:{default:u4.success,hover:u4.successShade1,active:u4.successShade2},outlineBackground:{default:u4.successTint0,hover:u4.successTint1,active:u4.successTint2},border:{default:u4.success,hover:u4.successShade1,active:u4.successShade2},divider:j4},negative:{color:{default:I4,hover:I4,active:I4},outlineColor:{default:I4,hover:I4,active:I4},background:{default:u4.error,hover:u4.errorShade1,active:u4.errorShade2},outlineBackground:{default:u4.errorTint0,hover:u4.errorTint1,active:u4.errorTint2},border:{default:u4.error,hover:u4.errorShade1,active:u4.errorShade2},divider:j4},caution:{color:{default:I4,hover:I4,active:I4},outlineColor:{default:I4,hover:I4,active:I4},background:{default:u4.warning,hover:u4.warningShade1,active:u4.warningShade2},outlineBackground:{default:u4.warningTint0,hover:u4.warningTint1,active:u4.warningTint2},border:{default:u4.warning,hover:u4.warningShade1,active:u4.warningShade2},divider:j4},subtle:{color:{default:u4.brand,hover:u4.brand,active:u4.brand},outlineColor:{default:u4.brand,hover:u4.brand,active:u4.brand},secondaryColor:{default:I4,hover:I4,active:I4},positiveColor:{default:u4.success,hover:u4.success,active:u4.success},negativeColor:{default:u4.error,hover:u4.error,active:u4.error},cautionColor:{default:u4.warning,hover:u4.warning,active:u4.warning},background:{default:"transparent",hover:E4,active:j4},outlineBackground:{default:"transparent",hover:E4,active:j4},border:{default:"transparent",hover:j4,active:j4},divider:j4},link:{color:{default:u4.brandShade2,hover:u4.brandShade1,active:u4.brand},outlineColor:{default:u4.brandShade2,hover:u4.brandShade1,active:u4.brand},secondaryColor:{default:L4,hover:R4,active:I4},positiveColor:{default:u4.successShade2,hover:u4.successShade1,active:u4.success},negativeColor:{default:u4.errorShade2,hover:u4.errorShade1,active:u4.error},cautionColor:{default:u4.warningShade2,hover:u4.warningShade1,active:u4.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:T4,hover:T4,active:T4},outlineColor:{default:T4,hover:T4,active:T4},background:{default:E4,hover:E4,active:E4},outlineBackground:{default:k4,hover:k4,active:k4},border:{default:E4,hover:E4,active:E4},divider:E4},color:{default:"#FFFFFF"}}),calendar:{background:{container:u4.brandBackground3,hover:E4,active:u4.brand,activeHover:u4.brandShade1},color:{disabled:T4,default:I4,active:I4,current:N4,outside:P4,weekday:L4,monthYear:L4,iconDefault:T4,iconHover:I4}},defaultBorder:`1px solid ${E4}`,formControl:{color:{default:L4,hover:I4,active:u4.brand,activeHover:u4.brandShade1,disabled:T4}},input:{borderRadius:4,background:{default:k4,hover:E4,focused:E4,disabled:k4},color:{default:I4,disabled:T4,placeholder:P4,description:P4,descriptionError:u4.error},borderColor:{default:P4,hover:L4,focused:N4,disabled:T4,error:u4.error},labelColor:{default:L4,hover:L4,filled:P4,focused:N4,disabled:T4}},menu:{background:u4.brandBackground2},menuItem:{borderColor:u4.brand,background:{active:k4,hover:E4,inactive:"transparent"},color:{active:I4,hover:I4,inactive:P4}},modal:{background:u4.brandBackground3,color:{header:I4,body:P4}},options:{background:u4.brandBackground3},optionItem:{background:{active:E4,inactive:"transparent"},color:{active:I4,inactive:I4,accent:N4}},table:{color:{header:P4,body:I4},borderColor:E4},toast:{color:I4,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:L4,info:u4.brand,success:u4.success,warning:u4.warning,error:u4.error}},toggle:{slider:u4.brandBackground0},tooltip:{background:u4.brandBackground4,color:{default:I4,subtext:P4}}})};exports.Accordion=gn,exports.Audio=_c,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:l=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h}=t,g=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels"]);const{scale2:y}=n.useTheme();return e.jsxs(ZF,Object.assign({},g,{children:[d?e.jsx(WF,{}):e.jsx(qF,{}),e.jsx(P_,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(mB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r,layout:d?"vertical":"horizontal",barSize:l,maxBarSize:f,barGap:s,barCategoryGap:u},{children:[e.jsx(ZI,{stroke:y,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(fN,{stroke:y,tickMargin:4,tickFormatter:e=>d?Nc(e):e,tick:!h&&{},dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(dN,{stroke:y,tickMargin:4,tickFormatter:e=>d?e:Nc(e),tick:!p&&{},dataKey:d?"name":void 0,type:d?"category":"number"}),YF(),o&&e.jsx(km,{content:e.jsx(XF,{})}),i.map((({key:t,color:n},r)=>e.jsx(NR,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]}))}))]}))},exports.Button=hc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>HF(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=VF(("prev"===e?KF:EB)(f,{months:1}),1),n=y(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?IF(KF(e,{months:1})):VF("future"===n?EB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?KF:EB)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return _B(1,arguments),SB(e).getDay()}(VF(e,1)),n=RF(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(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(IF(f)),s=y(VF(f,1));let l=!1;const d=BF(e,n),p=NF(e,r);(i&&d||a&&p)&&(l=!0);const h=NF(e,o)||BF(e,s),g=DB(e,c),v=DB(e,u);return{date:LF(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(cz,Object.assign({noShadow:s},{children:[e.jsxs(uz,{children:[e.jsx(lz,{children:DF(f,"MMMM Y")}),e.jsxs(fz,{children:[e.jsx(dn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(dn,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(hz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(gz,{children:t[0]},t)))}),e.jsx(dz,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(pz,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),sz())))})]}))},exports.Checkbox=bz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:u,marginTop:l,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:l,marginBottom:f,marginRight:d,marginLeft:p},y=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,m,b]=y;v=v||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),_=e=>{if(m){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)})(m);return t.some((t=>e===t))}return!1},S=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(hH,{method:x,url:S}):e.jsx(fH,Object.assign({code:S,language:w,theme:"dark"===h?zz.oceanicNext:zz.github},{children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(mH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code"},{children:[o.map(((n,r,o)=>t.createElement(bH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:_(r+1)}),o.length>1&&!C&&e.jsx(wH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(dH,{content:S})]}))}))},exports.DocTable=xH,exports.DraftEditor=F5,exports.Dropdown=G5,exports.DropdownMenu=Ws,exports.Form=a3,exports.Grid=t3,exports.Icon=dn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),d=at(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((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?e.jsxs(l3,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(f3,Object.assign({onClick:r},{children:e.jsx(dn,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(d3,Object.assign({id:"prev",onClick:p},{children:e.jsx(dn,{name:"chevron-left",size:35,color:"white"})})),e.jsx(p3,{ref:d,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(d3,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(dn,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=h3,exports.Input=U5,exports.InputUtils=B5,exports.Label=o3,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[u,l]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(ZF,Object.assign({},s,{children:[e.jsx(qF,{}),e.jsx(P_,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(vB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:o},{children:[e.jsx(ZI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(fN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(dN,{stroke:f,tickMargin:4}),YF(),i&&e.jsx(km,{content:e.jsx(XF,{toggleData:a.length>1?e=>{l((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(lN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},exports.Menu=g3,exports.Message=w3,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(E3,{children:[e.jsx(k3,{}),e.jsx(O3,Object.assign({color:n,style:r},{children:t})),e.jsx(k3,{})]}),exports.Modal=j3,exports.MultiSelect=P3,exports.Notification=wB,exports.Options=Is,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(H3(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,H3(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(V3,Object.assign({width:s},u,{children:[e.jsx(U3,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(dn,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(U3,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(dn,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(W3,{children:"... "}):"",e.jsx($3,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(W3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(U3,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(dn,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(U3,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(dn,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,l=n/2-1;return e.jsx(ZF,Object.assign({width:n,height:n},a,{children:e.jsxs(bB,Object.assign({width:n,height:n},{children:[e.jsx(CL,Object.assign({dataKey:"value",data:u,innerRadius:o,outerRadius:l},{children:null==u?void 0:u.map((t=>e.jsx(D_,{fill:t.color||"#999"},t.name)))})),s&&YF()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(q3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(X3,Object.assign({width:o,height:i||s},p,{children:e.jsx(J3,{color:n,width:h})}))},exports.Radio=n3,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,e9.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=wc,exports.Spacer=t9,exports.Spinner=ac,exports.Table=C9,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=r3,exports.Tooltip=X9,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,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},C=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(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const _=(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(u9,{children:t.header}),e.jsx(l9,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(n9,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(r9,{children:i}),e.jsxs(o9,{children:[!u&&e.jsxs(i9,{children:[k&&e.jsx(a9,{children:v.length>0&&!s&&e.jsx(hc,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(s9,{children:v.map((t=>e.jsxs(c9,Object.assign({onClick:()=>_(t,"select"),color:t.color},{children:[O(t),e.jsx(dn,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(i9,{children:[k&&!u&&e.jsx(a9,{children:b.length>0&&!c&&!u&&e.jsx(hc,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(s9,{children:b.map((t=>e.jsxs(c9,Object.assign({onClick:()=>_(t,"remove"),color:t.color},{children:[O(t),e.jsx(dn,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=UF,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,c=new Date,u=DF(n,"EEEE"),l=DF(n,"MMM d"),f=DF(n,"MMM d, y"),d=DF(n,"h:mm aaa"),p=FF(n),h=function(e){return _B(1,arguments),SB(e).getTime()>Date.now()}(n),g=function(e){return _B(1,arguments),DB(e,Date.now())}(n),y=function(e){return _B(1,arguments),DB(e,zF(Date.now(),1))}(n),v=function(e){return _B(1,arguments),DB(e,OB(Date.now(),1))}(n),m=zB(c,n),b=function(e,t,n){_B(2,arguments);var r=IB(e,t)/7;return FB(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.marginProps=un,exports.numberWithCommas=$F,exports.paddingProps=cn,exports.positionProps=ln,exports.theme=B4,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,d]=t.useState(l||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&d(l)}),[p]);const y=()=>{null==p||p.resolve(!s||f),g()},v=()=>{null==p||p.resolve(!1),g()};it(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(j3,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(j3.Header,{children:n}),r&&e.jsx(j3.Text,{children:r}),s&&e.jsx(j3.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(U5,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(j3.Footer,{children:[e.jsx(hc,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(hc,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=an,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=dt,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=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?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!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="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=sn;
|
|
227
|
+
var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var r=Object.getOwnPropertyNames(t).map((function(e){return t[e]}));if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),c=1;c<arguments.length;c++){for(var u in n=Object(arguments[c]))o.call(n,u)&&(s[u]=n[u]);if(r){a=r(n);for(var l=0;l<a.length;l++)i.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){(function(t){if("production"!==t.env.NODE_ENV)var r=n(2),o=n(4),i=n(3),a={};e.exports=function(e,n,s,c,u){if("production"!==t.env.NODE_ENV)for(var l in e)if(e.hasOwnProperty(l)){var f;try{r("function"==typeof e[l],"%s: %s type `%s` is invalid; it must be a function, usually from the `prop-types` package, but received `%s`.",c||"React class",s,l,typeof e[l]),f=e[l](n,l,c,s,null,i)}catch(e){f=e}if(o(!f||f instanceof Error,"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",c||"React class",s,l,typeof f),f instanceof Error&&!(f.message in a)){a[f.message]=!0;var d=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=d?d:"")}}}}).call(t,n(0))},function(e,t,n){var r=n(1),o=n(2),i=n(3);e.exports=function(){function e(e,t,n,r,a,s){s!==i&&o(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r="insert",o="backspace",i=t.isInvalidKey=function(e){return"Backspace"!==e&&!/[0-9]/.test(e)},a=function(e){return e.start!==e.end};t.update=function(e,t,n){var r=a(t);return"Backspace"===n?s(e,t):function(e,t,n){return!(10===u(e).length&&!n||i(t))}(e,n,r)?c(e,t,n):{phoneNumber:e,cursorPosition:t.start}};var s=t.backspace=function(e,t){var n=t.start,r=t.end,i=e;if(!a(t)&&n>0&&e[n-1].match(/[0-9]/)&&(i=e.substring(0,n-1)+i.substring(n)),a(t)){var s=e.substring(n,r).replace(/\d/g,"");i=e.substring(0,n)+s+i.substring(r)}var c=d(e,i,t,o);return{phoneNumber:f(i),cursorPosition:c}},c=t.insert=function(e,t,n){t.start,t.end;var o=e;a(t)&&(o=l(e,n,t)),a(t)||(o=l(e,n,t));var i=d(e,o,t,r);return{phoneNumber:f(o),cursorPosition:i}},u=t.normalize=function(e){return e.replace(/\D/g,"")},l=t.insertChars=function(e,t,n){return e.substring(0,n.start)+t+e.substring(n.end)},f=t.format=function(e){var t=u(e),n=t.substring(0,3),r=t.substring(3,6),o=t.substring(6,11);return o?"("+n+") "+r+"-"+o:r?n+"-"+r:t},d=t.getCursorPosition=function(e,t,n,i){if(n.start===e.length)return f(t).length;if(0===n.start){if(i===o)return 0;if(i===r)return 1}if(i===o){var s=/[^0-9]/g;if(a(n)&&s.test(e.substring(n.start,n.end)))return n.start;if(!a(n)&&s.test(e[n.start-1]))return n.start-1}var c=e.substring(n.end).match(/[0-9]/g),u=c?c.length:0,l=f(t),d=p(l,u);return l.length-d},p=t.getCharCountFromEndWithNumbers=function(e,t){var n=e.split("");n.reverse();var r=0,o=n.reduce((function(e,n){return r===t?e:(/[0-9]/.test(n)&&r++,e+1)}),0);return r<t?0:o}}]);var H5=z5.exports;const V5=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(dn,Object.assign({name:n,inheritColor:!0},r)):"object"==typeof n&&"props"in n&&"trigger"in n.props?t.cloneElement(n,{trigger:o(n.props.trigger)}):"object"==typeof n&&"props"in n?o(n):e.jsx(dn,Object.assign({},n,r))},K5=t.forwardRef(((r,o)=>{var{id:i,label:a,placeholder:s,placeholderColor:u,description:l,isLoading:f,search:d,phone:p,textOnly:h,iconLeft:g,iconRight:y,invalid:v,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:C,width:_,height:S,margin:O,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,padding:T,paddingLeft:M,paddingRight:P,paddingTop:D,paddingBottom:L,containerRef:R,value:I,disabled:N,readOnly:B,preventFocus:F,pointer:z,onChange:H,onClick:V,onClear:K,onFocus:U,onBlur:$}=r,W=c(r,["id","label","placeholder","placeholderColor","description","isLoading","search","phone","textOnly","iconLeft","iconRight","invalid","borderless","borderRadius","borderColor","backgroundColor","fontSize","width","height","margin","marginLeft","marginRight","marginTop","marginBottom","padding","paddingLeft","paddingRight","paddingTop","paddingBottom","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:q,handleFocus:Z,handleBlur:G}=M5(U,$,!F&&!B),Y=t.useRef(null),{color:X}=n.useTheme(),[J,Q]=t.useState(h?50:void 0),ee=t.useRef(null),te={margin:O,marginTop:j,marginBottom:A,marginRight:E,marginLeft:k},ne={padding:T,paddingTop:D,paddingBottom:L,paddingRight:P,paddingLeft:M};t.useLayoutEffect((()=>{if(h&&ee){const{current:e}=ee,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&Q(t+3)}}),[h,I,s,ee]);const re=h?I||s:I,oe=I&&K&&!f;t.useEffect((()=>{var e,t;if(p&&"string"==typeof I&&10===I.length&&I===H5.normalize(I)){const{current:n}=Y;if(n){const r=H5.format(I),o=new Event("change",{bubbles:!0}),{prototype:i}=window.HTMLInputElement;null===(t=null===(e=Object.getOwnPropertyDescriptor(i,"value"))||void 0===e?void 0:e.set)||void 0===t||t.call(n,r),n.dispatchEvent(o)}}}),[I]);const ie=()=>{q||Z()},ae=()=>{q&&G()};t.useImperativeHandle(o,(()=>({focus:ie,blur:ae,hasFocus:q}))),t.useEffect((()=>{var e;q&&(null===(e=Y.current)||void 0===e||e.focus())}),[q]);return e.jsxs(D5,Object.assign({ref:R,invalid:v,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:_,height:S,focused:q,disabled:N,hasLabel:!!a,onClick:e=>{F||B||ie(),V&&V(e)},pointer:z,readOnly:B},te,ne,{children:[d&&e.jsx(dn,{name:"search",marginRight:8,inheritColor:!0}),g&&V5(g,{marginRight:8}),e.jsxs(L5,Object.assign({readOnly:B||F},{children:[h&&e.jsx(W5,Object.assign({ref:ee,fontSize:C},{children:re})),a&&!h&&e.jsx(R5,Object.assign({htmlFor:i||a,filled:P5(I),focused:q,disabled:N},{children:a})),e.jsx(U5,Object.assign({id:i||a,ref:Y,value:I,placeholder:s,placeholderColor:u,onChange:e=>{if(p){const{value:t}=e.target,n=H5.normalize(t);if(n.length>10)return;const r=H5.format(n);H&&H(e,r,n)}else H&&H(e)},onFocus:Z,onBlur:G,disabled:N,hide:!(P5(I)||!a||q||h),width:J,fontSize:C},W))]})),y&&V5(y),f&&e.jsx(ac,{}),oe&&e.jsx($5,Object.assign({onClick:K},{children:e.jsx(dn,{name:"close-circle-outline",color:X.brand})})),l&&e.jsx(I5,Object.assign({invalid:v},{children:l}))]}))})),U5=W.input((({theme:{font:e,input:t,size:n,accent:r},fontSize:o,hide:i,disabled:a,width:s,placeholderColor:c})=>({outline:"none",border:"none",color:a?t.color.disabled:t.color.default,caretColor:r,backgroundColor:"transparent",paddingLeft:0,fontSize:o||e.size.lg,fontFamily:e.family.default,width:s||"100%",height:"100%",marginRight:n.sm,boxSizing:"border-box",opacity:i?0:1,position:i?"absolute":void 0,"&:-webkit-autofill, &:-webkit-autofill:hover, &:-webkit-autofill:focus, &:-webkit-autofill:active":{transition:"background-color 0s 50000s",WebkitTextFillColor:t.color.default},"&::placeholder":{color:c||t.color.placeholder,opacity:1}}))),$5=W.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),W5=W.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),q5=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),Z5=r=>{var{onChange:o,onTextChange:i,afterShow:a,afterHide:s,onFocus:u,onBlur:l,onError:f,placeholder:d,placeholderColor:p,value:h,options:g,children:y,borderless:v,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:C,width:_,height:S,isLoading:O,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:M,id:P,name:D,trigger:L,centerY:R,centerX:I,offsetY:N,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:K,search:U,filter:$,restrictInput:W,inputRef:q,optionsParent:Z}=r,G=c(r,["onChange","onTextChange","afterShow","afterHide","onFocus","onBlur","onError","placeholder","placeholderColor","value","options","children","borderless","borderColor","backgroundColor","hideIcon","clearOnSelect","textOnly","width","height","isLoading","margin","marginTop","marginBottom","marginRight","marginLeft","label","id","name","trigger","centerY","centerX","offsetY","offsetX","direction","fontSize","description","disabled","invalid","search","filter","restrictInput","inputRef","optionsParent"]);const[Y,X]=t.useState(""),[J,Q]=t.useState(""),[ee,te]=t.useState(!1),[ne,re]=t.useState(!1),[oe,ie]=t.useState(!1),ae=t.useRef(null),{input:se}=n.useTheme(),ce={margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T},ue=e=>{e&&e.stopPropagation(),!ee&&a&&a(),ee&&s&&s(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&U){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,U]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const le=at(ue,ee,Z?[Z,`${Z} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},de=e=>{const t=ye().find((t=>{let n=fe(t.label,e);return!n&&"id"in t&&(n=fe(t.id,e)),n||!("value"in t)||"string"!=typeof t.value&&"number"!=typeof t.value||(n=fe(t.value,e)),n}));return t},pe=e=>"function"==typeof W?!W(e):W,he=e=>ge(null,e),ge=(e,t)=>{let n,r=!1;if("string"==typeof e){n=(e=>{if(pe(e))return de(e)||null;return{id:az(),label:e,value:e}})(e);const t=pe(e);null===n&&t&&(r=!0)}else n=e;ee&&ue(t),X((null==n?void 0:n.label)||""),o&&void 0!==n&&o(n),r?ie(!0):(oe&&ie(!1),x&&X(""),Q(""))};t.useEffect((()=>{""===h&&he()}),[h]);const ye=()=>{const e=Rs(y).map((e=>{const t=e;let n=t.props.displayText||"";return!M&&t.props.children&&(n=q5(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...Fs(g||[],{search:U,filter:$,inputText:J}),...e]},ve={options:ye(),select:ge,open:ue,close:ue,searchText:U?J:void 0,isOpen:ee,isFocused:ne},[me,be]=dt(ve),we=Hs(g||[],y,ge,ue,{selected:me,search:U,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",Ce=C&&!V?p||se.color.default:void 0,_e=c(G,["onClear","phone"]);return e.jsx(G5,Object.assign({textOnly:C,altTrigger:!!L,width:_,height:S,focused:ne,search:U},ce,{children:e.jsxs(Y5,Object.assign({ref:le},{children:[L?e.jsx(X5,Object.assign({id:P,onClick:ue,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1)},{children:L})):e.jsx(Q5,Object.assign({shake:oe},{children:e.jsx(K5,Object.assign({},_e,{ref:q||ae,id:P,name:D,label:M,fontSize:z,pointer:!0,preventFocus:!U,value:J||h||Y,placeholder:d||"Select",placeholderColor:Ce,iconRight:w||O?void 0:xe,borderless:v,borderColor:m,backgroundColor:b,isLoading:O,textOnly:C,description:H,disabled:V,invalid:oe||K,onClick:ue,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;U?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=de(n),i=pe(n),a=""===n||i&&!r;o&&!(U&&(!i||r))?ge(o,e):U&&!a||he(e)},onFocus:e=>{re(!0),u&&u(e)},onBlur:e=>{var t;if(re(!1),l&&l(e),U&&J&&e){const{relatedTarget:n}=e;(null===(t=null==be?void 0:be.current)||void 0===t?void 0:t.contains(n))||ge(J,e)}}}))})),ee&&we.length>0&&e.jsx(Is,Object.assign({containerRef:be,parentSelector:Z,width:!L&&!C||Z?"100%":void 0,centerY:R,centerX:I,offsetY:N,offsetX:B,direction:F},{children:we}))]}))}))};Z5.Item=({value:t,displayText:n,setValue:r,close:o,children:i,contentPosition:a,color:s,accented:c,onClick:u,id:l})=>{const f=u?e=>{u&&u(e),o&&o()}:e=>{const o={id:l,label:n||q5(i)||"",value:t};r&&r(o,e)};return e.jsx(Is.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const G5=W.div({display:"flex",boxSizing:"border-box"},(({theme:{accent:e},focused:t,search:n,altTrigger:r,textOnly:o})=>({width:r||o?"max-content":"100%",flexDirection:"column",outline:!t||n||r?void 0:`${e} solid 1px`})),sn,un),Y5=W.div({position:"relative",width:"100%",height:"inherit"}),X5=W.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),J5=n.keyframes({"10%":{transform:"translate3d(-1px, 0, 0)"},"30%":{transform:"translate3d(2px, 0, 0)"},"50%":{transform:"translate3d(-2px, 0, 0)"},"70%":{transform:"translate3d(2px, 0, 0)"},"90%":{transform:"translate3d(-1px, 0, 0)"}}),Q5=W.div((({shake:e})=>({"& input":{animation:e?`${J5} .5s linear`:void 0}}))),e3=W.div({display:"grid"},(({rows:e,rowGap:t,columns:n,columnGap:r,gap:o,template:i,alignContent:a,alignItems:s,justifyContent:c,justifyItems:u,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:u,alignContent:a,justifyContent:c,width:l,height:f})),(({columns:e})=>"equal"===e&&{gridTemplateColumns:"unset",gridAutoColumns:"1fr",gridAutoFlow:"column"}),cn,un);e3.Item=W.div((({row:e,rowStart:t,rowEnd:n,column:r,columnStart:o,columnEnd:i,area:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})=>({gridRow:e,gridRowStart:t,gridRowEnd:n,gridColumn:r,gridColumnStart:o,gridColumnEnd:i,gridArea:a,alignSelf:s,justifySelf:c,placeSelf:u,border:l})),cn,un);const t3=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(gz,Object.assign({htmlFor:n,labelRight:h,disabled:a},g,{children:[r&&e.jsx(vz,{children:r}),e.jsx(yz,Object.assign({id:n,type:"radio",checked:i,disabled:a},p)),e.jsx(dn,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!a})]}))},n3=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(gz,Object.assign({htmlFor:r,labelRight:w,disabled:s},x,{children:[o&&e.jsx(vz,{children:o}),e.jsx(yz,Object.assign({id:r,type:"checkbox",checked:m,disabled:s,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(dn,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!s,size:40})]}))},r3=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:a}=t,s=c(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(o3,Object.assign({as:a?void 0:"label",disabled:i,rightIcon:!!o,pill:a},s,{children:[r&&V5(r,{marginRight:4,size:"small"}),n,o&&V5(o,{marginLeft:4,size:"small"})]}))},o3=W.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}}),un),i3=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(a3,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:a,onSubmit:e=>{s?s(e):e.preventDefault()}},u,{children:n}))};i3.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(s3,Object.assign({rows:r,columns:o,rowGap:i,columnGap:a,disabled:s},u,{children:n}))},i3.Field=t=>{var{children:n,inline:r,align:o,disabled:i}=t,a=c(t,["children","inline","align","disabled"]);return e.jsx(c3,Object.assign({},a,{inline:r,align:o,disabled:i},{children:n}))},i3.Input=K5,i3.Dropdown=Z5,i3.Radio=t3,i3.Toggle=n3,i3.Checkbox=mz,i3.Label=r3;const a3=W(e3)({boxSizing:"border-box"}),s3=W(e3)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),c3=W.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"}),un),u3=W.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}))),l3=W.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),f3=W.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%)`}}))),d3=W.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),p3=W.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"}))),h3=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(g3,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:d,borderLeft:p,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Rs(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),g3=W.div((({theme:{menu:e},vertical:t,backgroundColor:n,width:r,height:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>({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:c,width:r,height:o})),(({theme:{defaultBorder:e},border:t,borderTop:n,borderBottom:r,borderLeft:o,borderRight:i,borderTopLeftRadius:a,borderTopRightRadius:s,borderBottomLeftRadius:c,borderBottomRightRadius:u})=>({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:c,borderBottomRightRadius:u}))),y3=W.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}))),v3=W.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),m3=W.div({marginLeft:"auto",marginRight:8});h3.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(y3,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),h3.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:d})=>{const[p,h]=t.useState(r||i),g=e=>Rs(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!p&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:d})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(v3,Object.assign({backgroundColor:d},{children:[e.jsxs(y3,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),p||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(m3,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(dn,{name:p?"chevron-up":"chevron-down",pointer:!0})}))]})),p&&y]}))};const b3=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,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:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(C3,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(dn,{name:h,style:{marginRight:10},color:g}),e.jsx(_3,{children:r||d}),o&&e.jsx(dn,{name:"close",onClick:i,pointer:!0,color:p.scale8,hoverColor:p.scale10,marginLeft:"auto"})]}))},w3=W.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),x3=W.div((({theme:e})=>({fontWeight:e.font.weight.default})));b3.Header=w3,b3.Body=x3;const C3=W.div((({theme:e,borderColor:t,backgroundColor:n,width:r})=>({width:r,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})),un),_3=W.div({width:"100%"}),S3=W.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),O3=W.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),k3=W.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),E3=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,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:C,paddingBottom:_,paddingRight:S,paddingLeft:O})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:C,paddingBottom:_,paddingRight:S,paddingLeft:O},j=Rs(n).map((e=>e?t.cloneElement(e,{inline:p}):null)),A=e.jsx(T3,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(j3,Object.assign({ref:k,width:a,height:s,backgroundColor:d,small:p,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(A3,Object.assign({inline:p},{children:e.jsx(dn,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};E3.Header=W.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),E3.Text=W.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),E3.Body=W.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),un),E3.Footer=W.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})),un);const j3=W.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"})`}),cn),A3=W.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),T3=W.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)"}))),M3=t.forwardRef(((o,i)=>{var{children:a,options:s,items:u,listLabel:l,listText:f,itemsTitle:d,maxItems:p,placeholder:h,width:g,filter:y,restrictInput:v,disabled:m,hideItemsInfo:b,optionsParent:w,compact:x,backgroundColor:C,borderless:_,addItem:S,removeItem:O,onTextChange:k,autoFocus:E}=o,j=c(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[A,T]=t.useState(E||!1),[M,P]=t.useState(!1),[D,L]=t.useState(""),{color:R,font:I,input:N}=n.useTheme(),B=at((()=>T(!1)),A,w?[w,`${w} *`]:void 0),F=t.useRef(null),z=x&&!!l,H=e=>{e&&S(e)},V=()=>{const{current:e}=F;A||l||T(!0),null==e||e.focus()},K=()=>{const{current:e}=F;e&&e.blur()};t.useImperativeHandle(i,(()=>({focus:V,blur:K})));const U=e=>{L(e),k&&k(e)};t.useEffect((()=>{A||K()}),[A]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(u.length>0){e.preventDefault();const t=u[u.length-1];O(t)}}),A&&!D,[u]);const $=s.filter((e=>!u.find((t=>t.id===e.id)))),W=t.useMemo((()=>`multi-select-${az()}`),[]),q=t.useMemo((()=>`multi-select-list-${az()}`),[]),Z=p?u.length>=p:void 0,G=m||!A||Z,Y=()=>{const t=e.jsxs(R3,Object.assign({id:q,expanded:A,padTop:A&&u.length>0,labeled:!!l},{children:[f&&e.jsx(I3,Object.assign({expanded:A,labeled:!!l},{children:f})),a?a(A,!!m):u.map((t=>e.jsx(r3,Object.assign({pill:!0,iconRight:A&&!m?e.jsx(dn,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:m},{children:t.label}),t.id))),e.jsx(Z5,Object.assign({},j,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:y,backgroundColor:"transparent",restrictInput:v,options:$,fontSize:I.size.md,placeholder:m||u.length>0?" ":h||"Search...",placeholderColor:N.color.placeholder,inputRef:F,onChange:H,onTextChange:U,onError:e=>P(e),disabled:G,optionsParent:w?`#${q}`:`#${W}`,autoFocus:E}))]}));if(w){const e=document.querySelector(w);return e?r.createPortal(t,e):t}return t};return e.jsxs(P3,Object.assign({width:g,ref:B,labeled:!!l,disabled:m,collapse:z,onClick:e=>{e.stopPropagation(),V()}},{children:[e.jsxs(D3,Object.assign({collapse:z,id:W,expanded:A&&u.length>0,error:M,labeled:!!l,backgroundColor:C,borderless:_},{children:[l?e.jsx(L3,Object.assign({collapse:z},{children:l})):Y(),e.jsxs(N3,{children:[p&&!b&&e.jsx(F3,{children:m&&d?e.jsxs(e.Fragment,{children:[u.length," ",d]}):e.jsxs(e.Fragment,{children:[e.jsx(B3,Object.assign({error:u.length>=p},{children:u.length})),"/",p," ",d]})}),u.length>0&&e.jsx(dn,{name:A?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),T(!A)}})]})]})),l&&A&&Y()]}))})),P3=W.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),D3=W.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"}))),L3=W.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),R3=W.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}:{})),I3=W.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}))),N3=W.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),B3=W.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),F3=W.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),z3=e=>e?+e:0,H3=W.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),un),V3=W.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`}}))),K3=W(V3)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),U3=W(V3)((({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}))),$3=W.span((({theme:e})=>({color:e.scale6}))),W3=({percent:t,size:n=24,thickness:r=2,color:o,margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u})=>{const l={margin:i,marginTop:a,marginBottom:s,marginRight:c,marginLeft:u},f=(n-r)/2,d=f*Math.PI*2,p=d-d*t/100,h=n/2;return e.jsxs(q3,Object.assign({size:n},l,{children:[e.jsx(Z3,{cx:h,cy:h,r:f,thickness:r}),e.jsx(G3,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:d,complete:p})]}))},q3=W.svg((({size:e})=>({display:"block",width:e,height:e})),un),Z3=W.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),G3=W(Z3)((({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"}))),Y3=W.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),un),X3=W.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 J3={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 c(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function u(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(u),l=null)}t=s(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,u=null,l=n||null;a?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,u=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),c(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 C(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function _(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){c(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:"+C(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 C(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"},L=null;function R(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function I(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=R()&&I(e,n,i)),t?o()-e.A>=e.w?R()&&I(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(){u(this.g.a),u(this.h.a),u(this.j.a),u(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 H(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 V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function K(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 c,u=[];for(c=0;c<n.length;c++){var f=n[c],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),u.push(p)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function U(e,t){this.c=e,this.a=t}function $(e,t){this.c=e,this.a=t}function W(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,H(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),H(this)},V.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){K(e,i,t,n,r)}))}(this,new S(this.c,e),e)},U.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 c=o[s].fontfamily;null!=o[s].fontStyle&&null!=o[s].fontWeight?(n=o[s].fontStyle+o[s].fontWeight,a.push(new b(c,n))):a.push(new b(c))}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([])},$.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 c=r[1].split(","),u=0;u<c.length;u+=1)s.push(new b(r[0],c[u]));else s.push(new b(r[0]));y(a,(function(){e(s,i)}))};var q="https://fonts.googleapis.com/css";function Z(e){this.f=e,this.a=[],this.c={}}var G={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 W(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 Z(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,c=(s=s.split(",")).length,u=0;u<c;u++){var l;if((l=s[u]).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=G[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=G[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,_("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 V(window);re.a.c.custom=function(e,t){return new $(t,e)},re.a.c.fontdeck=function(e,t){return new ne(t,e)},re.a.c.monotype=function(e,t){return new U(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))}()}(J3);var Q3=ct(J3.exports);const e9=W.div(sn),t9=W.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),un),n9=W.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),r9=W.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),o9=W.div({display:"flex",flexDirection:"column"}),i9=W.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),a9=W.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),s9=W.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"}}})),c9=W.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),u9=W.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),l9=t.createContext({}),f9=(t,n,r)=>{const o="th"===n?d9:p9,i=r?{style:r}:{};return Rs(t).map(((t,r)=>t?e.jsx(o,Object.assign({},i,{children:t}),`${n}${r+1}`):null))},d9=W.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left"}))),p9=W.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%"}))),h9=W.thead((({alignToScrollBody:e})=>({overflow:e?"auto":void 0,scrollbarGutter:e?"stable":void 0}))),g9=W(e3)({alignItems:"center",padding:"8px 24px"},cn),y9=W.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:e||t?"auto":void 0,scrollbarGutter:e||t?"stable":void 0}))),v9=W(e3)((({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"}}),cn),m9=W.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),b9=W(m9)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),cn),w9=W(m9)({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}}))),x9=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(l9.Provider,Object.assign({value:p},{children:e.jsx(C9,Object.assign({},a,{children:d}))}))};x9.Header=n=>{var{children:r,columns:o,columnStyles:i,alignToScrollBody:a}=n,s=c(n,["children","columns","columnStyles","alignToScrollBody"]);const{parentColumns:u}=t.useContext(l9),l=o||u||"equal";return e.jsx(h9,Object.assign({alignToScrollBody:a},{children:e.jsx(g9,Object.assign({as:"tr",columns:l},s,{children:f9(r,"th",i)}))}))},x9.HeaderCell=({children:r,onClick:o,contentPosition:i,sorted:a,sortKey:s})=>{const[c,u]=t.useState(a||"inactive"),{color:l}=n.useTheme(),{activeColumn:f,setActiveColumn:d}=t.useContext(l9),p=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(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&&u(a)}),[a]),t.useEffect((()=>{const e=!f&&a;s&&f&&f.key!==s&&"inactive"!==c&&!e&&u("inactive")}),[f,c]),e.jsxs(w9,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!p},{children:[r,p?e.jsx(dn,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},x9.Body=n=>{var{children:r,height:o,maxHeight:i}=n,a=c(n,["children","height","maxHeight"]);const{parentColumns:s}=t.useContext(l9);return e.jsx(y9,Object.assign({height:o,maxHeight:i},a,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:s}):null))}))},x9.Row=n=>{var{children:r,columns:o,onClick:i,columnStyles:a}=n,s=c(n,["children","columns","onClick","columnStyles"]);const{parentColumns:u}=t.useContext(l9),l=o||u||"equal";return e.jsx(v9,Object.assign({as:"tr",columns:l,onClick:i,hoverEffect:!!i},s,{children:f9(r,"td",a)}))},x9.Column=({children:t,contentPosition:n,defaultValue:r,padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c})=>{const u={padding:o,paddingTop:i,paddingBottom:a,paddingRight:s,paddingLeft:c};return e.jsx(b9,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const C9=W.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),cn,un),_9=t.forwardRef(((e,n)=>t.createElement(se.span,q({},e,{ref:n,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),[S9,O9]=Z("Tooltip",[Yo]),k9=Yo(),E9=700,j9="tooltip.open",[A9,T9]=S9("TooltipProvider"),M9="Tooltip",[P9,D9]=S9(M9),L9="TooltipTrigger",R9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=D9(L9,r),a=T9(L9,r),s=k9(r),c=X(n,t.useRef(null),i.onTriggerChange),u=t.useRef(!1),l=t.useRef(!1),f=t.useCallback((()=>u.current=!1),[]);return t.useEffect((()=>()=>document.removeEventListener("pointerup",f)),[f]),t.createElement(ui,q({asChild:!0},s),t.createElement(se.button,q({"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute},o,{ref:c,onPointerMove:oe(e.onPointerMove,(e=>{"touch"!==e.pointerType&&(l.current||a.isPointerInTransitRef.current||(i.onTriggerEnter(),l.current=!0))})),onPointerLeave:oe(e.onPointerLeave,(()=>{i.onTriggerLeave(),l.current=!1})),onPointerDown:oe(e.onPointerDown,(()=>{u.current=!0,document.addEventListener("pointerup",f,{once:!0})})),onFocus:oe(e.onFocus,(()=>{u.current||i.onOpen()})),onBlur:oe(e.onBlur,i.onClose),onClick:oe(e.onClick,i.onClose)})))})),I9="TooltipPortal",[N9,B9]=S9(I9,{forceMount:void 0}),F9="TooltipContent",z9=t.forwardRef(((e,n)=>{const r=B9(F9,e.__scopeTooltip),{forceMount:o=r.forceMount,side:i="top",...a}=e,s=D9(F9,e.__scopeTooltip);return t.createElement(le,{present:o||s.open},s.disableHoverableContent?t.createElement(U9,q({side:i},a,{ref:n})):t.createElement(H9,q({side:i},a,{ref:n})))})),H9=t.forwardRef(((e,n)=>{const r=D9(F9,e.__scopeTooltip),o=T9(F9,e.__scopeTooltip),i=t.useRef(null),a=X(n,i),[s,c]=t.useState(null),{trigger:u,onClose:l}=r,f=i.current,{onPointerInTransitChange:d}=o,p=t.useCallback((()=>{c(null),d(!1)}),[d]),h=t.useCallback(((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect()),i=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,o),a=function(e){const t=e.slice();return t.sort(((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0)),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...i,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);c(a),d(!0)}),[d]);return t.useEffect((()=>()=>p()),[p]),t.useEffect((()=>{if(u&&f){const e=e=>h(e,f),t=e=>h(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}}),[u,f,h,p]),t.useEffect((()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=(null==u?void 0:u.contains(t))||(null==f?void 0:f.contains(t)),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,i=t.length-1;e<t.length;i=e++){const a=t[e].x,s=t[e].y,c=t[i].x,u=t[i].y;s>r!=u>r&&n<(c-a)*(r-s)/(u-s)+a&&(o=!o)}return o}(n,s);r?p():o&&(p(),l())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}}),[u,f,s,l,p]),t.createElement(U9,q({},e,{ref:a}))})),[V9,K9]=S9(M9,{isInside:!1}),U9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":i,onEscapeKeyDown:a,onPointerDownOutside:s,...c}=e,u=D9(F9,r),l=k9(r),{onClose:f}=u;return t.useEffect((()=>(document.addEventListener(j9,f),()=>document.removeEventListener(j9,f))),[f]),t.useEffect((()=>{if(u.trigger){const e=e=>{const t=e.target;null!=t&&t.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}}),[u.trigger,f]),t.createElement(vr,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f},t.createElement(li,q({"data-state":u.stateAttribute},l,c,{ref:n,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"}}),t.createElement(ee,null,o),t.createElement(V9,{scope:r,isInside:!0},t.createElement(_9,{id:u.contentId,role:"tooltip"},i||o))))}));const $9=e=>{const{__scopeTooltip:n,delayDuration:r=E9,skipDelayDuration:o=300,disableHoverableContent:i=!1,children:a}=e,[s,c]=t.useState(!0),u=t.useRef(!1),l=t.useRef(0);return t.useEffect((()=>{const e=l.current;return()=>window.clearTimeout(e)}),[]),t.createElement(A9,{scope:n,isOpenDelayed:s,delayDuration:r,onOpen:t.useCallback((()=>{window.clearTimeout(l.current),c(!1)}),[]),onClose:t.useCallback((()=>{window.clearTimeout(l.current),l.current=window.setTimeout((()=>c(!0)),o)}),[o]),isPointerInTransitRef:u,onPointerInTransitChange:t.useCallback((e=>{u.current=e}),[]),disableHoverableContent:i},a)},W9=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:i=!1,onOpenChange:a,disableHoverableContent:s,delayDuration:c}=e,u=T9(M9,e.__scopeTooltip),l=k9(n),[f,d]=t.useState(null),p=he(),h=t.useRef(0),g=null!=s?s:u.disableHoverableContent,y=null!=c?c:u.delayDuration,v=t.useRef(!1),[m=!1,b]=ae({prop:o,defaultProp:i,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(j9))):u.onClose(),null==a||a(e)}}),w=t.useMemo((()=>m?v.current?"delayed-open":"instant-open":"closed"),[m]),x=t.useCallback((()=>{window.clearTimeout(h.current),v.current=!1,b(!0)}),[b]),C=t.useCallback((()=>{window.clearTimeout(h.current),b(!1)}),[b]),_=t.useCallback((()=>{window.clearTimeout(h.current),h.current=window.setTimeout((()=>{v.current=!0,b(!0)}),y)}),[y,b]);return t.useEffect((()=>()=>window.clearTimeout(h.current)),[]),t.createElement(ci,l,t.createElement(P9,{scope:n,contentId:p,open:m,stateAttribute:w,trigger:f,onTriggerChange:d,onTriggerEnter:t.useCallback((()=>{u.isOpenDelayed?_():x()}),[u.isOpenDelayed,_,x]),onTriggerLeave:t.useCallback((()=>{g?C():window.clearTimeout(h.current)}),[C,g]),onOpen:x,onClose:C,disableHoverableContent:g},r))},q9=R9,Z9=e=>{const{__scopeTooltip:n,forceMount:r,children:o,container:i}=e,a=D9(I9,n);return t.createElement(N9,{scope:n,forceMount:r},t.createElement(le,{present:r||a.open},t.createElement(di,{asChild:!0,container:i},o)))},G9=t.forwardRef(((e,n)=>{const{__scopeTooltip:r,...o}=e,i=k9(r);return K9("TooltipArrow",r).isInside?null:t.createElement(fi,q({},i,o,{ref:n}))})),Y9=t=>{var{trigger:n,children:r,content:o,position:i="top",offset:a=4,zIndex:s,width:u,maxWidth:l,textAlign:f,open:d,disabled:p,id:h,bgColor:g,color:y,container:v,afterShow:m,afterHide:b}=t,w=c(t,["trigger","children","content","position","offset","zIndex","width","maxWidth","textAlign","open","disabled","id","bgColor","color","container","afterShow","afterHide"]);return e.jsx($9,{children:e.jsxs(W9,Object.assign({delayDuration:0,onOpenChange:e=>{p||(m&&e&&m(),b&&!e&&b())},open:d},{children:[e.jsx(q9,Object.assign({asChild:!0},{children:e.jsx(J9,Object.assign({},w,{children:n}))})),e.jsx(Z9,Object.assign({container:v},{children:!p&&e.jsxs(X9,Object.assign({side:Us(i).side,align:Us(i).align,sideOffset:a,zIndex:s,width:u,maxWidth:l,textAlign:f,id:h,bgColor:g,textColor:y},{children:[o||r,e.jsx(G9,{className:"tooltip-arrow",width:12,height:8})]}))}))]}))})},X9=W(z9,{shouldForwardProp:e=>$s(e,["maxWidth","textAlign","bgColor","textColor","zIndex"])})((({theme:e,width:t,maxWidth:n,textAlign:r="center",bgColor:o,textColor:i,zIndex:a})=>{const{tooltip:s,font:c}=e,u=s.background,l=o||u;return{backgroundColor:l,boxShadow:e.elevation1,color:i||s.color.default,fontSize:c.size.sm,fontFamily:c.family.default,borderRadius:4,width:t,maxWidth:n,padding:16,textAlign:r,zIndex:a,"& > span > .tooltip-arrow":{fill:l,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"},'&[data-side="bottom"] > span > .tooltip-arrow':{filter:"drop-shadow(0px -2px 2px rgba(0, 0, 0, 0.1))"}}})),J9=W.div({display:"inline-flex"}),Q9=W.div((({theme:e})=>({color:e.tooltip.color.default}))),e4=W.div((({theme:e})=>({color:e.tooltip.color.subtext})));Y9.Header=Q9,Y9.Body=e4;const t4="#0074F4",n4="#FF6068",r4="#FF9900",o4="#F0BB00",i4="#00C242",a4="#001D32",s4="#FFFFFF",c4={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:t4,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:fr(.95,t4),brandTint1:fr(.9,t4),brandTint2:fr(.8,t4),brandTint3:fr(.7,t4),brandTint4:fr(.6,t4),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:n4,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:fr(.95,n4),errorTint1:fr(.9,n4),errorTint2:fr(.8,n4),warning:r4,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:fr(.95,r4),warningTint1:fr(.9,r4),warningTint2:fr(.8,r4),alert:o4,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:fr(.95,o4),alertTint1:fr(.9,o4),alertTint2:fr(.8,o4),success:i4,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:fr(.95,i4),successTint1:fr(.9,i4),successTint2:fr(.8,i4),grayscale0:fr(.95,a4),grayscale1:fr(.9,a4),grayscale2:fr(.8,a4),grayscale3:fr(.7,a4),grayscale4:fr(.6,a4),grayscale5:fr(.5,a4),grayscale6:fr(.4,a4),grayscale7:fr(.3,a4),grayscale8:fr(.2,a4),grayscale9:fr(.1,a4),grayscale10:a4,contrast0:fr(.95,s4),contrast1:fr(.9,s4),contrast2:fr(.8,s4),contrast3:fr(.7,s4),contrast4:fr(.6,s4),contrast5:fr(.5,s4),contrast6:fr(.4,s4),contrast7:fr(.3,s4),contrast8:fr(.2,s4),contrast9:fr(.1,s4),contrast10:s4};var u4={color:c4,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:l4}=u4;var f4={small:{height:28,iconSize:18,font:l4.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:l4.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:l4.size.lg,padding:14,iconOnlyPadding:6}};const d4="#FFFFFF",p4=c4.grayscale0,h4=c4.grayscale1,g4=c4.grayscale2,y4=c4.grayscale3,v4=c4.grayscale4,m4=c4.grayscale5,b4=c4.grayscale6,w4=c4.grayscale7,x4=c4.grayscale8,C4=c4.grayscale9,_4=c4.grayscale10,S4=Object.assign(Object.assign({},u4),{name:"light",accent:c4.brand,accentShade:c4.brandShade1,background0:d4,background1:d4,background2:d4,background3:d4,background4:d4,background5:d4,scale0:p4,scale1:h4,scale2:g4,scale3:y4,scale4:v4,scale5:m4,scale6:b4,scale7:w4,scale8:x4,scale9:C4,scale10:_4,button:Object.assign(Object.assign({},f4),{primary:{color:{default:d4,hover:d4,active:d4},outlineColor:{default:_4,hover:_4,active:_4},background:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},outlineBackground:{default:c4.brandTint0,hover:c4.brandTint1,active:c4.brandTint2},border:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},divider:g4},secondary:{color:{default:_4,hover:_4,active:_4},outlineColor:{default:_4,hover:_4,active:_4},background:{default:h4,hover:g4,active:y4},outlineBackground:{default:h4,hover:g4,active:y4},border:{default:g4,hover:g4,active:g4},divider:g4},positive:{color:{default:d4,hover:d4,active:d4},outlineColor:{default:_4,hover:_4,active:_4},background:{default:c4.success,hover:c4.successShade1,active:c4.successShade2},outlineBackground:{default:c4.successTint0,hover:c4.successTint1,active:c4.successTint2},border:{default:c4.success,hover:c4.successShade1,active:c4.successShade2},divider:g4},negative:{color:{default:d4,hover:d4,active:d4},outlineColor:{default:_4,hover:_4,active:_4},background:{default:c4.error,hover:c4.errorShade1,active:c4.errorShade2},outlineBackground:{default:c4.errorTint0,hover:c4.errorTint1,active:c4.errorTint2},border:{default:c4.error,hover:c4.errorShade1,active:c4.errorShade2},divider:g4},caution:{color:{default:d4,hover:d4,active:d4},outlineColor:{default:_4,hover:_4,active:_4},background:{default:c4.warning,hover:c4.warningShade1,active:c4.warningShade2},outlineBackground:{default:c4.warningTint0,hover:c4.warningTint1,active:c4.warningTint2},border:{default:c4.warning,hover:c4.warningShade1,active:c4.warningShade2},divider:g4},subtle:{color:{default:c4.brand,hover:c4.brand,active:c4.brand},outlineColor:{default:c4.brand,hover:c4.brand,active:c4.brand},secondaryColor:{default:_4,hover:_4,active:_4},positiveColor:{default:c4.success,hover:c4.success,active:c4.success},negativeColor:{default:c4.error,hover:c4.error,active:c4.error},cautionColor:{default:c4.warning,hover:c4.warning,active:c4.warning},background:{default:"transparent",hover:h4,active:g4},outlineBackground:{default:"transparent",hover:h4,active:g4},border:{default:"transparent",hover:g4,active:g4},divider:g4},link:{color:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},outlineColor:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},secondaryColor:{default:x4,hover:C4,active:_4},positiveColor:{default:c4.success,hover:c4.successShade1,active:c4.successShade2},negativeColor:{default:c4.error,hover:c4.errorShade1,active:c4.errorShade2},cautionColor:{default:c4.warning,hover:c4.warningShade1,active:c4.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:v4,hover:v4,active:v4},outlineColor:{default:v4,hover:v4,active:v4},background:{default:h4,hover:h4,active:h4},outlineBackground:{default:p4,hover:p4,active:p4},border:{default:h4,hover:h4,active:h4},divider:h4},color:{default:d4}}),calendar:{background:{container:c4.contrast10,hover:h4,active:c4.brand,activeHover:c4.brandShade1},color:{disabled:v4,default:_4,active:c4.contrast10,current:c4.brand,outside:b4,weekday:x4,monthYear:x4,iconDefault:v4,iconHover:_4}},defaultBorder:`1px solid ${h4}`,formControl:{color:{default:x4,hover:_4,active:c4.brand,activeHover:c4.brandShade1,disabled:v4}},input:{borderRadius:4,background:{default:p4,hover:h4,focused:h4,disabled:p4},color:{default:_4,disabled:v4,placeholder:b4,description:b4,descriptionError:c4.error},borderColor:{default:b4,hover:x4,focused:c4.brand,disabled:v4,error:c4.error},labelColor:{default:x4,hover:x4,filled:b4,focused:c4.brand,disabled:v4}},menu:{background:d4},menuItem:{borderColor:c4.brand,background:{active:p4,hover:h4,inactive:"transparent"},color:{active:_4,hover:_4,inactive:b4}},modal:{background:c4.contrast10,color:{header:_4,body:b4}},options:{background:c4.contrast10},optionItem:{background:{active:h4,inactive:"transparent"},color:{active:_4,inactive:_4,accent:c4.brand}},table:{color:{header:b4,body:_4},borderColor:h4},toast:{color:_4,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:x4,info:c4.brand,success:c4.success,warning:c4.warning,error:c4.error}},toggle:{slider:c4.contrast10},tooltip:{background:"#FFF",color:{default:_4,subtext:b4}}}),O4=c4.contrast0,k4=c4.contrast1,E4=c4.contrast2,j4=c4.contrast3,A4=c4.contrast4,T4=c4.contrast5,M4=c4.contrast6,P4=c4.contrast7,D4=c4.contrast8,L4=c4.contrast9,R4=c4.contrast10,I4=c4.brandDark,N4={light:S4,dark:Object.assign(Object.assign({},u4),{name:"dark",accent:I4,accentShade:c4.brandDarkShade1,background0:c4.brandBackground0,background1:c4.brandBackground1,background2:c4.brandBackground2,background3:c4.brandBackground3,background4:c4.brandBackground4,background5:c4.brandBackground5,scale0:O4,scale1:k4,scale2:E4,scale3:j4,scale4:A4,scale5:T4,scale6:M4,scale7:P4,scale8:D4,scale9:L4,scale10:R4,button:Object.assign(Object.assign({},f4),{primary:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},outlineBackground:{default:c4.brandTint0,hover:c4.brandTint1,active:c4.brandTint2},border:{default:c4.brand,hover:c4.brandShade1,active:c4.brandShade2},divider:E4},secondary:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:k4,hover:E4,active:j4},outlineBackground:{default:k4,hover:E4,active:j4},border:{default:E4,hover:E4,active:E4},divider:E4},positive:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:c4.success,hover:c4.successShade1,active:c4.successShade2},outlineBackground:{default:c4.successTint0,hover:c4.successTint1,active:c4.successTint2},border:{default:c4.success,hover:c4.successShade1,active:c4.successShade2},divider:E4},negative:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:c4.error,hover:c4.errorShade1,active:c4.errorShade2},outlineBackground:{default:c4.errorTint0,hover:c4.errorTint1,active:c4.errorTint2},border:{default:c4.error,hover:c4.errorShade1,active:c4.errorShade2},divider:E4},caution:{color:{default:R4,hover:R4,active:R4},outlineColor:{default:R4,hover:R4,active:R4},background:{default:c4.warning,hover:c4.warningShade1,active:c4.warningShade2},outlineBackground:{default:c4.warningTint0,hover:c4.warningTint1,active:c4.warningTint2},border:{default:c4.warning,hover:c4.warningShade1,active:c4.warningShade2},divider:E4},subtle:{color:{default:c4.brand,hover:c4.brand,active:c4.brand},outlineColor:{default:c4.brand,hover:c4.brand,active:c4.brand},secondaryColor:{default:R4,hover:R4,active:R4},positiveColor:{default:c4.success,hover:c4.success,active:c4.success},negativeColor:{default:c4.error,hover:c4.error,active:c4.error},cautionColor:{default:c4.warning,hover:c4.warning,active:c4.warning},background:{default:"transparent",hover:k4,active:E4},outlineBackground:{default:"transparent",hover:k4,active:E4},border:{default:"transparent",hover:E4,active:E4},divider:E4},link:{color:{default:c4.brandShade2,hover:c4.brandShade1,active:c4.brand},outlineColor:{default:c4.brandShade2,hover:c4.brandShade1,active:c4.brand},secondaryColor:{default:D4,hover:L4,active:R4},positiveColor:{default:c4.successShade2,hover:c4.successShade1,active:c4.success},negativeColor:{default:c4.errorShade2,hover:c4.errorShade1,active:c4.error},cautionColor:{default:c4.warningShade2,hover:c4.warningShade1,active:c4.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:A4,hover:A4,active:A4},outlineColor:{default:A4,hover:A4,active:A4},background:{default:k4,hover:k4,active:k4},outlineBackground:{default:O4,hover:O4,active:O4},border:{default:k4,hover:k4,active:k4},divider:k4},color:{default:"#FFFFFF"}}),calendar:{background:{container:c4.brandBackground3,hover:k4,active:c4.brand,activeHover:c4.brandShade1},color:{disabled:A4,default:R4,active:R4,current:I4,outside:M4,weekday:D4,monthYear:D4,iconDefault:A4,iconHover:R4}},defaultBorder:`1px solid ${k4}`,formControl:{color:{default:D4,hover:R4,active:c4.brand,activeHover:c4.brandShade1,disabled:A4}},input:{borderRadius:4,background:{default:O4,hover:k4,focused:k4,disabled:O4},color:{default:R4,disabled:A4,placeholder:M4,description:M4,descriptionError:c4.error},borderColor:{default:M4,hover:D4,focused:I4,disabled:A4,error:c4.error},labelColor:{default:D4,hover:D4,filled:M4,focused:I4,disabled:A4}},menu:{background:c4.brandBackground2},menuItem:{borderColor:c4.brand,background:{active:O4,hover:k4,inactive:"transparent"},color:{active:R4,hover:R4,inactive:M4}},modal:{background:c4.brandBackground3,color:{header:R4,body:M4}},options:{background:c4.brandBackground3},optionItem:{background:{active:k4,inactive:"transparent"},color:{active:R4,inactive:R4,accent:I4}},table:{color:{header:M4,body:R4},borderColor:k4},toast:{color:R4,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:D4,info:c4.brand,success:c4.success,warning:c4.warning,error:c4.error}},toggle:{slider:c4.brandBackground0},tooltip:{background:c4.brandBackground4,color:{default:R4,subtext:M4}}})};exports.Accordion=gn,exports.Audio=_c,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:a,barGap:s,barCategoryGap:u,barSize:l=16,maxBarSize:f,vertical:d=!1,hideYLabels:p,hideXLabels:h}=t,g=c(t,["data","legend","keys","stacked","barGap","barCategoryGap","barSize","maxBarSize","vertical","hideYLabels","hideXLabels"]);const{scale2:y}=n.useTheme();return e.jsxs(qF,Object.assign({},g,{children:[e.jsx(WF,{}),e.jsx(P_,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(mB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r,layout:d?"vertical":"horizontal",barSize:l,maxBarSize:f,barGap:s,barCategoryGap:u},{children:[e.jsx(ZI,{stroke:y,strokeDasharray:"3 5",vertical:d,horizontal:!d}),e.jsx(fN,{stroke:y,tickMargin:4,tickFormatter:e=>d?Nc(e):e,tick:!h&&{},dataKey:d?void 0:"name",type:d?"number":"category"}),e.jsx(dN,{stroke:y,tickMargin:4,tickFormatter:e=>d?e:Nc(e),tick:!p&&{},dataKey:d?"name":void 0,type:d?"category":"number"}),GF(),o&&e.jsx(km,{content:e.jsx(YF,{})}),i.map((({key:t,color:n},r)=>e.jsx(NR,{dataKey:t,fill:n,stackId:a?"stack":void 0},`bar-${r+1}`)))]}))}))]}))},exports.Button=hc,exports.Calendar=({date:r,onChange:o,preventPast:i,preventFuture:a,noShadow:s})=>{const{current:c}=t.useRef(r||new Date),[u,l]=t.useState(c),[f,d]=t.useState(c),[p,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>HF(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=VF(("prev"===e?KF:EB)(f,{months:1}),1),n=y(t);d(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?IF(KF(e,{months:1})):VF("future"===n?EB(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?KF:EB)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return _B(1,arguments),SB(e).getDay()}(VF(e,1)),n=RF(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(c),n=i instanceof Date?y(i):t,r=a instanceof Date?y(a):t,o=y(IF(f)),s=y(VF(f,1));let l=!1;const d=BF(e,n),p=NF(e,r);(i&&d||a&&p)&&(l=!0);const h=NF(e,o)||BF(e,s),g=DB(e,c),v=DB(e,u);return{date:LF(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(sz,Object.assign({noShadow:s},{children:[e.jsxs(cz,{children:[e.jsx(uz,{children:DF(f,"MMMM Y")}),e.jsxs(lz,{children:[e.jsx(dn,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(dn,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(pz,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(hz,{children:t[0]},t)))}),e.jsx(fz,{children:(null==p?void 0:p.length)&&p.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(dz,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),az())))})]}))},exports.Checkbox=mz,exports.Code=({children:r,code:o,className:i,lang:a,lineHighlights:s,noNumbers:c,margin:u,marginTop:l,marginBottom:f,marginRight:d,marginLeft:p})=>{const{name:h}=n.useTheme(),g={margin:u,marginTop:l,marginBottom:f,marginRight:d,marginLeft:p},y=(null==i?void 0:i.replace(/}/g,"").split("{"))||[];let[v,m,b]=y;v=v||a||"",m=m||s||"",b=b||c?"nonumbers":"";let w=v?v.replace(/language-/,""):"text",x="";if(w.includes("rest")){const[e,t]=w.split("-");w=e,x=(null==t?void 0:t.toUpperCase())||""}const C="nonumbers"===b.toLowerCase().trim(),_=e=>{if(m){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)})(m);return t.some((t=>e===t))}return!1},S=(null==o?void 0:o.trim())||(null==r?void 0:r.trim())||"";return"rest"===w?e.jsx(pH,{method:x,url:S}):e.jsx(lH,Object.assign({code:S,language:w,theme:"dark"===h?Fz.oceanicNext:Fz.github},{children:({className:n,style:r,tokens:o,getLineProps:i,getTokenProps:a})=>e.jsxs(vH,Object.assign({className:n,style:Object.assign({},r)},g,{"data-testid":"code"},{children:[o.map(((n,r,o)=>t.createElement(mH,Object.assign({},i({line:n,key:r}),{key:`line-${r+1}`,highlight:_(r+1)}),o.length>1&&!C&&e.jsx(bH,{children:r+1}),n.map(((e,n)=>t.createElement("span",Object.assign({},a({token:e,key:n}),{key:`token-${n+1}`}))))))),e.jsx(fH,{content:S})]}))}))},exports.DocTable=wH,exports.DraftEditor=B5,exports.Dropdown=Z5,exports.DropdownMenu=Ws,exports.Form=i3,exports.Grid=e3,exports.Icon=dn,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),d=at(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((()=>{const e="undefined"==typeof window,t=e?()=>null:()=>window.removeEventListener("keydown",g);return n&&!e&&window.addEventListener("keydown",g),t}),[n,l]),n?e.jsxs(u3,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(l3,Object.assign({onClick:r},{children:e.jsx(dn,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(f3,Object.assign({id:"prev",onClick:p},{children:e.jsx(dn,{name:"chevron-left",size:35,color:"white"})})),e.jsx(d3,{ref:d,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(f3,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(dn,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=p3,exports.Input=K5,exports.InputUtils=N5,exports.Label=r3,exports.LineChart=r=>{var{data:o,legend:i,keys:a}=r,s=c(r,["data","legend","keys"]);const[u,l]=t.useState(a),{scale2:f}=n.useTheme();return e.jsxs(qF,Object.assign({},s,{children:[e.jsx(WF,{}),e.jsx(P_,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(vB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:o},{children:[e.jsx(ZI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(fN,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(dN,{stroke:f,tickMargin:4,tickFormatter:e=>Nc(e)}),GF(),i&&e.jsx(km,{content:e.jsx(YF,{toggleData:a.length>1?e=>{l((t=>(t=>t.map((t=>t.key===e.value?Object.assign(Object.assign({},t),{hidden:!t.hidden}):t)))(t)))}:void 0})}),u.map((({key:t,color:n,hidden:r},o)=>e.jsx(lN,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},exports.Menu=h3,exports.Message=b3,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(k3,{children:[e.jsx(O3,{}),e.jsx(S3,Object.assign({color:n,style:r},{children:t})),e.jsx(O3,{})]}),exports.Modal=E3,exports.MultiSelect=M3,exports.Notification=wB,exports.Options=Is,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(z3(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,z3(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(H3,Object.assign({width:s},u,{children:[e.jsx(K3,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(dn,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(K3,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(dn,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[d].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx($3,{children:"... "}):"",e.jsx(U3,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx($3,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(K3,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(dn,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(K3,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(dn,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,a=c(t,["size","data","innerRadius","showWhenEmpty"]);const s=(null==r?void 0:r.length)>0,u=s?r:i?[{name:"1",value:1,color:"#999"}]:void 0,l=n/2-1;return e.jsx(qF,Object.assign({width:n,height:n},a,{children:e.jsxs(bB,Object.assign({width:n,height:n},{children:[e.jsx(CL,Object.assign({dataKey:"value",data:u,innerRadius:o,outerRadius:l},{children:null==u?void 0:u.map((t=>e.jsx(D_,{fill:t.color||"#999"},t.name)))})),s&&GF()]}))}))},exports.Progress=({percent:t,color:n,circle:r,width:o,height:i,size:a,thickness:s=2,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d})=>{const p={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:d};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(W3,Object.assign({percent:h,size:a,thickness:s,color:n},p)):e.jsx(Y3,Object.assign({width:o,height:i||s},p,{children:e.jsx(X3,{color:n,width:h})}))},exports.Radio=t3,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,Q3.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=wc,exports.Spacer=e9,exports.Spinner=ac,exports.Table=x9,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=n3,exports.Tooltip=Y9,exports.TransferList=({items:n,onChange:r,beforeItemChange:o,listTitle:i,noItemsMessage:a="No items",hideSelectAll:s,hideRemoveAll:c,readOnly:u,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},C=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(C),t=n.filter((e=>!e.selected)).map(C);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const _=(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(c9,{children:t.header}),e.jsx(u9,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(t9,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(n9,{children:i}),e.jsxs(r9,{children:[!u&&e.jsxs(o9,{children:[k&&e.jsx(i9,{children:v.length>0&&!s&&e.jsx(hc,Object.assign({small:!0,outline:!0,onClick:()=>S("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(a9,{children:v.map((t=>e.jsxs(s9,Object.assign({onClick:()=>_(t,"select"),color:t.color},{children:[O(t),e.jsx(dn,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(o9,{children:[k&&!u&&e.jsx(i9,{children:b.length>0&&!c&&!u&&e.jsx(hc,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>S("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(a9,{children:b.map((t=>e.jsxs(s9,Object.assign({onClick:()=>_(t,"remove"),color:t.color},{children:[O(t),e.jsx(dn,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=UF,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,c=new Date,u=DF(n,"EEEE"),l=DF(n,"MMM d"),f=DF(n,"MMM d, y"),d=DF(n,"h:mm aaa"),p=FF(n),h=function(e){return _B(1,arguments),SB(e).getTime()>Date.now()}(n),g=function(e){return _B(1,arguments),DB(e,Date.now())}(n),y=function(e){return _B(1,arguments),DB(e,zF(Date.now(),1))}(n),v=function(e){return _B(1,arguments),DB(e,OB(Date.now(),1))}(n),m=zB(c,n),b=function(e,t,n){_B(2,arguments);var r=IB(e,t)/7;return FB(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${d}`:"",C=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return C(d);if(s){if(0===m)return C("Just now");if(w)return C(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return C(h?`Today${x}`:d)}return C(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?p?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.marginProps=un,exports.numberWithCommas=$F,exports.paddingProps=cn,exports.positionProps=ln,exports.theme=N4,exports.useConfirm=({header:n="Do you want to proceed?",text:r,cancelText:o="Cancel",confirmText:i="Okay",negative:a,input:s,inputLabel:c,inputPlaceholder:u,inputValue:l}={})=>{const[f,d]=t.useState(l||""),[p,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&d(l)}),[p]);const y=()=>{null==p||p.resolve(!s||f),g()},v=()=>{null==p||p.resolve(!1),g()};it(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(E3,Object.assign({visible:!!p,onClose:g,width:400},{children:[n&&e.jsx(E3.Header,{children:n}),r&&e.jsx(E3.Text,{children:r}),s&&e.jsx(E3.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(K5,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>d(e.value)})})),e.jsxs(E3.Footer,{children:[e.jsx(hc,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(hc,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=an,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=dt,exports.useSelectAll=(e,n)=>{const[r,o]=t.useState(e),[i,a]=t.useState(n||!1),[s,c]=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?(c(!1),a(!0)):t?(c(!0),a(!1)):(c(!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="undefined"==typeof window,t=()=>{e||n({width:window.innerWidth,height:window.innerHeight})};e||window.addEventListener("resize",t);const r=e?()=>null:()=>window.removeEventListener("resize",t);return t(),r}),[]),e},exports.widthHeightProps=sn;
|
|
228
228
|
//# sourceMappingURL=index.js.map
|