@wavv/ui 1.6.5 → 1.6.6
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 +3 -3
- package/build/cjs/types/components/Spinner.d.ts +3 -1
- package/build/cjs/types/index.d.ts +1 -0
- package/build/cjs/types/utils/index.d.ts +1 -0
- package/build/cjs/types/utils/numberWithCommas.d.ts +2 -0
- package/build/esm/index.js +3 -3
- package/build/esm/types/components/Spinner.d.ts +3 -1
- package/build/esm/types/index.d.ts +1 -0
- package/build/esm/types/utils/index.d.ts +1 -0
- package/build/esm/types/utils/numberWithCommas.d.ts +2 -0
- package/build/index.d.ts +6 -2
- package/package.json +1 -1
package/build/cjs/index.js
CHANGED
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
(c) Sindre Sorhus
|
|
22
22
|
@license MIT
|
|
23
23
|
*/
|
|
24
|
-
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 p=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}).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=p(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=p(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},p=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),p=d(l,u);return l.length-p},d=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}}]);const zr=t=>{var{size:n,color:r,center:o,background:i,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,position:p,top:d,bottom:h,right:g,left:y}=t,v=a(t,["size","color","center","background","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const m={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,position:p,top:d,bottom:h,right:g,left:y};return e.jsx(Hr,Object.assign({},m,{center:o,background:i},{children:e.jsx(Ur,{children:e.jsx(un,Object.assign({},v,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},Hr=X.div({width:"max-content",height:"max-content"},(({center:e})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),an,sn),Vr=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ur=X.div({animation:`${Vr} 1s linear infinite`,width:"max-content",height:"max-content"}),Kr=(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)}}},$r=e=>!!e||null!=e&&""!==e,Wr=X.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})),rn,an),qr=X.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}}))),Gr=X.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})));var Zr={Container:Wr,Wrapper:qr,Label:Gr,useInputFocus:Kr,isInputFilled:$r};const Yr=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(un,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(un,Object.assign({},n,r))},Xr=t.forwardRef(((r,o)=>{var{id:i,label:s,placeholder:c,placeholderColor:u,description:l,isLoading:f,search:p,phone:d,textOnly:h,iconLeft:g,iconRight:y,invalid:v,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:_,width:C,height:O,margin:S,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,containerRef:T,value:P,disabled:M,readOnly:D,preventFocus:R,pointer:N,onChange:I,onClick:L,onClear:B,onFocus:F,onBlur:z}=r,H=a(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","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:V,handleFocus:U,handleBlur:K}=Kr(F,z,!R&&!D),$=t.useRef(null),{color:W}=n.useTheme(),[q,G]=t.useState(h?50:void 0),Z=t.useRef(null);t.useLayoutEffect((()=>{if(h&&Z){const{current:e}=Z,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&G(t+3)}}),[h,P,c,Z]);const Y=h?P||c:P,X=P&&B&&!f,J=()=>{V||U()},Q=()=>{V&&K()};t.useImperativeHandle(o,(()=>({focus:J,blur:Q,hasFocus:V}))),t.useEffect((()=>{var e;V&&(null===(e=$.current)||void 0===e||e.focus())}),[V]);return e.jsxs(Wr,Object.assign({ref:T,invalid:v,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:C,height:O,margin:S,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,focused:V,disabled:M,hasLabel:!!s,onClick:e=>{R||D||J(),L&&L(e)},pointer:N,readOnly:D},{children:[p&&e.jsx(un,{name:"search",marginRight:8,inheritColor:!0}),g&&Yr(g,{marginRight:8}),e.jsxs(qr,Object.assign({readOnly:D||R},{children:[h&&e.jsx(to,Object.assign({ref:Z,fontSize:_},{children:Y})),s&&!h&&e.jsx(Gr,Object.assign({htmlFor:i||s,filled:$r(P),focused:V,disabled:M},{children:s})),e.jsx(Jr,Object.assign({id:i||s,ref:$,value:P,placeholder:c,placeholderColor:u,onChange:e=>{if(d){const{value:t}=e.target,n=Fr.normalize(t);if(n.length>10)return;const r=Fr.format(n);I&&I(e,r,n)}else I&&I(e)},onFocus:U,onBlur:K,disabled:M,hide:!($r(P)||!s||V||h),width:q,fontSize:_},H))]})),y&&Yr(y),f&&e.jsx(zr,{}),X&&e.jsx(Qr,Object.assign({onClick:B},{children:e.jsx(un,{name:"close-circle-outline",color:W.brand})})),l&&e.jsx(eo,Object.assign({invalid:v},{children:l}))]}))})),Jr=X.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}}))),Qr=X.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),eo=X.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)"}))),to=X.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),no=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:u,offsetX:l,centerY:f,centerX:p,direction:d})=>{const[h,g]=t.useState(),y=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||y;if(e&&d){const{scrollWidth:t,scrollHeight:n}=e,r="left"===d||"right"===d;g((r?t:n<c?n:c)+((r?l:u)||4))}}),[i,d]);const v=e.jsx(ro,Object.assign({id:n,ref:i||y,offsetX:l,offsetY:u,width:s,maxHeight:c,centerY:f,centerX:p,optionsPosition:{direction:d,amount:h}},{children:o}));if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};no.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:s,contentPosition:c,color:u,accented:l}=t,f=a(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(oo,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:s,contentPosition:c,color:u,accented:l,tabIndex:s?-1:0},f,{children:n}))};const ro=X.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),oo=X.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),io=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},ao=(n,r,o,i,s)=>{const{selected:c}=s,u=((t,n,r,o)=>{if(t&&t.length>0)return io(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsxs(no.Item,Object.assign({id:t.id,onClick:o},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(so,{children:t.header}),e.jsx(co,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]}),t.id)}));return[]})(n,o,i,a(s,["selected"])),l=((e,n,r)=>e?Br(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i),f=[...u,...l];return Br(f).map(((e,n)=>e?t.cloneElement(e,{selected:c===n}):null))},so=X.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),co=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),uo=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),lo=r=>{var{onChange:o,onTextChange:i,afterShow:s,afterHide:c,onFocus:u,onBlur:l,onError:f,placeholder:p,placeholderColor:d,value:h,options:g,children:y,borderless:v,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:_,width:C,height:O,isLoading:S,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:P,id:M,name:D,trigger:R,centerY:N,centerX:I,offsetY:L,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:U,search:K,filter:$,restrictInput:W,inputRef:q,optionsParent:G}=r,Z=a(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&&s&&s(),ee&&c&&c(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&K){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,K]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const le=at(ue,ee,G?[G,`${G} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},pe=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},de=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(de(e))return pe(e)||null;return{id:Er(),label:e,value:e}})(e);const t=de(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=Br(y).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=uo(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...io(g||[],{search:K,filter:$,inputText:J}),...e]},ve={options:ye(),select:ge,open:ue,close:ue,searchText:K?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ut(ve),we=ao(g||[],y,ge,ue,{selected:me,search:K,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",_e=_&&!V?d||se.color.default:void 0,Ce=a(Z,["onClear","phone"]);return e.jsx(fo,Object.assign({textOnly:_,altTrigger:!!R,width:C,height:O,focused:ne,search:K},ce,{children:e.jsxs(po,Object.assign({ref:le},{children:[R?e.jsx(ho,Object.assign({id:M,onClick:ue,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1)},{children:R})):e.jsx(yo,Object.assign({shake:oe},{children:e.jsx(Xr,Object.assign({},Ce,{ref:q||ae,id:M,name:D,label:P,fontSize:z,pointer:!0,preventFocus:!K,value:J||h||Y,placeholder:p||"Select",placeholderColor:_e,iconRight:w||S?void 0:xe,borderless:v,borderColor:m,backgroundColor:b,isLoading:S,textOnly:_,description:H,disabled:V,invalid:oe||U,onClick:ue,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;K?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=pe(n),i=de(n),a=""===n||i&&!r;o&&!(K&&(!i||r))?ge(o,e):K&&!a||he(e)},onFocus:e=>{re(!0),u&&u(e)},onBlur:e=>{var t;if(re(!1),l&&l(e),K&&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(no,Object.assign({containerRef:be,parentSelector:G,width:!R&&!_||G?"100%":void 0,centerY:N,centerX:I,offsetY:L,offsetX:B,direction:F},{children:we}))]}))}))};lo.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||uo(i)||"",value:t};r&&r(o,e)};return e.jsx(no.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const fo=X.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`})),rn,an),po=X.div({position:"relative",width:"100%",height:"inherit"}),ho=X.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),go=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)"}}),yo=X.div((({shake:e})=>({"& input":{animation:e?`${go} .5s linear`:void 0}}))),vo=n=>{var{children:r,disabled:o,outline:i,size:s,small:c,large:u,secondary:l,negative:f,positive:p,caution:d,collapse:h}=n,g=a(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(mo,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let a;if(n>1&&(a=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=c||r.props.small,y=u||r.props.large,v=s||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=l||r.props.secondary,x=f||r.props.negative,_=p||r.props.positive,C=d||r.props.caution,O=h||r.props.collapse,S=t.cloneElement(n,{joined:a,size:v,small:g,large:y,disabled:m,outline:b,secondary:w,negative:x,positive:_,caution:C,collapse:O});return"trigger"in e.props?t.cloneElement(e,{trigger:S}):S}return null}))}))}return null},mo=X.div((({width:e})=>({display:"inline-flex",width:e})),an),bo=({size:t})=>e.jsx(wo,Object.assign({className:"button-loader"},{children:e.jsx(zr,{size:t})})),wo=X.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),xo=t=>{const{content:n,children:r,dropdown:o,options:i}=t,s=a(t,["content","children","dropdown","options"]),c=n||r;return o&&i?e.jsx(Co,Object.assign({options:i},s,{children:c})):e.jsx(_o,Object.assign({},s,{children:c}))};xo.Group=vo;const _o=t=>{var{children:r,onClick:o,icon:i,iconPosition:s,iconColor:c,joined:u,size:l,small:f,large:p,isLoading:d,collapse:h,backgroundColor:g,color:y,type:v,animation:m}=t,b=a(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation"]);const{button:w}=n.useTheme(),x=i&&(!r||h),_="right"===s;let C=l||"medium";f?C="small":p&&(C="large");const O=w[C],{iconSize:S}=O,k=h&&i;return e.jsxs(Oo,Object.assign({},b,{type:v||"button",size:C,iconOnly:x,iconRight:_,joined:u,onClick:o,isLoading:d,color:y,backgroundColor:g,animation:m},{children:[i?e.jsx(un,{size:S,name:i,marginRight:x||_?0:4,marginLeft:!x&&_?4:0,color:c,inheritColor:!c}):null,!k&&e.jsx("span",{children:r}),d&&e.jsx(bo,{size:S})]}))},Co=n=>{var{children:r,options:o,onClick:i,afterShow:s,afterHide:c,secondary:u,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:v,isLoading:m,direction:b,collapse:w,width:x}=n,_=a(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","size","small","large","disabled","isLoading","direction","collapse","width"]);const[C,O]=t.useState(!1),S={secondary:u,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:v},k=t.useMemo((()=>`button-dropdown-${Er()}`),[]);return e.jsx(So,Object.assign({id:k},{children:e.jsxs(vo,Object.assign({width:w?void 0:x},{children:[e.jsx(_o,Object.assign({},S,_,{width:x&&!w?"100%":void 0,collapse:w,isLoading:m,onClick:e=>{i&&i(e)}},{children:e.jsx(ko,{children:r})})),e.jsx(lo,{options:o,direction:b,optionsParent:`#${k}`,afterShow:()=>{s&&s(),O(!0)},afterHide:()=>{c&&c(),O(!1)},trigger:e.jsx(_o,Object.assign({},S,{icon:C?"caret-up":"caret-down",preventPointerEvents:m,tabIndex:-1}))})]}))}))},Oo=X.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:u,animation:l})=>{const f=i||a&&!o,p=n[r],d=c||"max-content",{height:h,font:g,padding:y,iconOnlyPadding:v}=p,m=u||h,b=a||f?v:y;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:d,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:l,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,iconOnly:n,outline:r,negative:o,positive:i,caution:a,secondary:s,disabled:c,subtle:u,link:l})=>{const{button:f,size:p}=e;let d=f.primary;u?d=f.subtle:l?d=f.link:c?d=f.disabled:o?d=f.negative:i?d=f.positive:a?d=f.caution:s&&(d=f.secondary);const h=r?d.outlineBackground:d.background;let g=r?d.outlineColor:d.color;if(l||u){let e=f.subtle;l&&(e=f.link),c?g=f.disabled.color:o?g=e.negativeColor:i?g=e.positiveColor:a?g=e.cautionColor:s&&(g=e.secondaryColor)}const y="left"===t||"middle"===t,v="right"===t||"middle"===t,m=n?p.xs:p.sm;return{backgroundColor:h.default,color:g.default,border:r&&!l?"1px solid":"none",borderColor:d.border.default,"&:hover":{backgroundColor:h.hover,color:g.hover,borderColor:r&&!c?d.border.hover:void 0},"&:active":{backgroundColor:h.active,color:g.active,borderColor:r&&!c?d.border.active:void 0},"&:disabled":{backgroundColor:u?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:v?0:void 0,borderBottomRightRadius:v?0:void 0,paddingLeft:y?m:void 0,paddingRight:v?m:void 0,borderRight:v?`1px solid ${r?d.border.default:d.divider}`:void 0,borderLeft:y?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?or:ar,i="dark"===e?ar:or;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),an),So=X.div({display:"inline-flex",flexDirection:"column",position:"relative"}),ko=X.div({marginRight:8}),Eo=t=>{var{value:n,max:r=100,step:o=1,width:i,height:s,disabled:c,onChange:u}=t,l=a(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Ao,Object.assign({},l,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;u&&u(+t)},step:o,width:i,height:s,disabled:c,readOnly:!u}))},jo=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Ao=X.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":jo(e,o||i),"&::-moz-range-thumb":jo(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),an),To=t.forwardRef(((n,r)=>{var{src:o,title:i,width:s,infoPosition:c,centerAlignContent:u,small:l,collapsed:f,hideSliderOnStop:p,hideTimeOnStop:d,fontSizeTitle:h,fontSizeTime:g,onPlay:y,onPause:v,onStop:m}=n,b=a(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[_,C]=t.useState(!0),[O,S]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,P]=t.useState(""),M=t.useRef(null),D=()=>{const{current:e}=M;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},R=()=>{const{current:e}=M;e&&e.pause()},N=()=>{const{current:e}=M;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:R,stop:N})),[M,w]);const I=e=>{x(!1),C(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=M;!!e&&e.paused})()}),[w]);const L=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=_&&p,F=_&&d;return e.jsxs(Po,Object.assign({width:s},b,{children:[e.jsx(xo,{outline:!0,small:l,icon:w?"pause":"play",onClick:()=>{w?R():D()},marginRight:8}),!f&&e.jsxs(Mo,Object.assign({alignDataTop:"top"===c},{children:[!B&&e.jsx(Eo,{value:O,max:k,step:.1,onChange:e=>{(null==M?void 0:M.current)&&(M.current.currentTime=e)}}),e.jsxs(Do,Object.assign({alignTop:"top"===c,noSlider:B,relative:u||B},{children:[i?e.jsx(Ro,Object.assign({fontSize:h},{children:i})):e.jsx("div",{}),!F&&e.jsxs(Ro,Object.assign({secondary:!0,fontSize:g},{children:[j&&!_?`${j} / `:"",T]}))]}))]})),e.jsxs("audio",Object.assign({ref:M,onPlay:e=>{x(!0),C(!1),y&&y(e)},onPause:e=>{x(!1),v&&v(e)},onEmptied:I,onEnded:I,onTimeUpdate:()=>{const{current:e}=M;if(e){const{currentTime:t}=e,n=L(t);S(t),A(n)}},onDurationChange:()=>{const{current:e}=M;if(e){const{duration:t}=e,n=L(t);E(t),P(n)}}},{children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]}))]}))})),Po=X.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),an),Mo=X.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Do=X.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Ro=X.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var No={};
|
|
24
|
+
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 p=u?u():"";o(!1,"Failed %s type: %s%s",s,f.message,null!=p?p:"")}}}}).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=p(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=p(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},p=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),p=d(l,u);return l.length-p},d=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}}]);const zr=t=>{var{size:n,color:r,center:o,background:i,zIndex:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p,position:d,top:h,bottom:g,right:y,left:v}=t,m=a(t,["size","color","center","background","zIndex","margin","marginTop","marginBottom","marginRight","marginLeft","position","top","bottom","right","left"]);const b={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p,position:d,top:h,bottom:g,right:y,left:v};return e.jsx(Hr,Object.assign({},b,{center:o,background:i,zIndex:s},{children:e.jsx(Ur,{children:e.jsx(un,Object.assign({},m,{size:n,name:"loading",color:r,inheritColor:!r}))})}))},Hr=X.div({width:"max-content",height:"max-content"},(({center:e,zIndex:t})=>e&&{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",zIndex:null!=t?t:1}),(({center:e,background:t})=>{if(!e||!t)return null;return{background:"string"==typeof t?t:"rgba(0, 0, 0, 0.5)",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center"}}),an,sn),Vr=n.keyframes({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}}),Ur=X.div({animation:`${Vr} 1s linear infinite`,width:"max-content",height:"max-content"}),Kr=(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)}}},$r=e=>!!e||null!=e&&""!==e,Wr=X.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})),rn,an),qr=X.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}}))),Gr=X.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})));var Zr={Container:Wr,Wrapper:qr,Label:Gr,useInputFocus:Kr,isInputFilled:$r};const Yr=(n,r)=>{const o=e=>t.cloneElement(e,r);return"string"==typeof n?e.jsx(un,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(un,Object.assign({},n,r))},Xr=t.forwardRef(((r,o)=>{var{id:i,label:s,placeholder:c,placeholderColor:u,description:l,isLoading:f,search:p,phone:d,textOnly:h,iconLeft:g,iconRight:y,invalid:v,borderless:m,borderRadius:b,borderColor:w,backgroundColor:x,fontSize:_,width:C,height:O,margin:S,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,containerRef:T,value:P,disabled:M,readOnly:D,preventFocus:R,pointer:N,onChange:I,onClick:L,onClear:B,onFocus:F,onBlur:z}=r,H=a(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","containerRef","value","disabled","readOnly","preventFocus","pointer","onChange","onClick","onClear","onFocus","onBlur"]);const{focused:V,handleFocus:U,handleBlur:K}=Kr(F,z,!R&&!D),$=t.useRef(null),{color:W}=n.useTheme(),[q,G]=t.useState(h?50:void 0),Z=t.useRef(null);t.useLayoutEffect((()=>{if(h&&Z){const{current:e}=Z,t=null==e?void 0:e.offsetWidth;"number"==typeof t&&G(t+3)}}),[h,P,c,Z]);const Y=h?P||c:P,X=P&&B&&!f,J=()=>{V||U()},Q=()=>{V&&K()};t.useImperativeHandle(o,(()=>({focus:J,blur:Q,hasFocus:V}))),t.useEffect((()=>{var e;V&&(null===(e=$.current)||void 0===e||e.focus())}),[V]);return e.jsxs(Wr,Object.assign({ref:T,invalid:v,textOnly:h,borderless:m||h,borderRadius:b,borderColor:w,backgroundColor:x,width:C,height:O,margin:S,marginLeft:k,marginRight:E,marginTop:j,marginBottom:A,focused:V,disabled:M,hasLabel:!!s,onClick:e=>{R||D||J(),L&&L(e)},pointer:N,readOnly:D},{children:[p&&e.jsx(un,{name:"search",marginRight:8,inheritColor:!0}),g&&Yr(g,{marginRight:8}),e.jsxs(qr,Object.assign({readOnly:D||R},{children:[h&&e.jsx(to,Object.assign({ref:Z,fontSize:_},{children:Y})),s&&!h&&e.jsx(Gr,Object.assign({htmlFor:i||s,filled:$r(P),focused:V,disabled:M},{children:s})),e.jsx(Jr,Object.assign({id:i||s,ref:$,value:P,placeholder:c,placeholderColor:u,onChange:e=>{if(d){const{value:t}=e.target,n=Fr.normalize(t);if(n.length>10)return;const r=Fr.format(n);I&&I(e,r,n)}else I&&I(e)},onFocus:U,onBlur:K,disabled:M,hide:!($r(P)||!s||V||h),width:q,fontSize:_},H))]})),y&&Yr(y),f&&e.jsx(zr,{}),X&&e.jsx(Qr,Object.assign({onClick:B},{children:e.jsx(un,{name:"close-circle-outline",color:W.brand})})),l&&e.jsx(eo,Object.assign({invalid:v},{children:l}))]}))})),Jr=X.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}}))),Qr=X.div({height:"100%",cursor:"pointer",display:"flex",justifyContent:"center",alignItems:"center",marginLeft:4}),eo=X.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)"}))),to=X.div((({theme:{font:e},fontSize:t})=>({position:"absolute",width:"max-content",opacity:0,fontSize:t||e.size.lg,zIndex:-1}))),no=({id:n,children:o,containerRef:i,parentSelector:a,width:s,maxHeight:c=200,offsetY:u,offsetX:l,centerY:f,centerX:p,direction:d})=>{const[h,g]=t.useState(),y=t.useRef(null);t.useLayoutEffect((()=>{const{current:e}=i||y;if(e&&d){const{scrollWidth:t,scrollHeight:n}=e,r="left"===d||"right"===d;g((r?t:n<c?n:c)+((r?l:u)||4))}}),[i,d]);const v=e.jsx(ro,Object.assign({id:n,ref:i||y,offsetX:l,offsetY:u,width:s,maxHeight:c,centerY:f,centerX:p,optionsPosition:{direction:d,amount:h}},{children:o}));if(a){const e=document.querySelector(a);return e?r.createPortal(v,e):v}return v};no.Item=t=>{var{children:n,id:r,onClick:o,selected:i,noSelect:s,contentPosition:c,color:u,accented:l}=t,f=a(t,["children","id","onClick","selected","noSelect","contentPosition","color","accented"]);return e.jsx(oo,Object.assign({id:null==r?void 0:r.toString(),onClick:o,selected:i,noSelect:s,contentPosition:c,color:u,accented:l,tabIndex:s?-1:0},f,{children:n}))};const ro=X.div((({theme:{elevation3:e,font:t,options:n},width:r,maxHeight:o,offsetY:i,offsetX:a})=>({boxSizing:"border-box",position:"absolute",fontFamily:t.family.default,fontSize:t.size.md,width:r||"max-content",maxHeight:o,backgroundColor:n.background,borderRadius:4,boxShadow:e,zIndex:2,overflowY:"auto",top:i?-i:"100%",left:a||void 0})),(({centerY:e,centerX:t})=>({top:e?"50%":void 0,left:t?"50%":void 0,transform:`translate(${t?"-50%":0}, ${e?"-50%":0})`})),(({optionsPosition:e})=>{const{direction:t,amount:n}=e;return t&&n?{left:"left"===t?-n:void 0,right:"right"===t?-n:void 0,top:"top"===t?-n:void 0}:{}})),oo=X.div({border:"none",padding:"5px 16px",display:"flex",alignItems:"center",userSelect:"none"},(({theme:{optionItem:e},accented:t,selected:n,noSelect:r=!1})=>({color:t?e.color.accent:e.color.inactive,cursor:r?"inherit":"pointer",backgroundColor:!r&&n?e.background.active:e.background.inactive,"&:hover":{backgroundColor:r?e.background.inactive:e.background.active},"&:focus":{outline:"none",backgroundColor:e.background.active}})),(({color:e})=>({color:e})),(({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),io=(e,t)=>{if(!e)return[];const{search:n,filter:r,inputText:o}=t;return n&&r&&o?e.filter((e=>{const t=e=>{if(!e)return!1;const t=o.toLowerCase();return e.toString().toLowerCase().includes(t)};let n=t(e.label);return!n&&"id"in e&&(n=t(e.id)),n||!("value"in e)||"string"!=typeof e.value&&"number"!=typeof e.value||(n=t(e.value)),!n&&"body"in e&&(n=t(e.body)),!n&&"header"in e&&(n=t(e.header)),n})):e},ao=(n,r,o,i,s)=>{const{selected:c}=s,u=((t,n,r,o)=>{if(t&&t.length>0)return io(t,o).map((t=>{const o=t.onClick?e=>{t.onClick&&t.onClick(e),r()}:e=>n(t,e);return e.jsxs(no.Item,Object.assign({id:t.id,onClick:o},{children:[t.leftElement||null,t.header&&t.body?e.jsxs("div",Object.assign({style:{display:"flex",flexDirection:"column"}},{children:[e.jsx(so,{children:t.header}),e.jsx(co,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]}),t.id)}));return[]})(n,o,i,a(s,["selected"])),l=((e,n,r)=>e?Br(e).map((e=>e?t.cloneElement(e,{setValue:n,close:r}):null)):[])(r,o,i),f=[...u,...l];return Br(f).map(((e,n)=>e?t.cloneElement(e,{selected:c===n}):null))},so=X.div((({theme:e})=>({fontSize:e.font.size.md,color:e.scale10}))),co=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),uo=e=>t.Children.toArray(e).filter((e=>"string"==typeof e)).join("").trim(),lo=r=>{var{onChange:o,onTextChange:i,afterShow:s,afterHide:c,onFocus:u,onBlur:l,onError:f,placeholder:p,placeholderColor:d,value:h,options:g,children:y,borderless:v,borderColor:m,backgroundColor:b,hideIcon:w,clearOnSelect:x,textOnly:_,width:C,height:O,isLoading:S,margin:k,marginTop:E,marginBottom:j,marginRight:A,marginLeft:T,label:P,id:M,name:D,trigger:R,centerY:N,centerX:I,offsetY:L,offsetX:B,direction:F,fontSize:z,description:H,disabled:V,invalid:U,search:K,filter:$,restrictInput:W,inputRef:q,optionsParent:G}=r,Z=a(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&&s&&s(),ee&&c&&c(),te((e=>!e))};t.useEffect((()=>{var e;if(ee&&K){null===(e=(q||ae).current)||void 0===e||e.focus()}}),[ee,K]),t.useEffect((()=>{f&&f(oe)}),[oe]),t.useEffect((()=>{i&&i(J)}),[J]);const le=at(ue,ee,G?[G,`${G} *`]:void 0),fe=(e,t)=>{if(void 0===e)return!1;return e.toString().toLowerCase()===t.toLowerCase()},pe=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},de=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(de(e))return pe(e)||null;return{id:Er(),label:e,value:e}})(e);const t=de(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=Br(y).map((e=>{const t=e;let n=t.props.displayText||"";return!P&&t.props.children&&(n=uo(t.props.children)),{id:t.props.id,label:n,onClick:t.props.onClick}}));return[...io(g||[],{search:K,filter:$,inputText:J}),...e]},ve={options:ye(),select:ge,open:ue,close:ue,searchText:K?J:void 0,isOpen:ee,isFocused:ne},[me,be]=ut(ve),we=ao(g||[],y,ge,ue,{selected:me,search:K,filter:$,inputText:J}),xe=ee?"caret-up":"caret-down",_e=_&&!V?d||se.color.default:void 0,Ce=a(Z,["onClear","phone"]);return e.jsx(fo,Object.assign({textOnly:_,altTrigger:!!R,width:C,height:O,focused:ne,search:K},ce,{children:e.jsxs(po,Object.assign({ref:le},{children:[R?e.jsx(ho,Object.assign({id:M,onClick:ue,tabIndex:0,onFocus:()=>re(!0),onBlur:()=>re(!1)},{children:R})):e.jsx(yo,Object.assign({shake:oe},{children:e.jsx(Xr,Object.assign({},Ce,{ref:q||ae,id:M,name:D,label:P,fontSize:z,pointer:!0,preventFocus:!K,value:J||h||Y,placeholder:p||"Select",placeholderColor:_e,iconRight:w||S?void 0:xe,borderless:v,borderColor:m,backgroundColor:b,isLoading:S,textOnly:_,description:H,disabled:V,invalid:oe||U,onClick:ue,onChange:e=>{var t;const{value:n}=e.target,r=null===(t=(q||ae).current)||void 0===t?void 0:t.hasFocus;K?(Q(n),!ee&&r&&te(!0),oe&&ie(!1)):n||he(e);const o=pe(n),i=de(n),a=""===n||i&&!r;o&&!(K&&(!i||r))?ge(o,e):K&&!a||he(e)},onFocus:e=>{re(!0),u&&u(e)},onBlur:e=>{var t;if(re(!1),l&&l(e),K&&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(no,Object.assign({containerRef:be,parentSelector:G,width:!R&&!_||G?"100%":void 0,centerY:N,centerX:I,offsetY:L,offsetX:B,direction:F},{children:we}))]}))}))};lo.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||uo(i)||"",value:t};r&&r(o,e)};return e.jsx(no.Item,Object.assign({id:l,contentPosition:a,color:s,onClick:f,accented:c},{children:i}))};const fo=X.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`})),rn,an),po=X.div({position:"relative",width:"100%",height:"inherit"}),ho=X.div((({theme:{accent:e}})=>({display:"flex",height:"inherit","&:focus-visible":{outline:`${e} solid 1px`}}))),go=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)"}}),yo=X.div((({shake:e})=>({"& input":{animation:e?`${go} .5s linear`:void 0}}))),vo=n=>{var{children:r,disabled:o,outline:i,size:s,small:c,large:u,secondary:l,negative:f,positive:p,caution:d,collapse:h}=n,g=a(n,["children","disabled","outline","size","small","large","secondary","negative","positive","caution","collapse"]);if(r){const n=t.Children.count(r);return e.jsx(mo,Object.assign({},g,{children:t.Children.map(r,((e,r)=>{let a;if(n>1&&(a=0===r?"right":r===n-1?"left":"middle"),e){let n=e;"trigger"in e.props&&(n=e.props.trigger);const r=n,g=c||r.props.small,y=u||r.props.large,v=s||r.props.size,m=o||r.props.disabled,b=i||r.props.outline,w=l||r.props.secondary,x=f||r.props.negative,_=p||r.props.positive,C=d||r.props.caution,O=h||r.props.collapse,S=t.cloneElement(n,{joined:a,size:v,small:g,large:y,disabled:m,outline:b,secondary:w,negative:x,positive:_,caution:C,collapse:O});return"trigger"in e.props?t.cloneElement(e,{trigger:S}):S}return null}))}))}return null},mo=X.div((({width:e})=>({display:"inline-flex",width:e})),an),bo=({size:t})=>e.jsx(wo,Object.assign({className:"button-loader"},{children:e.jsx(zr,{size:t})})),wo=X.div({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",display:"flex",justifyContent:"center",alignItems:"center"}),xo=t=>{const{content:n,children:r,dropdown:o,options:i}=t,s=a(t,["content","children","dropdown","options"]),c=n||r;return o&&i?e.jsx(Co,Object.assign({options:i},s,{children:c})):e.jsx(_o,Object.assign({},s,{children:c}))};xo.Group=vo;const _o=t=>{var{children:r,onClick:o,icon:i,iconPosition:s,iconColor:c,joined:u,size:l,small:f,large:p,isLoading:d,collapse:h,backgroundColor:g,color:y,type:v,animation:m}=t,b=a(t,["children","onClick","icon","iconPosition","iconColor","joined","size","small","large","isLoading","collapse","backgroundColor","color","type","animation"]);const{button:w}=n.useTheme(),x=i&&(!r||h),_="right"===s;let C=l||"medium";f?C="small":p&&(C="large");const O=w[C],{iconSize:S}=O,k=h&&i;return e.jsxs(Oo,Object.assign({},b,{type:v||"button",size:C,iconOnly:x,iconRight:_,joined:u,onClick:o,isLoading:d,color:y,backgroundColor:g,animation:m},{children:[i?e.jsx(un,{size:S,name:i,marginRight:x||_?0:4,marginLeft:!x&&_?4:0,color:c,inheritColor:!c}):null,!k&&e.jsx("span",{children:r}),d&&e.jsx(bo,{size:S})]}))},Co=n=>{var{children:r,options:o,onClick:i,afterShow:s,afterHide:c,secondary:u,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:v,isLoading:m,direction:b,collapse:w,width:x}=n,_=a(n,["children","options","onClick","afterShow","afterHide","secondary","negative","positive","caution","outline","size","small","large","disabled","isLoading","direction","collapse","width"]);const[C,O]=t.useState(!1),S={secondary:u,negative:l,positive:f,caution:p,outline:d,size:h,small:g,large:y,disabled:v},k=t.useMemo((()=>`button-dropdown-${Er()}`),[]);return e.jsx(So,Object.assign({id:k},{children:e.jsxs(vo,Object.assign({width:w?void 0:x},{children:[e.jsx(_o,Object.assign({},S,_,{width:x&&!w?"100%":void 0,collapse:w,isLoading:m,onClick:e=>{i&&i(e)}},{children:e.jsx(ko,{children:r})})),e.jsx(lo,{options:o,direction:b,optionsParent:`#${k}`,afterShow:()=>{s&&s(),O(!0)},afterHide:()=>{c&&c(),O(!1)},trigger:e.jsx(_o,Object.assign({},S,{icon:C?"caret-up":"caret-down",preventPointerEvents:m,tabIndex:-1}))})]}))}))},Oo=X.button((({theme:{accent:e,font:t,button:n},size:r="medium",joined:o,circle:i,iconOnly:a,iconRight:s,width:c,height:u,animation:l})=>{const f=i||a&&!o,p=n[r],d=c||"max-content",{height:h,font:g,padding:y,iconOnlyPadding:v}=p,m=u||h,b=a||f?v:y;return{display:"inline-flex",alignItems:"center",justifyContent:"center",flexDirection:s?"row-reverse":"row",fontSize:g,width:f?m:d,height:m,fontFamily:t.family.default,fontWeight:t.weight.bold,borderRadius:f?"50%":30,cursor:"pointer",outline:"none",padding:`0px ${b}px`,position:"relative",animation:l,"&:focus-visible":{outline:`${e} solid 1px`}}}),(({theme:e,joined:t,iconOnly:n,outline:r,negative:o,positive:i,caution:a,secondary:s,disabled:c,subtle:u,link:l})=>{const{button:f,size:p}=e;let d=f.primary;u?d=f.subtle:l?d=f.link:c?d=f.disabled:o?d=f.negative:i?d=f.positive:a?d=f.caution:s&&(d=f.secondary);const h=r?d.outlineBackground:d.background;let g=r?d.outlineColor:d.color;if(l||u){let e=f.subtle;l&&(e=f.link),c?g=f.disabled.color:o?g=e.negativeColor:i?g=e.positiveColor:a?g=e.cautionColor:s&&(g=e.secondaryColor)}const y="left"===t||"middle"===t,v="right"===t||"middle"===t,m=n?p.xs:p.sm;return{backgroundColor:h.default,color:g.default,border:r&&!l?"1px solid":"none",borderColor:d.border.default,"&:hover":{backgroundColor:h.hover,color:g.hover,borderColor:r&&!c?d.border.hover:void 0},"&:active":{backgroundColor:h.active,color:g.active,borderColor:r&&!c?d.border.active:void 0},"&:disabled":{backgroundColor:u?"transparent":void 0,cursor:"not-allowed"},borderTopLeftRadius:y?0:void 0,borderBottomLeftRadius:y?0:void 0,borderTopRightRadius:v?0:void 0,borderBottomRightRadius:v?0:void 0,paddingLeft:y?m:void 0,paddingRight:v?m:void 0,borderRight:v?`1px solid ${r?d.border.default:d.divider}`:void 0,borderLeft:y?"none":void 0}}),(({link:e})=>({height:e?"max-content":void 0,width:e?"max-content":void 0,padding:e?0:void 0})),(({isLoading:e,preventPointerEvents:t})=>({pointerEvents:e||t?"none":void 0,"& > *":{visibility:e?"hidden":void 0},"& > .button-loader":{visibility:e?"visible":void 0}})),(({theme:{name:e},backgroundColor:t,color:n,disabled:r})=>{const o="dark"===e?or:ar,i="dark"===e?ar:or;return r||!n&&!t?{}:{backgroundColor:t,color:n,"&:hover":{backgroundColor:t?o(.05,t):void 0,color:n?i(.05,n):void 0},"&:active":{backgroundColor:t?o(.1,t):void 0,color:n?i(.1,n):void 0}}}),an),So=X.div({display:"inline-flex",flexDirection:"column",position:"relative"}),ko=X.div({marginRight:8}),Eo=t=>{var{value:n,max:r=100,step:o=1,width:i,height:s,disabled:c,onChange:u}=t,l=a(t,["value","max","step","width","height","disabled","onChange"]);return e.jsx(Ao,Object.assign({},l,{type:"range",max:r,value:n,percent:n/r*100,onChange:e=>{const{value:t}=e.target;u&&u(+t)},step:o,width:i,height:s,disabled:c,readOnly:!u}))},jo=(e,t)=>({appearance:"none",backgroundColor:t?"transparent":e.color.brand,height:e.size.sm,width:e.size.sm,border:"none",borderRadius:"50%"}),Ao=X.input((({theme:e,percent:t,width:n,height:r,disabled:o,readOnly:i})=>{const a=o?e.scale0:e.scale1,s=o?e.scale1:e.color.brand;return{appearance:"none",display:"block",width:n||"100%",height:r||2,borderRadius:24,outline:"none",background:`linear-gradient(to right, ${s} 0%, ${s} ${t}%, ${a} ${t}%, ${a} 100%)`,"&::-webkit-slider-thumb":jo(e,o||i),"&::-moz-range-thumb":jo(e,o||i),"&:focus-visible":{outline:o||i?"none":`${e.accent} solid 1px`}}}),an),To=t.forwardRef(((n,r)=>{var{src:o,title:i,width:s,infoPosition:c,centerAlignContent:u,small:l,collapsed:f,hideSliderOnStop:p,hideTimeOnStop:d,fontSizeTitle:h,fontSizeTime:g,onPlay:y,onPause:v,onStop:m}=n,b=a(n,["src","title","width","infoPosition","centerAlignContent","small","collapsed","hideSliderOnStop","hideTimeOnStop","fontSizeTitle","fontSizeTime","onPlay","onPause","onStop"]);const[w,x]=t.useState(!1),[_,C]=t.useState(!0),[O,S]=t.useState(0),[k,E]=t.useState(0),[j,A]=t.useState(""),[T,P]=t.useState(""),M=t.useRef(null),D=()=>{const{current:e}=M;e&&e.play().catch((()=>{throw Error("Video failed to play")}))},R=()=>{const{current:e}=M;e&&e.pause()},N=()=>{const{current:e}=M;e&&e.load()};t.useImperativeHandle(r,(()=>({play:D,pause:R,stop:N})),[M,w]);const I=e=>{x(!1),C(!0),m&&m(e)};t.useEffect((()=>{(()=>{const{current:e}=M;!!e&&e.paused})()}),[w]);const L=e=>{const t=(e/100).toFixed(2),[n,r]=t.split(".");return`${n}:${r}`},B=_&&p,F=_&&d;return e.jsxs(Po,Object.assign({width:s},b,{children:[e.jsx(xo,{outline:!0,small:l,icon:w?"pause":"play",onClick:()=>{w?R():D()},marginRight:8}),!f&&e.jsxs(Mo,Object.assign({alignDataTop:"top"===c},{children:[!B&&e.jsx(Eo,{value:O,max:k,step:.1,onChange:e=>{(null==M?void 0:M.current)&&(M.current.currentTime=e)}}),e.jsxs(Do,Object.assign({alignTop:"top"===c,noSlider:B,relative:u||B},{children:[i?e.jsx(Ro,Object.assign({fontSize:h},{children:i})):e.jsx("div",{}),!F&&e.jsxs(Ro,Object.assign({secondary:!0,fontSize:g},{children:[j&&!_?`${j} / `:"",T]}))]}))]})),e.jsxs("audio",Object.assign({ref:M,onPlay:e=>{x(!0),C(!1),y&&y(e)},onPause:e=>{x(!1),v&&v(e)},onEmptied:I,onEnded:I,onTimeUpdate:()=>{const{current:e}=M;if(e){const{currentTime:t}=e,n=L(t);S(t),A(n)}},onDurationChange:()=>{const{current:e}=M;if(e){const{duration:t}=e,n=L(t);E(t),P(n)}}},{children:[e.jsx("track",{kind:"captions"}),e.jsx("source",{src:o})]}))]}))})),Po=X.div((({width:e=250})=>({display:"flex",alignItems:"center",width:e})),an),Mo=X.div((({alignDataTop:e})=>({display:"flex",flexDirection:e?"column-reverse":"column",position:"relative",width:"100%"}))),Do=X.div((({alignTop:e,noSlider:t,relative:n})=>({position:n?"relative":"absolute",top:e||t?void 0:6,bottom:e&&!t?6:void 0,display:"flex",justifyContent:"space-between",alignItems:"flex-end",width:"100%"}))),Ro=X.div((({theme:e,secondary:t,fontSize:n})=>({color:t?e.scale6:e.scale10,fontSize:n||10})));var No={};
|
|
25
25
|
/*!
|
|
26
26
|
Copyright (c) 2018 Jed Watson.
|
|
27
27
|
Licensed under the MIT License (MIT), see
|
|
@@ -199,7 +199,7 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
199
199
|
38:14,
|
|
200
200
|
/*! Conditions:: INITIAL */
|
|
201
201
|
/*! Rule:: $ */
|
|
202
|
-
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!==zx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Hx);var Vx={},Ux={},Kx={get exports(){return Ux},set exports(e){Ux=e}},$x={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}},Wx=function(e,t,n,r){if(!$x.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!$x[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=$x[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}}(Wx);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}(Kx,Ux),Object.defineProperty(Vx,"__esModule",{value:!0}),Vx.flip=Xx;var qx=function(e){return e&&e.__esModule?e:{default:e}}(Ux);function Gx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,qx.default)(e.left,e.right,t),r=Gx(n.left,t),o=Gx(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)&&(Zx(r.right,o.right)?n=(0,qx.default)(r.left,o.left,t):Zx(r.right,o.left)&&(n=(0,qx.default)(r.left,o.right,t)),r=Gx(n.left,t),o=Gx(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 Jx(o);r.type===o.type&&Yx(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Yx(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Gx({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Xx(o.operator):o.operator,Gx(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Gx({type:"MathExpression",operator:"-"===i?Xx(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Gx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Yx(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Gx({type:"MathExpression",operator:i,left:r.left,right:o},t),Gx(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Gx({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Gx({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Gx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Yx(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 Yx(e.left.left.type)&&Yx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Gx(e.left,t)):e;if(Yx(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(Yx(e.left.left.type)&&Yx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Yx(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(Yx(e.right.left.type)&&Yx(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&&Yx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Gx(e.value,t):e}function Zx(e,t){return e.type===t.type&&e.value===t.value}function Yx(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 Xx(e){return"+"===e?"-":"+"}function Jx(e){return Yx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Jx(e.left),e.right=Jx(e.right)),e}Vx.default=Gx;var Qx={};!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=Vx,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}({get exports(){return Qx},set exports(e){Qx=e}},Qx),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Fx),r=Hx,o=a(Vx),i=a(Qx);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}(Cx,_x);var e_=c(_x);function t_(e){return t_="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},t_(e)}function n_(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 r_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==t_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==t_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===t_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i_(e){return function(e){if(Array.isArray(e))return a_(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 a_(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 a_(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 a_(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 s_={widthCache:{},cacheCount:0},c_=2e3,u_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],f_="recharts_measurement_span";var p_=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(i_(e),["-",t.toLowerCase()]):[].concat(i_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],l_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},d_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||ww.isSsr)return{width:0,height:0};var n="".concat(e),r=p_(t),o="".concat(n,"-").concat(r);if(s_.widthCache[o])return s_.widthCache[o];try{var i=document.getElementById(f_);i||((i=document.createElement("span")).setAttribute("id",f_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=r_(r_({},u_),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 s_.widthCache[o]=c,++s_.cacheCount>c_&&(s_.cacheCount=0,s_.widthCache={}),c}catch(e){return{width:0,height:0}}},h_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function g_(e){return g_="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},g_(e)}function y_(){return y_=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},y_.apply(this,arguments)}function v_(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 m_(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,j_(r.key),r)}}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b_(e,t)}function w_(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=__(e);if(t){var o=__(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===g_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x_(e)}(this,n)}}function x_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function __(e){return __=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},__(e)}function C_(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 O_(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 O_(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 O_(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 S_(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 k_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S_(Object(n),!0).forEach((function(t){E_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E_(e,t,n){return(t=j_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j_(e){var t=function(e,t){if("object"!==g_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g_(t)?t:String(t)}var A_=/[ \f\n\r\t\v\u2028\u2029]+/,T_=function(e){try{var t=[];return Cs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(A_)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:d_(t,e.style).width}})),spaceWidth:e.breakAll?0:d_(" ",e.style).width}}catch(e){return null}},P_=function(e){return[{words:Cs(e)?[]:e.toString().split(A_)}]},M_=function(e,t){if((e.width||e.scaleToFit)&&!ww.isSsr&&t){var n=T_(e);return n?function(e,t,n,r,o){var i=Ms(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=T_(k_(k_({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=C_(l(h-1),2),y=g[0],v=g[1],m=C_(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):P_(e.children)}return P_(e.children)},D_=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&&b_(e,t)}(a,t.Component);var n,r,o,i=w_(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 E_(x_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=v_(e,h_),h=this.state.wordsByLines;if(!Ds(d.x)||!Ds(d.y))return null;var g,y=d.x+(Ms(n)?n:0),v=d.y+(Ms(r)?r:0);switch(i){case"start":g=e_("calc(".concat(l,")"));break;case"middle":g=e_("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=e_("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((Ms(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",y_({},cc(d,!0),{x:y,y:v,className:Io("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:M_(e,n)}}return null}}],r&&m_(n.prototype,r),o&&m_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();E_(D_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var R_=wf;var N_=function(e,t){return R_(e,t)},I_=bi;var L_=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&&!I_(a):n(a,s)))var s=a,c=i}return c};var B_=function(e,t){return e>t},F_=L_,z_=B_,H_=rp;var V_=function(e){return e&&e.length?F_(e,H_,z_):void 0};var U_=function(e,t){return e<t},K_=L_,$_=U_,W_=rp;var q_=function(e){return e&&e.length?K_(e,W_,$_):void 0},G_=es,Z_=yp,Y_=bb,X_=ui;var J_=lb,Q_=function(e,t){return(X_(e)?G_:Y_)(e,Z_(t))};var eC=function(e,t){return J_(Q_(e,t),1)};function tC(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nC(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rC(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=tC,n=(t,n)=>tC(e(t),n),r=(t,n)=>e(t)-n):(t=e===tC||e===nC?e:oC,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 oC(){return 0}function iC(e){return null===e?NaN:+e}const aC=rC(tC).right;rC(iC).center;class sC extends Map{constructor(e,t=uC){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(cC(this,e))}has(e){return super.has(cC(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 cC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function uC(e){return null!==e&&"object"==typeof e?e.valueOf():e}function lC(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fC=Math.sqrt(50),pC=Math.sqrt(10),dC=Math.sqrt(2);function hC(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>=fC?10:i>=pC?5:i>=dC?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?hC(e,t,2*n):[s,c,u]}function gC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?hC(t,e,n):hC(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 yC(e,t,n){return hC(e=+e,t=+t,n=+n)[2]}function vC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?yC(t,e,n):yC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mC(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 bC(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 wC(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?lC:function(e=tC){if(e===tC)return lC;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);wC(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(xC(e,n,t),o(e[r],i)>0&&xC(e,n,r);a<s;){for(xC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?xC(e,n,s):(++s,xC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function xC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _C(e,t,n=iC){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 CC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function OC(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 SC=Symbol("implicit");function kC(){var e=new sC,t=[],n=[],r=SC;function o(o){let i=e.get(o);if(void 0===i){if(r!==SC)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 sC;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 kC(t,n).unknown(r)},CC.apply(o,arguments),o}function EC(){var e,t,n=kC().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,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),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 p+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 EC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},CC.apply(f(),arguments)}function jC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jC(t())},e}function AC(){return jC(EC.apply(null,arguments).paddingInner(1))}function TC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function PC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function MC(){}var DC=.7,RC=1/DC,NC="\\s*([+-]?\\d+)\\s*",IC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BC=/^#([0-9a-f]{3,8})$/,FC=new RegExp(`^rgb\\(${NC},${NC},${NC}\\)$`),zC=new RegExp(`^rgb\\(${LC},${LC},${LC}\\)$`),HC=new RegExp(`^rgba\\(${NC},${NC},${NC},${IC}\\)$`),VC=new RegExp(`^rgba\\(${LC},${LC},${LC},${IC}\\)$`),UC=new RegExp(`^hsl\\(${IC},${LC},${LC}\\)$`),KC=new RegExp(`^hsla\\(${IC},${LC},${LC},${IC}\\)$`),$C={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 WC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function GC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ZC(t):3===n?new QC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?YC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?YC(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=FC.exec(e))?new QC(t[1],t[2],t[3],1):(t=zC.exec(e))?new QC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HC.exec(e))?YC(t[1],t[2],t[3],t[4]):(t=VC.exec(e))?YC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UC.exec(e))?iO(t[1],t[2]/100,t[3]/100,1):(t=KC.exec(e))?iO(t[1],t[2]/100,t[3]/100,t[4]):$C.hasOwnProperty(e)?ZC($C[e]):"transparent"===e?new QC(NaN,NaN,NaN,0):null}function ZC(e){return new QC(e>>16&255,e>>8&255,255&e,1)}function YC(e,t,n,r){return r<=0&&(e=t=n=NaN),new QC(e,t,n,r)}function XC(e){return e instanceof MC||(e=GC(e)),e?new QC((e=e.rgb()).r,e.g,e.b,e.opacity):new QC}function JC(e,t,n,r){return 1===arguments.length?XC(e):new QC(e,t,n,null==r?1:r)}function QC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function eO(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}`}function tO(){const e=nO(this.opacity);return`${1===e?"rgb(":"rgba("}${rO(this.r)}, ${rO(this.g)}, ${rO(this.b)}${1===e?")":`, ${e})`}`}function nO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oO(e){return((e=rO(e))<16?"0":"")+e.toString(16)}function iO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sO(e,t,n,r)}function aO(e){if(e instanceof sO)return new sO(e.h,e.s,e.l,e.opacity);if(e instanceof MC||(e=GC(e)),!e)return new sO;if(e instanceof sO)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 sO(a,s,c,e.opacity)}function sO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cO(e){return(e=(e||0)%360)<0?e+360:e}function uO(e){return Math.max(0,Math.min(1,e||0))}function lO(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}TC(MC,GC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WC,formatHex:WC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return aO(this).formatHsl()},formatRgb:qC,toString:qC}),TC(QC,JC,PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new QC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new QC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new QC(rO(this.r),rO(this.g),rO(this.b),nO(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:eO,formatHex:eO,formatHex8:function(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}${oO(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tO,toString:tO})),TC(sO,(function(e,t,n,r){return 1===arguments.length?aO(e):new sO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new sO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new sO(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 QC(lO(e>=240?e-240:e+120,o,r),lO(e,o,r),lO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sO(cO(this.h),uO(this.s),uO(this.l),nO(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=nO(this.opacity);return`${1===e?"hsl(":"hsla("}${cO(this.h)}, ${100*uO(this.s)}%, ${100*uO(this.l)}%${1===e?")":`, ${e})`}`}}));const fO=Math.PI/180,pO=180/Math.PI,dO=.96422,hO=1,gO=.82521,yO=4/29,vO=6/29,mO=3*vO*vO,bO=vO*vO*vO;function wO(e){if(e instanceof xO)return new xO(e.l,e.a,e.b,e.opacity);if(e instanceof kO)return EO(e);e instanceof QC||(e=XC(e));var t,n,r=SO(e.r),o=SO(e.g),i=SO(e.b),a=_O((.2225045*r+.7168786*o+.0606169*i)/hO);return r===o&&o===i?t=n=a:(t=_O((.4360747*r+.3850649*o+.1430804*i)/dO),n=_O((.0139322*r+.0971045*o+.7141733*i)/gO)),new xO(116*a-16,500*(t-a),200*(a-n),e.opacity)}function xO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _O(e){return e>bO?Math.pow(e,1/3):e/mO+yO}function CO(e){return e>vO?e*e*e:mO*(e-yO)}function OO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function SO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kO(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function EO(e){if(isNaN(e.h))return new xO(e.l,0,0,e.opacity);var t=e.h*fO;return new xO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}TC(xO,(function(e,t,n,r){return 1===arguments.length?wO(e):new xO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return new xO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new xO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new QC(OO(3.1338561*(t=dO*CO(t))-1.6168667*(e=hO*CO(e))-.4906146*(n=gO*CO(n))),OO(-.9787684*t+1.9161415*e+.033454*n),OO(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),TC(kO,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kO)return new kO(e.h,e.c,e.l,e.opacity);if(e instanceof xO||(e=wO(e)),0===e.a&&0===e.b)return new kO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pO;return new kO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return new kO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return EO(this).rgb()}}));var jO=-.14861,AO=1.78277,TO=-.29227,PO=-.90649,MO=1.97294,DO=MO*PO,RO=MO*AO,NO=AO*TO-PO*jO;function IO(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof LO)return new LO(e.h,e.s,e.l,e.opacity);e instanceof QC||(e=XC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(NO*r+DO*t-RO*n)/(NO+DO-RO),i=r-o,a=(MO*(n-o)-TO*i)/PO,s=Math.sqrt(a*a+i*i)/(MO*o*(1-o)),c=s?Math.atan2(a,i)*pO-120:NaN;return new LO(c<0?c+360:c,s,o,e.opacity)}(e):new LO(e,t,n,null==r?1:r)}function LO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}TC(LO,IO,PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new LO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new LO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*fO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new QC(255*(t+n*(jO*r+AO*o)),255*(t+n*(TO*r+PO*o)),255*(t+n*(MO*r)),this.opacity)}}));var BO=e=>()=>e;function FO(e,t){return function(n){return e+n*t}}function zO(e){return 1==(e=+e)?HO: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):BO(isNaN(t)?n:t)}}function HO(e,t){var n=t-e;return n?FO(e,n):BO(isNaN(e)?t:e)}var VO=function e(t){var n=zO(t);function r(e,t){var r=n((e=JC(e)).r,(t=JC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HO(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 UO(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 KO(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]=XO(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 $O(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function WO(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function qO(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]=XO(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var GO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZO=new RegExp(GO.source,"g");function YO(e,t){var n,r,o,i=GO.lastIndex=ZO.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=GO.exec(e))&&(r=ZO.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:WO(n,r)})),i=ZO.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 XO(e,t){var n,r=typeof t;return null==t||"boolean"===r?BO(t):("number"===r?WO:"string"===r?(n=GC(t))?(t=n,VO):YO:t instanceof GC?VO:t instanceof Date?$O:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?UO:Array.isArray(t)?KO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qO:WO)(e,t)}function JO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var QO=1e-12;function eS(e){return((e=Math.exp(e))+1/e)/2}function tS(e){return function t(n){function r(t,r){var o=e((t=IO(t)).h,(r=IO(r)).h),i=HO(t.s,r.s),a=HO(t.l,r.l),s=HO(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function nS(e,t){void 0===t&&(t=e,e=XO);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 rS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<QO)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=eS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/eS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),tS((function(e,t){var n=t-e;return n?FO(e,n>180||n<-180?n-360*Math.round(n/360):n):BO(isNaN(e)?t:e)})),tS(HO);var oS=[0,1];function iS(e){return e}function aS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function sS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=aS(o,r),i=n(a,i)):(r=aS(r,o),i=n(i,a)),function(e){return i(r(e))}}function cS(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]=aS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=aC(e,t,1,r)-1;return i[n](o[n](t))}}function uS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lS(){var e,t,n,r,o,i,a=oS,s=oS,c=XO,u=iS;function l(){var e=Math.min(a.length,s.length);return u!==iS&&(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?cS:sS,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),WO)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,rS),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=JO,l()},f.clamp=function(e){return arguments.length?(u=!!e||iS,l()):u!==iS},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 fS(){return lS()(iS,iS)}function pS(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 dS(e){return(e=pS(Math.abs(e)))?e[1]:NaN}var hS,gS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yS(e){if(!(t=gS.exec(e)))throw new Error("invalid format: "+e);var t;return new vS({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 vS(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 mS(e,t){var n=pS(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")}yS.prototype=vS.prototype,vS.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 bS={"%":(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)=>mS(100*e,t),r:mS,s:function(e,t){var n=pS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(hS=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")+pS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wS(e){return e}var xS,_S,CS,OS=Array.prototype.map,SS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wS:(t=OS.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?wS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(OS.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=yS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):bS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=bS[m],_=/[defgprs%]/.test(m);function C(e){var o,i,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(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)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?SS[8+hS/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){C=(46===c?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=yS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(dS(t)/3))),o=Math.pow(10,-r),i=SS[8+r/3];return function(e){return n(o*e)+i}}}}function ES(e,t,n,r){var o,i=vC(e,t,n);switch((r=yS(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(dS(t)/3)))-dS(Math.abs(e)))}(i,a))||(r.precision=o),CS(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,dS(t)-dS(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,-dS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return _S(r)}function jS(e){var t=e.domain;return e.ticks=function(e){var n=t();return gC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ES(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=yC(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 AS(){var e=fS();return e.copy=function(){return uS(e,AS())},CC.apply(e,arguments),jS(e)}function TS(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 PS(e){return Math.log(e)}function MS(e){return Math.exp(e)}function DS(e){return-Math.log(-e)}function RS(e){return-Math.exp(-e)}function NS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function IS(e){return(t,n)=>-e(-t,n)}function LS(e){const t=e(PS,MS),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?NS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=IS(r),o=IS(o),e(DS,RS)):e(PS,MS),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),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++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<=p;++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<d&&(h=gC(a,s,d))}else h=gC(f,p,Math.min(p-f,d)).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=yS(n)).precision||(n.trim=!0),n=_S(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(TS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function BS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function FS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function zS(e){var t=1,n=e(BS(t),FS(t));return n.constant=function(n){return arguments.length?e(BS(t=+n),FS(t)):t},jS(n)}function HS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function VS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function US(e){return e<0?-e*e:e*e}function KS(e){var t=e(iS,iS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iS,iS):.5===n?e(VS,US):e(HS(n),HS(1/n)):n},jS(t)}function $S(){var e=KS(lS());return e.copy=function(){return uS(e,$S()).exponent(e.exponent())},CC.apply(e,arguments),e}function WS(e){return Math.sign(e)*e*e}xS=kS({thousands:",",grouping:[3],currency:["$",""]}),_S=xS.format,CS=xS.formatPrefix;const qS=new Date,GS=new Date;function ZS(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=>ZS((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)=>(qS.setTime(+t),GS.setTime(+r),e(qS),e(GS),Math.floor(n(qS,GS))),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 YS=ZS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?ZS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):YS:null),YS.range;const XS=1e3,JS=60*XS,QS=60*JS,ek=24*QS,tk=7*ek,nk=30*ek,rk=365*ek,ok=ZS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getUTCSeconds()));ok.range;const ik=ZS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XS)}),((e,t)=>{e.setTime(+e+t*JS)}),((e,t)=>(t-e)/JS),(e=>e.getMinutes()));ik.range;const ak=ZS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*JS)}),((e,t)=>(t-e)/JS),(e=>e.getUTCMinutes()));ak.range;const sk=ZS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XS-e.getMinutes()*JS)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getHours()));sk.range;const ck=ZS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getUTCHours()));ck.range;const uk=ZS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JS)/ek),(e=>e.getDate()-1));uk.range;const lk=ZS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ek),(e=>e.getUTCDate()-1));lk.range;const fk=ZS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ek),(e=>Math.floor(e/ek)));function pk(e){return ZS((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())*JS)/tk))}fk.range;const dk=pk(0),hk=pk(1),gk=pk(2),yk=pk(3),vk=pk(4),mk=pk(5),bk=pk(6);function wk(e){return ZS((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)/tk))}dk.range,hk.range,gk.range,yk.range,vk.range,mk.range,bk.range;const xk=wk(0),_k=wk(1),Ck=wk(2),Ok=wk(3),Sk=wk(4),kk=wk(5),Ek=wk(6);xk.range,_k.range,Ck.range,Ok.range,Sk.range,kk.range,Ek.range;const jk=ZS((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()));jk.range;const Ak=ZS((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()));Ak.range;const Tk=ZS((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()));Tk.every=e=>isFinite(e=Math.floor(e))&&e>0?ZS((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,Tk.range;const Pk=ZS((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 Mk(e,t,n,r,o,i){const a=[[ok,1,XS],[ok,5,5*XS],[ok,15,15*XS],[ok,30,30*XS],[i,1,JS],[i,5,5*JS],[i,15,15*JS],[i,30,30*JS],[o,1,QS],[o,3,3*QS],[o,6,6*QS],[o,12,12*QS],[r,1,ek],[r,2,2*ek],[n,1,tk],[t,1,nk],[t,3,3*nk],[e,1,rk]];function s(t,n,r){const o=Math.abs(n-t)/r,i=rC((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(vC(t/rk,n/rk,r));if(0===i)return YS.every(Math.max(vC(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]}Pk.every=e=>isFinite(e=Math.floor(e))&&e>0?ZS((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,Pk.range;const[Dk,Rk]=Mk(Pk,Ak,xk,fk,ck,ak),[Nk,Ik]=Mk(Tk,jk,dk,uk,sk,ik);function Lk(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 Bk(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 Fk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var zk,Hk,Vk,Uk,Kk={"-":"",_:" ",0:"0"},$k=/^\s*\d+/,Wk=/^%/,qk=/[\\^$*+?|[\]().{}]/g;function Gk(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 Zk(e){return e.replace(qk,"\\$&")}function Yk(e){return new RegExp("^(?:"+e.map(Zk).join("|")+")","i")}function Xk(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Jk(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=$k.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function oE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function iE(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 aE(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function sE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function uE(e,t,n){var r=$k.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dE(e,t,n){var r=$k.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function hE(e,t,n){var r=$k.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gE(e,t,n){var r=Wk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function yE(e,t,n){var r=$k.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vE(e,t,n){var r=$k.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mE(e,t){return Gk(e.getDate(),t,2)}function bE(e,t){return Gk(e.getHours(),t,2)}function wE(e,t){return Gk(e.getHours()%12||12,t,2)}function xE(e,t){return Gk(1+uk.count(Tk(e),e),t,3)}function _E(e,t){return Gk(e.getMilliseconds(),t,3)}function CE(e,t){return _E(e,t)+"000"}function OE(e,t){return Gk(e.getMonth()+1,t,2)}function SE(e,t){return Gk(e.getMinutes(),t,2)}function kE(e,t){return Gk(e.getSeconds(),t,2)}function EE(e){var t=e.getDay();return 0===t?7:t}function jE(e,t){return Gk(dk.count(Tk(e)-1,e),t,2)}function AE(e){var t=e.getDay();return t>=4||0===t?vk(e):vk.ceil(e)}function TE(e,t){return e=AE(e),Gk(vk.count(Tk(e),e)+(4===Tk(e).getDay()),t,2)}function PE(e){return e.getDay()}function ME(e,t){return Gk(hk.count(Tk(e)-1,e),t,2)}function DE(e,t){return Gk(e.getFullYear()%100,t,2)}function RE(e,t){return Gk((e=AE(e)).getFullYear()%100,t,2)}function NE(e,t){return Gk(e.getFullYear()%1e4,t,4)}function IE(e,t){var n=e.getDay();return Gk((e=n>=4||0===n?vk(e):vk.ceil(e)).getFullYear()%1e4,t,4)}function LE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Gk(t/60|0,"0",2)+Gk(t%60,"0",2)}function BE(e,t){return Gk(e.getUTCDate(),t,2)}function FE(e,t){return Gk(e.getUTCHours(),t,2)}function zE(e,t){return Gk(e.getUTCHours()%12||12,t,2)}function HE(e,t){return Gk(1+lk.count(Pk(e),e),t,3)}function VE(e,t){return Gk(e.getUTCMilliseconds(),t,3)}function UE(e,t){return VE(e,t)+"000"}function KE(e,t){return Gk(e.getUTCMonth()+1,t,2)}function $E(e,t){return Gk(e.getUTCMinutes(),t,2)}function WE(e,t){return Gk(e.getUTCSeconds(),t,2)}function qE(e){var t=e.getUTCDay();return 0===t?7:t}function GE(e,t){return Gk(xk.count(Pk(e)-1,e),t,2)}function ZE(e){var t=e.getUTCDay();return t>=4||0===t?Sk(e):Sk.ceil(e)}function YE(e,t){return e=ZE(e),Gk(Sk.count(Pk(e),e)+(4===Pk(e).getUTCDay()),t,2)}function XE(e){return e.getUTCDay()}function JE(e,t){return Gk(_k.count(Pk(e)-1,e),t,2)}function QE(e,t){return Gk(e.getUTCFullYear()%100,t,2)}function ej(e,t){return Gk((e=ZE(e)).getUTCFullYear()%100,t,2)}function tj(e,t){return Gk(e.getUTCFullYear()%1e4,t,4)}function nj(e,t){var n=e.getUTCDay();return Gk((e=n>=4||0===n?Sk(e):Sk.ceil(e)).getUTCFullYear()%1e4,t,4)}function rj(){return"+0000"}function oj(){return"%"}function ij(e){return+e}function aj(e){return Math.floor(+e/1e3)}!function(e){zk=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=Yk(o),l=Xk(o),f=Yk(i),p=Xk(i),d=Yk(a),h=Xk(a),g=Yk(s),y=Xk(s),v=Yk(c),m=Xk(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:mE,e:mE,f:CE,g:RE,G:IE,H:bE,I:wE,j:xE,L:_E,m:OE,M:SE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ij,s:aj,S:kE,u:EE,U:jE,V:TE,w:PE,W:ME,x:null,X:null,y:DE,Y:NE,Z:LE,"%":oj},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:BE,e:BE,f:UE,g:ej,G:nj,H:FE,I:zE,j:HE,L:VE,m:KE,M:$E,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ij,s:aj,S:WE,u:qE,U:GE,V:YE,w:XE,W:JE,x:null,X:null,y:QE,Y:tj,Z:rj,"%":oj},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=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 O(e,t,n,r)},d:cE,e:cE,f:hE,g:oE,G:rE,H:lE,I:lE,j:uE,L:dE,m:sE,M:fE,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:aE,Q:yE,s:vE,S:pE,u:Qk,U:eE,V:tE,w:Jk,W:nE,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:oE,Y:rE,Z:iE,"%":gE};function _(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=Kk[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 C(e,t){return function(n){var r,o,i=Fk(1900,void 0,1);if(O(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=Bk(Fk(i.y,0,1))).getUTCDay(),r=o>4||0===o?_k.ceil(r):_k(r),r=lk.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Lk(Fk(i.y,0,1))).getDay(),r=o>4||0===o?hk.ceil(r):hk(r),r=uk.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?Bk(Fk(i.y,0,1)).getUTCDay():Lk(Fk(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,Bk(i)):Lk(i)}}function O(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 Kk?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),Hk=zk.format,zk.parse,Vk=zk.utcFormat,Uk=zk.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 sj="%Y-%m-%dT%H:%M:%S.%LZ";function cj(e){return new Date(e)}function uj(e){return e instanceof Date?+e:+new Date(+e)}function lj(e,t,n,r,o,i,a,s,c,u){var l=fS(),f=l.invert,p=l.domain,d=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?d: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?p(Array.from(e,uj)):p().map(cj)},l.ticks=function(t){var n=p();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=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(TS(n,e)):l},l.copy=function(){return uS(l,lj(e,t,n,r,o,i,a,s,c,u))},l}function fj(){var e,t,n,r,o,i=0,a=1,s=iS,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(XO),u.rangeRound=l(JO),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 pj(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dj(){var e=KS(fj());return e.copy=function(){return pj(e,dj()).exponent(e.exponent())},OC.apply(e,arguments)}function hj(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=iS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?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=nS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.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,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(XO),d.rangeRound=h(JO),d.unknown=function(e){return arguments.length?(a=e,d):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,d}}function gj(){var e=KS(hj());return e.copy=function(){return pj(e,gj()).exponent(e.exponent())},OC.apply(e,arguments)}Date.prototype.toISOString||Vk(sj),+new Date("2000-01-01T00:00:00.000Z")||Uk(sj);var yj,vj=Object.freeze({__proto__:null,scaleBand:EC,scaleDiverging:function e(){var t=jS(hj()(iS));return t.copy=function(){return pj(t,e())},OC.apply(t,arguments)},scaleDivergingLog:function e(){var t=LS(hj()).domain([.1,1,10]);return t.copy=function(){return pj(t,e()).base(t.base())},OC.apply(t,arguments)},scaleDivergingPow:gj,scaleDivergingSqrt:function(){return gj.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=zS(hj());return t.copy=function(){return pj(t,e()).constant(t.constant())},OC.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,rS),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,rS):[0,1],jS(r)},scaleImplicit:SC,scaleLinear:AS,scaleLog:function e(){const t=LS(lS()).domain([1,10]);return t.copy=()=>uS(t,e()).base(t.base()),CC.apply(t,arguments),t},scaleOrdinal:kC,scalePoint:AC,scalePow:$S,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]=_C(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[aC(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(tC),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)},CC.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[aC(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)},CC.apply(jS(s),arguments)},scaleRadial:function e(){var t,n=fS(),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(WS(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,rS)).map(WS)),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)},CC.apply(i,arguments),jS(i)},scaleSequential:function e(){var t=jS(fj()(iS));return t.copy=function(){return pj(t,e())},OC.apply(t,arguments)},scaleSequentialLog:function e(){var t=LS(fj()).domain([1,10]);return t.copy=function(){return pj(t,e()).base(t.base())},OC.apply(t,arguments)},scaleSequentialPow:dj,scaleSequentialQuantile:function e(){var t=[],n=iS;function r(e){if(null!=e&&!isNaN(e=+e))return n((aC(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(tC),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 bC(e);if(t>=1)return mC(e);var r,o=(r-1)*t,i=Math.floor(o),a=mC(wC(e,i).subarray(0,i+1));return a+(bC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},OC.apply(r,arguments)},scaleSequentialSqrt:function(){return dj.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=zS(fj());return t.copy=function(){return pj(t,e()).constant(t.constant())},OC.apply(t,arguments)},scaleSqrt:function(){return $S.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=zS(lS());return t.copy=function(){return uS(t,e()).constant(t.constant())},CC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[aC(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)},CC.apply(i,arguments)},scaleTime:function(){return CC.apply(lj(Nk,Ik,Tk,jk,dk,uk,sk,ik,ok,Hk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return CC.apply(lj(Dk,Rk,Pk,Ak,xk,lk,ck,ak,ok,Vk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ES}),mj={},bj={},wj=1e9,xj=!0,_j="[DecimalError] ",Cj=_j+"Invalid argument: ",Oj=_j+"Exponent out of range: ",Sj=Math.floor,kj=Math.pow,Ej=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jj=1e7,Aj=7,Tj=9007199254740991,Pj=Sj(Tj/Aj),Mj={};function Dj(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)),xj?Uj(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/Aj))>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)/jj|0,c[i]%=jj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,xj?Uj(t,f):t}function Rj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Cj+e)}function Nj(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=Aj-r.length)&&(i+=zj(n)),i+=r;a=e[t],(n=Aj-(r=a+"").length)&&(i+=zj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Mj.absoluteValue=Mj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Mj.comparedTo=Mj.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},Mj.decimalPlaces=Mj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Aj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Mj.dividedBy=Mj.div=function(e){return Ij(this,new this.constructor(e))},Mj.dividedToIntegerBy=Mj.idiv=function(e){var t=this.constructor;return Uj(Ij(this,new t(e),0,1),t.precision)},Mj.equals=Mj.eq=function(e){return!this.cmp(e)},Mj.exponent=function(){return Bj(this)},Mj.greaterThan=Mj.gt=function(e){return this.cmp(e)>0},Mj.greaterThanOrEqualTo=Mj.gte=function(e){return this.cmp(e)>=0},Mj.isInteger=Mj.isint=function(){return this.e>this.d.length-2},Mj.isNegative=Mj.isneg=function(){return this.s<0},Mj.isPositive=Mj.ispos=function(){return this.s>0},Mj.isZero=function(){return 0===this.s},Mj.lessThan=Mj.lt=function(e){return this.cmp(e)<0},Mj.lessThanOrEqualTo=Mj.lte=function(e){return this.cmp(e)<1},Mj.logarithm=Mj.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(yj))throw Error(_j+"NaN");if(n.s<1)throw Error(_j+(n.s?"NaN":"-Infinity"));return n.eq(yj)?new r(0):(xj=!1,t=Ij(Hj(n,i),Hj(e,i),i),xj=!0,Uj(t,o))},Mj.minus=Mj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Kj(t,e):Dj(t,(e.s=-e.s,e))},Mj.modulo=Mj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(_j+"NaN");return n.s?(xj=!1,t=Ij(n,e,0,1).times(e),xj=!0,n.minus(t)):Uj(new r(n),o)},Mj.naturalExponential=Mj.exp=function(){return Lj(this)},Mj.naturalLogarithm=Mj.ln=function(){return Hj(this)},Mj.negated=Mj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Mj.plus=Mj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dj(t,e):Kj(t,(e.s=-e.s,e))},Mj.precision=Mj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Cj+e);if(t=Bj(o)+1,n=(r=o.d.length-1)*Aj+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},Mj.squareRoot=Mj.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(_j+"NaN")}for(e=Bj(s),xj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=Nj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Sj((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(Ij(s,i,a+2)).times(.5),Nj(i.d).slice(0,a)===(t=Nj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Uj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return xj=!0,Uj(r,n)},Mj.times=Mj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(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=p.length)<(u=d.length)&&(i=p,p=d,d=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]+d[r]*p[o-r-1]+t,i[o--]=s%jj|0,t=s/jj|0;i[o]=(i[o]+t)%jj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,xj?Uj(e,f.precision):e},Mj.toDecimalPlaces=Mj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Rj(e,0,wj),void 0===t?t=r.rounding:Rj(t,0,8),Uj(n,e+Bj(n)+1,t))},Mj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=$j(r,!0):(Rj(e,0,wj),void 0===t?t=o.rounding:Rj(t,0,8),n=$j(r=Uj(new o(r),e+1,t),!0,e+1)),n},Mj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?$j(o):(Rj(e,0,wj),void 0===t?t=i.rounding:Rj(t,0,8),n=$j((r=Uj(new i(o),e+Bj(o)+1,t)).abs(),!1,e+Bj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Mj.toInteger=Mj.toint=function(){var e=this,t=e.constructor;return Uj(new t(e),Bj(e)+1,t.rounding)},Mj.toNumber=function(){return+this},Mj.toPower=Mj.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(yj);if(!(s=new c(s)).s){if(e.s<1)throw Error(_j+"Infinity");return s}if(s.eq(yj))return s;if(r=c.precision,e.eq(yj))return Uj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=Tj){for(o=new c(yj),t=Math.ceil(r/Aj+4),xj=!1;n%2&&Wj((o=o.times(s)).d,t),0!==(n=Sj(n/2));)Wj((s=s.times(s)).d,t);return xj=!0,e.s<0?new c(yj).div(o):Uj(o,r)}}else if(i<0)throw Error(_j+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,xj=!1,o=e.times(Hj(s,r+12)),xj=!0,(o=Lj(o)).s=i,o},Mj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=$j(o,(n=Bj(o))<=i.toExpNeg||n>=i.toExpPos):(Rj(e,1,wj),void 0===t?t=i.rounding:Rj(t,0,8),r=$j(o=Uj(new i(o),e,t),e<=(n=Bj(o))||n<=i.toExpNeg,e)),r},Mj.toSignificantDigits=Mj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Rj(e,1,wj),void 0===t?t=n.rounding:Rj(t,0,8)),Uj(new n(this),e,t)},Mj.toString=Mj.valueOf=Mj.val=Mj.toJSON=Mj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Bj(e),n=e.constructor;return $j(e,t<=n.toExpNeg||t>=n.toExpPos)};var Ij=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%jj|0,r=n/jj|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*jj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(_j+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new S(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(Bj(r)-Bj(o))+1:i)<0)return new S(0);if(m=m/Aj+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*jj+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=jj/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=j.slice()).unshift(0),_=j[0],j[1]>=jj/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*jj+(g[1]||0)),(l=v/_|0)>1?(l>=jj&&(l=jj-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?O: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(),d.e=c,Uj(d,a?i+Bj(d)+1:i)}}();function Lj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(Bj(e)>16)throw Error(Oj+Bj(e));if(!e.s)return new u(yj);for(null==t?(xj=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(kj(2,c))/Math.LN10*2+5|0,n=r=o=new u(yj),u.precision=a;;){if(r=Uj(r.times(e),a),n=n.times(++s),Nj((i=o.plus(Ij(r,n,a))).d).slice(0,a)===Nj(o.d).slice(0,a)){for(;c--;)o=Uj(o.times(o),a);return u.precision=l,null==t?(xj=!0,Uj(o,l)):o}o=i}}function Bj(e){for(var t=e.e*Aj,n=e.d[0];n>=10;n/=10)t++;return t}function Fj(e,t,n){if(t>e.LN10.sd())throw xj=!0,n&&(e.precision=n),Error(_j+"LN10 precision limit exceeded");return Uj(new e(e.LN10),t)}function zj(e){for(var t="";e--;)t+="0";return t}function Hj(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(_j+(p.s?"NaN":"-Infinity"));if(p.eq(yj))return new h(0);if(null==t?(xj=!1,u=g):u=t,p.eq(10))return null==t&&(xj=!0),Fj(h,u);if(u+=10,h.precision=u,r=(n=Nj(d)).charAt(0),i=Bj(p),!(Math.abs(i)<15e14))return c=Fj(h,u+2,g).times(i+""),p=Hj(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(xj=!0,Uj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Nj((p=p.times(e)).d)).charAt(0),f++;for(i=Bj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=Ij(p.minus(yj),p.plus(yj),u),l=Uj(p.times(p),u),o=3;;){if(a=Uj(a.times(l),u),Nj((c=s.plus(Ij(a,new h(o),u))).d).slice(0,u)===Nj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(Fj(h,u+2,g).times(i+""))),s=Ij(s,new h(f),u),h.precision=g,null==t?(xj=!0,Uj(s,g)):s;s=c,o+=2}}function Vj(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=Sj(n/Aj),e.d=[],r=(n+1)%Aj,n<0&&(r+=Aj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Aj;r<o;)e.d.push(+t.slice(r,r+=Aj));t=t.slice(r),r=Aj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),xj&&(e.e>Pj||e.e<-Pj))throw Error(Oj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Uj(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+=Aj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/Aj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=Aj)-Aj+a}if(void 0!==n&&(s=u/(i=kj(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/kj(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=Bj(e),f.length=1,t=t-i-1,f[0]=kj(10,(Aj-t%Aj)%Aj),e.e=Sj(-t/Aj)||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=kj(10,Aj-r),f[l]=o>0?(u/kj(10,a-o)%kj(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==jj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=jj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(xj&&(e.e>Pj||e.e<-Pj))throw Error(Oj+Bj(e));return e}function Kj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),xj?Uj(t,d):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(d/Aj),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]=jj-1;--c[i],c[o]+=jj}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,xj?Uj(t,d):t):new p(0)}function $j(e,t,n){var r,o=Bj(e),i=Nj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+zj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+zj(-o-1)+i,n&&(r=n-a)>0&&(i+=zj(r))):o>=a?(i+=zj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+zj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=zj(r))),e.s<0?"-"+i:i}function Wj(e,t){if(e.length>t)return e.length=t,!0}function qj(e){if(!e||"object"!=typeof e)throw Error(_j+"Object expected");var t,n,r,o=["precision",1,wj,"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(!(Sj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Cj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Cj+n+": "+r);this[n]=new this(r)}return this}var Gj=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(Cj+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])):Vj(t,e.toString())}if("string"!=typeof e)throw Error(Cj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Ej.test(e))throw Error(Cj+e);Vj(t,e)}if(i.prototype=Mj,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=qj,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"});yj=new Gj(1);var Zj=Gj,Yj=u(Object.freeze({__proto__:null,get Decimal(){return Gj},default:Zj})),Xj={};function Jj(e){return function(e){if(Array.isArray(e))return Qj(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 Qj(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 Qj(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 Qj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Xj,"__esModule",{value:!0}),Xj.memoize=Xj.reverse=Xj.compose=Xj.map=Xj.range=Xj.curry=Xj.PLACE_HOLDER=void 0;var eA=function(e){return e},tA={"@@functional/placeholder":!0};Xj.PLACE_HOLDER=tA;var nA=function(e){return e===tA},rA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&nA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},oA=function(e){return function e(t,n){return 1===t?n:rA((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!==tA})).length;return a>=t?n.apply(void 0,o):e(t-a,rA((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 nA(e)?t.shift():e}));return n.apply(void 0,Jj(i).concat(t))})))}))}(e.length,e)};Xj.curry=oA;Xj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var iA=oA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Xj.map=iA;Xj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return eA;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))}};Xj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Xj.memoize=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 aA={};Object.defineProperty(aA,"__esModule",{value:!0}),aA.default=void 0;var sA=function(e){return e&&e.__esModule?e:{default:e}}(Yj),cA=Xj;var uA=(0,cA.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),lA=(0,cA.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),fA=(0,cA.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),pA={rangeStep:function(e,t,n){for(var r=new sA.default(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 sA.default(e).abs().log(10).toNumber())+1},interpolateNumber:uA,uninterpolateNumber:lA,uninterpolateTruncation:fA};aA.default=pA,Object.defineProperty(bj,"__esModule",{value:!0}),bj.getTickValuesFixedDomain=bj.getTickValues=bj.getNiceTickValues=void 0;var dA=yA(Yj),hA=Xj,gA=yA(aA);function yA(e){return e&&e.__esModule?e:{default:e}}function vA(e){return function(e){if(Array.isArray(e))return wA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||bA(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 mA(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)||bA(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 bA(e,t){if(e){if("string"==typeof e)return wA(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)?wA(e,t):void 0}}function wA(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 xA(e){var t=mA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function _A(e,t,n){if(e.lte(0))return new dA.default(0);var r=gA.default.getDigitCount(e.toNumber()),o=new dA.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new dA.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new dA.default(Math.ceil(s))}function CA(e,t,n){var r=1,o=new dA.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new dA.default(10).pow(gA.default.getDigitCount(e)-1),o=new dA.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new dA.default(Math.floor(e)))}else 0===e?o=new dA.default(Math.floor((t-1)/2)):n||(o=new dA.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,hA.compose)((0,hA.map)((function(e){return o.add(new dA.default(e-a).mul(r)).toNumber()})),hA.range);return s(0,t)}function OA(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 dA.default(0),tickMin:new dA.default(0),tickMax:new dA.default(0)};var i,a=_A(new dA.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new dA.default(0):(i=new dA.default(e).add(t).div(2)).sub(new dA.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new dA.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?OA(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 dA.default(s).mul(a)),tickMax:i.add(new dA.default(c).mul(a))})}var SA=(0,hA.memoize)((function(e){var t=mA(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=mA(xA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(vA((0,hA.range)(0,o-1).map((function(){return 1/0})))):[].concat(vA((0,hA.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,hA.reverse)(l):l}if(c===u)return CA(c,o,i);var f=OA(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=gA.default.rangeStep(d,h.add(new dA.default(.1).mul(p)),p);return n>r?(0,hA.reverse)(g):g}));bj.getNiceTickValues=SA;var kA=(0,hA.memoize)((function(e){var t=mA(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=mA(xA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return CA(c,o,i);var l=_A(new dA.default(u).sub(c).div(a-1),i,0),f=(0,hA.compose)((0,hA.map)((function(e){return new dA.default(c).add(new dA.default(e).mul(l)).toNumber()})),hA.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,hA.reverse)(p):p}));bj.getTickValues=kA;var EA=(0,hA.memoize)((function(e,t){var n=mA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=mA(xA([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=_A(new dA.default(c).sub(s).div(u-1),i,0),f=[].concat(vA(gA.default.rangeStep(new dA.default(s),new dA.default(c).sub(new dA.default(.99).mul(l)),l)),[c]);return r>o?(0,hA.reverse)(f):f}));bj.getTickValuesFixedDomain=EA,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=bj}(mj);var jA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function AA(){return AA=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},AA.apply(this,arguments)}function TA(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 PA(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 PA(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 PA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MA(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 DA(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=MA(e,jA),f=cc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=TA(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),P=k(h+v);m.push({x1:j,y1:P,x2:A,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(wc,AA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",AA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wc,{className:"recharts-errorBars"},p)}function RA(e){return RA="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},RA(e)}function NA(e){return function(e){if(Array.isArray(e))return IA(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 IA(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 IA(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 IA(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 LA(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 BA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LA(Object(n),!0).forEach((function(t){FA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zA(e,t,n){return Cs(e)||Cs(t)?n:Ds(t)?_s(e,t,n):ci(t)?t(e):n}function HA(e,t,n,r){var o=eC(e,(function(e){return zA(e,t)}));if("number"===n){var i=o.filter((function(e){return Ms(e)||parseFloat(e)}));return i.length?[q_(i),V_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Cs(e)})):o).map((function(e){return Ds(e)||e instanceof Date?e:""}))}DA.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},DA.displayName="ErrorBar";var VA=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},UA=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=rc(n,lg);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:VA(t),value:o||r,payload:t.props}})),BA(BA(BA({},a.props),lg.getWithHeight(a,o)),{},{payload:t,item:a})):null},KA=function(e,t,n,r,o){var i=nc(t.props.children,DA).filter((function(e){return function(e,t,n){return!!Cs(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=zA(t,n,0),o=ui(r)?[q_(r),V_(r)]:[r,r],i=a.reduce((function(e,n){var r=zA(t,n,0),i=o[0]-Math.abs(ui(r)?r[0]:r),a=o[1]+Math.abs(ui(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},$A=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&KA(e,t,i,r)||HA(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}),[])},WA=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},qA=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},GA=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*Ts(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!As(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}}))},ZA=function(e,t,n){var r;return ci(n)?r=n:ci(t)&&(r=t),ci(e)||r?function(t,n,o,i){ci(e)&&e(t,n,o,i),ci(r)&&r(t,n,o,i)}:null},YA=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:EC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:AS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:AC(),realScaleType:"point"}:"category"===o?{scale:EC(),realScaleType:"band"}:{scale:AS(),realScaleType:"linear"};if(gi(r)){var s="scale".concat(hd(r));return{scale:(vj[s]||AC)(),realScaleType:vj[s]?s:"point"}}return ci(r)?{scale:r}:{scale:AC(),realScaleType:"point"}},XA=1e-4,JA=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])-XA,i=Math.max(r[0],r[1])+XA,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},QA=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},eT=function(e,t){if(!t||2!==t.length||!Ms(t[0])||!Ms(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(!Ms(e[0])||e[0]<n)&&(o[0]=n),(!Ms(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},tT={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=As(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}Oh(e,t)}},none:Oh,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}Oh(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,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Oh(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=As(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)}}},nT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=gd([]),t=Sh,n=Oh,r=kh;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Eh),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=Ad(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:gd(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:gd(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Sh:"function"==typeof e?e:gd(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Oh:e,o):n},o}().keys(r).value((function(e,t){return+zA(e,t,0)})).order(Sh).offset(tT[n]);return o(e)},rT=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=mj.getNiceTickValues(c,o,a);return e.domain([q_(u),V_(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:mj.getTickValuesFixedDomain(l,o,a)}}return null},oT=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&&!Cs(o[t.dataKey])){var s=Fs(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=zA(o,Cs(a)?t.dataKey:a);return Cs(c)?null:t.scale(c)},iT=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=zA(i,t.dataKey,t.domain[a]);return Cs(s)?null:t.scale(s)-o/2+r},aT=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]},sT=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[q_(t.concat([e[0]]).filter(Ms)),V_(t.concat([e[1]]).filter(Ms))]}),[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}))},cT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lT=function(e,t,n){if(ci(e))return e(t,n);if(!ui(e))return t;var r=[];if(Ms(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cT.test(e[0])){var o=+cT.exec(e[0])[1];r[0]=t[0]-o}else ci(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ms(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(uT.test(e[1])){var i=+uT.exec(e[1])[1];r[1]=t[1]+i}else ci(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},fT=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=aw(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},pT=function(e,t,n){return e&&e.length?N_(e,_s(n,"type.defaultProps.domain"))?t:e:t},dT=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 BA(BA({},cc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:VA(e),value:zA(t,r),type:s,payload:t,chartType:c})};function hT(e){return hT="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},hT(e)}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gT(Object(n),!0).forEach((function(t){vT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,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 bT(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 bT(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 bT(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 wT=Math.PI/180,xT=function(e){return 180*e/Math.PI},_T=function(e,t,n,r){return{x:e+Math.cos(-wT*r)*n,y:t+Math.sin(-wT*r)*n}},CT=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},OT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Is(e.cx,i,i/2),l=Is(e.cy,a,a/2),f=CT(i,a,n),p=Is(e.innerRadius,f,0),d=Is(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(Cs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=mT(i=a.range,2);s=g[0],c=g[1]}var y=YA(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),JA(m);var b=rT(m,yT(yT({},a),{},{realScaleType:v})),w=yT(yT(yT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return yT(yT({},e),{},vT({},n,w))}),{})},ST=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:xT(c),angleInRadian:c}},kT=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)},ET=function(e,t){var n=e.x,r=e.y,o=ST({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,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?yT(yT({},t),{},{radius:i,angle:kT(d,t)}):null};function jT(e){return jT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jT(e)}function AT(e){return function(e){if(Array.isArray(e))return TT(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 TT(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 TT(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 TT(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 PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PT(Object(n),!0).forEach((function(t){DT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RT(){return RT=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},RT.apply(this,arguments)}var NT=function(e){var t=e.value,n=e.formatter,r=Cs(e.children)?t:e.children;return ci(n)?n(r):r},IT=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return Ts(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=_T(f,p,m,o),_=_T(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),O=Cs(e.id)?Ns("recharts-radial-line-"):e.id;return t.createElement("text",RT({},r,{dominantBaseline:"central",className:Io("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:O,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(O)},n))},LT=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=_T(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 p=_T(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},BT=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,p=l>0?"end":"start",d=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 MT(MT({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return MT(MT({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),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 MT(MT({},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 MT(MT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?MT({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?MT({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?MT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?MT({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?MT({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?MT({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?MT({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?MT({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Lo(o)&&(Ms(o.x)||Ps(o.x))&&(Ms(o.y)||Ps(o.y))?MT({x:a+Is(o.x,c),y:s+Is(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):MT({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},FT=function(e){return"cx"in e&&Ms(e.cx)};function zT(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||Cs(i)&&Cs(a)&&!t.isValidElement(s)&&!ci(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(ci(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=NT(e);var f=FT(r),p=cc(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return IT(e,n,p);var d=f?LT(e):BT(e);return t.createElement(D_,RT({className:Io("recharts-label",u)},p,d,{breakAll:l}),n)}zT.displayName="Label",zT.defaultProps={offset:5};var HT=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,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Ms(h)&&Ms(g)){if(Ms(l)&&Ms(f))return{x:l,y:f,width:h,height:g};if(Ms(p)&&Ms(d))return{x:p,y:d,width:h,height:g}}return Ms(l)&&Ms(f)?{x:l,y:f,width:0,height:0}:Ms(t)&&Ms(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:{}},VT=function(e,n){return e?!0===e?t.createElement(zT,{key:"label-implicit",viewBox:n}):Ds(e)?t.createElement(zT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===zT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(zT,{key:"label-implicit",content:e,viewBox:n}):ci(e)?t.createElement(zT,{key:"label-implicit",content:e,viewBox:n}):Lo(e)?t.createElement(zT,RT({viewBox:n},e,{key:"label-implicit"})):null:null};zT.parseViewBox=HT,zT.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=HT(e),a=nc(o,zT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));return r?[VT(e.label,n||i)].concat(AT(a)):a};var UT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function KT(e){return KT="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},KT(e)}var $T=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function WT(e){return function(e){if(Array.isArray(e))return qT(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 qT(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 qT(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 qT(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 GT(){return GT=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},GT.apply(this,arguments)}function ZT(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 YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==KT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JT(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 QT={valueAccessor:function(e){return ui(e.value)?UT(e.value):e.value}};function eP(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=JT(e,$T);return n&&n.length?t.createElement(wc,{className:"recharts-label-list"},n.map((function(e,n){var u=Cs(o)?r(e,n):zA(e&&e.payload,o),l=Cs(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(zT,GT({},cc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:zT.parseViewBox(Cs(i)?e:YT(YT({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function tP(e){return tP="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},tP(e)}function nP(){return nP=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},nP.apply(this,arguments)}function rP(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,sP(r.key),r)}}function oP(e,t){return oP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oP(e,t)}function iP(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=aP(e);if(t){var o=aP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tP(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 aP(e){return aP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aP(e)}function sP(e){var t=function(e,t){if("object"!==tP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tP(t)?t:String(t)}eP.displayName="LabelList",eP.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=nc(e.children,eP).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(eP,{key:"labelList-implicit",data:n}):t.isValidElement(e)||ci(e)?t.createElement(eP,{key:"labelList-implicit",data:n,content:e}):Lo(e)?t.createElement(eP,GT({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(WT(o)):o},eP.defaultProps=QT;var cP=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)/wT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:_T(t,n,u,f),circleTangency:_T(t,n,r,f),lineTangency:_T(t,n,u*Math.cos(l*wT),p),theta:l}},uP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Ts(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=_T(t,n,o,i),u=_T(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=_T(t,n,r,i),p=_T(t,n,r,s);l+="L ".concat(p.x,",").concat(p.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},lP=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&&oP(e,t)}(a,t.PureComponent);var n,r,o,i=iP(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 p,d=Io("recharts-sector",f),h=i-o,g=Is(a,h,0,!0);return p=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=Ts(u-c),f=cP({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=cP({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(d.x,",").concat(d.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 "):uP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.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=cP({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=cP({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,j=S.theta,A=s?Math.abs(c-u):Math.abs(c-u)-O-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):uP({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",nP({},cc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&rP(n.prototype,r),o&&rP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function fP(e){return fP="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},fP(e)}function pP(){return pP=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},pP.apply(this,arguments)}function dP(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 hP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dP(Object(n),!0).forEach((function(t){bP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gP(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,wP(r.key),r)}}function yP(e,t){return yP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yP(e,t)}function vP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mP(e);if(t){var o=mP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function bP(e,t,n){return(t=wP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e){var t=function(e,t){if("object"!==fP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fP(t)?t:String(t)}!function(e,t,n){(t=sP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(lP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var xP={curveBasisClosed:function(e){return new nh(e)},curveBasisOpen:function(e){return new rh(e)},curveBasis:function(e){return new th(e)},curveLinearClosed:function(e){return new dh(e)},curveLinear:Pd,curveMonotoneX:function(e){return new mh(e)},curveMonotoneY:function(e){return new bh(e)},curveNatural:function(e){return new xh(e)},curveStep:function(e){return new Ch(e,.5)},curveStepAfter:function(e){return new Ch(e,1)},curveStepBefore:function(e){return new Ch(e,0)}},_P=function(e){return e.x===+e.x&&e.y===+e.y},CP=function(e){return e.x},OP=function(e){return e.y},SP=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&&yP(e,t)}(a,t.PureComponent);var n,r,o,i=vP(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:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(ci(e))return e;var n="curve".concat(hd(e));return"curveMonotone"===n&&t?xP["".concat(n).concat("vertical"===t?"Y":"X")]:xP[n]||Pd}(n,i),c=a?r.filter((function(e){return _P(e)})):r;if(ui(o)){var u=a?o.filter((function(e){return _P(e)})):o,l=c.map((function(e,t){return hP(hP({},e),{},{base:u[t]})}));return(e="vertical"===i?Nd().y(OP).x1(CP).x0((function(e){return e.base.x})):Nd().x(CP).y1(OP).y0((function(e){return e.base.y}))).defined(_P).curve(s),e(l)}return(e="vertical"===i&&Ms(o)?Nd().y(OP).x1(CP).x0(o):Ms(o)?Nd().x(CP).y1(OP).y0(o):Rd().x(CP).y(OP)).defined(_P).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",pP({},cc(this.props),Ws(this.props),{className:Io("recharts-curve",n),d:a,ref:i}))}}])&&gP(n.prototype,r),o&&gP(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){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,RP(r.key),r)}}function AP(e,t){return AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AP(e,t)}function TP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MP(e);if(t){var o=MP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return PP(e)}(this,n)}}function PP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(e){return MP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MP(e)}function DP(e,t,n){return(t=RP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(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)}bP(SP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var NP=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 p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},IP=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},LP=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&&AP(e,t)}(a,t.PureComponent);var n,r,o,i=TP(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 DP(PP(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,p=l.animationDuration,d=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=Io("recharts-rectangle",c);return g?t.createElement(ob,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(ob,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",EP({},cc(e.props,!0),{className:y,d:NP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",EP({},cc(this.props,!0),{className:y,d:NP(r,o,i,a,s)}))}}],r&&jP(n.prototype,r),o&&jP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function BP(e){return BP="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},BP(e)}DP(LP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var FP=["points","className","baseLinePoints","connectNulls"];function zP(){return zP=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},zP.apply(this,arguments)}function HP(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 VP(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"!==BP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===BP(i)?i:String(i)),r)}var o,i}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UP(e,t)}function KP(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=$P(e);if(t){var o=$P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BP(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 $P(e){return $P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$P(e)}function WP(e){return function(e){if(Array.isArray(e))return qP(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 qP(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 qP(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 qP(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 GP=function(e){return e&&e.x===+e.x&&e.y===+e.y},ZP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){GP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),GP(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(WP(e),WP(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},YP=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&&UP(e,t)}(a,t.PureComponent);var n,r,o,i=KP(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=HP(e,FP);if(!n||!n.length)return null;var s=Io("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=ZP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(ZP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",zP({},cc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",zP({},cc(a,!0),{fill:"none",d:ZP(n,i)})):null,c?t.createElement("path",zP({},cc(a,!0),{fill:"none",d:ZP(o,i)})):null)}var l=ZP(n,i);return t.createElement("path",zP({},cc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&VP(n.prototype,r),o&&VP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XP(e){return XP="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},XP(e)}function JP(){return JP=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},JP.apply(this,arguments)}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"!==XP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===XP(i)?i:String(i)),r)}var o,i}function eM(e,t){return eM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eM(e,t)}function tM(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=nM(e);if(t){var o=nM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XP(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 nM(e){return nM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nM(e)}var rM=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&&eM(e,t)}(a,t.PureComponent);var n,r,o,i=tM(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=Io("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",JP({},cc(this.props),Ws(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&QP(n.prototype,r),o&&QP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function oM(e){return oM="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},oM(e)}function iM(){return iM=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},iM.apply(this,arguments)}function aM(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,lM(r.key),r)}}function sM(e,t){return sM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sM(e,t)}function cM(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=uM(e);if(t){var o=uM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oM(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 uM(e){return uM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uM(e)}function lM(e){var t=function(e,t){if("object"!==oM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oM(t)?t:String(t)}var fM=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&&sM(e,t)}(a,t.PureComponent);var n,r,o,i=cM(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.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return Ms(n)&&Ms(r)&&Ms(o)&&Ms(i)&&Ms(s)&&Ms(c)?t.createElement("path",iM({},cc(this.props,!0),{className:Io("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&aM(n.prototype,r),o&&aM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pM(e){return pM="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},pM(e)}function dM(){return dM=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},dM.apply(this,arguments)}function hM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(n),!0).forEach((function(t){wM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(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,xM(r.key),r)}}function vM(e,t){return vM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vM(e,t)}function mM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bM(e);if(t){var o=bM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pM(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 bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bM(e)}function wM(e,t,n){return(t=xM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xM(e){var t=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pM(t)?t:String(t)}!function(e,t,n){(t=lM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(fM,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var _M=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&&vM(e,t)}(a,t.PureComponent);var n,r,o,i=mM(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:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=_T(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=gM({stroke:"#ccc"},cc(this.props));return t.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=_T(n,r,o,e),u=_T(n,r,i,e);return t.createElement("line",dM({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,n,r){var o=this.props,i=o.cx,a=o.cy,s=gM(gM({stroke:"#ccc"},cc(this.props)),{},{fill:"none"},r);return t.createElement("circle",dM({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,n,r){var o=gM(gM({stroke:"#ccc"},cc(this.props)),{},{fill:"none"},r);return t.createElement("path",dM({},o,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,n=this.props,r=n.polarRadius,o=n.gridType;return r&&r.length?t.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(t,n){return"circle"===o?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:t.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&yM(n.prototype,r),o&&yM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();wM(_M,"displayName","PolarGrid"),wM(_M,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var CM=L_,OM=yp,SM=U_;var kM=function(e,t){return e&&e.length?CM(e,OM(t),SM):void 0},EM=L_,jM=B_,AM=yp;var TM=function(e,t){return e&&e.length?EM(e,AM(t),jM):void 0},PM=["cx","cy","angle","ticks","axisLine"],MM=["ticks","tick","angle","tickFormatter","stroke"];function DM(e){return DM="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},DM(e)}function RM(){return RM=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},RM.apply(this,arguments)}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 IM(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){VM(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 LM(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 BM(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,UM(r.key),r)}}function FM(e,t){return FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FM(e,t)}function zM(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=HM(e);if(t){var o=HM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===DM(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 HM(e){return HM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HM(e)}function VM(e,t,n){return(t=UM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UM(e){var t=function(e,t){if("object"!==DM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DM(t)?t:String(t)}var KM=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&&FM(e,t)}(a,t.PureComponent);var n,r,o,i=zM(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 _T(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=TM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:kM(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=LM(e,PM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=_T(n,r,c[0],o),l=_T(n,r,c[1],o),f=IM(IM(IM({},cc(s)),{},{fill:"none"},cc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",RM({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=LM(n,MM),l=this.getTickTextAnchor(),f=cc(u),p=cc(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=IM(IM(IM(IM({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(wc,RM({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},qs(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(wc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),zT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(D_,RM({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&BM(n.prototype,r),o&&BM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function $M(e){return $M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$M(e)}function WM(){return WM=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},WM.apply(this,arguments)}function qM(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 GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qM(Object(n),!0).forEach((function(t){QM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(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,eD(r.key),r)}}function YM(e,t){return YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YM(e,t)}function XM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JM(e);if(t){var o=JM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function JM(e){return JM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JM(e)}function QM(e,t,n){return(t=eD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eD(e){var t=function(e,t){if("object"!==$M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$M(t)?t:String(t)}VM(KM,"displayName","PolarRadiusAxis"),VM(KM,"axisType","radiusAxis"),VM(KM,"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 tD=Math.PI/180,nD=1e-5,rD=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&&YM(e,t)}(a,t.PureComponent);var n,r,o,i=XM(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=_T(n,r,o,e.coordinate),c=_T(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*tD);return n>nD?"outer"===t?"start":"end":n<-nD?"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=GM(GM({},cc(this.props)),{},{fill:"none"},cc(i));if("circle"===a)return t.createElement(rM,WM({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return _T(n,r,o,e.coordinate)}));return t.createElement(YP,WM({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=cc(this.props),l=cc(o),f=GM(GM({},u),{},{fill:"none"},cc(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=GM(GM(GM({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(wc,WM({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},qs(e.props,n,r)),i&&t.createElement("line",WM({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(wc,{className:"recharts-polar-angle-axis-ticks"},p)}},{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(wc,{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):ci(e)?e(n):t.createElement(D_,WM({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&ZM(n.prototype,r),o&&ZM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();QM(rD,"displayName","PolarAngleAxis"),QM(rD,"axisType","angleAxis"),QM(rD,"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 oD=hl(Object.getPrototypeOf,Object),iD=ti,aD=oD,sD=li,cD="[object Object]",uD=Function.prototype,lD=Object.prototype,fD=uD.toString,pD=lD.hasOwnProperty,dD=fD.call(Object);var hD=function(e){if(!sD(e)||iD(e)!=cD)return!1;var t=aD(e);if(null===t)return!0;var n=pD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fD.call(n)==dD};function gD(e){return gD="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},gD(e)}function yD(){return yD=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},yD.apply(this,arguments)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){OD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function wD(e,t){return wD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wD(e,t)}function xD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CD(e);if(t){var o=CD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _D(e)}(this,n)}}function _D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CD(e){return CD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CD(e)}function OD(e,t,n){return(t=SD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SD(e){var t=function(e,t){if("object"!==gD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gD(t)?t:String(t)}var kD=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&&wD(e,t)}(a,t.PureComponent);var n,r,o,i=xD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),OD(_D(t=i.call(this,e)),"pieRef",null),OD(_D(t),"sectorRefs",[]),OD(_D(t),"id",Ns("recharts-pie-")),OD(_D(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ci(e)&&e()})),OD(_D(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ci(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=cc(this.props),u=cc(r),l=cc(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=_T(e.cx,e.cy,e.outerRadius+f,p),h=mD(mD(mD(mD({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=mD(mD(mD(mD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[_T(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Cs(i)&&Cs(s)?y="value":Cs(i)&&(y=s),t.createElement(wc,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,zA(e,y)))}));return t.createElement(wc,{className:"recharts-pie-labels"},p)}},{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=mD(mD({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wc,yD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},qs(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(ob,{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?_s(e,"paddingAngle",0):0;if(n){var s=Bs(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=mD(mD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Bs(0,u-f)(o),d=mD(mD({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(wc,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&&N_(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,p=this.state.isAnimationFinished;if(r||!o||!o.length||!Ms(s)||!Ms(c)||!Ms(u)||!Ms(l))return null;var d=Io("recharts-pie",i);return t.createElement(wc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),zT.renderCallByParent(this.props,null,!1),(!f||p)&&eP.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):ci(e)?e(n):t.createElement(SP,yD({},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 ci(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(D_,yD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):hD(e)?t.createElement(lP,yD({tabIndex:-1},n,e)):t.createElement(lP,yD({tabIndex:-1},n))}}],r&&bD(n.prototype,r),o&&bD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();OD(kD,"displayName","Pie"),OD(kD,"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:!ww.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),OD(kD,"parseDeltaAngle",(function(e,t){return Ts(t-e)*Math.min(Math.abs(t-e),360)})),OD(kD,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=cc(e.props),i=nc(r,bx);return n&&n.length?n.map((function(e,t){return mD(mD(mD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return mD(mD({},o),e.props)})):[]})),OD(kD,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=CT(o,i);return{cx:r+Is(e.props.cx,o,o/2),cy:n+Is(e.props.cy,i,i/2),innerRadius:Is(e.props.innerRadius,a,0),outerRadius:Is(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),OD(kD,"getComposedData",(function(e){var t=e.item,n=e.offset,r=kD.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,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=kD.parseCoordinateOfPie(t,n),g=kD.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Cs(u)&&Cs(f)?(hx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Cs(u)&&(hx(!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!==zA(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=zA(t,v,0);return e+(Ms(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=zA(e,v,0),o=zA(e,l,t),s=(Ms(r)?r:0)/_,u=(n=t?b.endAngle+Ts(g)*c*(0!==r?1:0):a)+Ts(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=_T(h.cx,h.cy,y,f);return b=mD(mD(mD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:zA(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Ts(g)*c})})));return mD(mD({},h),{},{sectors:m,data:r})}));var ED={};var jD=function(e){return e&&e.length?e[0]:void 0};({get exports(){return ED},set exports(e){ED=e}}).exports=jD;var AD=c(ED);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 PD(){return PD=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},PD.apply(this,arguments)}function MD(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?MD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 ND(e,t){return ND=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ND(e,t)}function ID(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 LD(e)}(this,n)}}function LD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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&&ND(e,t)}(a,t.PureComponent);var n,r,o,i=ID(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 FD(LD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),FD(LD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),FD(LD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),FD(LD(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),FD(LD(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=cc(this.props),s=cc(r),c=e.map((function(e,t){var n=DD(DD(DD({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(wc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,DD(DD({},this.props),{},{points:e})):ci(o)?o(DD(DD({},this.props),{},{points:e})):t.createElement(YP,PD({},cc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(wc,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Bs(r.x,e.x),a=Bs(r.y,e.y);return DD(DD({},e),{},{x:i(n),y:a(n)})}var s=Bs(e.cx,e.x),c=Bs(e.cy,e.y);return DD(DD({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&N_(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=Io("recharts-radar",r);return t.createElement(wc,{className:s},this.renderPolygon(),(!i||a)&&eP.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:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,PD({},n,{className:"recharts-radar-dot"}))}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FD(HD,"displayName","Radar"),FD(HD,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),FD(HD,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=zA(e,n.dataKey,r),f=zA(e,o),p=n.scale(l)+(i||0),d=ui(f)?UT(f):f,h=Cs(d)?void 0:t.scale(d);ui(f)&&f.length>=2&&(c=!0),u.push(DD(DD({},_T(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(ui(e.value)){var n=AD(e.value),r=Cs(n)?void 0:t.scale(n);l.push(DD(DD({},e),{},{radius:r},_T(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var VD=["shape","activeShape","activeIndex","cornerRadius"],UD=["value","background"];function KD(e){return KD="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},KD(e)}function $D(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 WD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$D(Object(n),!0).forEach((function(t){QD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qD(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 GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eR(r.key),r)}}function ZD(e,t){return ZD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZD(e,t)}function YD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JD(e);if(t){var o=JD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XD(e)}(this,n)}}function XD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JD(e){return JD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JD(e)}function QD(e,t,n){return(t=eR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eR(e){var t=function(e,t){if("object"!==KD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KD(t)?t:String(t)}var tR=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&&ZD(e,t)}(a,t.PureComponent);var n,r,o,i=YD(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QD(XD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),QD(XD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),QD(XD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ts(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=qD(n,VD),u=cc(c);return e.map((function(e,n){var l=WD(WD(WD(WD({},u),{},{cornerRadius:s},e),qs(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.startAngle,e.startAngle),i=Bs(n.endAngle,e.endAngle);return WD(WD({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Bs(s,a);return WD(WD({},e),{},{endAngle:c(o)})}));return t.createElement(wc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=cc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=qD(e,UD);if(!i)return null;var c=WD(WD(WD(WD(WD({cornerRadius:n},s),{},{fill:"#eee"},i),r),qs(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=Io("recharts-area",o);return t.createElement(wc,{className:c},i&&t.createElement(wc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(wc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&eP.renderCallByParent(WD({},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:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(lP,n)}}],r&&GD(n.prototype,r),o&&GD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();QD(tR,"displayName","RadialBar"),QD(tR,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),QD(tR,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=QA(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=aT({numericAxis:w}),C=nc(m,bx);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=eT(u[p+s],x):(l=zA(e,c),ui(l)||(l=[_,l])),"radial"===y){v=iT({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),O=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=Ts(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),O=(w=iT({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Ts(E||b)*(Math.abs(b)-Math.abs(E))}return WD(WD(WD(WD({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[dT(t,e)],tooltipPosition:_T(h,g,(v+m)/2,(w+O)/2)})})),layout:y}}));var nR=Math.ceil,rR=Math.max;var oR=Gw,iR=1/0,aR=17976931348623157e292;var sR=function(e){return e?(e=oR(e))===iR||e===-iR?(e<0?-1:1)*aR:e==e?e:0:0===e?e:0},cR=function(e,t,n,r){for(var o=-1,i=rR(nR((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},uR=nw,lR=sR;var fR=function(e){return function(t,n,r){return r&&"number"!=typeof r&&uR(t,n,r)&&(n=r=void 0),t=lR(t),void 0===n?(n=t,t=0):n=lR(n),r=void 0===r?t<n?1:-1:lR(r),cR(t,n,r,e)}}();function pR(e){return pR="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},pR(e)}function dR(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?dR(Object(n),!0).forEach((function(t){gR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=["Webkit","Moz","O","ms"];function vR(e){return vR="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},vR(e)}function mR(){return mR=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},mR.apply(this,arguments)}function bR(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 wR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xR(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,ER(r.key),r)}}function _R(e,t){return _R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_R(e,t)}function CR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SR(e);if(t){var o=SR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OR(e)}(this,n)}}function OR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SR(e)}function kR(e,t,n){return(t=ER(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=function(e,t){if("object"!==vR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vR(t)?t:String(t)}var jR=function(e){return e.changedTouches&&!!e.changedTouches.length},AR=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&&_R(e,t)}(a,t.PureComponent);var n,r,o,i=CR(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),kR(OR(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)})),kR(OR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kR(OR(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kR(OR(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kR(OR(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kR(OR(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kR(OR(t),"handleSlideDragStart",(function(e){var n=jR(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(OR(t),"startX"),endX:t.handleTravellerDragStart.bind(OR(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=zA(n[e],o,e);return ci(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,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=jR(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,p=c.onChange,d=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((kR(t={},o,s+y),kR(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(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=wR(wR({},cc(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(wc,{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(wc,{className:"recharts-brush-texts"},t.createElement(D_,mR({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(D_,mR({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,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Ms(i)||!Ms(a)||!Ms(s)||!Ms(c)||s<=0||c<=0)return null;var y=Io("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=yR.reduce((function(e,r){return hR(hR({},e),{},gR({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||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):ci(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 wR({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=AC().domain(fR(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&&xR(n.prototype,r),o&&xR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(AR,"displayName","Brush"),kR(AR,"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 TR=yb;var PR=zc,MR=yp,DR=function(e,t){var n;return TR(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},RR=ui,NR=nw;var IR=function(e,t,n){var r=RR(e)?PR:DR;return n&&NR(e,t,n)&&(t=void 0),r(e,MR(t))},LR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var BR=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},FR=yb;var zR=BR,HR=function(e,t){var n=!0;return FR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},VR=yp,UR=ui,KR=nw;var $R=function(e,t,n){var r=UR(e)?zR:HR;return n&&KR(e,t,n)&&(t=void 0),r(e,VR(t))},WR=zb;var qR=function(e,t,n){"__proto__"==t&&WR?WR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},GR=qR,ZR=hb,YR=yp;var XR=function(e,t){var n={};return t=YR(t),ZR(e,(function(e,r,o){GR(n,r,t(e,r,o))})),n},JR=["value","background"];function QR(e){return QR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QR(e)}function eN(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 tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oN(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,lN(r.key),r)}}function iN(e,t){return iN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iN(e,t)}function aN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cN(e);if(t){var o=cN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sN(e)}(this,n)}}function sN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(e){return cN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cN(e)}function uN(e,t,n){return(t=lN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e){var t=function(e,t){if("object"!==QR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QR(t)?t:String(t)}var fN=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&&iN(e,t)}(a,t.PureComponent);var n,r,o,i=aN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uN(sN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),uN(sN(e),"id",Ns("recharts-bar-")),uN(sN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),uN(sN(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=cc(this.props);return e&&e.map((function(e,i){var s=rN(rN(rN({},o),e),{},{index:i});return t.createElement(wc,tN({className:"recharts-bar-rectangle"},qs(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(ob,{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=Bs(n.x,e.x),a=Bs(n.y,e.y),s=Bs(n.width,e.width),c=Bs(n.height,e.height);return rN(rN({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Bs(0,e.height)(i);return rN(rN({},e),{},{y:e.y+e.height-u,height:u})}var f=Bs(0,e.width)(i);return rN(rN({},e),{},{width:f})}));return t.createElement(wc,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&&N_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=cc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=eN(t,JR);if(!o)return null;var s=rN(rN(rN(rN(rN({},i),{},{fill:"#eee"},o),n),qs(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=nc(r.children,DA);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:zA(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,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,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Io("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Cs(d)?this.id:d;return t.createElement(wc,{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(wc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&eP.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):ci(e)?e(n):t.createElement(LP,n)}}],r&&oN(n.prototype,r),o&&oN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pN(e){return pN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pN(e)}function dN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vN(r.key),r)}}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hN(Object(n),!0).forEach((function(t){yN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yN(e,t,n){return(t=vN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(e){var t=function(e,t){if("object"!==pN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pN(t)?t:String(t)}uN(fN,"displayName","Bar"),uN(fN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),uN(fN,"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,p=e.offset,d=QA(r,n);if(!d)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=aT({numericAxis:b}),_=nc(v,bx),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=eT(u[l+t],w):(r=zA(e,y),ui(r)||(r=[x,r])),"horizontal"===h){var C,O=[a.scale(r[0]),a.scale(r[1])],S=O[0],k=O[1];f=iT({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(C=null!=k?k:S)&&void 0!==C?C:void 0,g=d.size;var E=S-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=Ts(v||m)*(Math.abs(m)-Math.abs(v));p-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],P=A[1];if(f=T,p=iT({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Ts(g||m)*(Math.abs(m)-Math.abs(g))}return rN(rN(rN({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[dT(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return rN({data:C,layout:h},p)}));var mN=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=!!rc(c,fN);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Is(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=YA(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),JA(P);var D=rT(P,gN(gN({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=gN(gN(gN({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=fT(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,gN(gN({},i),{},yN({},a,R))}),{})},bN=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)}},wN=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return bN({x:t,y:n},{x:r,y:o})},xN=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var 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&&dN(t.prototype,n),r&&dN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();yN(xN,"EPS",1e-4);var _N=function(e){var t=Object.keys(e).reduce((function(t,n){return gN(gN({},t),{},yN({},n,xN.create(e[n])))}),{});return gN(gN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XR(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return $R(e,(function(e,n){return t[n].isInRange(e)}))}})};function CN(e){return CN="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},CN(e)}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ON(Object(n),!0).forEach((function(t){kN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==CN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EN(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 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,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 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}function AN(){return AN=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},AN.apply(this,arguments)}var TN=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement("line",AN({},n,{className:"recharts-reference-line-line"}))},PN=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,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(LR(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(LR(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 LR(o,"discard")&&IR(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function MN(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;hx(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=_N({x:i.scale,y:a.scale}),p=Ds(n),d=Ds(r),h=o&&2===o.length,g=PN(f,p,d,h,e);if(!g)return null;var y=EN(g,2),v=y[0],m=v.x,b=v.y,w=y[1],x=w.x,_=w.y,C=SN(SN({clipPath:LR(e,"hidden")?"url(#".concat(l,")"):void 0},cc(e,!0)),{},{x1:m,y1:b,x2:x,y2:_});return t.createElement(wc,{className:Io("recharts-reference-line",c)},TN(s,C),zT.renderCallByParent(e,wN({x1:m,y1:b,x2:x,y2:_})))}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 RN(){return RN=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},RN.apply(this,arguments)}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NN(Object(n),!0).forEach((function(t){LN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LN(e,t,n){return(t=function(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)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MN.displayName="ReferenceLine",MN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var BN=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=_N({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return LR(e,"discard")&&!i.isInRange(a)?null:a};function FN(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Ds(n),c=Ds(r);if(hx(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=BN(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=IN(IN({clipPath:LR(e,"hidden")?"url(#".concat(a,")"):void 0},cc(e,!0)),{},{cx:l,cy:f});return t.createElement(wc,{className:Io("recharts-reference-dot",d)},FN.renderDot(p,h),zT.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}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(){return HN=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},HN.apply(this,arguments)}function VN(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 UN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VN(Object(n),!0).forEach((function(t){KN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KN(e,t,n){return(t=function(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)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}FN.displayName="ReferenceDot",FN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},FN.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,RN({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};var $N=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=_N({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!LR(o,"discard")||f.isInRange(p)&&f.isInRange(d)?bN(p,d):null};function WN(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;hx(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Ds(n),l=Ds(r),f=Ds(o),p=Ds(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=$N(u,l,f,p,e);if(!h&&!d)return null;var g=LR(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wc,{className:Io("recharts-reference-area",a)},WN.renderRect(d,UN(UN({clipPath:g},cc(e,!0)),h)),zT.renderCallByParent(e,h))}function qN(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 GN(e){return GN="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},GN(e)}function ZN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZN(Object(n),!0).forEach((function(t){XN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==GN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===GN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(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,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?d_(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Ts(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=ci(i)?i(x.value,b-1):x.value,C=d_(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=YN(YN({},x),{},{tickCoord:O>0?x.coordinate-O*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=YN(YN({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],j=ci(i)?i(E.value,k):E.value,A=d_(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=YN(YN({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=YN(YN({},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]=YN(YN({},E),{},{isShow:!0}))}return v}function QN(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(Ms(c)||ww.isSsr)return function(e,t){return qN(e,t+1)}(o,"number"==typeof c&&Ms(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=qN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=qN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=JN({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?JN({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,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?d_(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Ts(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=ci(o)?o(x.value,m-w-1):x.value,C=d_(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=YN(YN({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=YN(YN({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=YN(YN({},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})))}WN.displayName="ReferenceArea",WN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},WN.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(LP,HN({},n,{className:"recharts-reference-area-rect"}))};var eI=["viewBox"],tI=["viewBox"],nI=["ticks"];function rI(e){return rI="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},rI(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 iI(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 aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iI(Object(n),!0).forEach((function(t){pI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sI(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 cI(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,dI(r.key),r)}}function uI(e,t){return uI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uI(e,t)}function lI(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=fI(e);if(t){var o=fI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rI(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 fI(e){return fI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fI(e)}function pI(e,t,n){return(t=dI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dI(e){var t=function(e,t){if("object"!==rI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rI(t)?t:String(t)}var hI=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&&uI(e,t)}(a,t.Component);var n,r,o,i=lI(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=sI(e,eI),o=this.props,i=o.viewBox,a=sI(o,tI);return!zs(n,i)||!zs(r,a)||!zs(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,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Ms(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){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=aI(aI(aI({},cc(this.props)),cc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=aI(aI({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=aI(aI({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",oI({},u,{className:Io("recharts-cartesian-axis-line",_s(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,p=QN(aI(aI({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=cc(this.props),y=cc(u),v=aI(aI({},g),{},{fill:"none"},cc(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=aI(aI(aI(aI({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(wc,oI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},qs(o.props,e,n)),s&&t.createElement("line",oI({},v,i,{className:Io("recharts-cartesian-axis-tick-line",_s(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(ci(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=sI(c,nI),f=u;return ci(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(wc,{className:Io("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),zT.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(D_,oI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&cI(n.prototype,r),o&&cI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();pI(hI,"displayName","CartesianAxis"),pI(hI,"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 gI=["x1","y1","x2","y2","key"];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 vI(){return vI=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},vI.apply(this,arguments)}function mI(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 bI(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 wI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bI(Object(n),!0).forEach((function(t){SI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kI(r.key),r)}}function _I(e,t){return _I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_I(e,t)}function CI(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=OI(e);if(t){var o=OI(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 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 OI(e){return OI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OI(e)}function SI(e,t,n){return(t=kI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kI(e){var t=function(e,t){if("object"!==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 EI=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&&_I(e,t)}(a,t.PureComponent);var n,r,o,i=CI(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=wI(wI({},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=wI(wI({},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,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Ms(o)||o<=0||!Ms(i)||i<=0||!Ms(n)||n!==+n||!Ms(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!ci(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!ci(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),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(ci(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=mI(n,gI);r=t.createElement("line",vI({},cc(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&xI(n.prototype,r),o&&xI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();SI(EI,"displayName","CartesianGrid"),SI(EI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var jI=["type","layout","connectNulls","ref"];function AI(e){return AI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AI(e)}function TI(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 PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}function MI(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 DI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MI(Object(n),!0).forEach((function(t){HI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RI(e){return function(e){if(Array.isArray(e))return NI(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 NI(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 NI(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 NI(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 II(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,VI(r.key),r)}}function LI(e,t){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LI(e,t)}function BI(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=zI(e);if(t){var o=zI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===AI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FI(e)}(this,n)}}function FI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zI(e){return zI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zI(e)}function HI(e,t,n){return(t=VI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VI(e){var t=function(e,t){if("object"!==AI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==AI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AI(t)?t:String(t)}var UI=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&&LI(e,t)}(a,t.PureComponent);var n,r,o,i=BI(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 HI(FI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),HI(FI(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(RI(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(RI(a.repeat(n,o)),RI(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),HI(FI(e),"id",Ns("recharts-line-")),HI(FI(e),"pathRef",(function(t){e.mainCurve=t})),HI(FI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),HI(FI(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=nc(r.children,DA);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:zA(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,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=cc(this.props),u=cc(o,!0),l=i.map((function(e,t){var n=DI(DI(DI({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(wc,PI({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=TI(i,jI),l=DI(DI(DI({},cc(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(SP,PI({},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,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(ob,{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=Bs(r.x,e.x),a=Bs(r.y,e.y);return DI(DI({},e),{},{x:i(o),y:a(o)})}if(p){var c=Bs(2*d,e.x),u=Bs(h/2,e.y);return DI(DI({},e),{},{x:c(o),y:u(o)})}return DI(DI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Bs(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||!N_(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,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Io("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Cs(d)?this.id:d;return t.createElement(wc,{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),(!p||h)&&eP.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(RI(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(RI(r),RI(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ci(e))r=e(n);else{var o=Io("recharts-line-dot",e?e.className:"");r=t.createElement(rM,PI({},n,{className:o}))}return r}}],r&&II(n.prototype,r),o&&II(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();HI(UI,"displayName","Line"),HI(UI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ww.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HI(UI,"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;return DI({points:c.map((function(e,t){var c=zA(e,a);return"horizontal"===l?{x:oT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Cs(c)?null:r.scale(c),value:c,payload:e}:{x:Cs(c)?null:n.scale(c),y:oT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var KI=["layout","type","stroke","connectNulls","isRange","ref"];function $I(e){return $I="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},$I(e)}function WI(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 qI(){return qI=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},qI.apply(this,arguments)}function GI(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 ZI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GI(Object(n),!0).forEach((function(t){tL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YI(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,nL(r.key),r)}}function XI(e,t){return XI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XI(e,t)}function JI(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=eL(e);if(t){var o=eL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QI(e)}(this,n)}}function QI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eL(e){return eL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eL(e)}function tL(e,t,n){return(t=nL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nL(e){var t=function(e,t){if("object"!==$I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$I(t)?t:String(t)}var rL=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&&XI(e,t)}(a,t.PureComponent);var n,r,o,i=JI(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 tL(QI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),tL(QI(e),"id",Ns("recharts-area-")),tL(QI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),tL(QI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=cc(this.props),f=cc(s,!0),p=c.map((function(e,t){var n=ZI(ZI(ZI({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,qI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=V_(o.map((function(e){return e.y||0})));return Ms(r)&&"number"==typeof r?u=Math.max(r,u):r&&ui(r)&&r.length&&(u=Math.max(V_(r.map((function(e){return e.y||0}))),u)),Ms(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=V_(o.map((function(e){return e.x||0})));return Ms(r)&&"number"==typeof r?u=Math.max(r,u):r&&ui(r)&&r.length&&(u=Math.max(V_(r.map((function(e){return e.x||0}))),u)),Ms(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=WI(i,KI);return t.createElement(wc,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(SP,qI({},cc(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(SP,qI({},cc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(SP,qI({},cc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(ob,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Bs(r.x,e.x),i=Bs(r.y,e.y);return ZI(ZI({},e),{},{x:o(s),y:i(s)})}return e}));return c=Ms(a)&&"number"==typeof a?Bs(h,a)(s):Cs(a)||As(a)?Bs(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Bs(r.x,e.x),i=Bs(r.y,e.y);return ZI(ZI({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(wc,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(wc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!N_(s,r)||!N_(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Io("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Cs(d)?this.id:d;return t.createElement(wc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&eP.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&YI(n.prototype,r),o&&YI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();tL(rL,"displayName","Area"),tL(rL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),tL(rL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(Ms(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),tL(rL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=rL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=zA(e,u);g?n=l[f+t]:ui(n=r)?v=!0:n=[y,n];var p=Cs(n[1])||g&&Cs(r);return"horizontal"===h?{x:oT({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:oT({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Cs(_s(e,"value[0]"))||Cs(_s(e,"y"))?null:i.scale(_s(e,"value[0]"))}:{x:Cs(_s(e,"value[0]"))?null:o.scale(_s(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),ZI({points:m,baseLine:t,layout:h,isRange:v},d)})),tL(rL,"renderDotItem",(function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,qI({},n,{className:"recharts-area-dot"}))}));var oL=function(){return null};function iL(e){return iL="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},iL(e)}function aL(){return aL=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},aL.apply(this,arguments)}function sL(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 cL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sL(Object(n),!0).forEach((function(t){hL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uL(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,gL(r.key),r)}}function lL(e,t){return lL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lL(e,t)}function fL(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=dL(e);if(t){var o=dL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===iL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pL(e)}(this,n)}}function pL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dL(e){return dL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dL(e)}function hL(e,t,n){return(t=gL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){var t=function(e,t){if("object"!==iL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iL(t)?t:String(t)}oL.displayName="ZAxis",oL.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var 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&&lL(e,t)}(a,t.PureComponent);var n,r,o,i=fL(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 hL(pL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),hL(pL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),hL(pL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),hL(pL(e),"id",Ns("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=cc(this.props);return e.map((function(e,r){var u=cL(cL({key:"symbol-".concat(r)},c),e);return t.createElement(wc,aL({className:"recharts-scatter-symbol"},qs(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.cx,e.cx),i=Bs(n.cy,e.cy),a=Bs(n.size,e.size);return cL(cL({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Bs(0,e.size);return cL(cL({},e),{},{size:s(o)})}));return t.createElement(wc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=nc(e.children,DA);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:zA(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:zA(e,t)}}return i.map((function(e,i){var c=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=cc(this.props),u=cc(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=cL(cL(cL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):ci(i)?i(y):t.createElement(SP,aL({},y,{type:s})),t.createElement(wc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Io("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Cs(p)?this.id:p;return t.createElement(wc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(wc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&eP.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):ci(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Bh,aL({},n,{type:e}))),r}}],r&&uL(n.prototype,r),o&&uL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();hL(yL,"displayName","Scatter"),hL(yL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),hL(yL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=nc(o.props.children,bx),f=Cs(t.dataKey)?o.props.dataKey:t.dataKey,p=Cs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:oL.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=zA(e,f),h=zA(e,p),m=!Cs(d)&&zA(e,d)||"-",b=[{name:Cs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Cs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=oT({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=oT({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return cL(cL({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return cL({points:m},c)}));var vL=function(){return null};vL.displayName="XAxis",vL.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 mL=function(){return null};mL.displayName="YAxis",mL.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 bL=yp,wL=_l,xL=kl;var _L=function(e){return function(t,n,r){var o=Object(t);if(!wL(t)){var i=bL(n);t=xL(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}},CL=sR;var OL=vp,SL=yp,kL=function(e){var t=CL(e),n=t%1;return t==t?n?t-n:t:0},EL=Math.max;var jL=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:kL(n);return o<0&&(o=EL(r+o,0)),OL(e,SL(t),o)},AL=_L(jL),TL=ti,PL=li,ML="[object Boolean]";var DL=function(e){return!0===e||!1===e||PL(e)&&TL(e)==ML};function RL(e){return function(e){if(Array.isArray(e))return NL(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 NL(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 NL(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 NL(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 IL=function(e,t,n,r,o){var i=nc(e,MN),a=nc(e,FN),s=[].concat(RL(i),RL(a)),c=nc(e,WN),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&Ms(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 p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&Ms(t.props[p])&&Ms(t.props[d])){var r=t.props[p],o=t.props[d];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 Ms(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},LL={};!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 p,d=l.length;for(u=0;u<d;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(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];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}({get exports(){return LL},set exports(e){LL=e}});var BL=new LL;BL.setMaxListeners&&BL.setMaxListeners(10);var FL="recharts.syncMouseEvents",zL=["item"],HL=["children","className","width","height","style","compact","title","desc"];function VL(e){return VL="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},VL(e)}function UL(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)||JL(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KL(){return KL=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},KL.apply(this,arguments)}function $L(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 WL(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,rB(r.key),r)}}function qL(e,t){return qL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qL(e,t)}function GL(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=YL(e);if(t){var o=YL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZL(e)}(this,n)}}function ZL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YL(e){return YL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YL(e)}function XL(e){return function(e){if(Array.isArray(e))return QL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||JL(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 JL(e,t){if(e){if("string"==typeof e)return QL(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)?QL(e,t):void 0}}function QL(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 eB(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 tB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(n),!0).forEach((function(t){nB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nB(e,t,n){return(t=rB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e){var t=function(e,t){if("object"!==VL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VL(t)?t:String(t)}var oB={xAxis:["bottom","top"],yAxis:["left","right"]},iB={x:0,y:0},aB=Number.isFinite?Number.isFinite:isFinite,sB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,cB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,uB=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(XL(e),XL(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&&Ms(o)&&Ms(i)?e.slice(o,i+1):[]};function lB(e){return"number"===e?[0,"auto"]:void 0}var fB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=uB(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=Fs(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(XL(e),[dT(t,o)]):e}),[])},pB=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,p=void 0;if(Ts(l-u)!==Ts(f-l)){var d=[];if(Ts(f-l)===Ts(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[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=fB(e,t,u,l),p=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 tB(tB(tB({},r),_T(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return tB(tB(tB({},r),_T(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return iB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},dB=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,p=WA(u,o),d=n.reduce((function(t,n){var d,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,_=n.props[i];if(t[_])return t;var C,O,S,k=uB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===_})),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&&Ms(r)&&Ms(o))return!0}return!1})(n.props.domain,v,g)&&(C=lT(n.props.domain,null,v),!p||"number"!==g&&"auto"===b||(S=HA(k,y,"category")));var j=lB(g);if(!C||0===C.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(y){if(C=HA(k,y,g),"category"===g&&p){var P=function(e){if(!ui(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(C);m&&P?(O=C,C=fR(0,E)):m||(C=pT(T,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(XL(e),[t])}),[]))}else if("category"===g)C=m?C.filter((function(e){return""!==e&&!Cs(e)})):pT(T,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Cs(t)?e:[].concat(XL(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return KA(e,t,n,o,r)})).filter((function(e){return!Cs(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]===_&&(x||!e.props.hide)})),y,o,u);M&&(C=M)}!p||"number"!==g&&"auto"===b||(S=HA(k,y,"category"))}else C=p?fR(0,E):a&&a[_]&&a[_].hasStack&&"number"===g?"expand"===f?[0,1]:sT(a[_].stackGroups,s,c):$A(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),g,u,!0);if("number"===g)C=IL(l,C,_,o,w),T&&(C=lT(T,C,v));else if("category"===g&&T){var D=T;C.every((function(e){return D.indexOf(e)>=0}))&&(C=D)}}return tB(tB({},t),{},nB({},_,tB(tB({},n.props),{},{axisType:o,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:j,isCategorical:p,layout:u})))}),{});return d},hB=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=nc(u,o),p={};return f&&f.length?p=dB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=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=uB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=WA(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=lB("number");return e[y]?e:(h++,d?g=fR(0,p):a&&a[y]&&a[y].hasStack?(g=sT(a[y].stackGroups,s,c),g=IL(l,g,y,o)):(g=lT(v,$A(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=IL(l,g,y,o)),tB(tB({},e),{},nB({},y,tB(tB({axisType:o},r.defaultProps),{},{hide:!0,orientation:_s(oB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},gB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=rc(r,AR);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:!Cs(o)&&o}},yB=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"}},vB=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=rc(u,AR),p=rc(u,lg),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:tB(tB({},e),{},nB({},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:tB(tB({},e),{},nB({},r,_s(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=tB(tB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||AR.defaultProps.height),p&&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=UA({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Ms(e[f])&&(u=BA(BA({},e),{},FA({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Ms(e[p])&&(u=BA(BA({},e),{},FA({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),tB(tB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},mB=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,p=e.defaultProps,d=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,p=e.barCategoryGap,d=e.maxBarSize,h=yB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Js(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 p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return Js(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:Cs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=uB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],O=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 tB(tB({},e),{},(nB(o={},r.axisType,s),nB(o,"".concat(r.axisType,"Ticks"),GA(s)),o))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Ds(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Js(n.type).indexOf("Bar")>=0,A=fT(S,k),T=[];if(j){var P,M,D=Cs(x)?d:x,R=null!==(P=null!==(M=fT(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P: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=Is(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(NA(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Is(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(NA(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:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return tB(tB({},e),{},{position:tB(tB({},e.position),{},{offset:e.position.offset-R/2})})})))}var N,I,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:tB(tB({},B(tB(tB({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(N={key:n.key||"item-".concat(c)},nB(N,g,O[g]),nB(N,y,O[y]),nB(N,"animationId",i),N)),childIndex:(I=n,L=e.children,tc(L).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!oc({props:n}))return null;var c=n.children,l=n.layout,p=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=yB(l),v=y.numericAxisName,m=y.cateAxisName,b=nc(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(Ds(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[Ns("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return BA(BA({},e),{},FA({},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 BA(BA({},t),{},FA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:nT(e,a.items,o)}))}),{})),BA(BA({},t),{},FA({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),p,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return tB(tB({},e),{},nB({},r,hB(n,tB(tB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=vB(tB(tB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Ls(S),{tooltipTicks:O=GA(C,!1,!0),orderedTooltipTicks:aw(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:fT(C,O)}),E=d(n,tB(tB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return tB(tB({formattedGraphicalItems:E,graphicalItems:b,offset:_,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&&qL(e,t)}(u,t.Component);var n,o,i,s=GL(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),nB(ZL(n=s.call(this,e)),"clearDeferId",(function(){!Cs(n.deferId)&&cB&&cB(n.deferId),n.deferId=null})),nB(ZL(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(tB({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},tB(tB({},n.state),{},{legendBBox:e}))))}})),nB(ZL(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=sB&&sB(n.applySyncEvent.bind(ZL(n),r)))})),nB(ZL(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 tB({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),nB(ZL(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=tB(tB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)}})),nB(ZL(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?tB(tB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)})),nB(ZL(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),nB(ZL(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),nB(ZL(n),"handleMouseMove",(function(e){e&&ci(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),nB(ZL(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),ci(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),nB(ZL(n),"handleOuterEvent",(function(e){var t=pc(e),r=_s(n.props,"".concat(t));t&&ci(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),nB(ZL(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=tB(tB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)}})),nB(ZL(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;ci(t)&&t(n.getMouseInfo(e),e)})),nB(ZL(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;ci(t)&&t(n.getMouseInfo(e),e)})),nB(ZL(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),nB(ZL(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),nB(ZL(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),nB(ZL(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return qA(QN(tB(tB(tB({},hI.defaultProps),t),{},{ticks:GA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),nB(ZL(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return qA(QN(tB(tB(tB({},hI.defaultProps),t),{},{ticks:GA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),nB(ZL(n),"axesTicksGenerator",(function(e){return GA(e,!0)})),nB(ZL(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,p=n.props.layout,d=SP;if("ScatterChart"===r)f=a,d=fM;else if("BarChart"===r)f=n.getCursorRectangle(),d=LP;else if("radial"===p){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},d=lP}else f={points:n.getCursorPoints()},d=SP;var m=e.key||"_recharts-cursor",b=tB(tB(tB(tB({stroke:"#ccc",pointerEvents:"none"},c),f),cc(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(d,b)})),nB(ZL(n),"renderPolarAxis",(function(e,r,o){var i=_s(e,"type.axisType"),a=_s(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,tB(tB({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:GA(s,!0)}))})),nB(ZL(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),nB(ZL(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),nB(ZL(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=Ls(o),f=AL(i,(function(e){return $R(e.domain,aB)}))||Ls(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Ms(p.x)?p.x:a.left,y:Ms(p.y)?p.y:a.top,width:Ms(p.width)?p.width:a.width,height:Ms(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),nB(ZL(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=Ls(c),f=Ls(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:ui(i)?i:GA(f,!0).map((function(e){return e.coordinate})),polarRadius:ui(a)?a:GA(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),nB(ZL(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=UA({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,p=$L(u,zL);return t.cloneElement(f,tB(tB({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),nB(ZL(n),"renderTooltip",(function(){var e=rc(n.props.children,Dw);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:tB(tB({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),nB(ZL(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:ZA(n.handleBrushChange,null,e.props.onChange),data:i,x:Ms(e.props.x)?e.props.x:s.left,y:Ms(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Ms(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),nB(ZL(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=ZL(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),nB(ZL(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=tB(tB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:VA(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},cc(l)),Ws(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,tB(tB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),nB(ZL(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,p=rc(n.props.children,Dw),d=i.props,h=d.points,g=d.isRange,y=d.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&p&&m&&l>=0,w={};"axis"!==a&&p&&"click"===p.props.trigger?w={onClick:ZA(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:ZA(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:ZA(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,tB(tB({},i.props),w));if(b){var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());_=Fs(h,O,f),C=g&&y&&Fs(y,O,f)}else _=h[l],C=g&&y&&y[l];if(!Cs(_))return[x].concat(XL(n.renderActivePoints({item:i,activePoint:_,basePoint:C,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),nB(ZL(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,tB(tB({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=Cs(e.id)?Ns("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=ix(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){Cs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Cs(e.syncId)&&!Cs(this.props.syncId)&&this.addListener(),!Cs(e.syncId)&&Cs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Cs(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=rc(this.props.children,Dw);if(e&&DL(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=Ls(s).scale,l=Ls(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return tB(tB({},o),{},{xValue:f,yValue:p})}var d=pB(this.state,this.props.data,this.props.layout,i);return d?tB(tB({},o),d):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(!Cs(a.cx)||!Cs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[_T(c,u,l,f),_T(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=_T(d,h,g,v),b=_T(d,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=Ls(i);return ET({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=rc(e,Dw),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}),tB(tB({},Ws(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){BL.on(FL,this.handleReceiveSyncEvent),BL.setMaxListeners&&BL._maxListeners&&BL.setMaxListeners(BL._maxListeners+1)}},{key:"removeListener",value:function(){BL.removeListener(FL,this.handleReceiveSyncEvent),BL.setMaxListeners&&BL._maxListeners&&BL.setMaxListeners(BL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Cs(t)||BL.emit(FL,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(Cs(e.dataStartIndex)&&Cs(e.dataEndIndex))if(Cs(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var g=tB(tB({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=p[u]&&p[u].value,b=fB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:iB;this.setState(tB(tB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(tB({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===Js(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(hI,KL({},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=UL(t,2),r=n[0],o=n[1];return tB(tB({},e),{},nB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=UL(t,2),r=n[0],o=n[1];return tB(tB({},e),{},nB({},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=Js(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return IP(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return ET(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!oc(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=$L(n,HL),p=cc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(yc,KL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),fc(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",KL({className:Io("recharts-wrapper",o),style:tB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(yc,KL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),fc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&WL(n.prototype,o),i&&WL(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),nB(n,"displayName",r),nB(n,"defaultProps",tB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),nB(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(Cs(t.updateId)){var u=gB(e);return tB(tB(tB({},u),{},{updateId:0},h(tB(tB({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||!zs(c,t.prevMargin)){var l=gB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=tB(tB({},pB(t,n,a)),{},{updateId:t.updateId+1}),d=tB(tB(tB({},l),f),p);return tB(tB(tB({},d),h(tB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!uc(r,t.prevChildren)){var g=!Cs(n)?t.updateId:t.updateId+1;return tB(tB({updateId:g},h(tB(tB({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),nB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,n),t.createElement(wc,{className:"recharts-active-dot",key:n.key},r)})),n},bB=mB({chartName:"LineChart",GraphicalChild:UI,axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),wB=mB({chartName:"BarChart",GraphicalChild:fN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),xB=mB({chartName:"PieChart",GraphicalChild:kD,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var _B=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},CB=qR,OB=fa,SB=Object.prototype.hasOwnProperty;var kB=function(e,t,n){var r=e[t];SB.call(e,t)&&OB(r,n)&&(void 0!==n||t in e)||CB(e,t,n)},EB=kB,jB=qR;var AB=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?jB(n,s,c):EB(n,s,c)}return n},TB=AB,PB=kl;var MB=function(e,t){return e&&TB(t,PB(t),e)};var DB=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},RB=Lo,NB=dl,IB=DB,LB=Object.prototype.hasOwnProperty;var BB=function(e){if(!RB(e))return IB(e);var t=NB(e),n=[];for(var r in e)("constructor"!=r||!t&&LB.call(e,r))&&n.push(r);return n},FB=fl,zB=BB,HB=_l;var VB=function(e){return HB(e)?FB(e,!0):zB(e)},UB=AB,KB=VB;var $B=function(e,t){return e&&UB(t,KB(t),e)},WB={};!function(e,t){var n=Ho,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return WB},set exports(e){WB=e}},WB);var qB=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},GB=AB,ZB=Au;var YB=function(e,t){return GB(e,ZB(e),t)},XB=mu,JB=oD,QB=Au,eF=Cu,tF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)XB(t,QB(e)),e=JB(e);return t}:eF,nF=AB,rF=tF;var oF=function(e,t){return nF(e,rF(e),t)},iF=xu,aF=tF,sF=VB;var cF=function(e){return iF(e,sF,aF)},uF=Object.prototype.hasOwnProperty;var lF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&uF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},fF=Gc;var pF=function(e){var t=new e.constructor(e.byteLength);return new fF(t).set(new fF(e)),t},dF=pF;var hF=function(e,t){var n=t?dF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},gF=/\w*$/;var yF=function(e){var t=new e.constructor(e.source,gF.exec(e));return t.lastIndex=e.lastIndex,t},vF=Vo?Vo.prototype:void 0,mF=vF?vF.valueOf:void 0;var bF=pF;var wF=pF,xF=hF,_F=yF,CF=function(e){return mF?Object(mF.call(e)):{}},OF=function(e,t){var n=t?bF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},SF="[object Boolean]",kF="[object Date]",EF="[object Map]",jF="[object Number]",AF="[object RegExp]",TF="[object Set]",PF="[object String]",MF="[object Symbol]",DF="[object ArrayBuffer]",RF="[object DataView]",NF="[object Float32Array]",IF="[object Float64Array]",LF="[object Int8Array]",BF="[object Int16Array]",FF="[object Int32Array]",zF="[object Uint8Array]",HF="[object Uint8ClampedArray]",VF="[object Uint16Array]",UF="[object Uint32Array]";var KF=function(e,t,n){var r=e.constructor;switch(t){case DF:return wF(e);case SF:case kF:return new r(+e);case RF:return xF(e,n);case NF:case IF:case LF:case BF:case FF:case zF:case HF:case VF:case UF:return OF(e,n);case EF:return new r;case jF:case PF:return new r(e);case AF:return _F(e);case TF:return new r;case MF:return CF(e)}},$F=Lo,WF=Object.create,qF=function(){function e(){}return function(t){if(!$F(t))return{};if(WF)return WF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),GF=qF,ZF=oD,YF=dl;var XF=function(e){return"function"!=typeof e.constructor||YF(e)?{}:GF(ZF(e))},JF=nf,QF=li,ez="[object Map]";var tz=function(e){return QF(e)&&JF(e)==ez},nz=Ju,rz=Qu&&Qu.isMap,oz=rz?nz(rz):tz,iz=nf,az=li,sz="[object Set]";var cz=function(e){return az(e)&&iz(e)==sz},uz=Ju,lz=Qu&&Qu.isSet,fz=lz?uz(lz):cz,pz=Dc,dz=_B,hz=kB,gz=MB,yz=$B,vz=WB,mz=qB,bz=YB,wz=oF,xz=Tl,_z=cF,Cz=nf,Oz=lF,Sz=KF,kz=XF,Ez=ui,jz=zu,Az=oz,Tz=Lo,Pz=fz,Mz=kl,Dz=VB,Rz=1,Nz=2,Iz=4,Lz="[object Arguments]",Bz="[object Function]",Fz="[object GeneratorFunction]",zz="[object Object]",Hz={};Hz[Lz]=Hz["[object Array]"]=Hz["[object ArrayBuffer]"]=Hz["[object DataView]"]=Hz["[object Boolean]"]=Hz["[object Date]"]=Hz["[object Float32Array]"]=Hz["[object Float64Array]"]=Hz["[object Int8Array]"]=Hz["[object Int16Array]"]=Hz["[object Int32Array]"]=Hz["[object Map]"]=Hz["[object Number]"]=Hz[zz]=Hz["[object RegExp]"]=Hz["[object Set]"]=Hz["[object String]"]=Hz["[object Symbol]"]=Hz["[object Uint8Array]"]=Hz["[object Uint8ClampedArray]"]=Hz["[object Uint16Array]"]=Hz["[object Uint32Array]"]=!0,Hz["[object Error]"]=Hz[Bz]=Hz["[object WeakMap]"]=!1;var Vz=function e(t,n,r,o,i,a){var s,c=n&Rz,u=n&Nz,l=n&Iz;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!Tz(t))return t;var f=Ez(t);if(f){if(s=Oz(t),!c)return mz(t,s)}else{var p=Cz(t),d=p==Bz||p==Fz;if(jz(t))return vz(t,c);if(p==zz||p==Lz||d&&!i){if(s=u||d?{}:kz(t),!c)return u?wz(t,yz(s,t)):bz(t,gz(s,t))}else{if(!Hz[p])return i?t:{};s=Sz(t,p,c)}}a||(a=new pz);var h=a.get(t);if(h)return h;a.set(t,s),Pz(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Az(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?_z:xz:u?Dz:Mz)(t);return dz(g||t,(function(o,i){g&&(o=t[i=o]),hz(s,i,e(o,n,r,i,t,a))})),s},Uz=ws,Kz=zp;var $z=function(e,t){return t.length<2?e:Uz(e,Kz(t,0,-1))},Wz=hs,qz=UT,Gz=$z,Zz=vs;var Yz=function(e,t){return t=Wz(t,e),null==(e=Gz(e,t))||delete e[Zz(qz(t))]},Xz=hD;var Jz=lb;var Qz=function(e){return(null==e?0:e.length)?Jz(e,1):[]},eH=Qz,tH=Lb,nH=Gb;var rH=es,oH=Vz,iH=Yz,aH=hs,sH=AB,cH=function(e){return Xz(e)?void 0:e},uH=cF,lH=function(e){return nH(tH(e,void 0,eH),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=rH(t,(function(t){return t=aH(t,e),r||(r=t.length>1),t})),sH(e,uH(e),n),r&&(n=oH(n,7,cH));for(var o=t.length;o--;)iH(n,t[o]);return n})),fH=lH,pH=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],dH=["width","height","className","style","children","type"];function hH(e){return hH="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},hH(e)}function gH(){return gH=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},gH.apply(this,arguments)}function yH(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 vH(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,SH(r.key),r)}}function mH(e,t){return mH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mH(e,t)}function bH(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=xH(e);if(t){var o=xH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wH(e)}(this,n)}}function wH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xH(e){return xH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xH(e)}function _H(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 CH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){OH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OH(e,t,n){return(t=SH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=function(e,t){if("object"!==hH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hH(t)?t:String(t)}var kH="value",EH=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[kH]}),0):As(i[s])||i[s]<=0?0:i[s],CH(CH({},i),{},(OH(n={children:l},kH,r),OH(n,"depth",o),OH(n,"index",a),n))},jH=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},AH=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,CH(CH({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),CH(CH({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},TH=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[kH]*n;return CH(CH({},e),{},{area:As(t)||t<=0?0:t})}))}(r,a.width*a.height/t[kH]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=jH(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=AH(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=AH(s,u,a,!0),s.length=s.area=0),CH(CH({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},PH={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},MH=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&&mH(e,t)}(a,t.PureComponent);var n,r,o,i=bH(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 OH(wH(e=i.call.apply(i,[this].concat(n))),"state",CH({},PH)),OH(wH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),OH(wH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;rc(n.children,Dw)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;rc(n.children,Dw)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=EH({depth:0,node:CH(CH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=TH(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=EH({depth:0,node:CH(CH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=TH(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,n,r){var o=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=n.width,y=n.height,v=n.x,m=n.y,b=n.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(r||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?t.createElement(ob,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var i=r.x,p=r.y,g=r.width,y=r.height;return t.createElement(ob,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},t.createElement(wc,x,b>2&&!h?null:o.constructor.renderContentItem(e,CH(CH({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):t.createElement(wc,x,this.constructor.renderContentItem(e,CH(CH({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,n,r){var o=this,i=this.props,a=i.content,s=i.type,c=CH(CH(CH({},cc(this.props)),n),{},{root:e}),u=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&e.depth&&"nest"===s?null:t.createElement(wc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,c,u),n.children&&n.children.length?n.children.map((function(e,t){return o.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.nameKey,o=rc(n,Dw);if(!o)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:zA(l,r,""),value:zA(l,kH)}]:[];return t.cloneElement(o,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,n=this.props,r=n.nameKey,o=n.nestIndexContent,i=this.state.nestIndex;return t.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(n,i){var a=_s(n,r,"root"),s=null;return t.isValidElement(o)&&(s=t.cloneElement(o,n,i)),s=ci(o)?o(n,i):a,t.createElement("div",{onClick:e.handleNestIndex.bind(e,n,i),key:"nest-index-".concat(Ns()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!oc(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=e.type,c=yH(e,dH),u=cc(c);return t.createElement("div",{className:Io("recharts-wrapper",o),style:CH(CH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(yc,gH({},u,{width:n,height:"nest"===s?r-30:r}),this.renderAllNodes(),sc(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=EH({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=TH(n,e.aspectRatio);return CH(CH({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,n,r,o){if(t.isValidElement(e))return t.cloneElement(e,n);if(ci(e))return e(n);var i=n.x,a=n.y,s=n.width,c=n.height,u=n.index,l=null;s>10&&c>10&&n.children&&"nest"===r&&(l=t.createElement(YP,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=d_(n.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=t.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},n.name));var d=o||pH;return t.createElement("g",null,t.createElement(LP,gH({fill:n.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},fH(n,"children"),{role:"img"})),l,f)}}],r&&vH(n.prototype,r),o&&vH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();OH(MH,"displayName","Treemap"),OH(MH,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!ww.isSsr,isUpdateAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var DH=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},RH=yp,NH=DH;var IH=function(e,t){return e&&e.length?NH(e,RH(t)):0},LH=["width","height","className","style","children"],BH=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function FH(e){return FH="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},FH(e)}function zH(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 HH(){return HH=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},HH.apply(this,arguments)}function VH(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,YH(r.key),r)}}function UH(e,t){return UH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UH(e,t)}function KH(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=WH(e);if(t){var o=WH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $H(e)}(this,n)}}function $H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WH(e){return WH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WH(e)}function qH(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 GH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qH(Object(n),!0).forEach((function(t){ZH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZH(e,t,n){return(t=YH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=function(e,t){if("object"!==FH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FH(t)?t:String(t)}var XH={x:0,y:0},JH=function(e){return e.y+e.dy/2},QH=function(e){return e&&e.value||0},eV=function(e,t){return t.reduce((function(t,n){return t+QH(e[n])}),0)},tV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+JH(i)*QH(t[r])}),0)},nV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+JH(i)*QH(t[r])}),0)},rV=function(e,t){return e.y-t.y},oV=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},iV=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(rV);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},aV=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=eV(n,u.sourceLinks),f=tV(e,n,u.sourceLinks)/l;u.y+=(f-JH(u))*r}}},sV=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=eV(n,c.targetLinks),l=nV(e,n,c.targetLinks)/u;c.y+=(l-JH(c))*r}}},cV=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return GH(GH(GH({},e),n),{},{value:Math.max(eV(o,n.sourceLinks),eV(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||oV(i,c)}var u=TM(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=q_(e.map((function(e){return(t-(e.length-1)*n)/IH(e,QH)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return GH(GH({},e),{},{dy:QH(e)*o})}))}(l,r,a,s);iV(l,r,a);for(var p=1,d=1;d<=o;d++)sV(u,l,f,p*=.99),iV(l,r,a),aV(u,l,f,p),iV(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},uV=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&&UH(e,t)}(a,t.PureComponent);var n,r,o,i=KH(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 ZH($H(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=rc(r.children,Dw);i?this.setState((function(n){return"hover"===i.props.trigger?GH(GH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=rc(r.children,Dw);i?this.setState((function(e){return"hover"===i.props.trigger?GH(GH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=rc(r.children,Dw);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return GH(GH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return GH(GH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,n){var r=this,o=this.props,i=o.linkCurvature,a=o.link,s=o.margin,c=_s(s,"top")||0,u=_s(s,"left")||0;return t.createElement(wc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,o){var s=e.sy,l=e.ty,f=e.dy,p=n[e.source],d=n[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=GH({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:o,payload:GH(GH({},e),{},{source:p,target:d})},cc(a)),w={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return t.createElement(wc,HH({key:"link".concat(o)},w),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var n=this,r=this.props,o=r.node,i=r.margin,a=_s(i,"top")||0,s=_s(i,"left")||0;return t.createElement(wc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=GH(GH({},cc(o)),{},{x:i+s,y:c+a,width:u,height:l,index:r,payload:e}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return t.createElement(wc,HH({key:"node".concat(r)},p),n.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.width,o=e.height,i=e.nameKey,a=rc(n,Dw);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:r,height:o},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):XH,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:zA(r,n,""),value:zA(r,"value")}];if(r.source&&r.target){var o=zA(r.source,n,""),i=zA(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:zA(r,"value")}]}return[]}(l,f,i):[];return t.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!oc(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=zH(e,LH),c=this.state,u=c.links,l=c.nodes,f=cc(s);return t.createElement("div",{className:Io("recharts-wrapper",o),style:GH(GH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(yc,HH({},f,{width:n,height:r}),sc(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!zs(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=cV({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return GH(GH({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(ci(e))return e(n);var r=n.sourceX,o=n.sourceY,i=n.sourceControlX,a=n.targetX,s=n.targetY,c=n.targetControlX,u=n.linkWidth,l=zH(n,BH);return t.createElement("path",HH({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},cc(l)))}},{key:"renderNodeItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(LP,HH({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},cc(n),{role:"img"}))}}],r&&VH(n.prototype,r),o&&VH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lV(e){return lV="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},lV(e)}function fV(){return fV=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},fV.apply(this,arguments)}function pV(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,mV(r.key),r)}}function dV(e,t){return dV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dV(e,t)}function hV(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=yV(e);if(t){var o=yV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gV(e)}(this,n)}}function gV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yV(e){return yV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yV(e)}function vV(e,t,n){return(t=mV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mV(e){var t=function(e,t){if("object"!==lV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lV(t)?t:String(t)}ZH(uV,"displayName","Sankey"),ZH(uV,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),mB({chartName:"RadarChart",GraphicalChild:HD,axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mB({chartName:"ScatterChart",GraphicalChild:yL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL},{axisType:"zAxis",AxisComp:oL}],formatAxisMap:mN}),mB({chartName:"AreaChart",GraphicalChild:rL,axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),mB({chartName:"RadialBarChart",GraphicalChild:tR,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mB({chartName:"ComposedChart",GraphicalChild:[UI,rL,fN,yL],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL},{axisType:"zAxis",AxisComp:oL}],formatAxisMap:mN});var bV=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},wV=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&&dV(e,t)}(a,t.PureComponent);var n,r,o,i=hV(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 vV(gV(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.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=Io("recharts-trapezoid",c);return h?t.createElement(ob,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(ob,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",fV({},cc(e.props,!0),{className:g,d:bV(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",fV({},cc(this.props,!0),{className:g,d:bV(r,o,i,a,s)})))}}],r&&pV(n.prototype,r),o&&pV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function xV(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 _V(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 _V(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 _V(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 CV(e){return CV="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},CV(e)}function OV(){return OV=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},OV.apply(this,arguments)}function SV(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 kV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SV(Object(n),!0).forEach((function(t){MV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EV(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,DV(r.key),r)}}function jV(e,t){return jV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jV(e,t)}function AV(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=PV(e);if(t){var o=PV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TV(e)}(this,n)}}function TV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PV(e){return PV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PV(e)}function MV(e,t,n){return(t=DV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DV(e){var t=function(e,t){if("object"!==CV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CV(t)?t:String(t)}vV(wV,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var RV=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&&jV(e,t)}(a,t.PureComponent);var n,r,o,i=AV(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 MV(TV(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),MV(TV(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),MV(TV(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=kV(kV({},e),{},{stroke:e.stroke});return t.createElement(wc,OV({className:"recharts-funnel-trapezoid"},qs(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.x,e.x),i=Bs(n.y,e.y),a=Bs(n.upperWidth,e.upperWidth),s=Bs(n.lowerWidth,e.lowerWidth),c=Bs(n.height,e.height);return kV(kV({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Bs(e.x+e.upperWidth/2,e.x),f=Bs(e.y+e.height/2,e.y),p=Bs(0,e.upperWidth),d=Bs(0,e.lowerWidth),h=Bs(0,e.height);return kV(kV({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(wc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=Io("recharts-trapezoids",o);return t.createElement(wc,{className:s},this.renderTrapezoids(),(!i||a)&&eP.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):hD(e)?t.createElement(wV,OV({},n,e)):t.createElement(wV,n)}}],r&&EV(n.prototype,r),o&&EV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();MV(RV,"displayName","Funnel"),MV(RV,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ww.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),MV(RV,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=cc(e.props),i=nc(r,bx);return n&&n.length?n.map((function(e,t){return kV(kV(kV({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return kV(kV({},o),e.props)})):[]})),MV(RV,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return Es(n)?l=n:gi(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),MV(RV,"getComposedData",(function(e){var t=e.item,n=e.offset,r=RV.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=RV.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return zA(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=zA(e,i,0),u=zA(e,a,t),p=o;if(t!==m-1)(n=zA(r[t+1],i,0))instanceof Array&&(n=xV(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=xV(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return kV(kV({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},fH(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return kV(kV({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:kV(kV({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:kV(kV({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),mB({chartName:"FunnelChart",GraphicalChild:RV,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const NV=X.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}),an,sn),IV=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),LV=X.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),an),BV=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(UV,{children:[e.jsx(KV,{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(VV,{children:[r&&e.jsx(NV,{color:r}),t.name,": ",t.value]},t.value)}))]}):null,FV=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Dw,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(BV,{})})},zV=({payload:t,toggleData:n})=>e.jsx(HV,{children:null==t?void 0:t.map((t=>e.jsxs(VV,Object.assign({onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive},{children:[e.jsx(NV,{color:t.color}),t.value]}),t.value)))}),HV=X.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),VV=X.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}))),UV=X.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),KV=X.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4})));function $V(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 WV(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function qV(e){return qV="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},qV(e)}function GV(e){WV(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===qV(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 ZV(e,t){WV(2,arguments);var n=GV(e),r=$V(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function YV(e,t){WV(2,arguments);var n=GV(e),r=$V(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 XV(e){return XV="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},XV(e)}function JV(e,t){if(WV(2,arguments),!t||"object"!==XV(t))return new Date(NaN);var n=t.years?$V(t.years):0,r=t.months?$V(t.months):0,o=t.weeks?$V(t.weeks):0,i=t.days?$V(t.days):0,a=t.hours?$V(t.hours):0,s=t.minutes?$V(t.minutes):0,c=t.seconds?$V(t.seconds):0,u=GV(e),l=r||n?YV(u,r+12*n):u,f=i||o?ZV(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var QV={};function eU(){return QV}function tU(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 nU(e){WV(1,arguments);var t=GV(e);return t.setHours(0,0,0,0),t}var rU=864e5;var oU=6e4;function iU(e,t){WV(2,arguments);var n=nU(e),r=nU(t);return n.getTime()===r.getTime()}function aU(e){return aU="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},aU(e)}function sU(e){if(WV(1,arguments),!function(e){return WV(1,arguments),e instanceof Date||"object"===aU(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=GV(e);return!isNaN(Number(t))}function cU(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 uU(e,t){WV(2,arguments);var n=GV(e),r=GV(t),o=cU(n,r),i=Math.abs(function(e,t){WV(2,arguments);var n=nU(e),r=nU(t),o=n.getTime()-tU(n),i=r.getTime()-tU(r);return Math.round((o-i)/rU)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(cU(n,r)===-o));return 0===a?0:a}var lU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},fU="trunc";function pU(e){return e?lU[e]:lU[fU]}function dU(e,t,n){WV(2,arguments);var r=function(e,t){return WV(2,arguments),GV(e).getTime()-GV(t).getTime()}(e,t)/oU;return pU(null==n?void 0:n.roundingMethod)(r)}function hU(e,t){return WV(2,arguments),function(e,t){WV(2,arguments);var n=GV(e).getTime(),r=$V(t);return new Date(n+r)}(e,-$V(t))}var gU=864e5;function yU(e){WV(1,arguments);var t=GV(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 vU(e){WV(1,arguments);var t=GV(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=yU(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=yU(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var mU=6048e5;function bU(e){WV(1,arguments);var t=GV(e),n=yU(t).getTime()-function(e){WV(1,arguments);var t=vU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),yU(n)}(t).getTime();return Math.round(n/mU)+1}function wU(e,t){var n,r,o,i,a,s,c,u;WV(1,arguments);var l=eU(),f=$V(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 p=GV(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function xU(e,t){var n,r,o,i,a,s,c,u;WV(1,arguments);var l=GV(e),f=l.getUTCFullYear(),p=eU(),d=$V(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=wU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=wU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var _U=6048e5;function CU(e,t){WV(1,arguments);var n=GV(e),r=wU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;WV(1,arguments);var l=eU(),f=$V(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),p=xU(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),wU(d,t)}(n,t).getTime();return Math.round(r/_U)+1}function OU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var SU=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return OU("yy"===t?r%100:r,t.length)},kU=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):OU(n+1,2)},EU=function(e,t){return OU(e.getUTCDate(),t.length)},jU=function(e,t){return OU(e.getUTCHours()%12||12,t.length)},AU=function(e,t){return OU(e.getUTCHours(),t.length)},TU=function(e,t){return OU(e.getUTCMinutes(),t.length)},PU=function(e,t){return OU(e.getUTCSeconds(),t.length)},MU=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return OU(Math.floor(r*Math.pow(10,n-3)),t.length)},DU="midnight",RU="noon",NU="morning",IU="afternoon",LU="evening",BU="night",FU={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 SU(e,t)},Y:function(e,t,n,r){var o=xU(e,r),i=o>0?o:1-o;return"YY"===t?OU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):OU(i,t.length)},R:function(e,t){return OU(vU(e),t.length)},u:function(e,t){return OU(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 OU(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 OU(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 kU(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 OU(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=CU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):OU(o,t.length)},I:function(e,t,n){var r=bU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):OU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):EU(e,t)},D:function(e,t,n){var r=function(e){WV(1,arguments);var t=GV(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/gU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):OU(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 OU(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 OU(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 OU(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?RU:0===o?DU: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?LU:o>=12?IU:o>=4?NU:BU,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 jU(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):AU(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):OU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):OU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):TU(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):PU(e,t)},S:function(e,t){return MU(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return HU(o);case"XXXX":case"XX":return VU(o);default:return VU(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return HU(o);case"xxxx":case"xx":return VU(o);default:return VU(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+zU(o,":");default:return"GMT"+VU(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+zU(o,":");default:return"GMT"+VU(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return OU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return OU((r._originalDate||e).getTime(),t.length)}};function zU(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+OU(i,2)}function HU(e,t){return e%60==0?(e>0?"-":"+")+OU(Math.abs(e)/60,2):VU(e,t)}function VU(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+OU(Math.floor(o/60),2)+n+OU(o%60,2)}var UU=FU,KU=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"})}},$U=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"})}},WU={p:$U,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return KU(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}}",KU(o,t)).replace("{{time}}",$U(i,t))}},qU=WU,GU=["D","DD"],ZU=["YY","YYYY"];function YU(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 XU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function JU(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 QU={date:JU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:JU({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:JU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},eK={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function tK(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 nK={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:tK({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:tK({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:tK({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:tK({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:tK({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function rK(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 oK,iK={ordinalNumber:(oK={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(oK.matchPattern);if(!n)return null;var r=n[0],o=e.match(oK.parsePattern);if(!o)return null;var i=oK.valueCallback?oK.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:rK({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:rK({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:rK({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:rK({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:rK({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"})},aK={code:"en-US",formatDistance:function(e,t,n){var r,o=XU[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:QU,formatRelative:function(e,t,n,r){return eK[e]},localize:nK,match:iK,options:{weekStartsOn:0,firstWeekContainsDate:1}},sK=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cK=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,uK=/^'([^]*?)'?$/,lK=/''/g,fK=/[a-zA-Z]/;function pK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;WV(2,arguments);var x=String(t),_=eU(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:aK,O=$V(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:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=$V(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=GV(e);if(!sU(k))throw new RangeError("Invalid time value");var E=hU(k,tU(k)),j={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},A=x.match(cK).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,qU[t])(e,C.formatLong):e})).join("").match(sK).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(uK);if(!t)return e;return t[1].replace(lK,"'")}(r);var i,a=UU[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===ZU.indexOf(i))||YU(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==GU.indexOf(e)}(r)||YU(r,t,String(e)),a(E,r,C.localize,j);if(o.match(fK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function dK(e){return WV(1,arguments),GV(e).getDate()}function hK(e){WV(1,arguments);var t=GV(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 gK(e){WV(1,arguments);var t=GV(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function yK(e,t){WV(2,arguments);var n=GV(e),r=GV(t);return n.getTime()>r.getTime()}function vK(e,t){WV(2,arguments);var n=GV(e),r=GV(t);return n.getTime()<r.getTime()}function mK(e){return WV(1,arguments),function(e,t){WV(2,arguments);var n=GV(e),r=GV(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function bK(e,t){return WV(2,arguments),ZV(e,-$V(t))}function wK(e){return wK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},wK(e)}function xK(e,t){if(WV(2,arguments),"object"!==wK(t)||null===t)throw new RangeError("values parameter must be an object");var n=GV(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){WV(2,arguments);var n=GV(e),r=$V(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=hK(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate($V(t.date)),null!=t.hours&&n.setHours($V(t.hours)),null!=t.minutes&&n.setMinutes($V(t.minutes)),null!=t.seconds&&n.setSeconds($V(t.seconds)),null!=t.milliseconds&&n.setMilliseconds($V(t.milliseconds)),n)}function _K(e,t){WV(2,arguments);var n=GV(e),r=$V(t);return n.setDate(r),n}function CK(e){return CK="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},CK(e)}function OK(e,t){if(WV(2,arguments),!t||"object"!==CK(t))return new Date(NaN);var n=t.years?$V(t.years):0,r=t.months?$V(t.months):0,o=t.weeks?$V(t.weeks):0,i=t.days?$V(t.days):0,a=t.hours?$V(t.hours):0,s=t.minutes?$V(t.minutes):0,c=t.seconds?$V(t.seconds):0,u=function(e,t){return WV(2,arguments),YV(e,-$V(t))}(e,r+12*n),l=bK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const SK=X.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"}))),kK=X.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),EK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),jK=X.div({display:"flex"}),AK=X.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),TK=X.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"}})),PK=X.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),MK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),DK=X.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}})),an),RK=X.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`}}}))),NK=X.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),IK=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(DK,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(NK,{children:o}),e.jsx(RK,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(un,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
|
|
202
|
+
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!==zx&&(e.parser=t,e.Parser=t.Parser,e.parse=function(){return t.parse.apply(t,arguments)})}(Hx);var Vx={},Ux={},Kx={get exports(){return Ux},set exports(e){Ux=e}},$x={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}},Wx=function(e,t,n,r){if(!$x.hasOwnProperty(n))throw new Error("Cannot convert to "+n);if(!$x[n].hasOwnProperty(t))throw new Error("Cannot convert from "+t+" to "+n);var o=$x[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}}(Wx);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}(Kx,Ux),Object.defineProperty(Vx,"__esModule",{value:!0}),Vx.flip=Xx;var qx=function(e){return e&&e.__esModule?e:{default:e}}(Ux);function Gx(e,t){return"MathExpression"===e.type?function(e,t){switch(e=function(e,t){var n=(0,qx.default)(e.left,e.right,t),r=Gx(n.left,t),o=Gx(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)&&(Zx(r.right,o.right)?n=(0,qx.default)(r.left,o.left,t):Zx(r.right,o.left)&&(n=(0,qx.default)(r.left,o.right,t)),r=Gx(n.left,t),o=Gx(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 Jx(o);r.type===o.type&&Yx(r.type)&&((e=Object.assign({},r)).value="+"===i?r.value+o.value:r.value-o.value);if(Yx(r.type)&&("+"===o.operator||"-"===o.operator)&&"MathExpression"===o.type){if(r.type===o.left.type)return(e=Object.assign({},e)).left=Gx({type:"MathExpression",operator:i,left:r,right:o.left},t),e.right=o.right,e.operator="-"===i?Xx(o.operator):o.operator,Gx(e,t);if(r.type===o.right.type)return(e=Object.assign({},e)).left=Gx({type:"MathExpression",operator:"-"===i?Xx(o.operator):o.operator,left:r,right:o.right},t),e.right=o.left,Gx(e,t)}if("MathExpression"===r.type&&("+"===r.operator||"-"===r.operator)&&Yx(o.type)){if(o.type===r.left.type)return(e=Object.assign({},r)).left=Gx({type:"MathExpression",operator:i,left:r.left,right:o},t),Gx(e,t);if(o.type===r.right.type)return e=Object.assign({},r),"-"===r.operator?(e.right=Gx({type:"MathExpression",operator:"-"===i?"+":"-",left:o,right:r.right},t),e.operator="-"===i?"-":"+"):e.right=Gx({type:"MathExpression",operator:i,left:r.right,right:o},t),e.right.value<0&&(e.right.value*=-1,e.operator="-"===e.operator?"+":"-"),Gx(e,t)}return e}(e,t);case"/":return function(e,t){if(!Yx(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 Yx(e.left.left.type)&&Yx(e.left.right.type)?(e.left.left.value/=e.right.value,e.left.right.value/=e.right.value,Gx(e.left,t)):e;if(Yx(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(Yx(e.left.left.type)&&Yx(e.left.right.type))return e.left.left.value*=e.right.value,e.left.right.value*=e.right.value,e.left}else{if(Yx(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(Yx(e.right.left.type)&&Yx(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&&Yx(e.right.type))return e.right.value*=e.left.value,e.right}return e}(e)}return e}(e,t):"Calc"===e.type?Gx(e.value,t):e}function Zx(e,t){return e.type===t.type&&e.value===t.value}function Yx(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 Xx(e){return"+"===e?"-":"+"}function Jx(e){return Yx(e.type)?e.value=-e.value:"MathExpression"==e.type&&(e.left=Jx(e.left),e.right=Jx(e.right)),e}Vx.default=Gx;var Qx={};!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=Vx,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}({get exports(){return Qx},set exports(e){Qx=e}},Qx),function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=a(Fx),r=Hx,o=a(Vx),i=a(Qx);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}(Cx,_x);var e_=c(_x);function t_(e){return t_="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},t_(e)}function n_(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 r_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?n_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):n_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o_(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==t_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==t_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===t_(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i_(e){return function(e){if(Array.isArray(e))return a_(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 a_(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 a_(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 a_(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 s_={widthCache:{},cacheCount:0},c_=2e3,u_={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},l_=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","lineHeight","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],f_="recharts_measurement_span";var p_=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(i_(e),["-",t.toLowerCase()]):[].concat(i_(e),[t])}),[]).join("")),":").concat((r=n,o=e[n],l_.indexOf(r)>=0&&o===+o?"".concat(o,"px"):o),";");var r,o,i}),"")},d_=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(null==e||ww.isSsr)return{width:0,height:0};var n="".concat(e),r=p_(t),o="".concat(n,"-").concat(r);if(s_.widthCache[o])return s_.widthCache[o];try{var i=document.getElementById(f_);i||((i=document.createElement("span")).setAttribute("id",f_),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var a=r_(r_({},u_),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 s_.widthCache[o]=c,++s_.cacheCount>c_&&(s_.cacheCount=0,s_.widthCache={}),c}catch(e){return{width:0,height:0}}},h_=["dx","dy","textAnchor","verticalAnchor","scaleToFit","angle","lineHeight","capHeight","className","breakAll"];function g_(e){return g_="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},g_(e)}function y_(){return y_=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},y_.apply(this,arguments)}function v_(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 m_(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,j_(r.key),r)}}function b_(e,t){return b_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b_(e,t)}function w_(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=__(e);if(t){var o=__(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===g_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return x_(e)}(this,n)}}function x_(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function __(e){return __=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},__(e)}function C_(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 O_(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 O_(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 O_(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 S_(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 k_(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?S_(Object(n),!0).forEach((function(t){E_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E_(e,t,n){return(t=j_(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j_(e){var t=function(e,t){if("object"!==g_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==g_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===g_(t)?t:String(t)}var A_=/[ \f\n\r\t\v\u2028\u2029]+/,T_=function(e){try{var t=[];return Cs(e.children)||(t=e.breakAll?e.children.toString().split(""):e.children.toString().split(A_)),{wordsWithComputedWidth:t.map((function(t){return{word:t,width:d_(t,e.style).width}})),spaceWidth:e.breakAll?0:d_(" ",e.style).width}}catch(e){return null}},P_=function(e){return[{words:Cs(e)?[]:e.toString().split(A_)}]},M_=function(e,t){if((e.width||e.scaleToFit)&&!ww.isSsr&&t){var n=T_(e);return n?function(e,t,n,r,o){var i=Ms(e.maxLines),a=e.children,s=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce((function(e,t){var i=t.word,a=t.width,s=e[e.length-1];if(s&&(null==r||o||s.width+a+n<r))s.words.push(i),s.width+=a+n;else{var c={words:[i],width:a};e.push(c)}return e}),[])},c=s(t);if(!i)return c;for(var u,l=function(t){var n=a.slice(0,t),o=T_(k_(k_({},e),{},{children:n+"…"})).wordsWithComputedWidth,i=s(o),c=i.length>e.maxLines||function(e){return e.reduce((function(e,t){return e.width>t.width?e:t}))}(i).width>r;return[c,i]},f=0,p=a.length-1,d=0;f<=p&&d<=a.length-1;){var h=Math.floor((f+p)/2),g=C_(l(h-1),2),y=g[0],v=g[1],m=C_(l(h),1)[0];if(y||m||(f=h+1),y&&m&&(p=h-1),!y&&m){u=v;break}d++}return u||c}(e,n.wordsWithComputedWidth,n.spaceWidth,e.width,e.scaleToFit):P_(e.children)}return P_(e.children)},D_=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&&b_(e,t)}(a,t.Component);var n,r,o,i=w_(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 E_(x_(e=i.call.apply(i,[this].concat(n))),"state",{}),e}return n=a,r=[{key:"render",value:function(){var e=this.props,n=e.dx,r=e.dy,o=e.textAnchor,i=e.verticalAnchor,s=e.scaleToFit,c=e.angle,u=e.lineHeight,l=e.capHeight,f=e.className,p=e.breakAll,d=v_(e,h_),h=this.state.wordsByLines;if(!Ds(d.x)||!Ds(d.y))return null;var g,y=d.x+(Ms(n)?n:0),v=d.y+(Ms(r)?r:0);switch(i){case"start":g=e_("calc(".concat(l,")"));break;case"middle":g=e_("calc(".concat((h.length-1)/2," * -").concat(u," + (").concat(l," / 2))"));break;default:g=e_("calc(".concat(h.length-1," * -").concat(u,")"))}var m=[];if(s){var b=h[0].width,w=this.props.width;m.push("scale(".concat((Ms(w)?w/b:1)/b,")"))}return c&&m.push("rotate(".concat(c,", ").concat(y,", ").concat(v,")")),m.length&&(d.transform=m.join(" ")),t.createElement("text",y_({},cc(d,!0),{x:y,y:v,className:Io("recharts-text",f),textAnchor:o,fill:d.fill.includes("url")?a.defaultProps.fill:d.fill}),h.map((function(e,n){return t.createElement("tspan",{x:y,dy:0===n?g:u,key:n},e.words.join(p?"":" "))})))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.width!==t.prevWidth||e.scaleToFit!==t.prevScaleToFit||e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll){var n=e.children!==t.prevChildren||e.style!==t.prevStyle||e.breakAll!==t.prevBreakAll;return{prevWidth:e.width,prevScaleToFit:e.scaleToFit,prevChildren:e.children,prevStyle:e.style,wordsByLines:M_(e,n)}}return null}}],r&&m_(n.prototype,r),o&&m_(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();E_(D_,"defaultProps",{x:0,y:0,lineHeight:"1em",capHeight:"0.71em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",fill:"#808080"});var R_=wf;var N_=function(e,t){return R_(e,t)},I_=bi;var L_=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&&!I_(a):n(a,s)))var s=a,c=i}return c};var B_=function(e,t){return e>t},F_=L_,z_=B_,H_=rp;var V_=function(e){return e&&e.length?F_(e,H_,z_):void 0};var U_=function(e,t){return e<t},K_=L_,$_=U_,W_=rp;var q_=function(e){return e&&e.length?K_(e,W_,$_):void 0},G_=es,Z_=yp,Y_=bb,X_=ui;var J_=lb,Q_=function(e,t){return(X_(e)?G_:Y_)(e,Z_(t))};var eC=function(e,t){return J_(Q_(e,t),1)};function tC(e,t){return null==e||null==t?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nC(e,t){return null==e||null==t?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rC(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=tC,n=(t,n)=>tC(e(t),n),r=(t,n)=>e(t)-n):(t=e===tC||e===nC?e:oC,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 oC(){return 0}function iC(e){return null===e?NaN:+e}const aC=rC(tC).right;rC(iC).center;class sC extends Map{constructor(e,t=uC){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(cC(this,e))}has(e){return super.has(cC(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 cC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function uC(e){return null!==e&&"object"==typeof e?e.valueOf():e}function lC(e,t){return(null==e||!(e>=e))-(null==t||!(t>=t))||(e<t?-1:e>t?1:0)}const fC=Math.sqrt(50),pC=Math.sqrt(10),dC=Math.sqrt(2);function hC(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>=fC?10:i>=pC?5:i>=dC?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?hC(e,t,2*n):[s,c,u]}function gC(e,t,n){if(!((n=+n)>0))return[];if((e=+e)===(t=+t))return[e];const r=t<e,[o,i,a]=r?hC(t,e,n):hC(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 yC(e,t,n){return hC(e=+e,t=+t,n=+n)[2]}function vC(e,t,n){n=+n;const r=(t=+t)<(e=+e),o=r?yC(t,e,n):yC(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function mC(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 bC(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 wC(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?lC:function(e=tC){if(e===tC)return lC;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);wC(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(xC(e,n,t),o(e[r],i)>0&&xC(e,n,r);a<s;){for(xC(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}0===o(e[n],i)?xC(e,n,s):(++s,xC(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function xC(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _C(e,t,n=iC){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 CC(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function OC(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 SC=Symbol("implicit");function kC(){var e=new sC,t=[],n=[],r=SC;function o(o){let i=e.get(o);if(void 0===i){if(r!==SC)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 sC;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 kC(t,n).unknown(r)},CC.apply(o,arguments),o}function EC(){var e,t,n=kC().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,p=f?a:i,d=f?i:a;e=(d-p)/Math.max(1,n-c+2*u),s&&(e=Math.floor(e)),p+=(d-p-e*(n-c))*l,t=e*(1-c),s&&(p=Math.round(p),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 p+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 EC(r(),[i,a]).round(s).paddingInner(c).paddingOuter(u).align(l)},CC.apply(f(),arguments)}function jC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return jC(t())},e}function AC(){return jC(EC.apply(null,arguments).paddingInner(1))}function TC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function PC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function MC(){}var DC=.7,RC=1/DC,NC="\\s*([+-]?\\d+)\\s*",IC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",LC="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",BC=/^#([0-9a-f]{3,8})$/,FC=new RegExp(`^rgb\\(${NC},${NC},${NC}\\)$`),zC=new RegExp(`^rgb\\(${LC},${LC},${LC}\\)$`),HC=new RegExp(`^rgba\\(${NC},${NC},${NC},${IC}\\)$`),VC=new RegExp(`^rgba\\(${LC},${LC},${LC},${IC}\\)$`),UC=new RegExp(`^hsl\\(${IC},${LC},${LC}\\)$`),KC=new RegExp(`^hsla\\(${IC},${LC},${LC},${IC}\\)$`),$C={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 WC(){return this.rgb().formatHex()}function qC(){return this.rgb().formatRgb()}function GC(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=BC.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ZC(t):3===n?new QC(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?YC(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?YC(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=FC.exec(e))?new QC(t[1],t[2],t[3],1):(t=zC.exec(e))?new QC(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=HC.exec(e))?YC(t[1],t[2],t[3],t[4]):(t=VC.exec(e))?YC(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=UC.exec(e))?iO(t[1],t[2]/100,t[3]/100,1):(t=KC.exec(e))?iO(t[1],t[2]/100,t[3]/100,t[4]):$C.hasOwnProperty(e)?ZC($C[e]):"transparent"===e?new QC(NaN,NaN,NaN,0):null}function ZC(e){return new QC(e>>16&255,e>>8&255,255&e,1)}function YC(e,t,n,r){return r<=0&&(e=t=n=NaN),new QC(e,t,n,r)}function XC(e){return e instanceof MC||(e=GC(e)),e?new QC((e=e.rgb()).r,e.g,e.b,e.opacity):new QC}function JC(e,t,n,r){return 1===arguments.length?XC(e):new QC(e,t,n,null==r?1:r)}function QC(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function eO(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}`}function tO(){const e=nO(this.opacity);return`${1===e?"rgb(":"rgba("}${rO(this.r)}, ${rO(this.g)}, ${rO(this.b)}${1===e?")":`, ${e})`}`}function nO(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function rO(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oO(e){return((e=rO(e))<16?"0":"")+e.toString(16)}function iO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sO(e,t,n,r)}function aO(e){if(e instanceof sO)return new sO(e.h,e.s,e.l,e.opacity);if(e instanceof MC||(e=GC(e)),!e)return new sO;if(e instanceof sO)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 sO(a,s,c,e.opacity)}function sO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function cO(e){return(e=(e||0)%360)<0?e+360:e}function uO(e){return Math.max(0,Math.min(1,e||0))}function lO(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}TC(MC,GC,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WC,formatHex:WC,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return aO(this).formatHsl()},formatRgb:qC,toString:qC}),TC(QC,JC,PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new QC(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new QC(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new QC(rO(this.r),rO(this.g),rO(this.b),nO(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:eO,formatHex:eO,formatHex8:function(){return`#${oO(this.r)}${oO(this.g)}${oO(this.b)}${oO(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:tO,toString:tO})),TC(sO,(function(e,t,n,r){return 1===arguments.length?aO(e):new sO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new sO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new sO(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 QC(lO(e>=240?e-240:e+120,o,r),lO(e,o,r),lO(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sO(cO(this.h),uO(this.s),uO(this.l),nO(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=nO(this.opacity);return`${1===e?"hsl(":"hsla("}${cO(this.h)}, ${100*uO(this.s)}%, ${100*uO(this.l)}%${1===e?")":`, ${e})`}`}}));const fO=Math.PI/180,pO=180/Math.PI,dO=.96422,hO=1,gO=.82521,yO=4/29,vO=6/29,mO=3*vO*vO,bO=vO*vO*vO;function wO(e){if(e instanceof xO)return new xO(e.l,e.a,e.b,e.opacity);if(e instanceof kO)return EO(e);e instanceof QC||(e=XC(e));var t,n,r=SO(e.r),o=SO(e.g),i=SO(e.b),a=_O((.2225045*r+.7168786*o+.0606169*i)/hO);return r===o&&o===i?t=n=a:(t=_O((.4360747*r+.3850649*o+.1430804*i)/dO),n=_O((.0139322*r+.0971045*o+.7141733*i)/gO)),new xO(116*a-16,500*(t-a),200*(a-n),e.opacity)}function xO(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function _O(e){return e>bO?Math.pow(e,1/3):e/mO+yO}function CO(e){return e>vO?e*e*e:mO*(e-yO)}function OO(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function SO(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function kO(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function EO(e){if(isNaN(e.h))return new xO(e.l,0,0,e.opacity);var t=e.h*fO;return new xO(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}TC(xO,(function(e,t,n,r){return 1===arguments.length?wO(e):new xO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return new xO(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new xO(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new QC(OO(3.1338561*(t=dO*CO(t))-1.6168667*(e=hO*CO(e))-.4906146*(n=gO*CO(n))),OO(-.9787684*t+1.9161415*e+.033454*n),OO(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),TC(kO,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof kO)return new kO(e.h,e.c,e.l,e.opacity);if(e instanceof xO||(e=wO(e)),0===e.a&&0===e.b)return new kO(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*pO;return new kO(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new kO(e,t,n,null==r?1:r)}),PC(MC,{brighter(e){return new kO(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new kO(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return EO(this).rgb()}}));var jO=-.14861,AO=1.78277,TO=-.29227,PO=-.90649,MO=1.97294,DO=MO*PO,RO=MO*AO,NO=AO*TO-PO*jO;function IO(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof LO)return new LO(e.h,e.s,e.l,e.opacity);e instanceof QC||(e=XC(e));var t=e.r/255,n=e.g/255,r=e.b/255,o=(NO*r+DO*t-RO*n)/(NO+DO-RO),i=r-o,a=(MO*(n-o)-TO*i)/PO,s=Math.sqrt(a*a+i*i)/(MO*o*(1-o)),c=s?Math.atan2(a,i)*pO-120:NaN;return new LO(c<0?c+360:c,s,o,e.opacity)}(e):new LO(e,t,n,null==r?1:r)}function LO(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}TC(LO,IO,PC(MC,{brighter(e){return e=null==e?RC:Math.pow(RC,e),new LO(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?DC:Math.pow(DC,e),new LO(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*fO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),o=Math.sin(e);return new QC(255*(t+n*(jO*r+AO*o)),255*(t+n*(TO*r+PO*o)),255*(t+n*(MO*r)),this.opacity)}}));var BO=e=>()=>e;function FO(e,t){return function(n){return e+n*t}}function zO(e){return 1==(e=+e)?HO: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):BO(isNaN(t)?n:t)}}function HO(e,t){var n=t-e;return n?FO(e,n):BO(isNaN(e)?t:e)}var VO=function e(t){var n=zO(t);function r(e,t){var r=n((e=JC(e)).r,(t=JC(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=HO(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 UO(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 KO(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]=XO(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 $O(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function WO(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function qO(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]=XO(e[n],t[n]):o[n]=t[n];return function(e){for(n in r)o[n]=r[n](e);return o}}var GO=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZO=new RegExp(GO.source,"g");function YO(e,t){var n,r,o,i=GO.lastIndex=ZO.lastIndex=0,a=-1,s=[],c=[];for(e+="",t+="";(n=GO.exec(e))&&(r=ZO.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:WO(n,r)})),i=ZO.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 XO(e,t){var n,r=typeof t;return null==t||"boolean"===r?BO(t):("number"===r?WO:"string"===r?(n=GC(t))?(t=n,VO):YO:t instanceof GC?VO:t instanceof Date?$O:function(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}(t)?UO:Array.isArray(t)?KO:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?qO:WO)(e,t)}function JO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var QO=1e-12;function eS(e){return((e=Math.exp(e))+1/e)/2}function tS(e){return function t(n){function r(t,r){var o=e((t=IO(t)).h,(r=IO(r)).h),i=HO(t.s,r.s),a=HO(t.l,r.l),s=HO(t.opacity,r.opacity);return function(e){return t.h=o(e),t.s=i(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}function nS(e,t){void 0===t&&(t=e,e=XO);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 rS(e){return+e}!function e(t,n,r){function o(e,o){var i,a,s=e[0],c=e[1],u=e[2],l=o[0],f=o[1],p=o[2],d=l-s,h=f-c,g=d*d+h*h;if(g<QO)a=Math.log(p/u)/t,i=function(e){return[s+e*d,c+e*h,u*Math.exp(t*e*a)]};else{var y=Math.sqrt(g),v=(p*p-u*u+r*g)/(2*u*n*y),m=(p*p-u*u-r*g)/(2*p*n*y),b=Math.log(Math.sqrt(v*v+1)-v),w=Math.log(Math.sqrt(m*m+1)-m);a=(w-b)/t,i=function(e){var r=e*a,o=eS(b),i=u/(n*y)*(o*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(t*r+b)-function(e){return((e=Math.exp(e))-1/e)/2}(b));return[s+i*d,c+i*h,u*o/eS(t*r+b)]}}return i.duration=1e3*a*t/Math.SQRT2,i}return o.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},o}(Math.SQRT2,2,4),tS((function(e,t){var n=t-e;return n?FO(e,n>180||n<-180?n-360*Math.round(n/360):n):BO(isNaN(e)?t:e)})),tS(HO);var oS=[0,1];function iS(e){return e}function aS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:function(e){return function(){return e}}(isNaN(t)?NaN:.5)}function sS(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=aS(o,r),i=n(a,i)):(r=aS(r,o),i=n(i,a)),function(e){return i(r(e))}}function cS(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]=aS(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(t){var n=aC(e,t,1,r)-1;return i[n](o[n](t))}}function uS(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lS(){var e,t,n,r,o,i,a=oS,s=oS,c=XO,u=iS;function l(){var e=Math.min(a.length,s.length);return u!==iS&&(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?cS:sS,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),WO)))(n)))},f.domain=function(e){return arguments.length?(a=Array.from(e,rS),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=JO,l()},f.clamp=function(e){return arguments.length?(u=!!e||iS,l()):u!==iS},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 fS(){return lS()(iS,iS)}function pS(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 dS(e){return(e=pS(Math.abs(e)))?e[1]:NaN}var hS,gS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function yS(e){if(!(t=gS.exec(e)))throw new Error("invalid format: "+e);var t;return new vS({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 vS(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 mS(e,t){var n=pS(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")}yS.prototype=vS.prototype,vS.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 bS={"%":(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)=>mS(100*e,t),r:mS,s:function(e,t){var n=pS(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(hS=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")+pS(e,Math.max(0,t+i-1))[0]},X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function wS(e){return e}var xS,_S,CS,OS=Array.prototype.map,SS=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function kS(e){var t,n,r=void 0===e.grouping||void 0===e.thousands?wS:(t=OS.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?wS:function(e){return function(t){return t.replace(/[0-9]/g,(function(t){return e[+t]}))}}(OS.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=yS(e)).fill,n=e.align,f=e.sign,p=e.symbol,d=e.zero,h=e.width,g=e.comma,y=e.precision,v=e.trim,m=e.type;"n"===m?(g=!0,m="g"):bS[m]||(void 0===y&&(y=12),v=!0,m="g"),(d||"0"===t&&"="===n)&&(d=!0,t="0",n="=");var b="$"===p?o:"#"===p&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===p?i:/[%p]/.test(m)?c:"",x=bS[m],_=/[defgprs%]/.test(m);function C(e){var o,i,c,p=b,C=w;if("c"===m)C=x(e)+C,e="";else{var O=(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)),O&&0==+e&&"+"!==f&&(O=!1),p=(O?"("===f?f:u:"-"===f||"("===f?"":f)+p,C=("s"===m?SS[8+hS/3]:"")+C+(O&&"("===f?")":""),_)for(o=-1,i=e.length;++o<i;)if(48>(c=e.charCodeAt(o))||c>57){C=(46===c?a+e.slice(o+1):e.slice(o))+C,e=e.slice(0,o);break}}g&&!d&&(e=r(e,1/0));var S=p.length+e.length+C.length,k=S<h?new Array(h-S+1).join(t):"";switch(g&&d&&(e=r(k+e,k.length?h-C.length:1/0),k=""),n){case"<":e=p+e+C+k;break;case"=":e=p+k+e+C;break;case"^":e=k.slice(0,S=k.length>>1)+p+e+C+k.slice(S);break;default:e=k+p+e+C}return s(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),C.toString=function(){return e+""},C}return{format:f,formatPrefix:function(e,t){var n=f(((e=yS(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(dS(t)/3))),o=Math.pow(10,-r),i=SS[8+r/3];return function(e){return n(o*e)+i}}}}function ES(e,t,n,r){var o,i=vC(e,t,n);switch((r=yS(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(dS(t)/3)))-dS(Math.abs(e)))}(i,a))||(r.precision=o),CS(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,dS(t)-dS(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,-dS(Math.abs(e)))}(i))||(r.precision=o-2*("%"===r.type))}return _S(r)}function jS(e){var t=e.domain;return e.ticks=function(e){var n=t();return gC(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){var r=t();return ES(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=yC(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 AS(){var e=fS();return e.copy=function(){return uS(e,AS())},CC.apply(e,arguments),jS(e)}function TS(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 PS(e){return Math.log(e)}function MS(e){return Math.exp(e)}function DS(e){return-Math.log(-e)}function RS(e){return-Math.exp(-e)}function NS(e){return isFinite(e)?+("1e"+e):e<0?0:e}function IS(e){return(t,n)=>-e(-t,n)}function LS(e){const t=e(PS,MS),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?NS:e===Math.E?Math.exp:t=>Math.pow(e,t)}(i),n()[0]<0?(r=IS(r),o=IS(o),e(DS,RS)):e(PS,MS),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),p=r(s);const d=null==e?10:+e;let h=[];if(!(i%1)&&p-f<d){if(f=Math.floor(f),p=Math.ceil(p),a>0){for(;f<=p;++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<=p;++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<d&&(h=gC(a,s,d))}else h=gC(f,p,Math.min(p-f,d)).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=yS(n)).precision||(n.trim=!0),n=_S(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(TS(n(),{floor:e=>o(Math.floor(r(e))),ceil:e=>o(Math.ceil(r(e)))})),t}function BS(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function FS(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function zS(e){var t=1,n=e(BS(t),FS(t));return n.constant=function(n){return arguments.length?e(BS(t=+n),FS(t)):t},jS(n)}function HS(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function VS(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function US(e){return e<0?-e*e:e*e}function KS(e){var t=e(iS,iS),n=1;return t.exponent=function(t){return arguments.length?1===(n=+t)?e(iS,iS):.5===n?e(VS,US):e(HS(n),HS(1/n)):n},jS(t)}function $S(){var e=KS(lS());return e.copy=function(){return uS(e,$S()).exponent(e.exponent())},CC.apply(e,arguments),e}function WS(e){return Math.sign(e)*e*e}xS=kS({thousands:",",grouping:[3],currency:["$",""]}),_S=xS.format,CS=xS.formatPrefix;const qS=new Date,GS=new Date;function ZS(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=>ZS((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)=>(qS.setTime(+t),GS.setTime(+r),e(qS),e(GS),Math.floor(n(qS,GS))),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 YS=ZS((()=>{}),((e,t)=>{e.setTime(+e+t)}),((e,t)=>t-e));YS.every=e=>(e=Math.floor(e),isFinite(e)&&e>0?e>1?ZS((t=>{t.setTime(Math.floor(t/e)*e)}),((t,n)=>{t.setTime(+t+n*e)}),((t,n)=>(n-t)/e)):YS:null),YS.range;const XS=1e3,JS=60*XS,QS=60*JS,ek=24*QS,tk=7*ek,nk=30*ek,rk=365*ek,ok=ZS((e=>{e.setTime(e-e.getMilliseconds())}),((e,t)=>{e.setTime(+e+t*XS)}),((e,t)=>(t-e)/XS),(e=>e.getUTCSeconds()));ok.range;const ik=ZS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XS)}),((e,t)=>{e.setTime(+e+t*JS)}),((e,t)=>(t-e)/JS),(e=>e.getMinutes()));ik.range;const ak=ZS((e=>{e.setUTCSeconds(0,0)}),((e,t)=>{e.setTime(+e+t*JS)}),((e,t)=>(t-e)/JS),(e=>e.getUTCMinutes()));ak.range;const sk=ZS((e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*XS-e.getMinutes()*JS)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getHours()));sk.range;const ck=ZS((e=>{e.setUTCMinutes(0,0,0)}),((e,t)=>{e.setTime(+e+t*QS)}),((e,t)=>(t-e)/QS),(e=>e.getUTCHours()));ck.range;const uk=ZS((e=>e.setHours(0,0,0,0)),((e,t)=>e.setDate(e.getDate()+t)),((e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*JS)/ek),(e=>e.getDate()-1));uk.range;const lk=ZS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ek),(e=>e.getUTCDate()-1));lk.range;const fk=ZS((e=>{e.setUTCHours(0,0,0,0)}),((e,t)=>{e.setUTCDate(e.getUTCDate()+t)}),((e,t)=>(t-e)/ek),(e=>Math.floor(e/ek)));function pk(e){return ZS((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())*JS)/tk))}fk.range;const dk=pk(0),hk=pk(1),gk=pk(2),yk=pk(3),vk=pk(4),mk=pk(5),bk=pk(6);function wk(e){return ZS((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)/tk))}dk.range,hk.range,gk.range,yk.range,vk.range,mk.range,bk.range;const xk=wk(0),_k=wk(1),Ck=wk(2),Ok=wk(3),Sk=wk(4),kk=wk(5),Ek=wk(6);xk.range,_k.range,Ck.range,Ok.range,Sk.range,kk.range,Ek.range;const jk=ZS((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()));jk.range;const Ak=ZS((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()));Ak.range;const Tk=ZS((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()));Tk.every=e=>isFinite(e=Math.floor(e))&&e>0?ZS((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,Tk.range;const Pk=ZS((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 Mk(e,t,n,r,o,i){const a=[[ok,1,XS],[ok,5,5*XS],[ok,15,15*XS],[ok,30,30*XS],[i,1,JS],[i,5,5*JS],[i,15,15*JS],[i,30,30*JS],[o,1,QS],[o,3,3*QS],[o,6,6*QS],[o,12,12*QS],[r,1,ek],[r,2,2*ek],[n,1,tk],[t,1,nk],[t,3,3*nk],[e,1,rk]];function s(t,n,r){const o=Math.abs(n-t)/r,i=rC((([,,e])=>e)).right(a,o);if(i===a.length)return e.every(vC(t/rk,n/rk,r));if(0===i)return YS.every(Math.max(vC(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]}Pk.every=e=>isFinite(e=Math.floor(e))&&e>0?ZS((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,Pk.range;const[Dk,Rk]=Mk(Pk,Ak,xk,fk,ck,ak),[Nk,Ik]=Mk(Tk,jk,dk,uk,sk,ik);function Lk(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 Bk(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 Fk(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}var zk,Hk,Vk,Uk,Kk={"-":"",_:" ",0:"0"},$k=/^\s*\d+/,Wk=/^%/,qk=/[\\^$*+?|[\]().{}]/g;function Gk(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 Zk(e){return e.replace(qk,"\\$&")}function Yk(e){return new RegExp("^(?:"+e.map(Zk).join("|")+")","i")}function Xk(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}function Jk(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Qk(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function eE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function tE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function nE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function rE(e,t,n){var r=$k.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function oE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function iE(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 aE(e,t,n){var r=$k.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function sE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function cE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function uE(e,t,n){var r=$k.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function lE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function fE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function pE(e,t,n){var r=$k.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function dE(e,t,n){var r=$k.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function hE(e,t,n){var r=$k.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function gE(e,t,n){var r=Wk.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function yE(e,t,n){var r=$k.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function vE(e,t,n){var r=$k.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mE(e,t){return Gk(e.getDate(),t,2)}function bE(e,t){return Gk(e.getHours(),t,2)}function wE(e,t){return Gk(e.getHours()%12||12,t,2)}function xE(e,t){return Gk(1+uk.count(Tk(e),e),t,3)}function _E(e,t){return Gk(e.getMilliseconds(),t,3)}function CE(e,t){return _E(e,t)+"000"}function OE(e,t){return Gk(e.getMonth()+1,t,2)}function SE(e,t){return Gk(e.getMinutes(),t,2)}function kE(e,t){return Gk(e.getSeconds(),t,2)}function EE(e){var t=e.getDay();return 0===t?7:t}function jE(e,t){return Gk(dk.count(Tk(e)-1,e),t,2)}function AE(e){var t=e.getDay();return t>=4||0===t?vk(e):vk.ceil(e)}function TE(e,t){return e=AE(e),Gk(vk.count(Tk(e),e)+(4===Tk(e).getDay()),t,2)}function PE(e){return e.getDay()}function ME(e,t){return Gk(hk.count(Tk(e)-1,e),t,2)}function DE(e,t){return Gk(e.getFullYear()%100,t,2)}function RE(e,t){return Gk((e=AE(e)).getFullYear()%100,t,2)}function NE(e,t){return Gk(e.getFullYear()%1e4,t,4)}function IE(e,t){var n=e.getDay();return Gk((e=n>=4||0===n?vk(e):vk.ceil(e)).getFullYear()%1e4,t,4)}function LE(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Gk(t/60|0,"0",2)+Gk(t%60,"0",2)}function BE(e,t){return Gk(e.getUTCDate(),t,2)}function FE(e,t){return Gk(e.getUTCHours(),t,2)}function zE(e,t){return Gk(e.getUTCHours()%12||12,t,2)}function HE(e,t){return Gk(1+lk.count(Pk(e),e),t,3)}function VE(e,t){return Gk(e.getUTCMilliseconds(),t,3)}function UE(e,t){return VE(e,t)+"000"}function KE(e,t){return Gk(e.getUTCMonth()+1,t,2)}function $E(e,t){return Gk(e.getUTCMinutes(),t,2)}function WE(e,t){return Gk(e.getUTCSeconds(),t,2)}function qE(e){var t=e.getUTCDay();return 0===t?7:t}function GE(e,t){return Gk(xk.count(Pk(e)-1,e),t,2)}function ZE(e){var t=e.getUTCDay();return t>=4||0===t?Sk(e):Sk.ceil(e)}function YE(e,t){return e=ZE(e),Gk(Sk.count(Pk(e),e)+(4===Pk(e).getUTCDay()),t,2)}function XE(e){return e.getUTCDay()}function JE(e,t){return Gk(_k.count(Pk(e)-1,e),t,2)}function QE(e,t){return Gk(e.getUTCFullYear()%100,t,2)}function ej(e,t){return Gk((e=ZE(e)).getUTCFullYear()%100,t,2)}function tj(e,t){return Gk(e.getUTCFullYear()%1e4,t,4)}function nj(e,t){var n=e.getUTCDay();return Gk((e=n>=4||0===n?Sk(e):Sk.ceil(e)).getUTCFullYear()%1e4,t,4)}function rj(){return"+0000"}function oj(){return"%"}function ij(e){return+e}function aj(e){return Math.floor(+e/1e3)}!function(e){zk=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=Yk(o),l=Xk(o),f=Yk(i),p=Xk(i),d=Yk(a),h=Xk(a),g=Yk(s),y=Xk(s),v=Yk(c),m=Xk(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:mE,e:mE,f:CE,g:RE,G:IE,H:bE,I:wE,j:xE,L:_E,m:OE,M:SE,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:ij,s:aj,S:kE,u:EE,U:jE,V:TE,w:PE,W:ME,x:null,X:null,y:DE,Y:NE,Z:LE,"%":oj},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:BE,e:BE,f:UE,g:ej,G:nj,H:FE,I:zE,j:HE,L:VE,m:KE,M:$E,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:ij,s:aj,S:WE,u:qE,U:GE,V:YE,w:XE,W:JE,x:null,X:null,y:QE,Y:tj,Z:rj,"%":oj},x={a:function(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(e,t,n){var r=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 O(e,t,n,r)},d:cE,e:cE,f:hE,g:oE,G:rE,H:lE,I:lE,j:uE,L:dE,m:sE,M:fE,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:aE,Q:yE,s:vE,S:pE,u:Qk,U:eE,V:tE,w:Jk,W:nE,x:function(e,t,r){return O(e,n,t,r)},X:function(e,t,n){return O(e,r,t,n)},y:oE,Y:rE,Z:iE,"%":gE};function _(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=Kk[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 C(e,t){return function(n){var r,o,i=Fk(1900,void 0,1);if(O(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=Bk(Fk(i.y,0,1))).getUTCDay(),r=o>4||0===o?_k.ceil(r):_k(r),r=lk.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=Lk(Fk(i.y,0,1))).getDay(),r=o>4||0===o?hk.ceil(r):hk(r),r=uk.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?Bk(Fk(i.y,0,1)).getUTCDay():Lk(Fk(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,Bk(i)):Lk(i)}}function O(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 Kk?t.charAt(a++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(t,b),w.x=_(n,w),w.X=_(r,w),w.c=_(t,w),{format:function(e){var t=_(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=C(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=_(e+="",w);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+="",!0);return t.toString=function(){return e},t}}}(e),Hk=zk.format,zk.parse,Vk=zk.utcFormat,Uk=zk.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 sj="%Y-%m-%dT%H:%M:%S.%LZ";function cj(e){return new Date(e)}function uj(e){return e instanceof Date?+e:+new Date(+e)}function lj(e,t,n,r,o,i,a,s,c,u){var l=fS(),f=l.invert,p=l.domain,d=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?d: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?p(Array.from(e,uj)):p().map(cj)},l.ticks=function(t){var n=p();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=p();return e&&"function"==typeof e.range||(e=t(n[0],n[n.length-1],null==e?10:e)),e?p(TS(n,e)):l},l.copy=function(){return uS(l,lj(e,t,n,r,o,i,a,s,c,u))},l}function fj(){var e,t,n,r,o,i=0,a=1,s=iS,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(XO),u.rangeRound=l(JO),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 pj(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dj(){var e=KS(fj());return e.copy=function(){return pj(e,dj()).exponent(e.exponent())},OC.apply(e,arguments)}function hj(){var e,t,n,r,o,i,a,s=0,c=.5,u=1,l=1,f=iS,p=!1;function d(e){return isNaN(e=+e)?a:(e=.5+((e=+i(e))-t)*(l*e<l*t?r:o),f(p?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=nS(e,[n,r,o]),d):[f(0),f(.5),f(1)]}}return d.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,d):[s,c,u]},d.clamp=function(e){return arguments.length?(p=!!e,d):p},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.range=h(XO),d.rangeRound=h(JO),d.unknown=function(e){return arguments.length?(a=e,d):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,d}}function gj(){var e=KS(hj());return e.copy=function(){return pj(e,gj()).exponent(e.exponent())},OC.apply(e,arguments)}Date.prototype.toISOString||Vk(sj),+new Date("2000-01-01T00:00:00.000Z")||Uk(sj);var yj,vj=Object.freeze({__proto__:null,scaleBand:EC,scaleDiverging:function e(){var t=jS(hj()(iS));return t.copy=function(){return pj(t,e())},OC.apply(t,arguments)},scaleDivergingLog:function e(){var t=LS(hj()).domain([.1,1,10]);return t.copy=function(){return pj(t,e()).base(t.base())},OC.apply(t,arguments)},scaleDivergingPow:gj,scaleDivergingSqrt:function(){return gj.apply(null,arguments).exponent(.5)},scaleDivergingSymlog:function e(){var t=zS(hj());return t.copy=function(){return pj(t,e()).constant(t.constant())},OC.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,rS),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,rS):[0,1],jS(r)},scaleImplicit:SC,scaleLinear:AS,scaleLog:function e(){const t=LS(lS()).domain([1,10]);return t.copy=()=>uS(t,e()).base(t.base()),CC.apply(t,arguments),t},scaleOrdinal:kC,scalePoint:AC,scalePow:$S,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]=_C(n,e/t);return a}function a(e){return null==e||isNaN(e=+e)?t:r[aC(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(tC),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)},CC.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[aC(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)},CC.apply(jS(s),arguments)},scaleRadial:function e(){var t,n=fS(),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(WS(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,rS)).map(WS)),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)},CC.apply(i,arguments),jS(i)},scaleSequential:function e(){var t=jS(fj()(iS));return t.copy=function(){return pj(t,e())},OC.apply(t,arguments)},scaleSequentialLog:function e(){var t=LS(fj()).domain([1,10]);return t.copy=function(){return pj(t,e()).base(t.base())},OC.apply(t,arguments)},scaleSequentialPow:dj,scaleSequentialQuantile:function e(){var t=[],n=iS;function r(e){if(null!=e&&!isNaN(e=+e))return n((aC(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(tC),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 bC(e);if(t>=1)return mC(e);var r,o=(r-1)*t,i=Math.floor(o),a=mC(wC(e,i).subarray(0,i+1));return a+(bC(e.subarray(i+1))-a)*(o-i)}}(t,r/e)))},r.copy=function(){return e(n).domain(t)},OC.apply(r,arguments)},scaleSequentialSqrt:function(){return dj.apply(null,arguments).exponent(.5)},scaleSequentialSymlog:function e(){var t=zS(fj());return t.copy=function(){return pj(t,e()).constant(t.constant())},OC.apply(t,arguments)},scaleSqrt:function(){return $S.apply(null,arguments).exponent(.5)},scaleSymlog:function e(){var t=zS(lS());return t.copy=function(){return uS(t,e()).constant(t.constant())},CC.apply(t,arguments)},scaleThreshold:function e(){var t,n=[.5],r=[0,1],o=1;function i(e){return null!=e&&e<=e?r[aC(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)},CC.apply(i,arguments)},scaleTime:function(){return CC.apply(lj(Nk,Ik,Tk,jk,dk,uk,sk,ik,ok,Hk).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},scaleUtc:function(){return CC.apply(lj(Dk,Rk,Pk,Ak,xk,lk,ck,ak,ok,Vk).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},tickFormat:ES}),mj={},bj={},wj=1e9,xj=!0,_j="[DecimalError] ",Cj=_j+"Invalid argument: ",Oj=_j+"Exponent out of range: ",Sj=Math.floor,kj=Math.pow,Ej=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jj=1e7,Aj=7,Tj=9007199254740991,Pj=Sj(Tj/Aj),Mj={};function Dj(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)),xj?Uj(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/Aj))>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)/jj|0,c[i]%=jj;for(n&&(c.unshift(n),++o),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=o,xj?Uj(t,f):t}function Rj(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Cj+e)}function Nj(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=Aj-r.length)&&(i+=zj(n)),i+=r;a=e[t],(n=Aj-(r=a+"").length)&&(i+=zj(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}Mj.absoluteValue=Mj.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},Mj.comparedTo=Mj.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},Mj.decimalPlaces=Mj.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Aj;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},Mj.dividedBy=Mj.div=function(e){return Ij(this,new this.constructor(e))},Mj.dividedToIntegerBy=Mj.idiv=function(e){var t=this.constructor;return Uj(Ij(this,new t(e),0,1),t.precision)},Mj.equals=Mj.eq=function(e){return!this.cmp(e)},Mj.exponent=function(){return Bj(this)},Mj.greaterThan=Mj.gt=function(e){return this.cmp(e)>0},Mj.greaterThanOrEqualTo=Mj.gte=function(e){return this.cmp(e)>=0},Mj.isInteger=Mj.isint=function(){return this.e>this.d.length-2},Mj.isNegative=Mj.isneg=function(){return this.s<0},Mj.isPositive=Mj.ispos=function(){return this.s>0},Mj.isZero=function(){return 0===this.s},Mj.lessThan=Mj.lt=function(e){return this.cmp(e)<0},Mj.lessThanOrEqualTo=Mj.lte=function(e){return this.cmp(e)<1},Mj.logarithm=Mj.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(yj))throw Error(_j+"NaN");if(n.s<1)throw Error(_j+(n.s?"NaN":"-Infinity"));return n.eq(yj)?new r(0):(xj=!1,t=Ij(Hj(n,i),Hj(e,i),i),xj=!0,Uj(t,o))},Mj.minus=Mj.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Kj(t,e):Dj(t,(e.s=-e.s,e))},Mj.modulo=Mj.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(!(e=new r(e)).s)throw Error(_j+"NaN");return n.s?(xj=!1,t=Ij(n,e,0,1).times(e),xj=!0,n.minus(t)):Uj(new r(n),o)},Mj.naturalExponential=Mj.exp=function(){return Lj(this)},Mj.naturalLogarithm=Mj.ln=function(){return Hj(this)},Mj.negated=Mj.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},Mj.plus=Mj.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dj(t,e):Kj(t,(e.s=-e.s,e))},Mj.precision=Mj.sd=function(e){var t,n,r,o=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(Cj+e);if(t=Bj(o)+1,n=(r=o.d.length-1)*Aj+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},Mj.squareRoot=Mj.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(_j+"NaN")}for(e=Bj(s),xj=!1,0==(o=Math.sqrt(+s))||o==1/0?(((t=Nj(s.d)).length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=Sj((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(Ij(s,i,a+2)).times(.5),Nj(i.d).slice(0,a)===(t=Nj(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&"4999"==t){if(Uj(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if("9999"!=t)break;a+=4}return xj=!0,Uj(r,n)},Mj.times=Mj.mul=function(e){var t,n,r,o,i,a,s,c,u,l=this,f=l.constructor,p=l.d,d=(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=p.length)<(u=d.length)&&(i=p,p=d,d=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]+d[r]*p[o-r-1]+t,i[o--]=s%jj|0,t=s/jj|0;i[o]=(i[o]+t)%jj|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,xj?Uj(e,f.precision):e},Mj.toDecimalPlaces=Mj.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(Rj(e,0,wj),void 0===t?t=r.rounding:Rj(t,0,8),Uj(n,e+Bj(n)+1,t))},Mj.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=$j(r,!0):(Rj(e,0,wj),void 0===t?t=o.rounding:Rj(t,0,8),n=$j(r=Uj(new o(r),e+1,t),!0,e+1)),n},Mj.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?$j(o):(Rj(e,0,wj),void 0===t?t=i.rounding:Rj(t,0,8),n=$j((r=Uj(new i(o),e+Bj(o)+1,t)).abs(),!1,e+Bj(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)},Mj.toInteger=Mj.toint=function(){var e=this,t=e.constructor;return Uj(new t(e),Bj(e)+1,t.rounding)},Mj.toNumber=function(){return+this},Mj.toPower=Mj.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(yj);if(!(s=new c(s)).s){if(e.s<1)throw Error(_j+"Infinity");return s}if(s.eq(yj))return s;if(r=c.precision,e.eq(yj))return Uj(s,r);if(a=(t=e.e)>=(n=e.d.length-1),i=s.s,a){if((n=u<0?-u:u)<=Tj){for(o=new c(yj),t=Math.ceil(r/Aj+4),xj=!1;n%2&&Wj((o=o.times(s)).d,t),0!==(n=Sj(n/2));)Wj((s=s.times(s)).d,t);return xj=!0,e.s<0?new c(yj).div(o):Uj(o,r)}}else if(i<0)throw Error(_j+"NaN");return i=i<0&&1&e.d[Math.max(t,n)]?-1:1,s.s=1,xj=!1,o=e.times(Hj(s,r+12)),xj=!0,(o=Lj(o)).s=i,o},Mj.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return void 0===e?r=$j(o,(n=Bj(o))<=i.toExpNeg||n>=i.toExpPos):(Rj(e,1,wj),void 0===t?t=i.rounding:Rj(t,0,8),r=$j(o=Uj(new i(o),e,t),e<=(n=Bj(o))||n<=i.toExpNeg,e)),r},Mj.toSignificantDigits=Mj.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(Rj(e,1,wj),void 0===t?t=n.rounding:Rj(t,0,8)),Uj(new n(this),e,t)},Mj.toString=Mj.valueOf=Mj.val=Mj.toJSON=Mj[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Bj(e),n=e.constructor;return $j(e,t<=n.toExpNeg||t>=n.toExpPos)};var Ij=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%jj|0,r=n/jj|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*jj+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a){var s,c,u,l,f,p,d,h,g,y,v,m,b,w,x,_,C,O,S=r.constructor,k=r.s==o.s?1:-1,E=r.d,j=o.d;if(!r.s)return new S(r);if(!o.s)throw Error(_j+"Division by zero");for(c=r.e-o.e,C=j.length,x=E.length,h=(d=new S(k)).d=[],u=0;j[u]==(E[u]||0);)++u;if(j[u]>(E[u]||0)&&--c,(m=null==i?i=S.precision:a?i+(Bj(r)-Bj(o))+1:i)<0)return new S(0);if(m=m/Aj+2|0,u=0,1==C)for(l=0,j=j[0],m++;(u<x||l)&&m--;u++)b=l*jj+(E[u]||0),h[u]=b/j|0,l=b%j|0;else{for((l=jj/(j[0]+1)|0)>1&&(j=e(j,l),E=e(E,l),C=j.length,x=E.length),w=C,y=(g=E.slice(0,C)).length;y<C;)g[y++]=0;(O=j.slice()).unshift(0),_=j[0],j[1]>=jj/2&&++_;do{l=0,(s=t(j,g,C,y))<0?(v=g[0],C!=y&&(v=v*jj+(g[1]||0)),(l=v/_|0)>1?(l>=jj&&(l=jj-1),1==(s=t(f=e(j,l),g,p=f.length,y=g.length))&&(l--,n(f,C<p?O:j,p))):(0==l&&(s=l=1),f=j.slice()),(p=f.length)<y&&f.unshift(0),n(g,f,y),-1==s&&(s=t(j,g,C,y=g.length))<1&&(l++,n(g,C<y?O: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(),d.e=c,Uj(d,a?i+Bj(d)+1:i)}}();function Lj(e,t){var n,r,o,i,a,s=0,c=0,u=e.constructor,l=u.precision;if(Bj(e)>16)throw Error(Oj+Bj(e));if(!e.s)return new u(yj);for(null==t?(xj=!1,a=l):a=t,i=new u(.03125);e.abs().gte(.1);)e=e.times(i),c+=5;for(a+=Math.log(kj(2,c))/Math.LN10*2+5|0,n=r=o=new u(yj),u.precision=a;;){if(r=Uj(r.times(e),a),n=n.times(++s),Nj((i=o.plus(Ij(r,n,a))).d).slice(0,a)===Nj(o.d).slice(0,a)){for(;c--;)o=Uj(o.times(o),a);return u.precision=l,null==t?(xj=!0,Uj(o,l)):o}o=i}}function Bj(e){for(var t=e.e*Aj,n=e.d[0];n>=10;n/=10)t++;return t}function Fj(e,t,n){if(t>e.LN10.sd())throw xj=!0,n&&(e.precision=n),Error(_j+"LN10 precision limit exceeded");return Uj(new e(e.LN10),t)}function zj(e){for(var t="";e--;)t+="0";return t}function Hj(e,t){var n,r,o,i,a,s,c,u,l,f=1,p=e,d=p.d,h=p.constructor,g=h.precision;if(p.s<1)throw Error(_j+(p.s?"NaN":"-Infinity"));if(p.eq(yj))return new h(0);if(null==t?(xj=!1,u=g):u=t,p.eq(10))return null==t&&(xj=!0),Fj(h,u);if(u+=10,h.precision=u,r=(n=Nj(d)).charAt(0),i=Bj(p),!(Math.abs(i)<15e14))return c=Fj(h,u+2,g).times(i+""),p=Hj(new h(r+"."+n.slice(1)),u-10).plus(c),h.precision=g,null==t?(xj=!0,Uj(p,g)):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=Nj((p=p.times(e)).d)).charAt(0),f++;for(i=Bj(p),r>1?(p=new h("0."+n),i++):p=new h(r+"."+n.slice(1)),s=a=p=Ij(p.minus(yj),p.plus(yj),u),l=Uj(p.times(p),u),o=3;;){if(a=Uj(a.times(l),u),Nj((c=s.plus(Ij(a,new h(o),u))).d).slice(0,u)===Nj(s.d).slice(0,u))return s=s.times(2),0!==i&&(s=s.plus(Fj(h,u+2,g).times(i+""))),s=Ij(s,new h(f),u),h.precision=g,null==t?(xj=!0,Uj(s,g)):s;s=c,o+=2}}function Vj(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=Sj(n/Aj),e.d=[],r=(n+1)%Aj,n<0&&(r+=Aj),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=Aj;r<o;)e.d.push(+t.slice(r,r+=Aj));t=t.slice(r),r=Aj-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),xj&&(e.e>Pj||e.e<-Pj))throw Error(Oj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Uj(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+=Aj,o=t,u=f[l=0];else{if((l=Math.ceil((r+1)/Aj))>=(i=f.length))return e;for(u=i=f[l],a=1;i>=10;i/=10)a++;o=(r%=Aj)-Aj+a}if(void 0!==n&&(s=u/(i=kj(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/kj(10,a-o):0:f[l-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return c?(i=Bj(e),f.length=1,t=t-i-1,f[0]=kj(10,(Aj-t%Aj)%Aj),e.e=Sj(-t/Aj)||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=kj(10,Aj-r),f[l]=o>0?(u/kj(10,a-o)%kj(10,o)|0)*i:0),c)for(;;){if(0==l){(f[0]+=i)==jj&&(f[0]=1,++e.e);break}if(f[l]+=i,f[l]!=jj)break;f[l--]=0,i=1}for(r=f.length;0===f[--r];)f.pop();if(xj&&(e.e>Pj||e.e<-Pj))throw Error(Oj+Bj(e));return e}function Kj(e,t){var n,r,o,i,a,s,c,u,l,f,p=e.constructor,d=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),xj?Uj(t,d):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(d/Aj),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]=jj-1;--c[i],c[o]+=jj}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,xj?Uj(t,d):t):new p(0)}function $j(e,t,n){var r,o=Bj(e),i=Nj(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+zj(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+zj(-o-1)+i,n&&(r=n-a)>0&&(i+=zj(r))):o>=a?(i+=zj(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+zj(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=zj(r))),e.s<0?"-"+i:i}function Wj(e,t){if(e.length>t)return e.length=t,!0}function qj(e){if(!e||"object"!=typeof e)throw Error(_j+"Object expected");var t,n,r,o=["precision",1,wj,"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(!(Sj(r)===r&&r>=o[t+1]&&r<=o[t+2]))throw Error(Cj+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(Cj+n+": "+r);this[n]=new this(r)}return this}var Gj=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(Cj+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])):Vj(t,e.toString())}if("string"!=typeof e)throw Error(Cj+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!Ej.test(e))throw Error(Cj+e);Vj(t,e)}if(i.prototype=Mj,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=qj,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"});yj=new Gj(1);var Zj=Gj,Yj=u(Object.freeze({__proto__:null,get Decimal(){return Gj},default:Zj})),Xj={};function Jj(e){return function(e){if(Array.isArray(e))return Qj(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 Qj(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 Qj(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 Qj(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(Xj,"__esModule",{value:!0}),Xj.memoize=Xj.reverse=Xj.compose=Xj.map=Xj.range=Xj.curry=Xj.PLACE_HOLDER=void 0;var eA=function(e){return e},tA={"@@functional/placeholder":!0};Xj.PLACE_HOLDER=tA;var nA=function(e){return e===tA},rA=function(e){return function t(){return 0===arguments.length||1===arguments.length&&nA(arguments.length<=0?void 0:arguments[0])?t:e.apply(void 0,arguments)}},oA=function(e){return function e(t,n){return 1===t?n:rA((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!==tA})).length;return a>=t?n.apply(void 0,o):e(t-a,rA((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 nA(e)?t.shift():e}));return n.apply(void 0,Jj(i).concat(t))})))}))}(e.length,e)};Xj.curry=oA;Xj.range=function(e,t){for(var n=[],r=e;r<t;++r)n[r-e]=r;return n};var iA=oA((function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map((function(e){return t[e]})).map(e)}));Xj.map=iA;Xj.compose=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)return eA;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))}};Xj.reverse=function(e){return Array.isArray(e)?e.reverse():e.split("").reverse.join("")};Xj.memoize=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 aA={};Object.defineProperty(aA,"__esModule",{value:!0}),aA.default=void 0;var sA=function(e){return e&&e.__esModule?e:{default:e}}(Yj),cA=Xj;var uA=(0,cA.curry)((function(e,t,n){var r=+e;return r+n*(+t-r)})),lA=(0,cA.curry)((function(e,t,n){var r=t-+e;return(n-e)/(r=r||1/0)})),fA=(0,cA.curry)((function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))})),pA={rangeStep:function(e,t,n){for(var r=new sA.default(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 sA.default(e).abs().log(10).toNumber())+1},interpolateNumber:uA,uninterpolateNumber:lA,uninterpolateTruncation:fA};aA.default=pA,Object.defineProperty(bj,"__esModule",{value:!0}),bj.getTickValuesFixedDomain=bj.getTickValues=bj.getNiceTickValues=void 0;var dA=yA(Yj),hA=Xj,gA=yA(aA);function yA(e){return e&&e.__esModule?e:{default:e}}function vA(e){return function(e){if(Array.isArray(e))return wA(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||bA(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 mA(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)||bA(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 bA(e,t){if(e){if("string"==typeof e)return wA(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)?wA(e,t):void 0}}function wA(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 xA(e){var t=mA(e,2),n=t[0],r=t[1],o=n,i=r;return n>r&&(o=r,i=n),[o,i]}function _A(e,t,n){if(e.lte(0))return new dA.default(0);var r=gA.default.getDigitCount(e.toNumber()),o=new dA.default(10).pow(r),i=e.div(o),a=1!==r?.05:.1,s=new dA.default(Math.ceil(i.div(a).toNumber())).add(n).mul(a).mul(o);return t?s:new dA.default(Math.ceil(s))}function CA(e,t,n){var r=1,o=new dA.default(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new dA.default(10).pow(gA.default.getDigitCount(e)-1),o=new dA.default(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new dA.default(Math.floor(e)))}else 0===e?o=new dA.default(Math.floor((t-1)/2)):n||(o=new dA.default(Math.floor(e)));var a=Math.floor((t-1)/2),s=(0,hA.compose)((0,hA.map)((function(e){return o.add(new dA.default(e-a).mul(r)).toNumber()})),hA.range);return s(0,t)}function OA(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 dA.default(0),tickMin:new dA.default(0),tickMax:new dA.default(0)};var i,a=_A(new dA.default(t).sub(e).div(n-1),r,o);i=e<=0&&t>=0?new dA.default(0):(i=new dA.default(e).add(t).div(2)).sub(new dA.default(i).mod(a));var s=Math.ceil(i.sub(e).div(a).toNumber()),c=Math.ceil(new dA.default(t).sub(i).div(a).toNumber()),u=s+c+1;return u>n?OA(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 dA.default(s).mul(a)),tickMax:i.add(new dA.default(c).mul(a))})}var SA=(0,hA.memoize)((function(e){var t=mA(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=mA(xA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0){var l=u===1/0?[c].concat(vA((0,hA.range)(0,o-1).map((function(){return 1/0})))):[].concat(vA((0,hA.range)(0,o-1).map((function(){return-1/0}))),[u]);return n>r?(0,hA.reverse)(l):l}if(c===u)return CA(c,o,i);var f=OA(c,u,a,i),p=f.step,d=f.tickMin,h=f.tickMax,g=gA.default.rangeStep(d,h.add(new dA.default(.1).mul(p)),p);return n>r?(0,hA.reverse)(g):g}));bj.getNiceTickValues=SA;var kA=(0,hA.memoize)((function(e){var t=mA(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=mA(xA([n,r]),2),c=s[0],u=s[1];if(c===-1/0||u===1/0)return[n,r];if(c===u)return CA(c,o,i);var l=_A(new dA.default(u).sub(c).div(a-1),i,0),f=(0,hA.compose)((0,hA.map)((function(e){return new dA.default(c).add(new dA.default(e).mul(l)).toNumber()})),hA.range),p=f(0,a).filter((function(e){return e>=c&&e<=u}));return n>r?(0,hA.reverse)(p):p}));bj.getTickValues=kA;var EA=(0,hA.memoize)((function(e,t){var n=mA(e,2),r=n[0],o=n[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=mA(xA([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=_A(new dA.default(c).sub(s).div(u-1),i,0),f=[].concat(vA(gA.default.rangeStep(new dA.default(s),new dA.default(c).sub(new dA.default(.99).mul(l)),l)),[c]);return r>o?(0,hA.reverse)(f):f}));bj.getTickValuesFixedDomain=EA,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"getTickValues",{enumerable:!0,get:function(){return t.getTickValues}}),Object.defineProperty(e,"getNiceTickValues",{enumerable:!0,get:function(){return t.getNiceTickValues}}),Object.defineProperty(e,"getTickValuesFixedDomain",{enumerable:!0,get:function(){return t.getTickValuesFixedDomain}});var t=bj}(mj);var jA=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function AA(){return AA=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},AA.apply(this,arguments)}function TA(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 PA(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 PA(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 PA(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function MA(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 DA(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=MA(e,jA),f=cc(l),p=a.map((function(e,a){var l=s(e,i),p=l.x,d=l.y,h=l.value,g=l.errorVal;if(!g)return null;var y,v,m=[];if(Array.isArray(g)){var b=TA(g,2);y=b[0],v=b[1]}else y=v=g;if("vertical"===r){var w=c.scale,x=d+n,_=x+o,C=x-o,O=w(h-y),S=w(h+v);m.push({x1:S,y1:_,x2:S,y2:C}),m.push({x1:O,y1:x,x2:S,y2:x}),m.push({x1:O,y1:_,x2:O,y2:C})}else if("horizontal"===r){var k=u.scale,E=p+n,j=E-o,A=E+o,T=k(h-y),P=k(h+v);m.push({x1:j,y1:P,x2:A,y2:P}),m.push({x1:E,y1:T,x2:E,y2:P}),m.push({x1:j,y1:T,x2:A,y2:T})}return t.createElement(wc,AA({className:"recharts-errorBar",key:"bar-".concat(a)},f),m.map((function(e,n){return t.createElement("line",AA({},e,{key:"line-".concat(n)}))})))}));return t.createElement(wc,{className:"recharts-errorBars"},p)}function RA(e){return RA="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},RA(e)}function NA(e){return function(e){if(Array.isArray(e))return IA(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 IA(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 IA(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 IA(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 LA(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 BA(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?LA(Object(n),!0).forEach((function(t){FA(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function FA(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==RA(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==RA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===RA(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zA(e,t,n){return Cs(e)||Cs(t)?n:Ds(t)?_s(e,t,n):ci(t)?t(e):n}function HA(e,t,n,r){var o=eC(e,(function(e){return zA(e,t)}));if("number"===n){var i=o.filter((function(e){return Ms(e)||parseFloat(e)}));return i.length?[q_(i),V_(i)]:[1/0,-1/0]}return(r?o.filter((function(e){return!Cs(e)})):o).map((function(e){return Ds(e)||e instanceof Date?e:""}))}DA.defaultProps={stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"},DA.displayName="ErrorBar";var VA=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},UA=function(e){var t,n=e.children,r=e.formattedGraphicalItems,o=e.legendWidth,i=e.legendContent,a=rc(n,lg);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:VA(t),value:o||r,payload:t.props}})),BA(BA(BA({},a.props),lg.getWithHeight(a,o)),{},{payload:t,item:a})):null},KA=function(e,t,n,r,o){var i=nc(t.props.children,DA).filter((function(e){return function(e,t,n){return!!Cs(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=zA(t,n,0),o=ui(r)?[q_(r),V_(r)]:[r,r],i=a.reduce((function(e,n){var r=zA(t,n,0),i=o[0]-Math.abs(ui(r)?r[0]:r),a=o[1]+Math.abs(ui(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},$A=function(e,t,n,r,o){var i=t.map((function(t){var i=t.props.dataKey;return"number"===n&&i&&KA(e,t,i,r)||HA(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}),[])},WA=function(e,t){return"horizontal"===e&&"xAxis"===t||"vertical"===e&&"yAxis"===t||"centric"===e&&"angleAxis"===t||"radial"===e&&"radiusAxis"===t},qA=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},GA=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*Ts(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!As(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}}))},ZA=function(e,t,n){var r;return ci(n)?r=n:ci(t)&&(r=t),ci(e)||r?function(t,n,o,i){ci(e)&&e(t,n,o,i),ci(r)&&r(t,n,o,i)}:null},YA=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:EC(),realScaleType:"band"}:"radial"===i&&"angleAxis"===a?{scale:AS(),realScaleType:"linear"}:"category"===o&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!n)?{scale:AC(),realScaleType:"point"}:"category"===o?{scale:EC(),realScaleType:"band"}:{scale:AS(),realScaleType:"linear"};if(gi(r)){var s="scale".concat(hd(r));return{scale:(vj[s]||AC)(),realScaleType:vj[s]?s:"point"}}return ci(r)?{scale:r}:{scale:AC(),realScaleType:"point"}},XA=1e-4,JA=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])-XA,i=Math.max(r[0],r[1])+XA,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},QA=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},eT=function(e,t){if(!t||2!==t.length||!Ms(t[0])||!Ms(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(!Ms(e[0])||e[0]<n)&&(o[0]=n),(!Ms(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},tT={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=As(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}Oh(e,t)}},none:Oh,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}Oh(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,p=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var h=e[t[d]];p+=(h[a][1]||0)-(h[a-1][1]||0)}c+=f,u+=p*f}n[a-1][1]+=n[a-1][0]=i,c&&(i-=u/c)}n[a-1][1]+=n[a-1][0]=i,Oh(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=As(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)}}},nT=function(e,t,n){var r=t.map((function(e){return e.props.dataKey})),o=function(){var e=gd([]),t=Sh,n=Oh,r=kh;function o(o){var i,a,s=Array.from(e.apply(this,arguments),Eh),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=Ad(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:gd(Array.from(t)),o):e},o.value=function(e){return arguments.length?(r="function"==typeof e?e:gd(+e),o):r},o.order=function(e){return arguments.length?(t=null==e?Sh:"function"==typeof e?e:gd(Array.from(e)),o):t},o.offset=function(e){return arguments.length?(n=null==e?Oh:e,o):n},o}().keys(r).value((function(e,t){return+zA(e,t,0)})).order(Sh).offset(tT[n]);return o(e)},rT=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=mj.getNiceTickValues(c,o,a);return e.domain([q_(u),V_(u)]),{niceTicks:u}}if(o&&"number"===r){var l=e.domain();return{niceTicks:mj.getTickValuesFixedDomain(l,o,a)}}return null},oT=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&&!Cs(o[t.dataKey])){var s=Fs(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var c=zA(o,Cs(a)?t.dataKey:a);return Cs(c)?null:t.scale(c)},iT=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=zA(i,t.dataKey,t.domain[a]);return Cs(s)?null:t.scale(s)-o/2+r},aT=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]},sT=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[q_(t.concat([e[0]]).filter(Ms)),V_(t.concat([e[1]]).filter(Ms))]}),[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}))},cT=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uT=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,lT=function(e,t,n){if(ci(e))return e(t,n);if(!ui(e))return t;var r=[];if(Ms(e[0]))r[0]=n?e[0]:Math.min(e[0],t[0]);else if(cT.test(e[0])){var o=+cT.exec(e[0])[1];r[0]=t[0]-o}else ci(e[0])?r[0]=e[0](t[0]):r[0]=t[0];if(Ms(e[1]))r[1]=n?e[1]:Math.max(e[1],t[1]);else if(uT.test(e[1])){var i=+uT.exec(e[1])[1];r[1]=t[1]+i}else ci(e[1])?r[1]=e[1](t[1]):r[1]=t[1];return r},fT=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=aw(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},pT=function(e,t,n){return e&&e.length?N_(e,_s(n,"type.defaultProps.domain"))?t:e:t},dT=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 BA(BA({},cc(e)),{},{dataKey:r,unit:i,formatter:a,name:o||r,color:VA(e),value:zA(t,r),type:s,payload:t,chartType:c})};function hT(e){return hT="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},hT(e)}function gT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function yT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gT(Object(n),!0).forEach((function(t){vT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function vT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==hT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mT(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,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 bT(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 bT(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 bT(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 wT=Math.PI/180,xT=function(e){return 180*e/Math.PI},_T=function(e,t,n,r){return{x:e+Math.cos(-wT*r)*n,y:t+Math.sin(-wT*r)*n}},CT=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},OT=function(e,t,n,r,o){var i=e.width,a=e.height,s=e.startAngle,c=e.endAngle,u=Is(e.cx,i,i/2),l=Is(e.cy,a,a/2),f=CT(i,a,n),p=Is(e.innerRadius,f,0),d=Is(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(Cs(a.range))"angleAxis"===r?i=[s,c]:"radiusAxis"===r&&(i=[p,d]),h&&(i=[i[1],i[0]]);else{var g=mT(i=a.range,2);s=g[0],c=g[1]}var y=YA(a,o),v=y.realScaleType,m=y.scale;m.domain(f).range(i),JA(m);var b=rT(m,yT(yT({},a),{},{realScaleType:v})),w=yT(yT(yT({},a),b),{},{range:i,radius:d,realScaleType:v,scale:m,cx:u,cy:l,innerRadius:p,outerRadius:d,startAngle:s,endAngle:c});return yT(yT({},e),{},vT({},n,w))}),{})},ST=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:xT(c),angleInRadian:c}},kT=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)},ET=function(e,t){var n=e.x,r=e.y,o=ST({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,p=l.endAngle,d=a;if(f<=p){for(;d>p;)d-=360;for(;d<f;)d+=360;u=d>=f&&d<=p}else{for(;d>f;)d-=360;for(;d<p;)d+=360;u=d>=p&&d<=f}return u?yT(yT({},t),{},{radius:i,angle:kT(d,t)}):null};function jT(e){return jT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jT(e)}function AT(e){return function(e){if(Array.isArray(e))return TT(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 TT(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 TT(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 TT(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 PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function MT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?PT(Object(n),!0).forEach((function(t){DT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function DT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==jT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==jT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===jT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RT(){return RT=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},RT.apply(this,arguments)}var NT=function(e){var t=e.value,n=e.formatter,r=Cs(e.children)?t:e.children;return ci(n)?n(r):r},IT=function(e,n,r){var o,i,a=e.position,s=e.viewBox,c=e.offset,u=e.className,l=s,f=l.cx,p=l.cy,d=l.innerRadius,h=l.outerRadius,g=l.startAngle,y=l.endAngle,v=l.clockWise,m=(d+h)/2,b=function(e,t){return Ts(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=_T(f,p,m,o),_=_T(f,p,m,o+359*(i?1:-1)),C="M".concat(x.x,",").concat(x.y,"\n A").concat(m,",").concat(m,",0,1,").concat(i?0:1,",\n ").concat(_.x,",").concat(_.y),O=Cs(e.id)?Ns("recharts-radial-line-"):e.id;return t.createElement("text",RT({},r,{dominantBaseline:"central",className:Io("recharts-radial-bar-label",u)}),t.createElement("defs",null,t.createElement("path",{id:O,d:C})),t.createElement("textPath",{xlinkHref:"#".concat(O)},n))},LT=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=_T(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 p=_T(i,a,(s+c)/2,u);return{x:p.x,y:p.y,textAnchor:"middle",verticalAnchor:"middle"}},BT=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,p=l>0?"end":"start",d=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 MT(MT({},{x:a+c/2,y:s-l*r,textAnchor:"middle",verticalAnchor:p}),n?{height:Math.max(s-n.y,0),width:c}:{});if("bottom"===o)return MT(MT({},{x:a+c/2,y:s+u+f,textAnchor:"middle",verticalAnchor:d}),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 MT(MT({},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 MT(MT({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:u}:{})}var w=n?{width:c,height:u}:{};return"insideLeft"===o?MT({x:a+g,y:s+u/2,textAnchor:v,verticalAnchor:"middle"},w):"insideRight"===o?MT({x:a+c-g,y:s+u/2,textAnchor:y,verticalAnchor:"middle"},w):"insideTop"===o?MT({x:a+c/2,y:s+f,textAnchor:"middle",verticalAnchor:d},w):"insideBottom"===o?MT({x:a+c/2,y:s+u-f,textAnchor:"middle",verticalAnchor:p},w):"insideTopLeft"===o?MT({x:a+g,y:s+f,textAnchor:v,verticalAnchor:d},w):"insideTopRight"===o?MT({x:a+c-g,y:s+f,textAnchor:y,verticalAnchor:d},w):"insideBottomLeft"===o?MT({x:a+g,y:s+u-f,textAnchor:v,verticalAnchor:p},w):"insideBottomRight"===o?MT({x:a+c-g,y:s+u-f,textAnchor:y,verticalAnchor:p},w):Lo(o)&&(Ms(o.x)||Ps(o.x))&&(Ms(o.y)||Ps(o.y))?MT({x:a+Is(o.x,c),y:s+Is(o.y,u),textAnchor:"end",verticalAnchor:"end"},w):MT({x:a+c/2,y:s+u/2,textAnchor:"middle",verticalAnchor:"middle"},w)},FT=function(e){return"cx"in e&&Ms(e.cx)};function zT(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||Cs(i)&&Cs(a)&&!t.isValidElement(s)&&!ci(s))return null;if(t.isValidElement(s))return t.cloneElement(s,e);if(ci(s)){if(n=t.createElement(s,e),t.isValidElement(n))return n}else n=NT(e);var f=FT(r),p=cc(e,!0);if(f&&("insideStart"===o||"insideEnd"===o||"end"===o))return IT(e,n,p);var d=f?LT(e):BT(e);return t.createElement(D_,RT({className:Io("recharts-label",u)},p,d,{breakAll:l}),n)}zT.displayName="Label",zT.defaultProps={offset:5};var HT=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,p=e.top,d=e.left,h=e.width,g=e.height,y=e.clockWise,v=e.labelViewBox;if(v)return v;if(Ms(h)&&Ms(g)){if(Ms(l)&&Ms(f))return{x:l,y:f,width:h,height:g};if(Ms(p)&&Ms(d))return{x:p,y:d,width:h,height:g}}return Ms(l)&&Ms(f)?{x:l,y:f,width:0,height:0}:Ms(t)&&Ms(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:{}},VT=function(e,n){return e?!0===e?t.createElement(zT,{key:"label-implicit",viewBox:n}):Ds(e)?t.createElement(zT,{key:"label-implicit",viewBox:n,value:e}):t.isValidElement(e)?e.type===zT?t.cloneElement(e,{key:"label-implicit",viewBox:n}):t.createElement(zT,{key:"label-implicit",content:e,viewBox:n}):ci(e)?t.createElement(zT,{key:"label-implicit",content:e,viewBox:n}):Lo(e)?t.createElement(zT,RT({viewBox:n},e,{key:"label-implicit"})):null:null};zT.parseViewBox=HT,zT.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=HT(e),a=nc(o,zT).map((function(e,r){return t.cloneElement(e,{viewBox:n||i,key:"label-".concat(r)})}));return r?[VT(e.label,n||i)].concat(AT(a)):a};var UT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};function KT(e){return KT="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},KT(e)}var $T=["data","valueAccessor","dataKey","clockWise","id","textBreakAll"];function WT(e){return function(e){if(Array.isArray(e))return qT(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 qT(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 qT(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 qT(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 GT(){return GT=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},GT.apply(this,arguments)}function ZT(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 YT(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZT(Object(n),!0).forEach((function(t){XT(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XT(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==KT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KT(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KT(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JT(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 QT={valueAccessor:function(e){return ui(e.value)?UT(e.value):e.value}};function eP(e){var n=e.data,r=e.valueAccessor,o=e.dataKey,i=e.clockWise,a=e.id,s=e.textBreakAll,c=JT(e,$T);return n&&n.length?t.createElement(wc,{className:"recharts-label-list"},n.map((function(e,n){var u=Cs(o)?r(e,n):zA(e&&e.payload,o),l=Cs(a)?{}:{id:"".concat(a,"-").concat(n)};return t.createElement(zT,GT({},cc(e,!0),c,l,{parentViewBox:e.parentViewBox,index:n,value:u,textBreakAll:s,viewBox:zT.parseViewBox(Cs(i)?e:YT(YT({},e),{},{clockWise:i})),key:"label-".concat(n)}))}))):null}function tP(e){return tP="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},tP(e)}function nP(){return nP=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},nP.apply(this,arguments)}function rP(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,sP(r.key),r)}}function oP(e,t){return oP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oP(e,t)}function iP(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=aP(e);if(t){var o=aP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===tP(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 aP(e){return aP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},aP(e)}function sP(e){var t=function(e,t){if("object"!==tP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==tP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===tP(t)?t:String(t)}eP.displayName="LabelList",eP.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=nc(e.children,eP).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(eP,{key:"labelList-implicit",data:n}):t.isValidElement(e)||ci(e)?t.createElement(eP,{key:"labelList-implicit",data:n,content:e}):Lo(e)?t.createElement(eP,GT({data:n},e,{key:"labelList-implicit"})):null:null}(e.label,n)].concat(WT(o)):o},eP.defaultProps=QT;var cP=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)/wT,f=c?o:o+i*l,p=c?o-i*l:o;return{center:_T(t,n,u,f),circleTangency:_T(t,n,r,f),lineTangency:_T(t,n,u*Math.cos(l*wT),p),theta:l}},uP=function(e){var t=e.cx,n=e.cy,r=e.innerRadius,o=e.outerRadius,i=e.startAngle,a=function(e,t){return Ts(t-e)*Math.min(Math.abs(t-e),359.999)}(i,e.endAngle),s=i+a,c=_T(t,n,o,i),u=_T(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=_T(t,n,r,i),p=_T(t,n,r,s);l+="L ".concat(p.x,",").concat(p.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},lP=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&&oP(e,t)}(a,t.PureComponent);var n,r,o,i=iP(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 p,d=Io("recharts-sector",f),h=i-o,g=Is(a,h,0,!0);return p=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=Ts(u-c),f=cP({cx:t,cy:n,radius:o,angle:c,sign:l,cornerRadius:i,cornerIsExternal:s}),p=f.circleTangency,d=f.lineTangency,h=f.theta,g=cP({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(d.x,",").concat(d.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 "):uP({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:c,endAngle:u});var w="M ".concat(d.x,",").concat(d.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(p.x,",").concat(p.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=cP({cx:t,cy:n,radius:r,angle:c,sign:l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),_=x.circleTangency,C=x.lineTangency,O=x.theta,S=cP({cx:t,cy:n,radius:r,angle:u,sign:-l,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),k=S.circleTangency,E=S.lineTangency,j=S.theta,A=s?Math.abs(c-u):Math.abs(c-u)-O-j;if(A<0&&0===i)return"".concat(w,"L").concat(t,",").concat(n,"Z");w+="L".concat(E.x,",").concat(E.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(k.x,",").concat(k.y,"\n A").concat(r,",").concat(r,",0,").concat(+(A>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,"\n A").concat(i,",").concat(i,",0,0,").concat(+(l<0),",").concat(C.x,",").concat(C.y,"Z")}else w+="L".concat(t,",").concat(n,"Z");return w}({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(g,h/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:u,endAngle:l}):uP({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:l}),t.createElement("path",nP({},cc(this.props,!0),{className:d,d:p,role:"img"}))}}],r&&rP(n.prototype,r),o&&rP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function fP(e){return fP="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},fP(e)}function pP(){return pP=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},pP.apply(this,arguments)}function dP(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 hP(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?dP(Object(n),!0).forEach((function(t){bP(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gP(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,wP(r.key),r)}}function yP(e,t){return yP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},yP(e,t)}function vP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=mP(e);if(t){var o=mP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===fP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function mP(e){return mP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mP(e)}function bP(e,t,n){return(t=wP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wP(e){var t=function(e,t){if("object"!==fP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==fP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===fP(t)?t:String(t)}!function(e,t,n){(t=sP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(lP,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1});var xP={curveBasisClosed:function(e){return new nh(e)},curveBasisOpen:function(e){return new rh(e)},curveBasis:function(e){return new th(e)},curveLinearClosed:function(e){return new dh(e)},curveLinear:Pd,curveMonotoneX:function(e){return new mh(e)},curveMonotoneY:function(e){return new bh(e)},curveNatural:function(e){return new xh(e)},curveStep:function(e){return new Ch(e,.5)},curveStepAfter:function(e){return new Ch(e,1)},curveStepBefore:function(e){return new Ch(e,0)}},_P=function(e){return e.x===+e.x&&e.y===+e.y},CP=function(e){return e.x},OP=function(e){return e.y},SP=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&&yP(e,t)}(a,t.PureComponent);var n,r,o,i=vP(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:"getPath",value:function(){var e,t=this.props,n=t.type,r=t.points,o=t.baseLine,i=t.layout,a=t.connectNulls,s=function(e,t){if(ci(e))return e;var n="curve".concat(hd(e));return"curveMonotone"===n&&t?xP["".concat(n).concat("vertical"===t?"Y":"X")]:xP[n]||Pd}(n,i),c=a?r.filter((function(e){return _P(e)})):r;if(ui(o)){var u=a?o.filter((function(e){return _P(e)})):o,l=c.map((function(e,t){return hP(hP({},e),{},{base:u[t]})}));return(e="vertical"===i?Nd().y(OP).x1(CP).x0((function(e){return e.base.x})):Nd().x(CP).y1(OP).y0((function(e){return e.base.y}))).defined(_P).curve(s),e(l)}return(e="vertical"===i&&Ms(o)?Nd().y(OP).x1(CP).x0(o):Ms(o)?Nd().x(CP).y1(OP).y0(o):Rd().x(CP).y(OP)).defined(_P).curve(s),e(c)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.points,o=e.path,i=e.pathRef;if(!(r&&r.length||o))return null;var a=r&&r.length?this.getPath():o;return t.createElement("path",pP({},cc(this.props),Ws(this.props),{className:Io("recharts-curve",n),d:a,ref:i}))}}])&&gP(n.prototype,r),o&&gP(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){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,RP(r.key),r)}}function AP(e,t){return AP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},AP(e,t)}function TP(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=MP(e);if(t){var o=MP(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===kP(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return PP(e)}(this,n)}}function PP(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(e){return MP=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},MP(e)}function DP(e,t,n){return(t=RP(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RP(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)}bP(SP,"defaultProps",{type:"linear",points:[],connectNulls:!1});var NP=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 p=Math.min(a,o);i="M ".concat(e,",").concat(t+s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+c*p,",").concat(t,"\n L ").concat(e+n-c*p,",").concat(t,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n,",").concat(t+s*p,"\n L ").concat(e+n,",").concat(t+r-s*p,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e+n-c*p,",").concat(t+r,"\n L ").concat(e+c*p,",").concat(t+r,"\n A ").concat(p,",").concat(p,",0,0,").concat(u,",").concat(e,",").concat(t+r-s*p," Z")}else i="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return i},IP=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},LP=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&&AP(e,t)}(a,t.PureComponent);var n,r,o,i=TP(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 DP(PP(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,p=l.animationDuration,d=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=Io("recharts-rectangle",c);return g?t.createElement(ob,{canBegin:u>0,from:{width:i,height:a,x:r,y:o},to:{width:i,height:a,x:r,y:o},duration:p,animationEasing:f,isActive:g},(function(n){var r=n.width,o=n.height,i=n.x,a=n.y;return t.createElement(ob,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,isActive:h,easing:f},t.createElement("path",EP({},cc(e.props,!0),{className:y,d:NP(i,a,r,o,s),ref:function(t){e.node=t}})))})):t.createElement("path",EP({},cc(this.props,!0),{className:y,d:NP(r,o,i,a,s)}))}}],r&&jP(n.prototype,r),o&&jP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function BP(e){return BP="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},BP(e)}DP(LP,"defaultProps",{x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var FP=["points","className","baseLinePoints","connectNulls"];function zP(){return zP=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},zP.apply(this,arguments)}function HP(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 VP(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"!==BP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==BP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===BP(i)?i:String(i)),r)}var o,i}function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UP(e,t)}function KP(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=$P(e);if(t){var o=$P(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===BP(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 $P(e){return $P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$P(e)}function WP(e){return function(e){if(Array.isArray(e))return qP(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 qP(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 qP(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 qP(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 GP=function(e){return e&&e.x===+e.x&&e.y===+e.y},ZP=function(e,t){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=[[]];return e.forEach((function(e){GP(e)?t[t.length-1].push(e):t[t.length-1].length>0&&t.push([])})),GP(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(WP(e),WP(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},YP=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&&UP(e,t)}(a,t.PureComponent);var n,r,o,i=KP(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=HP(e,FP);if(!n||!n.length)return null;var s=Io("recharts-polygon",r);if(o&&o.length){var c=a.stroke&&"none"!==a.stroke,u=function(e,t,n){var r=ZP(e,n);return"".concat("Z"===r.slice(-1)?r.slice(0,-1):r,"L").concat(ZP(t.reverse(),n).slice(1))}(n,o,i);return t.createElement("g",{className:s},t.createElement("path",zP({},cc(a,!0),{fill:"Z"===u.slice(-1)?a.fill:"none",stroke:"none",d:u})),c?t.createElement("path",zP({},cc(a,!0),{fill:"none",d:ZP(n,i)})):null,c?t.createElement("path",zP({},cc(a,!0),{fill:"none",d:ZP(o,i)})):null)}var l=ZP(n,i);return t.createElement("path",zP({},cc(a,!0),{fill:"Z"===l.slice(-1)?a.fill:"none",className:s,d:l}))}}])&&VP(n.prototype,r),o&&VP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function XP(e){return XP="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},XP(e)}function JP(){return JP=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},JP.apply(this,arguments)}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"!==XP(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==XP(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===XP(i)?i:String(i)),r)}var o,i}function eM(e,t){return eM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eM(e,t)}function tM(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=nM(e);if(t){var o=nM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===XP(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 nM(e){return nM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},nM(e)}var rM=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&&eM(e,t)}(a,t.PureComponent);var n,r,o,i=tM(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=Io("recharts-dot",i);return n===+n&&r===+r&&o===+o?t.createElement("circle",JP({},cc(this.props),Ws(this.props),{className:a,cx:n,cy:r,r:o})):null}}],r&&QP(n.prototype,r),o&&QP(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function oM(e){return oM="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},oM(e)}function iM(){return iM=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},iM.apply(this,arguments)}function aM(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,lM(r.key),r)}}function sM(e,t){return sM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sM(e,t)}function cM(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=uM(e);if(t){var o=uM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===oM(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 uM(e){return uM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},uM(e)}function lM(e){var t=function(e,t){if("object"!==oM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==oM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===oM(t)?t:String(t)}var fM=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&&sM(e,t)}(a,t.PureComponent);var n,r,o,i=cM(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.x,r=e.y,o=e.width,i=e.height,s=e.top,c=e.left,u=e.className;return Ms(n)&&Ms(r)&&Ms(o)&&Ms(i)&&Ms(s)&&Ms(c)?t.createElement("path",iM({},cc(this.props,!0),{className:Io("recharts-cross",u),d:a.getPath(n,r,o,i,s,c)})):null}}],o=[{key:"getPath",value:function(e,t,n,r,o,i){return"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n)}}],r&&aM(n.prototype,r),o&&aM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pM(e){return pM="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},pM(e)}function dM(){return dM=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},dM.apply(this,arguments)}function hM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hM(Object(n),!0).forEach((function(t){wM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yM(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,xM(r.key),r)}}function vM(e,t){return vM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},vM(e,t)}function mM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=bM(e);if(t){var o=bM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===pM(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 bM(e){return bM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},bM(e)}function wM(e,t,n){return(t=xM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xM(e){var t=function(e,t){if("object"!==pM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pM(t)?t:String(t)}!function(e,t,n){(t=lM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(fM,"defaultProps",{x:0,y:0,top:0,left:0,width:0,height:0});var _M=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&&vM(e,t)}(a,t.PureComponent);var n,r,o,i=mM(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:"getPolygonPath",value:function(e){var t=this.props,n=t.cx,r=t.cy,o=t.polarAngles,i="";return o.forEach((function(t,o){var a=_T(n,r,e,t);i+=o?"L ".concat(a.x,",").concat(a.y):"M ".concat(a.x,",").concat(a.y)})),i+="Z"}},{key:"renderPolarAngles",value:function(){var e=this.props,n=e.cx,r=e.cy,o=e.innerRadius,i=e.outerRadius,a=e.polarAngles,s=e.radialLines;if(!a||!a.length||!s)return null;var c=gM({stroke:"#ccc"},cc(this.props));return t.createElement("g",{className:"recharts-polar-grid-angle"},a.map((function(e,a){var s=_T(n,r,o,e),u=_T(n,r,i,e);return t.createElement("line",dM({},c,{key:"line-".concat(a),x1:s.x,y1:s.y,x2:u.x,y2:u.y}))})))}},{key:"renderConcentricCircle",value:function(e,n,r){var o=this.props,i=o.cx,a=o.cy,s=gM(gM({stroke:"#ccc"},cc(this.props)),{},{fill:"none"},r);return t.createElement("circle",dM({},s,{className:"recharts-polar-grid-concentric-circle",key:"circle-".concat(n),cx:i,cy:a,r:e}))}},{key:"renderConcentricPolygon",value:function(e,n,r){var o=gM(gM({stroke:"#ccc"},cc(this.props)),{},{fill:"none"},r);return t.createElement("path",dM({},o,{className:"recharts-polar-grid-concentric-polygon",key:"path-".concat(n),d:this.getPolygonPath(e)}))}},{key:"renderConcentricPath",value:function(){var e=this,n=this.props,r=n.polarRadius,o=n.gridType;return r&&r.length?t.createElement("g",{className:"recharts-polar-grid-concentric"},r.map((function(t,n){return"circle"===o?e.renderConcentricCircle(t,n):e.renderConcentricPolygon(t,n)}))):null}},{key:"render",value:function(){return this.props.outerRadius<=0?null:t.createElement("g",{className:"recharts-polar-grid"},this.renderPolarAngles(),this.renderConcentricPath())}}],r&&yM(n.prototype,r),o&&yM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();wM(_M,"displayName","PolarGrid"),wM(_M,"defaultProps",{cx:0,cy:0,innerRadius:0,outerRadius:0,gridType:"polygon",radialLines:!0});var CM=L_,OM=yp,SM=U_;var kM=function(e,t){return e&&e.length?CM(e,OM(t),SM):void 0},EM=L_,jM=B_,AM=yp;var TM=function(e,t){return e&&e.length?EM(e,AM(t),jM):void 0},PM=["cx","cy","angle","ticks","axisLine"],MM=["ticks","tick","angle","tickFormatter","stroke"];function DM(e){return DM="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},DM(e)}function RM(){return RM=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},RM.apply(this,arguments)}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 IM(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){VM(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 LM(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 BM(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,UM(r.key),r)}}function FM(e,t){return FM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},FM(e,t)}function zM(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=HM(e);if(t){var o=HM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===DM(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 HM(e){return HM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},HM(e)}function VM(e,t,n){return(t=UM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UM(e){var t=function(e,t){if("object"!==DM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==DM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===DM(t)?t:String(t)}var KM=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&&FM(e,t)}(a,t.PureComponent);var n,r,o,i=zM(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 _T(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=TM(o,(function(e){return e.coordinate||0}));return{cx:t,cy:n,startAngle:r,endAngle:r,innerRadius:kM(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=LM(e,PM),c=i.reduce((function(e,t){return[Math.min(e[0],t.coordinate),Math.max(e[1],t.coordinate)]}),[1/0,-1/0]),u=_T(n,r,c[0],o),l=_T(n,r,c[1],o),f=IM(IM(IM({},cc(s)),{},{fill:"none"},cc(a)),{},{x1:u.x,y1:u.y,x2:l.x,y2:l.y});return t.createElement("line",RM({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=LM(n,MM),l=this.getTickTextAnchor(),f=cc(u),p=cc(o),d=r.map((function(n,r){var u=e.getTickValueCoord(n),d=IM(IM(IM(IM({textAnchor:l,transform:"rotate(".concat(90-i,", ").concat(u.x,", ").concat(u.y,")")},f),{},{stroke:"none",fill:c},p),{},{index:r},u),{},{payload:n});return t.createElement(wc,RM({className:"recharts-polar-radius-axis-tick",key:"tick-".concat(r)},qs(e.props,n,r)),a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(wc,{className:"recharts-polar-radius-axis-ticks"},d)}},{key:"render",value:function(){var e=this.props,n=e.ticks,r=e.axisLine,o=e.tick;return n&&n.length?t.createElement(wc,{className:"recharts-polar-radius-axis"},r&&this.renderAxisLine(),o&&this.renderTicks(),zT.renderCallByParent(this.props,this.getViewBox())):null}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(D_,RM({},n,{className:"recharts-polar-radius-axis-tick-value"}),r)}}],r&&BM(n.prototype,r),o&&BM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function $M(e){return $M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$M(e)}function WM(){return WM=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},WM.apply(this,arguments)}function qM(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 GM(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qM(Object(n),!0).forEach((function(t){QM(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qM(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZM(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,eD(r.key),r)}}function YM(e,t){return YM=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},YM(e,t)}function XM(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JM(e);if(t){var o=JM(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function JM(e){return JM=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JM(e)}function QM(e,t,n){return(t=eD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eD(e){var t=function(e,t){if("object"!==$M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$M(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$M(t)?t:String(t)}VM(KM,"displayName","PolarRadiusAxis"),VM(KM,"axisType","radiusAxis"),VM(KM,"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 tD=Math.PI/180,nD=1e-5,rD=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&&YM(e,t)}(a,t.PureComponent);var n,r,o,i=XM(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=_T(n,r,o,e.coordinate),c=_T(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*tD);return n>nD?"outer"===t?"start":"end":n<-nD?"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=GM(GM({},cc(this.props)),{},{fill:"none"},cc(i));if("circle"===a)return t.createElement(rM,WM({className:"recharts-polar-angle-axis-line"},s,{cx:n,cy:r,r:o}));var c=this.props.ticks.map((function(e){return _T(n,r,o,e.coordinate)}));return t.createElement(YP,WM({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=cc(this.props),l=cc(o),f=GM(GM({},u),{},{fill:"none"},cc(i)),p=r.map((function(n,r){var p=e.getTickLineCoord(n),d=GM(GM(GM({textAnchor:e.getTickTextAnchor(n)},u),{},{stroke:"none",fill:c},l),{},{index:r,payload:n,x:p.x2,y:p.y2});return t.createElement(wc,WM({className:"recharts-polar-angle-axis-tick",key:"tick-".concat(r)},qs(e.props,n,r)),i&&t.createElement("line",WM({className:"recharts-polar-angle-axis-tick-line"},f,p)),o&&a.renderTickItem(o,d,s?s(n.value,r):n.value))}));return t.createElement(wc,{className:"recharts-polar-angle-axis-ticks"},p)}},{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(wc,{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):ci(e)?e(n):t.createElement(D_,WM({},n,{className:"recharts-polar-angle-axis-tick-value"}),r)}}],r&&ZM(n.prototype,r),o&&ZM(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();QM(rD,"displayName","PolarAngleAxis"),QM(rD,"axisType","angleAxis"),QM(rD,"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 oD=hl(Object.getPrototypeOf,Object),iD=ti,aD=oD,sD=li,cD="[object Object]",uD=Function.prototype,lD=Object.prototype,fD=uD.toString,pD=lD.hasOwnProperty,dD=fD.call(Object);var hD=function(e){if(!sD(e)||iD(e)!=cD)return!1;var t=aD(e);if(null===t)return!0;var n=pD.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&fD.call(n)==dD};function gD(e){return gD="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},gD(e)}function yD(){return yD=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},yD.apply(this,arguments)}function vD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function mD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vD(Object(n),!0).forEach((function(t){OD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,SD(r.key),r)}}function wD(e,t){return wD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},wD(e,t)}function xD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=CD(e);if(t){var o=CD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===gD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _D(e)}(this,n)}}function _D(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CD(e){return CD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},CD(e)}function OD(e,t,n){return(t=SD(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SD(e){var t=function(e,t){if("object"!==gD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==gD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gD(t)?t:String(t)}var kD=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&&wD(e,t)}(a,t.PureComponent);var n,r,o,i=xD(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),OD(_D(t=i.call(this,e)),"pieRef",null),OD(_D(t),"sectorRefs",[]),OD(_D(t),"id",Ns("recharts-pie-")),OD(_D(t),"handleAnimationEnd",(function(){var e=t.props.onAnimationEnd;t.setState({isAnimationFinished:!0}),ci(e)&&e()})),OD(_D(t),"handleAnimationStart",(function(){var e=t.props.onAnimationStart;t.setState({isAnimationFinished:!1}),ci(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=cc(this.props),u=cc(r),l=cc(o),f=r&&r.offsetRadius||20,p=e.map((function(e,n){var p=(e.startAngle+e.endAngle)/2,d=_T(e.cx,e.cy,e.outerRadius+f,p),h=mD(mD(mD(mD({},c),e),{},{stroke:"none"},u),{},{index:n,textAnchor:a.getTextAnchor(d.x,e.cx)},d),g=mD(mD(mD(mD({},c),e),{},{fill:"none",stroke:e.fill},l),{},{index:n,points:[_T(e.cx,e.cy,e.outerRadius,p),d],key:"line"}),y=i;return Cs(i)&&Cs(s)?y="value":Cs(i)&&(y=s),t.createElement(wc,{key:"label-".concat(n)},o&&a.renderLabelLineItem(o,g),a.renderLabelItem(r,h,zA(e,y)))}));return t.createElement(wc,{className:"recharts-pie-labels"},p)}},{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=mD(mD({},e),{},{stroke:i?e.fill:e.stroke});return t.createElement(wc,yD({ref:function(e){e&&!n.sectorRefs.includes(e)&&n.sectorRefs.push(e)},tabIndex:-1,className:"recharts-pie-sector"},qs(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(ob,{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?_s(e,"paddingAngle",0):0;if(n){var s=Bs(n.endAngle-n.startAngle,e.endAngle-e.startAngle),c=mD(mD({},e),{},{startAngle:a+r,endAngle:a+s(o)+r});i.push(c),a=c.endAngle}else{var u=e.endAngle,f=e.startAngle,p=Bs(0,u-f)(o),d=mD(mD({},e),{},{startAngle:a+r,endAngle:a+p+r});i.push(d),a=d.endAngle}})),t.createElement(wc,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&&N_(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,p=this.state.isAnimationFinished;if(r||!o||!o.length||!Ms(s)||!Ms(c)||!Ms(u)||!Ms(l))return null;var d=Io("recharts-pie",i);return t.createElement(wc,{tabIndex:0,className:d,ref:function(t){e.pieRef=t}},this.renderSectors(),a&&this.renderLabels(o),zT.renderCallByParent(this.props,null,!1),(!f||p)&&eP.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):ci(e)?e(n):t.createElement(SP,yD({},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 ci(e)&&(o=e(n),t.isValidElement(o))?o:t.createElement(D_,yD({},n,{alignmentBaseline:"middle",className:"recharts-pie-label-text"}),o)}},{key:"renderSectorItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):hD(e)?t.createElement(lP,yD({tabIndex:-1},n,e)):t.createElement(lP,yD({tabIndex:-1},n))}}],r&&bD(n.prototype,r),o&&bD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();OD(kD,"displayName","Pie"),OD(kD,"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:!ww.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1}),OD(kD,"parseDeltaAngle",(function(e,t){return Ts(t-e)*Math.min(Math.abs(t-e),360)})),OD(kD,"getRealPieData",(function(e){var t=e.props,n=t.data,r=t.children,o=cc(e.props),i=nc(r,bx);return n&&n.length?n.map((function(e,t){return mD(mD(mD({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return mD(mD({},o),e.props)})):[]})),OD(kD,"parseCoordinateOfPie",(function(e,t){var n=t.top,r=t.left,o=t.width,i=t.height,a=CT(o,i);return{cx:r+Is(e.props.cx,o,o/2),cy:n+Is(e.props.cy,i,i/2),innerRadius:Is(e.props.innerRadius,a,0),outerRadius:Is(e.props.outerRadius,a,.8*a),maxRadius:e.props.maxRadius||Math.sqrt(o*o+i*i)/2}})),OD(kD,"getComposedData",(function(e){var t=e.item,n=e.offset,r=kD.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,p=o.tooltipType,d=Math.abs(t.props.minAngle),h=kD.parseCoordinateOfPie(t,n),g=kD.parseDeltaAngle(a,s),y=Math.abs(g),v=u;Cs(u)&&Cs(f)?(hx(!1,'Use "dataKey" to specify the value of pie,\n the props "valueKey" will be deprecated in 1.1.0'),v="value"):Cs(u)&&(hx(!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!==zA(e,v,0)})).length,x=y-w*d-(y>=360?w:w-1)*c,_=r.reduce((function(e,t){var n=zA(t,v,0);return e+(Ms(n)?n:0)}),0);_>0&&(m=r.map((function(e,t){var n,r=zA(e,v,0),o=zA(e,l,t),s=(Ms(r)?r:0)/_,u=(n=t?b.endAngle+Ts(g)*c*(0!==r?1:0):a)+Ts(g)*((0!==r?d:0)+s*x),f=(n+u)/2,y=(h.innerRadius+h.outerRadius)/2,m=[{name:o,value:r,payload:e,dataKey:v,type:p}],w=_T(h.cx,h.cy,y,f);return b=mD(mD(mD({percent:s,cornerRadius:i,name:o,tooltipPayload:m,midAngle:f,middleRadius:y,tooltipPosition:w},e),h),{},{value:zA(e,v),startAngle:n,endAngle:u,payload:e,paddingAngle:Ts(g)*c})})));return mD(mD({},h),{},{sectors:m,data:r})}));var ED={};var jD=function(e){return e&&e.length?e[0]:void 0};({get exports(){return ED},set exports(e){ED=e}}).exports=jD;var AD=c(ED);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 PD(){return PD=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},PD.apply(this,arguments)}function MD(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?MD(Object(n),!0).forEach((function(t){FD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MD(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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 ND(e,t){return ND=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ND(e,t)}function ID(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 LD(e)}(this,n)}}function LD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}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&&ND(e,t)}(a,t.PureComponent);var n,r,o,i=ID(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 FD(LD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),FD(LD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),FD(LD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),FD(LD(e),"handleMouseEnter",(function(t){var n=e.props.onMouseEnter;n&&n(e.props,t)})),FD(LD(e),"handleMouseLeave",(function(t){var n=e.props.onMouseLeave;n&&n(e.props,t)})),e}return n=a,r=[{key:"renderDots",value:function(e){var n=this.props,r=n.dot,o=n.dataKey,i=cc(this.props),s=cc(r),c=e.map((function(e,t){var n=DD(DD(DD({key:"dot-".concat(t),r:3},i),s),{},{dataKey:o,cx:e.x,cy:e.y,index:t,payload:e});return a.renderDotItem(r,n)}));return t.createElement(wc,{className:"recharts-radar-dots"},c)}},{key:"renderPolygonStatically",value:function(e){var n,r=this.props,o=r.shape,i=r.dot,a=r.isRange,s=r.baseLinePoints,c=r.connectNulls;return n=t.isValidElement(o)?t.cloneElement(o,DD(DD({},this.props),{},{points:e})):ci(o)?o(DD(DD({},this.props),{},{points:e})):t.createElement(YP,PD({},cc(this.props,!0),{onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,points:e,baseLinePoints:a?s:null,connectNulls:c})),t.createElement(wc,{className:"recharts-radar-polygon"},n,i?this.renderDots(e):null)}},{key:"renderPolygonWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(t){var n=t.t,o=u&&u.length/r.length,i=r.map((function(e,t){var r=u&&u[Math.floor(t*o)];if(r){var i=Bs(r.x,e.x),a=Bs(r.y,e.y);return DD(DD({},e),{},{x:i(n),y:a(n)})}var s=Bs(e.cx,e.x),c=Bs(e.cy,e.y);return DD(DD({},e),{},{x:s(n),y:c(n)})}));return e.renderPolygonStatically(i)}))}},{key:"renderPolygon",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=e.isRange,o=this.state.prevPoints;return!(n&&t&&t.length)||r||o&&N_(o,t)?this.renderPolygonStatically(t):this.renderPolygonWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.className,o=e.points,i=e.isAnimationActive;if(n||!o||!o.length)return null;var a=this.state.isAnimationFinished,s=Io("recharts-radar",r);return t.createElement(wc,{className:s},this.renderPolygon(),(!i||a)&&eP.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:"renderDotItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,PD({},n,{className:"recharts-radar-dot"}))}}],r&&RD(n.prototype,r),o&&RD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();FD(HD,"displayName","Radar"),FD(HD,"defaultProps",{angleAxisId:0,radiusAxisId:0,hide:!1,activeDot:!0,dot:!1,legendType:"rect",isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),FD(HD,"getComposedData",(function(e){var t=e.radiusAxis,n=e.angleAxis,r=e.displayedData,o=e.dataKey,i=e.bandSize,a=n.cx,s=n.cy,c=!1,u=[];r.forEach((function(e,r){var l=zA(e,n.dataKey,r),f=zA(e,o),p=n.scale(l)+(i||0),d=ui(f)?UT(f):f,h=Cs(d)?void 0:t.scale(d);ui(f)&&f.length>=2&&(c=!0),u.push(DD(DD({},_T(a,s,h,p)),{},{name:l,value:f,cx:a,cy:s,radius:h,angle:p,payload:e}))}));var l=[];return c&&u.forEach((function(e){if(ui(e.value)){var n=AD(e.value),r=Cs(n)?void 0:t.scale(n);l.push(DD(DD({},e),{},{radius:r},_T(a,s,r,e.angle)))}else l.push(e)})),{points:u,isRange:c,baseLinePoints:l}}));var VD=["shape","activeShape","activeIndex","cornerRadius"],UD=["value","background"];function KD(e){return KD="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},KD(e)}function $D(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 WD(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$D(Object(n),!0).forEach((function(t){QD(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qD(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 GD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,eR(r.key),r)}}function ZD(e,t){return ZD=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ZD(e,t)}function YD(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=JD(e);if(t){var o=JD(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===KD(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return XD(e)}(this,n)}}function XD(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JD(e){return JD=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},JD(e)}function QD(e,t,n){return(t=eR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eR(e){var t=function(e,t){if("object"!==KD(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==KD(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===KD(t)?t:String(t)}var tR=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&&ZD(e,t)}(a,t.PureComponent);var n,r,o,i=YD(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return QD(XD(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),QD(XD(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),QD(XD(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"getDeltaAngle",value:function(){var e=this.props,t=e.startAngle,n=e.endAngle;return Ts(n-t)*Math.min(Math.abs(n-t),360)}},{key:"renderSectorsStatically",value:function(e){var t=this,n=this.props,r=n.shape,o=n.activeShape,i=n.activeIndex,s=n.cornerRadius,c=qD(n,VD),u=cc(c);return e.map((function(e,n){var l=WD(WD(WD(WD({},u),{},{cornerRadius:s},e),qs(t.props,e,n)),{},{key:"sector-".concat(n),className:"recharts-radial-bar-sector",forceCornerRadius:c.forceCornerRadius,cornerIsExternal:c.cornerIsExternal});return a.renderSectorShape(n===i?o:r,l)}))}},{key:"renderSectorsWithAnimation",value:function(){var e=this,n=this.props,r=n.data,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevData;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"radialBar-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.startAngle,e.startAngle),i=Bs(n.endAngle,e.endAngle);return WD(WD({},e),{},{startAngle:r(o),endAngle:i(o)})}var a=e.endAngle,s=e.startAngle,c=Bs(s,a);return WD(WD({},e),{},{endAngle:c(o)})}));return t.createElement(wc,null,e.renderSectorsStatically(i))}))}},{key:"renderSectors",value:function(){var e=this.props,t=e.data,n=e.isAnimationActive,r=this.state.prevData;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderSectorsStatically(t):this.renderSectorsWithAnimation()}},{key:"renderBackground",value:function(e){var t=this,n=this.props.cornerRadius,r=cc(this.props.background);return e.map((function(e,o){e.value;var i=e.background,s=qD(e,UD);if(!i)return null;var c=WD(WD(WD(WD(WD({cornerRadius:n},s),{},{fill:"#eee"},i),r),qs(t.props,e,o)),{},{index:o,key:"sector-".concat(o),className:"recharts-radial-bar-background-sector"});return a.renderSectorShape(i,c)}))}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.data,o=e.className,i=e.background,a=e.isAnimationActive;if(n||!r||!r.length)return null;var s=this.state.isAnimationFinished,c=Io("recharts-area",o);return t.createElement(wc,{className:c},i&&t.createElement(wc,{className:"recharts-radial-bar-background"},this.renderBackground(r)),t.createElement(wc,{className:"recharts-radial-bar-sectors"},this.renderSectors()),(!a||s)&&eP.renderCallByParent(WD({},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:"renderSectorShape",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(lP,n)}}],r&&GD(n.prototype,r),o&&GD(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();QD(tR,"displayName","RadialBar"),QD(tR,"defaultProps",{angleAxisId:0,radiusAxisId:0,minPointSize:0,hide:!1,legendType:"rect",data:[],isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease",forceCornerRadius:!1,cornerIsExternal:!1}),QD(tR,"getComposedData",(function(e){var t=e.item,n=e.props,r=e.radiusAxis,o=e.radiusAxisTicks,i=e.angleAxis,a=e.angleAxisTicks,s=e.displayedData,c=e.dataKey,u=e.stackedData,l=e.barPosition,f=e.bandSize,p=e.dataStartIndex,d=QA(l,t);if(!d)return null;var h=i.cx,g=i.cy,y=n.layout,v=t.props,m=v.children,b=v.minPointSize,w="radial"===y?i:r,x=u?w.scale.domain():null,_=aT({numericAxis:w}),C=nc(m,bx);return{data:s.map((function(e,s){var l,v,m,w,O,S;if(u?l=eT(u[p+s],x):(l=zA(e,c),ui(l)||(l=[_,l])),"radial"===y){v=iT({axis:r,ticks:o,bandSize:f,offset:d.offset,entry:e,index:s}),O=i.scale(l[1]),w=i.scale(l[0]),m=v+d.size;var k=O-w;if(Math.abs(b)>0&&Math.abs(k)<Math.abs(b))O+=Ts(k||b)*(Math.abs(b)-Math.abs(k));S={background:{cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:n.startAngle,endAngle:n.endAngle}}}else{v=r.scale(l[0]),m=r.scale(l[1]),O=(w=iT({axis:i,ticks:a,bandSize:f,offset:d.offset,entry:e,index:s}))+d.size;var E=m-v;if(Math.abs(b)>0&&Math.abs(E)<Math.abs(b))m+=Ts(E||b)*(Math.abs(b)-Math.abs(E))}return WD(WD(WD(WD({},e),S),{},{payload:e,value:u?l:l[1],cx:h,cy:g,innerRadius:v,outerRadius:m,startAngle:w,endAngle:O},C&&C[s]&&C[s].props),{},{tooltipPayload:[dT(t,e)],tooltipPosition:_T(h,g,(v+m)/2,(w+O)/2)})})),layout:y}}));var nR=Math.ceil,rR=Math.max;var oR=Gw,iR=1/0,aR=17976931348623157e292;var sR=function(e){return e?(e=oR(e))===iR||e===-iR?(e<0?-1:1)*aR:e==e?e:0:0===e?e:0},cR=function(e,t,n,r){for(var o=-1,i=rR(nR((t-e)/(n||1)),0),a=Array(i);i--;)a[r?i:++o]=e,e+=n;return a},uR=nw,lR=sR;var fR=function(e){return function(t,n,r){return r&&"number"!=typeof r&&uR(t,n,r)&&(n=r=void 0),t=lR(t),void 0===n?(n=t,t=0):n=lR(n),r=void 0===r?t<n?1:-1:lR(r),cR(t,n,r,e)}}();function pR(e){return pR="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},pR(e)}function dR(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?dR(Object(n),!0).forEach((function(t){gR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function gR(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==pR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pR(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yR=["Webkit","Moz","O","ms"];function vR(e){return vR="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},vR(e)}function mR(){return mR=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},mR.apply(this,arguments)}function bR(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 wR(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bR(Object(n),!0).forEach((function(t){kR(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xR(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,ER(r.key),r)}}function _R(e,t){return _R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_R(e,t)}function CR(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=SR(e);if(t){var o=SR(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===vR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return OR(e)}(this,n)}}function OR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(e){return SR=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},SR(e)}function kR(e,t,n){return(t=ER(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=function(e,t){if("object"!==vR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==vR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===vR(t)?t:String(t)}var jR=function(e){return e.changedTouches&&!!e.changedTouches.length},AR=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&&_R(e,t)}(a,t.PureComponent);var n,r,o,i=CR(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),kR(OR(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)})),kR(OR(t),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&t.handleDrag(e.changedTouches[0])})),kR(OR(t),"handleDragEnd",(function(){t.setState({isTravellerMoving:!1,isSlideMoving:!1}),t.detachDragEndListener()})),kR(OR(t),"handleLeaveWrapper",(function(){(t.state.isTravellerMoving||t.state.isSlideMoving)&&(t.leaveTimer=window.setTimeout(t.handleDragEnd,t.props.leaveTimeOut))})),kR(OR(t),"handleEnterSlideOrTraveller",(function(){t.setState({isTextActive:!0})})),kR(OR(t),"handleLeaveSlideOrTraveller",(function(){t.setState({isTextActive:!1})})),kR(OR(t),"handleSlideDragStart",(function(e){var n=jR(e)?e.changedTouches[0]:e;t.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:n.pageX}),t.attachDragEndListener()})),t.travellerDragStartHandlers={startX:t.handleTravellerDragStart.bind(OR(t),"startX"),endX:t.handleTravellerDragStart.bind(OR(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=zA(n[e],o,e);return ci(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,p=e.pageX-n;p>0?p=Math.min(p,a+s-c-o,a+s-c-r):p<0&&(p=Math.max(p,a-r,a-o));var d=this.getIndex({startX:r+p,endX:o+p});d.startIndex===u&&d.endIndex===l||!f||f(d),this.setState({startX:r+p,endX:o+p,slideMoveStartX:e.pageX})}},{key:"handleTravellerDragStart",value:function(e,t){var n=jR(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,p=c.onChange,d=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((kR(t={},o,s+y),kR(t,"brushMoveStartX",e.pageX),t),(function(){var e;p&&(e=h.length-1,("startX"===o&&(i>a?m%d==0:b%d==0)||i<a&&b===e||"endX"===o&&(i>a?b%d==0:m%d==0)||i>a&&b===e)&&p(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=wR(wR({},cc(this.props)),{},{x:u,y:o,width:i,height:s});return t.createElement(wc,{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(wc,{className:"recharts-brush-texts"},t.createElement(D_,mR({textAnchor:"end",verticalAnchor:"middle",x:Math.min(u,l)-5,y:o+i/2},f),this.getTextOfTick(n)),t.createElement(D_,mR({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,p=l.endX,d=l.isTextActive,h=l.isSlideMoving,g=l.isTravellerMoving;if(!n||!n.length||!Ms(i)||!Ms(a)||!Ms(s)||!Ms(c)||s<=0||c<=0)return null;var y=Io("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=yR.reduce((function(e,r){return hR(hR({},e),{},gR({},r+n,t))}),{});return r[e]=t,r}("userSelect","none");return t.createElement(wc,{className:y,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(f,p),this.renderTravellerLayer(f,"startX"),this.renderTravellerLayer(p,"endX"),(d||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):ci(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 wR({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=AC().domain(fR(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&&xR(n.prototype,r),o&&xR(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();kR(AR,"displayName","Brush"),kR(AR,"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 TR=yb;var PR=zc,MR=yp,DR=function(e,t){var n;return TR(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n},RR=ui,NR=nw;var IR=function(e,t,n){var r=RR(e)?PR:DR;return n&&NR(e,t,n)&&(t=void 0),r(e,MR(t))},LR=function(e,t){var n=e.alwaysShow,r=e.ifOverflow;return n&&(r="extendDomain"),r===t};var BR=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},FR=yb;var zR=BR,HR=function(e,t){var n=!0;return FR(e,(function(e,r,o){return n=!!t(e,r,o)})),n},VR=yp,UR=ui,KR=nw;var $R=function(e,t,n){var r=UR(e)?zR:HR;return n&&KR(e,t,n)&&(t=void 0),r(e,VR(t))},WR=zb;var qR=function(e,t,n){"__proto__"==t&&WR?WR(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},GR=qR,ZR=hb,YR=yp;var XR=function(e,t){var n={};return t=YR(t),ZR(e,(function(e,r,o){GR(n,r,t(e,r,o))})),n},JR=["value","background"];function QR(e){return QR="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},QR(e)}function eN(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 tN(){return tN=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tN.apply(this,arguments)}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function rN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nN(Object(n),!0).forEach((function(t){uN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function oN(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,lN(r.key),r)}}function iN(e,t){return iN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iN(e,t)}function aN(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cN(e);if(t){var o=cN(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===QR(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sN(e)}(this,n)}}function sN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cN(e){return cN=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},cN(e)}function uN(e,t,n){return(t=lN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lN(e){var t=function(e,t){if("object"!==QR(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==QR(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===QR(t)?t:String(t)}var fN=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&&iN(e,t)}(a,t.PureComponent);var n,r,o,i=aN(a);function a(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return uN(sN(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),uN(sN(e),"id",Ns("recharts-bar-")),uN(sN(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),t&&t()})),uN(sN(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=cc(this.props);return e&&e.map((function(e,i){var s=rN(rN(rN({},o),e),{},{index:i});return t.createElement(wc,tN({className:"recharts-bar-rectangle"},qs(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(ob,{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=Bs(n.x,e.x),a=Bs(n.y,e.y),s=Bs(n.width,e.width),c=Bs(n.height,e.height);return rN(rN({},e),{},{x:r(i),y:a(i),width:s(i),height:c(i)})}if("horizontal"===o){var u=Bs(0,e.height)(i);return rN(rN({},e),{},{y:e.y+e.height-u,height:u})}var f=Bs(0,e.width)(i);return rN(rN({},e),{},{width:f})}));return t.createElement(wc,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&&N_(r,t)?this.renderRectanglesStatically(t):this.renderRectanglesWithAnimation()}},{key:"renderBackground",value:function(){var e=this,t=this.props.data,n=cc(this.props.background);return t.map((function(t,r){t.value;var o=t.background,i=eN(t,JR);if(!o)return null;var s=rN(rN(rN(rN(rN({},i),{},{fill:"#eee"},o),n),qs(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=nc(r.children,DA);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:zA(e,t)}}var f={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,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,p=e.background,d=e.id;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Io("recharts-bar",o),y=i&&i.allowDataOverflow||a&&a.allowDataOverflow,v=Cs(d)?this.id:d;return t.createElement(wc,{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(wc,{className:"recharts-bar-rectangles",clipPath:y?"url(#clipPath-".concat(v,")"):null},p?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(y,v),(!f||h)&&eP.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):ci(e)?e(n):t.createElement(LP,n)}}],r&&oN(n.prototype,r),o&&oN(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function pN(e){return pN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pN(e)}function dN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vN(r.key),r)}}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function gN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hN(Object(n),!0).forEach((function(t){yN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yN(e,t,n){return(t=vN(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vN(e){var t=function(e,t){if("object"!==pN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==pN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pN(t)?t:String(t)}uN(fN,"displayName","Bar"),uN(fN,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"}),uN(fN,"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,p=e.offset,d=QA(r,n);if(!d)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=aT({numericAxis:b}),_=nc(v,bx),C=f.map((function(e,t){var r,f,p,g,v,b;if(u?r=eT(u[l+t],w):(r=zA(e,y),ui(r)||(r=[x,r])),"horizontal"===h){var C,O=[a.scale(r[0]),a.scale(r[1])],S=O[0],k=O[1];f=iT({axis:i,ticks:s,bandSize:o,offset:d.offset,entry:e,index:t}),p=null!==(C=null!=k?k:S)&&void 0!==C?C:void 0,g=d.size;var E=S-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=Ts(v||m)*(Math.abs(m)-Math.abs(v));p-=j,v+=j}}else{var A=[i.scale(r[0]),i.scale(r[1])],T=A[0],P=A[1];if(f=T,p=iT({axis:a,ticks:c,bandSize:o,offset:d.offset,entry:e,index:t}),g=P-T,v=d.size,b={x:i.x,y:p,width:i.width,height:v},Math.abs(m)>0&&Math.abs(g)<Math.abs(m))g+=Ts(g||m)*(Math.abs(m)-Math.abs(g))}return rN(rN(rN({},e),{},{x:f,y:p,width:g,height:v,value:u?r:r[1],payload:e,background:b},_&&_[t]&&_[t].props),{},{tooltipPayload:[dT(n,e)],tooltipPosition:{x:f+g/2,y:p+v/2}})}));return rN({data:C,layout:h},p)}));var mN=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=!!rc(c,fN);return u.reduce((function(i,a){var c,u,p,d,h,g=t[a],y=g.orientation,v=g.domain,m=g.padding,b=void 0===m?{}:m,w=g.mirror,x=g.reversed,_="".concat(y).concat(w?"Mirror":"");if("number"===g.type&&("gap"===g.padding||"no-gap"===g.padding)){var C=v[1]-v[0],O=1/0,S=g.categoricalDomain.sort();S.forEach((function(e,t){t>0&&(O=Math.min((e||0)-(S[t-1]||0),O))}));var k=O/C,E="vertical"===g.layout?n.height:n.width;if("gap"===g.padding&&(c=k*E/2),"no-gap"===g.padding){var j=Is(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=YA(g,o,f),P=T.scale,M=T.realScaleType;P.domain(v).range(u),JA(P);var D=rT(P,gN(gN({},g),{},{realScaleType:M}));"xAxis"===r?(h="top"===y&&!w||"bottom"===y&&w,p=n.left,d=l[_]-h*g.height):"yAxis"===r&&(h="left"===y&&!w||"right"===y&&w,p=l[_]-h*g.width,d=n.top);var R=gN(gN(gN({},g),D),{},{realScaleType:M,x:p,y:d,scale:P,width:"xAxis"===r?n.width:g.width,height:"yAxis"===r?n.height:g.height});return R.bandSize=fT(R,D),g.hide||"xAxis"!==r?g.hide||(l[_]+=(h?-1:1)*R.width):l[_]+=(h?-1:1)*R.height,gN(gN({},i),{},yN({},a,R))}),{})},bN=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)}},wN=function(e){var t=e.x1,n=e.y1,r=e.x2,o=e.y2;return bN({x:t,y:n},{x:r,y:o})},xN=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scale=t}var t,n,r;return t=e,n=[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.bandAware,r=t.position;if(void 0!==e){if(r)switch(r){case"start":default:return this.scale(e);case"middle":var 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&&dN(t.prototype,n),r&&dN(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();yN(xN,"EPS",1e-4);var _N=function(e){var t=Object.keys(e).reduce((function(t,n){return gN(gN({},t),{},yN({},n,xN.create(e[n])))}),{});return gN(gN({},t),{},{apply:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.bandAware,o=n.position;return XR(e,(function(e,n){return t[n].apply(e,{bandAware:r,position:o})}))},isInRange:function(e){return $R(e,(function(e,n){return t[n].isInRange(e)}))}})};function CN(e){return CN="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},CN(e)}function ON(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function SN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ON(Object(n),!0).forEach((function(t){kN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ON(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==CN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EN(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 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,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 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}function AN(){return AN=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},AN.apply(this,arguments)}var TN=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement("line",AN({},n,{className:"recharts-reference-line-line"}))},PN=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,p=o.yAxis.orientation,d=e.y.apply(f,{position:l});if(LR(o,"discard")&&!e.y.isInRange(d))return null;var h=[{x:a+c,y:d},{x:a,y:d}];return"left"===p?h.reverse():h}if(t){var g=o.x,y=o.xAxis.orientation,v=e.x.apply(g,{position:l});if(LR(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 LR(o,"discard")&&IR(b,(function(t){return!e.isInRange(t)}))?null:b}return null};function MN(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;hx(void 0===u,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=_N({x:i.scale,y:a.scale}),p=Ds(n),d=Ds(r),h=o&&2===o.length,g=PN(f,p,d,h,e);if(!g)return null;var y=EN(g,2),v=y[0],m=v.x,b=v.y,w=y[1],x=w.x,_=w.y,C=SN(SN({clipPath:LR(e,"hidden")?"url(#".concat(l,")"):void 0},cc(e,!0)),{},{x1:m,y1:b,x2:x,y2:_});return t.createElement(wc,{className:Io("recharts-reference-line",c)},TN(s,C),zT.renderCallByParent(e,wN({x1:m,y1:b,x2:x,y2:_})))}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 RN(){return RN=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},RN.apply(this,arguments)}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function IN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?NN(Object(n),!0).forEach((function(t){LN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function LN(e,t,n){return(t=function(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)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}MN.displayName="ReferenceLine",MN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"};var BN=function(e){var t=e.x,n=e.y,r=e.xAxis,o=e.yAxis,i=_N({x:r.scale,y:o.scale}),a=i.apply({x:t,y:n},{bandAware:!0});return LR(e,"discard")&&!i.isInRange(a)?null:a};function FN(e){var n=e.x,r=e.y,o=e.r,i=e.alwaysShow,a=e.clipPathId,s=Ds(n),c=Ds(r);if(hx(void 0===i,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!s||!c)return null;var u=BN(e);if(!u)return null;var l=u.x,f=u.y,p=e.shape,d=e.className,h=IN(IN({clipPath:LR(e,"hidden")?"url(#".concat(a,")"):void 0},cc(e,!0)),{},{cx:l,cy:f});return t.createElement(wc,{className:Io("recharts-reference-dot",d)},FN.renderDot(p,h),zT.renderCallByParent(e,{x:l-o,y:f-o,width:2*o,height:2*o}))}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(){return HN=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},HN.apply(this,arguments)}function VN(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 UN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?VN(Object(n),!0).forEach((function(t){KN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function KN(e,t,n){return(t=function(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)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}FN.displayName="ReferenceDot",FN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1},FN.renderDot=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,RN({},n,{cx:n.cx,cy:n.cy,className:"recharts-reference-dot-dot"}))};var $N=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=_N({x:u.scale,y:l.scale}),p={x:e?f.x.apply(i,{position:"start"}):f.x.rangeMin,y:n?f.y.apply(s,{position:"start"}):f.y.rangeMin},d={x:t?f.x.apply(a,{position:"end"}):f.x.rangeMax,y:r?f.y.apply(c,{position:"end"}):f.y.rangeMax};return!LR(o,"discard")||f.isInRange(p)&&f.isInRange(d)?bN(p,d):null};function WN(e){var n=e.x1,r=e.x2,o=e.y1,i=e.y2,a=e.className,s=e.alwaysShow,c=e.clipPathId;hx(void 0===s,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var u=Ds(n),l=Ds(r),f=Ds(o),p=Ds(i),d=e.shape;if(!(u||l||f||p||d))return null;var h=$N(u,l,f,p,e);if(!h&&!d)return null;var g=LR(e,"hidden")?"url(#".concat(c,")"):void 0;return t.createElement(wc,{className:Io("recharts-reference-area",a)},WN.renderRect(d,UN(UN({clipPath:g},cc(e,!0)),h)),zT.renderCallByParent(e,h))}function qN(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 GN(e){return GN="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},GN(e)}function ZN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function YN(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ZN(Object(n),!0).forEach((function(t){XN(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZN(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function XN(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==GN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==GN(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===GN(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JN(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,p=a.x,d=a.y,h=a.width,g=a.height,y="top"===s||"bottom"===s?"width":"height",v=(o||[]).slice(),m=u&&"width"===y?d_(u,{fontSize:l,letterSpacing:f})[y]:0,b=v.length,w=b>=2?Ts(v[1].coordinate-v[0].coordinate):1;if(1===w?(n="width"===y?p:d,r="width"===y?p+h:d+g):(n="width"===y?p+h:d+g,r="width"===y?p:d),t){var x=o[b-1],_=ci(i)?i(x.value,b-1):x.value,C=d_(_,{fontSize:l,letterSpacing:f})[y]+m,O=w*(x.coordinate+w*C/2-r);v[b-1]=x=YN(YN({},x),{},{tickCoord:O>0?x.coordinate-O*w:x.coordinate}),w*(x.tickCoord-w*C/2-n)>=0&&w*(x.tickCoord+w*C/2-r)<=0&&(r=x.tickCoord-w*(C/2+c),v[b-1]=YN(YN({},x),{},{isShow:!0}))}for(var S=t?b-1:b,k=0;k<S;k++){var E=v[k],j=ci(i)?i(E.value,k):E.value,A=d_(j,{fontSize:l,letterSpacing:f})[y]+m;if(0===k){var T=w*(E.coordinate-w*A/2-n);v[k]=E=YN(YN({},E),{},{tickCoord:T<0?E.coordinate-T*w:E.coordinate})}else v[k]=E=YN(YN({},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]=YN(YN({},E),{},{isShow:!0}))}return v}function QN(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(Ms(c)||ww.isSsr)return function(e,t){return qN(e,t+1)}(o,"number"==typeof c&&Ms(c)?c:0);var f=[];return"equidistantPreserveStart"===c?function(e){for(var t=1,n=qN(e,t,(function(e){return e.isShow}));t<=e.length;){if(void 0!==n)return n;n=qN(e,++t,(function(e){return e.isShow}))}return e.slice(0,1)}(f=JN({ticks:o,tickFormatter:u,viewBox:i,orientation:s,minTickGap:a,unit:l,fontSize:t,letterSpacing:n})):(f="preserveStart"===c||"preserveStartEnd"===c?JN({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,p=i.y,d=i.width,h=i.height,g="top"===a||"bottom"===a?"width":"height",y=c&&"width"===g?d_(c,{fontSize:u,letterSpacing:l})[g]:0,v=(r||[]).slice(),m=v.length,b=m>=2?Ts(v[1].coordinate-v[0].coordinate):1;1===b?(t="width"===g?f:p,n="width"===g?f+d:p+h):(t="width"===g?f+d:p+h,n="width"===g?f:p);for(var w=m-1;w>=0;w--){var x=v[w],_=ci(o)?o(x.value,m-w-1):x.value,C=d_(_,{fontSize:u,letterSpacing:l})[g]+y;if(w===m-1){var O=b*(x.coordinate+b*C/2-n);v[w]=x=YN(YN({},x),{},{tickCoord:O>0?x.coordinate-O*b:x.coordinate})}else v[w]=x=YN(YN({},x),{},{tickCoord:x.coordinate});b*(x.tickCoord-b*C/2-t)>=0&&b*(x.tickCoord+b*C/2-n)<=0&&(n=x.tickCoord-b*(C/2+s),v[w]=YN(YN({},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})))}WN.displayName="ReferenceArea",WN.defaultProps={isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1},WN.renderRect=function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(LP,HN({},n,{className:"recharts-reference-area-rect"}))};var eI=["viewBox"],tI=["viewBox"],nI=["ticks"];function rI(e){return rI="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},rI(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 iI(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 aI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?iI(Object(n),!0).forEach((function(t){pI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function sI(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 cI(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,dI(r.key),r)}}function uI(e,t){return uI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},uI(e,t)}function lI(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=fI(e);if(t){var o=fI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===rI(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 fI(e){return fI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fI(e)}function pI(e,t,n){return(t=dI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dI(e){var t=function(e,t){if("object"!==rI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==rI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===rI(t)?t:String(t)}var hI=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&&uI(e,t)}(a,t.Component);var n,r,o,i=lI(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=sI(e,eI),o=this.props,i=o.viewBox,a=sI(o,tI);return!zs(n,i)||!zs(r,a)||!zs(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,p=s.orientation,d=s.tickSize,h=s.mirror,g=s.tickMargin,y=h?-1:1,v=e.tickSize||d,m=Ms(e.tickCoord)?e.tickCoord:e.coordinate;switch(p){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=aI(aI(aI({},cc(this.props)),cc(c)),{},{fill:"none"});if("top"===a||"bottom"===a){var l=+("top"===a&&!s||"bottom"===a&&s);u=aI(aI({},u),{},{x1:n,y1:r+l*i,x2:n+o,y2:r+l*i})}else{var f=+("left"===a&&!s||"right"===a&&s);u=aI(aI({},u),{},{x1:n+f*o,y1:r,x2:n+f*o,y2:r+i})}return t.createElement("line",oI({},u,{className:Io("recharts-cartesian-axis-line",_s(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,p=QN(aI(aI({},this.props),{},{ticks:e}),n,r),d=this.getTickTextAnchor(),h=this.getTickVerticalAnchor(),g=cc(this.props),y=cc(u),v=aI(aI({},g),{},{fill:"none"},cc(s)),m=p.map((function(e,n){var r=o.getTickLineCoord(e),i=r.line,m=r.tick,b=aI(aI(aI(aI({textAnchor:d,verticalAnchor:h},g),{},{stroke:"none",fill:c},y),m),{},{index:n,payload:e,visibleTicksCount:p.length,tickFormatter:l});return t.createElement(wc,oI({className:"recharts-cartesian-axis-tick",key:"tick-".concat(n)},qs(o.props,e,n)),s&&t.createElement("line",oI({},v,i,{className:Io("recharts-cartesian-axis-tick-line",_s(s,"className"))})),u&&a.renderTickItem(u,b,"".concat(ci(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=sI(c,nI),f=u;return ci(a)&&(f=u&&u.length>0?a(this.props):a(l)),o<=0||i<=0||!f||!f.length?null:t.createElement(wc,{className:Io("recharts-cartesian-axis",s),ref:function(t){e.layerReference=t}},r&&this.renderAxisLine(),this.renderTicks(f,this.state.fontSize,this.state.letterSpacing),zT.renderCallByParent(this.props))}}],o=[{key:"renderTickItem",value:function(e,n,r){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(D_,oI({},n,{className:"recharts-cartesian-axis-tick-value"}),r)}}],r&&cI(n.prototype,r),o&&cI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();pI(hI,"displayName","CartesianAxis"),pI(hI,"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 gI=["x1","y1","x2","y2","key"];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 vI(){return vI=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},vI.apply(this,arguments)}function mI(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 bI(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 wI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bI(Object(n),!0).forEach((function(t){SI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xI(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kI(r.key),r)}}function _I(e,t){return _I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_I(e,t)}function CI(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=OI(e);if(t){var o=OI(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 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 OI(e){return OI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},OI(e)}function SI(e,t,n){return(t=kI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kI(e){var t=function(e,t){if("object"!==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 EI=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&&_I(e,t)}(a,t.PureComponent);var n,r,o,i=CI(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=wI(wI({},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=wI(wI({},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,p=e.offset,d=e.chartWidth,h=e.chartHeight;if(!Ms(o)||o<=0||!Ms(i)||i<=0||!Ms(n)||n!==+n||!Ms(r)||r!==+r)return null;var g=this.props,y=g.horizontalPoints,v=g.verticalPoints;return y&&y.length||!ci(c)||(y=c({yAxis:f,width:d,height:h,offset:p})),v&&v.length||!ci(u)||(v=u({xAxis:l,width:d,height:h,offset:p})),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(ci(e))r=e(n);else{var o=n.x1,i=n.y1,a=n.x2,s=n.y2,c=n.key,u=mI(n,gI);r=t.createElement("line",vI({},cc(u),{x1:o,y1:i,x2:a,y2:s,fill:"none",key:c}))}return r}}],r&&xI(n.prototype,r),o&&xI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();SI(EI,"displayName","CartesianGrid"),SI(EI,"defaultProps",{horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]});var jI=["type","layout","connectNulls","ref"];function AI(e){return AI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},AI(e)}function TI(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 PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}function MI(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 DI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?MI(Object(n),!0).forEach((function(t){HI(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function RI(e){return function(e){if(Array.isArray(e))return NI(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 NI(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 NI(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 NI(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 II(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,VI(r.key),r)}}function LI(e,t){return LI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},LI(e,t)}function BI(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=zI(e);if(t){var o=zI(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===AI(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return FI(e)}(this,n)}}function FI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zI(e){return zI=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},zI(e)}function HI(e,t,n){return(t=VI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VI(e){var t=function(e,t){if("object"!==AI(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==AI(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===AI(t)?t:String(t)}var UI=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&&LI(e,t)}(a,t.PureComponent);var n,r,o,i=BI(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 HI(FI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0,totalLength:0}),HI(FI(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(RI(n.slice(0,u)),[i-l]);break}var f=c.length%2==0?[0,s]:[s];return[].concat(RI(a.repeat(n,o)),RI(c),f).map((function(e){return"".concat(e,"px")})).join(", ")})),HI(FI(e),"id",Ns("recharts-line-")),HI(FI(e),"pathRef",(function(t){e.mainCurve=t})),HI(FI(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0}),e.props.onAnimationEnd&&e.props.onAnimationEnd()})),HI(FI(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=nc(r.children,DA);if(!c)return null;function u(e,t){return{x:e.x,y:e.y,value:e.value,errorVal:zA(e.payload,t)}}var l={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,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=cc(this.props),u=cc(o,!0),l=i.map((function(e,t){var n=DI(DI(DI({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(wc,PI({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=TI(i,jI),l=DI(DI(DI({},cc(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(SP,PI({},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,p=o.animateNewValues,d=o.width,h=o.height,g=this.state,y=g.prevPoints,v=g.totalLength;return t.createElement(ob,{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=Bs(r.x,e.x),a=Bs(r.y,e.y);return DI(DI({},e),{},{x:i(o),y:a(o)})}if(p){var c=Bs(2*d,e.x),u=Bs(h/2,e.y);return DI(DI({},e),{},{x:c(o),y:u(o)})}return DI(DI({},e),{},{x:e.x,y:e.y})}));return r.renderCurveStatically(c,e,n)}var u,l=Bs(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||!N_(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,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Io("recharts-line",i),v=a&&a.allowDataOverflow||s&&s.allowDataOverflow,m=Cs(d)?this.id:d;return t.createElement(wc,{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),(!p||h)&&eP.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(RI(e),[0]):e,r=[],o=0;o<t;++o)r=[].concat(RI(r),RI(n));return r}},{key:"renderDotItem",value:function(e,n){var r;if(t.isValidElement(e))r=t.cloneElement(e,n);else if(ci(e))r=e(n);else{var o=Io("recharts-line-dot",e?e.className:"");r=t.createElement(rM,PI({},n,{className:o}))}return r}}],r&&II(n.prototype,r),o&&II(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();HI(UI,"displayName","Line"),HI(UI,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!ww.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1}),HI(UI,"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;return DI({points:c.map((function(e,t){var c=zA(e,a);return"horizontal"===l?{x:oT({axis:n,ticks:o,bandSize:s,entry:e,index:t}),y:Cs(c)?null:r.scale(c),value:c,payload:e}:{x:Cs(c)?null:n.scale(c),y:oT({axis:r,ticks:i,bandSize:s,entry:e,index:t}),value:c,payload:e}})),layout:l},u)}));var KI=["layout","type","stroke","connectNulls","isRange","ref"];function $I(e){return $I="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},$I(e)}function WI(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 qI(){return qI=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},qI.apply(this,arguments)}function GI(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 ZI(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?GI(Object(n),!0).forEach((function(t){tL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GI(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function YI(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,nL(r.key),r)}}function XI(e,t){return XI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},XI(e,t)}function JI(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=eL(e);if(t){var o=eL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===$I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return QI(e)}(this,n)}}function QI(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eL(e){return eL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eL(e)}function tL(e,t,n){return(t=nL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nL(e){var t=function(e,t){if("object"!==$I(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==$I(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===$I(t)?t:String(t)}var rL=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&&XI(e,t)}(a,t.PureComponent);var n,r,o,i=JI(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 tL(QI(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!0}),tL(QI(e),"id",Ns("recharts-area-")),tL(QI(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),tL(QI(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"renderDots",value:function(e,n){var r=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(r&&!o)return null;var i=this.props,s=i.dot,c=i.points,u=i.dataKey,l=cc(this.props),f=cc(s,!0),p=c.map((function(e,t){var n=ZI(ZI(ZI({key:"dot-".concat(t),r:3},l),f),{},{dataKey:u,cx:e.x,cy:e.y,index:t,value:e.value,payload:e.payload});return a.renderDotItem(s,n)})),d={clipPath:e?"url(#clipPath-".concat(n,")"):null};return t.createElement(wc,qI({className:"recharts-area-dots"},d),p)}},{key:"renderHorizontalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].x,s=o[o.length-1].x,c=e*Math.abs(a-s),u=V_(o.map((function(e){return e.y||0})));return Ms(r)&&"number"==typeof r?u=Math.max(r,u):r&&ui(r)&&r.length&&(u=Math.max(V_(r.map((function(e){return e.y||0}))),u)),Ms(u)?t.createElement("rect",{x:a<s?a:a-c,y:0,width:c,height:Math.floor(u+(i?parseInt("".concat(i),10):1))}):null}},{key:"renderVerticalRect",value:function(e){var n=this.props,r=n.baseLine,o=n.points,i=n.strokeWidth,a=o[0].y,s=o[o.length-1].y,c=e*Math.abs(a-s),u=V_(o.map((function(e){return e.x||0})));return Ms(r)&&"number"==typeof r?u=Math.max(r,u):r&&ui(r)&&r.length&&(u=Math.max(V_(r.map((function(e){return e.x||0}))),u)),Ms(u)?t.createElement("rect",{x:0,y:a<s?a:a-c,width:u+(i?parseInt("".concat(i),10):1),height:Math.floor(c)}):null}},{key:"renderClipRect",value:function(e){return"vertical"===this.props.layout?this.renderVerticalRect(e):this.renderHorizontalRect(e)}},{key:"renderAreaStatically",value:function(e,n,r,o){var i=this.props,a=i.layout,s=i.type,c=i.stroke,u=i.connectNulls,l=i.isRange;i.ref;var f=WI(i,KI);return t.createElement(wc,{clipPath:r?"url(#clipPath-".concat(o,")"):null},t.createElement(SP,qI({},cc(f,!0),{points:e,connectNulls:u,type:s,baseLine:n,layout:a,stroke:"none",className:"recharts-area-area"})),"none"!==c&&t.createElement(SP,qI({},cc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:e})),"none"!==c&&l&&t.createElement(SP,qI({},cc(this.props),{className:"recharts-area-curve",layout:a,type:s,connectNulls:u,fill:"none",points:n})))}},{key:"renderAreaWithAnimation",value:function(e,n){var r=this,o=this.props,i=o.points,a=o.baseLine,s=o.isAnimationActive,c=o.animationBegin,u=o.animationDuration,l=o.animationEasing,f=o.animationId,p=this.state,d=p.prevPoints,h=p.prevBaseLine;return t.createElement(ob,{begin:c,duration:u,isActive:s,easing:l,from:{t:0},to:{t:1},key:"area-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(o){var s=o.t;if(d){var c,u=d.length/i.length,l=i.map((function(e,t){var n=Math.floor(t*u);if(d[n]){var r=d[n],o=Bs(r.x,e.x),i=Bs(r.y,e.y);return ZI(ZI({},e),{},{x:o(s),y:i(s)})}return e}));return c=Ms(a)&&"number"==typeof a?Bs(h,a)(s):Cs(a)||As(a)?Bs(h,0)(s):a.map((function(e,t){var n=Math.floor(t*u);if(h[n]){var r=h[n],o=Bs(r.x,e.x),i=Bs(r.y,e.y);return ZI(ZI({},e),{},{x:o(s),y:i(s)})}return e})),r.renderAreaStatically(l,c,e,n)}return t.createElement(wc,null,t.createElement("defs",null,t.createElement("clipPath",{id:"animationClipPath-".concat(n)},r.renderClipRect(s))),t.createElement(wc,{clipPath:"url(#animationClipPath-".concat(n,")")},r.renderAreaStatically(i,a,e,n)))}))}},{key:"renderArea",value:function(e,t){var n=this.props,r=n.points,o=n.baseLine,i=n.isAnimationActive,a=this.state,s=a.prevPoints,c=a.prevBaseLine,u=a.totalLength;return i&&r&&r.length&&(!s&&u>0||!N_(s,r)||!N_(c,o))?this.renderAreaWithAnimation(e,t):this.renderAreaStatically(r,o,e,t)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.dot,o=e.points,i=e.className,a=e.top,s=e.left,c=e.xAxis,u=e.yAxis,l=e.width,f=e.height,p=e.isAnimationActive,d=e.id;if(n||!o||!o.length)return null;var h=this.state.isAnimationFinished,g=1===o.length,y=Io("recharts-area",i),v=c&&c.allowDataOverflow||u&&u.allowDataOverflow,m=Cs(d)?this.id:d;return t.createElement(wc,{className:y},v?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(m)},t.createElement("rect",{x:s,y:a,width:l,height:Math.floor(f)}))):null,g?null:this.renderArea(v,m),(r||g)&&this.renderDots(v,m),(!p||h)&&eP.renderCallByParent(this.props,o))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,curBaseLine:e.baseLine,prevPoints:t.curPoints,prevBaseLine:t.curBaseLine}:e.points!==t.curPoints||e.baseLine!==t.curBaseLine?{curPoints:e.points,curBaseLine:e.baseLine}:null}}],r&&YI(n.prototype,r),o&&YI(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();tL(rL,"displayName","Area"),tL(rL,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"}),tL(rL,"getBaseValue",(function(e,t,n,r){var o=e.layout,i=e.baseValue,a=t.props.baseValue,s=null!=a?a:i;if(Ms(s)&&"number"==typeof s)return s;var c="horizontal"===o?r:n,u=c.scale.domain();if("number"===c.type){var l=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return"dataMin"===s?f:"dataMax"===s||l<0?l:Math.max(Math.min(u[0],u[1]),0)}return"dataMin"===s?u[0]:"dataMax"===s?u[1]:u[0]})),tL(rL,"getComposedData",(function(e){var t,n=e.props,r=e.item,o=e.xAxis,i=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,c=e.bandSize,u=e.dataKey,l=e.stackedData,f=e.dataStartIndex,p=e.displayedData,d=e.offset,h=n.layout,g=l&&l.length,y=rL.getBaseValue(n,r,o,i),v=!1,m=p.map((function(e,t){var n,r=zA(e,u);g?n=l[f+t]:ui(n=r)?v=!0:n=[y,n];var p=Cs(n[1])||g&&Cs(r);return"horizontal"===h?{x:oT({axis:o,ticks:a,bandSize:c,entry:e,index:t}),y:p?null:i.scale(n[1]),value:n,payload:e}:{x:p?null:o.scale(n[1]),y:oT({axis:i,ticks:s,bandSize:c,entry:e,index:t}),value:n,payload:e}}));return t=g||v?m.map((function(e){return"horizontal"===h?{x:e.x,y:Cs(_s(e,"value[0]"))||Cs(_s(e,"y"))?null:i.scale(_s(e,"value[0]"))}:{x:Cs(_s(e,"value[0]"))?null:o.scale(_s(e,"value[0]")),y:e.y}})):"horizontal"===h?i.scale(y):o.scale(y),ZI({points:m,baseLine:t,layout:h,isRange:v},d)})),tL(rL,"renderDotItem",(function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,qI({},n,{className:"recharts-area-dot"}))}));var oL=function(){return null};function iL(e){return iL="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},iL(e)}function aL(){return aL=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},aL.apply(this,arguments)}function sL(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 cL(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sL(Object(n),!0).forEach((function(t){hL(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function uL(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,gL(r.key),r)}}function lL(e,t){return lL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},lL(e,t)}function fL(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=dL(e);if(t){var o=dL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===iL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return pL(e)}(this,n)}}function pL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dL(e){return dL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},dL(e)}function hL(e,t,n){return(t=gL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gL(e){var t=function(e,t){if("object"!==iL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==iL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===iL(t)?t:String(t)}oL.displayName="ZAxis",oL.defaultProps={zAxisId:0,range:[64,64],scale:"auto",type:"number"};var 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&&lL(e,t)}(a,t.PureComponent);var n,r,o,i=fL(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 hL(pL(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),hL(pL(e),"handleAnimationEnd",(function(){e.setState({isAnimationFinished:!0})})),hL(pL(e),"handleAnimationStart",(function(){e.setState({isAnimationFinished:!1})})),hL(pL(e),"id",Ns("recharts-scatter-")),e}return n=a,r=[{key:"renderSymbolsStatically",value:function(e){var n=this,r=this.props,o=r.shape,i=r.activeShape,s=r.activeIndex,c=cc(this.props);return e.map((function(e,r){var u=cL(cL({key:"symbol-".concat(r)},c),e);return t.createElement(wc,aL({className:"recharts-scatter-symbol"},qs(n.props,e,r),{key:"symbol-".concat(r),role:"img"}),a.renderSymbolItem(s===r?i:o,u))}))}},{key:"renderSymbolsWithAnimation",value:function(){var e=this,n=this.props,r=n.points,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevPoints;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"pie-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.cx,e.cx),i=Bs(n.cy,e.cy),a=Bs(n.size,e.size);return cL(cL({},e),{},{cx:r(o),cy:i(o),size:a(o)})}var s=Bs(0,e.size);return cL(cL({},e),{},{size:s(o)})}));return t.createElement(wc,null,e.renderSymbolsStatically(i))}))}},{key:"renderSymbols",value:function(){var e=this.props,t=e.points,n=e.isAnimationActive,r=this.state.prevPoints;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderSymbolsStatically(t):this.renderSymbolsWithAnimation()}},{key:"renderErrorBar",value:function(){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var e=this.props,n=e.points,r=e.xAxis,o=e.yAxis,i=nc(e.children,DA);if(!i)return null;function a(e,t){return{x:e.cx,y:e.cy,value:+e.node.y,errorVal:zA(e,t)}}function s(e,t){return{x:e.cx,y:e.cy,value:+e.node.x,errorVal:zA(e,t)}}return i.map((function(e,i){var c=e.props.direction;return t.cloneElement(e,{key:i,data:n,xAxis:r,yAxis:o,layout:"x"===c?"vertical":"horizontal",dataPointFormatter:"x"===c?s:a})}))}},{key:"renderLine",value:function(){var e,n,r=this.props,o=r.points,i=r.line,a=r.lineType,s=r.lineJointType,c=cc(this.props),u=cc(i);if("joint"===a)e=o.map((function(e){return{x:e.cx,y:e.cy}}));else if("fitting"===a){var l=function(e){if(!e||!e.length)return null;for(var t=e.length,n=0,r=0,o=0,i=0,a=1/0,s=-1/0,c=0,u=0,l=0;l<t;l++)n+=c=e[l].cx||0,r+=u=e[l].cy||0,o+=c*u,i+=c*c,a=Math.min(a,c),s=Math.max(s,c);var f=t*i!=n*n?(t*o-n*r)/(t*i-n*n):0;return{xmin:a,xmax:s,a:f,b:(r-f*n)/t}}(o),f=l.xmin,p=l.xmax,d=l.a,h=l.b,g=function(e){return d*e+h};e=[{x:f,y:g(f)},{x:p,y:g(p)}]}var y=cL(cL(cL({},c),{},{fill:"none",stroke:c&&c.fill},u),{},{points:e});return n=t.isValidElement(i)?t.cloneElement(i,y):ci(i)?i(y):t.createElement(SP,aL({},y,{type:s})),t.createElement(wc,{className:"recharts-scatter-line",key:"recharts-scatter-line"},n)}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.points,o=e.line,i=e.className,a=e.xAxis,s=e.yAxis,c=e.left,u=e.top,l=e.width,f=e.height,p=e.id,d=e.isAnimationActive;if(n||!r||!r.length)return null;var h=this.state.isAnimationFinished,g=Io("recharts-scatter",i),y=a&&a.allowDataOverflow||s&&s.allowDataOverflow,v=Cs(p)?this.id:p;return t.createElement(wc,{className:g,clipPath:y?"url(#clipPath-".concat(v,")"):null},y?t.createElement("defs",null,t.createElement("clipPath",{id:"clipPath-".concat(v)},t.createElement("rect",{x:c,y:u,width:l,height:f}))):null,o&&this.renderLine(),this.renderErrorBar(),t.createElement(wc,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!d||h)&&eP.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curPoints:e.points,prevPoints:t.curPoints}:e.points!==t.curPoints?{curPoints:e.points}:null}},{key:"renderSymbolItem",value:function(e,n){var r;return t.isValidElement(e)?r=t.cloneElement(e,n):ci(e)?r=e(n):"string"==typeof e&&(r=t.createElement(Bh,aL({},n,{type:e}))),r}}],r&&uL(n.prototype,r),o&&uL(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();hL(yL,"displayName","Scatter"),hL(yL,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"}),hL(yL,"getComposedData",(function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,o=e.item,i=e.displayedData,a=e.xAxisTicks,s=e.yAxisTicks,c=e.offset,u=o.props.tooltipType,l=nc(o.props.children,bx),f=Cs(t.dataKey)?o.props.dataKey:t.dataKey,p=Cs(n.dataKey)?o.props.dataKey:n.dataKey,d=r&&r.dataKey,h=r?r.range:oL.defaultProps.range,g=h&&h[0],y=t.scale.bandwidth?t.scale.bandwidth():0,v=n.scale.bandwidth?n.scale.bandwidth():0,m=i.map((function(e,i){var c=zA(e,f),h=zA(e,p),m=!Cs(d)&&zA(e,d)||"-",b=[{name:Cs(t.dataKey)?o.props.name:t.name||t.dataKey,unit:t.unit||"",value:c,payload:e,dataKey:f,type:u},{name:Cs(n.dataKey)?o.props.name:n.name||n.dataKey,unit:n.unit||"",value:h,payload:e,dataKey:p,type:u}];"-"!==m&&b.push({name:r.name||r.dataKey,unit:r.unit||"",value:m,payload:e,dataKey:d,type:u});var w=oT({axis:t,ticks:a,bandSize:y,entry:e,index:i,dataKey:f}),x=oT({axis:n,ticks:s,bandSize:v,entry:e,index:i,dataKey:p}),_="-"!==m?r.scale(m):g,C=Math.sqrt(Math.max(_,0)/Math.PI);return cL(cL({},e),{},{cx:w,cy:x,x:w-C,y:x-C,xAxis:t,yAxis:n,zAxis:r,width:2*C,height:2*C,size:_,node:{x:c,y:h,z:m},tooltipPayload:b,tooltipPosition:{x:w,y:x},payload:e},l&&l[i]&&l[i].props)}));return cL({points:m},c)}));var vL=function(){return null};vL.displayName="XAxis",vL.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 mL=function(){return null};mL.displayName="YAxis",mL.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 bL=yp,wL=_l,xL=kl;var _L=function(e){return function(t,n,r){var o=Object(t);if(!wL(t)){var i=bL(n);t=xL(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}},CL=sR;var OL=vp,SL=yp,kL=function(e){var t=CL(e),n=t%1;return t==t?n?t-n:t:0},EL=Math.max;var jL=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:kL(n);return o<0&&(o=EL(r+o,0)),OL(e,SL(t),o)},AL=_L(jL),TL=ti,PL=li,ML="[object Boolean]";var DL=function(e){return!0===e||!1===e||PL(e)&&TL(e)==ML};function RL(e){return function(e){if(Array.isArray(e))return NL(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 NL(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 NL(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 NL(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 IL=function(e,t,n,r,o){var i=nc(e,MN),a=nc(e,FN),s=[].concat(RL(i),RL(a)),c=nc(e,WN),u="".concat(r,"Id"),l=r[0],f=t;if(s.length&&(f=s.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&Ms(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 p="".concat(l,"1"),d="".concat(l,"2");f=c.reduce((function(e,t){if(t.props[u]===n&&LR(t.props,"extendDomain")&&Ms(t.props[p])&&Ms(t.props[d])){var r=t.props[p],o=t.props[d];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 Ms(t)?[Math.min(e[0],t),Math.max(e[1],t)]:e}),f)),f},LL={};!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 p,d=l.length;for(u=0;u<d;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(p=1,c=new Array(f-1);p<f;p++)c[p-1]=arguments[p];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}({get exports(){return LL},set exports(e){LL=e}});var BL=new LL;BL.setMaxListeners&&BL.setMaxListeners(10);var FL="recharts.syncMouseEvents",zL=["item"],HL=["children","className","width","height","style","compact","title","desc"];function VL(e){return VL="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},VL(e)}function UL(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)||JL(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function KL(){return KL=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},KL.apply(this,arguments)}function $L(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 WL(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,rB(r.key),r)}}function qL(e,t){return qL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},qL(e,t)}function GL(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=YL(e);if(t){var o=YL(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===VL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return ZL(e)}(this,n)}}function ZL(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YL(e){return YL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},YL(e)}function XL(e){return function(e){if(Array.isArray(e))return QL(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||JL(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 JL(e,t){if(e){if("string"==typeof e)return QL(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)?QL(e,t):void 0}}function QL(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 eB(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 tB(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?eB(Object(n),!0).forEach((function(t){nB(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eB(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nB(e,t,n){return(t=rB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rB(e){var t=function(e,t){if("object"!==VL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==VL(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===VL(t)?t:String(t)}var oB={xAxis:["bottom","top"],yAxis:["left","right"]},iB={x:0,y:0},aB=Number.isFinite?Number.isFinite:isFinite,sB="function"==typeof requestAnimationFrame?requestAnimationFrame:"function"==typeof setImmediate?setImmediate:setTimeout,cB="function"==typeof cancelAnimationFrame?cancelAnimationFrame:"function"==typeof clearImmediate?clearImmediate:clearTimeout,uB=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(XL(e),XL(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&&Ms(o)&&Ms(i)?e.slice(o,i+1):[]};function lB(e){return"number"===e?[0,"auto"]:void 0}var fB=function(e,t,n,r){var o=e.graphicalItems,i=e.tooltipAxis,a=uB(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=Fs(void 0===s?a:s,i.dataKey,r):o=s&&s[n]||a[n];return o?[].concat(XL(e),[dT(t,o)]):e}),[])},pB=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,p=void 0;if(Ts(l-u)!==Ts(f-l)){var d=[];if(Ts(f-l)===Ts(s[1]-s[0])){p=f;var h=l+s[1]-s[0];d[0]=Math.min(h,(h+u)/2),d[1]=Math.max(h,(h+u)/2)}else{p=u;var g=f+s[1]-s[0];d[0]=Math.min(l,(g+l)/2),d[1]=Math.max(l,(g+l)/2)}var y=[Math.min(l,(p+l)/2),Math.max(l,(p+l)/2)];if(e>y[0]&&e<=y[1]||e>=d[0]&&e<=d[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=fB(e,t,u,l),p=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 tB(tB(tB({},r),_T(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,c=r.angle;return tB(tB(tB({},r),_T(r.cx,r.cy,s,c)),{},{angle:c,radius:s})}return iB}(n,a,u,o);return{activeTooltipIndex:u,activeLabel:l,activePayload:f,activeCoordinate:p}}return null},dB=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,p=WA(u,o),d=n.reduce((function(t,n){var d,h=n.props,g=h.type,y=h.dataKey,v=h.allowDataOverflow,m=h.allowDuplicatedCategory,b=h.scale,w=h.ticks,x=h.includeHidden,_=n.props[i];if(t[_])return t;var C,O,S,k=uB(e.data,{graphicalItems:r.filter((function(e){return e.props[i]===_})),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&&Ms(r)&&Ms(o))return!0}return!1})(n.props.domain,v,g)&&(C=lT(n.props.domain,null,v),!p||"number"!==g&&"auto"===b||(S=HA(k,y,"category")));var j=lB(g);if(!C||0===C.length){var A,T=null!==(A=n.props.domain)&&void 0!==A?A:j;if(y){if(C=HA(k,y,g),"category"===g&&p){var P=function(e){if(!ui(e))return!1;for(var t=e.length,n={},r=0;r<t;r++){if(n[e[r]])return!0;n[e[r]]=!0}return!1}(C);m&&P?(O=C,C=fR(0,E)):m||(C=pT(T,C,n).reduce((function(e,t){return e.indexOf(t)>=0?e:[].concat(XL(e),[t])}),[]))}else if("category"===g)C=m?C.filter((function(e){return""!==e&&!Cs(e)})):pT(T,C,n).reduce((function(e,t){return e.indexOf(t)>=0||""===t||Cs(t)?e:[].concat(XL(e),[t])}),[]);else if("number"===g){var M=function(e,t,n,r,o){var i=t.map((function(t){return KA(e,t,n,o,r)})).filter((function(e){return!Cs(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]===_&&(x||!e.props.hide)})),y,o,u);M&&(C=M)}!p||"number"!==g&&"auto"===b||(S=HA(k,y,"category"))}else C=p?fR(0,E):a&&a[_]&&a[_].hasStack&&"number"===g?"expand"===f?[0,1]:sT(a[_].stackGroups,s,c):$A(k,r.filter((function(e){return e.props[i]===_&&(x||!e.props.hide)})),g,u,!0);if("number"===g)C=IL(l,C,_,o,w),T&&(C=lT(T,C,v));else if("category"===g&&T){var D=T;C.every((function(e){return D.indexOf(e)>=0}))&&(C=D)}}return tB(tB({},t),{},nB({},_,tB(tB({},n.props),{},{axisType:o,domain:C,categoricalDomain:S,duplicateDomain:O,originalDomain:null!==(d=n.props.domain)&&void 0!==d?d:j,isCategorical:p,layout:u})))}),{});return d},hB=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=nc(u,o),p={};return f&&f.length?p=dB(e,{axes:f,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c}):i&&i.length&&(p=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=uB(e.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),p=f.length,d=WA(u,o),h=-1;return n.reduce((function(e,t){var g,y=t.props[i],v=lB("number");return e[y]?e:(h++,d?g=fR(0,p):a&&a[y]&&a[y].hasStack?(g=sT(a[y].stackGroups,s,c),g=IL(l,g,y,o)):(g=lT(v,$A(f,n.filter((function(e){return e.props[i]===y&&!e.props.hide})),"number",u),r.defaultProps.allowDataOverflow),g=IL(l,g,y,o)),tB(tB({},e),{},nB({},y,tB(tB({axisType:o},r.defaultProps),{},{hide:!0,orientation:_s(oB,"".concat(o,".").concat(h%2),null),domain:g,originalDomain:v,isCategorical:d,layout:u}))))}),{})}(e,{Axis:o,graphicalItems:i,axisType:r,axisIdKey:l,stackGroups:a,dataStartIndex:s,dataEndIndex:c})),p},gB=function(e){var t,n,r=e.children,o=e.defaultShowTooltip,i=rc(r,AR);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:!Cs(o)&&o}},yB=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"}},vB=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=rc(u,AR),p=rc(u,lg),d=Object.keys(a).reduce((function(e,t){var n=a[t],r=n.orientation;return n.mirror||n.hide?e:tB(tB({},e),{},nB({},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:tB(tB({},e),{},nB({},r,_s(e,"".concat(r))+n.height))}),{top:l.top||0,bottom:l.bottom||0}),g=tB(tB({},h),d),y=g.bottom;return f&&(g.bottom+=f.props.height||AR.defaultProps.height),p&&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=UA({children:o,legendWidth:s}),u=e;if(c){var l=r||{},f=c.align,p=c.verticalAlign,d=c.layout;("vertical"===d||"horizontal"===d&&"middle"===p)&&Ms(e[f])&&(u=BA(BA({},e),{},FA({},f,u[f]+(l.width||0)))),("horizontal"===d||"vertical"===d&&"center"===f)&&Ms(e[p])&&(u=BA(BA({},e),{},FA({},p,u[p]+(l.height||0))))}return u}(g,0,n,t)),tB(tB({brushBottom:y},g),{},{width:s-g.left-g.right,height:c-g.top-g.bottom})},mB=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,p=e.defaultProps,d=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,p=e.barCategoryGap,d=e.maxBarSize,h=yB(l),g=h.numericAxisName,y=h.cateAxisName,v=function(e){return!(!e||!e.length)&&e.some((function(e){var t=Js(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 p=c[u[l]],d=p.items,h=p.cateAxisId,g=d.filter((function(e){return Js(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:Cs(y)?t:y})}}return o}({barSize:c,stackGroups:r}),b=[];return n.forEach((function(n,c){var h=uB(e.data,{dataStartIndex:a,dataEndIndex:s},n),v=n.props,w=v.dataKey,x=v.maxBarSize,_=n.props["".concat(g,"Id")],C=n.props["".concat(y,"Id")],O=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 tB(tB({},e),{},(nB(o={},r.axisType,s),nB(o,"".concat(r.axisType,"Ticks"),GA(s)),o))}),{}),S=O[y],k=O["".concat(y,"Ticks")],E=r&&r[_]&&r[_].hasStack&&function(e,t){var n=e.props.stackId;if(Ds(n)){var r=t[n];if(r&&r.items.length){for(var o=-1,i=0,a=r.items.length;i<a;i++)if(r.items[i]===e){o=i;break}return o>=0?r.stackedData[o]:null}}return null}(n,r[_].stackGroups),j=Js(n.type).indexOf("Bar")>=0,A=fT(S,k),T=[];if(j){var P,M,D=Cs(x)?d:x,R=null!==(P=null!==(M=fT(S,k,!0))&&void 0!==M?M:D)&&void 0!==P?P: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=Is(t,r,0,!0);if(i[0].barSize===+i[0].barSize){var l=!1,f=r/s,p=i.reduce((function(e,t){return e+t.barSize||0}),0);(p+=(s-1)*u)>=r&&(p-=(s-1)*u,u=0),p>=r&&f>0&&(l=!0,p=s*(f*=.9));var d={offset:((r-p)/2>>0)-u,size:0};c=i.reduce((function(e,t){var n=[].concat(NA(e),[{item:t.item,position:{offset:d.offset+d.size+u,size:l?f:t.barSize}}]);return d=n[n.length-1].position,t.stackList&&t.stackList.length&&t.stackList.forEach((function(e){n.push({item:e,position:d})})),n}),[])}else{var h=Is(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(NA(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:p,bandSize:R!==A?R:A,sizeList:m[C],maxBarSize:D}),R!==A&&(T=T.map((function(e){return tB(tB({},e),{},{position:tB(tB({},e.position),{},{offset:e.position.offset-R/2})})})))}var N,I,L,B=n&&n.type&&n.type.getComposedData;B&&b.push({props:tB(tB({},B(tB(tB({},O),{},{displayedData:h,props:e,dataKey:w,item:n,bandSize:A,barPosition:T,offset:o,stackedData:E,layout:l,dataStartIndex:a,dataEndIndex:s}))),{},(N={key:n.key||"item-".concat(c)},nB(N,g,O[g]),nB(N,y,O[y]),nB(N,"animationId",i),N)),childIndex:(I=n,L=e.children,tc(L).indexOf(I)),item:n})})),b},h=function(e,t){var n=e.props,i=e.dataStartIndex,a=e.dataEndIndex,s=e.updateId;if(!oc({props:n}))return null;var c=n.children,l=n.layout,p=n.stackOffset,h=n.data,g=n.reverseStackOrder,y=yB(l),v=y.numericAxisName,m=y.cateAxisName,b=nc(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(Ds(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[Ns("_stackId_")]={numericAxisId:n,cateAxisId:r,items:[t]};return BA(BA({},e),{},FA({},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 BA(BA({},t),{},FA({},i,{numericAxisId:n,cateAxisId:r,items:a.items,stackedData:nT(e,a.items,o)}))}),{})),BA(BA({},t),{},FA({},i,s))}),{})}(h,b,"".concat(v,"Id"),"".concat(m,"Id"),p,g),x=u.reduce((function(e,t){var r="".concat(t.axisType,"Map");return tB(tB({},e),{},nB({},r,hB(n,tB(tB({},t),{},{graphicalItems:b,stackGroups:t.axisType===v&&w,dataStartIndex:i,dataEndIndex:a}))))}),{}),_=vB(tB(tB({},x),{},{props:n,graphicalItems:b}),null==t?void 0:t.legendBBox);Object.keys(x).forEach((function(e){x[e]=f(n,x[e],_,e.replace("Map",""),r)}));var C,O,S=x["".concat(m,"Map")],k=(C=Ls(S),{tooltipTicks:O=GA(C,!1,!0),orderedTooltipTicks:aw(O,(function(e){return e.coordinate})),tooltipAxis:C,tooltipAxisBandSize:fT(C,O)}),E=d(n,tB(tB({},x),{},{dataStartIndex:i,dataEndIndex:a,updateId:s,graphicalItems:b,stackGroups:w,offset:_}));return tB(tB({formattedGraphicalItems:E,graphicalItems:b,offset:_,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&&qL(e,t)}(u,t.Component);var n,o,i,s=GL(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),nB(ZL(n=s.call(this,e)),"clearDeferId",(function(){!Cs(n.deferId)&&cB&&cB(n.deferId),n.deferId=null})),nB(ZL(n),"handleLegendBBoxUpdate",(function(e){if(e){var t=n.state,r=t.dataStartIndex,o=t.dataEndIndex,i=t.updateId;n.setState(tB({legendBBox:e},h({props:n.props,dataStartIndex:r,dataEndIndex:o,updateId:i},tB(tB({},n.state),{},{legendBBox:e}))))}})),nB(ZL(n),"handleReceiveSyncEvent",(function(e,t,r){n.props.syncId===e&&t!==n.uniqueChartId&&(n.clearDeferId(),n.deferId=sB&&sB(n.applySyncEvent.bind(ZL(n),r)))})),nB(ZL(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 tB({dataStartIndex:t,dataEndIndex:r},h({props:n.props,dataStartIndex:t,dataEndIndex:r,updateId:o},n.state))})),n.triggerSyncEvent({dataStartIndex:t,dataEndIndex:r})}})),nB(ZL(n),"handleMouseEnter",(function(e){var t=n.props.onMouseEnter,r=n.getMouseInfo(e);if(r){var o=tB(tB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)}})),nB(ZL(n),"triggeredAfterMouseMove",(function(e){var t=n.props.onMouseMove,r=n.getMouseInfo(e),o=r?tB(tB({},r),{},{isTooltipActive:!0}):{isTooltipActive:!1};n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)})),nB(ZL(n),"handleItemMouseEnter",(function(e){n.setState((function(){return{isTooltipActive:!0,activeItem:e,activePayload:e.tooltipPayload,activeCoordinate:e.tooltipPosition||{x:e.cx,y:e.cy}}}))})),nB(ZL(n),"handleItemMouseLeave",(function(){n.setState((function(){return{isTooltipActive:!1}}))})),nB(ZL(n),"handleMouseMove",(function(e){e&&ci(e.persist)&&e.persist(),n.triggeredAfterMouseMove(e)})),nB(ZL(n),"handleMouseLeave",(function(e){var t=n.props.onMouseLeave,r={isTooltipActive:!1};n.setState(r),n.triggerSyncEvent(r),ci(t)&&t(r,e),n.cancelThrottledTriggerAfterMouseMove()})),nB(ZL(n),"handleOuterEvent",(function(e){var t=pc(e),r=_s(n.props,"".concat(t));t&&ci(r)&&r(/.*touch.*/i.test(t)?n.getMouseInfo(e.changedTouches[0]):n.getMouseInfo(e),e)})),nB(ZL(n),"handleClick",(function(e){var t=n.props.onClick,r=n.getMouseInfo(e);if(r){var o=tB(tB({},r),{},{isTooltipActive:!0});n.setState(o),n.triggerSyncEvent(o),ci(t)&&t(o,e)}})),nB(ZL(n),"handleMouseDown",(function(e){var t=n.props.onMouseDown;ci(t)&&t(n.getMouseInfo(e),e)})),nB(ZL(n),"handleMouseUp",(function(e){var t=n.props.onMouseUp;ci(t)&&t(n.getMouseInfo(e),e)})),nB(ZL(n),"handleTouchMove",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseMove(e.changedTouches[0])})),nB(ZL(n),"handleTouchStart",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseDown(e.changedTouches[0])})),nB(ZL(n),"handleTouchEnd",(function(e){null!=e.changedTouches&&e.changedTouches.length>0&&n.handleMouseUp(e.changedTouches[0])})),nB(ZL(n),"verticalCoordinatesGenerator",(function(e){var t=e.xAxis,n=e.width,r=e.height,o=e.offset;return qA(QN(tB(tB(tB({},hI.defaultProps),t),{},{ticks:GA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.left,o.left+o.width)})),nB(ZL(n),"horizontalCoordinatesGenerator",(function(e){var t=e.yAxis,n=e.width,r=e.height,o=e.offset;return qA(QN(tB(tB(tB({},hI.defaultProps),t),{},{ticks:GA(t,!0),viewBox:{x:0,y:0,width:n,height:r}})),o.top,o.top+o.height)})),nB(ZL(n),"axesTicksGenerator",(function(e){return GA(e,!0)})),nB(ZL(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,p=n.props.layout,d=SP;if("ScatterChart"===r)f=a,d=fM;else if("BarChart"===r)f=n.getCursorRectangle(),d=LP;else if("radial"===p){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},d=lP}else f={points:n.getCursorPoints()},d=SP;var m=e.key||"_recharts-cursor",b=tB(tB(tB(tB({stroke:"#ccc",pointerEvents:"none"},c),f),cc(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(d,b)})),nB(ZL(n),"renderPolarAxis",(function(e,r,o){var i=_s(e,"type.axisType"),a=_s(n.state,"".concat(i,"Map")),s=a&&a[e.props["".concat(i,"Id")]];return t.cloneElement(e,tB(tB({},s),{},{className:i,key:e.key||"".concat(r,"-").concat(o),ticks:GA(s,!0)}))})),nB(ZL(n),"renderXAxis",(function(e,t,r){var o=n.state.xAxisMap[e.props.xAxisId];return n.renderAxis(o,e,t,r)})),nB(ZL(n),"renderYAxis",(function(e,t,r){var o=n.state.yAxisMap[e.props.yAxisId];return n.renderAxis(o,e,t,r)})),nB(ZL(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=Ls(o),f=AL(i,(function(e){return $R(e.domain,aB)}))||Ls(i),p=e.props||{};return t.cloneElement(e,{key:e.key||"grid",x:Ms(p.x)?p.x:a.left,y:Ms(p.y)?p.y:a.top,width:Ms(p.width)?p.width:a.width,height:Ms(p.height)?p.height:a.height,xAxis:l,yAxis:f,offset:a,chartWidth:c,chartHeight:u,verticalCoordinatesGenerator:p.verticalCoordinatesGenerator||n.verticalCoordinatesGenerator,horizontalCoordinatesGenerator:p.horizontalCoordinatesGenerator||n.horizontalCoordinatesGenerator})})),nB(ZL(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=Ls(c),f=Ls(u),p=f.cx,d=f.cy,h=f.innerRadius,g=f.outerRadius;return t.cloneElement(e,{polarAngles:ui(i)?i:GA(f,!0).map((function(e){return e.coordinate})),polarRadius:ui(a)?a:GA(l,!0).map((function(e){return e.coordinate})),cx:p,cy:d,innerRadius:h,outerRadius:g,key:e.key||"polar-grid",radialLines:o})})),nB(ZL(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=UA({children:o,formattedGraphicalItems:e,legendWidth:c,legendContent:l});if(!u)return null;var f=u.item,p=$L(u,zL);return t.cloneElement(f,tB(tB({},p),{},{chartWidth:i,chartHeight:a,margin:s,ref:function(e){n.legendInstance=e},onBBoxUpdate:n.handleLegendBBoxUpdate}))})),nB(ZL(n),"renderTooltip",(function(){var e=rc(n.props.children,Dw);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:tB(tB({},c),{},{x:c.left,y:c.top}),active:o,label:s,payload:o?a:[],coordinate:i})})),nB(ZL(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:ZA(n.handleBrushChange,null,e.props.onChange),data:i,x:Ms(e.props.x)?e.props.x:s.left,y:Ms(e.props.y)?e.props.y:s.top+s.height+s.brushBottom-(o.bottom||0),width:Ms(e.props.width)?e.props.width:s.width,startIndex:c,endIndex:u,updateId:"brush-".concat(l)})})),nB(ZL(n),"renderReferenceElement",(function(e,r,o){if(!e)return null;var i=ZL(n).clipPathId,a=n.state,s=a.xAxisMap,c=a.yAxisMap,u=a.offset,l=e.props,f=l.xAxisId,p=l.yAxisId;return t.cloneElement(e,{key:e.key||"".concat(r,"-").concat(o),xAxis:s[f],yAxis:c[p],viewBox:{x:u.left,y:u.top,width:u.width,height:u.height},clipPathId:i})})),nB(ZL(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=tB(tB({index:o,dataKey:c.dataKey,cx:n.x,cy:n.y,r:4,fill:VA(t.item),strokeWidth:2,stroke:"#fff",payload:n.payload,value:n.value,key:"".concat(s,"-activePoint-").concat(o)},cc(l)),Ws(l));return a.push(u.renderActiveDot(l,f)),r?a.push(u.renderActiveDot(l,tB(tB({},f),{},{cx:r.x,cy:r.y,key:"".concat(s,"-basePoint-").concat(o)}))):i&&a.push(null),a})),nB(ZL(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,p=rc(n.props.children,Dw),d=i.props,h=d.points,g=d.isRange,y=d.baseLine,v=i.item.props,m=v.activeDot,b=!v.hide&&c&&p&&m&&l>=0,w={};"axis"!==a&&p&&"click"===p.props.trigger?w={onClick:ZA(n.handleItemMouseEnter,null,e.props.onCLick)}:"axis"!==a&&(w={onMouseLeave:ZA(n.handleItemMouseLeave,null,e.props.onMouseLeave),onMouseEnter:ZA(n.handleItemMouseEnter,null,e.props.onMouseEnter)});var x=t.cloneElement(e,tB(tB({},i.props),w));if(b){var _,C;if(u.dataKey&&!u.allowDuplicatedCategory){var O="function"==typeof u.dataKey?function(e){return"function"==typeof u.dataKey?u.dataKey(e.payload):null}:"payload.".concat(u.dataKey.toString());_=Fs(h,O,f),C=g&&y&&Fs(y,O,f)}else _=h[l],C=g&&y&&y[l];if(!Cs(_))return[x].concat(XL(n.renderActivePoints({item:i,activePoint:_,basePoint:C,childIndex:l,isRange:g})))}return g?[x,null,null]:[x,null]})),nB(ZL(n),"renderCustomized",(function(e,r,o){return t.cloneElement(e,tB(tB({key:"recharts-customized-".concat(o)},n.props),n.state))})),n.uniqueChartId=Cs(e.id)?Ns("recharts"):e.id,n.clipPathId="".concat(n.uniqueChartId,"-clip"),e.throttleDelay&&(n.triggeredAfterMouseMove=ix(n.triggeredAfterMouseMove,e.throttleDelay)),n.state={},n}return n=u,o=[{key:"componentDidMount",value:function(){Cs(this.props.syncId)||this.addListener()}},{key:"componentDidUpdate",value:function(e){Cs(e.syncId)&&!Cs(this.props.syncId)&&this.addListener(),!Cs(e.syncId)&&Cs(this.props.syncId)&&this.removeListener()}},{key:"componentWillUnmount",value:function(){this.clearDeferId(),Cs(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=rc(this.props.children,Dw);if(e&&DL(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=Ls(s).scale,l=Ls(c).scale,f=u&&u.invert?u.invert(o.chartX):null,p=l&&l.invert?l.invert(o.chartY):null;return tB(tB({},o),{},{xValue:f,yValue:p})}var d=pB(this.state,this.props.data,this.props.layout,i);return d?tB(tB({},o),d):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(!Cs(a.cx)||!Cs(a.cy)){if("centric"!==o){var c=a.cx,u=a.cy,l=a.radius,f=a.startAngle,p=a.endAngle;return{points:[_T(c,u,l,f),_T(c,u,l,p)],cx:c,cy:u,radius:l,startAngle:f,endAngle:p}}var d=a.cx,h=a.cy,g=a.innerRadius,y=a.outerRadius,v=a.angle,m=_T(d,h,g,v),b=_T(d,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=Ls(i);return ET({x:e,y:t},s)}return null}},{key:"parseEventsOfWrapper",value:function(){var e=this.props.children,t=this.getTooltipEventType(),n=rc(e,Dw),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}),tB(tB({},Ws(this.props,this.handleOuterEvent)),r)}},{key:"addListener",value:function(){BL.on(FL,this.handleReceiveSyncEvent),BL.setMaxListeners&&BL._maxListeners&&BL.setMaxListeners(BL._maxListeners+1)}},{key:"removeListener",value:function(){BL.removeListener(FL,this.handleReceiveSyncEvent),BL.setMaxListeners&&BL._maxListeners&&BL.setMaxListeners(BL._maxListeners-1)}},{key:"triggerSyncEvent",value:function(e){var t=this.props.syncId;Cs(t)||BL.emit(FL,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(Cs(e.dataStartIndex)&&Cs(e.dataEndIndex))if(Cs(e.activeTooltipIndex))this.setState(e);else{var s=e.chartX,c=e.chartY,u=e.activeTooltipIndex,l=this.state,f=l.offset,p=l.tooltipTicks;if(!f)return;if("function"==typeof r)u=r(p,e);else if("value"===r){u=-1;for(var d=0;d<p.length;d++)if(p[d].value===e.activeLabel){u=d;break}}var g=tB(tB({},f),{},{x:f.left,y:f.top}),y=Math.min(s,g.x+g.width),v=Math.min(c,g.y+g.height),m=p[u]&&p[u].value,b=fB(this.state,this.props.data,u),w=p[u]?{x:"horizontal"===n?p[u].coordinate:y,y:"horizontal"===n?v:p[u].coordinate}:iB;this.setState(tB(tB({},e),{},{activeLabel:m,activeCoordinate:w,activePayload:b,activeTooltipIndex:u}))}else this.setState(tB({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===Js(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(hI,KL({},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=UL(t,2),r=n[0],o=n[1];return tB(tB({},e),{},nB({},r,o.scale))}),{}):null}},{key:"getYScales",value:function(){var e=this.state.yAxisMap;return e?Object.entries(e).reduce((function(e,t){var n=UL(t,2),r=n[0],o=n[1];return tB(tB({},e),{},nB({},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=Js(a.type);if("Bar"===s){var c=(i.data||[]).find((function(t){return IP(e,t)}));if(c)return{graphicalItem:o,payload:c}}else if("RadialBar"===s){var u=(i.data||[]).find((function(t){return ET(e,t)}));if(u)return{graphicalItem:o,payload:u}}}return null}},{key:"render",value:function(){var e=this;if(!oc(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=$L(n,HL),p=cc(f),d={CartesianGrid:{handler:this.renderGrid,once:!0},ReferenceArea:{handler:this.renderReferenceElement},ReferenceLine:{handler:this.renderReferenceElement},ReferenceDot:{handler:this.renderReferenceElement},XAxis:{handler:this.renderXAxis},YAxis:{handler:this.renderYAxis},Brush:{handler:this.renderBrush,once:!0},Bar:{handler:this.renderGraphicChild},Line:{handler:this.renderGraphicChild},Area:{handler:this.renderGraphicChild},Radar:{handler:this.renderGraphicChild},RadialBar:{handler:this.renderGraphicChild},Scatter:{handler:this.renderGraphicChild},Pie:{handler:this.renderGraphicChild},Funnel:{handler:this.renderGraphicChild},Tooltip:{handler:this.renderCursor,once:!0},PolarGrid:{handler:this.renderPolarGrid,once:!0},PolarAngleAxis:{handler:this.renderPolarAxis},PolarRadiusAxis:{handler:this.renderPolarAxis},Customized:{handler:this.renderCustomized}};if(c)return t.createElement(yc,KL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),fc(r,d));var h=this.parseEventsOfWrapper();return t.createElement("div",KL({className:Io("recharts-wrapper",o),style:tB({position:"relative",cursor:"default",width:i,height:a},s)},h,{ref:function(t){e.container=t},role:"region"}),t.createElement(yc,KL({},p,{width:i,height:a,title:u,desc:l}),this.renderClipPath(),fc(r,d)),this.renderLegend(),this.renderTooltip())}}],o&&WL(n.prototype,o),i&&WL(n,i),Object.defineProperty(n,"prototype",{writable:!1}),u}(),nB(n,"displayName",r),nB(n,"defaultProps",tB({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),nB(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(Cs(t.updateId)){var u=gB(e);return tB(tB(tB({},u),{},{updateId:0},h(tB(tB({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||!zs(c,t.prevMargin)){var l=gB(e),f={chartX:t.chartX,chartY:t.chartY,isTooltipActive:t.isTooltipActive},p=tB(tB({},pB(t,n,a)),{},{updateId:t.updateId+1}),d=tB(tB(tB({},l),f),p);return tB(tB(tB({},d),h(tB({props:e},d),t)),{},{prevData:n,prevWidth:o,prevHeight:i,prevLayout:a,prevStackOffset:s,prevMargin:c,prevChildren:r})}if(!uc(r,t.prevChildren)){var g=!Cs(n)?t.updateId:t.updateId+1;return tB(tB({updateId:g},h(tB(tB({props:e},t),{},{updateId:g}),t)),{},{prevChildren:r})}return null})),nB(n,"renderActiveDot",(function(e,n){var r;return r=t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(rM,n),t.createElement(wc,{className:"recharts-active-dot",key:n.key},r)})),n},bB=mB({chartName:"LineChart",GraphicalChild:UI,axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),wB=mB({chartName:"BarChart",GraphicalChild:fN,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),xB=mB({chartName:"PieChart",GraphicalChild:kD,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});var _B=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e},CB=qR,OB=fa,SB=Object.prototype.hasOwnProperty;var kB=function(e,t,n){var r=e[t];SB.call(e,t)&&OB(r,n)&&(void 0!==n||t in e)||CB(e,t,n)},EB=kB,jB=qR;var AB=function(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var s=t[i],c=r?r(n[s],e[s],s,n,e):void 0;void 0===c&&(c=e[s]),o?jB(n,s,c):EB(n,s,c)}return n},TB=AB,PB=kl;var MB=function(e,t){return e&&TB(t,PB(t),e)};var DB=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},RB=Lo,NB=dl,IB=DB,LB=Object.prototype.hasOwnProperty;var BB=function(e){if(!RB(e))return IB(e);var t=NB(e),n=[];for(var r in e)("constructor"!=r||!t&&LB.call(e,r))&&n.push(r);return n},FB=fl,zB=BB,HB=_l;var VB=function(e){return HB(e)?FB(e,!0):zB(e)},UB=AB,KB=VB;var $B=function(e,t){return e&&UB(t,KB(t),e)},WB={};!function(e,t){var n=Ho,r=t&&!t.nodeType&&t,o=r&&e&&!e.nodeType&&e,i=o&&o.exports===r?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}}({get exports(){return WB},set exports(e){WB=e}},WB);var qB=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t},GB=AB,ZB=Au;var YB=function(e,t){return GB(e,ZB(e),t)},XB=mu,JB=oD,QB=Au,eF=Cu,tF=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)XB(t,QB(e)),e=JB(e);return t}:eF,nF=AB,rF=tF;var oF=function(e,t){return nF(e,rF(e),t)},iF=xu,aF=tF,sF=VB;var cF=function(e){return iF(e,sF,aF)},uF=Object.prototype.hasOwnProperty;var lF=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&uF.call(e,"index")&&(n.index=e.index,n.input=e.input),n},fF=Gc;var pF=function(e){var t=new e.constructor(e.byteLength);return new fF(t).set(new fF(e)),t},dF=pF;var hF=function(e,t){var n=t?dF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},gF=/\w*$/;var yF=function(e){var t=new e.constructor(e.source,gF.exec(e));return t.lastIndex=e.lastIndex,t},vF=Vo?Vo.prototype:void 0,mF=vF?vF.valueOf:void 0;var bF=pF;var wF=pF,xF=hF,_F=yF,CF=function(e){return mF?Object(mF.call(e)):{}},OF=function(e,t){var n=t?bF(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},SF="[object Boolean]",kF="[object Date]",EF="[object Map]",jF="[object Number]",AF="[object RegExp]",TF="[object Set]",PF="[object String]",MF="[object Symbol]",DF="[object ArrayBuffer]",RF="[object DataView]",NF="[object Float32Array]",IF="[object Float64Array]",LF="[object Int8Array]",BF="[object Int16Array]",FF="[object Int32Array]",zF="[object Uint8Array]",HF="[object Uint8ClampedArray]",VF="[object Uint16Array]",UF="[object Uint32Array]";var KF=function(e,t,n){var r=e.constructor;switch(t){case DF:return wF(e);case SF:case kF:return new r(+e);case RF:return xF(e,n);case NF:case IF:case LF:case BF:case FF:case zF:case HF:case VF:case UF:return OF(e,n);case EF:return new r;case jF:case PF:return new r(e);case AF:return _F(e);case TF:return new r;case MF:return CF(e)}},$F=Lo,WF=Object.create,qF=function(){function e(){}return function(t){if(!$F(t))return{};if(WF)return WF(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),GF=qF,ZF=oD,YF=dl;var XF=function(e){return"function"!=typeof e.constructor||YF(e)?{}:GF(ZF(e))},JF=nf,QF=li,ez="[object Map]";var tz=function(e){return QF(e)&&JF(e)==ez},nz=Ju,rz=Qu&&Qu.isMap,oz=rz?nz(rz):tz,iz=nf,az=li,sz="[object Set]";var cz=function(e){return az(e)&&iz(e)==sz},uz=Ju,lz=Qu&&Qu.isSet,fz=lz?uz(lz):cz,pz=Dc,dz=_B,hz=kB,gz=MB,yz=$B,vz=WB,mz=qB,bz=YB,wz=oF,xz=Tl,_z=cF,Cz=nf,Oz=lF,Sz=KF,kz=XF,Ez=ui,jz=zu,Az=oz,Tz=Lo,Pz=fz,Mz=kl,Dz=VB,Rz=1,Nz=2,Iz=4,Lz="[object Arguments]",Bz="[object Function]",Fz="[object GeneratorFunction]",zz="[object Object]",Hz={};Hz[Lz]=Hz["[object Array]"]=Hz["[object ArrayBuffer]"]=Hz["[object DataView]"]=Hz["[object Boolean]"]=Hz["[object Date]"]=Hz["[object Float32Array]"]=Hz["[object Float64Array]"]=Hz["[object Int8Array]"]=Hz["[object Int16Array]"]=Hz["[object Int32Array]"]=Hz["[object Map]"]=Hz["[object Number]"]=Hz[zz]=Hz["[object RegExp]"]=Hz["[object Set]"]=Hz["[object String]"]=Hz["[object Symbol]"]=Hz["[object Uint8Array]"]=Hz["[object Uint8ClampedArray]"]=Hz["[object Uint16Array]"]=Hz["[object Uint32Array]"]=!0,Hz["[object Error]"]=Hz[Bz]=Hz["[object WeakMap]"]=!1;var Vz=function e(t,n,r,o,i,a){var s,c=n&Rz,u=n&Nz,l=n&Iz;if(r&&(s=i?r(t,o,i,a):r(t)),void 0!==s)return s;if(!Tz(t))return t;var f=Ez(t);if(f){if(s=Oz(t),!c)return mz(t,s)}else{var p=Cz(t),d=p==Bz||p==Fz;if(jz(t))return vz(t,c);if(p==zz||p==Lz||d&&!i){if(s=u||d?{}:kz(t),!c)return u?wz(t,yz(s,t)):bz(t,gz(s,t))}else{if(!Hz[p])return i?t:{};s=Sz(t,p,c)}}a||(a=new pz);var h=a.get(t);if(h)return h;a.set(t,s),Pz(t)?t.forEach((function(o){s.add(e(o,n,r,o,t,a))})):Az(t)&&t.forEach((function(o,i){s.set(i,e(o,n,r,i,t,a))}));var g=f?void 0:(l?u?_z:xz:u?Dz:Mz)(t);return dz(g||t,(function(o,i){g&&(o=t[i=o]),hz(s,i,e(o,n,r,i,t,a))})),s},Uz=ws,Kz=zp;var $z=function(e,t){return t.length<2?e:Uz(e,Kz(t,0,-1))},Wz=hs,qz=UT,Gz=$z,Zz=vs;var Yz=function(e,t){return t=Wz(t,e),null==(e=Gz(e,t))||delete e[Zz(qz(t))]},Xz=hD;var Jz=lb;var Qz=function(e){return(null==e?0:e.length)?Jz(e,1):[]},eH=Qz,tH=Lb,nH=Gb;var rH=es,oH=Vz,iH=Yz,aH=hs,sH=AB,cH=function(e){return Xz(e)?void 0:e},uH=cF,lH=function(e){return nH(tH(e,void 0,eH),e+"")}((function(e,t){var n={};if(null==e)return n;var r=!1;t=rH(t,(function(t){return t=aH(t,e),r||(r=t.length>1),t})),sH(e,uH(e),n),r&&(n=oH(n,7,cH));for(var o=t.length;o--;)iH(n,t[o]);return n})),fH=lH,pH=["#1890FF","#66B5FF","#41D9C7","#2FC25B","#6EDB8F","#9AE65C","#FACC14","#E6965C","#57AD71","#223273","#738AE6","#7564CC","#8543E0","#A877ED","#5C8EE6","#13C2C2","#70E0E0","#5CA3E6","#3436C7","#8082FF","#DD81E6","#F04864","#FA7D92","#D598D9"],dH=["width","height","className","style","children","type"];function hH(e){return hH="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},hH(e)}function gH(){return gH=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},gH.apply(this,arguments)}function yH(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 vH(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,SH(r.key),r)}}function mH(e,t){return mH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},mH(e,t)}function bH(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=xH(e);if(t){var o=xH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===hH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return wH(e)}(this,n)}}function wH(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xH(e){return xH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xH(e)}function _H(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 CH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_H(Object(n),!0).forEach((function(t){OH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function OH(e,t,n){return(t=SH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=function(e,t){if("object"!==hH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==hH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hH(t)?t:String(t)}var kH="value",EH=function e(t){var n,r,o=t.depth,i=t.node,a=t.index,s=t.valueKey,c=i.children,u=o+1,l=c&&c.length?c.map((function(t,n){return e({depth:u,node:t,index:n,valueKey:s})})):null;return r=c&&c.length?l.reduce((function(e,t){return e+t[kH]}),0):As(i[s])||i[s]<=0?0:i[s],CH(CH({},i),{},(OH(n={children:l},kH,r),OH(n,"depth",o),OH(n,"index",a),n))},jH=function(e,t,n){var r=t*t,o=e.area*e.area,i=e.reduce((function(e,t){return{min:Math.min(e.min,t.area),max:Math.max(e.max,t.area)}}),{min:1/0,max:0}),a=i.min,s=i.max;return o?Math.max(r*s*n/o,o/(r*a*n)):1/0},AH=function(e,t,n,r){return t===n.width?function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.height)&&(o=n.height);for(var i,a=n.x,s=0,c=e.length;s<c;s++)(i=e[s]).x=a,i.y=n.y,i.height=o,i.width=Math.min(o?Math.round(i.area/o):0,n.x+n.width-a),a+=i.width;return i.width+=n.x+n.width-a,CH(CH({},n),{},{y:n.y+o,height:n.height-o})}(e,t,n,r):function(e,t,n,r){var o=t?Math.round(e.area/t):0;(r||o>n.width)&&(o=n.width);for(var i,a=n.y,s=0,c=e.length;s<c;s++)(i=e[s]).x=n.x,i.y=a,i.width=o,i.height=Math.min(o?Math.round(i.area/o):0,n.y+n.height-a),a+=i.height;return i&&(i.height+=n.y+n.height-a),CH(CH({},n),{},{x:n.x+o,width:n.width-o})}(e,t,n,r)},TH=function e(t,n){var r=t.children;if(r&&r.length){var o,i,a=function(e){return{x:e.x,y:e.y,width:e.width,height:e.height}}(t),s=[],c=1/0,u=Math.min(a.width,a.height),l=function(e,t){var n=t<0?0:t;return e.map((function(e){var t=e[kH]*n;return CH(CH({},e),{},{area:As(t)||t<=0?0:t})}))}(r,a.width*a.height/t[kH]),f=l.slice();for(s.area=0;f.length>0;)s.push(o=f[0]),s.area+=o.area,(i=jH(s,u,n))<=c?(f.shift(),c=i):(s.area-=s.pop().area,a=AH(s,u,a,!1),u=Math.min(a.width,a.height),s.length=s.area=0,c=1/0);return s.length&&(a=AH(s,u,a,!0),s.length=s.area=0),CH(CH({},t),{},{children:l.map((function(t){return e(t,n)}))})}return t},PH={isTooltipActive:!1,isAnimationFinished:!1,activeNode:null,formatRoot:null,currentRoot:null,nestIndex:[]},MH=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&&mH(e,t)}(a,t.PureComponent);var n,r,o,i=bH(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 OH(wH(e=i.call.apply(i,[this].concat(n))),"state",CH({},PH)),OH(wH(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),OH(wH(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t){var n=this.props,r=n.onMouseEnter;rc(n.children,Dw)?this.setState({isTooltipActive:!0,activeNode:e},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleMouseLeave",value:function(e,t){var n=this.props,r=n.onMouseLeave;rc(n.children,Dw)?this.setState({isTooltipActive:!1,activeNode:null},(function(){r&&r(e,t)})):r&&r(e,t)}},{key:"handleClick",value:function(e){var t=this.props,n=t.onClick;if("nest"===t.type&&e.children){var r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=EH({depth:0,node:CH(CH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=TH(c,s),l=this.state.nestIndex;l.push(e),this.setState({formatRoot:u,currentRoot:c,nestIndex:l})}n&&n(e)}},{key:"handleNestIndex",value:function(e,t){var n=this.state.nestIndex,r=this.props,o=r.width,i=r.height,a=r.dataKey,s=r.aspectRatio,c=EH({depth:0,node:CH(CH({},e),{},{x:0,y:0,width:o,height:i}),index:0,valueKey:a}),u=TH(c,s);n=n.slice(0,t+1),this.setState({formatRoot:u,currentRoot:e,nestIndex:n})}},{key:"renderItem",value:function(e,n,r){var o=this,i=this.props,a=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,u=i.animationEasing,l=i.isUpdateAnimationActive,f=i.type,p=i.animationId,d=i.colorPanel,h=this.state.isAnimationFinished,g=n.width,y=n.height,v=n.x,m=n.y,b=n.depth,w=parseInt("".concat((2*Math.random()-1)*g),10),x={};return(r||"nest"===f)&&(x={onMouseEnter:this.handleMouseEnter.bind(this,n),onMouseLeave:this.handleMouseLeave.bind(this,n),onClick:this.handleClick.bind(this,n)}),a?t.createElement(ob,{begin:s,duration:c,isActive:a,easing:u,key:"treemap-".concat(p),from:{x:v,y:m,width:g,height:y},to:{x:v,y:m,width:g,height:y},onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(r){var i=r.x,p=r.y,g=r.width,y=r.height;return t.createElement(ob,{from:"translate(".concat(w,"px, ").concat(w,"px)"),to:"translate(0, 0)",attributeName:"transform",begin:s,easing:u,isActive:a,duration:c},t.createElement(wc,x,b>2&&!h?null:o.constructor.renderContentItem(e,CH(CH({},n),{},{isAnimationActive:a,isUpdateAnimationActive:!l,width:g,height:y,x:i,y:p}),f,d)))})):t.createElement(wc,x,this.constructor.renderContentItem(e,CH(CH({},n),{},{isAnimationActive:!1,isUpdateAnimationActive:!1,width:g,height:y,x:v,y:m}),f,d))}},{key:"renderNode",value:function(e,n,r){var o=this,i=this.props,a=i.content,s=i.type,c=CH(CH(CH({},cc(this.props)),n),{},{root:e}),u=!n.children||!n.children.length;return!(this.state.currentRoot.children||[]).filter((function(e){return e.depth===n.depth&&e.name===n.name})).length&&e.depth&&"nest"===s?null:t.createElement(wc,{key:"recharts-treemap-node-".concat(r),className:"recharts-treemap-depth-".concat(n.depth)},this.renderItem(a,c,u),n.children&&n.children.length?n.children.map((function(e,t){return o.renderNode(n,e,t)})):null)}},{key:"renderAllNodes",value:function(){var e=this.state.formatRoot;return e?this.renderNode(e,e,0):null}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.nameKey,o=rc(n,Dw);if(!o)return null;var i=this.props,a=i.width,s=i.height,c=this.state,u=c.isTooltipActive,l=c.activeNode,f={x:0,y:0,width:a,height:s},p=l?{x:l.x+l.width/2,y:l.y+l.height/2}:null,d=u&&l?[{payload:l,name:zA(l,r,""),value:zA(l,kH)}]:[];return t.cloneElement(o,{viewBox:f,active:u,coordinate:p,label:"",payload:d})}},{key:"renderNestIndex",value:function(){var e=this,n=this.props,r=n.nameKey,o=n.nestIndexContent,i=this.state.nestIndex;return t.createElement("div",{className:"recharts-treemap-nest-index-wrapper",style:{marginTop:"8px",textAlign:"center"}},i.map((function(n,i){var a=_s(n,r,"root"),s=null;return t.isValidElement(o)&&(s=t.cloneElement(o,n,i)),s=ci(o)?o(n,i):a,t.createElement("div",{onClick:e.handleNestIndex.bind(e,n,i),key:"nest-index-".concat(Ns()),className:"recharts-treemap-nest-index-box",style:{cursor:"pointer",display:"inline-block",padding:"0 7px",background:"#000",color:"#fff",marginRight:"3px"}},s)})))}},{key:"render",value:function(){if(!oc(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=e.type,c=yH(e,dH),u=cc(c);return t.createElement("div",{className:Io("recharts-wrapper",o),style:CH(CH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(yc,gH({},u,{width:n,height:"nest"===s?r-30:r}),this.renderAllNodes(),sc(a)),this.renderTooltip(),"nest"===s&&this.renderNestIndex())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){if(e.data!==t.prevData||e.type!==t.prevType||e.width!==t.prevWidth||e.height!==t.prevHeight||e.dataKey!==t.prevDataKey||e.aspectRatio!==t.prevAspectRatio){var n=EH({depth:0,node:{children:e.data,x:0,y:0,width:e.width,height:e.height},index:0,valueKey:e.dataKey}),r=TH(n,e.aspectRatio);return CH(CH({},t),{},{formatRoot:r,currentRoot:n,nestIndex:[n],prevAspectRatio:e.aspectRatio,prevData:e.data,prevWidth:e.width,prevHeight:e.height,prevDataKey:e.dataKey,prevType:e.type})}return null}},{key:"renderContentItem",value:function(e,n,r,o){if(t.isValidElement(e))return t.cloneElement(e,n);if(ci(e))return e(n);var i=n.x,a=n.y,s=n.width,c=n.height,u=n.index,l=null;s>10&&c>10&&n.children&&"nest"===r&&(l=t.createElement(YP,{points:[{x:i+2,y:a+c/2},{x:i+6,y:a+c/2+3},{x:i+2,y:a+c/2+6}]}));var f=null,p=d_(n.name);s>20&&c>20&&p.width<s&&p.height<c&&(f=t.createElement("text",{x:i+8,y:a+c/2+7,fontSize:14},n.name));var d=o||pH;return t.createElement("g",null,t.createElement(LP,gH({fill:n.depth<2?d[u%d.length]:"rgba(255,255,255,0)",stroke:"#fff"},fH(n,"children"),{role:"img"})),l,f)}}],r&&vH(n.prototype,r),o&&vH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();OH(MH,"displayName","Treemap"),OH(MH,"defaultProps",{aspectRatio:.5*(1+Math.sqrt(5)),dataKey:"value",type:"flat",isAnimationActive:!ww.isSsr,isUpdateAnimationActive:!ww.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"linear"});var DH=function(e,t){for(var n,r=-1,o=e.length;++r<o;){var i=t(e[r]);void 0!==i&&(n=void 0===n?i:n+i)}return n},RH=yp,NH=DH;var IH=function(e,t){return e&&e.length?NH(e,RH(t)):0},LH=["width","height","className","style","children"],BH=["sourceX","sourceY","sourceControlX","targetX","targetY","targetControlX","linkWidth"];function FH(e){return FH="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},FH(e)}function zH(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 HH(){return HH=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},HH.apply(this,arguments)}function VH(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,YH(r.key),r)}}function UH(e,t){return UH=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},UH(e,t)}function KH(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=WH(e);if(t){var o=WH(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===FH(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return $H(e)}(this,n)}}function $H(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WH(e){return WH=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},WH(e)}function qH(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 GH(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?qH(Object(n),!0).forEach((function(t){ZH(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qH(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ZH(e,t,n){return(t=YH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=function(e,t){if("object"!==FH(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==FH(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===FH(t)?t:String(t)}var XH={x:0,y:0},JH=function(e){return e.y+e.dy/2},QH=function(e){return e&&e.value||0},eV=function(e,t){return t.reduce((function(t,n){return t+QH(e[n])}),0)},tV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.source];return n+JH(i)*QH(t[r])}),0)},nV=function(e,t,n){return n.reduce((function(n,r){var o=t[r],i=e[o.target];return n+JH(i)*QH(t[r])}),0)},rV=function(e,t){return e.y-t.y},oV=function e(t,n){for(var r=n.targetNodes,o=0,i=r.length;o<i;o++){var a=t[r[o]];a&&(a.depth=Math.max(n.depth+1,a.depth),e(t,a))}},iV=function(e,t,n){for(var r=0,o=e.length;r<o;r++){var i=e[r],a=i.length;i.sort(rV);for(var s=0,c=0;c<a;c++){var u=i[c],l=s-u.y;l>0&&(u.y+=l),s=u.y+u.dy+n}s=t+n;for(var f=a-1;f>=0;f--){var p=i[f],d=p.y+p.dy+n-s;if(!(d>0))break;p.y-=d,s=p.y}}},aV=function(e,t,n,r){for(var o=0,i=t.length;o<i;o++)for(var a=t[o],s=0,c=a.length;s<c;s++){var u=a[s];if(u.sourceLinks.length){var l=eV(n,u.sourceLinks),f=tV(e,n,u.sourceLinks)/l;u.y+=(f-JH(u))*r}}},sV=function(e,t,n,r){for(var o=t.length-1;o>=0;o--)for(var i=t[o],a=0,s=i.length;a<s;a++){var c=i[a];if(c.targetLinks.length){var u=eV(n,c.targetLinks),l=nV(e,n,c.targetLinks)/u;c.y+=(l-JH(c))*r}}},cV=function(e){var t=e.data,n=e.width,r=e.height,o=e.iterations,i=e.nodeWidth,a=e.nodePadding,s=t.links,c=function(e,t,n){for(var r=e.nodes,o=e.links,i=r.map((function(e,t){var n=function(e,t){for(var n=[],r=[],o=[],i=[],a=0,s=e.length;a<s;a++){var c=e[a];c.source===t&&(o.push(c.target),i.push(a)),c.target===t&&(n.push(c.source),r.push(a))}return{sourceNodes:n,sourceLinks:r,targetLinks:i,targetNodes:o}}(o,t);return GH(GH(GH({},e),n),{},{value:Math.max(eV(o,n.sourceLinks),eV(o,n.targetLinks)),depth:0})})),a=0,s=i.length;a<s;a++){var c=i[a];c.sourceNodes.length||oV(i,c)}var u=TM(i,(function(e){return e.depth})).depth;if(u>=1)for(var l=(t-n)/u,f=0,p=i.length;f<p;f++){var d=i[f];d.targetNodes.length||(d.depth=u),d.x=d.depth*l,d.dx=n}return{tree:i,maxDepth:u}}(t,n,i),u=c.tree,l=function(e){for(var t=[],n=0,r=e.length;n<r;n++){var o=e[n];t[o.depth]||(t[o.depth]=[]),t[o.depth].push(o)}return t}(u),f=function(e,t,n,r){for(var o=q_(e.map((function(e){return(t-(e.length-1)*n)/IH(e,QH)}))),i=0,a=e.length;i<a;i++)for(var s=0,c=e[i].length;s<c;s++){var u=e[i][s];u.y=s,u.dy=u.value*o}return r.map((function(e){return GH(GH({},e),{},{dy:QH(e)*o})}))}(l,r,a,s);iV(l,r,a);for(var p=1,d=1;d<=o;d++)sV(u,l,f,p*=.99),iV(l,r,a),aV(u,l,f,p),iV(l,r,a);return function(e,t){for(var n=0,r=e.length;n<r;n++){var o=e[n],i=0,a=0;o.targetLinks.sort((function(n,r){return e[t[n].target].y-e[t[r].target].y})),o.sourceLinks.sort((function(n,r){return e[t[n].source].y-e[t[r].source].y}));for(var s=0,c=o.targetLinks.length;s<c;s++){var u=t[o.targetLinks[s]];u&&(u.sy=i,i+=u.dy)}for(var l=0,f=o.sourceLinks.length;l<f;l++){var p=t[o.sourceLinks[l]];p&&(p.ty=a,a+=p.dy)}}}(u,f),{nodes:u,links:f}},uV=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&&UH(e,t)}(a,t.PureComponent);var n,r,o,i=KH(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 ZH($H(e=i.call.apply(i,[this].concat(n))),"state",{activeElement:null,activeElementType:null,isTooltipActive:!1,nodes:[],links:[]}),e}return n=a,r=[{key:"handleMouseEnter",value:function(e,t,n){var r=this.props,o=r.onMouseEnter,i=rc(r.children,Dw);i?this.setState((function(n){return"hover"===i.props.trigger?GH(GH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0}):n}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleMouseLeave",value:function(e,t,n){var r=this.props,o=r.onMouseLeave,i=rc(r.children,Dw);i?this.setState((function(e){return"hover"===i.props.trigger?GH(GH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1}):e}),(function(){o&&o(e,t,n)})):o&&o(e,t,n)}},{key:"handleClick",value:function(e,t,n){var r=this.props,o=r.onClick,i=rc(r.children,Dw);i&&"click"===i.props.trigger&&(this.state.isTooltipActive?this.setState((function(e){return GH(GH({},e),{},{activeElement:void 0,activeElementType:void 0,isTooltipActive:!1})})):this.setState((function(n){return GH(GH({},n),{},{activeElement:e,activeElementType:t,isTooltipActive:!0})}))),o&&o(e,t,n)}},{key:"renderLinks",value:function(e,n){var r=this,o=this.props,i=o.linkCurvature,a=o.link,s=o.margin,c=_s(s,"top")||0,u=_s(s,"left")||0;return t.createElement(wc,{className:"recharts-sankey-links",key:"recharts-sankey-links"},e.map((function(e,o){var s=e.sy,l=e.ty,f=e.dy,p=n[e.source],d=n[e.target],h=p.x+p.dx+u,g=d.x+u,y=function(e,t){var n=+e,r=t-n;return function(e){return n+r*e}}(h,g),v=y(i),m=y(1-i),b=GH({sourceX:h,targetX:g,sourceY:p.y+s+f/2+c,targetY:d.y+l+f/2+c,sourceControlX:v,targetControlX:m,sourceRelativeY:s,targetRelativeY:l,linkWidth:f,index:o,payload:GH(GH({},e),{},{source:p,target:d})},cc(a)),w={onMouseEnter:r.handleMouseEnter.bind(r,b,"link"),onMouseLeave:r.handleMouseLeave.bind(r,b,"link"),onClick:r.handleClick.bind(r,b,"link")};return t.createElement(wc,HH({key:"link".concat(o)},w),r.constructor.renderLinkItem(a,b))})))}},{key:"renderNodes",value:function(e){var n=this,r=this.props,o=r.node,i=r.margin,a=_s(i,"top")||0,s=_s(i,"left")||0;return t.createElement(wc,{className:"recharts-sankey-nodes",key:"recharts-sankey-nodes"},e.map((function(e,r){var i=e.x,c=e.y,u=e.dx,l=e.dy,f=GH(GH({},cc(o)),{},{x:i+s,y:c+a,width:u,height:l,index:r,payload:e}),p={onMouseEnter:n.handleMouseEnter.bind(n,f,"node"),onMouseLeave:n.handleMouseLeave.bind(n,f,"node"),onClick:n.handleClick.bind(n,f,"node")};return t.createElement(wc,HH({key:"node".concat(r)},p),n.constructor.renderNodeItem(o,f))})))}},{key:"renderTooltip",value:function(){var e=this.props,n=e.children,r=e.width,o=e.height,i=e.nameKey,a=rc(n,Dw);if(!a)return null;var s,c=this.state,u=c.isTooltipActive,l=c.activeElement,f=c.activeElementType,p={x:0,y:0,width:r,height:o},d=l?(s=l,"node"===f?{x:s.x+s.width/2,y:s.y+s.height/2}:{x:(s.sourceX+s.targetX)/2,y:(s.sourceY+s.targetY)/2}):XH,h=l?function(e,t,n){var r=e.payload;if("node"===t)return[{payload:e,name:zA(r,n,""),value:zA(r,"value")}];if(r.source&&r.target){var o=zA(r.source,n,""),i=zA(r.target,n,"");return[{payload:e,name:"".concat(o," - ").concat(i),value:zA(r,"value")}]}return[]}(l,f,i):[];return t.cloneElement(a,{viewBox:p,active:u,coordinate:d,label:"",payload:h})}},{key:"render",value:function(){if(!oc(this))return null;var e=this.props,n=e.width,r=e.height,o=e.className,i=e.style,a=e.children,s=zH(e,LH),c=this.state,u=c.links,l=c.nodes,f=cc(s);return t.createElement("div",{className:Io("recharts-wrapper",o),style:GH(GH({},i),{},{position:"relative",cursor:"default",width:n,height:r}),role:"region"},t.createElement(yc,HH({},f,{width:n,height:r}),sc(a),this.renderLinks(u,l),this.renderNodes(l)),this.renderTooltip())}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.data,r=e.width,o=e.height,i=e.margin,a=e.iterations,s=e.nodeWidth,c=e.nodePadding;if(n!==t.prevData||r!==t.prevWidth||o!==t.prevHeight||!zs(i,t.prevMargin)||a!==t.prevIterations||s!==t.prevNodeWidth||c!==t.prevNodePadding){var u=r-(i&&i.left||0)-(i&&i.right||0),l=o-(i&&i.top||0)-(i&&i.bottom||0),f=cV({data:n,width:u,height:l,iterations:a,nodeWidth:s,nodePadding:c}),p=f.links,d=f.nodes;return GH(GH({},t),{},{nodes:d,links:p,prevData:n,prevWidth:a,prevHeight:o,prevMargin:i,prevNodePadding:c,prevNodeWidth:s,prevIterations:a})}return null}},{key:"renderLinkItem",value:function(e,n){if(t.isValidElement(e))return t.cloneElement(e,n);if(ci(e))return e(n);var r=n.sourceX,o=n.sourceY,i=n.sourceControlX,a=n.targetX,s=n.targetY,c=n.targetControlX,u=n.linkWidth,l=zH(n,BH);return t.createElement("path",HH({className:"recharts-sankey-link",d:"\n M".concat(r,",").concat(o,"\n C").concat(i,",").concat(o," ").concat(c,",").concat(s," ").concat(a,",").concat(s,"\n "),fill:"none",stroke:"#333",strokeWidth:u,strokeOpacity:"0.2"},cc(l)))}},{key:"renderNodeItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):t.createElement(LP,HH({className:"recharts-sankey-node",fill:"#0088fe",fillOpacity:"0.8"},cc(n),{role:"img"}))}}],r&&VH(n.prototype,r),o&&VH(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function lV(e){return lV="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},lV(e)}function fV(){return fV=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},fV.apply(this,arguments)}function pV(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,mV(r.key),r)}}function dV(e,t){return dV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dV(e,t)}function hV(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=yV(e);if(t){var o=yV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===lV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return gV(e)}(this,n)}}function gV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yV(e){return yV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},yV(e)}function vV(e,t,n){return(t=mV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mV(e){var t=function(e,t){if("object"!==lV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==lV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===lV(t)?t:String(t)}ZH(uV,"displayName","Sankey"),ZH(uV,"defaultProps",{nameKey:"name",dataKey:"value",nodePadding:10,nodeWidth:10,linkCurvature:.5,iterations:32,margin:{top:5,right:5,bottom:5,left:5}}),mB({chartName:"RadarChart",GraphicalChild:HD,axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"centric",startAngle:90,endAngle:-270,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mB({chartName:"ScatterChart",GraphicalChild:yL,defaultTooltipEventType:"item",validateTooltipEventTypes:["item"],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL},{axisType:"zAxis",AxisComp:oL}],formatAxisMap:mN}),mB({chartName:"AreaChart",GraphicalChild:rL,axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL}],formatAxisMap:mN}),mB({chartName:"RadialBarChart",GraphicalChild:tR,legendContent:"children",defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"angleAxis",AxisComp:rD},{axisType:"radiusAxis",AxisComp:KM}],formatAxisMap:OT,defaultProps:{layout:"radial",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),mB({chartName:"ComposedChart",GraphicalChild:[UI,rL,fN,yL],axisComponents:[{axisType:"xAxis",AxisComp:vL},{axisType:"yAxis",AxisComp:mL},{axisType:"zAxis",AxisComp:oL}],formatAxisMap:mN});var bV=function(e,t,n,r,o){var i,a=n-r;return i="M ".concat(e,",").concat(t),i+="L ".concat(e+n,",").concat(t),i+="L ".concat(e+n-a/2,",").concat(t+o),i+="L ".concat(e+n-a/2-r,",").concat(t+o),i+="L ".concat(e,",").concat(t," Z")},wV=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&&dV(e,t)}(a,t.PureComponent);var n,r,o,i=hV(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 vV(gV(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.upperWidth,a=n.lowerWidth,s=n.height,c=n.className,u=this.state.totalLength,l=this.props,f=l.animationEasing,p=l.animationDuration,d=l.animationBegin,h=l.isUpdateAnimationActive;if(r!==+r||o!==+o||i!==+i||a!==+a||s!==+s||0===i&&0===a||0===s)return null;var g=Io("recharts-trapezoid",c);return h?t.createElement(ob,{canBegin:u>0,from:{upperWidth:0,lowerWidth:0,height:s,x:r,y:o},to:{upperWidth:i,lowerWidth:a,height:s,x:r,y:o},duration:p,animationEasing:f,isActive:h},(function(n){var r=n.upperWidth,o=n.lowerWidth,i=n.height,a=n.x,s=n.y;return t.createElement(ob,{canBegin:u>0,from:"0px ".concat(-1===u?1:u,"px"),to:"".concat(u,"px 0px"),attributeName:"strokeDasharray",begin:d,duration:p,easing:f},t.createElement("path",fV({},cc(e.props,!0),{className:g,d:bV(a,s,r,o,i),ref:function(t){e.node=t}})))})):t.createElement("g",null,t.createElement("path",fV({},cc(this.props,!0),{className:g,d:bV(r,o,i,a,s)})))}}],r&&pV(n.prototype,r),o&&pV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();function xV(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 _V(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 _V(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 _V(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 CV(e){return CV="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},CV(e)}function OV(){return OV=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},OV.apply(this,arguments)}function SV(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 kV(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?SV(Object(n),!0).forEach((function(t){MV(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SV(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function EV(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,DV(r.key),r)}}function jV(e,t){return jV=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jV(e,t)}function AV(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=PV(e);if(t){var o=PV(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(e,t){if(t&&("object"===CV(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return TV(e)}(this,n)}}function TV(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PV(e){return PV=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},PV(e)}function MV(e,t,n){return(t=DV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DV(e){var t=function(e,t){if("object"!==CV(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==CV(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===CV(t)?t:String(t)}vV(wV,"defaultProps",{x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"});var RV=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&&jV(e,t)}(a,t.PureComponent);var n,r,o,i=AV(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 MV(TV(e=i.call.apply(i,[this].concat(n))),"state",{isAnimationFinished:!1}),MV(TV(e),"handleAnimationEnd",(function(){var t=e.props.onAnimationEnd;e.setState({isAnimationFinished:!0}),ci(t)&&t()})),MV(TV(e),"handleAnimationStart",(function(){var t=e.props.onAnimationStart;e.setState({isAnimationFinished:!1}),ci(t)&&t()})),e}return n=a,r=[{key:"isActiveIndex",value:function(e){var t=this.props.activeIndex;return Array.isArray(t)?-1!==t.indexOf(e):e===t}},{key:"renderTrapezoidsStatically",value:function(e){var n=this,r=this.props.activeShape;return e.map((function(e,o){var i=n.isActiveIndex(o)?r:null,s=kV(kV({},e),{},{stroke:e.stroke});return t.createElement(wc,OV({className:"recharts-funnel-trapezoid"},qs(n.props,e,o),{key:"trapezoid-".concat(o),role:"img"}),a.renderTrapezoidItem(i,s))}))}},{key:"renderTrapezoidsWithAnimation",value:function(){var e=this,n=this.props,r=n.trapezoids,o=n.isAnimationActive,i=n.animationBegin,a=n.animationDuration,s=n.animationEasing,c=n.animationId,u=this.state.prevTrapezoids;return t.createElement(ob,{begin:i,duration:a,isActive:o,easing:s,from:{t:0},to:{t:1},key:"funnel-".concat(c),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},(function(n){var o=n.t,i=r.map((function(e,t){var n=u&&u[t];if(n){var r=Bs(n.x,e.x),i=Bs(n.y,e.y),a=Bs(n.upperWidth,e.upperWidth),s=Bs(n.lowerWidth,e.lowerWidth),c=Bs(n.height,e.height);return kV(kV({},e),{},{x:r(o),y:i(o),upperWidth:a(o),lowerWidth:s(o),height:c(o)})}var l=Bs(e.x+e.upperWidth/2,e.x),f=Bs(e.y+e.height/2,e.y),p=Bs(0,e.upperWidth),d=Bs(0,e.lowerWidth),h=Bs(0,e.height);return kV(kV({},e),{},{x:l(o),y:f(o),upperWidth:p(o),lowerWidth:d(o),height:h(o)})}));return t.createElement(wc,null,e.renderTrapezoidsStatically(i))}))}},{key:"renderTrapezoids",value:function(){var e=this.props,t=e.trapezoids,n=e.isAnimationActive,r=this.state.prevTrapezoids;return!(n&&t&&t.length)||r&&N_(r,t)?this.renderTrapezoidsStatically(t):this.renderTrapezoidsWithAnimation()}},{key:"render",value:function(){var e=this.props,n=e.hide,r=e.trapezoids,o=e.className,i=e.isAnimationActive,a=this.state.isAnimationFinished;if(n||!r||!r.length)return null;var s=Io("recharts-trapezoids",o);return t.createElement(wc,{className:s},this.renderTrapezoids(),(!i||a)&&eP.renderCallByParent(this.props,r))}}],o=[{key:"getDerivedStateFromProps",value:function(e,t){return e.animationId!==t.prevAnimationId?{prevAnimationId:e.animationId,curTrapezoids:e.trapezoids,prevTrapezoids:t.curTrapezoids}:e.trapezoids!==t.curTrapezoids?{curTrapezoids:e.trapezoids}:null}},{key:"renderTrapezoidItem",value:function(e,n){return t.isValidElement(e)?t.cloneElement(e,n):ci(e)?e(n):hD(e)?t.createElement(wV,OV({},n,e)):t.createElement(wV,n)}}],r&&EV(n.prototype,r),o&&EV(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}();MV(RV,"displayName","Funnel"),MV(RV,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",labelLine:!0,hide:!1,isAnimationActive:!ww.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",lastShapeType:"triangle"}),MV(RV,"getRealFunnelData",(function(e){var t=e.props,n=t.data,r=t.children,o=cc(e.props),i=nc(r,bx);return n&&n.length?n.map((function(e,t){return kV(kV(kV({payload:e},o),e),i&&i[t]&&i[t].props)})):i&&i.length?i.map((function(e){return kV(kV({},o),e.props)})):[]})),MV(RV,"getRealWidthHeight",(function(e,t){var n=e.props.width,r=t.width,o=t.height,i=t.left,a=t.right,s=t.top,c=t.bottom,u=o,l=r;return Es(n)?l=n:gi(n)&&(l=l*parseFloat(n)/100),{realWidth:l-i-a-50,realHeight:u-c-s,offsetX:(r-l)/2,offsetY:(o-u)/2}})),MV(RV,"getComposedData",(function(e){var t=e.item,n=e.offset,r=RV.getRealFunnelData(t),o=t.props,i=o.dataKey,a=o.nameKey,s=o.tooltipType,c=o.lastShapeType,u=o.reversed,l=n.left,f=n.top,p=RV.getRealWidthHeight(t,n),d=p.realHeight,h=p.realWidth,g=p.offsetX,y=p.offsetY,v=Math.max.apply(null,r.map((function(e){return zA(e,i,0)}))),m=r.length,b=d/m,w={x:n.left,y:n.top,width:n.width,height:n.height},x=r.map((function(e,t){var n,o=zA(e,i,0),u=zA(e,a,t),p=o;if(t!==m-1)(n=zA(r[t+1],i,0))instanceof Array&&(n=xV(n,1)[0]);else if(o instanceof Array&&2===o.length){var d=xV(o,2);p=d[0],n=d[1]}else n="rectangle"===c?p:0;var x=(v-p)*h/(2*v)+f+25+g,_=b*t+l+y,C=p/v*h,O=n/v*h,S=[{name:u,value:p,payload:e,dataKey:i,type:s}],k={x:x+C/2,y:_+b/2};return kV(kV({x:x,y:_,width:Math.max(C,O),upperWidth:C,lowerWidth:O,height:b,name:u,val:p,tooltipPayload:S,tooltipPosition:k},fH(e,"width")),{},{payload:e,parentViewBox:w,labelViewBox:{x:x+(C-O)/4,y:_,width:Math.abs(C-O)/2+Math.min(C,O),height:b}})}));return u&&(x=x.map((function(e,t){var n=e.y-t*b+(m-1-t)*b;return kV(kV({},e),{},{upperWidth:e.lowerWidth,lowerWidth:e.upperWidth,x:e.x-(e.lowerWidth-e.upperWidth)/2,y:e.y-t*b+(m-1-t)*b,tooltipPosition:kV(kV({},e.tooltipPosition),{},{y:n+b/2}),labelViewBox:kV(kV({},e.labelViewBox),{},{y:n})})}))),{trapezoids:x,data:r}})),mB({chartName:"FunnelChart",GraphicalChild:RV,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",axisComponents:[],defaultProps:{layout:"centric"}});const NV=X.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}),an,sn);function IV(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 LV(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function BV(e){return BV="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},BV(e)}function FV(e){LV(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||"object"===BV(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 zV(e,t){LV(2,arguments);var n=FV(e),r=IV(t);return isNaN(r)?new Date(NaN):r?(n.setDate(n.getDate()+r),n):n}function HV(e,t){LV(2,arguments);var n=FV(e),r=IV(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 VV(e){return VV="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},VV(e)}function UV(e,t){if(LV(2,arguments),!t||"object"!==VV(t))return new Date(NaN);var n=t.years?IV(t.years):0,r=t.months?IV(t.months):0,o=t.weeks?IV(t.weeks):0,i=t.days?IV(t.days):0,a=t.hours?IV(t.hours):0,s=t.minutes?IV(t.minutes):0,c=t.seconds?IV(t.seconds):0,u=FV(e),l=r||n?HV(u,r+12*n):u,f=i||o?zV(l,i+7*o):l,p=1e3*(c+60*(s+60*a));return new Date(f.getTime()+p)}var KV={};function $V(){return KV}function WV(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 qV(e){LV(1,arguments);var t=FV(e);return t.setHours(0,0,0,0),t}var GV=864e5;var ZV=6e4;function YV(e,t){LV(2,arguments);var n=qV(e),r=qV(t);return n.getTime()===r.getTime()}function XV(e){return XV="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},XV(e)}function JV(e){if(LV(1,arguments),!function(e){return LV(1,arguments),e instanceof Date||"object"===XV(e)&&"[object Date]"===Object.prototype.toString.call(e)}(e)&&"number"!=typeof e)return!1;var t=FV(e);return!isNaN(Number(t))}function QV(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 eU(e,t){LV(2,arguments);var n=FV(e),r=FV(t),o=QV(n,r),i=Math.abs(function(e,t){LV(2,arguments);var n=qV(e),r=qV(t),o=n.getTime()-WV(n),i=r.getTime()-WV(r);return Math.round((o-i)/GV)}(n,r));n.setDate(n.getDate()-o*i);var a=o*(i-Number(QV(n,r)===-o));return 0===a?0:a}var tU={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(e){return e<0?Math.ceil(e):Math.floor(e)}},nU="trunc";function rU(e){return e?tU[e]:tU[nU]}function oU(e,t,n){LV(2,arguments);var r=function(e,t){return LV(2,arguments),FV(e).getTime()-FV(t).getTime()}(e,t)/ZV;return rU(null==n?void 0:n.roundingMethod)(r)}function iU(e,t){return LV(2,arguments),function(e,t){LV(2,arguments);var n=FV(e).getTime(),r=IV(t);return new Date(n+r)}(e,-IV(t))}var aU=864e5;function sU(e){LV(1,arguments);var t=FV(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 cU(e){LV(1,arguments);var t=FV(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=sU(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=sU(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}var uU=6048e5;function lU(e){LV(1,arguments);var t=FV(e),n=sU(t).getTime()-function(e){LV(1,arguments);var t=cU(e),n=new Date(0);return n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0),sU(n)}(t).getTime();return Math.round(n/uU)+1}function fU(e,t){var n,r,o,i,a,s,c,u;LV(1,arguments);var l=$V(),f=IV(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 p=FV(e),d=p.getUTCDay(),h=(d<f?7:0)+d-f;return p.setUTCDate(p.getUTCDate()-h),p.setUTCHours(0,0,0,0),p}function pU(e,t){var n,r,o,i,a,s,c,u;LV(1,arguments);var l=FV(e),f=l.getUTCFullYear(),p=$V(),d=IV(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(c=p.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==n?n:1);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(f+1,0,d),h.setUTCHours(0,0,0,0);var g=fU(h,t),y=new Date(0);y.setUTCFullYear(f,0,d),y.setUTCHours(0,0,0,0);var v=fU(y,t);return l.getTime()>=g.getTime()?f+1:l.getTime()>=v.getTime()?f:f-1}var dU=6048e5;function hU(e,t){LV(1,arguments);var n=FV(e),r=fU(n,t).getTime()-function(e,t){var n,r,o,i,a,s,c,u;LV(1,arguments);var l=$V(),f=IV(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),p=pU(e,t),d=new Date(0);return d.setUTCFullYear(p,0,f),d.setUTCHours(0,0,0,0),fU(d,t)}(n,t).getTime();return Math.round(r/dU)+1}function gU(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var yU=function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return gU("yy"===t?r%100:r,t.length)},vU=function(e,t){var n=e.getUTCMonth();return"M"===t?String(n+1):gU(n+1,2)},mU=function(e,t){return gU(e.getUTCDate(),t.length)},bU=function(e,t){return gU(e.getUTCHours()%12||12,t.length)},wU=function(e,t){return gU(e.getUTCHours(),t.length)},xU=function(e,t){return gU(e.getUTCMinutes(),t.length)},_U=function(e,t){return gU(e.getUTCSeconds(),t.length)},CU=function(e,t){var n=t.length,r=e.getUTCMilliseconds();return gU(Math.floor(r*Math.pow(10,n-3)),t.length)},OU="midnight",SU="noon",kU="morning",EU="afternoon",jU="evening",AU="night",TU={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 yU(e,t)},Y:function(e,t,n,r){var o=pU(e,r),i=o>0?o:1-o;return"YY"===t?gU(i%100,2):"Yo"===t?n.ordinalNumber(i,{unit:"year"}):gU(i,t.length)},R:function(e,t){return gU(cU(e),t.length)},u:function(e,t){return gU(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 gU(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 gU(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 vU(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 gU(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=hU(e,r);return"wo"===t?n.ordinalNumber(o,{unit:"week"}):gU(o,t.length)},I:function(e,t,n){var r=lU(e);return"Io"===t?n.ordinalNumber(r,{unit:"week"}):gU(r,t.length)},d:function(e,t,n){return"do"===t?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):mU(e,t)},D:function(e,t,n){var r=function(e){LV(1,arguments);var t=FV(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=n-t.getTime();return Math.floor(r/aU)+1}(e);return"Do"===t?n.ordinalNumber(r,{unit:"dayOfYear"}):gU(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 gU(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 gU(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 gU(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?SU:0===o?OU: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?jU:o>=12?EU:o>=4?kU:AU,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 bU(e,t)},H:function(e,t,n){return"Ho"===t?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):wU(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return"Ko"===t?n.ordinalNumber(r,{unit:"hour"}):gU(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return 0===r&&(r=24),"ko"===t?n.ordinalNumber(r,{unit:"hour"}):gU(r,t.length)},m:function(e,t,n){return"mo"===t?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):xU(e,t)},s:function(e,t,n){return"so"===t?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):_U(e,t)},S:function(e,t){return CU(e,t)},X:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return MU(o);case"XXXX":case"XX":return DU(o);default:return DU(o,":")}},x:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"x":return MU(o);case"xxxx":case"xx":return DU(o);default:return DU(o,":")}},O:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+PU(o,":");default:return"GMT"+DU(o,":")}},z:function(e,t,n,r){var o=(r._originalDate||e).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+PU(o,":");default:return"GMT"+DU(o,":")}},t:function(e,t,n,r){var o=r._originalDate||e;return gU(Math.floor(o.getTime()/1e3),t.length)},T:function(e,t,n,r){return gU((r._originalDate||e).getTime(),t.length)}};function PU(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+gU(i,2)}function MU(e,t){return e%60==0?(e>0?"-":"+")+gU(Math.abs(e)/60,2):DU(e,t)}function DU(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+gU(Math.floor(o/60),2)+n+gU(o%60,2)}var RU=TU,NU=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"})}},IU=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"})}},LU={p:IU,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return NU(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}}",NU(o,t)).replace("{{time}}",IU(i,t))}},BU=LU,FU=["D","DD"],zU=["YY","YYYY"];function HU(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 VU={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function UU(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 KU={date:UU({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:UU({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:UU({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},$U={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function WU(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 qU={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:WU({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:WU({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:WU({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:WU({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:WU({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function GU(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 ZU,YU={ordinalNumber:(ZU={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(ZU.matchPattern);if(!n)return null;var r=n[0],o=e.match(ZU.parsePattern);if(!o)return null;var i=ZU.valueCallback?ZU.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:GU({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:GU({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:GU({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:GU({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:GU({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"})},XU={code:"en-US",formatDistance:function(e,t,n){var r,o=VU[e];return r="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),null!=n&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},formatLong:KU,formatRelative:function(e,t,n,r){return $U[e]},localize:qU,match:YU,options:{weekStartsOn:0,firstWeekContainsDate:1}},JU=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QU=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,eK=/^'([^]*?)'?$/,tK=/''/g,nK=/[a-zA-Z]/;function rK(e,t,n){var r,o,i,a,s,c,u,l,f,p,d,h,g,y,v,m,b,w;LV(2,arguments);var x=String(t),_=$V(),C=null!==(r=null!==(o=null==n?void 0:n.locale)&&void 0!==o?o:_.locale)&&void 0!==r?r:XU,O=IV(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:_.firstWeekContainsDate)&&void 0!==a?a:null===(f=_.locale)||void 0===f||null===(p=f.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==i?i:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var S=IV(null!==(d=null!==(h=null!==(g=null!==(y=null==n?void 0:n.weekStartsOn)&&void 0!==y?y:null==n||null===(v=n.locale)||void 0===v||null===(m=v.options)||void 0===m?void 0:m.weekStartsOn)&&void 0!==g?g:_.weekStartsOn)&&void 0!==h?h:null===(b=_.locale)||void 0===b||null===(w=b.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==d?d:0);if(!(S>=0&&S<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!C.localize)throw new RangeError("locale must contain localize property");if(!C.formatLong)throw new RangeError("locale must contain formatLong property");var k=FV(e);if(!JV(k))throw new RangeError("Invalid time value");var E=iU(k,WV(k)),j={firstWeekContainsDate:O,weekStartsOn:S,locale:C,_originalDate:k},A=x.match(QU).map((function(e){var t=e[0];return"p"===t||"P"===t?(0,BU[t])(e,C.formatLong):e})).join("").match(JU).map((function(r){if("''"===r)return"'";var o=r[0];if("'"===o)return function(e){var t=e.match(eK);if(!t)return e;return t[1].replace(tK,"'")}(r);var i,a=RU[o];if(a)return null!=n&&n.useAdditionalWeekYearTokens||(i=r,-1===zU.indexOf(i))||HU(r,t,String(e)),null!=n&&n.useAdditionalDayOfYearTokens||!function(e){return-1!==FU.indexOf(e)}(r)||HU(r,t,String(e)),a(E,r,C.localize,j);if(o.match(nK))throw new RangeError("Format string contains an unescaped latin alphabet character `"+o+"`");return r})).join("");return A}function oK(e){return LV(1,arguments),FV(e).getDate()}function iK(e){LV(1,arguments);var t=FV(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 aK(e){LV(1,arguments);var t=FV(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(0,0,0,0),t}function sK(e,t){LV(2,arguments);var n=FV(e),r=FV(t);return n.getTime()>r.getTime()}function cK(e,t){LV(2,arguments);var n=FV(e),r=FV(t);return n.getTime()<r.getTime()}function uK(e){return LV(1,arguments),function(e,t){LV(2,arguments);var n=FV(e),r=FV(t);return n.getFullYear()===r.getFullYear()}(e,Date.now())}function lK(e,t){return LV(2,arguments),zV(e,-IV(t))}function fK(e){return fK="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},fK(e)}function pK(e,t){if(LV(2,arguments),"object"!==fK(t)||null===t)throw new RangeError("values parameter must be an object");var n=FV(e);return isNaN(n.getTime())?new Date(NaN):(null!=t.year&&n.setFullYear(t.year),null!=t.month&&(n=function(e,t){LV(2,arguments);var n=FV(e),r=IV(t),o=n.getFullYear(),i=n.getDate(),a=new Date(0);a.setFullYear(o,r,15),a.setHours(0,0,0,0);var s=iK(a);return n.setMonth(r,Math.min(i,s)),n}(n,t.month)),null!=t.date&&n.setDate(IV(t.date)),null!=t.hours&&n.setHours(IV(t.hours)),null!=t.minutes&&n.setMinutes(IV(t.minutes)),null!=t.seconds&&n.setSeconds(IV(t.seconds)),null!=t.milliseconds&&n.setMilliseconds(IV(t.milliseconds)),n)}function dK(e,t){LV(2,arguments);var n=FV(e),r=IV(t);return n.setDate(r),n}function hK(e){return hK="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},hK(e)}function gK(e,t){if(LV(2,arguments),!t||"object"!==hK(t))return new Date(NaN);var n=t.years?IV(t.years):0,r=t.months?IV(t.months):0,o=t.weeks?IV(t.weeks):0,i=t.days?IV(t.days):0,a=t.hours?IV(t.hours):0,s=t.minutes?IV(t.minutes):0,c=t.seconds?IV(t.seconds):0,u=function(e,t){return LV(2,arguments),HV(e,-IV(t))}(e,r+12*n),l=lK(u,i+7*o),f=1e3*(c+60*(s+60*a));return new Date(l.getTime()-f)}const yK=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},vK=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,","),mK=()=>e.jsx(n.Global,{styles:{".recharts-cartesian-grid-horizontal line:first-of-type":{strokeOpacity:0}}}),bK=X.div((({width:e,height:t,responsive:n})=>({width:e||"100%",height:t||"100%",maxWidth:n?"100%":void 0,maxHeight:n?"100%":void 0})),an),wK=({active:t,payload:n,label:r})=>t&&n&&n.length?e.jsxs(SK,{children:[e.jsx(kK,{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(OK,{children:[r&&e.jsx(NV,{color:r}),t.name,": ",vK(t.value||0)]},t.value)}))]}):null,xK=()=>{const{elevation1:t}=n.useTheme();return e.jsx(Dw,{wrapperStyle:{outline:"none",boxShadow:t},cursor:!1,content:e.jsx(wK,{})})},_K=({payload:t,toggleData:n})=>e.jsx(CK,{children:null==t?void 0:t.map((t=>e.jsxs(OK,Object.assign({onClick:n?()=>n(t):void 0,clickable:!!n,inactive:t.inactive},{children:[e.jsx(NV,{color:t.color}),t.value]}),t.value)))}),CK=X.div({display:"flex",justifyContent:"center",alignItems:"center",columnGap:16,marginTop:8,flexWrap:"wrap"}),OK=X.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}))),SK=X.div((({theme:e})=>({background:e.tooltip.background,border:"none",borderRadius:4,padding:16,boxShadow:e.elevation1}))),kK=X.div((({theme:e})=>({fontSize:e.font.size.md,color:e.tooltip.color.subtext,marginBottom:4}))),EK=X.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"}))),jK=X.div({display:"flex",justifyContent:"space-between",marginBottom:20,padding:"0 16px"}),AK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,color:t.color.monthYear}))),TK=X.div({display:"flex"}),PK=X.div({display:"grid",justifyContent:"space-between",gridTemplateColumns:"repeat(7, auto)",rowGap:4}),MK=X.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"}})),DK=X.div({display:"grid",gridTemplateColumns:"repeat(7, auto)",marginBottom:8}),RK=X.div((({theme:{font:e,calendar:t}})=>({fontSize:e.size.md,fontWeight:e.weight.bold,color:t.color.weekday,textAlign:"center",width:40}))),NK=X.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}})),an),IK=X.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`}}}))),LK=X.span((({theme:{font:e,scale10:t}})=>({fontSize:e.size.md,color:t,cursor:"pointer"}))),BK=n=>{var{id:r,label:o,labelPosition:i,checked:s,partial:c,disabled:u,onChange:l,margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g}=n,y=a(n,["id","label","labelPosition","checked","partial","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[v,m]=t.useState("checkbox-off"),[b,w]=t.useState(s||!1),x=t.useRef(null),_="right"===i,C={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g};return t.useEffect((()=>{m(c?"checkbox-partial":b?"checkbox":"checkbox-off")}),[b,c]),t.useEffect((()=>{w("boolean"==typeof s?s:b)}),[s,b]),e.jsxs(NK,Object.assign({htmlFor:r,labelRight:_,disabled:u},C,{children:[o&&e.jsx(LK,{children:o}),e.jsx(IK,Object.assign({ref:x,id:r,type:"checkbox",checked:c?!b:b,disabled:u,onChange:()=>{const e=!!c||!b;w(e),l(e),(null==x?void 0:x.current)&&(x.current.indeterminate=!!c)}},y)),e.jsx(un,{name:v,marginLeft:o&&!_?8:0,marginRight:o&&_?8:0,pointer:!u})]}))};
|
|
203
203
|
/**
|
|
204
204
|
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
205
205
|
*
|
|
@@ -208,5 +208,5 @@ var o=n[t];o.value*=-1,this.$=o}},table:function(e){for(var t=[],n=e.len,r=e.sym
|
|
|
208
208
|
* @namespace
|
|
209
209
|
* @public
|
|
210
210
|
*/
|
|
211
|
-
var LK=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};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var O=_.value;if(t.length>e.length)return;if(!(O instanceof o)){var S,k=1;if(m){if(!(S=i(x,C,e,v))||S.index>=e.length)break;var E=S.index,j=S.index+S[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,O=e.slice(C,A),S.index-=C}else if(!(S=i(x,0,O,v)))continue;E=S.index;var P=S[0],M=O.slice(0,E),D=O.slice(E+P.length),R=C+O.length;f&&R>f.reach&&(f.reach=R);var N=_.prev;if(M&&(N=c(t,N,M),C+=M.length),u(t,N,k),_=c(t,N,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var I={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,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}(),BK=LK;LK.default=LK,BK.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},BK.languages.markup.tag.inside["attr-value"].inside.entity=BK.languages.markup.entity,BK.languages.markup.doctype.inside["internal-subset"].inside=BK.languages.markup,BK.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(BK.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:BK.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:BK.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},BK.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(BK.languages.markup.tag,"addAttribute",{value:function(e,t){BK.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:BK.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),BK.languages.html=BK.languages.markup,BK.languages.mathml=BK.languages.markup,BK.languages.svg=BK.languages.markup,BK.languages.xml=BK.languages.extend("markup",{}),BK.languages.ssml=BK.languages.xml,BK.languages.atom=BK.languages.xml,BK.languages.rss=BK.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(BK),BK.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:/[{}[\];(),.:]/},BK.languages.c=BK.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|[?:~]|[-+*/%&|^!=<>]=?/}),BK.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),BK.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},BK.languages.c.string],char:BK.languages.c.char,comment:BK.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:BK.languages.c}}}}),BK.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 BK.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(BK),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(BK),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(BK),BK.languages.javascript=BK.languages.extend("clike",{"class-name":[BK.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}|\?\?=?|\?\.?|[~:]/}),BK.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,BK.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:BK.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:BK.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:BK.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:BK.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:BK.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),BK.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:BK.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"}}),BK.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),BK.languages.markup&&(BK.languages.markup.tag.addInlined("script","javascript"),BK.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")),BK.languages.js=BK.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(BK),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}(BK),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(BK),BK.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:BK.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+/},BK.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=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(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!1}return!0}function p(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 d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),BK.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(BK),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}(BK),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(BK),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(BK),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(BK),BK.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},BK.languages.go=BK.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/}),BK.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete BK.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(BK),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(BK),BK.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},BK.languages.webmanifest=BK.languages.json,BK.languages.less=BK.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),BK.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),BK.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},BK.languages.objectivec=BK.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 BK.languages.objectivec["class-name"],BK.languages.objc=BK.languages.objectivec,BK.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},BK.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},BK.languages.python["string-interpolation"].inside.interpolation.inside.rest=BK.languages.python,BK.languages.py=BK.languages.python,BK.languages.reason=BK.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/}),BK.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 BK.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(BK),BK.languages.scss=BK.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),BK.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),BK.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),BK.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),BK.languages.scss.atrule.inside.rest=BK.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(BK),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(BK),BK.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var FK={Prism:BK,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function zK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HK(){return HK=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},HK.apply(this,arguments)}var VK=/\r\n|\r|\n/,UK=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},KK=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},$K=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=HK({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=HK({},n,{backgroundColor:null}),o};function WK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var qK=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),zK(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?$K(e.theme,e.language):void 0;return t.themeDict=n})),zK(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=HK({},WK(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?HK({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),zK(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),zK(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=HK({},WK(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?HK({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),zK(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=KK(l,f.type),f.alias&&(l=KK(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(VK),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)UK(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return UK(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),GK="#c5a5c5",ZK="#8dc891",YK={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:GK}},{types:["attr-value"],style:{color:ZK}},{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:ZK}},{types:["punctuation"],style:{color:ZK}},{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:GK}},{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}}]},XK={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const JK=e=>{navigator.clipboard.writeText(e).catch((()=>{throw Error("Failed to copy text to clipboard")}))},QK=({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(e$,Object.assign({onClick:()=>{JK(r),i(!0)},copied:o},{children:o?e.jsx(un,{name:"check-circle",color:a.success}):e.jsx(un,{name:"copy",color:s})}))},e$=X.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}}))),t$=({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(n$,Object.assign({},i,{children:[e.jsx(r$,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(o$,{children:r}),e.jsx(QK,{content:r})]}))},n$=X.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}))),r$=X.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),o$=X.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),i$=X.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),an),a$=X.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),s$=X.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),c$=X.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 u$={};({get exports(){return u$},set exports(e){u$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(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[p])}function c(e){return!(!e||!e[d])}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__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function O(){}function S(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 M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,N=2,I="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=I||L;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 U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[L]);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 G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():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=R,F.ENTRIES=N,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 pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(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):U(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 pe(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 de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||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,p=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===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Oe(){}function Se(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(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,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,P(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,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=P(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(_e,n),t(Ce,_e),t(Oe,_e),t(Se,_e),_e.Keyed=Ce,_e.Indexed=Oe,_e.Set=Se;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 Pe(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 Pe(e){var t;if(Ie&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ie)Ne.set(e,t);else{if(void 0!==Me&&!1===Me(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 Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,Ie="function"==typeof WeakMap;Ie&&(Ne=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Vt(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function 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 O);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 pt(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 de(e)}))),o.push(c)}return gt(e,t,o)}function dt(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:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,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(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},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),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,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 p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),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(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},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:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=Rt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(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 St(e){return!(!e||!e[kt])}t(Ot,Oe),Ot.of=function(){return this(arguments)},Ot.prototype.toString=function(){return this.__toString("List [","]")},Ot.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},Ot.prototype.set=function(e,t){return Nt(this,e,t)},Ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ot.prototype.insert=function(e,t){return this.splice(e,0,t)},Ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},Ot.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])}))},Ot.prototype.pop=function(){return Ft(this,0,-1)},Ot.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])}))},Ot.prototype.shift=function(){return Ft(this,1)},Ot.prototype.merge=function(){return zt(this,void 0,arguments)},Ot.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ot.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ot.prototype.setSize=function(e){return Ft(this,0,e)},Ot.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?H():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!1!==e(n,r++,this););return r},Ot.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)},Ot.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ot.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(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=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Pt={};function Mt(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 Pt;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!==Pt)return e;s=null}if(u===l)return Pt;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 Rt(){return At||(At=Dt(0,0,y))}function Nt(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=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=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(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 O,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),p=Ht(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>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&&p<f&&(u=u.removeAfter(r,c,p-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 de(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():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(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=Kt(ot(),Rt()))}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):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(N,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(N,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=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Vt():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=P(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===R?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(N,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===N?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(N,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?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===N?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===N&&(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(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(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 dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?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 Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(On);return o.constructor=r,r}t(Vt,Ke),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?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Ut,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Sn(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Sn(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var On=Cn.prototype;function Sn(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);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}On[g]=On.remove,On.deleteIn=On.removeIn=Ge.removeIn,On.merge=Ge.merge,On.mergeWith=Ge.mergeWith,On.mergeIn=Ge.mergeIn,On.mergeDeep=Ge.mergeDeep,On.mergeDeepWith=Ge.mergeDeepWith,On.mergeDeepIn=Ge.mergeDeepIn,On.setIn=Ge.setIn,On.update=Ge.update,On.updateIn=Ge.updateIn,On.withMutations=Ge.withMutations,On.asMutable=Ge.asMutable,On.asImmutable=Ge.asImmutable,t(An,Se),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(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 Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Nn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Pn||(Pn=Nn(ot()))}function Ln(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=In,Dn.__make=Nn,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.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 Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Un,Oe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.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},Un.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()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return Ot(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(N)},every:function(e,t){Ue(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 Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(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 Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,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=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(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 S(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[p]=!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(S(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(S(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Oe,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Vt,List:Ot,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var l$=u$.OrderedMap,f$={createFromArray:function(e){return l$(e.map((function(e){return[e.getKey(),e]})))}};var p$=u$,d$=p$.Map,h$=p$.OrderedSet,g$=p$.Record,y$=h$(),v$={style:y$,entity:null},m$=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 b$;var t=d$({style:y$,entity:null}).merge(e),n=w$.get(t);if(n)return n;var o=new r(t);return w$=w$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?h$(t):t,entity:Array.isArray(n)?h$(n):n})},r}(g$(v$)),b$=new m$,w$=d$([[d$(v$),b$]]);m$.EMPTY=b$;var x$=m$;var _$=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 C$=x$,O$=_$,S$=u$,k$=S$.List,E$=S$.Map,j$=S$.OrderedSet,A$=S$.Record,T$=S$.Repeat,P$=j$(),M$=A$({key:"",type:"unstyled",text:"",characterList:k$(),depth:0,data:E$()}),D$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=k$(T$(C$.EMPTY,n.length))),e},R$=function(e){var t,n;function r(t){return e.call(this,D$(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():P$},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){O$(this.getCharacterList(),N$,e,t)},o.findEntityRanges=function(e,t){O$(this.getCharacterList(),I$,e,t)},r}(M$);function N$(e,t){return e.getStyle()===t.getStyle()}function I$(e,t){return e.getEntity()===t.getEntity()}var L$=R$;var B$=x$,F$=_$,z$=u$,H$=z$.List,V$=z$.Map,U$=z$.OrderedSet,K$=z$.Record,$$=z$.Repeat,W$=U$(),q$={parent:null,characterList:H$(),data:V$(),depth:0,key:"",text:"",type:"unstyled",children:H$(),prevSibling:null,nextSibling:null},G$=function(e,t){return e.getStyle()===t.getStyle()},Z$=function(e,t){return e.getEntity()===t.getEntity()},Y$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=H$($$(B$.EMPTY,n.length))),e},X$=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:q$;return e.call(this,Y$(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():W$},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){F$(this.getCharacterList(),G$,e,t)},o.findEntityRanges=function(e,t){F$(this.getCharacterList(),Z$,e,t)},r}(K$(q$)),J$=X$,Q$=x$,eW=u$.Map;function tW(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(eW([[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?Q$.applyStyle(l,n):Q$.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var nW={add:function(e,t,n){return tW(e,t,n,!0)},remove:function(e,t,n){return tW(e,t,n,!1)}},rW=x$;var oW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,rW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},iW=u$;var aW=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(iW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return oW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},sW={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,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},cW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var uW=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(cW(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}},lW=uW;var fW=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?lW(!1,"Entity key not found in this range."):lW(!1)),n},pW=sW,dW=fW,hW=uW;function gW(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=dW(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?hW(!1,"There should only be one entity range within this removal range."):hW(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=pW.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var yW=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=gW(e,t,u,o,s,!0,!0);else if(s&&c){var l=gW(e,t,u,o,s,!1,!0),f=gW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=gW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=gW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},vW={},mW=Math.pow(2,24);var bW=function(){for(var e;void 0===e||vW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*mW).toString(32);return vW[e]=!0,e},wW=J$,xW=bW,_W=u$.OrderedMap,CW=function(e){return e.first()instanceof wW?function(e){var t,n={};return _W(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=xW();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 _W(e.toArray().map((function(e){var t=xW();return[t,e.set("key",t)]})))}(e)},OW=x$,SW=_$,kW=uW;function EW(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 SW(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?kW(!1,"Removal range must exist within character list."):kW(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,OW.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var jW=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=EW(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=EW(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},AW=CW,TW=jW,PW=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=TW(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return AW(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 MW=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},DW=f$,RW=J$,NW=MW,IW=uW,LW=CW,BW=u$.List,FW=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,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:NW(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},zW=function(e,t,n,r,o,i){var a=n.first()instanceof RW,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=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=DW.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,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],BW(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},HW=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?IW(!1,"`insertFragment` should only be called with a collapsed selection state."):IW(!1));var o=e.getBlockMap(),i=LW(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof RW&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?IW(!1,"`insertFragment` should not be called when a container node is selected."):IW(!1))),1===i.size?FW(e,t,o,i.first(),a,s,r):zW(e,t,o,i,a,s)},VW=MW,UW=uW,KW=u$.Repeat;var $W=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?UW(!1,"`insertText` should only be called with a collapsed range."):UW(!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:VW(c.getCharacterList(),KW(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},WW=u$.Map;var qW=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(WW([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},GW=J$,ZW=function(e,t){if(!(e instanceof GW))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},YW=J$,XW=ZW,JW=u$;JW.List;var QW=JW.Map,eq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},tq=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},nq=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},rq=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},oq=function(e,t,n,r){return e.withMutations((function(o){if(eq(t.getKey(),o,(function(e){return e.merge({nextSibling:nq(e,o,r),prevSibling:rq(e,o,r)})})),eq(n.getKey(),o,(function(e){return e.merge({nextSibling:nq(e,o,r),prevSibling:rq(e,o,r)})})),tq(t.getKey(),r).forEach((function(e){return eq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:nq(e,o,r),prevSibling:rq(e,o,r)})}))})),eq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),eq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:nq(e,o,r)})})),eq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:rq(e,o,r)})})),eq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),tq(n.getKey(),r).forEach((function(e){eq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:nq(e,o,r),prevSibling:rq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=XW(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?XW(o,t):null}return n}(n,r).forEach((function(e){return eq(e,o,(function(e){return e.merge({nextSibling:nq(e,o,r),prevSibling:rq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();eq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),eq(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){eq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);eq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}eq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},iq=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},aq=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 YW,f=[];if(l){var p=u.getChildKeys(),d=tq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(tq(XW(u,r),r))}n=c===u?iq(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()?QW([[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(QW([[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=oq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},sq=J$,cq=bW,uq=u$,lq=uW,fq=qW,pq=uq.List,dq=uq.Map,hq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},gq=x$,yq=nW,vq=aW,mq=yW,bq=PW,wq=HW,xq=$W,_q=uW,Cq=qW,Oq=jW,Sq=aq,kq=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?lq(!1,"Selection range must be collapsed."):lq(!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 fq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=cq(),l=o instanceof sq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:dq()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?lq(!1,"ContentBlockNode must not have children"):lq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();hq(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:pq(i)})})),hq(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),hq(r,e,(function(e){return e.merge({nextSibling:o})})),hq(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},Eq=u$.OrderedSet,jq={replaceText:function(e,t,n,r,o){var i=Oq(e,t),a=Sq(i,t),s=gq.create({style:r||Eq(),entity:o||null});return xq(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?_q(!1,"Target range must be collapsed for `insertText`."):_q(!1)),jq.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=bq(e,t),o=jq.removeRange(e,t,"backward");return jq.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=Oq(e,t),i=Sq(o,t);return wq(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=mq(e.getEntityMap(),i,a,t,n);return Sq(e,f)}var p=Oq(e,t);return Sq(p,t)},splitBlock:function(e,t){var n=Oq(e,t),r=Sq(n,t);return kq(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return yq.add(e,t,n)},removeInlineStyle:function(e,t,n){return yq.remove(e,t,n)},setBlockType:function(e,t,n){return Cq(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Cq(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Cq(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Oq(e,t);return vq(r,t,n)}},Aq=jq;var Tq=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Pq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mq=_$,Dq=Tq,Rq=u$,Nq=Rq.List,Iq=Rq.Repeat,Lq=Rq.Record,Bq=function(){return!0},Fq=Lq({start:null,end:null}),zq=Lq({start:null,end:null,decoratorKey:null,leaves:null}),Hq={generate:function(e,t,n){var r=t.getLength();if(!r)return Nq.of(new zq({start:0,end:0,decoratorKey:null,leaves:Nq.of(new Fq({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Nq(Iq(null,r)),a=t.getCharacterList();return Mq(i,Uq,Bq,(function(e,t){o.push(new zq({start:e,end:t,decoratorKey:i.get(e),leaves:Vq(a.slice(e,t).toList(),e)}))})),Nq(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 zq(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Pq(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Nq(Array.isArray(t)?t:Dq(t)).map((function(e){return Fq(e)})):null}))}};function Vq(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return Mq(r,Uq,Bq,(function(e,r){n.push(new Fq({start:e+t,end:r+t}))})),Nq(n)}function Uq(e,t){return e===t}var Kq=Hq;var $q=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,u$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),Wq=$q;var qq=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 Gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zq=Wq,Yq=uW,Xq=qq,Jq=(0,u$.Map)(),Qq=Xq();function eG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var tG={getLastCreatedEntityKey:function(){return eG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),tG.__getLastCreatedEntityKey()},create:function(e,t,n){return eG("DraftEntity.create","contentState.createEntity"),tG.__create(e,t,n)},add:function(e){return eG("DraftEntity.add","contentState.addEntity"),tG.__add(e)},get:function(e){return eG("DraftEntity.get","contentState.getEntity"),tG.__get(e)},__getAll:function(){return Jq},__loadWithEntities:function(e){Jq=e,Qq=Xq()},mergeData:function(e,t){return eG("DraftEntity.mergeData","contentState.mergeEntityData"),tG.__mergeData(e,t)},replaceData:function(e,t){return eG("DraftEntity.replaceData","contentState.replaceEntityData"),tG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return Qq},__create:function(e,t,n){return tG.__add(new Zq({type:e,mutability:t,data:n||{}}))},__add:function(e){return Qq=Xq(),Jq=Jq.set(Qq,e),Qq},__get:function(e){var t=Jq.get(e);return t||("production"!==process.env.NODE_ENV?Yq(!1,"Unknown DraftEntity key: %s.",e):Yq(!1)),t},__mergeData:function(e,t){var n=tG.__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){Gq(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return Jq=Jq.set(e,o),o},__replaceData:function(e,t){var n=tG.__get(e).set("data",t);return Jq=Jq.set(e,n),n}},nG=tG;var rG=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,u$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),oG=rG,iG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},aG=new RegExp("\r","g");var sG=function(e){return e.replace(aG,"")};function cG(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){uG(e,t,n[t])}))}return e}function uG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var lG=f$,fG=x$,pG=L$,dG=J$,hG=nG,gG=oG,yG=bW,vG=Tq,mG=iG,bG=u$,wG=sG,xG=bG.List,_G=bG.Record,CG=bG.Repeat,OG=bG.Map,SG=bG.OrderedMap,kG=_G({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),EG=mG("draft_tree_data_support")?dG:pG,jG=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 hG},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 hG.__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 hG.__create(e,t,n),this},o.mergeEntityData=function(e,t){return hG.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return hG.__replaceData(e,t),this},o.addEntity=function(e){return hG.__add(e),this},o.getEntity=function(e){return hG.__get(e)},o.getAllEntities=function(){return hG.__getAll()},o.loadWithEntities=function(e){return hG.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=lG.createFromArray(n),i=o.isEmpty()?new gG:gG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||hG,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=wG(e),new EG({key:yG(),text:e,type:"unstyled",characterList:xG(CG(fG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(cG({},e,{blockMap:SG(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new gG(e.selectionBefore),selectionAfter:new gG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new EG(cG({},e,{data:OG(e.data),characterList:null!=t?xG((Array.isArray(t)?t:vG(t)).map((function(e){return fG.fromJS(e)}))):void 0}))},r}(kG),AG=jG,TG=uW,PG="LTR",MG="RTL",DG=null;function RG(e){return e===PG||e===MG}function NG(e){return RG(e)||("production"!==process.env.NODE_ENV?TG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):TG(!1)),e===PG?"ltr":"rtl"}function IG(e){DG=e}var LG={NEUTRAL:"NEUTRAL",LTR:PG,RTL:MG,isStrong:RG,getHTMLDir:NG,getHTMLDirIfDifferent:function(e,t){return RG(e)||("production"!==process.env.NODE_ENV?TG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):TG(!1)),RG(t)||("production"!==process.env.NODE_ENV?TG(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):TG(!1)),e===t?null:NG(e)},setGlobalDir:IG,initGlobalDir:function(){IG(PG)},getGlobalDir:function(){return DG||this.initGlobalDir(),DG||("production"!==process.env.NODE_ENV?TG(!1,"Global direction not set."):TG(!1)),DG}},BG=LG,FG=uW,zG="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",HG="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",VG=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+zG+HG+"]"),UG=new RegExp("["+zG+HG+"]");function KG(e){var t=VG.exec(e);return null==t?null:t[0]}function $G(e){var t=KG(e);return null==t?BG.NEUTRAL:UG.exec(t)?BG.RTL:BG.LTR}function WG(e,t){if(t=t||BG.NEUTRAL,!e.length)return t;var n=$G(e);return n===BG.NEUTRAL?t:n}function qG(e,t){return t||(t=BG.getGlobalDir()),BG.isStrong(t)||("production"!==process.env.NODE_ENV?FG(!1,"Fallback direction must be a strong direction"):FG(!1)),WG(e,t)}var GG={firstStrongChar:KG,firstStrongCharDir:$G,resolveBlockDir:WG,getDirection:qG,isDirectionLTR:function(e,t){return qG(e,t)===BG.LTR},isDirectionRTL:function(e,t){return qG(e,t)===BG.RTL}};function ZG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var YG,XG=GG,JG=LG,QG=uW,eZ=function(){function e(e){ZG(this,"_defaultDir",void 0),ZG(this,"_lastDir",void 0),e?JG.isStrong(e)||("production"!==process.env.NODE_ENV?QG(!1,"Default direction must be a strong direction (LTR or RTL)"):QG(!1)):e=JG.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=XG.getDirection(e,this._lastDir),this._lastDir},e}(),tZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},nZ=eZ,rZ=u$,oZ=tZ,iZ=rZ.OrderedMap;function aZ(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){sZ(e,t,n[t])}))}return e}function sZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cZ=Kq,uZ=AG,lZ={getDirectionMap:function(e,t){YG?YG.reset():YG=new nZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return oZ(YG).getDirection(e.getText())})),o=iZ(n.keySeq().zip(r));return null!=t&&rZ.is(t,o)?t:o}},fZ=oG,pZ=u$,dZ=pZ.OrderedSet,hZ=pZ.Record,gZ=pZ.Stack,yZ=pZ.OrderedMap,vZ=pZ.List,mZ=hZ({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:gZ(),selection:null,treeMap:null,undoStack:gZ()}),bZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(uZ.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:gZ(),redoStack:gZ(),decorator:n||null,selection:fZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=aZ({},e,{treeMap:xZ(n,e.decorator),directionMap:lZ.getDirectionMap(n)});return new t(new mZ(r))},t.fromJS=function(e){return new t(new mZ(aZ({},e,{directionMap:null!=e.directionMap?yZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?dZ(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?uZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?gZ(e.redoStack.map((function(e){return uZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new fZ(e.selection):e.selection,treeMap:null!=e.treeMap?yZ(e.treeMap).map((function(e){return vZ(e).map((function(e){return cZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?gZ(e.undoStack.map((function(e){return uZ.fromJS(e)}))):e.undoStack,currentContent:uZ.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 cZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):xZ(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 cZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){sZ(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 _Z(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 _Z(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 wZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),wZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new fZ({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=lZ.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:gZ(),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=lZ.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=lZ.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 wZ(e,t,n){return bZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function xZ(e,t){return e.getBlockMap().map((function(n){return cZ.generate(e,n,t)})).toOrderedMap()}function _Z(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):dZ()}var CZ=bZ,OZ=J$,SZ=ZW,kZ=u$,EZ=uW,jZ=kZ.OrderedMap,AZ=kZ.List,TZ=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},PZ=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(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){TZ(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),TZ(l,e,(function(e){return e.merge({nextSibling:u})})),TZ(u,e,(function(e){return e.merge({prevSibling:l})})),TZ(p,e,(function(e){return e.merge({prevSibling:a})})),TZ(d,e,(function(e){return e.merge({nextSibling:a})})),TZ(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:AZ(o)})})),TZ(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function MZ(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){DZ(e,t,n[t])}))}return e}function DZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var RZ=f$,NZ=x$,IZ=L$,LZ=J$,BZ=Aq,FZ=CZ,zZ=bW,HZ=u$,VZ=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?EZ(!1,"Replacing blocks is not supported."):EZ(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?EZ(!1,"Block cannot be moved next to itself."):EZ(!1));var a=e.getBlockMap(),s=t instanceof OZ,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=SZ(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),p=c.map((function(e){return[e.getKey(),e]})),d=jZ();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?EZ(!1,"Block cannot be moved next to itself."):EZ(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?EZ(!1,"Block cannot be moved next to itself."):EZ(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:PZ(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},UZ=iG("draft_tree_data_support"),KZ=UZ?LZ:IZ,$Z=HZ.List,WZ=HZ.Repeat,qZ={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=BZ.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=BZ.splitBlock(i,a),c=s.getSelectionAfter(),u=BZ.setBlockType(s,c,"atomic"),l=NZ.create({entity:t}),f={key:zZ(),type:"atomic",text:n,characterList:$Z(WZ(l,n.length))},p={key:zZ(),type:"unstyled"};UZ&&(f=MZ({},f,{nextSibling:p.key}),p=MZ({},p,{prevSibling:f.key}));var d=[new KZ(f),new KZ(p)],h=RZ.createFromArray(d),g=BZ.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return FZ.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=VZ(i,t,s,r)}else{var c=BZ.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=VZ(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=VZ(c,t,l,"after");else{var f=BZ.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=VZ(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return FZ.push(e,h,"move-block")}};var GZ=u$.List,ZZ=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)})),GZ(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 YZ=ZZ;function XZ(e){return e.replace(/\//g,"-")}var JZ=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(XZ).join(" "):Array.prototype.map.call(arguments,XZ).join(" ")},QZ=t,eY=JZ,tY=(0,u$.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:QZ.createElement("ul",{className:eY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:QZ.createElement("ol",{className:eY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:QZ.createElement("pre",{className:eY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),nY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},rY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",O="Browser",S="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",R="Sharp",N="Sony",I="Xiaomi",L="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)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[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}},K=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],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(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,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,K,{"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,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[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,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,H]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,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,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[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,N],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,N],[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,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[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,R],[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,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[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,N],[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,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,R],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,N],[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,L],[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],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[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,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(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,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},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[p]=r,U.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[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.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,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return rY},set exports(e){rY=e}},rY);var oY="Unknown",iY={"Mac OS":"Mac OS X"};var aY,sY=(new rY).getResult(),cY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(sY.browser.version),uY={browserArchitecture:sY.cpu.architecture||oY,browserFullVersion:sY.browser.version||oY,browserMinorVersion:cY.minor||oY,browserName:sY.browser.name||oY,browserVersion:sY.browser.major||oY,deviceName:sY.device.model||oY,engineName:sY.engine.name||oY,engineVersion:sY.engine.version||oY,platformArchitecture:sY.cpu.architecture||oY,platformName:(aY=sY.os.name,iY[aY]||aY||oY),platformVersion:sY.os.version||oY,platformFullVersion:sY.os.version||oY},lY=uW,fY=/\./,pY=/\|\|/,dY=/\s+\-\s+/,hY=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,gY=/^(\d*)(.*)/;function yY(e,t){var n=e.split(pY);return n.length>1?n.some((function(e){return EY.contains(e,t)})):function(e,t){var n=e.split(dY);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?lY(!1,'the "-" operator expects exactly 2 operands'):lY(!1)),1===n.length)return vY(n[0],t);var r=n[0],o=n[1];return _Y(r)&&_Y(o)||("production"!==process.env.NODE_ENV?lY(!1,'operands to the "-" operator must be simple (no modifiers)'):lY(!1)),vY(">="+r,t)&&vY("<="+o,t)}(e=n[0].trim(),t)}function vY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(fY),r=wY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return mY(n,i);case"<=":return function(e,t){var n=kY(e,t);return-1===n||0===n}(n,i);case">=":return bY(n,i);case">":return function(e,t){return 1===kY(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);xY(i)&&(r[o]=i+1+"");return bY(e,n)&&mY(e,r)}(n,i);default:return function(e,t){return 0===kY(e,t)}(n,i)}}function mY(e,t){return-1===kY(e,t)}function bY(e,t){var n=kY(e,t);return 1===n||0===n}function wY(e){var t=e.split(fY),n=t[0].match(hY);return n||("production"!==process.env.NODE_ENV?lY(!1,"expected regex to match but it did not"):lY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function xY(e){return!isNaN(e)&&isFinite(e)}function _Y(e){return!wY(e).modifier}function CY(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function OY(e,t){var n=e.match(gY)[1],r=t.match(gY)[1],o=parseInt(n,10),i=parseInt(r,10);return xY(o)&&xY(i)&&o!==i?SY(o,i):SY(e,t)}function SY(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?lY(!1,'"a" and "b" must be of the same type'):lY(!1)),e>t?1:e<t?-1:0}function kY(e,t){for(var n=function(e,t){CY(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 CY(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=OY(r[i],o[i]);if(a)return a}return 0}var EY={contains:function(e,t){return yY(e.trim(),t.trim())}},jY=EY,AY=Object.prototype.hasOwnProperty;var TY=function(e,t,n){if(!e)return null;var r={};for(var o in e)AY.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var PY=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},MY=uY,DY=jY;function RY(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,DY.contains(o,t))}function NY(e){return"Windows"===MY.platformName?e.replace(/^\s*NT/,""):e}var IY=TY({isBrowser:function(e){return RY(MY.browserName,MY.browserFullVersion,e)},isBrowserArchitecture:function(e){return RY(MY.browserArchitecture,null,e)},isDevice:function(e){return RY(MY.deviceName,null,e)},isEngine:function(e){return RY(MY.engineName,MY.engineVersion,e)},isPlatform:function(e){return RY(MY.platformName,MY.platformFullVersion,e,NY)},isPlatformArchitecture:function(e){return RY(MY.platformArchitecture,null,e)}},PY);var LY=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var BY=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},FY=BY;var zY=function e(t){if(FY(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},HY=LY,VY=zY;var UY=function(e){for(var t=e;t&&t!==HY(e).documentElement;){var n=VY(t);if(null!=n)return n;t=t.parentNode}return null};var KY=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function $Y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var WY=IY,qY=UY,GY=KY,ZY=uW,YY=tZ,XY=u$.Map,JY={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},QY=WY.isBrowser("IE <= 11"),eX=function(){function e(e){var t=this;$Y(this,"observer",void 0),$Y(this,"container",void 0),$Y(this,"mutations",void 0),$Y(this,"onCharData",void 0),this.container=e,this.mutations=XY();var n=GY(e);n.MutationObserver&&!QY?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?ZY(!1,"Expected target to be an instance of Node"):ZY(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,JY):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=XY(),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 QY?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=YY(qY(e.target));this.mutations=this.mutations.set(n,t)}},e}(),tX="-",nX={encode:function(e,t,n){return e+tX+t+tX+n},decode:function(e){var t=e.split(tX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(tX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},rX={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},oX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var iX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},aX=uW,sX=iX;var cX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?aX(!1,"Missing editorNode"):aX(!1)),sX(t.firstChild)||("production"!==process.env.NODE_ENV?aX(!1,"editorNode.firstChild is not an HTMLElement"):aX(!1)),t.firstChild},uX=nX,lX=tZ;var fX=function(e,t,n,r,o){var i=lX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=uX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=uX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?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=d.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})},pX=UY,dX=zY,hX=fX,gX=uW,yX=BY,vX=tZ;function mX(e,t,n){var r=t,o=pX(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?gX(!1,"Unknown node in selection range."):gX(!1)),e===r)&&(r=r.firstChild,yX(r)||("production"!==process.env.NODE_ENV?gX(!1,"Invalid DraftEditorContents node."):gX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?gX(!1,"Invalid DraftEditorContents structure."):gX(!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&&(yX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||dX(e.firstChild));)e=e.firstChild;return e}(r);i=vX(dX(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(dX(s)){var l=function(e){for(;e.lastChild&&(yX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||dX(e.lastChild));)e=e.lastChild;return e}(s);c=vX(dX(l)),u=bX(l)}else c=vX(o),u=bX(s);return{key:c,offset:u}}function bX(e){var t=e.textContent;return"\n"===t?0:t.length}var wX=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:hX(e,vX(pX(n)),r,vX(pX(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:vX(pX(n)),offset:r},u=mX(t,o,i)):s?(u={key:vX(pX(o)),offset:i},c=mX(t,n,r)):(c=mX(t,n,r),u=mX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:hX(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},xX=wX;var _X=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}:xX(e,t,r,o,i,a)},CX=oX,OX=CZ,SX=cX,kX=_X;var EX=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();CX.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=kX(n,SX(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?OX.forceSelection(n,o):OX.acceptSelection(n,o),e.update(n))}};var jX={notEmptyKey:function(e){return null!=e&&""!=e}},AX=jX.notEmptyKey;function TX(e,t){return AX(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var PX=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:TX(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),TX(e.getEntityMap(),n)},MX=eX,DX=Aq,RX=nX,NX=CZ,IX=rX,LX=EX,BX=cX,FX=_X,zX=PX,HX=tZ,VX=IY.isBrowser("IE"),UX=!1,KX=!1,$X=null;var WX,qX,GX={onCompositionStart:function(e){KX=!0,function(e){$X||($X=new MX(BX(e))).start()}(e)},onCompositionEnd:function(e){UX=!1,KX=!1,setTimeout((function(){UX||GX.resolveComposition(e)}),20)},onSelect:LX,onKeyDown:function(e,t){if(!KX)return GX.resolveComposition(e),void e._onKeyDown(t);t.which!==IX.RIGHT&&t.which!==IX.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===IX.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!KX){var t=HX($X).stopAndFlushMutations();$X=null,UX=!0;var n=NX.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=RX.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}),p=zX(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=DX.replaceText(r,f,e,d,p),n=NX.set(n,{currentContent:r})}));var o=FX(n,BX(e)).selectionState;e.restoreEditorDOM();var i=VX?NX.forceSelection(n,o):NX.acceptSelection(n,o);e.update(NX.push(i,r,"insert-characters"))}else e.update(n)}}},ZX=GX;function YX(){if(qX)return WX;qX=1;var e=jg;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=nX,o=t,i=GG,a=LG,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,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.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(p.get("start")),offsetKey:m}),s)},c}(o.Component);return WX=s}function XX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function JX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var QX=t,eJ=uW,tJ=BY,nJ=IY.isBrowser("IE <= 11");var rJ=function(e){var t,n;function r(t){var n;return JX(XX(n=e.call(this,t)||this),"_forceFlag",void 0),JX(XX(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;tJ(t)||("production"!==process.env.NODE_ENV?eJ(!1,"node is not an Element"):eJ(!1));var r=t;return n?!function(e){return nJ?"\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},nJ?QX.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):QX.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return nJ?QX.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):QX.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):QX.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(QX.Component),oJ=rJ,iJ=BY;var aJ=function(e){return!(!e||!e.ownerDocument)&&(iJ(e)&&"BR"===e.nodeName)};var sJ=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))},cJ=sJ;var uJ=function(e){return cJ(e)&&3==e.nodeType},lJ=uJ;var fJ=function e(t,n){return!(!t||!n)&&(t===n||!lJ(t)&&(lJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var pJ=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}},dJ=oX,hJ=fJ,gJ=pJ,yJ=LY,vJ=uW,mJ=BY,bJ=IY.isBrowser("IE");function wJ(e,t){if(!e)return"[empty]";var n=xJ(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(mJ(n)||("production"!==process.env.NODE_ENV?vJ(!1,"Node must be an Element if it is not a text node."):vJ(!1)),n.outerHTML)}function xJ(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return yJ(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(xJ(i[a],t));return o}function _J(e,t){for(var n=e,r=n;n;){if(mJ(n)&&r.hasAttribute("contenteditable"))return wJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function CJ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function OJ(e,t,n,r){var o=gJ();if(e.extend&&null!=t&&hJ(o,t)){n>CJ(t)&&dJ.logSelectionStateFailure({anonymizedDom:_J(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 dJ.logSelectionStateFailure({anonymizedDom:_J(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 SJ(e,t,n,r){var o=yJ(t).createRange();if(n>CJ(t)&&dJ.logSelectionStateFailure({anonymizedDom:_J(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),bJ)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 kJ=function(e,t,n,r,o){var i=yJ(t);if(hJ(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 p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),SJ(a,t,c-r,e),void OJ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),SJ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),SJ(a,t,c-r,e),OJ(a,y,v,e)}}else h&&(a.removeAllRanges(),SJ(a,t,c-r,e)),g&&OJ(a,t,l-r,e)}},EJ=jg;var jJ,AJ,TJ=oJ,PJ=t,MJ=uW,DJ=aJ,RJ=kJ,NJ=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?MJ(!1,"Missing node"):MJ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?MJ(!1,"Missing child"):MJ(!1)),u.nodeType===Node.TEXT_NODE?c=u:DJ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?MJ(!1,"Missing targetNode"):MJ(!1)),RJ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?MJ(!1,"Missing leafNode"):MJ(!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()),EJ(e,r,n)}),{});if(i){var u=i(s,t);c=EJ(c,u)}return PJ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},PJ.createElement(TJ,null,n))},r}(PJ.Component),IJ=NJ;function LJ(){if(AJ)return jJ;AJ=1;var e=YX(),n=IJ,r=nX,o=t,i=JZ;u$.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,p=t.forceSelection,d=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:d?h:null,forceSelection:p,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 jJ=a}function BJ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var FJ={getTop:function(e){var t=e.ownerDocument;return BJ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;BJ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return BJ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;BJ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},zJ=/-(.)/g;var HJ=function(e){return e.replace(zJ,(function(e,t){return t.toUpperCase()}))},VJ=/([A-Z])/g;var UJ=function(e){return e.replace(VJ,"-$1").toLowerCase()},KJ=HJ,$J=UJ;function WJ(e){return null==e?e:String(e)}var qJ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return WJ(n.getPropertyValue($J(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return WJ(n.getPropertyValue($J(t)));if("display"===t)return"none"}return e.currentStyle?WJ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[KJ(t)]):WJ(e.style&&e.style[KJ(t)])};function GJ(e,t){var n=ZJ.get(e,t);return"auto"===n||"scroll"===n}var ZJ={get:qJ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(GJ(e,"overflow")||GJ(e,"overflowY")||GJ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},YJ=ZJ,XJ=fJ;var JJ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!XJ(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 QJ=function(e){var t=JJ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},eQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var tQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:eQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},nQ=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 rQ=function(e){var t=tQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=nQ(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 oQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function iQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function aQ(){return{width:window.innerWidth||oQ(),height:window.innerHeight||iQ()}}aQ.withoutScrollbars=function(){return{width:oQ(),height:iQ()}};var sQ,cQ,uQ,lQ,fQ=aQ;function pQ(){if(cQ)return sQ;cQ=1;var e=jg;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=LJ(),a=nX,s=t,c=FJ,u=YJ,l=QJ,f=rQ,p=fQ,d=uW,h=iX;u$.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-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!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,p=t.decorator,d=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,_=t.direction,C=t.forceSelection,O=t.selection,S=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),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,C=m(i,d,o,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,C,s.createElement(g,O))),!_||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 p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,P=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:p,direction:_,forceSelection:C,hasSelection:g(O,E),selection:O,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,j,l,A,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return sQ=b}var dQ=jg;function hQ(){return hQ=dQ||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},hQ.apply(this,arguments)}var gQ,yQ,vQ,mQ,bQ=IJ,wQ=nX,xQ=t,_Q=FJ,CQ=YJ,OQ=GG,SQ=LG,kQ=JZ,EQ=QJ,jQ=rQ,AQ=fQ,TQ=uW,PQ=iX,MQ=tZ,DQ=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},RQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return 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||DQ(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=CQ.getScrollParent(n),i=jQ(o);if(o===window){var a=EQ(n);(r=a.y+a.height-AQ().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{PQ(n)||("production"!==process.env.NODE_ENV?TQ(!1,"blockNode is not an HTMLElement"):TQ(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&_Q.setTop(o,_Q.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=DQ(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=wQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return xQ.createElement(bQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),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 p=MQ(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=wQ.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=SQ.getHTMLDirIfDifferent(OQ.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 xQ.createElement(d,hQ({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=kQ({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return xQ.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(xQ.Component),NQ=RQ;var IQ=iG("draft_tree_data_support")?function(){if(lQ)return uQ;lQ=1;var e=jg;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=nX,i=t,a=tZ,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,p=e.editorKey,d=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(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var O=w.getNextSiblingKey();w=O?h.getBlockForKey(O):null}for(var S=[],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);S.push(A)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return uQ=s}():function(){if(mQ)return vQ;mQ=1;var e=jg;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=NQ,a=nX,s=t,c=JZ,u=(yQ||(yQ=1,gQ=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}),gQ),l=tZ,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})},p=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 p=c.prototype;return p.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()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),O=[],S=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),P=o(j),M=void 0,D=void 0,R=void 0;P&&(M=P.component,D=P.props,R=P.editable);var N=v||_.get(A),I=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:N,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===S||H>S,N));var U=M||i,K={className:V,"data-block":!0,"data-editor":g,"data-offset-key":I,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));O.push({block:$,wrapperTemplate:F,key:A,offsetKey:I}),S=F?j.getDepth():null,k=F}for(var W=[],q=0;q<O.length;){var G=O[q];if(G.wrapperTemplate){var Z=[];do{Z.push(O[q].block),q++}while(q<O.length&&O[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return vQ=p}(),LQ={isImage:function(e){return"image"===BQ(e)[0]},isJpeg:function(e){var t=BQ(e);return LQ.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function BQ(e){return e.split("/")}var FQ=LQ,zQ=uW;var HQ=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?zQ(!1,"toArray: Array-like object expected"):zQ(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?zQ(!1,"toArray: Object needs a length property"):zQ(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?zQ(!1,"toArray: Object should have keys for indices"):zQ(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?zQ(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):zQ(!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 VQ(e){return function(){return e}}var UQ=function(){};UQ.thatReturns=VQ,UQ.thatReturnsFalse=VQ(!1),UQ.thatReturnsTrue=VQ(!0),UQ.thatReturnsNull=VQ(null),UQ.thatReturnsThis=function(){return this},UQ.thatReturnsArgument=function(e){return e};var KQ=UQ,$Q=FQ,WQ=HQ,qQ=KQ,GQ=new RegExp("\r\n","g"),ZQ={"text/rtf":1,"text/html":1};function YQ(e){if("file"==e.kind)return e.getAsFile()}var XQ=function(){function e(e){this.data=e,this.types=e.types?WQ(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return ZQ[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(GQ,"\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(!$Q.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(YQ).filter(qQ.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),JQ=XQ,QQ=uW,e1=/\.textClipping$/,t1={"text/plain":!0,"text/html":!0,"text/rtf":!0},n1=5e3;var r1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in t1))return void t("");if(""===e.type){var n="";return e1.test(e.name)&&(n=e.name.replace(e1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?QQ(!1,'We should be calling "FileReader.readAsText" which returns a string'):QQ(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,n1)),n==e.length&&t(r.join("\r"))}))}))};var o1=function(e){return"handled"===e||!0===e},i1=JQ,a1=Aq,s1=CZ,c1=UY,u1=LY,l1=r1,f1=fX,p1=KY,d1=o1,h1=tZ;var g1={onDragEnd:function(e){e.exitCurrentMode(),y1(e)},onDrop:function(e,t){var n=new i1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=u1(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=h1(n),r=h1(r);var a=h1(c1(n));return f1(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&&d1(e.props.handleDroppedFiles(o,i)))return;l1(i,(function(t){t&&e.update(v1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&d1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=a1.moveText(e.getCurrentContent(),e.getSelection(),t);return s1.push(e,n,"insert-fragment")}(r,o)):e.update(v1(r,o,n.getText()))),y1(e)}}}};function y1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:p1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function v1(e,t,n){var r=a1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return s1.push(e,r,"insert-fragment")}var m1=g1;var b1=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(){d(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){d(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(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+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=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,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{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var w1=s.setImmediate,x1=Aq,_1=CZ,C1=PX,O1=o1,S1=b1,k1=tZ,E1=w1,j1="'",A1="/",T1=IY.isBrowser("Firefox");function P1(e,t,n,r,o){var i=x1.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return _1.push(e,i,"insert-characters",o)}var M1=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&&O1(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(P1(n,r,n.getCurrentInlineStyle(),C1(n.getCurrentContent(),n.getSelection()),!0));var s,c=P1(n,r,n.getCurrentInlineStyle(),C1(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=S1(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=T1&&(s==j1||s==A1)),u||(u=k1(c.getDirectionMap()).get(a)!==k1(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=_1.set(c,{forceSelection:!0}),void e.update(c);c=_1.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,E1((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},D1=CZ,R1=fJ,N1=pJ;var I1=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&N1(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&R1(o,r.anchorNode)&&R1(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(D1.acceptSelection(i,s))}},L1=CZ;var B1=function(e,t){e.setMode("composite"),e.update(L1.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},F1=PW;var z1=function(e){var t=e.getSelection();return t.isCollapsed()?null:F1(e.getCurrentContent(),t)},H1=z1;var V1=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(H1(e._latestEditorState))};var U1=Aq,K1=CZ,$1=YJ,W1=z1,q1=rQ,G1=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 Z1=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(G1(i)){var a=i;n=q1($1.getScrollParent(a))}var s=W1(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=U1.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return K1.push(e,t,"remove-range")}(r))}),0)}};var Y1=function(e,t){e.setMode("drag"),t.preventDefault()};var X1=function(e){e._internalDrag=!0,e.setMode("drag")},J1=CZ,Q1=IY;var e0=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),Q1.isBrowser("Chrome < 60.0.3081.0")?e.update(J1.forceSelection(n,o)):e.update(J1.acceptSelection(n,o))}},t0=uW,n0=55296,r0=56319,o0=56320,i0=57343,a0=/[\uD800-\uDFFF]/;function s0(e){return n0<=e&&e<=i0}function c0(e){return a0.test(e)}function u0(e,t){return 1+s0(e.charCodeAt(t))}function l0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!c0(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+=u0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=u0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=u0(e,i);return e.substring(o,i)}var f0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=u0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:u0,hasSurrogateUnit:c0,isCodeUnitInSurrogateRange:s0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?t0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):t0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return n0<=n&&n<=r0&&o0<=r&&r<=i0},strlen:function(e){if(!c0(e))return e.length;for(var t=0,n=0;n<e.length;n+=u0(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 l0(e,t=t<n?t:n,r)},substr:l0},p0=f0,d0=KQ;function h0(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 g0="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];h0.apply(void 0,[t].concat(r))}}:d0,y0=g0,v0=y0;var m0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&v0(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})},b0=Aq,w0=iG("draft_tree_data_support");var x0=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(w0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(w0)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 b0.removeRange(o,i,n)},_0=CZ,C0=p0,O0=m0,S0=x0;var k0=function(e){var t=S0(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return O0(e,i?C0.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return _0.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},E0=Aq,j0=nX,A0=CZ,T0=jX.notEmptyKey,P0=UY,M0=k0,D0=tZ,R0=IY.isEngine("Gecko"),N0="\n\n";var I0=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=D0(P0(r)),f=j0.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith(N0)&&(c=c.slice(0,-1)),c!==w){var x,_,C,O,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=T0(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",P=E0.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(R0)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var M=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=o?O+M:C,_=O+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(A0.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var N=function(e,t){return"deleteContentBackward"===e?M0(t):t}(R,u);if(N!==u)return e.restoreEditorDOM(),void e.update(N)}}}},L0=rX;var B0=function(e){return e.which===L0.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},F0=B0,z0=IY.isPlatform("Mac OS X"),H0={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return z0&&e.altKey},usesMacOSHeuristics:function(){return z0},hasCommandModifier:function(e){return z0?!!e.metaKey&&!e.altKey:H0.isCtrlKeyCommand(e)},isSoftNewlineEvent:F0},V0=H0,U0=Aq,K0=CZ,$0=PW,W0=tZ,q0=null,G0={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=W0(r),q0=$0(t,r);var s=U0.removeRange(t,r,"forward");return s===t?e:K0.push(e,s,"remove-range")},paste:function(e){if(!q0)return e;var t=U0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),q0);return K0.push(e,t,"insert-fragment")}},Z0=uW;var Y0=IY.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?Z0(!1,"Found an unexpected detached subtree when getting range client rects."):Z0(!1)}:function(e){return Array.from(e.getClientRects())},X0=Y0,J0=p0,Q0=LY,e2=X0,t2=uW;function n2(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 r2(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 o2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?t2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):t2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=Q0(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?t2(!1,"Missing document.body"):t2(!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);n2(e2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?t2(!1,"Found unexpected detached subtree when traversing."):t2(!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&&J0.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!n2(e2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=r2(i=i.childNodes[c])}return e.setStart(r,o),e},i2=CZ,a2=o2,s2=wX,c2=m0,u2=x0;var l2=function(e,t){var n=u2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return c2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=a2(r),s2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:i2.push(e,n,"remove-range")},f2="['‘’]",p2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),d2=new RegExp("^(?:"+p2+")*(?:"+f2+"|(?!"+p2+").)*(?:(?!"+p2+").)"),h2=new RegExp("(?:(?!"+p2+").)(?:"+f2+"|(?!"+p2+").)*(?:"+p2+")*$");function g2(e,t){var n=t?h2.exec(e):d2.exec(e);return n?n[0]:e}var y2={getBackward:function(e){return g2(e,!0)},getForward:function(e){return g2(e,!1)}},v2=y2,m2=CZ,b2=m0,w2=x0;var x2=y0;var _2=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&x2(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})},C2=y2,O2=CZ,S2=_2,k2=x0;var E2=Aq,j2=CZ;var A2=CZ;var T2=CZ;var P2=CZ,M2=p0,D2=_2,R2=x0;var N2=Aq,I2=CZ,L2=PW;var B2=CZ;var F2=function(e,t,n){var r=B2.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(B2.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(B2.set(r,{nativelyRenderedContent:o}))}},z2=Aq,H2=CZ,V2=rX,U2=G0,K2=IY,$2=o1,W2=l2,q2=function(e){var t=w2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return b2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=v2.getBackward(o);return b2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:m2.push(e,t,"remove-range")},G2=function(e){var t=k2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=C2.getForward(o);return S2(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:O2.push(e,t,"remove-range")},Z2=function(e){var t=E2.splitBlock(e.getCurrentContent(),e.getSelection());return j2.push(e,t,"split-block")},Y2=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return A2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},X2=function(e){var t=e.getSelection(),n=t.getStartKey();return T2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},J2=k0,Q2=function(e){var t=R2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return D2(e,i?M2.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return P2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},e5=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=L2(a,r),u=N2.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=N2.replaceWithFragment(u,p,c),h=I2.push(e,d,"insert-fragment");return I2.acceptSelection(h,o)},t5=F2,n5=V0.isOptionKeyCommand,r5=K2.isBrowser("Chrome");var o5=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 V2.RETURN:if(t.preventDefault(),e.props.handleReturn&&$2(e.props.handleReturn(t,r)))return;break;case V2.ESC:if(t.preventDefault(),o("onEscape"))return;break;case V2.TAB:if(o("onTab"))return;break;case V2.UP:if(o("onUpArrow"))return;break;case V2.RIGHT:if(o("onRightArrow"))return;break;case V2.DOWN:if(o("onDownArrow"))return;break;case V2.LEFT:if(o("onLeftArrow"))return;break;case V2.SPACE:r5&&n5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!$2(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return H2.redo(t);case"delete":return Q2(t);case"delete-word":return G2(t);case"backspace":return J2(t);case"backspace-word":return q2(t);case"backspace-to-start-of-line":return W2(t,n);case"split-block":return Z2(t);case"transpose-characters":return e5(t);case"move-selection-to-start-of-block":return X2(t);case"move-selection-to-end-of-block":return Y2(t);case"secondary-cut":return U2.cut(t);case"secondary-paste":return U2.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else t5(t,r,e.update);else if(n===V2.SPACE&&r5&&n5(t)){var s=z2.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(H2.push(r,s,"insert-characters"))}};var i5=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}(),a5=i5,s5=uW,c5=IY.isBrowser("IE <= 9");var u5=function(e){var t,n=null;return!c5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?s5(!1,"Missing doc.documentElement"):s5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},l5=BY;var f5=function(e){return!(!e||!e.ownerDocument)&&(l5(e)&&"A"===e.nodeName)},p5=BY;var d5,h5=function(e){return!(!e||!e.ownerDocument)&&(p5(e)&&"IMG"===e.nodeName)};function g5(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){y5(e,t,n[t])}))}return e}function y5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v5=x$,m5=L$,b5=J$,w5=tY,x5=nG,_5=a5,C5=JZ,O5=bW,S5=u5,k5=iG,E5=u$,j5=E5.List,A5=E5.Map,T5=E5.OrderedSet,P5=f5,M5=aJ,D5=iX,R5=h5,N5=k5("draft_tree_data_support"),I5=" ",L5=new RegExp("\r","g"),B5=new RegExp("\n","g"),F5=new RegExp("^\n","g"),z5=new RegExp(" ","g"),H5=new RegExp(" ?","g"),V5=new RegExp("​?","g"),U5=["bold","bolder","500","600","700","800","900"],K5=["light","lighter","normal","100","200","300","400"],$5=["className","href","rel","target","title"],W5=["alt","className","height","src","width"],q5=(y5(d5={},C5("public/DraftStyleDefault/depth0"),0),y5(d5,C5("public/DraftStyleDefault/depth1"),1),y5(d5,C5("public/DraftStyleDefault/depth2"),2),y5(d5,C5("public/DraftStyleDefault/depth3"),3),y5(d5,C5("public/DraftStyleDefault/depth4"),4),d5),G5=A5({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Z5=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)}))})),A5(t)},Y5=function(e){if(D5(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},X5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(q5).some((function(n){e.classList.contains(n)&&(t=q5[n])})),t},J5=function(e){if(!P5(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 _5(t.href);return!0}catch(e){return!1}},Q5=function(e){if(!R5(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},e3=function(e,t){if(!D5(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){U5.indexOf(r)>=0?e.add("BOLD"):K5.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"))}))},t3=function(e){return"ul"===e||"ol"===e},n3=function(){function e(e,t){y5(this,"characterList",j5()),y5(this,"currentBlockType","unstyled"),y5(this,"currentDepth",0),y5(this,"currentEntity",null),y5(this,"currentText",""),y5(this,"wrapper",null),y5(this,"blockConfigs",[]),y5(this,"contentBlocks",[]),y5(this,"entityMap",x5),y5(this,"blockTypeMap",void 0),y5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=j5(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=x5,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],T5())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(N5?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=g5({key:e.key||O5(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:j5(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=j5(),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||t3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;t3(i)&&(this.wrapper=i,t3(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(Q5(o))this._addImgNode(o,t);else if(J5(o))this._addAnchorNode(o,n,t);else{var u=t;G5.has(i)&&(u=u.add(G5.get(i))),u=e3(o,u);var l=Y5(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,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!N5&&D5(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=X5(d,this.currentDepth)}var h=O5(),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=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=v5.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=j5()):(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(F5,"")).replace(B5,I5)),this._appendText(n,t)},t._addBreakNode=function(e,t){M5(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(R5(e)){var n=e,r={};W5.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),k5("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(P5(e)){var r=e,o={};$5.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new _5(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=j5(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new b5(g5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return j5(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 m5(g5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=j5(),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}(),r3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:w5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:S5)(e=e.trim().replace(L5,"").replace(z5,I5).replace(H5,"").replace(V5,""));if(!n)return null;var r=Z5(t);return new n3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function o3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i3=L$,a3=J$,s3=r3,c3=bW,u3=u5,l3=iG,f3=u$,p3=sG,d3=f3.List,h3=f3.Repeat,g3=l3("draft_tree_data_support"),y3=g3?a3:i3,v3={processHTML:function(e,t){return s3(e,u3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=p3(r);var i=c3(),a={key:i,type:n,text:r,characterList:d3(h3(t,r.length))};if(g3&&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){o3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new y3(a)),e}),[])}};var m3=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})},b3=Aq,w3=CZ,x3=m3,_3=tZ,C3={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 C3.toggleInlineStyle(e,"BOLD");case"italic":return C3.toggleInlineStyle(e,"ITALIC");case"underline":return C3.toggleInlineStyle(e,"UNDERLINE");case"code":return C3.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return C3.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return C3.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=b3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=w3.push(e,t,"insert-characters");return w3.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 w3.push(e,a,"remove-range")}var s=C3.tryToRemoveBlockStyle(e);return s?w3.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=b3.removeRange(n,a,"forward");return s!==n?w3.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=x3(i,r,e.shiftKey?-1:1,n);return w3.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=_3(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 w3.push(e,b3.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?C3.toggleBlockType(e,"code-block"):C3.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return w3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?b3.removeInlineStyle(i,n,t):b3.applyInlineStyle(i,n,t),w3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=b3.applyEntity(e.getCurrentContent(),t,n);return w3.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 b3.setBlockType(o,t,"unstyled")}return null}},O3=C3,S3=/\r\n?|\n/g;var k3=f$,E3=x$,j3=JQ,A3=Aq,T3=v3,P3=CZ,M3=O3,D3=PX,R3=r1,N3=o1,I3=function(e){return e.split(S3)};function L3(e,t,n){var r=A3.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return P3.push(e,r.set("entityMap",n),"insert-fragment")}var B3=function(e,t){t.preventDefault();var n=new j3(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&N3(e.props.handlePastedFiles(r)))return;return void R3(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=I3(t),i=E3.create({style:n.getCurrentInlineStyle(),entity:D3(n.getCurrentContent(),n.getSelection())}),a=M3.getCurrentBlockType(n),s=T3.processText(r,i,a),c=k3.createFromArray(s),u=A3.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(P3.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||!N3(e.props.handlePastedText(a,s,c))){if(a&&(i=I3(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(L3(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(L3(e._latestEditorState,f));if(s){var p=T3.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=k3.createFromArray(d);return void e.update(L3(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=E3.create({style:c.getCurrentInlineStyle(),entity:D3(c.getCurrentContent(),c.getSelection())}),v=M3.getCurrentBlockType(c),m=T3.processText(i,y,v),b=k3.createFromArray(m);e.update(L3(e._latestEditorState,b))}}},F3=IY,z3=M1,H3=I1,V3=B1,U3=V1,K3=Z1,$3=Y1,W3=X1,q3=e0,G3=I0,Z3=o5,Y3=B3,X3=EX,J3=F3.isBrowser("Chrome"),Q3=F3.isBrowser("Firefox"),e4=J3||Q3?X3:function(e){},t4={onBeforeInput:z3,onBlur:H3,onCompositionStart:V3,onCopy:U3,onCut:K3,onDragOver:$3,onDragStart:W3,onFocus:q3,onInput:G3,onKeyDown:Z3,onPaste:Y3,onSelect:X3,onMouseUp:e4,onKeyUp:e4},n4=r.unstable_flushControlled;var r4=t,o4=JZ,i4=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=o4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return r4.createElement("div",{className:t},r4.createElement("div",{className:o4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(r4.Component),a4=i4,s4=V0,c4=rX,u4=IY,l4=u4.isPlatform("Mac OS X"),f4=l4&&u4.isBrowser("Firefox < 29"),p4=s4.hasCommandModifier,d4=s4.isCtrlKeyCommand;function h4(e){return l4&&e.altKey||d4(e)}var g4=function(e){switch(e.keyCode){case 66:return p4(e)?"bold":null;case 68:return d4(e)?"delete":null;case 72:return d4(e)?"backspace":null;case 73:return p4(e)?"italic":null;case 74:return p4(e)?"code":null;case 75:return l4&&d4(e)?"secondary-cut":null;case 77:case 79:return d4(e)?"split-block":null;case 84:return l4&&d4(e)?"transpose-characters":null;case 85:return p4(e)?"underline":null;case 87:return l4&&d4(e)?"backspace-word":null;case 89:return d4(e)?l4?"secondary-paste":"redo":null;case 90:return function(e){return p4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case c4.RETURN:return"split-block";case c4.DELETE:return function(e){return!l4&&e.shiftKey?null:h4(e)?"delete-word":"delete"}(e);case c4.BACKSPACE:return function(e){return p4(e)&&l4?"backspace-to-start-of-line":h4(e)?"backspace-word":"backspace"}(e);case c4.LEFT:return f4&&p4(e)?"move-selection-to-start-of-block":null;case c4.RIGHT:return f4&&p4(e)?"move-selection-to-end-of-block":null;default:return null}},y4=jg;function v4(){return v4=y4||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},v4.apply(this,arguments)}function m4(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){w4(e,t,n[t])}))}return e}function b4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function x4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var _4=tY,C4=nY,O4=ZX,S4=IQ,k4=m1,E4=t4,j4=n4,A4=a4,T4=CZ,P4=t,M4=FJ,D4=YJ,R4=JZ,N4=bW,I4=g4,L4=rQ,B4=iG,F4=uW,z4=iX,H4=tZ,V4=IY.isBrowser("IE"),U4=!V4,K4={edit:E4,composite:O4,drag:k4,cut:null,render:null},$4=!1,W4=function(e){function t(){return e.apply(this,arguments)||this}x4(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}(P4.Component),q4=function(e){function t(t){var n;return w4(b4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),w4(b4(n),"_clipboard",void 0),w4(b4(n),"_handler",void 0),w4(b4(n),"_dragCount",void 0),w4(b4(n),"_internalDrag",void 0),w4(b4(n),"_editorKey",void 0),w4(b4(n),"_placeholderAccessibilityID",void 0),w4(b4(n),"_latestEditorState",void 0),w4(b4(n),"_latestCommittedEditorState",void 0),w4(b4(n),"_pendingStateFromBeforeInput",void 0),w4(b4(n),"_onBeforeInput",void 0),w4(b4(n),"_onBlur",void 0),w4(b4(n),"_onCharacterData",void 0),w4(b4(n),"_onCompositionEnd",void 0),w4(b4(n),"_onCompositionStart",void 0),w4(b4(n),"_onCopy",void 0),w4(b4(n),"_onCut",void 0),w4(b4(n),"_onDragEnd",void 0),w4(b4(n),"_onDragOver",void 0),w4(b4(n),"_onDragStart",void 0),w4(b4(n),"_onDrop",void 0),w4(b4(n),"_onInput",void 0),w4(b4(n),"_onFocus",void 0),w4(b4(n),"_onKeyDown",void 0),w4(b4(n),"_onKeyPress",void 0),w4(b4(n),"_onKeyUp",void 0),w4(b4(n),"_onMouseDown",void 0),w4(b4(n),"_onMouseUp",void 0),w4(b4(n),"_onPaste",void 0),w4(b4(n),"_onSelect",void 0),w4(b4(n),"editor",void 0),w4(b4(n),"editorContainer",void 0),w4(b4(n),"focus",void 0),w4(b4(n),"blur",void 0),w4(b4(n),"setMode",void 0),w4(b4(n),"exitCurrentMode",void 0),w4(b4(n),"restoreEditorDOM",void 0),w4(b4(n),"setClipboard",void 0),w4(b4(n),"getClipboard",void 0),w4(b4(n),"getEditorKey",void 0),w4(b4(n),"update",void 0),w4(b4(n),"onDragEnter",void 0),w4(b4(n),"onDragLeave",void 0),w4(b4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),w4(b4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=D4.getScrollParent(o),a=e||L4(i),s=a.x,c=a.y;z4(o)||("production"!==process.env.NODE_ENV?F4(!1,"editorNode is not an HTMLElement"):F4(!1)),o.focus(),i===window?window.scrollTo(s,c):M4.setTop(i,c),r||n.update(T4.forceSelection(t,t.getSelection()))}})),w4(b4(n),"blur",(function(){var e=n.editor;e&&(z4(e)||("production"!==process.env.NODE_ENV?F4(!1,"editorNode is not an HTMLElement"):F4(!1)),e.blur())})),w4(b4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=m4({},K4.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=m4({},K4,{edit:a});n._handler=s[e]})),w4(b4(n),"exitCurrentMode",(function(){n.setMode("edit")})),w4(b4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),w4(b4(n),"setClipboard",(function(e){n._clipboard=e})),w4(b4(n),"getClipboard",(function(){return n._clipboard})),w4(b4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),w4(b4(n),"onDragEnter",(function(){n._dragCount++})),w4(b4(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||N4(),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}x4(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&&(j4?j4((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:H4(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return P4.createElement(A4,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=R4({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:m4({},C4,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return P4.createElement("div",{className:f},this._renderPlaceholder(),P4.createElement("div",{className:R4("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},P4.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:d,"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:R4({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:p,spellCheck:U4&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},P4.createElement(W4,{editor:this,editorState:a}),P4.createElement(S4,v4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!$4&&B4("draft_ods_enabled")&&($4=!0),this.setMode("edit"),V4&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(P4.Component);w4(q4,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:_4,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:I4,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var G4=q4,Z4={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},Y4=Z4,X4=p0.strlen;var J4=p0,Q4=_$,e9=function(e,t){return e===t},t9=function(e){return!!e},n9=[];var r9=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 Q4(o,e9,t9,(function(t,o){var i=e.getText();r.push({offset:J4.strlen(i.slice(0,t)),length:J4.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(n9,n.toJS())};function o9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i9=L$,a9=J$,s9=Z4,c9=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:X4(i.slice(0,r)),length:X4(i.slice(r,o)),key:Number(t[Y4.stringify(a)])})})),n},u9=r9,l9=uW,f9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:u9(e),entityRanges:c9(e,t),data:e.getData().toObject()}},p9=function(e,t,n,r){if(e instanceof i9)n.push(f9(e,t));else{e instanceof a9||("production"!==process.env.NODE_ENV?l9(!1,"block is not a BlockNode"):l9(!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){o9(e,t,n[t])}))}return e}({},f9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},d9=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=s9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),p9(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(s9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function h9(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){g9(e,t,n[t])}))}return e}function g9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y9=bW,v9=uW,m9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},b9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?v9(!1,"Invalid raw state"):v9(!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?v9(!1,"Invalid tree raw block"):v9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=h9({},e);m9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?h9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,h9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=m9(e),o=e.depth||0,i=h9({},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:y9(),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)})),h9({},e,{blocks:t})}},w9=y0,x9={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&&w9(!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&&w9(!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&&w9(!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&&w9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&w9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&w9(!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&&w9(!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&&w9(!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&&w9(!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)}},_9=x9,C9=x$,O9=u$.List;var S9=function(e,t){var n=e.map((function(e,n){var r=t[n];return C9.create({style:e,entity:r})}));return O9(n)},k9=p0.substr;var E9=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=k9(e,0,t.offset).length,o=r+k9(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},j9=p0,A9=u$.OrderedSet,T9=j9.substr,P9=A9();var M9=function(e,t){var n=Array(e.length).fill(P9);return t&&t.forEach((function(t){for(var r=T9(e,0,t.offset).length,o=r+T9(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function D9(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){R9(e,t,n[t])}))}return e}function R9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N9=L$,I9=J$,L9=AG,B9=nG,F9=b9,z9=_9,H9=oG,V9=S9,U9=E9,K9=M9,$9=bW,W9=u$,q9=uW,G9=iG("draft_tree_data_support"),Z9=W9.List,Y9=W9.Map,X9=W9.OrderedMap,J9=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||$9(),data:Y9(o),characterList:Q9(e,t)}},Q9=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return V9(K9(n,o||[]),U9(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return D9({},e,{key:t[e.key]})}))))},e6=function(e){return D9({},e,{key:e.key||$9()})},t6=function(e,t,n){var r=t.map((function(e){return D9({},e,{parentRef:n})}));return e.concat(r.reverse())},n6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=G9&&!n?F9.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!G9)return function(e,t){return X9(e.map((function(e){var n=new N9(J9(e,t));return[n.getKey(),n]})))}(n?F9.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(e6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?q9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):q9(!1));var i=r.children.map(e6),a=new I9(D9({},J9(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Z9(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=t6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?q9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):q9(!1));break}var d=c.children.map(e6),h=new I9(D9({},J9(c,t),{parent:u.getKey(),children:Z9(d.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=t6(s,d,h)}return n}),X9())}(r,t);return"production"!==process.env.NODE_ENV&&(z9.isValidTree(o)||("production"!==process.env.NODE_ENV?q9(!1,"Should be a valid tree"):q9(!1))),o},r6=X0;var o6=function(e){var t=r6(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}},i6=o6;var a6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=i6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},s6={Editor:G4,EditorBlock:NQ,EditorState:CZ,CompositeDecorator:YZ,Entity:nG,EntityInstance:Wq,BlockMapBuilder:f$,CharacterMetadata:x$,ContentBlock:L$,ContentState:AG,RawDraftContentState:{},SelectionState:oG,AtomicBlockUtils:qZ,KeyBindingUtil:V0,Modifier:Aq,RichUtils:O3,DefaultDraftBlockRenderMap:tY,DefaultDraftInlineStyle:nY,convertFromHTML:r3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?q9(!1,"invalid RawDraftContentState"):q9(!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]=B9.__create(o,i,a||{})})),n}(e),n=n6(e,t),r=n.isEmpty()?new H9:H9.createEmpty(n.first().getKey());return new L9({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:d9,genKey:bW,getDefaultKeyBinding:g4,getVisibleSelectionRect:a6};const c6="FOUND_FIELD",u6="NOT_FOUND",l6="IMMUTABLE",f6=X.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),p6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},d6=new s6.CompositeDecorator([{strategy:(e,t,n)=>p6(e,t,n,c6),component:({children:t})=>e.jsx(f6,{children:t})},{strategy:(e,t,n)=>p6(e,t,n,u6),component:({children:t})=>e.jsx(f6,Object.assign({error:!0},{children:t}))}]),h6=(e,t,n)=>{const r=ct.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}},g6=(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=ct.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=h6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?c6:u6,mutability:l6,data:{id:i}}}o.text+=a}return s6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return s6.EditorState.createWithContent(r,d6)},y6=(e,t=!0)=>{const n=e.getCurrentContent(),r=s6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ct.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},v6=e=>{const t=y6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},m6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new s6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return s6.EditorState.forceSelection(e,o)},b6=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:O,backgroundColor:S,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>g6(o,l,m))),{focused:I,handleFocus:L,handleBlur:B}=Kr(c,u),[F,z]=t.useState(!1),H=t.useRef(null),V=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,$=e=>{N(e);const t=(e=>v6(e).some((e=>e.type===u6)))(e);z(t);const n=y6(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=h6(e,t,r),u=c?c6:u6,l=i.createEntity(u,l6,{id:o}).getLastCreatedEntityKey(),f=s6.Modifier.insertText(i,a,s,void 0,l),p=s6.EditorState.push(n,f,"insert-characters");return s6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);$(t)},q=()=>{(null==H?void 0:H.current)&&H.current.focus();const e=m6(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:q})));t.useEffect((()=>{y6(R)!==o&&(e=>{const t=R.getSelection(),n=g6(e,l,m),r=m6(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{V.current=l}),[]),t.useEffect((()=>{const{current:e}=V,t=ct.isEqual(e,l),n=v6(R);if(!t&&n.length>0){V.current=l;const e=g6(o,l,m);$(e)}}),[l]);return e.jsx(w6,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:$r(o),invalid:F,textOnly:E,borderRadius:O,backgroundColor:S,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M,focused:I,disabled:C,hasLabel:!!_,hideEditor:!$r(o)&&!!_&&!I},{children:e.jsxs(qr,Object.assign({readOnly:v},{children:[_&&e.jsx(Gr,Object.assign({filled:$r(o),focused:I,disabled:C},{children:_})),e.jsx(s6.Editor,Object.assign({ref:H,editorState:R,onChange:$,placeholder:f,readOnly:v,handleReturn:e=>{const t=s6.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?$(t):s(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=s6.convertFromRaw({blocks:[o],entityMap:{}}),a=s6.EditorState.createWithContent(i,d6).getCurrentContent().getBlockMap(),s=s6.Modifier.replaceWithFragment(n,r,a);return s6.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),w6=X(Wr)((({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}}})),x6=X.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"}),on,an);x6.Item=X.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})),on,an);const _6=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(DK,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(NK,{children:r}),e.jsx(RK,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(un,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},C6=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(DK,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(NK,{children:o}),e.jsx(RK,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(un,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},O6=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(S6,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Yr(r,{marginRight:4,size:"small"}),n,o&&Yr(o,{marginLeft:4,size:"small"})]}))},S6=X.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}}),an),k6=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(E6,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};k6.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(j6,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},k6.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(A6,Object.assign({inline:n,align:r,disabled:o},{children:t})),k6.Input=Xr,k6.Dropdown=lo,k6.Radio=_6,k6.Toggle=C6,k6.Checkbox=IK,k6.Label=O6;const E6=X(x6)({boxSizing:"border-box"}),j6=X(x6)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),A6=X.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"})),T6=X.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}))),P6=X.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),M6=X.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%)`}}))),D6=X.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),R6=X.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"}))),N6=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(I6,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Br(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),I6=X.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}))),L6=X.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}))),B6=X.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),F6=X.div({marginLeft:"auto",marginRight:8});N6.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(L6,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),N6.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Br(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(B6,Object.assign({backgroundColor:p},{children:[e.jsxs(L6,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(F6,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(un,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const z6=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=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||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(U6,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(un,{name:h,style:{marginRight:10},color:g}),e.jsx(K6,{children:r||p}),o&&e.jsx(un,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},H6=X.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),V6=X.div((({theme:e})=>({fontWeight:e.font.weight.default})));z6.Header=H6,z6.Body=V6;const U6=X.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})),an),K6=X.div({width:"100%"}),$6=X.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),W6=X.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),q6=X.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),G6=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},j=Br(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(X6,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(Z6,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(Y6,Object.assign({inline:d},{children:e.jsx(un,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};G6.Header=X.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),G6.Text=X.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),G6.Body=X.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),an),G6.Footer=X.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})),an);const Z6=X.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"})`}),on),Y6=X.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),X6=X.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)"}))),J6=X.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),Q6=X.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"}))),e7=X.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),t7=X.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}:{})),n7=X.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}))),r7=X.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),o7=X.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),i7=X.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),a7=e=>e?+e:0,s7=X.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),an),c7=X.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`}}))),u7=X(c7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),l7=X(c7)((({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}))),f7=X.span((({theme:e})=>({color:e.scale6}))),p7=({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,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(d7,Object.assign({size:n},l,{children:[e.jsx(h7,{cx:h,cy:h,r:f,thickness:r}),e.jsx(g7,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},d7=X.svg((({size:e})=>({display:"block",width:e,height:e})),an),h7=X.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),g7=X(h7)((({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"}))),y7=X.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),an),v7=X.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 m7={};!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 p(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 d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function O(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 S(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:"+_(e)+";font-weight:"+e.f+"00;"}function P(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 M(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)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function N(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function 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 L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=N()&&I(e,n,i)),t?o()-e.A>=e.w?N()&&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(){L(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}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(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")):S(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(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)S(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],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=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;d=z?new P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(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){U(e,i,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var 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;d(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++)p(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 G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new 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 G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,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=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(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?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(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 K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return m7},set exports(e){m7=e}});var b7=m7;const w7=X.div(rn),x7=X.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),an),_7=X.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),C7=X.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),O7=X.div({display:"flex",flexDirection:"column"}),S7=X.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),k7=X.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),E7=X.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"}}})),j7=X.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),A7=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),T7=t.createContext({}),P7=(t,n)=>{const r="th"===n?M7:D7;return Br(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},M7=X.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left",overflow:"hidden"}))),D7=X.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%",overflow:"hidden"}))),R7=X(x6)({alignItems:"center",padding:"8px 24px"},on),N7=X.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:"auto"}))),I7=X(x6)((({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"}}),on),L7=X.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),B7=X(L7)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),on),F7=X(L7)({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}}))),z7=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ct.orderBy(i,t,n)}ct.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(T7.Provider,Object.assign({value:d},{children:e.jsx(H7,Object.assign({},s,{children:p}))}))};z7.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(T7),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(R7,Object.assign({as:"tr",columns:c},i,{children:P7(r,"th")}))})},z7.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:p}=t.useContext(T7),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("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(F7,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(un,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},z7.Body=n=>{var{children:r,height:o,maxHeight:i}=n,s=a(n,["children","height","maxHeight"]);const{parentColumns:c}=t.useContext(T7);return e.jsx(N7,Object.assign({height:o,maxHeight:i},s,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:c}):null))}))},z7.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(T7),u=o||c||"equal";return e.jsx(I7,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:P7(r,"td")}))},z7.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(B7,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const H7=X.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),on,an),V7=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},O=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(W7,Object.assign({width:f,onMouseLeave:O,onMouseOver:O,onClick:O,style:a,onFocus:O},{children:[e.jsx($7,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},U7=X.div((({theme:e})=>({color:e.tooltip.color.default}))),K7=X.div((({theme:e})=>({color:e.tooltip.color.subtext}))),$7=X.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),W7=X.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));V7.Header=U7,V7.Body=K7;const q7="#0074F4",G7="#FF6068",Z7="#FF9900",Y7="#F0BB00",X7="#00C242",J7="#001D32",Q7="#FFFFFF",e8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:q7,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:cr(.95,q7),brandTint1:cr(.9,q7),brandTint2:cr(.8,q7),brandTint3:cr(.7,q7),brandTint4:cr(.6,q7),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:G7,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:cr(.95,G7),errorTint1:cr(.9,G7),errorTint2:cr(.8,G7),warning:Z7,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:cr(.95,Z7),warningTint1:cr(.9,Z7),warningTint2:cr(.8,Z7),alert:Y7,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:cr(.95,Y7),alertTint1:cr(.9,Y7),alertTint2:cr(.8,Y7),success:X7,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:cr(.95,X7),successTint1:cr(.9,X7),successTint2:cr(.8,X7),grayscale0:cr(.95,J7),grayscale1:cr(.9,J7),grayscale2:cr(.8,J7),grayscale3:cr(.7,J7),grayscale4:cr(.6,J7),grayscale5:cr(.5,J7),grayscale6:cr(.4,J7),grayscale7:cr(.3,J7),grayscale8:cr(.2,J7),grayscale9:cr(.1,J7),grayscale10:J7,contrast0:cr(.95,Q7),contrast1:cr(.9,Q7),contrast2:cr(.8,Q7),contrast3:cr(.7,Q7),contrast4:cr(.6,Q7),contrast5:cr(.5,Q7),contrast6:cr(.4,Q7),contrast7:cr(.3,Q7),contrast8:cr(.2,Q7),contrast9:cr(.1,Q7),contrast10:Q7};var t8={color:e8,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:n8}=t8;var r8={small:{height:28,iconSize:18,font:n8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:n8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:n8.size.lg,padding:14,iconOnlyPadding:6}};const o8="#FFFFFF",i8=e8.grayscale0,a8=e8.grayscale1,s8=e8.grayscale2,c8=e8.grayscale3,u8=e8.grayscale4,l8=e8.grayscale5,f8=e8.grayscale6,p8=e8.grayscale7,d8=e8.grayscale8,h8=e8.grayscale9,g8=e8.grayscale10,y8=Object.assign(Object.assign({},t8),{name:"light",accent:e8.brand,accentShade:e8.brandShade1,background0:o8,background1:o8,background2:o8,background3:o8,background4:o8,background5:o8,scale0:i8,scale1:a8,scale2:s8,scale3:c8,scale4:u8,scale5:l8,scale6:f8,scale7:p8,scale8:d8,scale9:h8,scale10:g8,button:Object.assign(Object.assign({},r8),{primary:{color:{default:o8,hover:o8,active:o8},outlineColor:{default:g8,hover:g8,active:g8},background:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},outlineBackground:{default:e8.brandTint0,hover:e8.brandTint1,active:e8.brandTint2},border:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},divider:s8},secondary:{color:{default:g8,hover:g8,active:g8},outlineColor:{default:g8,hover:g8,active:g8},background:{default:a8,hover:s8,active:c8},outlineBackground:{default:a8,hover:s8,active:c8},border:{default:s8,hover:s8,active:s8},divider:s8},positive:{color:{default:o8,hover:o8,active:o8},outlineColor:{default:g8,hover:g8,active:g8},background:{default:e8.success,hover:e8.successShade1,active:e8.successShade2},outlineBackground:{default:e8.successTint0,hover:e8.successTint1,active:e8.successTint2},border:{default:e8.success,hover:e8.successShade1,active:e8.successShade2},divider:s8},negative:{color:{default:o8,hover:o8,active:o8},outlineColor:{default:g8,hover:g8,active:g8},background:{default:e8.error,hover:e8.errorShade1,active:e8.errorShade2},outlineBackground:{default:e8.errorTint0,hover:e8.errorTint1,active:e8.errorTint2},border:{default:e8.error,hover:e8.errorShade1,active:e8.errorShade2},divider:s8},caution:{color:{default:o8,hover:o8,active:o8},outlineColor:{default:g8,hover:g8,active:g8},background:{default:e8.warning,hover:e8.warningShade1,active:e8.warningShade2},outlineBackground:{default:e8.warningTint0,hover:e8.warningTint1,active:e8.warningTint2},border:{default:e8.warning,hover:e8.warningShade1,active:e8.warningShade2},divider:s8},subtle:{color:{default:e8.brand,hover:e8.brand,active:e8.brand},outlineColor:{default:e8.brand,hover:e8.brand,active:e8.brand},secondaryColor:{default:g8,hover:g8,active:g8},positiveColor:{default:e8.success,hover:e8.success,active:e8.success},negativeColor:{default:e8.error,hover:e8.error,active:e8.error},cautionColor:{default:e8.warning,hover:e8.warning,active:e8.warning},background:{default:"transparent",hover:a8,active:s8},outlineBackground:{default:"transparent",hover:a8,active:s8},border:{default:"transparent",hover:s8,active:s8},divider:s8},link:{color:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},outlineColor:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},secondaryColor:{default:d8,hover:h8,active:g8},positiveColor:{default:e8.success,hover:e8.successShade1,active:e8.successShade2},negativeColor:{default:e8.error,hover:e8.errorShade1,active:e8.errorShade2},cautionColor:{default:e8.warning,hover:e8.warningShade1,active:e8.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:u8,hover:u8,active:u8},outlineColor:{default:u8,hover:u8,active:u8},background:{default:a8,hover:a8,active:a8},outlineBackground:{default:i8,hover:i8,active:i8},border:{default:a8,hover:a8,active:a8},divider:a8},color:{default:o8}}),calendar:{background:{container:e8.contrast10,hover:a8,active:e8.brand,activeHover:e8.brandShade1},color:{disabled:u8,default:g8,active:e8.contrast10,current:e8.brand,outside:f8,weekday:d8,monthYear:d8,iconDefault:u8,iconHover:g8}},defaultBorder:`1px solid ${a8}`,formControl:{color:{default:d8,hover:g8,active:e8.brand,activeHover:e8.brandShade1,disabled:u8}},input:{borderRadius:4,background:{default:i8,hover:a8,focused:a8,disabled:i8},color:{default:g8,disabled:u8,placeholder:f8,description:f8,descriptionError:e8.error},borderColor:{default:f8,hover:d8,focused:e8.brand,disabled:u8,error:e8.error},labelColor:{default:d8,hover:d8,filled:f8,focused:e8.brand,disabled:u8}},menu:{background:o8},menuItem:{borderColor:e8.brand,background:{active:i8,hover:a8,inactive:"transparent"},color:{active:g8,hover:g8,inactive:f8}},modal:{background:e8.contrast10,color:{header:g8,body:f8}},options:{background:e8.contrast10},optionItem:{background:{active:a8,inactive:"transparent"},color:{active:g8,inactive:g8,accent:e8.brand}},table:{color:{header:f8,body:g8},borderColor:a8},toast:{color:g8,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:d8,info:e8.brand,success:e8.success,warning:e8.warning,error:e8.error}},toggle:{slider:e8.contrast10},tooltip:{background:"#FFF",color:{default:g8,subtext:f8}}}),v8=e8.contrast0,m8=e8.contrast1,b8=e8.contrast2,w8=e8.contrast3,x8=e8.contrast4,_8=e8.contrast5,C8=e8.contrast6,O8=e8.contrast7,S8=e8.contrast8,k8=e8.contrast9,E8=e8.contrast10,j8=e8.brandDark,A8={light:y8,dark:Object.assign(Object.assign({},t8),{name:"dark",accent:j8,accentShade:e8.brandDarkShade1,background0:e8.brandBackground0,background1:e8.brandBackground1,background2:e8.brandBackground2,background3:e8.brandBackground3,background4:e8.brandBackground4,background5:e8.brandBackground5,scale0:v8,scale1:m8,scale2:b8,scale3:w8,scale4:x8,scale5:_8,scale6:C8,scale7:O8,scale8:S8,scale9:k8,scale10:E8,button:Object.assign(Object.assign({},r8),{primary:{color:{default:E8,hover:E8,active:E8},outlineColor:{default:E8,hover:E8,active:E8},background:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},outlineBackground:{default:e8.brandTint0,hover:e8.brandTint1,active:e8.brandTint2},border:{default:e8.brand,hover:e8.brandShade1,active:e8.brandShade2},divider:b8},secondary:{color:{default:E8,hover:E8,active:E8},outlineColor:{default:E8,hover:E8,active:E8},background:{default:m8,hover:b8,active:w8},outlineBackground:{default:m8,hover:b8,active:w8},border:{default:b8,hover:b8,active:b8},divider:b8},positive:{color:{default:E8,hover:E8,active:E8},outlineColor:{default:E8,hover:E8,active:E8},background:{default:e8.success,hover:e8.successShade1,active:e8.successShade2},outlineBackground:{default:e8.successTint0,hover:e8.successTint1,active:e8.successTint2},border:{default:e8.success,hover:e8.successShade1,active:e8.successShade2},divider:b8},negative:{color:{default:E8,hover:E8,active:E8},outlineColor:{default:E8,hover:E8,active:E8},background:{default:e8.error,hover:e8.errorShade1,active:e8.errorShade2},outlineBackground:{default:e8.errorTint0,hover:e8.errorTint1,active:e8.errorTint2},border:{default:e8.error,hover:e8.errorShade1,active:e8.errorShade2},divider:b8},caution:{color:{default:E8,hover:E8,active:E8},outlineColor:{default:E8,hover:E8,active:E8},background:{default:e8.warning,hover:e8.warningShade1,active:e8.warningShade2},outlineBackground:{default:e8.warningTint0,hover:e8.warningTint1,active:e8.warningTint2},border:{default:e8.warning,hover:e8.warningShade1,active:e8.warningShade2},divider:b8},subtle:{color:{default:e8.brand,hover:e8.brand,active:e8.brand},outlineColor:{default:e8.brand,hover:e8.brand,active:e8.brand},secondaryColor:{default:E8,hover:E8,active:E8},positiveColor:{default:e8.success,hover:e8.success,active:e8.success},negativeColor:{default:e8.error,hover:e8.error,active:e8.error},cautionColor:{default:e8.warning,hover:e8.warning,active:e8.warning},background:{default:"transparent",hover:m8,active:b8},outlineBackground:{default:"transparent",hover:m8,active:b8},border:{default:"transparent",hover:b8,active:b8},divider:b8},link:{color:{default:e8.brandShade2,hover:e8.brandShade1,active:e8.brand},outlineColor:{default:e8.brandShade2,hover:e8.brandShade1,active:e8.brand},secondaryColor:{default:S8,hover:k8,active:E8},positiveColor:{default:e8.successShade2,hover:e8.successShade1,active:e8.success},negativeColor:{default:e8.errorShade2,hover:e8.errorShade1,active:e8.error},cautionColor:{default:e8.warningShade2,hover:e8.warningShade1,active:e8.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:x8,hover:x8,active:x8},outlineColor:{default:x8,hover:x8,active:x8},background:{default:m8,hover:m8,active:m8},outlineBackground:{default:v8,hover:v8,active:v8},border:{default:m8,hover:m8,active:m8},divider:m8},color:{default:"#FFFFFF"}}),calendar:{background:{container:e8.brandBackground3,hover:m8,active:e8.brand,activeHover:e8.brandShade1},color:{disabled:x8,default:E8,active:E8,current:j8,outside:C8,weekday:S8,monthYear:S8,iconDefault:x8,iconHover:E8}},defaultBorder:`1px solid ${m8}`,formControl:{color:{default:S8,hover:E8,active:e8.brand,activeHover:e8.brandShade1,disabled:x8}},input:{borderRadius:4,background:{default:v8,hover:m8,focused:m8,disabled:v8},color:{default:E8,disabled:x8,placeholder:C8,description:C8,descriptionError:e8.error},borderColor:{default:C8,hover:S8,focused:j8,disabled:x8,error:e8.error},labelColor:{default:S8,hover:S8,filled:C8,focused:j8,disabled:x8}},menu:{background:e8.brandBackground2},menuItem:{borderColor:e8.brand,background:{active:v8,hover:m8,inactive:"transparent"},color:{active:E8,hover:E8,inactive:C8}},modal:{background:e8.brandBackground3,color:{header:E8,body:C8}},options:{background:e8.brandBackground3},optionItem:{background:{active:m8,inactive:"transparent"},color:{active:E8,inactive:E8,accent:j8}},table:{color:{header:C8,body:E8},borderColor:m8},toast:{color:E8,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:S8,info:e8.brand,success:e8.success,warning:e8.warning,error:e8.error}},toggle:{slider:e8.brandBackground0},tooltip:{background:e8.brandBackground4,color:{default:E8,subtext:C8}}})};exports.Accordion=pn,exports.Audio=To,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:s}=t,c=a(t,["data","legend","keys","stacked"]);const{scale2:u}=n.useTheme();return e.jsxs(LV,Object.assign({},c,{children:[e.jsx(IV,{}),e.jsx(mx,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(wB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r},{children:[e.jsx(EI,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(vL,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(mL,{stroke:u,tickMargin:4}),FV(),o&&e.jsx(lg,{content:e.jsx(zV,{})}),i.map((({key:t,color:n},r)=>e.jsx(fN,{barSize:16,dataKey:t,fill:n,stackId:s?"stack":void 0},`bar-${r+1}`)))]}))}))]}))},exports.Button=xo,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,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>xK(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=_K(("prev"===e?OK:JV)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?gK(OK(e,{months:1})):_K("future"===n?JV(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?OK:JV)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return WV(1,arguments),GV(e).getDay()}(_K(e,1)),n=hK(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(gK(f)),s=y(_K(f,1));let l=!1;const p=vK(e,n),d=yK(e,r);(i&&p||a&&d)&&(l=!0);const h=yK(e,o)||vK(e,s),g=iU(e,c),v=iU(e,u);return{date:dK(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(SK,Object.assign({noShadow:s},{children:[e.jsxs(kK,{children:[e.jsx(EK,{children:pK(f,"MMMM Y")}),e.jsxs(jK,{children:[e.jsx(un,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(un,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(PK,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(MK,{children:t[0]},t)))}),e.jsx(AK,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(TK,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),Er())))})]}))},exports.Checkbox=IK,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ct.range(r,o+1):ct.rangeRight(o,r+1)}return null})),n=t.flat();return ct.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(t$,{method:w,url:C}):e.jsx(qK,Object.assign({},FK,{code:C,language:b,theme:"dark"===d?YK:XK},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(i$,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(a$,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(s$,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(QK,{content:C})]}))}))},exports.DocTable=c$,exports.DraftEditor=b6,exports.Dropdown=lo,exports.Form=k6,exports.Grid=x6,exports.Icon=un,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>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(),d();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(T6,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(P6,Object.assign({onClick:r},{children:e.jsx(un,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(M6,Object.assign({id:"prev",onClick:d},{children:e.jsx(un,{name:"chevron-left",size:35,color:"white"})})),e.jsx(D6,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(M6,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(un,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=R6,exports.Input=Xr,exports.InputUtils=Zr,exports.Label=O6,exports.LineChart=r=>{var{data:o,legend:i,keys:s}=r,c=a(r,["data","legend","keys"]);const[u,l]=t.useState(s),{scale2:f}=n.useTheme();return e.jsxs(LV,Object.assign({},c,{children:[e.jsx(IV,{}),e.jsx(mx,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(bB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:o},{children:[e.jsx(EI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(vL,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(mL,{stroke:f,tickMargin:4}),FV(),i&&e.jsx(lg,{content:e.jsx(zV,{toggleData:s.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(UI,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},exports.Menu=N6,exports.Message=z6,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(q6,{children:[e.jsx(W6,{}),e.jsx($6,Object.assign({color:n,style:r},{children:t})),e.jsx(W6,{})]}),exports.Modal=G6,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:O,onTextChange:S,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,P]=t.useState(!1),[M,D]=t.useState(""),{color:R,font:N,input:I}=n.useTheme(),L=at((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},H=e=>{D(e),S&&S(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];O(t)}}),j&&!M,[c]);const V=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${Er()}`),[]),K=t.useMemo((()=>`multi-select-list-${Er()}`),[]),$=p?c.length>=p:void 0,W=v||!j||$,q=()=>{const t=e.jsxs(t7,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(n7,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(O6,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(un,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(lo,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:V,fontSize:N.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:I.color.placeholder,inputRef:B,onChange:z,onTextChange:H,onError:e=>P(e),disabled:W,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(J6,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(Q6,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(e7,Object.assign({collapse:F},{children:u})):q(),e.jsxs(r7,{children:[p&&!m&&e.jsx(i7,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(o7,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(un,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=NV,exports.Options=no,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(a7(o)||1),[p,d]=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,a7(s)||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);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(s7,Object.assign({width:c},u,{children:[e.jsx(u7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(un,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(u7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(un,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(f7,{children:"... "}):"",e.jsx(l7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(f7,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(u7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(un,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(u7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(un,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,s=a(t,["size","data","innerRadius","showWhenEmpty"]);const c=(null==r?void 0:r.length)>0,u=c?r:i?[{name:"1",value:1,color:"#999"}]:void 0,l=n/2-1;return e.jsx(LV,Object.assign({width:n,height:n},s,{children:e.jsxs(xB,Object.assign({width:n,height:n},{children:[e.jsx(kD,Object.assign({dataKey:"value",data:u,innerRadius:o,outerRadius:l},{children:null==u?void 0:u.map((t=>e.jsx(bx,{fill:t.color||"#999"},t.name)))})),c&&FV()]}))}))},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:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(p7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(y7,Object.assign({width:o,height:i||s},d,{children:e.jsx(v7,{color:n,width:h})}))},exports.Radio=_6,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,b7.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=Eo,exports.Spacer=w7,exports.Spinner=zr,exports.Table=z7,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=C6,exports.Tooltip=V7,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:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ct.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},O=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},S=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(j7,{children:t.header}),e.jsx(A7,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(x7,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(_7,{children:i}),e.jsxs(C7,{children:[!u&&e.jsxs(O7,{children:[k&&e.jsx(S7,{children:v.length>0&&!s&&e.jsx(xo,Object.assign({small:!0,outline:!0,onClick:()=>O("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(k7,{children:v.map((t=>e.jsxs(E7,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[S(t),e.jsx(un,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(O7,{children:[k&&!u&&e.jsx(S7,{children:b.length>0&&!c&&!u&&e.jsx(xo,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>O("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(k7,{children:b.map((t=>e.jsxs(E7,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[S(t),e.jsx(un,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=JK,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=pK(n,"EEEE"),l=pK(n,"MMM d"),f=pK(n,"MMM d, y"),p=pK(n,"h:mm aaa"),d=mK(n),h=function(e){return WV(1,arguments),GV(e).getTime()>Date.now()}(n),g=function(e){return WV(1,arguments),iU(e,Date.now())}(n),y=function(e){return WV(1,arguments),iU(e,bK(Date.now(),1))}(n),v=function(e){return WV(1,arguments),iU(e,ZV(Date.now(),1))}(n),m=dU(c,n),b=function(e,t,n){WV(2,arguments);var r=uU(e,t)/7;return pU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.marginProps=an,exports.paddingProps=on,exports.positionProps=sn,exports.theme=A8,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,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(G6,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(G6.Header,{children:n}),r&&e.jsx(G6.Text,{children:r}),s&&e.jsx(G6.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Xr,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(G6.Footer,{children:[e.jsx(xo,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(xo,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=nn,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ut,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=rn;
|
|
211
|
+
var FK=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};return r.hooks.run("before-tokenize",i),i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),o.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var o=new s;return c(o,o.head,e),a(e,o,t,o.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(o)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var o,i=0;o=n[i++];)o(t)}},Token:o};function o(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||"").length}function i(e,t,n,r){e.lastIndex=t;var o=e.exec(n);if(o&&r&&o[1]){var i=o[1].length;o.index+=i,o[0]=o[0].slice(i)}return o}function a(e,t,n,s,l,f){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var d=n[p];d=Array.isArray(d)?d:[d];for(var h=0;h<d.length;++h){if(f&&f.cause==p+","+h)return;var g=d[h],y=g.inside,v=!!g.lookbehind,m=!!g.greedy,b=g.alias;if(m&&!g.pattern.global){var w=g.pattern.toString().match(/[imsuy]*$/)[0];g.pattern=RegExp(g.pattern.source,w+"g")}for(var x=g.pattern||g,_=s.next,C=l;_!==t.tail&&!(f&&C>=f.reach);C+=_.value.length,_=_.next){var O=_.value;if(t.length>e.length)return;if(!(O instanceof o)){var S,k=1;if(m){if(!(S=i(x,C,e,v))||S.index>=e.length)break;var E=S.index,j=S.index+S[0].length,A=C;for(A+=_.value.length;E>=A;)A+=(_=_.next).value.length;if(C=A-=_.value.length,_.value instanceof o)continue;for(var T=_;T!==t.tail&&(A<j||"string"==typeof T.value);T=T.next)k++,A+=T.value.length;k--,O=e.slice(C,A),S.index-=C}else if(!(S=i(x,0,O,v)))continue;E=S.index;var P=S[0],M=O.slice(0,E),D=O.slice(E+P.length),R=C+O.length;f&&R>f.reach&&(f.reach=R);var N=_.prev;if(M&&(N=c(t,N,M),C+=M.length),u(t,N,k),_=c(t,N,new o(p,y?r.tokenize(P,y):P,b,P)),D&&c(t,_,D),k>1){var I={cause:p+","+h,reach:R};a(e,t,n,_.prev,C,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}(),zK=FK;FK.default=FK,zK.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},zK.languages.markup.tag.inside["attr-value"].inside.entity=zK.languages.markup.entity,zK.languages.markup.doctype.inside["internal-subset"].inside=zK.languages.markup,zK.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&/,"&"))})),Object.defineProperty(zK.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:zK.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r["language-"+t]={pattern:/[\s\S]+/,inside:zK.languages[t]};var o={};o[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:r},zK.languages.insertBefore("markup","cdata",o)}}),Object.defineProperty(zK.languages.markup.tag,"addAttribute",{value:function(e,t){zK.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:zK.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),zK.languages.html=zK.languages.markup,zK.languages.mathml=zK.languages.markup,zK.languages.svg=zK.languages.markup,zK.languages.xml=zK.languages.extend("markup",{}),zK.languages.ssml=zK.languages.xml,zK.languages.atom=zK.languages.xml,zK.languages.rss=zK.languages.xml,function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},r={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:r},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:r},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:r.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:r.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var o=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],i=r.variable[1].inside,a=0;a<o.length;a++)i[o[a]]=e.languages.bash[o[a]];e.languages.shell=e.languages.bash}(zK),zK.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:/[{}[\];(),.:]/},zK.languages.c=zK.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|[?:~]|[-+*/%&|^!=<>]=?/}),zK.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),zK.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},zK.languages.c.string],char:zK.languages.c.char,comment:zK.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:zK.languages.c}}}}),zK.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 zK.languages.c.boolean,function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(zK),function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(zK),function(e){var t,n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/;e.languages.css.selector={pattern:e.languages.css.selector.pattern,lookbehind:!0,inside:t={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp("\\[(?:[^[\\]\"']|"+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},e.languages.css.atrule.inside["selector-function-argument"].inside=t,e.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var r={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},o={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};e.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:r,number:o,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:r,number:o})}(zK),zK.languages.javascript=zK.languages.extend("clike",{"class-name":[zK.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}|\?\?=?|\?\.?|[~:]/}),zK.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,zK.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:zK.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:zK.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:zK.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:zK.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:zK.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),zK.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:zK.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"}}),zK.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),zK.languages.markup&&(zK.languages.markup.tag.addInlined("script","javascript"),zK.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")),zK.languages.js=zK.languages.javascript,function(e){var t=/#(?!\{).+/,n={pattern:/#\{[^}]+\}/,alias:"variable"};e.languages.coffeescript=e.languages.extend("javascript",{comment:t,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:n}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),e.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:t,interpolation:n}}}),e.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:e.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:n}}]}),e.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete e.languages.coffeescript["template-string"],e.languages.coffee=e.languages.coffeescript}(zK),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}(zK),function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var r=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,o=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return r})),i=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+o+i+"(?:"+o+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+o+i+")(?:"+o+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(r),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+o+")"+i+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+o+"$"),inside:{"table-header":{pattern:RegExp(r),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,r=t.length;n<r;n++){var o=t[n];if("code"===o.type){var i=o.content[1],a=o.content[3];if(i&&a&&"code-language"===i.type&&"code-block"===a.type&&"string"==typeof i.content){var s=i.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),c="language-"+(s=(/[a-z][\w-]*/i.exec(s)||[""])[0].toLowerCase());a.alias?"string"==typeof a.alias?a.alias=[a.alias,c]:a.alias.push(c):a.alias=[c]}}else e(o.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",r=0,o=t.classes.length;r<o;r++){var i=t.classes[r],u=/language-(.+)/.exec(i);if(u){n=u[1];break}}var l,f=e.languages[n];if(f)t.content=e.highlight((l=t.content,l.replace(a,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),c(n);var r=s[t];return r||e}))),f,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var a=RegExp(e.languages.markup.tag.pattern.source,"gi"),s={amp:"&",lt:"<",gt:">",quot:'"'},c=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(zK),zK.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:zK.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+/},zK.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=p(/^\($/,/^\)$/);if(-1===i)continue;for(;n<i;n++){var a=l(0);"variable"===a.type&&(d(a,"variable-input"),o.push(a.content))}n=i+1}if(f(["punctuation","property-query"])&&"{"===l(0).content&&(n++,d(l(0),"property-mutation"),o.length>0)){var s=p(/^\{$/,/^\}$/);if(-1===s)continue;for(var c=n;c<s;c++){var u=t[c];"variable"===u.type&&o.indexOf(u.content)>=0&&d(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!1}return!0}function p(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 d(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}})),zK.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){var t=e.languages.javascript["template-string"],n=t.pattern.source,r=t.inside.interpolation,o=r.inside["interpolation-punctuation"],i=r.pattern.source;function a(t,r){if(e.languages[t])return{pattern:RegExp("((?:"+r+")\\s*)"+n),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:t}}}}function s(e,t){return"___"+t.toUpperCase()+"_"+e+"___"}function c(t,n,r){var o={code:t,grammar:n,language:r};return e.hooks.run("before-tokenize",o),o.tokens=e.tokenize(o.code,o.grammar),e.hooks.run("after-tokenize",o),o.tokens}function u(t){var n={};n["interpolation-punctuation"]=o;var i=e.tokenize(t,n);if(3===i.length){var a=[1,1];a.push.apply(a,c(i[1],e.languages.javascript,"javascript")),i.splice.apply(i,a)}return new e.Token("interpolation",i,r.alias,t)}function l(t,n,r){var o=e.tokenize(t,{interpolation:{pattern:RegExp(i),lookbehind:!0}}),a=0,l={},f=c(o.map((function(e){if("string"==typeof e)return e;for(var n,o=e.content;-1!==t.indexOf(n=s(a++,r)););return l[n]=o,n})).join(""),n,r),p=Object.keys(l);return a=0,function e(t){for(var n=0;n<t.length;n++){if(a>=p.length)return;var r=t[n];if("string"==typeof r||"string"==typeof r.content){var o=p[a],i="string"==typeof r?r:r.content,s=i.indexOf(o);if(-1!==s){++a;var c=i.substring(0,s),f=u(l[o]),d=i.substring(s+o.length),h=[];if(c&&h.push(c),h.push(f),d){var g=[d];e(g),h.push.apply(h,g)}"string"==typeof r?(t.splice.apply(t,[n,1].concat(h)),n+=h.length-1):r.content=h}}else{var y=r.content;Array.isArray(y)?e(y):e([y])}}}(f),new e.Token(r,f,"language-"+r,t)}e.languages.javascript["template-string"]=[a("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),a("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),a("svg",/\bsvg/.source),a("markdown",/\b(?:markdown|md)/.source),a("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),a("sql",/\bsql/.source),t].filter(Boolean);var f={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};function p(e){return"string"==typeof e?e:Array.isArray(e)?e.map(p).join(""):p(e.content)}e.hooks.add("after-tokenize",(function(t){t.language in f&&function t(n){for(var r=0,o=n.length;r<o;r++){var i=n[r];if("string"!=typeof i){var a=i.content;if(Array.isArray(a))if("template-string"===i.type){var s=a[1];if(3===a.length&&"string"!=typeof s&&"embedded-code"===s.type){var c=p(s),u=s.alias,f=Array.isArray(u)?u[0]:u,d=e.languages[f];if(!d)continue;a[1]=l(c,d,f)}}else t(a);else"string"!=typeof a&&t([a])}}}(t.tokens)}))}(zK),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}(zK),function(e){function t(e,t){return RegExp(e.replace(/<ID>/g,(function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source})),t)}e.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+e.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),e.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+e.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),e.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]}),e.languages.insertBefore("javascript","keyword",{imports:{pattern:t(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:e.languages.javascript},exports:{pattern:t(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:e.languages.javascript}}),e.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),e.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),e.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:t(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var n=["function","function-variable","method","method-variable","property-access"],r=0;r<n.length;r++){var o=n[r],i=e.languages.javascript[o];"RegExp"===e.util.type(i)&&(i=e.languages.javascript[o]={pattern:i});var a=i.inside||{};i.inside=a,a["maybe-class-name"]=/^[A-Z][\s\S]*/}}(zK),function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,r=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,o=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function i(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return r})).replace(/<SPREAD>/g,(function(){return o})),RegExp(e,t)}o=i(o).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=i(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:i(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:i(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var a=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(a).join(""):""},s=function(t){for(var n=[],r=0;r<t.length;r++){var o=t[r],i=!1;if("string"!=typeof o&&("tag"===o.type&&o.content[0]&&"tag"===o.content[0].type?"</"===o.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===a(o.content[0].content[1])&&n.pop():"/>"===o.content[o.content.length-1].content||n.push({tagName:a(o.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===o.type&&"{"===o.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===o.type&&"}"===o.content?n[n.length-1].openedBraces--:i=!0),(i||"string"==typeof o)&&n.length>0&&0===n[n.length-1].openedBraces){var c=a(o);r<t.length-1&&("string"==typeof t[r+1]||"plain-text"===t[r+1].type)&&(c+=a(t[r+1]),t.splice(r+1,1)),r>0&&("string"==typeof t[r-1]||"plain-text"===t[r-1].type)&&(c=a(t[r-1])+c,t.splice(r-1,1),r--),t[r]=new e.Token("plain-text",c,null,c)}o.content&&"string"!=typeof o.content&&s(o.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||s(e.tokens)}))}(zK),function(e){e.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var t={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(t).forEach((function(n){var r=t[n],o=[];/^\w+$/.test(n)||o.push(/\w+/.exec(n)[0]),"diff"===n&&o.push("bold"),e.languages.diff[n]={pattern:RegExp("^(?:["+r+"].*(?:\r\n?|\n|(?![\\s\\S])))+","m"),alias:o,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(n)[0]}}}})),Object.defineProperty(e.languages.diff,"PREFIXES",{value:t})}(zK),zK.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m},zK.languages.go=zK.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/}),zK.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete zK.languages.go["class-name"],function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,r,o,i){if(n.language===r){var a=n.tokenStack=[];n.code=n.code.replace(o,(function(e){if("function"==typeof i&&!i(e))return e;for(var o,s=a.length;-1!==n.code.indexOf(o=t(r,s));)++s;return a[s]=e,o})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,r){if(n.language===r&&n.tokenStack){n.grammar=e.languages[r];var o=0,i=Object.keys(n.tokenStack);!function a(s){for(var c=0;c<s.length&&!(o>=i.length);c++){var u=s[c];if("string"==typeof u||u.content&&"string"==typeof u.content){var l=i[o],f=n.tokenStack[l],p="string"==typeof u?u:u.content,d=t(r,l),h=p.indexOf(d);if(h>-1){++o;var g=p.substring(0,h),y=new e.Token(r,e.tokenize(f,n.grammar),"language-"+r,f),v=p.substring(h+d.length),m=[];g&&m.push.apply(m,a([g])),m.push(y),v&&m.push.apply(m,a([v])),"string"==typeof u?s.splice.apply(s,[c,1].concat(m)):u.content=m}}else u.content&&a(u.content)}return s}(n.tokens)}}}})}(zK),function(e){e.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"handlebars",/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"handlebars")})),e.languages.hbs=e.languages.handlebars}(zK),zK.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},zK.languages.webmanifest=zK.languages.json,zK.languages.less=zK.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),zK.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}}),zK.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/},zK.languages.objectivec=zK.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 zK.languages.objectivec["class-name"],zK.languages.objc=zK.languages.objectivec,zK.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/},zK.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},zK.languages.python["string-interpolation"].inside.interpolation.inside.rest=zK.languages.python,zK.languages.py=zK.languages.python,zK.languages.reason=zK.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/}),zK.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 zK.languages.reason.function,function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(zK),zK.languages.scss=zK.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),zK.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),zK.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),zK.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),zK.languages.scss.atrule.inside.rest=zK.languages.scss,function(e){var t={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},n={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},r={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:t,number:n,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:t,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:n,punctuation:/[{}()\[\];:,]/};r.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:r}},r.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:r}},e.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:r}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:r}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:r}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:r.interpolation}},rest:r}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:r.interpolation,comment:r.comment,punctuation:/[{},]/}},func:r.func,string:r.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:r.interpolation,punctuation:/[{}()\[\];:.]/}}(zK),function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(zK),zK.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/};var HK={Prism:zK,theme:{plain:{backgroundColor:"#2a2734",color:"#9a86fd"},styles:[{types:["comment","prolog","doctype","cdata","punctuation"],style:{color:"#6c6783"}},{types:["namespace"],style:{opacity:.7}},{types:["tag","operator","number"],style:{color:"#e09142"}},{types:["property","function"],style:{color:"#9a86fd"}},{types:["tag-id","selector","atrule-id"],style:{color:"#eeebff"}},{types:["attr-name"],style:{color:"#c4b9fe"}},{types:["boolean","string","entity","url","attr-value","keyword","control","directive","unit","statement","regex","atrule","placeholder","variable"],style:{color:"#ffcc99"}},{types:["deleted"],style:{textDecorationLine:"line-through"}},{types:["inserted"],style:{textDecorationLine:"underline"}},{types:["italic"],style:{fontStyle:"italic"}},{types:["important","bold"],style:{fontWeight:"bold"}},{types:["important"],style:{color:"#c4b9fe"}}]}};function VK(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UK(){return UK=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},UK.apply(this,arguments)}var KK=/\r\n|\r|\n/,$K=function(e){0===e.length?e.push({types:["plain"],content:"\n",empty:!0}):1===e.length&&""===e[0].content&&(e[0].content="\n",e[0].empty=!0)},WK=function(e,t){var n=e.length;return n>0&&e[n-1]===t?e:e.concat(t)},qK=function(e,t){var n=e.plain,r=Object.create(null),o=e.styles.reduce((function(e,n){var r=n.languages,o=n.style;return r&&!r.includes(t)||n.types.forEach((function(t){var n=UK({},e[t],o);e[t]=n})),e}),r);return o.root=n,o.plain=UK({},n,{backgroundColor:null}),o};function GK(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&-1===t.indexOf(r)&&(n[r]=e[r]);return n}var ZK=function(e){function t(){for(var t=this,n=[],r=arguments.length;r--;)n[r]=arguments[r];e.apply(this,n),VK(this,"getThemeDict",(function(e){if(void 0!==t.themeDict&&e.theme===t.prevTheme&&e.language===t.prevLanguage)return t.themeDict;t.prevTheme=e.theme,t.prevLanguage=e.language;var n=e.theme?qK(e.theme,e.language):void 0;return t.themeDict=n})),VK(this,"getLineProps",(function(e){var n=e.key,r=e.className,o=e.style,i=UK({},GK(e,["key","className","style","line"]),{className:"token-line",style:void 0,key:void 0}),a=t.getThemeDict(t.props);return void 0!==a&&(i.style=a.plain),void 0!==o&&(i.style=void 0!==i.style?UK({},i.style,o):o),void 0!==n&&(i.key=n),r&&(i.className+=" "+r),i})),VK(this,"getStyleForToken",(function(e){var n=e.types,r=e.empty,o=n.length,i=t.getThemeDict(t.props);if(void 0!==i){if(1===o&&"plain"===n[0])return r?{display:"inline-block"}:void 0;if(1===o&&!r)return i[n[0]];var a=r?{display:"inline-block"}:{},s=n.map((function(e){return i[e]}));return Object.assign.apply(Object,[a].concat(s))}})),VK(this,"getTokenProps",(function(e){var n=e.key,r=e.className,o=e.style,i=e.token,a=UK({},GK(e,["key","className","style","token"]),{className:"token "+i.types.join(" "),children:i.content,style:t.getStyleForToken(i),key:void 0});return void 0!==o&&(a.style=void 0!==a.style?UK({},a.style,o):o),void 0!==n&&(a.key=n),r&&(a.className+=" "+r),a})),VK(this,"tokenize",(function(e,t,n,r){var o={code:t,grammar:n,language:r,tokens:[]};e.hooks.run("before-tokenize",o);var i=o.tokens=e.tokenize(o.code,o.grammar,o.language);return e.hooks.run("after-tokenize",o),i}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.render=function(){var e=this.props,t=e.Prism,n=e.language,r=e.code,o=e.children,i=this.getThemeDict(this.props),a=t.languages[n],s=function(e){for(var t=[[]],n=[e],r=[0],o=[e.length],i=0,a=0,s=[],c=[s];a>-1;){for(;(i=r[a]++)<o[a];){var u=void 0,l=t[a],f=n[a][i];if("string"==typeof f?(l=a>0?l:["plain"],u=f):(l=WK(l,f.type),f.alias&&(l=WK(l,f.alias)),u=f.content),"string"==typeof u){var p=u.split(KK),d=p.length;s.push({types:l,content:p[0]});for(var h=1;h<d;h++)$K(s),c.push(s=[]),s.push({types:l,content:p[h]})}else a++,t.push(l),n.push(u),r.push(0),o.push(u.length)}a--,t.pop(),n.pop(),r.pop(),o.pop()}return $K(s),c}(void 0!==a?this.tokenize(t,r,a,n):[r]);return o({tokens:s,className:"prism-code language-"+n,style:void 0!==i?i.root:{},getLineProps:this.getLineProps,getTokenProps:this.getTokenProps})},t}(t.Component),YK="#c5a5c5",XK="#8dc891",JK={plain:{backgroundColor:"#282c34",color:"#ffffff"},styles:[{types:["attr-name"],style:{color:YK}},{types:["attr-value"],style:{color:XK}},{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:XK}},{types:["punctuation"],style:{color:XK}},{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:YK}},{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}}]},QK={plain:{color:"#000000",backgroundColor:"#ffffff"},styles:[{types:["comment"],style:{color:"rgb(0, 128, 0)"}},{types:["builtin"],style:{color:"rgb(0, 112, 193)"}},{types:["number","variable","inserted"],style:{color:"rgb(9, 134, 88)"}},{types:["operator"],style:{color:"rgb(0, 0, 0)"}},{types:["constant","char"],style:{color:"rgb(129, 31, 63)"}},{types:["tag"],style:{color:"rgb(128, 0, 0)"}},{types:["attr-name"],style:{color:"rgb(255, 0, 0)"}},{types:["deleted","string"],style:{color:"rgb(163, 21, 21)"}},{types:["changed","punctuation"],style:{color:"rgb(4, 81, 165)"}},{types:["function","keyword"],style:{color:"rgb(0, 0, 255)"}},{types:["class-name"],style:{color:"rgb(38, 127, 153)"}}]};const e$=({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(t$,Object.assign({onClick:()=>{yK(r),i(!0)},copied:o},{children:o?e.jsx(un,{name:"check-circle",color:a.success}):e.jsx(un,{name:"copy",color:s})}))},t$=X.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}}))),n$=({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(r$,Object.assign({},i,{children:[e.jsx(o$,Object.assign({backgroundColor:i.borderColor},{children:t.toUpperCase()})),e.jsx(i$,{children:r}),e.jsx(e$,{content:r})]}))},r$=X.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}))),o$=X.div((({theme:e})=>({padding:e.size.md,textAlign:"center",fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,color:"#fff"})),(({backgroundColor:e})=>({backgroundColor:e}))),i$=X.div((({theme:e})=>({fontFamily:"monospace",whiteSpace:"pre",fontSize:e.font.size.lg,padding:e.size.md}))),a$=X.pre((({theme:e})=>({overflowX:"auto",position:"relative",padding:e.size.md,borderRadius:e.size.xs,backgroundColor:"light"===e.name?`${e.scale0} !important`:void 0})),an),s$=X.div((({theme:e,highlight:t})=>({backgroundColor:t?e.scale1:"transparent"}))),c$=X.span((({theme:e})=>({display:"inline-block",minWidth:17,textAlign:"right",marginRight:10,color:e.scale6,userSelect:"none"}))),u$=X.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 l$={};({get exports(){return l$},set exports(e){l$=e}}).exports=function(){var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return s(e)?e:G(e)}function o(e){return c(e)?e:Z(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[p])}function c(e){return!(!e||!e[d])}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__@@",p="@@__IMMUTABLE_KEYED__@@",d="@@__IMMUTABLE_INDEXED__@@",h="@@__IMMUTABLE_ORDERED__@@",g="delete",y=5,v=1<<y,m=v-1,b={},w={value:!1},x={value:!1};function _(e){return e.value=!1,e}function C(e){e&&(e.value=!0)}function O(){}function S(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 M(e,t,0)}function P(e,t){return M(e,t,t)}function M(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var D=0,R=1,N=2,I="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",B=I||L;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 U(e){return e&&"function"==typeof e.next}function K(e){var t=$(e);return t&&t.call(e)}function $(e){var t=e&&(I&&e[I]||e[L]);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 G(e){return null==e?ae().toKeyedSeq():a(e)?s(e)?e.toSeq():e.fromEntrySeq():se(e)}function Z(e){return null==e?ae():a(e)?s(e)?e.entrySeq():e.toIndexedSeq():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=R,F.ENTRIES=N,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 pe(this,e,t,!0)},t(G,q),G.prototype.toKeyedSeq=function(){return this},t(Z,q),Z.of=function(){return Z(arguments)},Z.prototype.toIndexedSeq=function(){return this},Z.prototype.toString=function(){return this.__toString("Seq [","]")},Z.prototype.__iterate=function(e,t){return fe(this,e,t,!1)},Z.prototype.__iterator=function(e,t){return pe(this,e,t,!1)},t(Y,q),Y.of=function(){return Y(arguments)},Y.prototype.toSetSeq=function(){return this},q.isSeq=ie,q.Keyed=G,q.Set=Y,q.Indexed=Z;var X,J,Q,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return X||(X=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():U(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):U(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 pe(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 de(e,t){return t?he(t,e,"",{"":e}):ge(e)}function he(e,t,n,r){return Array.isArray(t)?e.call(r,n,Z(t).map((function(n,r){return he(e,n,r,t)}))):ye(t)?e.call(r,n,G(t).map((function(n,r){return he(e,n,r,t)}))):t}function ge(e){return Array.isArray(e)?Z(e).map(ge).toList():ye(e)?G(e).map(ge).toMap():e}function ye(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||s(e)!==s(t)||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,p=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===p}function be(e,t){if(!(this instanceof be))return new be(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(J)return J;J=this}}function we(e,t){if(!e)throw new Error(t)}function xe(e,t,n){if(!(this instanceof xe))return new xe(e,t,n);if(we(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Q)return Q;Q=this}}function _e(){throw TypeError("Abstract")}function Ce(){}function Oe(){}function Se(){}q.prototype[ee]=!0,t(te,Z),te.prototype.get=function(e,t){return this.has(e)?this._array[E(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new F((function(){return o>r?H():z(e,o,n[t?r-o++:o++])}))},t(ne,G),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new F((function(){var a=r[t?o-i:i];return i++>o?H():z(e,a,n[a])}))},ne.prototype[h]=!0,t(re,Z),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=K(this._iterable),r=0;if(U(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=K(this._iterable);if(!U(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,Z),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new F((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return z(e,o,r[o++])}))},t(be,Z),be.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},be.prototype.get=function(e,t){return this.has(e)?this._value:t},be.prototype.includes=function(e){return ve(this._value,e)},be.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new be(this._value,P(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,Z),xe.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(this._step>1?" by "+this._step:"")+" ]"},xe.prototype.get=function(e,t){return this.has(e)?this._start+E(this,e)*this._step:t},xe.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},xe.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=P(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(_e,n),t(Ce,_e),t(Oe,_e),t(Se,_e),_e.Keyed=Ce,_e.Indexed=Oe,_e.Set=Se;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 Pe(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 Pe(e){var t;if(Ie&&void 0!==(t=Ne.get(e)))return t;if(void 0!==(t=e[Be]))return t;if(!De){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Be]))return t;if(void 0!==(t=Re(e)))return t}if(t=++Le,1073741824&Le&&(Le=0),Ie)Ne.set(e,t);else{if(void 0!==Me&&!1===Me(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 Me=Object.isExtensible,De=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}();function Re(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}var Ne,Ie="function"==typeof WeakMap;Ie&&(Ne=new WeakMap);var Le=0,Be="__immutablehash__";"function"==typeof Symbol&&(Be=Symbol(Be));var Fe=16,ze=255,He=0,Ve={};function Ue(e){we(e!==1/0,"Cannot perform this action with an infinite size.")}function Ke(e){return null==e?ot():$e(e)&&!l(e)?e:ot().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function $e(e){return!(!e||!e[qe])}t(Ke,Ce),Ke.prototype.toString=function(){return this.__toString("Map {","}")},Ke.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ke.prototype.set=function(e,t){return it(this,e,t)},Ke.prototype.setIn=function(e,t){return this.updateIn(e,b,(function(){return t}))},Ke.prototype.remove=function(e){return it(this,e,b)},Ke.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return b}))},Ke.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ke.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=yt(this,_n(e),t,n);return r===b?void 0:r},Ke.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ot()},Ke.prototype.merge=function(){return pt(this,void 0,arguments)},Ke.prototype.mergeWith=function(t){return pt(this,t,e.call(arguments,1))},Ke.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ke.prototype.mergeDeep=function(){return pt(this,dt,arguments)},Ke.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return pt(this,ht(t),n)},Ke.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,ot(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ke.prototype.sort=function(e){return Vt(fn(this,e))},Ke.prototype.sortBy=function(e,t){return Vt(fn(this,t,e))},Ke.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ke.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new O)},Ke.prototype.asImmutable=function(){return this.__ensureOwner()},Ke.prototype.wasAltered=function(){return this.__altered},Ke.prototype.__iterator=function(e,t){return new et(this,e,t)},Ke.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ke.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?rt(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ke.isMap=$e;var We,qe="@@__IMMUTABLE_MAP__@@",Ge=Ke.prototype;function Ze(e,t){this.ownerID=e,this.entries=t}function Ye(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Je(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Qe(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function et(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&nt(e._root)}function tt(e,t){return z(e,t[0],t[1])}function nt(e,t){return{node:e,index:0,__prev:t}}function rt(e,t,n,r){var o=Object.create(Ge);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function ot(){return We||(We=rt(0))}function it(e,t,n){var r,o;if(e._root){var i=_(w),a=_(x);if(r=at(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===b?-1:1:0)}else{if(n===b)return e;o=1,r=new Ze(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?rt(o,r):ot()}function at(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===b?e:(C(s),C(a),new Qe(t,r,[o,i]))}function st(e){return e.constructor===Qe||e.constructor===Je}function 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 O);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 pt(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 de(e)}))),o.push(c)}return gt(e,t,o)}function dt(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:S(e);return o[t]=n,o}function bt(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}function wt(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}Ge[qe]=!0,Ge[g]=Ge.remove,Ge.removeIn=Ge.deleteIn,Ze.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Ze.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===b,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(C(a),(s||!f)&&C(i),!s||1!==c.length){if(!f&&!s&&c.length>=xt)return ut(e,c,r,o);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Ze(e,d)}},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),p=this.nodes,d=l?p[f]:void 0,h=at(d,e,t+y,n,r,o,i,a);if(h===d)return this;if(!l&&h&&p.length>=_t)return ft(e,p,u,s,h);if(l&&!h&&2===p.length&&st(p[1^f]))return p[1^f];if(l&&h&&1===p.length&&st(h))return h;var g=e&&e===this.ownerID,v=l?h?u:u^c:u|c,w=l?h?mt(p,f,h,g):wt(p,f,g):bt(p,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 p=this.count;if(l){if(!f&&--p<Ct)return lt(e,u,p,s)}else p++;var d=e&&e===this.ownerID,h=mt(u,s,f,d);return d?(this.count=p,this.nodes=h,this):new Xe(e,p,h)},Je.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(ve(n,o[i][0]))return o[i][1];return r},Je.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=je(r));var s=o===b;if(n!==this.keyHash)return s?this:(C(a),C(i),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(C(a),(s||!f)&&C(i),s&&2===l)return new Qe(e,this.keyHash,c[1^u]);var p=e&&e===this.ownerID,d=p?c:S(c);return f?s?u===l-1?d.pop():d[u]=d.pop():d[u]=[r,o]:d.push([r,o]),p?(this.entries=d,this):new Je(e,this.keyHash,d)},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:(C(a),s?void C(i):c?e&&e===this.ownerID?(this.entry[1]=o,this):new Qe(e,this.keyHash,[r,o]):(C(i),ct(this,e,t,je(r),[r,o])))},Ze.prototype.iterate=Je.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ye.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Qe.prototype.iterate=function(e,t){return e(this.entry)},t(et,F),et.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return tt(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return tt(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return tt(e,i.entry);t=this._stack=nt(i,t)}continue}t=this._stack=this._stack.__prev}return H()};var xt=v/4,_t=v/2,Ct=v/4;function Ot(e){var t=Rt();if(null==e)return t;if(St(e))return e;var n=o(e),r=n.size;return 0===r?t:(Ue(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 St(e){return!(!e||!e[kt])}t(Ot,Oe),Ot.of=function(){return this(arguments)},Ot.prototype.toString=function(){return this.__toString("List [","]")},Ot.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},Ot.prototype.set=function(e,t){return Nt(this,e,t)},Ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},Ot.prototype.insert=function(e,t){return this.splice(e,0,t)},Ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=y,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Rt()},Ot.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])}))},Ot.prototype.pop=function(){return Ft(this,0,-1)},Ot.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])}))},Ot.prototype.shift=function(){return Ft(this,1)},Ot.prototype.merge=function(){return zt(this,void 0,arguments)},Ot.prototype.mergeWith=function(t){return zt(this,t,e.call(arguments,1))},Ot.prototype.mergeDeep=function(){return zt(this,dt,arguments)},Ot.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return zt(this,ht(t),n)},Ot.prototype.setSize=function(e){return Ft(this,0,e)},Ot.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:Ft(this,T(e,n),P(t,n))},Ot.prototype.__iterator=function(e,t){var n=0,r=Mt(this,t);return new F((function(){var t=r();return t===Pt?H():z(e,n++,t)}))},Ot.prototype.__iterate=function(e,t){for(var n,r=0,o=Mt(this,t);(n=o())!==Pt&&!1!==e(n,r++,this););return r},Ot.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)},Ot.isList=St;var kt="@@__IMMUTABLE_LIST__@@",Et=Ot.prototype;function jt(e,t){this.array=e,this.ownerID=t}Et[kt]=!0,Et[g]=Et.remove,Et.setIn=Ge.setIn,Et.deleteIn=Et.removeIn=Ge.removeIn,Et.update=Ge.update,Et.updateIn=Ge.updateIn,Et.mergeIn=Ge.mergeIn,Et.mergeDeepIn=Ge.mergeDeepIn,Et.withMutations=Ge.withMutations,Et.asMutable=Ge.asMutable,Et.asImmutable=Ge.asImmutable,Et.wasAltered=Ge.wasAltered,jt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&m;if(r>=this.array.length)return new jt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-y,n))===a&&i)return this}if(i&&!o)return this;var s=Lt(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=Lt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var At,Tt,Pt={};function Mt(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 Pt;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!==Pt)return e;s=null}if(u===l)return Pt;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 Rt(){return At||(At=Dt(0,0,y))}function Nt(e,t,n){if((t=E(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?Ft(e,t).set(0,n):Ft(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=_(x);return t>=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=Lt(e,t)).array[s]=l,a)}return c&&e.array[s]===o?e:(C(i),a=Lt(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Lt(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 O,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),p=Ht(s);p>=1<<c+y;)u=new jt(u&&u.array.length?[u]:[],r),c+=y;var d=e._tail,h=p<f?Bt(e,s-1):p>f?new jt([],r):d;if(d&&p>f&&a<i&&d.array.length){for(var g=u=Lt(u,r),v=c;v>y;v-=y){var b=f>>>v&m;g=g.array[b]=Lt(g.array[b],r)}g.array[f>>>y&m]=d}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=p)a-=p,s-=p,c=y,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||p<f){for(l=0;u;){var w=a>>>c&m;if(w!==p>>>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&&p<f&&(u=u.removeAfter(r,c,p-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 de(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():Ut(e)?e:$t().withMutations((function(t){var n=r(e);Ue(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Ut(e){return $e(e)&&l(e)}function Kt(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=Kt(ot(),Rt()))}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):Kt(r,o)}function qt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Gt(e){this._iter=e,this.size=e.size}function Zt(e){this._iter=e,this.size=e.size}function Yt(e){this._iter=e,this.size=e.size}function Xt(e){var t=bn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===N){var r=e.__iterator(t,n);return new F((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===R?D:R,n)},t}function Jt(e,t,n){var r=bn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,b);return i===b?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(N,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(N,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=Ke().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}function nn(e,t,n){var r=s(e),o=(l(e)?Vt():Ke()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=mn(e);return o.map((function(t){return gn(e,i(t))}))}function rn(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n|=0),A(t,n,o))return e;var i=T(t,o),a=P(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===R?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(N,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===N?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(N,i),c=!0,u=0;return new F((function(){var e,i,l;do{if((e=s.next()).done)return r||o===R?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===N?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===N&&(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(R,r),a=0;return new F((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?z(n,a++,t):z(n,a++,o.value,o)}))},n}function fn(e,t,n){t||(t=xn);var r=s(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?G(i):c(e)?Z(i):Y(i)}function pn(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 dn(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return dn(t,e,n)?n:e}))}function dn(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function hn(e,t,r){var o=bn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(R,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),K(o?e.reverse():e)})),a=0,s=!1;return new F((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?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 Ue(e.size),k(e)}function mn(e){return s(e)?r:c(e)?o:i}function bn(e){return Object.create((s(e)?G:c(e)?Z:Y).prototype)}function wn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function xn(e,t){return e>t?1:e<t?-1:0}function _n(e){var t=K(e);if(!t){if(!W(e))throw new TypeError("Expected iterable or array-like: "+e);t=K(n(e))}return t}function Cn(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);En(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ke(i)},o=r.prototype=Object.create(On);return o.constructor=r,r}t(Vt,Ke),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?Kt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Vt.isOrderedMap=Ut,Vt.prototype[h]=!0,Vt.prototype[g]=Vt.prototype.remove,t(qt,G),qt.prototype.get=function(e,t){return this._iter.get(e,t)},qt.prototype.has=function(e){return this._iter.has(e)},qt.prototype.valueSeq=function(){return this._iter.valueSeq()},qt.prototype.reverse=function(){var e=this,t=Qt(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},qt.prototype.map=function(e,t){var n=this,r=Jt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},qt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?vn(this):0,function(o){return e(o,t?--n:n++,r)}),t)},qt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(R,t),r=t?vn(this):0;return new F((function(){var o=n.next();return o.done?o:z(e,t?--r:r++,o.value,o)}))},qt.prototype[h]=!0,t(Gt,Z),Gt.prototype.includes=function(e){return this._iter.includes(e)},Gt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Gt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t),r=0;return new F((function(){var t=n.next();return t.done?t:z(e,r++,t.value,t)}))},t(Zt,Y),Zt.prototype.has=function(e){return this._iter.includes(e)},Zt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Zt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){var t=n.next();return t.done?t:z(e,t.value,t.value,t)}))},t(Yt,G),Yt.prototype.entrySeq=function(){return this._iter.toSeq()},Yt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){yn(t);var r=a(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Yt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(R,t);return new F((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){yn(r);var o=a(r);return z(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Gt.prototype.cacheResult=qt.prototype.cacheResult=Zt.prototype.cacheResult=Yt.prototype.cacheResult=wn,t(Cn,Ce),Cn.prototype.toString=function(){return this.__toString(kn(this)+" {","}")},Cn.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},Cn.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},Cn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=Sn(this,ot()))},Cn.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+kn(this));var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:Sn(this,n)},Cn.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:Sn(this,t)},Cn.prototype.wasAltered=function(){return this._map.wasAltered()},Cn.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},Cn.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},Cn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?Sn(this,t,e):(this.__ownerID=e,this._map=t,this)};var On=Cn.prototype;function Sn(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);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Tn(e){return!(!e||!e[Mn])}On[g]=On.remove,On.deleteIn=On.removeIn=Ge.removeIn,On.merge=Ge.merge,On.mergeWith=Ge.mergeWith,On.mergeIn=Ge.mergeIn,On.mergeDeep=Ge.mergeDeep,On.mergeDeepWith=Ge.mergeDeepWith,On.mergeDeepIn=Ge.mergeDeepIn,On.setIn=Ge.setIn,On.update=Ge.update,On.updateIn=Ge.updateIn,On.withMutations=Ge.withMutations,On.asMutable=Ge.asMutable,On.asImmutable=Ge.asImmutable,t(An,Se),An.of=function(){return this(arguments)},An.fromKeys=function(e){return this(r(e).keySeq())},An.prototype.toString=function(){return this.__toString("Set {","}")},An.prototype.has=function(e){return this._map.has(e)},An.prototype.add=function(e){return Rn(this,this._map.set(e,!0))},An.prototype.remove=function(e){return Rn(this,this._map.remove(e))},An.prototype.clear=function(){return Rn(this,this._map.clear())},An.prototype.union=function(){var t=e.call(arguments,0);return t=t.filter((function(e){return 0!==e.size})),0===t.length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},An.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},An.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},An.prototype.merge=function(){return this.union.apply(this,arguments)},An.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},An.prototype.sort=function(e){return Ln(fn(this,e))},An.prototype.sortBy=function(e,t){return Ln(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 Pn,Mn="@@__IMMUTABLE_SET__@@",Dn=An.prototype;function Rn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function Nn(e,t){var n=Object.create(Dn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function In(){return Pn||(Pn=Nn(ot()))}function Ln(e){return null==e?Vn():Bn(e)?e:Vn().withMutations((function(t){var n=i(e);Ue(n.size),n.forEach((function(e){return t.add(e)}))}))}function Bn(e){return Tn(e)&&l(e)}Dn[Mn]=!0,Dn[g]=Dn.remove,Dn.mergeDeep=Dn.merge,Dn.mergeDeepWith=Dn.mergeWith,Dn.withMutations=Ge.withMutations,Dn.asMutable=Ge.asMutable,Dn.asImmutable=Ge.asImmutable,Dn.__empty=In,Dn.__make=Nn,t(Ln,An),Ln.of=function(){return this(arguments)},Ln.fromKeys=function(e){return this(r(e).keySeq())},Ln.prototype.toString=function(){return this.__toString("OrderedSet {","}")},Ln.isOrderedSet=Bn;var Fn,zn=Ln.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 Un(e){return null==e?Zn():Kn(e)?e:Zn().unshiftAll(e)}function Kn(e){return!(!e||!e[Wn])}zn[h]=!0,zn.__empty=Vn,zn.__make=Hn,t(Un,Oe),Un.of=function(){return this(arguments)},Un.prototype.toString=function(){return this.__toString("Stack [","]")},Un.prototype.get=function(e,t){var n=this._head;for(e=E(this,e);n&&e--;)n=n.next;return n?n.value:t},Un.prototype.peek=function(){return this._head&&this._head.value},Un.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Gn(e,t)},Un.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Ue(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Gn(t,n)},Un.prototype.pop=function(){return this.slice(1)},Un.prototype.unshift=function(){return this.push.apply(this,arguments)},Un.prototype.unshiftAll=function(e){return this.pushAll(e)},Un.prototype.shift=function(){return this.pop.apply(this,arguments)},Un.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Zn()},Un.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(P(t,this.size)!==this.size)return Oe.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Gn(r,o)},Un.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Gn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Un.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},Un.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()}))},Un.isStack=Kn;var $n,Wn="@@__IMMUTABLE_STACK__@@",qn=Un.prototype;function Gn(e,t,n,r){var o=Object.create(qn);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Zn(){return $n||($n=Gn(0))}function Yn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}qn[Wn]=!0,qn.withMutations=Ge.withMutations,qn.asMutable=Ge.asMutable,qn.asImmutable=Ge.asImmutable,qn.wasAltered=Ge.wasAltered,n.Iterator=F,Yn(n,{toArray:function(){Ue(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Gt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new qt(this,!0)},toMap:function(){return Ke(this.toKeyedSeq())},toObject:function(){Ue(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Vt(this.toKeyedSeq())},toOrderedSet:function(){return Ln(s(this)?this.valueSeq():this)},toSet:function(){return An(s(this)?this.valueSeq():this)},toSetSeq:function(){return new Zt(this)},toSeq:function(){return c(this)?this.toIndexedSeq():s(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Un(s(this)?this.valueSeq():this)},toList:function(){return Ot(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(N)},every:function(e,t){Ue(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 Ue(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ue(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 Ue(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return gn(this,Qt(this,!0))},slice:function(e,t){return gn(this,rn(this,e,t,!0))},some:function(e,t){return!this.every(tr(e),t)},sort:function(e){return gn(this,fn(this,e))},values:function(){return this.__iterator(R)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return k(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return tn(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(er).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(tr(e),t)},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},first:function(){return this.find(j)},flatMap:function(e,t){return gn(this,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=_n(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,b):b)===b)return t}return r},groupBy:function(e,t){return nn(this,e,t)},has:function(e){return this.get(e,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Qn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return pn(this,e)},maxBy:function(e,t){return pn(this,t,e)},min:function(e){return pn(this,e?nr(e):ir)},minBy:function(e,t){return pn(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 S(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[p]=!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(S(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(S(arguments)),t=hn(this.toSeq(),Z.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),gn(this,n)},last:function(){return this.get(-1)},skipWhile:function(e,t){return gn(this,an(this,e,t,!1))},zip:function(){return gn(this,hn(this,or,[this].concat(S(arguments))))},zipWith:function(e){var t=S(arguments);return t[0]=this,gn(this,hn(this,e,t))}}),o.prototype[d]=!0,o.prototype[h]=!0,Yn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=Xn.includes,Yn(G,r.prototype),Yn(Z,o.prototype),Yn(Y,i.prototype),Yn(Ce,r.prototype),Yn(Oe,o.prototype),Yn(Se,i.prototype);var ur={Iterable:n,Seq:q,Collection:_e,Map:Ke,OrderedMap:Vt,List:Ot,Stack:Un,Set:An,OrderedSet:Ln,Record:Cn,Range:xe,Repeat:be,is:ve,fromJS:de};return ur}();var f$=l$.OrderedMap,p$={createFromArray:function(e){return f$(e.map((function(e){return[e.getKey(),e]})))}};var d$=l$,h$=d$.Map,g$=d$.OrderedSet,y$=d$.Record,v$=g$(),m$={style:v$,entity:null},b$=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 w$;var t=h$({style:v$,entity:null}).merge(e),n=x$.get(t);if(n)return n;var o=new r(t);return x$=x$.set(t,o),o},r.fromJS=function(e){var t=e.style,n=e.entity;return new r({style:Array.isArray(t)?g$(t):t,entity:Array.isArray(n)?g$(n):n})},r}(y$(m$)),w$=new b$,x$=h$([[h$(m$),w$]]);b$.EMPTY=w$;var _$=b$;var C$=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 O$=_$,S$=C$,k$=l$,E$=k$.List,j$=k$.Map,A$=k$.OrderedSet,T$=k$.Record,P$=k$.Repeat,M$=A$(),D$=T$({key:"",type:"unstyled",text:"",characterList:E$(),depth:0,data:j$()}),R$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=E$(P$(O$.EMPTY,n.length))),e},N$=function(e){var t,n;function r(t){return e.call(this,R$(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():M$},o.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},o.findStyleRanges=function(e,t){S$(this.getCharacterList(),I$,e,t)},o.findEntityRanges=function(e,t){S$(this.getCharacterList(),L$,e,t)},r}(D$);function I$(e,t){return e.getStyle()===t.getStyle()}function L$(e,t){return e.getEntity()===t.getEntity()}var B$=N$;var F$=_$,z$=C$,H$=l$,V$=H$.List,U$=H$.Map,K$=H$.OrderedSet,$$=H$.Record,W$=H$.Repeat,q$=K$(),G$={parent:null,characterList:V$(),data:U$(),depth:0,key:"",text:"",type:"unstyled",children:V$(),prevSibling:null,nextSibling:null},Z$=function(e,t){return e.getStyle()===t.getStyle()},Y$=function(e,t){return e.getEntity()===t.getEntity()},X$=function(e){if(!e)return e;var t=e.characterList,n=e.text;return n&&!t&&(e.characterList=V$(W$(F$.EMPTY,n.length))),e},J$=function(e){var t,n;function r(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G$;return e.call(this,X$(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():q$},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){z$(this.getCharacterList(),Z$,e,t)},o.findEntityRanges=function(e,t){z$(this.getCharacterList(),Y$,e,t)},r}($$(G$)),Q$=J$,eW=_$,tW=l$.Map;function nW(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(tW([[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?eW.applyStyle(l,n):eW.removeStyle(l,n)),o++;return e.set("characterList",f)}));return e.merge({blockMap:o.merge(u),selectionBefore:t,selectionAfter:t})}var rW={add:function(e,t,n){return nW(e,t,n,!0)},remove:function(e,t,n){return nW(e,t,n,!1)}},oW=_$;var iW=function(e,t,n,r){for(var o=t,i=e.getCharacterList();o<n;)i=i.set(o,oW.applyEntity(i.get(o),r)),o++;return e.set("characterList",i)},aW=l$;var sW=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(aW.OrderedMap([[a,r.get(a)]])).map((function(e,t){var r=t===o?i:0,c=t===a?s:e.getLength();return iW(e,r,c,n)}));return e.merge({blockMap:r.merge(c),selectionBefore:t,selectionAfter:t})},cW={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,p=c===r,d=u===f;return(!p&&d||p&&!d)&&("forward"===o?u!==f&&u++:c!==r&&c--),{start:c,end:u}}},uW="production"!==process.env.NODE_ENV?function(e){if(void 0===e)throw new Error("invariant(...): Second argument must be a string.")}:function(e){};var lW=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(uW(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}},fW=lW;var pW=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?fW(!1,"Entity key not found in this range."):fW(!1)),n},dW=cW,hW=pW,gW=lW;function yW(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=hW(t,o).filter((function(e){return l<=e.end&&l>=e.start}));1!=f.length&&("production"!==process.env.NODE_ENV?gW(!1,"There should only be one entity range within this removal range."):gW(!1));var p=f[0];if("IMMUTABLE"===u)return n.merge({anchorOffset:p.start,focusOffset:p.end,isBackward:!1});i||(a?c=p.end:s=p.start);var d=dW.getRemovalRange(s,c,t.getText().slice(p.start,p.end),p.start,r);return n.merge({anchorOffset:d.start,focusOffset:d.end,isBackward:!1})}var vW=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=yW(e,t,u,o,s,!0,!0);else if(s&&c){var l=yW(e,t,u,o,s,!1,!0),f=yW(e,n,u,o,c,!1,!1);u=u.merge({anchorOffset:l.getAnchorOffset(),focusOffset:f.getFocusOffset(),isBackward:!1})}else if(s){var p=yW(e,t,u,o,s,!1,!0);u=u.merge({anchorOffset:p.getStartOffset(),isBackward:!1})}else if(c){var d=yW(e,n,u,o,c,!1,!1);u=u.merge({focusOffset:d.getEndOffset(),isBackward:!1})}return u},mW={},bW=Math.pow(2,24);var wW=function(){for(var e;void 0===e||mW.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*bW).toString(32);return mW[e]=!0,e},xW=Q$,_W=wW,CW=l$.OrderedMap,OW=function(e){return e.first()instanceof xW?function(e){var t,n={};return CW(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=_W();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 CW(e.toArray().map((function(e){var t=_W();return[t,e.set("key",t)]})))}(e)},SW=_$,kW=C$,EW=lW;function jW(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 kW(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?EW(!1,"Removal range must exist within character list."):EW(!1)),r}(r,s,n),l=u.start,f=u.end;l<f;)c=r.get(l),r=r.set(l,SW.applyEntity(c,null)),l++;return t.set("characterList",r)}return t}var AW=function(e,t){var n=e.getBlockMap(),r=e.getEntityMap(),o={},i=t.getStartKey(),a=t.getStartOffset(),s=n.get(i),c=jW(r,s,a);c!==s&&(o[i]=c);var u=t.getEndKey(),l=t.getEndOffset(),f=n.get(u);i===u&&(f=c);var p=jW(r,f,l);return p!==f&&(o[u]=p),Object.keys(o).length?e.merge({blockMap:n.merge(o),selectionAfter:t}):e.set("selectionAfter",t)},TW=OW,PW=AW,MW=function(e,t){var n=t.getStartKey(),r=t.getStartOffset(),o=t.getEndKey(),i=t.getEndOffset(),a=PW(e,t).getBlockMap(),s=a.keySeq(),c=s.indexOf(n),u=s.indexOf(o)+1;return TW(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 DW=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},RW=p$,NW=Q$,IW=DW,LW=lW,BW=OW,FW=l$.List,zW=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,p=null;switch(a){case"MERGE_OLD_DATA_TO_NEW_DATA":p=r.getData().merge(s.getData());break;case"REPLACE_WITH_NEW_DATA":p=r.getData()}var d=s.getType();c&&"unstyled"===d&&(d=r.getType());var h=s.merge({text:c.slice(0,i)+r.getText()+c.slice(i),characterList:IW(u,r.getCharacterList(),i),type:d,data:p});return e.merge({blockMap:n.set(o,h),selectionBefore:t,selectionAfter:t.merge({anchorKey:l,anchorOffset:f,focusKey:l,focusOffset:f,isBackward:!1})})},HW=function(e,t,n,r,o,i){var a=n.first()instanceof NW,s=[],c=r.size,u=n.get(o),l=r.first(),f=r.last(),p=f.getLength(),d=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=RW.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,p=l.toArray();p.splice.apply(p,[f,0].concat(c)),t.setIn([s,"children"],FW(p))}}))}(g,0,u,l)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:d,anchorOffset:p,focusKey:d,focusOffset:p,isBackward:!1})})},VW=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?LW(!1,"`insertFragment` should only be called with a collapsed selection state."):LW(!1));var o=e.getBlockMap(),i=BW(n),a=t.getStartKey(),s=t.getStartOffset(),c=o.get(a);return c instanceof NW&&(c.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?LW(!1,"`insertFragment` should not be called when a container node is selected."):LW(!1))),1===i.size?zW(e,t,o,i.first(),a,s,r):HW(e,t,o,i,a,s)},UW=DW,KW=lW,$W=l$.Repeat;var WW=function(e,t,n,r){t.isCollapsed()||("production"!==process.env.NODE_ENV?KW(!1,"`insertText` should only be called with a collapsed range."):KW(!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:UW(c.getCharacterList(),$W(r,o).toList(),s)}),f=s+o;return e.merge({blockMap:i.set(a,l),selectionAfter:t.merge({anchorOffset:f,focusOffset:f})})},qW=l$.Map;var GW=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(qW([[o,i.get(o)]])).map(n);return e.merge({blockMap:i.merge(a),selectionBefore:t,selectionAfter:t})},ZW=Q$,YW=function(e,t){if(!(e instanceof ZW))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},XW=Q$,JW=YW,QW=l$;QW.List;var eq=QW.Map,tq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},nq=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},rq=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},oq=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},iq=function(e,t,n,r){return e.withMutations((function(o){if(tq(t.getKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})})),tq(n.getKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})})),nq(t.getKey(),r).forEach((function(e){return tq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),tq(t.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:t.getPrevSiblingKey()})})),tq(t.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:rq(e,o,r)})})),tq(n.getNextSiblingKey(),o,(function(e){return e.merge({prevSibling:oq(e,o,r)})})),tq(n.getPrevSiblingKey(),o,(function(e){return e.merge({nextSibling:n.getNextSiblingKey()})})),nq(n.getKey(),r).forEach((function(e){tq(e,o,(function(e){return e.merge({children:e.getChildKeys().filter((function(e){return o.get(e)})),nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),function(e,t){var n=[];if(!e)return n;for(var r=JW(e,t);r&&t.get(r);){var o=t.get(r);n.push(r),r=o.getParentKey()?JW(o,t):null}return n}(n,r).forEach((function(e){return tq(e,o,(function(e){return e.merge({nextSibling:rq(e,o,r),prevSibling:oq(e,o,r)})}))})),null==e.get(t.getKey())&&null!=e.get(n.getKey())&&n.getParentKey()===t.getKey()&&null==n.getPrevSiblingKey()){var i=t.getPrevSiblingKey();tq(n.getKey(),o,(function(e){return e.merge({prevSibling:i})})),tq(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){tq(e,o,(function(e){return e.merge({parent:s})}))})),null!=s){var c=e.get(s);tq(s,o,(function(e){return e.merge({children:c.getChildKeys().concat(t.getChildKeys())})}))}tq(t.getChildKeys().find((function(t){return null===e.get(t).getNextSiblingKey()})),o,(function(e){return e.merge({nextSibling:t.getNextSiblingKey()})}))}}))},aq=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},sq=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 XW,f=[];if(l){var p=u.getChildKeys(),d=nq(a,r);u.getNextSiblingKey()&&(f=f.concat(d)),p.isEmpty()||(f=f.concat(d.concat([a]))),f=f.concat(nq(JW(u,r),r))}n=c===u?aq(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()?eq([[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(eq([[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=iq(y,c,u,r)),e.merge({blockMap:y,selectionBefore:t,selectionAfter:t.merge({anchorKey:o,anchorOffset:i,focusKey:o,focusOffset:i,isBackward:!1})})},cq=Q$,uq=wW,lq=l$,fq=lW,pq=GW,dq=lq.List,hq=lq.Map,gq=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},yq=_$,vq=rW,mq=sW,bq=vW,wq=MW,xq=VW,_q=WW,Cq=lW,Oq=GW,Sq=AW,kq=sq,Eq=function(e,t){t.isCollapsed()||("production"!==process.env.NODE_ENV?fq(!1,"Selection range must be collapsed."):fq(!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 pq(e,t,(function(e){return e.merge({type:"unstyled",depth:0})}))}var s=t.getAnchorOffset(),c=o.getCharacterList(),u=uq(),l=o instanceof cq,f=o.merge({text:i.slice(0,s),characterList:c.slice(0,s)}),p=f.merge({key:u,text:i.slice(s),characterList:c.slice(s),data:hq()}),d=r.toSeq().takeUntil((function(e){return e===o})),h=r.toSeq().skipUntil((function(e){return e===o})).rest(),g=d.concat([[n,f],[u,p]],h).toOrderedMap();return l&&(o.getChildKeys().isEmpty()||("production"!==process.env.NODE_ENV?fq(!1,"ContentBlockNode must not have children"):fq(!1)),g=function(e,t,n){return e.withMutations((function(e){var r=t.getKey(),o=n.getKey();gq(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:dq(i)})})),gq(t.getNextSiblingKey(),e,(function(e){return e.merge({prevSibling:o})})),gq(r,e,(function(e){return e.merge({nextSibling:o})})),gq(o,e,(function(e){return e.merge({prevSibling:r})}))}))}(g,f,p)),e.merge({blockMap:g,selectionBefore:t,selectionAfter:t.merge({anchorKey:u,anchorOffset:0,focusKey:u,focusOffset:0,isBackward:!1})})},jq=l$.OrderedSet,Aq={replaceText:function(e,t,n,r,o){var i=Sq(e,t),a=kq(i,t),s=yq.create({style:r||jq(),entity:o||null});return _q(a,a.getSelectionAfter(),n,s)},insertText:function(e,t,n,r,o){return t.isCollapsed()||("production"!==process.env.NODE_ENV?Cq(!1,"Target range must be collapsed for `insertText`."):Cq(!1)),Aq.replaceText(e,t,n,r,o)},moveText:function(e,t,n){var r=wq(e,t),o=Aq.removeRange(e,t,"backward");return Aq.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=Sq(e,t),i=kq(o,t);return xq(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=bq(e.getEntityMap(),i,a,t,n);return kq(e,f)}var p=Sq(e,t);return kq(p,t)},splitBlock:function(e,t){var n=Sq(e,t),r=kq(n,t);return Eq(r,r.getSelectionAfter())},applyInlineStyle:function(e,t,n){return vq.add(e,t,n)},removeInlineStyle:function(e,t,n){return vq.remove(e,t,n)},setBlockType:function(e,t,n){return Oq(e,t,(function(e){return e.merge({type:n,depth:0})}))},setBlockData:function(e,t,n){return Oq(e,t,(function(e){return e.merge({data:n})}))},mergeBlockData:function(e,t,n){return Oq(e,t,(function(e){return e.merge({data:e.getData().merge(n)})}))},applyEntity:function(e,t,n){var r=Sq(e,t);return mq(r,t,n)}},Tq=Aq;var Pq=function(e){return Object.keys(e).map((function(t){return e[t]}))};function Mq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dq=C$,Rq=Pq,Nq=l$,Iq=Nq.List,Lq=Nq.Repeat,Bq=Nq.Record,Fq=function(){return!0},zq=Bq({start:null,end:null}),Hq=Bq({start:null,end:null,decoratorKey:null,leaves:null}),Vq={generate:function(e,t,n){var r=t.getLength();if(!r)return Iq.of(new Hq({start:0,end:0,decoratorKey:null,leaves:Iq.of(new zq({start:0,end:0}))}));var o=[],i=n?n.getDecorations(t,e):Iq(Lq(null,r)),a=t.getCharacterList();return Dq(i,Kq,Fq,(function(e,t){o.push(new Hq({start:e,end:t,decoratorKey:i.get(e),leaves:Uq(a.slice(e,t).toList(),e)}))})),Iq(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 Hq(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){Mq(e,t,n[t])}))}return e}({},n,{leaves:null!=t?Iq(Array.isArray(t)?t:Rq(t)).map((function(e){return zq(e)})):null}))}};function Uq(e,t){var n=[],r=e.map((function(e){return e.getStyle()})).toList();return Dq(r,Kq,Fq,(function(e,r){n.push(new zq({start:e+t,end:r+t}))})),Iq(n)}function Kq(e,t){return e===t}var $q=Vq;var Wq=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,l$.Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object})),qq=Wq;var Gq=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 Zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yq=qq,Xq=lW,Jq=Gq,Qq=(0,l$.Map)(),eG=Jq();function tG(e,t){console.warn("WARNING: "+e+' will be deprecated soon!\nPlease use "'+t+'" instead.')}var nG={getLastCreatedEntityKey:function(){return tG("DraftEntity.getLastCreatedEntityKey","contentState.getLastCreatedEntityKey"),nG.__getLastCreatedEntityKey()},create:function(e,t,n){return tG("DraftEntity.create","contentState.createEntity"),nG.__create(e,t,n)},add:function(e){return tG("DraftEntity.add","contentState.addEntity"),nG.__add(e)},get:function(e){return tG("DraftEntity.get","contentState.getEntity"),nG.__get(e)},__getAll:function(){return Qq},__loadWithEntities:function(e){Qq=e,eG=Jq()},mergeData:function(e,t){return tG("DraftEntity.mergeData","contentState.mergeEntityData"),nG.__mergeData(e,t)},replaceData:function(e,t){return tG("DraftEntity.replaceData","contentState.replaceEntityData"),nG.__replaceData(e,t)},__getLastCreatedEntityKey:function(){return eG},__create:function(e,t,n){return nG.__add(new Yq({type:e,mutability:t,data:n||{}}))},__add:function(e){return eG=Jq(),Qq=Qq.set(eG,e),eG},__get:function(e){var t=Qq.get(e);return t||("production"!==process.env.NODE_ENV?Xq(!1,"Unknown DraftEntity key: %s.",e):Xq(!1)),t},__mergeData:function(e,t){var n=nG.__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){Zq(e,t,n[t])}))}return e}({},n.getData(),t),o=n.set("data",r);return Qq=Qq.set(e,o),o},__replaceData:function(e,t){var n=nG.__get(e).set("data",t);return Qq=Qq.set(e,n),n}},rG=nG;var oG=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,l$.Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1})),iG=oG,aG=function(e){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[e]},sG=new RegExp("\r","g");var cG=function(e){return e.replace(sG,"")};function uG(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){lG(e,t,n[t])}))}return e}function lG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fG=p$,pG=_$,dG=B$,hG=Q$,gG=rG,yG=iG,vG=wW,mG=Pq,bG=aG,wG=l$,xG=cG,_G=wG.List,CG=wG.Record,OG=wG.Repeat,SG=wG.Map,kG=wG.OrderedMap,EG=CG({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}),jG=bG("draft_tree_data_support")?hG:dG,AG=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 gG},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 gG.__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 gG.__create(e,t,n),this},o.mergeEntityData=function(e,t){return gG.__mergeData(e,t),this},o.replaceEntityData=function(e,t){return gG.__replaceData(e,t),this},o.addEntity=function(e){return gG.__add(e),this},o.getEntity=function(e){return gG.__get(e)},o.getAllEntities=function(){return gG.__getAll()},o.loadWithEntities=function(e){return gG.__loadWithEntities(e)},r.createFromBlockArray=function(e,t){var n=Array.isArray(e)?e:e.contentBlocks,o=fG.createFromArray(n),i=o.isEmpty()?new yG:yG.createEmpty(o.first().getKey());return new r({blockMap:o,entityMap:t||gG,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=xG(e),new jG({key:vG(),text:e,type:"unstyled",characterList:_G(OG(pG.EMPTY,e.length))})}));return r.createFromBlockArray(n)},r.fromJS=function(e){return new r(uG({},e,{blockMap:kG(e.blockMap).map(r.createContentBlockFromJS),selectionBefore:new yG(e.selectionBefore),selectionAfter:new yG(e.selectionAfter)}))},r.createContentBlockFromJS=function(e){var t=e.characterList;return new jG(uG({},e,{data:SG(e.data),characterList:null!=t?_G((Array.isArray(t)?t:mG(t)).map((function(e){return pG.fromJS(e)}))):void 0}))},r}(EG),TG=AG,PG=lW,MG="LTR",DG="RTL",RG=null;function NG(e){return e===MG||e===DG}function IG(e){return NG(e)||("production"!==process.env.NODE_ENV?PG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):PG(!1)),e===MG?"ltr":"rtl"}function LG(e){RG=e}var BG={NEUTRAL:"NEUTRAL",LTR:MG,RTL:DG,isStrong:NG,getHTMLDir:IG,getHTMLDirIfDifferent:function(e,t){return NG(e)||("production"!==process.env.NODE_ENV?PG(!1,"`dir` must be a strong direction to be converted to HTML Direction"):PG(!1)),NG(t)||("production"!==process.env.NODE_ENV?PG(!1,"`otherDir` must be a strong direction to be converted to HTML Direction"):PG(!1)),e===t?null:IG(e)},setGlobalDir:LG,initGlobalDir:function(){LG(MG)},getGlobalDir:function(){return RG||this.initGlobalDir(),RG||("production"!==process.env.NODE_ENV?PG(!1,"Global direction not set."):PG(!1)),RG}},FG=BG,zG=lW,HG="־׀׃׆-א-ת-ׯװ-ײ׳-״-߀-߉ߊ-ߪߴ-ߵߺ-߿ࠀ-ࠕࠚࠤࠨ-࠰-࠾ࡀ-ࡘ-࡞-࢟יִײַ-ﬨשׁ-זּטּ-לּמּנּ-סּףּ-פּצּ-ﭏ",VG="؈؋؍؛؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍ܐܒ-ܯ-ݍ-ޥޱ-ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-ﯓ-ﴽ﵀-﵏ﵐ-ﶏ-ﶒ-ﷇ-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴﹶ-ﻼ-",UG=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+HG+VG+"]"),KG=new RegExp("["+HG+VG+"]");function $G(e){var t=UG.exec(e);return null==t?null:t[0]}function WG(e){var t=$G(e);return null==t?FG.NEUTRAL:KG.exec(t)?FG.RTL:FG.LTR}function qG(e,t){if(t=t||FG.NEUTRAL,!e.length)return t;var n=WG(e);return n===FG.NEUTRAL?t:n}function GG(e,t){return t||(t=FG.getGlobalDir()),FG.isStrong(t)||("production"!==process.env.NODE_ENV?zG(!1,"Fallback direction must be a strong direction"):zG(!1)),qG(e,t)}var ZG={firstStrongChar:$G,firstStrongCharDir:WG,resolveBlockDir:qG,getDirection:GG,isDirectionLTR:function(e,t){return GG(e,t)===FG.LTR},isDirectionRTL:function(e,t){return GG(e,t)===FG.RTL}};function YG(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var XG,JG=ZG,QG=BG,eZ=lW,tZ=function(){function e(e){YG(this,"_defaultDir",void 0),YG(this,"_lastDir",void 0),e?QG.isStrong(e)||("production"!==process.env.NODE_ENV?eZ(!1,"Default direction must be a strong direction (LTR or RTL)"):eZ(!1)):e=QG.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=JG.getDirection(e,this._lastDir),this._lastDir},e}(),nZ=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")},rZ=tZ,oZ=l$,iZ=nZ,aZ=oZ.OrderedMap;function sZ(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){cZ(e,t,n[t])}))}return e}function cZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var uZ=$q,lZ=TG,fZ={getDirectionMap:function(e,t){XG?XG.reset():XG=new rZ;var n=e.getBlockMap(),r=n.valueSeq().map((function(e){return iZ(XG).getDirection(e.getText())})),o=aZ(n.keySeq().zip(r));return null!=t&&oZ.is(t,o)?t:o}},pZ=iG,dZ=l$,hZ=dZ.OrderedSet,gZ=dZ.Record,yZ=dZ.Stack,vZ=dZ.OrderedMap,mZ=dZ.List,bZ=gZ({allowUndo:!0,currentContent:null,decorator:null,directionMap:null,forceSelection:!1,inCompositionMode:!1,inlineStyleOverride:null,lastChangeType:null,nativelyRenderedContent:null,redoStack:yZ(),selection:null,treeMap:null,undoStack:yZ()}),wZ=function(){t.createEmpty=function(e){return this.createWithText("",e)},t.createWithText=function(e,n){return t.createWithContent(lZ.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:yZ(),redoStack:yZ(),decorator:n||null,selection:pZ.createEmpty(r)})},t.create=function(e){var n=e.currentContent,r=sZ({},e,{treeMap:_Z(n,e.decorator),directionMap:fZ.getDirectionMap(n)});return new t(new bZ(r))},t.fromJS=function(e){return new t(new bZ(sZ({},e,{directionMap:null!=e.directionMap?vZ(e.directionMap):e.directionMap,inlineStyleOverride:null!=e.inlineStyleOverride?hZ(e.inlineStyleOverride):e.inlineStyleOverride,nativelyRenderedContent:null!=e.nativelyRenderedContent?lZ.fromJS(e.nativelyRenderedContent):e.nativelyRenderedContent,redoStack:null!=e.redoStack?yZ(e.redoStack.map((function(e){return lZ.fromJS(e)}))):e.redoStack,selection:null!=e.selection?new pZ(e.selection):e.selection,treeMap:null!=e.treeMap?vZ(e.treeMap).map((function(e){return mZ(e).map((function(e){return uZ.fromJS(e)}))})):e.treeMap,undoStack:null!=e.undoStack?yZ(e.undoStack.map((function(e){return lZ.fromJS(e)}))):e.undoStack,currentContent:lZ.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 uZ.generate(e,t,r)})))}(i,i.getBlockMap(),s,o,r):_Z(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 uZ.generate(o,e,r)})))}(e,i.getBlockMap(),i.getEntityMap(),o)),t.merge(n)}));return new t(r)};var e=t.prototype;function t(e){cZ(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 CZ(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 CZ(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 xZ(e,t,!1)},t.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),xZ(e,t,!0)},t.moveSelectionToEnd=function(e){var n=e.getCurrentContent().getLastBlock(),r=n.getKey(),o=n.getLength();return t.acceptSelection(e,new pZ({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=fZ.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:yZ(),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=fZ.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=fZ.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 xZ(e,t,n){return wZ.set(e,{selection:t,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function _Z(e,t){return e.getBlockMap().map((function(n){return uZ.generate(e,n,t)})).toOrderedMap()}function CZ(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):hZ()}var OZ=wZ,SZ=Q$,kZ=YW,EZ=l$,jZ=lW,AZ=EZ.OrderedMap,TZ=EZ.List,PZ=function(e,t,n){if(e){var r=t.get(e);r&&t.set(e,n(r))}},MZ=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(),p=i?n.getNextSiblingKey():s,d=i?s:n.getPrevSiblingKey();return e.withMutations((function(e){PZ(c,e,(function(e){var t=e.getChildKeys();return e.merge({children:t.delete(t.indexOf(a))})})),PZ(l,e,(function(e){return e.merge({nextSibling:u})})),PZ(u,e,(function(e){return e.merge({prevSibling:l})})),PZ(p,e,(function(e){return e.merge({prevSibling:a})})),PZ(d,e,(function(e){return e.merge({nextSibling:a})})),PZ(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:TZ(o)})})),PZ(a,e,(function(e){return e.merge({nextSibling:p,prevSibling:d,parent:f})}))}))};function DZ(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){RZ(e,t,n[t])}))}return e}function RZ(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var NZ=p$,IZ=_$,LZ=B$,BZ=Q$,FZ=Tq,zZ=OZ,HZ=wW,VZ=l$,UZ=function(e,t,n,r){"replace"===r&&("production"!==process.env.NODE_ENV?jZ(!1,"Replacing blocks is not supported."):jZ(!1));var o=n.getKey(),i=t.getKey();i===o&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1));var a=e.getBlockMap(),s=t instanceof SZ,c=[t],u=a.delete(i);s&&(c=[],u=a.withMutations((function(e){var n=t.getNextSiblingKey(),r=kZ(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),p=c.map((function(e){return[e.getKey(),e]})),d=AZ();if("before"===r){var h=e.getBlockBefore(o);h&&h.getKey()===t.getKey()&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1)),d=l.concat([].concat(p,[[o,n]]),f).toOrderedMap()}else if("after"===r){var g=e.getBlockAfter(o);g&&g.getKey()===i&&("production"!==process.env.NODE_ENV?jZ(!1,"Block cannot be moved next to itself."):jZ(!1)),d=l.concat([[o,n]].concat(p),f).toOrderedMap()}return e.merge({blockMap:MZ(d,t,n,r,s),selectionBefore:e.getSelectionAfter(),selectionAfter:e.getSelectionAfter().merge({anchorKey:i,focusKey:i})})},KZ=aG("draft_tree_data_support"),$Z=KZ?BZ:LZ,WZ=VZ.List,qZ=VZ.Repeat,GZ={insertAtomicBlock:function(e,t,n){var r=e.getCurrentContent(),o=e.getSelection(),i=FZ.removeRange(r,o,"backward"),a=i.getSelectionAfter(),s=FZ.splitBlock(i,a),c=s.getSelectionAfter(),u=FZ.setBlockType(s,c,"atomic"),l=IZ.create({entity:t}),f={key:HZ(),type:"atomic",text:n,characterList:WZ(qZ(l,n.length))},p={key:HZ(),type:"unstyled"};KZ&&(f=DZ({},f,{nextSibling:p.key}),p=DZ({},p,{prevSibling:f.key}));var d=[new $Z(f),new $Z(p)],h=NZ.createFromArray(d),g=FZ.replaceWithFragment(u,c,h),y=g.merge({selectionBefore:o,selectionAfter:g.getSelectionAfter().set("hasFocus",!0)});return zZ.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=UZ(i,t,s,r)}else{var c=FZ.removeRange(i,n,"backward"),u=c.getSelectionAfter(),l=c.getBlockForKey(u.getFocusKey());if(0===u.getStartOffset())o=UZ(c,t,l,"before");else if(u.getEndOffset()===l.getLength())o=UZ(c,t,l,"after");else{var f=FZ.splitBlock(c,u),p=f.getSelectionAfter(),d=f.getBlockForKey(p.getFocusKey());o=UZ(f,t,d,"before")}}var h=o.merge({selectionBefore:a,selectionAfter:o.getSelectionAfter().set("hasFocus",!0)});return zZ.push(e,h,"move-block")}};var ZZ=l$.List,YZ=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)})),ZZ(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 XZ=YZ;function JZ(e){return e.replace(/\//g,"-")}var QZ=function(e){return"object"==typeof e?Object.keys(e).filter((function(t){return e[t]})).map(JZ).join(" "):Array.prototype.map.call(arguments,JZ).join(" ")},eY=t,tY=QZ,nY=(0,l$.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:eY.createElement("ul",{className:tY("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:eY.createElement("ol",{className:tY("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:eY.createElement("pre",{className:tY("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}}),rY={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}},oY={};!function(e,t){!function(n,r){var o="function",i="undefined",a="object",s="string",c="model",u="name",l="type",f="vendor",p="version",d="architecture",h="console",g="mobile",y="tablet",v="smarttv",m="wearable",b="embedded",w="Amazon",x="Apple",_="ASUS",C="BlackBerry",O="Browser",S="Chrome",k="Firefox",E="Google",j="Huawei",A="LG",T="Microsoft",P="Motorola",M="Opera",D="Samsung",R="Sharp",N="Sony",I="Xiaomi",L="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)},U=function(e,t){for(var n,i,s,c,u,l,f=0;f<t.length&&!u;){var p=t[f],d=t[f+1];for(n=i=0;n<p.length&&!u;)if(u=p[n++].exec(e))for(s=0;s<d.length;s++)l=u[++i],typeof(c=d[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}},K=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],[p,[u,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[p,[u,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[u,p],[/opios[\/ ]+([\w\.]+)/i],[p,[u,M+" Mini"]],[/\bopr\/([\w\.]+)/i],[p,[u,M]],[/(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,p],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[p,[u,"UC"+O]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[p,[u,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[p,[u,"WeChat"]],[/konqueror\/([\w\.]+)/i],[p,[u,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[p,[u,"IE"]],[/yabrowser\/([\w\.]+)/i],[p,[u,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[u,/(.+)/,"$1 Secure "+O],p],[/\bfocus\/([\w\.]+)/i],[p,[u,k+" Focus"]],[/\bopt\/([\w\.]+)/i],[p,[u,M+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[p,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[p,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[p,[u,M+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[p,[u,"MIUI "+O]],[/fxios\/([-\w\.]+)/i],[p,[u,k]],[/\bqihu|(qi?ho?o?|360)browser/i],[[u,"360 "+O]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[u,/(.+)/,"$1 "+O],p],[/(comodo_dragon)\/([\w\.]+)/i],[[u,/_/g," "],p],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[u,p],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[u],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[u,B],p],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[u,p],[/\bgsa\/([\w\.]+) .*safari\//i],[p,[u,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[p,[u,S+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[u,S+" WebView"],p],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[p,[u,"Android "+O]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[u,p],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[p,[u,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[p,u],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[u,[p,K,{"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,p],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[u,"Netscape"],p],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[p,[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,p],[/(cobalt)\/([\w\.]+)/i],[u,[p,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[d,"amd64"]],[/(ia32(?=;))/i],[[d,H]],[/((?:i[346]|x)86)[;\)]/i],[[d,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[d,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[d,"armhf"]],[/windows (ce|mobile); ppc;/i],[[d,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[d,/ower/,"",H]],[/(sun4\w)[;\)]/i],[[d,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[d,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,P],[l,g]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[f,P],[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,N],[l,g]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[f,N],[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,C],[l,g]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[f,_],[l,y]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[f,_],[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,R],[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,L],[l,y]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[f,L],[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,N],[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,S+"cast"],[f,E],[l,v]],[/droid.+aft(\w)( bui|\))/i],[c,[f,w],[l,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[f,R],[l,v]],[/(bravia[\w ]+)( bui|\))/i],[c,[f,N],[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,L],[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],[p,[u,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[p,[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,p],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[p,u]],os:[[/microsoft (windows) (vista|xp)/i],[u,p],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[u,[p,K,$]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[u,"Windows"],[p,K,$]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[p,/_/g,"."],[u,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[u,"Mac OS"],[p,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[p,u],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[u,p],[/\(bb(10);/i],[p,[u,C]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[p,[u,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[p,[u,k+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[p,[u,"webOS"]],[/crkey\/([\d\.]+)/i],[p,[u,S+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[u,"Chromium OS"],p],[/(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,p],[/(sunos) ?([\w\.\d]*)/i],[[u,"Solaris"],p],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[u,p]]},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[p]=r,U.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[d]=r,U.call(e,o,h.cpu),e},this.getDevice=function(){var e={};return e[f]=r,e[c]=r,e[l]=r,U.call(e,o,h.device),e},this.getEngine=function(){var e={};return e[u]=r,e[p]=r,U.call(e,o,h.engine),e},this.getOS=function(){var e={};return e[u]=r,e[p]=r,U.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,p,"major"]),q.CPU=F([d]),q.DEVICE=F([c,f,l,h,g,v,y,m,b]),q.ENGINE=q.OS=F([u,p]),e.exports&&(t=e.exports=q),t.UAParser=q;var G=typeof n!==i&&(n.jQuery||n.Zepto);if(G&&!G.ua){var Z=new q;G.ua=Z.getResult(),G.ua.get=function(){return Z.getUA()},G.ua.set=function(e){Z.setUA(e);var t=Z.getResult();for(var n in t)G.ua[n]=t[n]}}}("object"==typeof window?window:s)}({get exports(){return oY},set exports(e){oY=e}},oY);var iY="Unknown",aY={"Mac OS":"Mac OS X"};var sY,cY=(new oY).getResult(),uY=function(e){if(!e)return{major:"",minor:""};var t=e.split(".");return{major:t[0],minor:t[1]}}(cY.browser.version),lY={browserArchitecture:cY.cpu.architecture||iY,browserFullVersion:cY.browser.version||iY,browserMinorVersion:uY.minor||iY,browserName:cY.browser.name||iY,browserVersion:cY.browser.major||iY,deviceName:cY.device.model||iY,engineName:cY.engine.name||iY,engineVersion:cY.engine.version||iY,platformArchitecture:cY.cpu.architecture||iY,platformName:(sY=cY.os.name,aY[sY]||sY||iY),platformVersion:cY.os.version||iY,platformFullVersion:cY.os.version||iY},fY=lW,pY=/\./,dY=/\|\|/,hY=/\s+\-\s+/,gY=/^(<=|<|=|>=|~>|~|>|)?\s*(.+)/,yY=/^(\d*)(.*)/;function vY(e,t){var n=e.split(dY);return n.length>1?n.some((function(e){return jY.contains(e,t)})):function(e,t){var n=e.split(hY);if(n.length>0&&n.length<=2||("production"!==process.env.NODE_ENV?fY(!1,'the "-" operator expects exactly 2 operands'):fY(!1)),1===n.length)return mY(n[0],t);var r=n[0],o=n[1];return CY(r)&&CY(o)||("production"!==process.env.NODE_ENV?fY(!1,'operands to the "-" operator must be simple (no modifiers)'):fY(!1)),mY(">="+r,t)&&mY("<="+o,t)}(e=n[0].trim(),t)}function mY(e,t){if(""===(e=e.trim()))return!0;var n=t.split(pY),r=xY(e),o=r.modifier,i=r.rangeComponents;switch(o){case"<":return bY(n,i);case"<=":return function(e,t){var n=EY(e,t);return-1===n||0===n}(n,i);case">=":return wY(n,i);case">":return function(e,t){return 1===EY(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);_Y(i)&&(r[o]=i+1+"");return wY(e,n)&&bY(e,r)}(n,i);default:return function(e,t){return 0===EY(e,t)}(n,i)}}function bY(e,t){return-1===EY(e,t)}function wY(e,t){var n=EY(e,t);return 1===n||0===n}function xY(e){var t=e.split(pY),n=t[0].match(gY);return n||("production"!==process.env.NODE_ENV?fY(!1,"expected regex to match but it did not"):fY(!1)),{modifier:n[1],rangeComponents:[n[2]].concat(t.slice(1))}}function _Y(e){return!isNaN(e)&&isFinite(e)}function CY(e){return!xY(e).modifier}function OY(e,t){for(var n=e.length;n<t;n++)e[n]="0"}function SY(e,t){var n=e.match(yY)[1],r=t.match(yY)[1],o=parseInt(n,10),i=parseInt(r,10);return _Y(o)&&_Y(i)&&o!==i?kY(o,i):kY(e,t)}function kY(e,t){return typeof e!=typeof t&&("production"!==process.env.NODE_ENV?fY(!1,'"a" and "b" must be of the same type'):fY(!1)),e>t?1:e<t?-1:0}function EY(e,t){for(var n=function(e,t){OY(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 OY(t,e.length),[e,t]}(e,t),r=n[0],o=n[1],i=0;i<o.length;i++){var a=SY(r[i],o[i]);if(a)return a}return 0}var jY={contains:function(e,t){return vY(e.trim(),t.trim())}},AY=jY,TY=Object.prototype.hasOwnProperty;var PY=function(e,t,n){if(!e)return null;var r={};for(var o in e)TY.call(e,o)&&(r[o]=t.call(n,e[o],o,e));return r};var MY=function(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}},DY=lY,RY=AY;function NY(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,RY.contains(o,t))}function IY(e){return"Windows"===DY.platformName?e.replace(/^\s*NT/,""):e}var LY=PY({isBrowser:function(e){return NY(DY.browserName,DY.browserFullVersion,e)},isBrowserArchitecture:function(e){return NY(DY.browserArchitecture,null,e)},isDevice:function(e){return NY(DY.deviceName,null,e)},isEngine:function(e){return NY(DY.engineName,DY.engineVersion,e)},isPlatform:function(e){return NY(DY.platformName,DY.platformFullVersion,e,IY)},isPlatformArchitecture:function(e){return NY(DY.platformArchitecture,null,e)}},MY);var BY=function(e){return e&&e.ownerDocument?e.ownerDocument:document};var FY=function(e){return!(!e||!e.ownerDocument)&&e.nodeType===Node.ELEMENT_NODE},zY=FY;var HY=function e(t){if(zY(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},VY=BY,UY=HY;var KY=function(e){for(var t=e;t&&t!==VY(e).documentElement;){var n=UY(t);if(null!=n)return n;t=t.parentNode}return null};var $Y=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window};function WY(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var qY=LY,GY=KY,ZY=$Y,YY=lW,XY=nZ,JY=l$.Map,QY={subtree:!0,characterData:!0,childList:!0,characterDataOldValue:!1,attributes:!1},eX=qY.isBrowser("IE <= 11"),tX=function(){function e(e){var t=this;WY(this,"observer",void 0),WY(this,"container",void 0),WY(this,"mutations",void 0),WY(this,"onCharData",void 0),this.container=e,this.mutations=JY();var n=ZY(e);n.MutationObserver&&!eX?this.observer=new n.MutationObserver((function(e){return t.registerMutations(e)})):this.onCharData=function(e){e.target instanceof Node||("production"!==process.env.NODE_ENV?YY(!1,"Expected target to be an instance of Node"):YY(!1)),t.registerMutation({type:"characterData",target:e.target})}}var t=e.prototype;return t.start=function(){this.observer?this.observer.observe(this.container,QY):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=JY(),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 eX?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=XY(GY(e.target));this.mutations=this.mutations.set(n,t)}},e}(),nX="-",rX={encode:function(e,t,n){return e+nX+t+nX+n},decode:function(e){var t=e.split(nX).reverse(),n=t[0],r=t[1];return{blockKey:t.slice(2).reverse().join(nX),decoratorKey:parseInt(r,10),leafKey:parseInt(n,10)}}},oX={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},iX={logBlockedSelectionEvent:function(){return null},logSelectionStateFailure:function(){return null}};var aX=function(e){return!(!e||!e.ownerDocument)&&(e.ownerDocument.defaultView?e instanceof e.ownerDocument.defaultView.HTMLElement:e instanceof HTMLElement)},sX=lW,cX=aX;var uX=function(e){var t=e.editorContainer;return t||("production"!==process.env.NODE_ENV?sX(!1,"Missing editorNode"):sX(!1)),cX(t.firstChild)||("production"!==process.env.NODE_ENV?sX(!1,"editorNode.firstChild is not an HTMLElement"):sX(!1)),t.firstChild},lX=rX,fX=nZ;var pX=function(e,t,n,r,o){var i=fX(e.getSelection());if(!t||!r)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var a=lX.decode(t),s=a.blockKey,c=e.getBlockTree(s),u=c&&c.getIn([a.decoratorKey,"leaves",a.leafKey]),l=lX.decode(r),f=l.blockKey,p=e.getBlockTree(f),d=p&&p.getIn([l.decoratorKey,"leaves",l.leafKey]);if(!u||!d)return"production"!==process.env.NODE_ENV&&console.warn("Invalid selection state.",arguments,e.toJS()),i;var h=u.get("start"),g=d.get("start"),y=u?h+n:null,v=d?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=d.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})},dX=KY,hX=HY,gX=pX,yX=lW,vX=FY,mX=nZ;function bX(e,t,n){var r=t,o=dX(r);(null!=o||e&&(e===r||e.firstChild===r)||("production"!==process.env.NODE_ENV?yX(!1,"Unknown node in selection range."):yX(!1)),e===r)&&(r=r.firstChild,vX(r)||("production"!==process.env.NODE_ENV?yX(!1,"Invalid DraftEditorContents node."):yX(!1)),"true"!==(r=r).getAttribute("data-contents")&&("production"!==process.env.NODE_ENV?yX(!1,"Invalid DraftEditorContents structure."):yX(!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&&(vX(e.firstChild)&&"true"===e.firstChild.getAttribute("data-blocks")||hX(e.firstChild));)e=e.firstChild;return e}(r);i=mX(hX(a))}return{key:i,offset:0}}var s=r.childNodes[n-1],c=null,u=null;if(hX(s)){var l=function(e){for(;e.lastChild&&(vX(e.lastChild)&&"true"===e.lastChild.getAttribute("data-blocks")||hX(e.lastChild));)e=e.lastChild;return e}(s);c=mX(hX(l)),u=wX(l)}else c=mX(o),u=wX(s);return{key:c,offset:u}}function wX(e){var t=e.textContent;return"\n"===t?0:t.length}var xX=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:gX(e,mX(dX(n)),r,mX(dX(o)),i),needsRecovery:!1};var c=null,u=null,l=!0;return a?(c={key:mX(dX(n)),offset:r},u=bX(t,o,i)):s?(u={key:mX(dX(o)),offset:i},c=bX(t,n,r)):(c=bX(t,n,r),u=bX(t,o,i),n===o&&r===i&&(l=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:gX(e,c.key,c.offset,u.key,u.offset),needsRecovery:l}},_X=xX;var CX=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}:_X(e,t,r,o,i,a)},OX=iX,SX=OZ,kX=uX,EX=CX;var jX=function(e){if(e._blockSelectEvents||e._latestEditorState!==e.props.editorState){if(e._blockSelectEvents){var t=e.props.editorState.getSelection();OX.logBlockedSelectionEvent({anonymizedDom:"N/A",extraParams:JSON.stringify({stacktrace:(new Error).stack}),selectionState:JSON.stringify(t.toJS())})}}else{var n=e.props.editorState,r=EX(n,kX(e)),o=r.selectionState;o!==n.getSelection()&&(n=r.needsRecovery?SX.forceSelection(n,o):SX.acceptSelection(n,o),e.update(n))}};var AX={notEmptyKey:function(e){return null!=e&&""!=e}},TX=AX.notEmptyKey;function PX(e,t){return TX(t)&&"MUTABLE"===e.__get(t).getMutability()?t:null}var MX=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:PX(e.getEntityMap(),n):null}var i=t.getStartKey(),a=t.getStartOffset(),s=e.getBlockForKey(i);return n=a===s.getLength()?null:s.getEntityAt(a),PX(e.getEntityMap(),n)},DX=tX,RX=Tq,NX=rX,IX=OZ,LX=oX,BX=jX,FX=uX,zX=CX,HX=MX,VX=nZ,UX=LY.isBrowser("IE"),KX=!1,$X=!1,WX=null;var qX,GX,ZX={onCompositionStart:function(e){$X=!0,function(e){WX||(WX=new DX(FX(e))).start()}(e)},onCompositionEnd:function(e){KX=!1,$X=!1,setTimeout((function(){KX||ZX.resolveComposition(e)}),20)},onSelect:BX,onKeyDown:function(e,t){if(!$X)return ZX.resolveComposition(e),void e._onKeyDown(t);t.which!==LX.RIGHT&&t.which!==LX.LEFT||t.preventDefault()},onKeyPress:function(e,t){t.which===LX.RETURN&&t.preventDefault()},resolveComposition:function(e){if(!$X){var t=VX(WX).stopAndFlushMutations();WX=null,KX=!0;var n=IX.set(e._latestEditorState,{inCompositionMode:!1});if(e.exitCurrentMode(),t.size){var r=n.getCurrentContent();t.forEach((function(e,t){var o=NX.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}),p=HX(r,f),d=r.getBlockForKey(i).getInlineStyleAt(u);r=RX.replaceText(r,f,e,d,p),n=IX.set(n,{currentContent:r})}));var o=zX(n,FX(e)).selectionState;e.restoreEditorDOM();var i=UX?IX.forceSelection(n,o):IX.acceptSelection(n,o);e.update(IX.push(i,r,"insert-characters"))}else e.update(n)}}},YX=ZX;function XX(){if(GX)return qX;GX=1;var e=jg;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=rX,o=t,i=ZG,a=BG,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,p=e.leafSet,d=e.text,h=t.getKey(),g=p.get("leaves"),y=u.getComponentForKey(l),v=u.getPropsForKey(l),m=r.encode(h,parseInt(l,10),0),b=d.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(p.get("start")),offsetKey:m}),s)},c}(o.Component);return qX=s}function JX(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QX(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var eJ=t,tJ=lW,nJ=FY,rJ=LY.isBrowser("IE <= 11");var oJ=function(e){var t,n;function r(t){var n;return QX(JX(n=e.call(this,t)||this),"_forceFlag",void 0),QX(JX(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;nJ(t)||("production"!==process.env.NODE_ENV?tJ(!1,"node is not an Element"):tJ(!1));var r=t;return n?!function(e){return rJ?"\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},rJ?eJ.createElement("span",{key:"A","data-text":"true",ref:e},"\n"):eJ.createElement("br",{key:"A","data-text":"true",ref:e})):function(e){return rJ?eJ.createElement("span",{key:"B","data-text":"true",ref:e},"\n"):eJ.createElement("br",{key:"B","data-text":"true",ref:e})}((function(e){return t._node=e})):eJ.createElement("span",{key:this._forceFlag?"A":"B","data-text":"true",ref:function(e){return t._node=e}},this.props.children)},r}(eJ.Component),iJ=oJ,aJ=FY;var sJ=function(e){return!(!e||!e.ownerDocument)&&(aJ(e)&&"BR"===e.nodeName)};var cJ=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))},uJ=cJ;var lJ=function(e){return uJ(e)&&3==e.nodeType},fJ=lJ;var pJ=function e(t,n){return!(!t||!n)&&(t===n||!fJ(t)&&(fJ(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))};var dJ=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}},hJ=iX,gJ=pJ,yJ=dJ,vJ=BY,mJ=lW,bJ=FY,wJ=LY.isBrowser("IE");function xJ(e,t){if(!e)return"[empty]";var n=_J(e,t);return n.nodeType===Node.TEXT_NODE?n.textContent:(bJ(n)||("production"!==process.env.NODE_ENV?mJ(!1,"Node must be an Element if it is not a text node."):mJ(!1)),n.outerHTML)}function _J(e,t){var n=void 0!==t?t(e):[];if(e.nodeType===Node.TEXT_NODE){var r=e.textContent.length;return vJ(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(_J(i[a],t));return o}function CJ(e,t){for(var n=e,r=n;n;){if(bJ(n)&&r.hasAttribute("contenteditable"))return xJ(n,t);r=n=n.parentNode}return"Could not find contentEditable parent of node"}function OJ(e){return null===e.nodeValue?e.childNodes.length:e.nodeValue.length}function SJ(e,t,n,r){var o=yJ();if(e.extend&&null!=t&&gJ(o,t)){n>OJ(t)&&hJ.logSelectionStateFailure({anonymizedDom:CJ(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 hJ.logSelectionStateFailure({anonymizedDom:CJ(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 kJ(e,t,n,r){var o=vJ(t).createRange();if(n>OJ(t)&&hJ.logSelectionStateFailure({anonymizedDom:CJ(t),extraParams:JSON.stringify({offset:n}),selectionState:JSON.stringify(r.toJS())}),o.setStart(t,n),wJ)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 EJ=function(e,t,n,r,o){var i=vJ(t);if(gJ(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 p=s,d=c;s=u,c=l,u=p,l=d,f=!1}var h=s===n&&r<=c&&o>=c,g=u===n&&r<=l&&o>=l;if(h&&g)return a.removeAllRanges(),kJ(a,t,c-r,e),void SJ(a,t,l-r,e);if(f){if(g&&(a.removeAllRanges(),kJ(a,t,l-r,e)),h){var y=a.focusNode,v=a.focusOffset;a.removeAllRanges(),kJ(a,t,c-r,e),SJ(a,y,v,e)}}else h&&(a.removeAllRanges(),kJ(a,t,c-r,e)),g&&SJ(a,t,l-r,e)}},jJ=jg;var AJ,TJ,PJ=iJ,MJ=t,DJ=lW,RJ=sJ,NJ=EJ,IJ=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?DJ(!1,"Missing node"):DJ(!1));var c,u=s.firstChild;u||("production"!==process.env.NODE_ENV?DJ(!1,"Missing child"):DJ(!1)),u.nodeType===Node.TEXT_NODE?c=u:RJ(u)?c=s:(c=u.firstChild)||("production"!==process.env.NODE_ENV?DJ(!1,"Missing targetNode"):DJ(!1)),NJ(e,c,i,r,a)}}},o.shouldComponentUpdate=function(e){var t=this.leaf;return t||("production"!==process.env.NODE_ENV?DJ(!1,"Missing leafNode"):DJ(!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()),jJ(e,r,n)}),{});if(i){var u=i(s,t);c=jJ(c,u)}return MJ.createElement("span",{"data-offset-key":a,ref:function(t){return e.leaf=t},style:c},MJ.createElement(PJ,null,n))},r}(MJ.Component),LJ=IJ;function BJ(){if(TJ)return AJ;TJ=1;var e=XX(),n=LJ,r=rX,o=t,i=QZ;l$.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,p=t.forceSelection,d=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:d?h:null,forceSelection:p,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 AJ=a}function FJ(e,t){return!!t&&(e===t.documentElement||e===t.body)}var zJ={getTop:function(e){var t=e.ownerDocument;return FJ(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var n=e.ownerDocument;FJ(e,n)?n.body.scrollTop=n.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return FJ(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var n=e.ownerDocument;FJ(e,n)?n.body.scrollLeft=n.documentElement.scrollLeft=t:e.scrollLeft=t}},HJ=/-(.)/g;var VJ=function(e){return e.replace(HJ,(function(e,t){return t.toUpperCase()}))},UJ=/([A-Z])/g;var KJ=function(e){return e.replace(UJ,"-$1").toLowerCase()},$J=VJ,WJ=KJ;function qJ(e){return null==e?e:String(e)}var GJ=function(e,t){var n;if(window.getComputedStyle&&(n=window.getComputedStyle(e,null)))return qJ(n.getPropertyValue(WJ(t)));if(document.defaultView&&document.defaultView.getComputedStyle){if(n=document.defaultView.getComputedStyle(e,null))return qJ(n.getPropertyValue(WJ(t)));if("display"===t)return"none"}return e.currentStyle?qJ("float"===t?e.currentStyle.cssFloat||e.currentStyle.styleFloat:e.currentStyle[$J(t)]):qJ(e.style&&e.style[$J(t)])};function ZJ(e,t){var n=YJ.get(e,t);return"auto"===n||"scroll"===n}var YJ={get:GJ,getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(ZJ(e,"overflow")||ZJ(e,"overflowY")||ZJ(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}},XJ=YJ,JJ=pJ;var QJ=function(e){var t=e.ownerDocument.documentElement;if(!("getBoundingClientRect"in e)||!JJ(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 eQ=function(e){var t=QJ(e);return{x:t.left,y:t.top,width:t.right-t.left,height:t.bottom-t.top}},tQ="undefined"!=typeof navigator&&navigator.userAgent.indexOf("AppleWebKit")>-1;var nQ=function(e){return(e=e||document).scrollingElement?e.scrollingElement:tQ||"CSS1Compat"!==e.compatMode?e.body:e.documentElement},rQ=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 oQ=function(e){var t=nQ(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var n=rQ(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 iQ(){var e;return document.documentElement&&(e=document.documentElement.clientWidth),!e&&document.body&&(e=document.body.clientWidth),e||0}function aQ(){var e;return document.documentElement&&(e=document.documentElement.clientHeight),!e&&document.body&&(e=document.body.clientHeight),e||0}function sQ(){return{width:window.innerWidth||iQ(),height:window.innerHeight||aQ()}}sQ.withoutScrollbars=function(){return{width:iQ(),height:aQ()}};var cQ,uQ,lQ,fQ,pQ=sQ;function dQ(){if(uQ)return cQ;uQ=1;var e=jg;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=BJ(),a=rX,s=t,c=zJ,u=XJ,l=eQ,f=oQ,p=pQ,d=lW,h=aX;l$.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-p().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{h(n)||("production"!==process.env.NODE_ENV?d(!1,"blockNode is not an HTMLElement"):d(!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,p=t.decorator,d=t.editorKey,h=t.editorState,b=t.customStyleFn,x=t.customStyleMap,_=t.direction,C=t.forceSelection,O=t.selection,S=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),p=v(i,u),g=p.CustomComponent||w,b=y(i,c),x=b.Element,_=b.wrapperTemplate,C=m(i,d,o,l,p,null),O=r({},e.props,{tree:h.getBlockTree(n),blockProps:p.customProps,offsetKey:o,block:i});return t.push(s.createElement(x,C,s.createElement(g,O))),!_||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 p=r.reverse(),d=p[0].key;n.push(s.cloneElement(e,{key:"".concat(d,"-wrap"),"data-offset-key":a.encode(d,0,0)},p))}(_,x,t),t}),[]));var E=o.getKey(),j=a.encode(E,0,0),A=v(o,u),T=A.CustomComponent,P=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:p,direction:_,forceSelection:C,hasSelection:g(O,E),selection:O,tree:S});if(o.getParentKey())return P;var M=y(o,c).Element,D=m(o,d,j,l,A,this.wrapperRef);return s.createElement(M,D,P)},w}(s.Component);return cQ=b}var hQ=jg;function gQ(){return gQ=hQ||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},gQ.apply(this,arguments)}var yQ,vQ,mQ,bQ,wQ=LJ,xQ=rX,_Q=t,CQ=zJ,OQ=XJ,SQ=ZG,kQ=BG,EQ=QZ,jQ=eQ,AQ=oQ,TQ=pQ,PQ=lW,MQ=aX,DQ=nZ,RQ=function(e,t){return e.getAnchorKey()===t||e.getFocusKey()===t},NQ=function(e){var t,n;function r(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return 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||RQ(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=OQ.getScrollParent(n),i=AQ(o);if(o===window){var a=jQ(n);(r=a.y+a.height-TQ().height)>0&&window.scrollTo(i.x,i.y+r+10)}else{MQ(n)||("production"!==process.env.NODE_ENV?PQ(!1,"blockNode is not an HTMLElement"):PQ(!1)),(r=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+i.y))>0&&CQ.setTop(o,CQ.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=RQ(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=xQ.encode(n,s,c),f=a.get("start"),p=a.get("end");return _Q.createElement(wQ,{key:l,offsetKey:l,block:t,start:f,selection:i?e.props.selection:null,forceSelection:e.props.forceSelection,text:r.slice(f,p),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 p=DQ(e.props.decorator),d=p.getComponentForKey(f);if(!d)return l;var h=p.getPropsForKey(f),g=xQ.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=kQ.getHTMLDirIfDifferent(SQ.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 _Q.createElement(d,gQ({},h,x,{key:g}),l)})).toArray()},o.render=function(){var e=this,t=this.props,n=t.direction,r=t.offsetKey,o=EQ({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return _Q.createElement("div",{"data-offset-key":r,className:o,ref:function(t){return e._node=t}},this._renderChildren())},r}(_Q.Component),IQ=NQ;var LQ=aG("draft_tree_data_support")?function(){if(fQ)return lQ;fQ=1;var e=jg;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=dQ(),o=rX,i=t,a=nZ,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,p=e.editorKey,d=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(),_={blockRenderMap:t,blockRendererFn:s,blockStyleFn:c,contentState:h,customStyleFn:l,customStyleMap:u,decorator:v,editorKey:p,editorState:f,forceSelection:y,selection:g,block:w,direction:d||m.get(x),tree:f.getBlockTree(x)},C=(t.get(w.getType())||t.get("unstyled")).wrapper;b.push({block:i.createElement(r,n({key:x},_)),wrapperTemplate:C,key:x,offsetKey:o.encode(x,0,0)});var O=w.getNextSiblingKey();w=O?h.getBlockForKey(O):null}for(var S=[],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);S.push(A)}else S.push(E.block),k++}return i.createElement("div",{"data-contents":"true"},S)},c}(i.Component);return lQ=s}():function(){if(bQ)return mQ;bQ=1;var e=jg;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=IQ,a=rX,s=t,c=QZ,u=(vQ||(vQ=1,yQ=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}),yQ),l=nZ,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})},p=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 p=c.prototype;return p.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()},p.render=function(){for(var e=this.props,t=e.blockRenderMap,o=e.blockRendererFn,c=e.blockStyleFn,p=e.customStyleMap,d=e.customStyleFn,h=e.editorState,g=e.editorKey,y=e.preventScroll,v=e.textDirectionality,m=h.getCurrentContent(),b=h.getSelection(),w=h.mustForceSelection(),x=h.getDecorator(),_=l(h.getDirectionMap()),C=m.getBlocksAsArray(),O=[],S=null,k=null,E=0;E<C.length;E++){var j=C[E],A=j.getKey(),T=j.getType(),P=o(j),M=void 0,D=void 0,R=void 0;P&&(M=P.component,D=P.props,R=P.editable);var N=v||_.get(A),I=a.encode(A,0,0),L={contentState:m,block:j,blockProps:D,blockStyleFn:c,customStyleMap:p,customStyleFn:d,decorator:x,direction:N,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===S||H>S,N));var U=M||i,K={className:V,"data-block":!0,"data-editor":g,"data-offset-key":I,key:A};void 0!==R&&(K=r({},K,{contentEditable:R,suppressContentEditableWarning:!0}));var $=s.createElement(z,K,s.createElement(U,n({},L,{key:A})));O.push({block:$,wrapperTemplate:F,key:A,offsetKey:I}),S=F?j.getDepth():null,k=F}for(var W=[],q=0;q<O.length;){var G=O[q];if(G.wrapperTemplate){var Z=[];do{Z.push(O[q].block),q++}while(q<O.length&&O[q].wrapperTemplate===G.wrapperTemplate);var Y=s.cloneElement(G.wrapperTemplate,{key:G.key+"-wrap","data-offset-key":G.offsetKey},Z);W.push(Y)}else W.push(G.block),q++}return s.createElement("div",{"data-contents":"true"},W)},c}(s.Component);return mQ=p}(),BQ={isImage:function(e){return"image"===FQ(e)[0]},isJpeg:function(e){var t=FQ(e);return BQ.isImage(e)&&("jpeg"===t[1]||"pjpeg"===t[1])}};function FQ(e){return e.split("/")}var zQ=BQ,HQ=lW;var VQ=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?HQ(!1,"toArray: Array-like object expected"):HQ(!1)),"number"!=typeof t&&("production"!==process.env.NODE_ENV?HQ(!1,"toArray: Object needs a length property"):HQ(!1)),0===t||t-1 in e||("production"!==process.env.NODE_ENV?HQ(!1,"toArray: Object should have keys for indices"):HQ(!1)),"function"==typeof e.callee&&("production"!==process.env.NODE_ENV?HQ(!1,"toArray: Object can't be `arguments`. Use rest params (function(...args) {}) or Array.from() instead."):HQ(!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 UQ(e){return function(){return e}}var KQ=function(){};KQ.thatReturns=UQ,KQ.thatReturnsFalse=UQ(!1),KQ.thatReturnsTrue=UQ(!0),KQ.thatReturnsNull=UQ(null),KQ.thatReturnsThis=function(){return this},KQ.thatReturnsArgument=function(e){return e};var $Q=KQ,WQ=zQ,qQ=VQ,GQ=$Q,ZQ=new RegExp("\r\n","g"),YQ={"text/rtf":1,"text/html":1};function XQ(e){if("file"==e.kind)return e.getAsFile()}var JQ=function(){function e(e){this.data=e,this.types=e.types?qQ(e.types):[]}var t=e.prototype;return t.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(e){return YQ[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(ZQ,"\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(!WQ.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(XQ).filter(GQ.thatReturnsArgument):this.data.files?Array.prototype.slice.call(this.data.files):[]},t.hasFiles=function(){return this.getFiles().length>0},e}(),QQ=JQ,e1=lW,t1=/\.textClipping$/,n1={"text/plain":!0,"text/html":!0,"text/rtf":!0},r1=5e3;var o1=function(e,t){var n=0,r=[];e.forEach((function(o){!function(e,t){if(!s.FileReader||e.type&&!(e.type in n1))return void t("");if(""===e.type){var n="";return t1.test(e.name)&&(n=e.name.replace(t1,"")),void t(n)}var r=new FileReader;r.onload=function(){var e=r.result;"string"!=typeof e&&("production"!==process.env.NODE_ENV?e1(!1,'We should be calling "FileReader.readAsText" which returns a string'):e1(!1)),t(e)},r.onerror=function(){t("")},r.readAsText(e)}(o,(function(o){n++,o&&r.push(o.slice(0,r1)),n==e.length&&t(r.join("\r"))}))}))};var i1=function(e){return"handled"===e||!0===e},a1=QQ,s1=Tq,c1=OZ,u1=KY,l1=BY,f1=o1,p1=pX,d1=$Y,h1=i1,g1=nZ;var y1={onDragEnd:function(e){e.exitCurrentMode(),v1(e)},onDrop:function(e,t){var n=new a1(t.nativeEvent.dataTransfer),r=e._latestEditorState,o=function(e,t){var n=null,r=null,o=l1(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=g1(n),r=g1(r);var a=g1(u1(n));return p1(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&&h1(e.props.handleDroppedFiles(o,i)))return;f1(i,(function(t){t&&e.update(m1(r,o,t))}))}else{var a=e._internalDrag?"internal":"external";e.props.handleDrop&&h1(e.props.handleDrop(o,n,a))||(e._internalDrag?e.update(function(e,t){var n=s1.moveText(e.getCurrentContent(),e.getSelection(),t);return c1.push(e,n,"insert-fragment")}(r,o)):e.update(m1(r,o,n.getText()))),v1(e)}}}};function v1(e){e._internalDrag=!1;var t=e.editorContainer;if(t){var n=new MouseEvent("mouseup",{view:d1(t),bubbles:!0,cancelable:!0});t.dispatchEvent(n)}}function m1(e,t,n){var r=s1.insertText(e.getCurrentContent(),t,n,e.getCurrentInlineStyle());return c1.push(e,r,"insert-fragment")}var b1=y1;var w1=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(){d(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){d(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(){d(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):n=function(e){setTimeout(d,0,e)}:(i="setImmediate$"+Math.random()+"$",a=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+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=p}function p(e){delete c[e]}function d(e){if(u)setTimeout(d,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{p(e),u=!1}}}}}("undefined"==typeof self?s:self);var x1=s.setImmediate,_1=Tq,C1=OZ,O1=MX,S1=i1,k1=w1,E1=nZ,j1=x1,A1="'",T1="/",P1=LY.isBrowser("Firefox");function M1(e,t,n,r,o){var i=_1.replaceText(e.getCurrentContent(),e.getSelection(),t,n,r);return C1.push(e,i,"insert-characters",o)}var D1=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&&S1(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(M1(n,r,n.getCurrentInlineStyle(),O1(n.getCurrentContent(),n.getSelection()),!0));var s,c=M1(n,r,n.getCurrentInlineStyle(),O1(n.getCurrentContent(),n.getSelection()),!1),u=!1;if(u||(u=k1(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=P1&&(s==A1||s==T1)),u||(u=E1(c.getDirectionMap()).get(a)!==E1(n.getDirectionMap()).get(a)),u)return t.preventDefault(),c=C1.set(c,{forceSelection:!0}),void e.update(c);c=C1.set(c,{nativelyRenderedContent:c.getCurrentContent()}),e._pendingStateFromBeforeInput=c,j1((function(){void 0!==e._pendingStateFromBeforeInput&&(e.update(e._pendingStateFromBeforeInput),e._pendingStateFromBeforeInput=void 0)}))}},R1=OZ,N1=pJ,I1=dJ;var L1=function(e,t){var n=t.currentTarget.ownerDocument;if(!Boolean(e.props.preserveSelectionOnBlur)&&I1(n)===n.body){var r=n.defaultView.getSelection(),o=e.editor;1===r.rangeCount&&N1(o,r.anchorNode)&&N1(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(R1.acceptSelection(i,s))}},B1=OZ;var F1=function(e,t){e.setMode("composite"),e.update(B1.set(e._latestEditorState,{inCompositionMode:!0})),e._onCompositionStart(t)},z1=MW;var H1=function(e){var t=e.getSelection();return t.isCollapsed()?null:z1(e.getCurrentContent(),t)},V1=H1;var U1=function(e,t){e._latestEditorState.getSelection().isCollapsed()?t.preventDefault():e.setClipboard(V1(e._latestEditorState))};var K1=Tq,$1=OZ,W1=XJ,q1=H1,G1=oQ,Z1=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 Y1=function(e,t){var n,r=e._latestEditorState,o=r.getSelection(),i=t.target;if(o.isCollapsed())t.preventDefault();else{if(Z1(i)){var a=i;n=G1(W1.getScrollParent(a))}var s=q1(r);e.setClipboard(s),e.setMode("cut"),setTimeout((function(){e.restoreEditorDOM(n),e.exitCurrentMode(),e.update(function(e){var t=K1.removeRange(e.getCurrentContent(),e.getSelection(),"forward");return $1.push(e,t,"remove-range")}(r))}),0)}};var X1=function(e,t){e.setMode("drag"),t.preventDefault()};var J1=function(e){e._internalDrag=!0,e.setMode("drag")},Q1=OZ,e0=LY;var t0=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),e0.isBrowser("Chrome < 60.0.3081.0")?e.update(Q1.forceSelection(n,o)):e.update(Q1.acceptSelection(n,o))}},n0=lW,r0=55296,o0=56319,i0=56320,a0=57343,s0=/[\uD800-\uDFFF]/;function c0(e){return r0<=e&&e<=a0}function u0(e){return s0.test(e)}function l0(e,t){return 1+c0(e.charCodeAt(t))}function f0(e,t,n){if(t=t||0,n=void 0===n?1/0:n||0,!u0(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+=l0(e,o);if(o>=r)return""}else if(t<0){for(o=r;t<0&&0<o;t++)o-=l0(e,o-1);o<0&&(o=0)}var i=r;if(n<r)for(i=o;n>0&&i<r;n--)i+=l0(e,i);return e.substring(o,i)}var p0={getCodePoints:function(e){for(var t=[],n=0;n<e.length;n+=l0(e,n))t.push(e.codePointAt(n));return t},getUTF16Length:l0,hasSurrogateUnit:u0,isCodeUnitInSurrogateRange:c0,isSurrogatePair:function(e,t){if(0<=t&&t<e.length||("production"!==process.env.NODE_ENV?n0(!1,"isSurrogatePair: Invalid index %s for string length %s.",t,e.length):n0(!1)),t+1===e.length)return!1;var n=e.charCodeAt(t),r=e.charCodeAt(t+1);return r0<=n&&n<=o0&&i0<=r&&r<=a0},strlen:function(e){if(!u0(e))return e.length;for(var t=0,n=0;n<e.length;n+=l0(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 f0(e,t=t<n?t:n,r)},substr:f0},d0=p0,h0=$Q;function g0(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 y0="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];g0.apply(void 0,[t].concat(r))}}:h0,v0=y0,m0=v0;var b0=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&m0(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})},w0=Tq,x0=aG("draft_tree_data_support");var _0=function(e,t,n){var r=e.getSelection(),o=e.getCurrentContent(),i=r,a=r.getAnchorKey(),s=r.getFocusKey(),c=o.getBlockForKey(a);if(x0&&"forward"===n&&a!==s)return o;if(r.isCollapsed()){if("forward"===n){if(e.isSelectionAtEndOfContent())return o;if(x0)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 w0.removeRange(o,i,n)},C0=OZ,O0=d0,S0=b0,k0=_0;var E0=function(e){var t=k0(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o-1];return S0(e,i?O0.getUTF16Length(i,0):1)}),"backward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return C0.push(e,t.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")},j0=Tq,A0=rX,T0=OZ,P0=AX.notEmptyKey,M0=KY,D0=E0,R0=nZ,N0=LY.isEngine("Gecko"),I0="\n\n";var L0=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=R0(M0(r)),f=A0.decode(l),p=f.blockKey,d=f.decoratorKey,h=f.leafKey,g=u.getBlockTree(p).getIn([d,"leaves",h]),y=g.start,v=g.end,m=u.getCurrentContent(),b=m.getBlockForKey(p),w=b.getText().slice(y,v);if(c.endsWith(I0)&&(c=c.slice(0,-1)),c!==w){var x,_,C,O,S=u.getSelection(),k=S.merge({anchorOffset:y,focusOffset:v,isBackward:!1}),E=b.getEntityAt(y),j=P0(E)?m.getEntity(E):null,A="MUTABLE"===(null!=j?j.getMutability():null),T=A?"spellcheck-change":"apply-entity",P=j0.replaceText(m,k,c,b.getInlineStyleAt(y),A?b.getEntityAt(y):null);if(N0)x=n.anchorOffset,_=n.focusOffset,O=(C=y+Math.min(x,_))+Math.abs(x-_),x=C,_=O;else{var M=c.length-w.length;C=S.getStartOffset(),O=S.getEndOffset(),x=o?O+M:C,_=O+M}var D=P.merge({selectionBefore:m.getSelectionAfter(),selectionAfter:S.merge({anchorOffset:x,focusOffset:_})});e.update(T0.push(u,D,T))}else{var R=t.nativeEvent.inputType;if(R){var N=function(e,t){return"deleteContentBackward"===e?D0(t):t}(R,u);if(N!==u)return e.restoreEditorDOM(),void e.update(N)}}}},B0=oX;var F0=function(e){return e.which===B0.RETURN&&(e.getModifierState("Shift")||e.getModifierState("Alt")||e.getModifierState("Control"))},z0=F0,H0=LY.isPlatform("Mac OS X"),V0={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return H0&&e.altKey},usesMacOSHeuristics:function(){return H0},hasCommandModifier:function(e){return H0?!!e.metaKey&&!e.altKey:V0.isCtrlKeyCommand(e)},isSoftNewlineEvent:z0},U0=V0,K0=Tq,$0=OZ,W0=MW,q0=nZ,G0=null,Z0={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=q0(r),G0=W0(t,r);var s=K0.removeRange(t,r,"forward");return s===t?e:$0.push(e,s,"remove-range")},paste:function(e){if(!G0)return e;var t=K0.replaceWithFragment(e.getCurrentContent(),e.getSelection(),G0);return $0.push(e,t,"insert-fragment")}},Y0=lW;var X0=LY.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?Y0(!1,"Found an unexpected detached subtree when getting range client rects."):Y0(!1)}:function(e){return Array.from(e.getClientRects())},J0=X0,Q0=d0,e2=BY,t2=J0,n2=lW;function r2(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 o2(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 i2=function(e){e.collapsed||("production"!==process.env.NODE_ENV?n2(!1,"expandRangeToStartOfLine: Provided range is not collapsed."):n2(!1));var t=(e=e.cloneRange()).startContainer;1!==t.nodeType&&(t=t.parentNode);var n=function(e){var t=getComputedStyle(e),n=e2(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?n2(!1,"Missing document.body"):n2(!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);r2(t2(e),n)&&(r=e.startContainer,o=e.startOffset,r.parentNode||("production"!==process.env.NODE_ENV?n2(!1,"Found unexpected detached subtree when traversing."):n2(!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&&Q0.isSurrogatePair(s,c-1))){if(e.setStart(i,c),!r2(t2(e),n))break;r=i,o=c}if(-1===c||0===i.childNodes.length)break;a=o2(i=i.childNodes[c])}return e.setStart(r,o),e},a2=OZ,s2=i2,c2=xX,u2=b0,l2=_0;var f2=function(e,t){var n=l2(e,(function(e){var n=e.getSelection();if(n.isCollapsed()&&0===n.getAnchorOffset())return u2(e,1);var r=t.currentTarget.ownerDocument.defaultView.getSelection().getRangeAt(0);return r=s2(r),c2(e,null,r.endContainer,r.endOffset,r.startContainer,r.startOffset).selectionState}),"backward");return n===e.getCurrentContent()?e:a2.push(e,n,"remove-range")},p2="['‘’]",d2="\\s|(?![_])"+{getPunctuation:function(){return"[.,+*?$|#{}()'\\^\\-\\[\\]\\\\\\/!@%\"~=<>_:;・、。〈-】〔-〟:-?!-/[-`{-・⸮؟٪-٬؛،؍﴾﴿᠁।၊။‐-‧‰-⁞¡-±´-¸º»¿]"}}.getPunctuation(),h2=new RegExp("^(?:"+d2+")*(?:"+p2+"|(?!"+d2+").)*(?:(?!"+d2+").)"),g2=new RegExp("(?:(?!"+d2+").)(?:"+p2+"|(?!"+d2+").)*(?:"+d2+")*$");function y2(e,t){var n=t?g2.exec(e):h2.exec(e);return n?n[0]:e}var v2={getBackward:function(e){return y2(e,!0)},getForward:function(e){return y2(e,!1)}},m2=v2,b2=OZ,w2=b0,x2=_0;var _2=v0;var C2=function(e,t){var n=e.getSelection();"production"!==process.env.NODE_ENV&&_2(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})},O2=v2,S2=OZ,k2=C2,E2=_0;var j2=Tq,A2=OZ;var T2=OZ;var P2=OZ;var M2=OZ,D2=d0,R2=C2,N2=_0;var I2=Tq,L2=OZ,B2=MW;var F2=OZ;var z2=function(e,t,n){var r=F2.undo(t);if("spellcheck-change"!==t.getLastChangeType())e.preventDefault(),t.getNativelyRenderedContent()?(n(F2.set(t,{nativelyRenderedContent:null})),setTimeout((function(){n(r)}),0)):n(r);else{var o=r.getCurrentContent();n(F2.set(r,{nativelyRenderedContent:o}))}},H2=Tq,V2=OZ,U2=oX,K2=Z0,$2=LY,W2=i1,q2=f2,G2=function(e){var t=x2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset();if(0===n)return w2(e,1);var r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(0,n),i=m2.getBackward(o);return w2(e,i.length||1)}),"backward");return t===e.getCurrentContent()?e:b2.push(e,t,"remove-range")},Z2=function(e){var t=E2(e,(function(e){var t=e.getSelection(),n=t.getStartOffset(),r=t.getStartKey(),o=e.getCurrentContent().getBlockForKey(r).getText().slice(n),i=O2.getForward(o);return k2(e,i.length||1)}),"forward");return t===e.getCurrentContent()?e:S2.push(e,t,"remove-range")},Y2=function(e){var t=j2.splitBlock(e.getCurrentContent(),e.getSelection());return A2.push(e,t,"split-block")},X2=function(e){var t=e.getSelection(),n=t.getEndKey(),r=e.getCurrentContent().getBlockForKey(n).getLength();return T2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r,isBackward:!1}),forceSelection:!0})},J2=function(e){var t=e.getSelection(),n=t.getStartKey();return P2.set(e,{selection:t.merge({anchorKey:n,anchorOffset:0,focusKey:n,focusOffset:0,isBackward:!1}),forceSelection:!0})},Q2=E0,e5=function(e){var t=N2(e,(function(e){var t=e.getSelection(),n=e.getCurrentContent(),r=t.getAnchorKey(),o=t.getAnchorOffset(),i=n.getBlockForKey(r).getText()[o];return R2(e,i?D2.getUTF16Length(i,0):1)}),"forward");if(t===e.getCurrentContent())return e;var n=e.getSelection();return M2.push(e,t.set("selectionBefore",n),n.isCollapsed()?"delete-character":"remove-range")},t5=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=B2(a,r),u=I2.removeRange(a,r,"backward"),l=u.getSelectionAfter(),f=l.getAnchorOffset()-1,p=l.merge({anchorOffset:f,focusOffset:f}),d=I2.replaceWithFragment(u,p,c),h=L2.push(e,d,"insert-fragment");return L2.acceptSelection(h,o)},n5=z2,r5=U0.isOptionKeyCommand,o5=$2.isBrowser("Chrome");var i5=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 U2.RETURN:if(t.preventDefault(),e.props.handleReturn&&W2(e.props.handleReturn(t,r)))return;break;case U2.ESC:if(t.preventDefault(),o("onEscape"))return;break;case U2.TAB:if(o("onTab"))return;break;case U2.UP:if(o("onUpArrow"))return;break;case U2.RIGHT:if(o("onRightArrow"))return;break;case U2.DOWN:if(o("onDownArrow"))return;break;case U2.LEFT:if(o("onLeftArrow"))return;break;case U2.SPACE:o5&&r5(t)&&t.preventDefault()}var i=e.props.keyBindingFn(t);if(null!=i&&""!==i)if("undo"!==i){if(t.preventDefault(),!e.props.handleKeyCommand||!W2(e.props.handleKeyCommand(i,r,t.timeStamp))){var a=function(e,t,n){switch(e){case"redo":return V2.redo(t);case"delete":return e5(t);case"delete-word":return Z2(t);case"backspace":return Q2(t);case"backspace-word":return G2(t);case"backspace-to-start-of-line":return q2(t,n);case"split-block":return Y2(t);case"transpose-characters":return t5(t);case"move-selection-to-start-of-block":return J2(t);case"move-selection-to-end-of-block":return X2(t);case"secondary-cut":return K2.cut(t);case"secondary-paste":return K2.paste(t);default:return t}}(i,r,t);a!==r&&e.update(a)}}else n5(t,r,e.update);else if(n===U2.SPACE&&o5&&r5(t)){var s=H2.replaceText(r.getCurrentContent(),r.getSelection()," ");e.update(V2.push(r,s,"insert-characters"))}};var a5=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}(),s5=a5,c5=lW,u5=LY.isBrowser("IE <= 9");var l5=function(e){var t,n=null;return!u5&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||("production"!==process.env.NODE_ENV?c5(!1,"Missing doc.documentElement"):c5(!1)),t.documentElement.innerHTML=e,n=t.getElementsByTagName("body")[0]),n},f5=FY;var p5=function(e){return!(!e||!e.ownerDocument)&&(f5(e)&&"A"===e.nodeName)},d5=FY;var h5,g5=function(e){return!(!e||!e.ownerDocument)&&(d5(e)&&"IMG"===e.nodeName)};function y5(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){v5(e,t,n[t])}))}return e}function v5(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m5=_$,b5=B$,w5=Q$,x5=nY,_5=rG,C5=s5,O5=QZ,S5=wW,k5=l5,E5=aG,j5=l$,A5=j5.List,T5=j5.Map,P5=j5.OrderedSet,M5=p5,D5=sJ,R5=aX,N5=g5,I5=E5("draft_tree_data_support"),L5=" ",B5=new RegExp("\r","g"),F5=new RegExp("\n","g"),z5=new RegExp("^\n","g"),H5=new RegExp(" ","g"),V5=new RegExp(" ?","g"),U5=new RegExp("​?","g"),K5=["bold","bolder","500","600","700","800","900"],$5=["light","lighter","normal","100","200","300","400"],W5=["className","href","rel","target","title"],q5=["alt","className","height","src","width"],G5=(v5(h5={},O5("public/DraftStyleDefault/depth0"),0),v5(h5,O5("public/DraftStyleDefault/depth1"),1),v5(h5,O5("public/DraftStyleDefault/depth2"),2),v5(h5,O5("public/DraftStyleDefault/depth3"),3),v5(h5,O5("public/DraftStyleDefault/depth4"),4),h5),Z5=T5({b:"BOLD",code:"CODE",del:"STRIKETHROUGH",em:"ITALIC",i:"ITALIC",s:"STRIKETHROUGH",strike:"STRIKETHROUGH",strong:"BOLD",u:"UNDERLINE",mark:"HIGHLIGHT"}),Y5=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)}))})),T5(t)},X5=function(e){if(R5(e)&&e.style.fontFamily.includes("monospace"))return"CODE";return null},J5=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(G5).some((function(n){e.classList.contains(n)&&(t=G5[n])})),t},Q5=function(e){if(!M5(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 C5(t.href);return!0}catch(e){return!1}},e3=function(e){if(!N5(e))return!1;var t=e;return!(!t.attributes.getNamedItem("src")||!t.attributes.getNamedItem("src").value)},t3=function(e,t){if(!R5(e))return t;var n=e,r=n.style.fontWeight,o=n.style.fontStyle,i=n.style.textDecoration;return t.withMutations((function(e){K5.indexOf(r)>=0?e.add("BOLD"):$5.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"))}))},n3=function(e){return"ul"===e||"ol"===e},r3=function(){function e(e,t){v5(this,"characterList",A5()),v5(this,"currentBlockType","unstyled"),v5(this,"currentDepth",0),v5(this,"currentEntity",null),v5(this,"currentText",""),v5(this,"wrapper",null),v5(this,"blockConfigs",[]),v5(this,"contentBlocks",[]),v5(this,"entityMap",_5),v5(this,"blockTypeMap",void 0),v5(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=e,this.disambiguate=t}var t=e.prototype;return t.clear=function(){this.characterList=A5(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=_5,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],P5())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},t.getContentBlocks=function(){return 0===this.contentBlocks.length&&(I5?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=y5({key:e.key||S5(),type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:A5(),prevSibling:null,nextSibling:null,childConfigs:[]},e);return this.characterList=A5(),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||n3(i)){this._trimCurrentText(),""!==this.currentText&&n.push(this._makeBlockConfig());var a=this.currentDepth,s=this.wrapper;n3(i)&&(this.wrapper=i,n3(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(e3(o))this._addImgNode(o,t);else if(Q5(o))this._addAnchorNode(o,n,t);else{var u=t;Z5.has(i)&&(u=u.add(Z5.get(i))),u=t3(o,u);var l=X5(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,p=this.wrapper;if(this.wrapper="pre"===i?"pre":this.wrapper,"string"!=typeof c&&(c=this.disambiguate(i,this.wrapper)||c[0]||"unstyled"),!I5&&R5(o)&&("unordered-list-item"===c||"ordered-list-item"===c)){var d=o;this.currentDepth=J5(d,this.currentDepth)}var h=S5(),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=p}}}return n},t._appendText=function(e,t){var n;this.currentText+=e;var r=m5.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=A5()):(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(z5,"")).replace(F5,L5)),this._appendText(n,t)},t._addBreakNode=function(e,t){D5(e)&&this._appendText("\n",t)},t._addImgNode=function(e,t){if(N5(e)){var n=e,r={};q5.forEach((function(e){var t=n.getAttribute(e);t&&(r[e]=t)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",r),E5("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(M5(e)){var r=e,o={};W5.forEach((function(e){var t=r.getAttribute(e);t&&(o[e]=t)})),o.url=new C5(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=A5(o.childConfigs.map((function(e){return e.key}))),this.contentBlocks.push(new w5(y5({},o))),this._toContentBlocks(o.childConfigs,o.key)}},t._hoistContainersInBlockConfigs=function(e){var t=this;return A5(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 b5(y5({},e,{text:e.text+r,characterList:e.characterList.concat(o)})))}))},t._extractTextFromBlockConfigs=function(e){for(var t=e.length-1,n="",r=A5(),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}(),o3=function(e){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x5,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:k5)(e=e.trim().replace(B5,"").replace(H5,L5).replace(V5,"").replace(U5,""));if(!n)return null;var r=Y5(t);return new r3(r,(function(e,t){return"li"===e?"ol"===t?"ordered-list-item":"unordered-list-item":null})).addDOMNode(n).getContentBlocks()};function i3(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a3=B$,s3=Q$,c3=o3,u3=wW,l3=l5,f3=aG,p3=l$,d3=cG,h3=p3.List,g3=p3.Repeat,y3=f3("draft_tree_data_support"),v3=y3?s3:a3,m3={processHTML:function(e,t){return c3(e,l3,t)},processText:function(e,t,n){return e.reduce((function(e,r,o){r=d3(r);var i=u3(),a={key:i,type:n,text:r,characterList:h3(g3(t,r.length))};if(y3&&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){i3(e,t,n[t])}))}return e}({},a,{prevSibling:(e[s]=e[s].merge({nextSibling:i})).getKey()})}return e.push(new v3(a)),e}),[])}};var b3=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})},w3=Tq,x3=OZ,_3=b3,C3=nZ,O3={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 O3.toggleInlineStyle(e,"BOLD");case"italic":return O3.toggleInlineStyle(e,"ITALIC");case"underline":return O3.toggleInlineStyle(e,"UNDERLINE");case"code":return O3.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return O3.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return O3.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=w3.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),n=x3.push(e,t,"insert-characters");return x3.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 x3.push(e,a,"remove-range")}var s=O3.tryToRemoveBlockStyle(e);return s?x3.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=w3.removeRange(n,a,"forward");return s!==n?x3.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=_3(i,r,e.shiftKey?-1:1,n);return x3.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=C3(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 x3.push(e,w3.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?O3.toggleBlockType(e,"code-block"):O3.toggleInlineStyle(e,"CODE")},toggleInlineStyle:function(e,t){var n=e.getSelection(),r=e.getCurrentInlineStyle();if(n.isCollapsed())return x3.setInlineStyleOverride(e,r.has(t)?r.remove(t):r.add(t));var o,i=e.getCurrentContent();return o=r.has(t)?w3.removeInlineStyle(i,n,t):w3.applyInlineStyle(i,n,t),x3.push(e,o,"change-inline-style")},toggleLink:function(e,t,n){var r=w3.applyEntity(e.getCurrentContent(),t,n);return x3.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 w3.setBlockType(o,t,"unstyled")}return null}},S3=O3,k3=/\r\n?|\n/g;var E3=p$,j3=_$,A3=QQ,T3=Tq,P3=m3,M3=OZ,D3=S3,R3=MX,N3=o1,I3=i1,L3=function(e){return e.split(k3)};function B3(e,t,n){var r=T3.replaceWithFragment(e.getCurrentContent(),e.getSelection(),t);return M3.push(e,r.set("entityMap",n),"insert-fragment")}var F3=function(e,t){t.preventDefault();var n=new A3(t.clipboardData);if(!n.isRichText()){var r=n.getFiles(),o=n.getText();if(r.length>0){if(e.props.handlePastedFiles&&I3(e.props.handlePastedFiles(r)))return;return void N3(r,(function(t){if(t=t||o){var n=e._latestEditorState,r=L3(t),i=j3.create({style:n.getCurrentInlineStyle(),entity:R3(n.getCurrentContent(),n.getSelection())}),a=D3.getCurrentBlockType(n),s=P3.processText(r,i,a),c=E3.createFromArray(s),u=T3.replaceWithFragment(n.getCurrentContent(),n.getSelection(),c);e.update(M3.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||!I3(e.props.handlePastedText(a,s,c))){if(a&&(i=L3(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(B3(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(B3(e._latestEditorState,f));if(s){var p=P3.processHTML(s,e.props.blockRenderMap);if(p){var d=p.contentBlocks,h=p.entityMap;if(d){var g=E3.createFromArray(d);return void e.update(B3(e._latestEditorState,g,h))}}}e.setClipboard(null)}if(i.length){var y=j3.create({style:c.getCurrentInlineStyle(),entity:R3(c.getCurrentContent(),c.getSelection())}),v=D3.getCurrentBlockType(c),m=P3.processText(i,y,v),b=E3.createFromArray(m);e.update(B3(e._latestEditorState,b))}}},z3=LY,H3=D1,V3=L1,U3=F1,K3=U1,$3=Y1,W3=X1,q3=J1,G3=t0,Z3=L0,Y3=i5,X3=F3,J3=jX,Q3=z3.isBrowser("Chrome"),e4=z3.isBrowser("Firefox"),t4=Q3||e4?J3:function(e){},n4={onBeforeInput:H3,onBlur:V3,onCompositionStart:U3,onCopy:K3,onCut:$3,onDragOver:W3,onDragStart:q3,onFocus:G3,onInput:Z3,onKeyDown:Y3,onPaste:X3,onSelect:J3,onMouseUp:t4,onKeyUp:t4},r4=r.unstable_flushControlled;var o4=t,i4=QZ,a4=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=i4({"public/DraftEditorPlaceholder/root":!0,"public/DraftEditorPlaceholder/hasFocus":e});return o4.createElement("div",{className:t},o4.createElement("div",{className:i4("public/DraftEditorPlaceholder/inner"),id:this.props.accessibilityID,style:{whiteSpace:"pre-wrap"}},this.props.text))},r}(o4.Component),s4=a4,c4=U0,u4=oX,l4=LY,f4=l4.isPlatform("Mac OS X"),p4=f4&&l4.isBrowser("Firefox < 29"),d4=c4.hasCommandModifier,h4=c4.isCtrlKeyCommand;function g4(e){return f4&&e.altKey||h4(e)}var y4=function(e){switch(e.keyCode){case 66:return d4(e)?"bold":null;case 68:return h4(e)?"delete":null;case 72:return h4(e)?"backspace":null;case 73:return d4(e)?"italic":null;case 74:return d4(e)?"code":null;case 75:return f4&&h4(e)?"secondary-cut":null;case 77:case 79:return h4(e)?"split-block":null;case 84:return f4&&h4(e)?"transpose-characters":null;case 85:return d4(e)?"underline":null;case 87:return f4&&h4(e)?"backspace-word":null;case 89:return h4(e)?f4?"secondary-paste":"redo":null;case 90:return function(e){return d4(e)?e.shiftKey?"redo":"undo":null}(e)||null;case u4.RETURN:return"split-block";case u4.DELETE:return function(e){return!f4&&e.shiftKey?null:g4(e)?"delete-word":"delete"}(e);case u4.BACKSPACE:return function(e){return d4(e)&&f4?"backspace-to-start-of-line":g4(e)?"backspace-word":"backspace"}(e);case u4.LEFT:return p4&&d4(e)?"move-selection-to-start-of-block":null;case u4.RIGHT:return p4&&d4(e)?"move-selection-to-end-of-block":null;default:return null}},v4=jg;function m4(){return m4=v4||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},m4.apply(this,arguments)}function b4(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){x4(e,t,n[t])}))}return e}function w4(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x4(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _4(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var C4=nY,O4=rY,S4=YX,k4=LQ,E4=b1,j4=n4,A4=r4,T4=s4,P4=OZ,M4=t,D4=zJ,R4=XJ,N4=QZ,I4=wW,L4=y4,B4=oQ,F4=aG,z4=lW,H4=aX,V4=nZ,U4=LY.isBrowser("IE"),K4=!U4,$4={edit:j4,composite:S4,drag:E4,cut:null,render:null},W4=!1,q4=function(e){function t(){return e.apply(this,arguments)||this}_4(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}(M4.Component),G4=function(e){function t(t){var n;return x4(w4(n=e.call(this,t)||this),"_blockSelectEvents",void 0),x4(w4(n),"_clipboard",void 0),x4(w4(n),"_handler",void 0),x4(w4(n),"_dragCount",void 0),x4(w4(n),"_internalDrag",void 0),x4(w4(n),"_editorKey",void 0),x4(w4(n),"_placeholderAccessibilityID",void 0),x4(w4(n),"_latestEditorState",void 0),x4(w4(n),"_latestCommittedEditorState",void 0),x4(w4(n),"_pendingStateFromBeforeInput",void 0),x4(w4(n),"_onBeforeInput",void 0),x4(w4(n),"_onBlur",void 0),x4(w4(n),"_onCharacterData",void 0),x4(w4(n),"_onCompositionEnd",void 0),x4(w4(n),"_onCompositionStart",void 0),x4(w4(n),"_onCopy",void 0),x4(w4(n),"_onCut",void 0),x4(w4(n),"_onDragEnd",void 0),x4(w4(n),"_onDragOver",void 0),x4(w4(n),"_onDragStart",void 0),x4(w4(n),"_onDrop",void 0),x4(w4(n),"_onInput",void 0),x4(w4(n),"_onFocus",void 0),x4(w4(n),"_onKeyDown",void 0),x4(w4(n),"_onKeyPress",void 0),x4(w4(n),"_onKeyUp",void 0),x4(w4(n),"_onMouseDown",void 0),x4(w4(n),"_onMouseUp",void 0),x4(w4(n),"_onPaste",void 0),x4(w4(n),"_onSelect",void 0),x4(w4(n),"editor",void 0),x4(w4(n),"editorContainer",void 0),x4(w4(n),"focus",void 0),x4(w4(n),"blur",void 0),x4(w4(n),"setMode",void 0),x4(w4(n),"exitCurrentMode",void 0),x4(w4(n),"restoreEditorDOM",void 0),x4(w4(n),"setClipboard",void 0),x4(w4(n),"getClipboard",void 0),x4(w4(n),"getEditorKey",void 0),x4(w4(n),"update",void 0),x4(w4(n),"onDragEnter",void 0),x4(w4(n),"onDragLeave",void 0),x4(w4(n),"_handleEditorContainerRef",(function(e){n.editorContainer=e,n.editor=null!==e?e.firstChild:null})),x4(w4(n),"focus",(function(e){var t=n.props.editorState,r=t.getSelection().getHasFocus(),o=n.editor;if(o){var i=R4.getScrollParent(o),a=e||B4(i),s=a.x,c=a.y;H4(o)||("production"!==process.env.NODE_ENV?z4(!1,"editorNode is not an HTMLElement"):z4(!1)),o.focus(),i===window?window.scrollTo(s,c):D4.setTop(i,c),r||n.update(P4.forceSelection(t,t.getSelection()))}})),x4(w4(n),"blur",(function(){var e=n.editor;e&&(H4(e)||("production"!==process.env.NODE_ENV?z4(!1,"editorNode is not an HTMLElement"):z4(!1)),e.blur())})),x4(w4(n),"setMode",(function(e){var t=n.props,r=t.onPaste,o=t.onCut,i=t.onCopy,a=b4({},$4.edit);r&&(a.onPaste=r),o&&(a.onCut=o),i&&(a.onCopy=i);var s=b4({},$4,{edit:a});n._handler=s[e]})),x4(w4(n),"exitCurrentMode",(function(){n.setMode("edit")})),x4(w4(n),"restoreEditorDOM",(function(e){n.setState({contentsKey:n.state.contentsKey+1},(function(){n.focus(e)}))})),x4(w4(n),"setClipboard",(function(e){n._clipboard=e})),x4(w4(n),"getClipboard",(function(){return n._clipboard})),x4(w4(n),"update",(function(e){n._latestEditorState=e,n.props.onChange(e)})),x4(w4(n),"onDragEnter",(function(){n._dragCount++})),x4(w4(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||I4(),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}_4(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&&(A4?A4((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:V4(this.props.placeholder),editorState:this.props.editorState,textAlignment:this.props.textAlignment,accessibilityID:this._placeholderAccessibilityID};return M4.createElement(T4,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=N4({"DraftEditor/root":!0,"DraftEditor/alignLeft":"left"===u,"DraftEditor/alignRight":"right"===u,"DraftEditor/alignCenter":"center"===u}),p=this.props.role||"textbox",d="combobox"===p?!!this.props.ariaExpanded:null,h={blockRenderMap:t,blockRendererFn:n,blockStyleFn:r,customStyleMap:b4({},O4,i),customStyleFn:o,editorKey:this._editorKey,editorState:a,preventScroll:s,textDirectionality:l};return M4.createElement("div",{className:f},this._renderPlaceholder(),M4.createElement("div",{className:N4("DraftEditor/editorContainer"),ref:this._handleEditorContainerRef},M4.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:d,"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:N4({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:p,spellCheck:K4&&this.props.spellCheck,style:{outline:"none",userSelect:"text",WebkitUserSelect:"text",whiteSpace:"pre-wrap",wordWrap:"break-word"},suppressContentEditableWarning:!0,tabIndex:this.props.tabIndex},M4.createElement(q4,{editor:this,editorState:a}),M4.createElement(k4,m4({},h,{key:"contents"+this.state.contentsKey})))))},n.componentDidMount=function(){this._blockSelectEvents=!1,!W4&&F4("draft_ods_enabled")&&(W4=!0),this.setMode("edit"),U4&&(this.editor?this.editor.ownerDocument.execCommand("AutoUrlDetect",!1,!1):s.execCommand("AutoUrlDetect",!1,!1))},n.componentDidUpdate=function(){this._blockSelectEvents=!1,this._latestEditorState=this.props.editorState,this._latestCommittedEditorState=this.props.editorState},t}(M4.Component);x4(G4,"defaultProps",{ariaDescribedBy:"{{editor_id_placeholder}}",blockRenderMap:C4,blockRendererFn:function(){return null},blockStyleFn:function(){return""},keyBindingFn:L4,readOnly:!1,spellCheck:!1,stripPastedStyles:!1});var Z4=G4,Y4={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}},X4=Y4,J4=d0.strlen;var Q4=d0,e9=C$,t9=function(e,t){return e===t},n9=function(e){return!!e},r9=[];var o9=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 e9(o,t9,n9,(function(t,o){var i=e.getText();r.push({offset:Q4.strlen(i.slice(0,t)),length:Q4.strlen(i.slice(t,o)),style:n})})),r}(e,t,n)}));return Array.prototype.concat.apply(r9,n.toJS())};function i9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a9=B$,s9=Q$,c9=Y4,u9=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:J4(i.slice(0,r)),length:J4(i.slice(r,o)),key:Number(t[X4.stringify(a)])})})),n},l9=o9,f9=lW,p9=function(e,t){return{key:e.getKey(),text:e.getText(),type:e.getType(),depth:e.getDepth(),inlineStyleRanges:l9(e),entityRanges:u9(e,t),data:e.getData().toObject()}},d9=function(e,t,n,r){if(e instanceof a9)n.push(p9(e,t));else{e instanceof s9||("production"!==process.env.NODE_ENV?f9(!1,"block is not a BlockNode"):f9(!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){i9(e,t,n[t])}))}return e}({},p9(e,t),{children:[]});o?r[o].children.push(i):n.push(i)}},h9=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=c9.stringify(r);i[o]||(i[o]=r,n[o]="".concat(a),a++)})),d9(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(c9.unstringify(t));o[n]={type:r.getType(),mutability:r.getMutability(),data:r.getData()}})),{blocks:n,entityMap:o}}(e,t),t};function g9(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){y9(e,t,n[t])}))}return e}function y9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v9=wW,m9=lW,b9=function(e){if(!e||!e.type)return!1;var t=e.type;return"unordered-list-item"===t||"ordered-list-item"===t},w9={fromRawTreeStateToRawState:function(e){var t=e.blocks,n=[];return Array.isArray(t)||("production"!==process.env.NODE_ENV?m9(!1,"Invalid raw state"):m9(!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?m9(!1,"Invalid tree raw block"):m9(!1)),n=n.concat([].concat(o.reverse()))}}(t,(function(e){var t=g9({},e);b9(e)&&(t.depth=t.depth||0,function(e){Array.isArray(e.children)&&(e.children=e.children.map((function(t){return t.type===e.type?g9({},t,{depth:(e.depth||0)+1}):t})))}(e),null!=e.children&&e.children.length>0)||(delete t.children,n.push(t))})),e.blocks=n,g9({},e,{blocks:n})):e},fromRawStateToRawTreeState:function(e){var t=[],n=[];return e.blocks.forEach((function(e){var r=b9(e),o=e.depth||0,i=g9({},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:v9(),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)})),g9({},e,{blocks:t})}},x9=v0,_9={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&&x9(!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&&x9(!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&&x9(!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&&x9(!0,"Tree is missing prevSibling pointer on %s's nextSibling",n),!1;return null!==a&&null!==i&&i===a?("production"!==process.env.NODE_ENV&&x9(!0,"Tree has a two-node cycle at %s",n),!1):!(""!=e.text&&e.getChildKeys().size>0)||("production"!==process.env.NODE_ENV&&x9(!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&&x9(!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&&x9(!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&&x9(!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)}},C9=_9,O9=_$,S9=l$.List;var k9=function(e,t){var n=e.map((function(e,n){var r=t[n];return O9.create({style:e,entity:r})}));return S9(n)},E9=d0.substr;var j9=function(e,t){var n=Array(e.length).fill(null);return t&&t.forEach((function(t){for(var r=E9(e,0,t.offset).length,o=r+E9(e,t.offset,t.length).length,i=r;i<o;i++)n[i]=t.key})),n},A9=d0,T9=l$.OrderedSet,P9=A9.substr,M9=T9();var D9=function(e,t){var n=Array(e.length).fill(M9);return t&&t.forEach((function(t){for(var r=P9(e,0,t.offset).length,o=r+P9(e,t.offset,t.length).length;r<o;)n[r]=n[r].add(t.style),r++})),n};function R9(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){N9(e,t,n[t])}))}return e}function N9(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I9=B$,L9=Q$,B9=TG,F9=rG,z9=w9,H9=C9,V9=iG,U9=k9,K9=j9,$9=D9,W9=wW,q9=l$,G9=lW,Z9=aG("draft_tree_data_support"),Y9=q9.List,X9=q9.Map,J9=q9.OrderedMap,Q9=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||W9(),data:X9(o),characterList:e6(e,t)}},e6=function(e,t){var n=e.text,r=e.entityRanges,o=e.inlineStyleRanges,i=r||[];return U9($9(n,o||[]),K9(n,i.filter((function(e){return t.hasOwnProperty(e.key)})).map((function(e){return R9({},e,{key:t[e.key]})}))))},t6=function(e){return R9({},e,{key:e.key||W9()})},n6=function(e,t,n){var r=t.map((function(e){return R9({},e,{parentRef:n})}));return e.concat(r.reverse())},r6=function(e,t){var n=e.blocks.find((function(e){return Array.isArray(e.children)&&e.children.length>0})),r=Z9&&!n?z9.fromRawStateToRawTreeState(e).blocks:e.blocks;if(!Z9)return function(e,t){return J9(e.map((function(e){var n=new I9(Q9(e,t));return[n.getKey(),n]})))}(n?z9.fromRawTreeStateToRawState(e).blocks:r,t);var o=function(e,t){return e.map(t6).reduce((function(n,r,o){Array.isArray(r.children)||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):G9(!1));var i=r.children.map(t6),a=new L9(R9({},Q9(r,t),{prevSibling:0===o?null:e[o-1].key,nextSibling:o===e.length-1?null:e[o+1].key,children:Y9(i.map((function(e){return e.key})))}));n=n.set(a.getKey(),a);for(var s=n6([],i,a);s.length>0;){var c=s.pop(),u=c.parentRef,l=u.getChildKeys(),f=l.indexOf(c.key),p=Array.isArray(c.children);if(!p){p||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentBlock can not be converted to ContentBlockNode"):G9(!1));break}var d=c.children.map(t6),h=new L9(R9({},Q9(c,t),{parent:u.getKey(),children:Y9(d.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=n6(s,d,h)}return n}),J9())}(r,t);return"production"!==process.env.NODE_ENV&&(H9.isValidTree(o)||("production"!==process.env.NODE_ENV?G9(!1,"Should be a valid tree"):G9(!1))),o},o6=J0;var i6=function(e){var t=o6(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}},a6=i6;var s6=function(e){var t=e.getSelection();if(!t.rangeCount)return null;var n=t.getRangeAt(0),r=a6(n),o=r.top,i=r.right,a=r.bottom,s=r.left;return 0===o&&0===i&&0===a&&0===s?null:r},c6={Editor:Z4,EditorBlock:IQ,EditorState:OZ,CompositeDecorator:XZ,Entity:rG,EntityInstance:qq,BlockMapBuilder:p$,CharacterMetadata:_$,ContentBlock:B$,ContentState:TG,RawDraftContentState:{},SelectionState:iG,AtomicBlockUtils:GZ,KeyBindingUtil:U0,Modifier:Tq,RichUtils:S3,DefaultDraftBlockRenderMap:nY,DefaultDraftInlineStyle:rY,convertFromHTML:o3,convertFromRaw:function(e){Array.isArray(e.blocks)||("production"!==process.env.NODE_ENV?G9(!1,"invalid RawDraftContentState"):G9(!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]=F9.__create(o,i,a||{})})),n}(e),n=r6(e,t),r=n.isEmpty()?new V9:V9.createEmpty(n.first().getKey());return new B9({blockMap:n,entityMap:t,selectionBefore:r,selectionAfter:r})},convertToRaw:h9,genKey:wW,getDefaultKeyBinding:y4,getVisibleSelectionRect:s6};const u6="FOUND_FIELD",l6="NOT_FOUND",f6="IMMUTABLE",p6=X.span((({theme:e,error:t})=>({display:"inline-block",color:t?e.color.error:e.accent}))),d6=(e,t,n,r)=>{e.findEntityRanges((e=>{const t=e.getEntity();if(t){return n.getEntity(t).getType()===r}return!1}),t)},h6=new c6.CompositeDecorator([{strategy:(e,t,n)=>d6(e,t,n,u6),component:({children:t})=>e.jsx(p6,{children:t})},{strategy:(e,t,n)=>d6(e,t,n,l6),component:({children:t})=>e.jsx(p6,Object.assign({error:!0},{children:t}))}]),g6=(e,t,n)=>{const r=ct.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}},y6=(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=ct.find(t||[],{id:i})||{id:i,label:""},{label:c,isValid:u}=g6(s,t||[],n);a=c,o.entityRanges.push({key:e,offset:o.text.length,length:a.length}),r[e]={type:u?u6:l6,mutability:f6,data:{id:i}}}o.text+=a}return c6.convertFromRaw({blocks:[o],entityMap:r})})(e,t,n);return c6.EditorState.createWithContent(r,h6)},v6=(e,t=!0)=>{const n=e.getCurrentContent(),r=c6.convertToRaw(n);return t?(o=r).blocks.map((e=>{const{text:t,entityRanges:n}=e;if(n.length<1)return t;const r=[];let i=0;return n.forEach((({key:e,offset:n,length:a})=>{n>i&&r.push(t.substr(i,n-i));const s=ct.get(o,`entityMap[${e}].data.id`,"unknown");r.push(`<<${s}>>`),i=n+a})),r.push(t.substr(i)),r.join("")})).join(" "):r;var o},m6=e=>{const t=v6(e,!1);return"string"!=typeof t?Object.values(t.entityMap):[]},b6=e=>{const t=e.getCurrentContent().getLastBlock(),n=t.getKey(),r=t.getLength(),o=new c6.SelectionState({anchorKey:n,anchorOffset:r,focusKey:n,focusOffset:r});return c6.EditorState.forceSelection(e,o)},w6=t.forwardRef(((n,r)=>{var{value:o,onChange:i,onEnterKey:s,onFocus:c,onBlur:u,mergeFields:l=[],placeholder:f="Text here...",width:p,height:d,maxHeight:h,borderless:g=!1,noPadding:y=!1,readOnly:v=!1,displayMergedValues:m=!1,color:b,overflow:w,clampLines:x,label:_,disabled:C,borderRadius:O,backgroundColor:S,fontSize:k,textOnly:E,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M}=n,D=a(n,["value","onChange","onEnterKey","onFocus","onBlur","mergeFields","placeholder","width","height","maxHeight","borderless","noPadding","readOnly","displayMergedValues","color","overflow","clampLines","label","disabled","borderRadius","backgroundColor","fontSize","textOnly","margin","marginLeft","marginRight","marginTop","marginBottom"]);const[R,N]=t.useState((()=>y6(o,l,m))),{focused:I,handleFocus:L,handleBlur:B}=Kr(c,u),[F,z]=t.useState(!1),H=t.useRef(null),V=t.useRef(),U=null!=h?h:d,K=U?U-(g?0:_?29:11):void 0,$=e=>{N(e);const t=(e=>m6(e).some((e=>e.type===l6)))(e);z(t);const n=v6(e),r=e.getLastChangeType();i&&i(n,t,r)},W=e=>{const t=((e,t,n,r)=>{const{id:o}=e,i=n.getCurrentContent(),a=n.getSelection(),{label:s,isValid:c}=g6(e,t,r),u=c?u6:l6,l=i.createEntity(u,f6,{id:o}).getLastCreatedEntityKey(),f=c6.Modifier.insertText(i,a,s,void 0,l),p=c6.EditorState.push(n,f,"insert-characters");return c6.EditorState.forceSelection(p,f.getSelectionAfter())})(e,l,R,m);$(t)},q=()=>{(null==H?void 0:H.current)&&H.current.focus();const e=b6(R);N(e)};t.useImperativeHandle(r,(()=>({insertField:W,focusAtEnd:q})));t.useEffect((()=>{v6(R)!==o&&(e=>{const t=R.getSelection(),n=y6(e,l,m),r=b6(n),o=t.getHasFocus()?r:n;$(o)})(o)}),[o]),t.useEffect((()=>{V.current=l}),[]),t.useEffect((()=>{const{current:e}=V,t=ct.isEqual(e,l),n=m6(R);if(!t&&n.length>0){V.current=l;const e=y6(o,l,m);$(e)}}),[l]);return e.jsx(x6,Object.assign({onClick:e=>{v||e.stopPropagation();R.getSelection().getHasFocus()||q()},width:p,height:d,editorMaxHeight:K,borderless:g||E,noPadding:y||E,readOnly:v,color:b,overflow:w,clampLines:x,filled:$r(o),invalid:F,textOnly:E,borderRadius:O,backgroundColor:S,fontSize:k,margin:j,marginLeft:A,marginRight:T,marginTop:P,marginBottom:M,focused:I,disabled:C,hasLabel:!!_,hideEditor:!$r(o)&&!!_&&!I},{children:e.jsxs(qr,Object.assign({readOnly:v},{children:[_&&e.jsx(Gr,Object.assign({filled:$r(o),focused:I,disabled:C},{children:_})),e.jsx(c6.Editor,Object.assign({ref:H,editorState:R,onChange:$,placeholder:f,readOnly:v,handleReturn:e=>{const t=c6.RichUtils.insertSoftNewline(R);return e.shiftKey||!s?$(t):s(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=c6.convertFromRaw({blocks:[o],entityMap:{}}),a=c6.EditorState.createWithContent(i,h6).getCurrentContent().getBlockMap(),s=c6.Modifier.replaceWithFragment(n,r,a);return c6.EditorState.push(t,s,"insert-fragment")})(e,n);return $(r),"handled"},onFocus:L,onBlur:B},D))]}))}))})),x6=X(Wr)((({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}}})),_6=X.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"}),on,an);_6.Item=X.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})),on,an);const C6=t=>{var{id:n,label:r,labelPosition:o,checked:i,disabled:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p}=t,d=a(t,["id","label","labelPosition","checked","disabled","margin","marginTop","marginBottom","marginRight","marginLeft"]);const h="right"===o,g={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};return e.jsxs(NK,Object.assign({htmlFor:n,labelRight:h,disabled:s},g,{children:[r&&e.jsx(LK,{children:r}),e.jsx(IK,Object.assign({id:n,type:"radio",checked:i,disabled:s},d)),e.jsx(un,{name:"radio-button",marginLeft:r&&!h?8:0,marginRight:r&&h?8:0,pointer:!s})]}))},O6=n=>{var{id:r,label:o,labelPosition:i,checked:s,disabled:c,onChange:u,margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h}=n,g=a(n,["id","label","labelPosition","checked","disabled","onChange","margin","marginTop","marginBottom","marginRight","marginLeft"]);const[y,v]=t.useState("toggle-off"),[m,b]=t.useState(s||!1),w="right"===i,x={margin:l,marginTop:f,marginBottom:p,marginRight:d,marginLeft:h};return t.useEffect((()=>{v(m?"toggle-on":"toggle-off")}),[m]),t.useEffect((()=>{b("boolean"==typeof s?s:m)}),[s,m]),e.jsxs(NK,Object.assign({htmlFor:r,labelRight:w,disabled:c},x,{children:[o&&e.jsx(LK,{children:o}),e.jsx(IK,Object.assign({id:r,type:"checkbox",checked:m,disabled:c,onChange:()=>{const e=!m;b(e),u(e)}},g)),e.jsx(un,{name:y,marginLeft:o&&!w?8:0,marginRight:o&&w?8:0,pointer:!c,size:40})]}))},S6=t=>{var{children:n,iconLeft:r,iconRight:o,disabled:i,pill:s}=t,c=a(t,["children","iconLeft","iconRight","disabled","pill"]);return e.jsxs(k6,Object.assign({as:s?void 0:"label",disabled:i,rightIcon:!!o,pill:s},c,{children:[r&&Yr(r,{marginRight:4,size:"small"}),n,o&&Yr(o,{marginLeft:4,size:"small"})]}))},k6=X.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}}),an),E6=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","onSubmit"]);return e.jsx(j6,Object.assign({as:"form",rows:r,columns:o,rowGap:i,columnGap:s,onSubmit:e=>{c?c(e):e.preventDefault()}},u,{children:n}))};E6.Group=t=>{var{children:n,rows:r,columns:o,rowGap:i,columnGap:s,disabled:c}=t,u=a(t,["children","rows","columns","rowGap","columnGap","disabled"]);return e.jsx(A6,Object.assign({rows:r,columns:o,rowGap:i,columnGap:s,disabled:c},u,{children:n}))},E6.Field=({children:t,inline:n,align:r,disabled:o})=>e.jsx(T6,Object.assign({inline:n,align:r,disabled:o},{children:t})),E6.Input=Xr,E6.Dropdown=lo,E6.Radio=C6,E6.Toggle=O6,E6.Checkbox=BK,E6.Label=S6;const j6=X(_6)({boxSizing:"border-box"}),A6=X(_6)((({disabled:e})=>e&&{opacity:.3,pointerEvents:"none"})),T6=X.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"})),P6=X.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}))),M6=X.div({position:"absolute",top:0,right:0,display:"flex",justifyContent:"center",alignItems:"center",cursor:"pointer",width:50,height:50,zIndex:1}),D6=X.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%)`}}))),R6=X.img((({maxWidth:e,maxHeight:t})=>({display:"block",justifySelf:"center",maxWidth:e||"100%",maxHeight:t||"100%"}))),N6=X.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"}))),I6=({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,children:w})=>e.jsx(L6,Object.assign({vertical:n,width:r,height:o,padding:i,paddingTop:a,paddingBottom:s,paddingLeft:c,paddingRight:u,border:l,borderTop:f,borderBottom:p,borderLeft:d,borderRight:h,borderTopLeftRadius:g,borderTopRightRadius:y,borderBottomLeftRadius:v,borderBottomRightRadius:m,backgroundColor:b,role:"menu"},{children:w?Br(w).map((e=>e?t.cloneElement(e,{vertical:n,backgroundColor:b}):null)):null})),L6=X.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}))),B6=X.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}))),F6=X.div((({theme:e,backgroundColor:t})=>({display:"flex",flexDirection:"column",backgroundColor:t||e.menu.background}))),z6=X.div({marginLeft:"auto",marginRight:8});I6.Item=({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,children:s,indent:c=1})=>e.jsx(B6,Object.assign({vertical:t,selected:n,disabled:r,contentPosition:o,onClick:i,id:a,role:"menuitem",indent:c},{children:s})),I6.Group=({label:n,defaultOpen:r,vertical:o,selected:i,disabled:a,contentPosition:s,onClick:c,id:u,children:l,indent:f=1,backgroundColor:p})=>{const[d,h]=t.useState(r||i),g=e=>Br(e).map((e=>{if(t.isValidElement(e)){const n=e;return n.props.selected&&!d&&h(!0),Array.isArray(n.props.children)&&g(n.props.children),t.cloneElement(e,{vertical:o,indent:f+1,backgroundColor:p})}return null})),y=g(l),v=()=>h((e=>!e));return e.jsxs(F6,Object.assign({backgroundColor:p},{children:[e.jsxs(B6,Object.assign({vertical:o,selected:i||!1,disabled:a,contentPosition:s,onClick:e=>{c?(c(e),d||v()):v()},id:u,role:"menuitem",indent:f},{children:[n,e.jsx(z6,Object.assign({onClick:e=>{e.stopPropagation(),v()}},{children:e.jsx(un,{name:d?"chevron-up":"chevron-down",pointer:!0})}))]})),d&&y]}))};const H6=({type:t,content:r,closeIcon:o,onClose:i,width:a,margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f,children:p})=>{const d=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||"",d),v={margin:s,marginTop:c,marginBottom:u,marginRight:l,marginLeft:f};return e.jsxs(K6,Object.assign({borderColor:g,backgroundColor:y,width:a,showingClose:o},v,{children:[e.jsx(un,{name:h,style:{marginRight:10},color:g}),e.jsx($6,{children:r||p}),o&&e.jsx(un,{name:"close",onClick:i,pointer:!0,color:d.scale8,hoverColor:d.scale10,marginLeft:"auto"})]}))},V6=X.div((({theme:e})=>({fontWeight:e.font.weight.medium}))),U6=X.div((({theme:e})=>({fontWeight:e.font.weight.default})));H6.Header=V6,H6.Body=U6;const K6=X.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})),an),$6=X.div({width:"100%"}),W6=X.div((({color:e})=>({fontSize:12,padding:"0 5px",color:e}))),q6=X.div((({theme:e})=>({height:1,backgroundColor:e.scale4,width:"100%"}))),G6=X.div({display:"grid",gridTemplateColumns:"1fr auto 1fr",alignItems:"center",padding:"10px 0"}),Z6=({children:n,rootSelector:o,visible:i,width:a,height:s,onClose:c,closeIcon:u,preventOverlayClose:l,overlayColor:f,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w,padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S})=>{const k=at(l?()=>null:c,i),E={padding:x,paddingTop:_,paddingBottom:C,paddingRight:O,paddingLeft:S},j=Br(n).map((e=>e?t.cloneElement(e,{inline:d}):null)),A=e.jsx(J6,Object.assign({color:f,noOverlay:h,centerX:g,centerY:y,top:v,bottom:m,right:b,left:w},{children:e.jsxs(Y6,Object.assign({ref:k,width:a,height:s,backgroundColor:p,small:d,noOverlay:h,centerX:g,centerY:y},E,{children:[j,u&&e.jsx(X6,Object.assign({inline:d},{children:e.jsx(un,{name:"close",onClick:c,pointer:!0})}))]}))})),T=document.querySelector(o||"#root");return i&&T?r.createPortal(A,T):null};Z6.Header=X.div((({theme:e})=>({color:e.modal.color.header,fontSize:e.font.size.xl,marginBottom:8}))),Z6.Text=X.div((({theme:e,primary:t,fontSize:n})=>({color:t?e.modal.color.header:e.modal.color.body,fontSize:n||e.font.size.lg}))),Z6.Body=X.div((({height:e})=>({height:e,overflow:e?"auto":void 0})),an),Z6.Footer=X.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})),an);const Y6=X.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"})`}),on),X6=X.div({display:"flex",justifyContent:"center",alignItems:"center"},(({inline:e})=>e?{marginLeft:16}:{position:"absolute",top:8,right:8})),J6=X.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)"}))),Q6=X.div((({width:e,disabled:t,labeled:n,collapse:r})=>({width:e,minWidth:200,height:r?62:41,position:"relative",cursor:n||t?"default":"text"}))),e7=X.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"}))),t7=X.div((({theme:e,collapse:t})=>({textAlign:t?void 0:"center",fontSize:e.font.size.md,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}))),n7=X.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}:{})),r7=X.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}))),o7=X.div((({theme:{size:e}})=>({display:"flex",alignItems:"center",columnGap:e.sm,whiteSpace:"nowrap"}))),i7=X.div((({theme:e,error:t})=>({color:t?e.color.error:e.scale8}))),a7=X.div((({theme:e})=>({display:"flex",color:e.scale4,fontSize:e.font.size.sm}))),s7=e=>e?+e:0,c7=X.nav({display:"flex",justifyContent:"space-between",alignItems:"center",columnGap:4},(({width:e})=>({width:e||"max-content"})),an),u7=X.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`}}))),l7=X(u7)((({theme:e,disabled:t})=>({color:t?e.scale4:e.scale8,cursor:t?"default":"pointer"}))),f7=X(u7)((({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}))),p7=X.span((({theme:e})=>({color:e.scale6}))),d7=({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,p=f*Math.PI*2,d=p-p*t/100,h=n/2;return e.jsxs(h7,Object.assign({size:n},l,{children:[e.jsx(g7,{cx:h,cy:h,r:f,thickness:r}),e.jsx(y7,{color:o,cx:h,cy:h,r:f,thickness:r,transform:`rotate(-90 ${h} ${h})`,circ:p,complete:d})]}))},h7=X.svg((({size:e})=>({display:"block",width:e,height:e})),an),g7=X.circle((({theme:e,thickness:t})=>({fill:"none",stroke:e.scale1,strokeWidth:t}))),y7=X(g7)((({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"}))),v7=X.div((({theme:e,width:t,height:n})=>({backgroundColor:e.scale1,borderRadius:24,width:t||"100%",height:n})),an),m7=X.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 b7={};!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 p(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 d(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=s(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function h(){this.a=0,this.c=null}function g(e){return e.a++,function(){e.a--,v(e)}}function y(e,t){e.c=t,v(e)}function v(e){0==e.a&&e.c&&(e.c(),e.c=null)}function m(e){this.a=e||"-"}function b(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function w(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function x(e){return e.a+e.f}function _(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function C(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function O(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 S(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:"+_(e)+";font-weight:"+e.f+"00;"}function P(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 M(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)},P.prototype.start=function(){var e=this.c.o.document,t=this,n=o(),r=new Promise((function(r,i){!function a(){o()-n>=t.f?i():e.fonts.load(function(e){return _(e)+" "+e.f+"00 300px "+w(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(a,25)}),(function(){i()}))}()})),i=null,a=new Promise((function(e,n){i=setTimeout(n,t.f)}));Promise.race([a,r]).then((function(){i&&(clearTimeout(i),i=null),t.g(t.a)}),(function(){t.j(t.a)}))};var D={D:"serif",C:"sans-serif"},R=null;function N(){if(null===R){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);R=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return R}function 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 L(e){var t,n=e.g.a.offsetWidth,i=e.h.a.offsetWidth;(t=n===e.f.serif&&i===e.f["sans-serif"])||(t=N()&&I(e,n,i)),t?o()-e.A>=e.w?N()&&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(){L(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}M.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=o(),L(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")):S(e.a))}function V(e){this.j=e,this.a=new E,this.h=0,this.f=this.g=!0}function U(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)S(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],p=s[f.c],d=t.a,h=f;if(d.g&&l(d.f,[d.a.c("wf",h.c,x(h).toString(),"loading")]),k(d,"fontloading",h),d=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;d=z?new P(r(t.g,t),r(t.h,t),t.c,f,t.s,p):new M(r(t.g,t),r(t.h,t),t.c,f,t.s,e,p),u.push(d)}for(c=0;c<u.length;c++)u[c].start()}}),0)}function K(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){U(e,i,t,n,r)}))}(this,new O(this.c,e),e)},K.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var s=0;s<o.length;s++){var 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;d(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++)p(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 G(e){this.f=e,this.a=[],this.c={}}var Z={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Y={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},X={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function Q(e,t){this.c=e,this.a=t}var ee={Arimo:!0,Cousine:!0,Tinos:!0};function te(e,t){this.c=e,this.a=t}function ne(e,t){this.c=e,this.f=t,this.a=[]}Q.prototype.load=function(e){var t=new h,n=this.c,r=new 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 G(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],s=r[1])for(var s,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=Z[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=Z[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new b(o,i[r]))}}(i),p(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?d(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],s=0;s<a.length;s++)r.push(new b(i,a[s]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ne.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new b(a.name,C("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},d(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 K(t,e)},re.a.c.typekit=function(e,t){return new te(t,e)},re.a.c.google=function(e,t){return new Q(t,e)};var oe={load:r(re.load,re)};e.exports?e.exports=oe:(window.WebFont=oe,window.WebFontConfig&&re.load(window.WebFontConfig))}()}({get exports(){return b7},set exports(e){b7=e}});var w7=b7;const x7=X.div(rn),_7=X.div((({width:e,readOnly:t})=>({display:"flex",flexDirection:"column",rowGap:16,width:e,pointerEvents:t?"none":void 0})),an),C7=X.div((({theme:e})=>({fontSize:e.font.size.lg,fontWeight:e.font.weight.medium}))),O7=X.div({display:"grid",columnGap:16,gridTemplateColumns:"1fr 1fr"}),S7=X.div({display:"flex",flexDirection:"column"}),k7=X.div({display:"flex",alignItems:"center",marginBottom:8,minHeight:35}),E7=X.div((({theme:e})=>({display:"flex",flexDirection:"column",padding:16,border:e.defaultBorder,borderRadius:4,height:"100%",backgroundColor:e.background1,rowGap:4}))),j7=X.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"}}})),A7=X.div((({theme:e})=>({fontSize:e.font.size.lg,color:e.scale10}))),T7=X.div((({theme:e})=>({fontSize:e.font.size.sm,color:e.scale6}))),P7=t.createContext({}),M7=(t,n)=>{const r="th"===n?D7:R7;return Br(t).map(((t,o)=>t?e.jsx(r,{children:t},`${n}${o+1}`):null))},D7=X.th((({theme:{table:e,font:t}})=>({color:e.color.header,fontSize:t.size.sm,fontWeight:t.weight.medium,width:"100%",textAlign:"left",overflow:"hidden"}))),R7=X.td((({theme:{table:e,font:t}})=>({color:e.color.body,fontSize:t.size.sm,width:"100%",overflow:"hidden"}))),N7=X(_6)({alignItems:"center",padding:"8px 24px"},on),I7=X.tbody((({height:e,maxHeight:t})=>({height:e,maxHeight:t,overflow:"auto"}))),L7=X(_6)((({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"}}),on),B7=X.div((({contentPosition:e})=>({justifyContent:"start"===e||"end"===e?`flex-${e}`:e}))),F7=X(B7)((({theme:e})=>({display:"flex",alignItems:"center",color:e.table.color.body,fontSize:e.font.size.sm})),(({showDefault:e})=>e&&{opacity:.3}),on),z7=X(B7)({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}}))),H7=n=>{var{children:r,columns:o,data:i}=n,s=a(n,["children","columns","data"]);const[c,u]=t.useState(i),[l,f]=t.useState(),p=i&&"function"==typeof r?r(c):r;t.useEffect((()=>{let e=i;if(l){const{key:t,dir:n}=l;e=ct.orderBy(i,t,n)}ct.isEqual(e,c)||u(e)}),[i,l]);const d=t.useMemo((()=>({activeColumn:l,setActiveColumn:f,parentColumns:o})),[l,f,o]);return e.jsx(P7.Provider,Object.assign({value:d},{children:e.jsx(V7,Object.assign({},s,{children:p}))}))};H7.Header=n=>{var{children:r,columns:o}=n,i=a(n,["children","columns"]);const{parentColumns:s}=t.useContext(P7),c=o||s||"equal";return e.jsx("thead",{children:e.jsx(N7,Object.assign({as:"tr",columns:c},i,{children:M7(r,"th")}))})},H7.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:p}=t.useContext(P7),d=s||a,h="desc"===c?"arrow-down":"arrow-up",g="asc"===c||"desc"===c,y=e=>{if(u(e),p&&s){p("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(z7,Object.assign({onClick:e=>{s?y("inactive"===c?"asc":"asc"===c?"desc":"inactive"):o&&o(e)},contentPosition:i,active:g,sorting:!!d},{children:[r,d?e.jsx(un,{name:h,marginLeft:8,size:"small",color:g?l.brand:void 0,inheritColor:!g}):null]}))},H7.Body=n=>{var{children:r,height:o,maxHeight:i}=n,s=a(n,["children","height","maxHeight"]);const{parentColumns:c}=t.useContext(P7);return e.jsx(I7,Object.assign({height:o,maxHeight:i},s,{children:t.Children.map(r,(e=>e?t.cloneElement(e,{parentColumns:c}):null))}))},H7.Row=n=>{var{children:r,columns:o,onClick:i}=n,s=a(n,["children","columns","onClick"]);const{parentColumns:c}=t.useContext(P7),u=o||c||"equal";return e.jsx(L7,Object.assign({as:"tr",columns:u,onClick:i,hoverEffect:!!i},s,{children:M7(r,"td")}))},H7.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(F7,Object.assign({contentPosition:n,showDefault:!!r&&!t},u,{children:t||r}))};const V7=X.table((({width:e})=>({width:e,"&, & > thead, & > tbody":{display:"block"}})),on,an),U7=({trigger:n,on:r="hover",children:o,content:i,style:a,position:s,offsetY:c,offsetArrowX:u,offsetX:l,containerWidth:f,width:p,maxWidth:d,textAlign:h,disabled:g,id:y,afterShow:v,afterHide:m,bgColor:b,color:w})=>{const[x,_]=t.useState(!1),C=e=>{_(e),v&&e&&v(),m&&!e&&m()},O=e=>{if(!g)switch(e.type){case"mouseover":r&&"hover"!==r||C(!0);break;case"mouseleave":r&&"hover"!==r||C(!1);break;case"click":"click"===r&&C(!x)}};return e.jsxs(q7,Object.assign({width:f,onMouseLeave:O,onMouseOver:O,onClick:O,style:a,onFocus:O},{children:[e.jsx(W7,Object.assign({visible:x,position:s,offsetY:c,offsetX:l,offsetArrowX:u,width:p,maxWidth:d,textAlign:h,id:y,bgColor:b,textColor:w},{children:i||o})),n]}))},K7=X.div((({theme:e})=>({color:e.tooltip.color.default}))),$7=X.div((({theme:e})=>({color:e.tooltip.color.subtext}))),W7=X.div((({theme:e,width:t,maxWidth:n,textAlign:r,bgColor:o,textColor:i})=>{const{tooltip:a,font:s}=e,c=a.background,u=o||c;return{backgroundColor:u,boxShadow:e.elevation1,color:i||a.color.default,fontSize:s.size.sm,fontFamily:s.family.default,borderRadius:3,position:"absolute",width:t||"max-content",maxWidth:n,padding:16,textAlign:r,zIndex:10,"&::after":{content:'""',position:"absolute",borderWidth:8,borderStyle:"solid",borderColor:`${u} transparent transparent transparent`,filter:"drop-shadow(0px 4px 2px rgba(0, 0, 0, 0.1))"}}}),(({position:e="top center",offsetY:t=0,offsetX:n=0,offsetArrowX:r=0})=>{const[o,i]=e.split(" ");let a={},s={};switch(o){case"bottom":switch(a=Object.assign(Object.assign({},a),{top:`calc(100% + 12px - ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={bottom:"100%",marginLeft:-8,marginBottom:-1,transform:"rotate(180deg)"},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}break;case"left":a=Object.assign(Object.assign({},a),{right:`calc(100% + 10px - ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={left:"100%",marginLeft:-1,transform:"translate(0,-50%) rotate(-90deg)",top:"50%"};break;case"right":a=Object.assign(Object.assign({},a),{left:`calc(100% + 10px + ${n}px)`,top:`calc(50% - ${t}px)`,transform:"translate(0,-50%)"}),s={right:"100%",marginRight:-1,transform:"translate(0,-50%) rotate(90deg)",top:"50%"};break;default:switch(a=Object.assign(Object.assign({},a),{bottom:`calc(100% + 12px + ${t}px)`,left:`calc(50% + ${n}px)`,transform:"translate(-50%)"}),s={top:"100%",marginLeft:-8,marginTop:-1},i){case"left":a=Object.assign(Object.assign({},a),{left:`calc(100% - 50% - 20px + ${n}px)`,transform:void 0}),s=Object.assign(Object.assign({},s),{left:`calc(20px + ${r}px)`});break;case"right":a=Object.assign(Object.assign({},a),{right:`calc(100% - 50% - 27px - ${n}px)`,transform:void 0,left:void 0}),s=Object.assign(Object.assign({},s),{right:`calc(20px - ${r}px)`});break;default:s=Object.assign(Object.assign({},s),{left:`calc(50% + ${r}px)`})}}return Object.assign(Object.assign({},a),{"&::after":s})}),(({visible:e})=>({visibility:e?"visible":"hidden",opacity:e?1:0,transition:"all .2s ease"}))),q7=X.div((({width:e})=>({position:"relative",display:"flex",width:e||"max-content",outline:"none"})));U7.Header=K7,U7.Body=$7;const G7="#0074F4",Z7="#FF6068",Y7="#FF9900",X7="#F0BB00",J7="#00C242",Q7="#001D32",e8="#FFFFFF",t8={logo1:"#0074F4",logo2:"#00A9E2",logo3:"#67C728",brand:G7,brandShade1:"#0068DC",brandShade2:"#005DC3",brandDark:"#4C9EF7",brandDarkShade1:"#5EA8F8",brandTint0:cr(.95,G7),brandTint1:cr(.9,G7),brandTint2:cr(.8,G7),brandTint3:cr(.7,G7),brandTint4:cr(.6,G7),brandBackground0:"#001828",brandBackground1:"#0D2433",brandBackground2:"#192F3D",brandBackground3:"#334653",brandBackground4:"#475964",brandBackground5:"#596A74",error:Z7,errorShade1:"#E6565E",errorShade2:"#CC4D53",errorTint0:cr(.95,Z7),errorTint1:cr(.9,Z7),errorTint2:cr(.8,Z7),warning:Y7,warningShade1:"#E68A00",warningShade2:"#CC7A00",warningTint0:cr(.95,Y7),warningTint1:cr(.9,Y7),warningTint2:cr(.8,Y7),alert:X7,alertShade1:"#E4B200",alertShade2:"#C09600",alertTint0:cr(.95,X7),alertTint1:cr(.9,X7),alertTint2:cr(.8,X7),success:J7,successShade1:"#00AF3B",successShade2:"#009B35",successTint0:cr(.95,J7),successTint1:cr(.9,J7),successTint2:cr(.8,J7),grayscale0:cr(.95,Q7),grayscale1:cr(.9,Q7),grayscale2:cr(.8,Q7),grayscale3:cr(.7,Q7),grayscale4:cr(.6,Q7),grayscale5:cr(.5,Q7),grayscale6:cr(.4,Q7),grayscale7:cr(.3,Q7),grayscale8:cr(.2,Q7),grayscale9:cr(.1,Q7),grayscale10:Q7,contrast0:cr(.95,e8),contrast1:cr(.9,e8),contrast2:cr(.8,e8),contrast3:cr(.7,e8),contrast4:cr(.6,e8),contrast5:cr(.5,e8),contrast6:cr(.4,e8),contrast7:cr(.3,e8),contrast8:cr(.2,e8),contrast9:cr(.1,e8),contrast10:e8};var n8={color:t8,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:r8}=n8;var o8={small:{height:28,iconSize:18,font:r8.size.sm,padding:10,iconOnlyPadding:4},medium:{height:32,iconSize:22,font:r8.size.md,padding:12,iconOnlyPadding:5},large:{height:36,iconSize:24,font:r8.size.lg,padding:14,iconOnlyPadding:6}};const i8="#FFFFFF",a8=t8.grayscale0,s8=t8.grayscale1,c8=t8.grayscale2,u8=t8.grayscale3,l8=t8.grayscale4,f8=t8.grayscale5,p8=t8.grayscale6,d8=t8.grayscale7,h8=t8.grayscale8,g8=t8.grayscale9,y8=t8.grayscale10,v8=Object.assign(Object.assign({},n8),{name:"light",accent:t8.brand,accentShade:t8.brandShade1,background0:i8,background1:i8,background2:i8,background3:i8,background4:i8,background5:i8,scale0:a8,scale1:s8,scale2:c8,scale3:u8,scale4:l8,scale5:f8,scale6:p8,scale7:d8,scale8:h8,scale9:g8,scale10:y8,button:Object.assign(Object.assign({},o8),{primary:{color:{default:i8,hover:i8,active:i8},outlineColor:{default:y8,hover:y8,active:y8},background:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},outlineBackground:{default:t8.brandTint0,hover:t8.brandTint1,active:t8.brandTint2},border:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},divider:c8},secondary:{color:{default:y8,hover:y8,active:y8},outlineColor:{default:y8,hover:y8,active:y8},background:{default:s8,hover:c8,active:u8},outlineBackground:{default:s8,hover:c8,active:u8},border:{default:c8,hover:c8,active:c8},divider:c8},positive:{color:{default:i8,hover:i8,active:i8},outlineColor:{default:y8,hover:y8,active:y8},background:{default:t8.success,hover:t8.successShade1,active:t8.successShade2},outlineBackground:{default:t8.successTint0,hover:t8.successTint1,active:t8.successTint2},border:{default:t8.success,hover:t8.successShade1,active:t8.successShade2},divider:c8},negative:{color:{default:i8,hover:i8,active:i8},outlineColor:{default:y8,hover:y8,active:y8},background:{default:t8.error,hover:t8.errorShade1,active:t8.errorShade2},outlineBackground:{default:t8.errorTint0,hover:t8.errorTint1,active:t8.errorTint2},border:{default:t8.error,hover:t8.errorShade1,active:t8.errorShade2},divider:c8},caution:{color:{default:i8,hover:i8,active:i8},outlineColor:{default:y8,hover:y8,active:y8},background:{default:t8.warning,hover:t8.warningShade1,active:t8.warningShade2},outlineBackground:{default:t8.warningTint0,hover:t8.warningTint1,active:t8.warningTint2},border:{default:t8.warning,hover:t8.warningShade1,active:t8.warningShade2},divider:c8},subtle:{color:{default:t8.brand,hover:t8.brand,active:t8.brand},outlineColor:{default:t8.brand,hover:t8.brand,active:t8.brand},secondaryColor:{default:y8,hover:y8,active:y8},positiveColor:{default:t8.success,hover:t8.success,active:t8.success},negativeColor:{default:t8.error,hover:t8.error,active:t8.error},cautionColor:{default:t8.warning,hover:t8.warning,active:t8.warning},background:{default:"transparent",hover:s8,active:c8},outlineBackground:{default:"transparent",hover:s8,active:c8},border:{default:"transparent",hover:c8,active:c8},divider:c8},link:{color:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},outlineColor:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},secondaryColor:{default:h8,hover:g8,active:y8},positiveColor:{default:t8.success,hover:t8.successShade1,active:t8.successShade2},negativeColor:{default:t8.error,hover:t8.errorShade1,active:t8.errorShade2},cautionColor:{default:t8.warning,hover:t8.warningShade1,active:t8.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:l8,hover:l8,active:l8},outlineColor:{default:l8,hover:l8,active:l8},background:{default:s8,hover:s8,active:s8},outlineBackground:{default:a8,hover:a8,active:a8},border:{default:s8,hover:s8,active:s8},divider:s8},color:{default:i8}}),calendar:{background:{container:t8.contrast10,hover:s8,active:t8.brand,activeHover:t8.brandShade1},color:{disabled:l8,default:y8,active:t8.contrast10,current:t8.brand,outside:p8,weekday:h8,monthYear:h8,iconDefault:l8,iconHover:y8}},defaultBorder:`1px solid ${s8}`,formControl:{color:{default:h8,hover:y8,active:t8.brand,activeHover:t8.brandShade1,disabled:l8}},input:{borderRadius:4,background:{default:a8,hover:s8,focused:s8,disabled:a8},color:{default:y8,disabled:l8,placeholder:p8,description:p8,descriptionError:t8.error},borderColor:{default:p8,hover:h8,focused:t8.brand,disabled:l8,error:t8.error},labelColor:{default:h8,hover:h8,filled:p8,focused:t8.brand,disabled:l8}},menu:{background:i8},menuItem:{borderColor:t8.brand,background:{active:a8,hover:s8,inactive:"transparent"},color:{active:y8,hover:y8,inactive:p8}},modal:{background:t8.contrast10,color:{header:y8,body:p8}},options:{background:t8.contrast10},optionItem:{background:{active:s8,inactive:"transparent"},color:{active:y8,inactive:y8,accent:t8.brand}},table:{color:{header:p8,body:y8},borderColor:s8},toast:{color:y8,background:{deafult:"#F2F3F4",info:"#CCE3FD",success:"#CCF3D9",warning:"#FFEBCC",error:"#FFDFE1"},border:{deafult:h8,info:t8.brand,success:t8.success,warning:t8.warning,error:t8.error}},toggle:{slider:t8.contrast10},tooltip:{background:"#FFF",color:{default:y8,subtext:p8}}}),m8=t8.contrast0,b8=t8.contrast1,w8=t8.contrast2,x8=t8.contrast3,_8=t8.contrast4,C8=t8.contrast5,O8=t8.contrast6,S8=t8.contrast7,k8=t8.contrast8,E8=t8.contrast9,j8=t8.contrast10,A8=t8.brandDark,T8={light:v8,dark:Object.assign(Object.assign({},n8),{name:"dark",accent:A8,accentShade:t8.brandDarkShade1,background0:t8.brandBackground0,background1:t8.brandBackground1,background2:t8.brandBackground2,background3:t8.brandBackground3,background4:t8.brandBackground4,background5:t8.brandBackground5,scale0:m8,scale1:b8,scale2:w8,scale3:x8,scale4:_8,scale5:C8,scale6:O8,scale7:S8,scale8:k8,scale9:E8,scale10:j8,button:Object.assign(Object.assign({},o8),{primary:{color:{default:j8,hover:j8,active:j8},outlineColor:{default:j8,hover:j8,active:j8},background:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},outlineBackground:{default:t8.brandTint0,hover:t8.brandTint1,active:t8.brandTint2},border:{default:t8.brand,hover:t8.brandShade1,active:t8.brandShade2},divider:w8},secondary:{color:{default:j8,hover:j8,active:j8},outlineColor:{default:j8,hover:j8,active:j8},background:{default:b8,hover:w8,active:x8},outlineBackground:{default:b8,hover:w8,active:x8},border:{default:w8,hover:w8,active:w8},divider:w8},positive:{color:{default:j8,hover:j8,active:j8},outlineColor:{default:j8,hover:j8,active:j8},background:{default:t8.success,hover:t8.successShade1,active:t8.successShade2},outlineBackground:{default:t8.successTint0,hover:t8.successTint1,active:t8.successTint2},border:{default:t8.success,hover:t8.successShade1,active:t8.successShade2},divider:w8},negative:{color:{default:j8,hover:j8,active:j8},outlineColor:{default:j8,hover:j8,active:j8},background:{default:t8.error,hover:t8.errorShade1,active:t8.errorShade2},outlineBackground:{default:t8.errorTint0,hover:t8.errorTint1,active:t8.errorTint2},border:{default:t8.error,hover:t8.errorShade1,active:t8.errorShade2},divider:w8},caution:{color:{default:j8,hover:j8,active:j8},outlineColor:{default:j8,hover:j8,active:j8},background:{default:t8.warning,hover:t8.warningShade1,active:t8.warningShade2},outlineBackground:{default:t8.warningTint0,hover:t8.warningTint1,active:t8.warningTint2},border:{default:t8.warning,hover:t8.warningShade1,active:t8.warningShade2},divider:w8},subtle:{color:{default:t8.brand,hover:t8.brand,active:t8.brand},outlineColor:{default:t8.brand,hover:t8.brand,active:t8.brand},secondaryColor:{default:j8,hover:j8,active:j8},positiveColor:{default:t8.success,hover:t8.success,active:t8.success},negativeColor:{default:t8.error,hover:t8.error,active:t8.error},cautionColor:{default:t8.warning,hover:t8.warning,active:t8.warning},background:{default:"transparent",hover:b8,active:w8},outlineBackground:{default:"transparent",hover:b8,active:w8},border:{default:"transparent",hover:w8,active:w8},divider:w8},link:{color:{default:t8.brandShade2,hover:t8.brandShade1,active:t8.brand},outlineColor:{default:t8.brandShade2,hover:t8.brandShade1,active:t8.brand},secondaryColor:{default:k8,hover:E8,active:j8},positiveColor:{default:t8.successShade2,hover:t8.successShade1,active:t8.success},negativeColor:{default:t8.errorShade2,hover:t8.errorShade1,active:t8.error},cautionColor:{default:t8.warningShade2,hover:t8.warningShade1,active:t8.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:_8,hover:_8,active:_8},outlineColor:{default:_8,hover:_8,active:_8},background:{default:b8,hover:b8,active:b8},outlineBackground:{default:m8,hover:m8,active:m8},border:{default:b8,hover:b8,active:b8},divider:b8},color:{default:"#FFFFFF"}}),calendar:{background:{container:t8.brandBackground3,hover:b8,active:t8.brand,activeHover:t8.brandShade1},color:{disabled:_8,default:j8,active:j8,current:A8,outside:O8,weekday:k8,monthYear:k8,iconDefault:_8,iconHover:j8}},defaultBorder:`1px solid ${b8}`,formControl:{color:{default:k8,hover:j8,active:t8.brand,activeHover:t8.brandShade1,disabled:_8}},input:{borderRadius:4,background:{default:m8,hover:b8,focused:b8,disabled:m8},color:{default:j8,disabled:_8,placeholder:O8,description:O8,descriptionError:t8.error},borderColor:{default:O8,hover:k8,focused:A8,disabled:_8,error:t8.error},labelColor:{default:k8,hover:k8,filled:O8,focused:A8,disabled:_8}},menu:{background:t8.brandBackground2},menuItem:{borderColor:t8.brand,background:{active:m8,hover:b8,inactive:"transparent"},color:{active:j8,hover:j8,inactive:O8}},modal:{background:t8.brandBackground3,color:{header:j8,body:O8}},options:{background:t8.brandBackground3},optionItem:{background:{active:b8,inactive:"transparent"},color:{active:j8,inactive:j8,accent:A8}},table:{color:{header:O8,body:j8},borderColor:b8},toast:{color:j8,background:{deafult:"#0D2433",info:"#002A51",success:"#003A2D",warning:"#333220",error:"#332635"},border:{deafult:k8,info:t8.brand,success:t8.success,warning:t8.warning,error:t8.error}},toggle:{slider:t8.brandBackground0},tooltip:{background:t8.brandBackground4,color:{default:j8,subtext:O8}}})};exports.Accordion=pn,exports.Audio=To,exports.BarChart=t=>{var{data:r,legend:o,keys:i,stacked:s}=t,c=a(t,["data","legend","keys","stacked"]);const{scale2:u}=n.useTheme();return e.jsxs(bK,Object.assign({},c,{children:[e.jsx(mK,{}),e.jsx(mx,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(wB,Object.assign({margin:{top:0,left:-14,right:0,bottom:-8},data:r},{children:[e.jsx(EI,{stroke:u,strokeDasharray:"3 5",vertical:!1}),e.jsx(vL,{stroke:u,dataKey:"name",tickMargin:4}),e.jsx(mL,{stroke:u,tickMargin:4}),xK(),o&&e.jsx(lg,{content:e.jsx(_K,{})}),i.map((({key:t,color:n},r)=>e.jsx(fN,{barSize:16,dataKey:t,fill:n,stackId:s?"stack":void 0},`bar-${r+1}`)))]}))}))]}))},exports.Button=xo,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,p]=t.useState(c),[d,h]=t.useState(),{calendar:g}=n.useTheme(),y=e=>pK(e,{hours:0,minutes:0,seconds:0,milliseconds:0}),v=e=>{const t=dK(("prev"===e?gK:UV)(f,{months:1}),1),n=y(t);p(n)},m=(e,t,n)=>{const r="past"===n;let o;o="past"===n?aK(gK(e,{months:1})):dK("future"===n?UV(e,{months:1}):e,1);const i=[];for(let e=0;e<t;e++){const t=r?"unshift":"push",n=(r?gK:UV)(o,{days:e}),a=y(n);i[t](a)}return i},b=e=>{const t=function(e){return LV(1,arguments),FV(e).getDay()}(dK(e,1)),n=iK(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(aK(f)),s=y(dK(f,1));let l=!1;const p=cK(e,n),d=sK(e,r);(i&&p||a&&d)&&(l=!0);const h=sK(e,o)||cK(e,s),g=YV(e,c),v=YV(e,u);return{date:oK(e),fullDate:e,current:g,disabled:l,outside:h,active:v}}))};t.useEffect((()=>{const e=b(f);h(e)}),[u,f]);return e.jsxs(EK,Object.assign({noShadow:s},{children:[e.jsxs(jK,{children:[e.jsx(AK,{children:rK(f,"MMMM Y")}),e.jsxs(TK,{children:[e.jsx(un,{name:"chevron-left",pointer:!0,marginRight:16,onClick:()=>v("prev"),hoverColor:g.color.iconHover}),e.jsx(un,{name:"chevron-right",pointer:!0,onClick:()=>v("next"),hoverColor:g.color.iconHover})]})]}),e.jsx(DK,{children:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"].map((t=>e.jsx(RK,{children:t[0]},t)))}),e.jsx(PK,{children:(null==d?void 0:d.length)&&d.map((({date:t,fullDate:n,disabled:r,current:i,outside:a,active:s})=>e.jsx(MK,Object.assign({disabled:r,current:i,outside:a,active:s,onClick:()=>(e=>{l(e),o(e)})(n)},{children:t}),Er())))})]}))},exports.Checkbox=BK,exports.Code=({children:t,code:r,className:o,lang:i,lineHighlights:a,noNumbers:s,margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p})=>{const{name:d}=n.useTheme(),h={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p},g=(null==o?void 0:o.replace(/}/g,"").split("{"))||[];let[y,v,m]=g;y=y||i||"",v=v||a||"",m=m||s?"nonumbers":"";let b=y?y.replace(/language-/,""):"text",w="";if(b.includes("rest")){const[e,t]=b.split("-");b=e,w=(null==t?void 0:t.toUpperCase())||""}const x="nonumbers"===m.toLowerCase().trim(),_=e=>{if(v){const t=(e=>{const t=e.split(",").map((e=>{if(e.match(/^\d+$/))return parseInt(e);if(e.includes("-")){const[t,n]=e.split("-"),r=parseInt(t),o=parseInt(n);return r<o?ct.range(r,o+1):ct.rangeRight(o,r+1)}return null})),n=t.flat();return ct.compact(n)})(v);return t.some((t=>e===t))}return!1},C=(null==r?void 0:r.trim())||(null==t?void 0:t.trim())||"";return"rest"===b?e.jsx(n$,{method:w,url:C}):e.jsx(ZK,Object.assign({},HK,{code:C,language:b,theme:"dark"===d?JK:QK},{children:({className:t,style:n,tokens:r,getLineProps:o,getTokenProps:i})=>e.jsxs(a$,Object.assign({className:t,style:Object.assign({},n)},h,{"data-testid":"code"},{children:[r.map(((t,n,r)=>e.jsxs(s$,Object.assign({},o({line:t,key:n}),{highlight:_(n+1)},{children:[r.length>1&&!x&&e.jsx(c$,{children:n+1}),t.map(((t,n)=>e.jsx("span",Object.assign({},i({token:t,key:n})),t.content)))]})))),e.jsx(e$,{content:C})]}))}))},exports.DocTable=u$,exports.DraftEditor=w6,exports.Dropdown=lo,exports.Form=E6,exports.Grid=_6,exports.Icon=un,exports.ImageViewer=({visible:n,close:r,images:o,startIndex:i,alt:a,maxWidth:s,maxHeight:c,opacity:u})=>{const[l,f]=t.useState(i),p=at(r,n,["#prev","#next","#prev *","#next *"]);t.useEffect((()=>{f(i)}),[i]);const d=()=>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(),d();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(P6,Object.assign({opacity:u,prevNext:o.length>1},{children:[e.jsx(M6,Object.assign({onClick:r},{children:e.jsx(un,{name:"close",size:25,color:"white"})})),o.length>1&&e.jsx(D6,Object.assign({id:"prev",onClick:d},{children:e.jsx(un,{name:"chevron-left",size:35,color:"white"})})),e.jsx(R6,{ref:p,src:o[l],alt:a,maxWidth:s,maxHeight:c}),o.length>1&&e.jsx(D6,Object.assign({next:!0,id:"next",onClick:h},{children:e.jsx(un,{name:"chevron-right",size:35,color:"white"})}))]})):null},exports.InlineCode=N6,exports.Input=Xr,exports.InputUtils=Zr,exports.Label=S6,exports.LineChart=r=>{var{data:o,legend:i,keys:s}=r,c=a(r,["data","legend","keys"]);const[u,l]=t.useState(s),{scale2:f}=n.useTheme();return e.jsxs(bK,Object.assign({},c,{children:[e.jsx(mK,{}),e.jsx(mx,Object.assign({width:"100%",height:"100%"},{children:e.jsxs(bB,Object.assign({margin:{top:8,left:-14,right:5,bottom:-8},data:o},{children:[e.jsx(EI,{stroke:f,strokeDasharray:"3 5",vertical:!1}),e.jsx(vL,{stroke:f,dataKey:"name",tickMargin:4}),e.jsx(mL,{stroke:f,tickMargin:4}),xK(),i&&e.jsx(lg,{content:e.jsx(_K,{toggleData:s.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(UI,{dataKey:t,stroke:n,dot:!1,hide:r,activeDot:{stroke:n,strokeWidth:1,r:3},type:"monotone"},`line-${o+1}`)))]}))}))]}))},exports.Menu=I6,exports.Message=H6,exports.MessageHr=({text:t,color:n,style:r})=>e.jsxs(G6,{children:[e.jsx(q6,{}),e.jsx(W6,Object.assign({color:n,style:r},{children:t})),e.jsx(q6,{})]}),exports.Modal=Z6,exports.MultiSelect=o=>{var{children:i,options:s,items:c,listLabel:u,listText:l,itemsTitle:f,maxItems:p,placeholder:d,width:h,filter:g,restrictInput:y,disabled:v,hideItemsInfo:m,optionsParent:b,compact:w,backgroundColor:x,borderless:_,addItem:C,removeItem:O,onTextChange:S,autoFocus:k}=o,E=a(o,["children","options","items","listLabel","listText","itemsTitle","maxItems","placeholder","width","filter","restrictInput","disabled","hideItemsInfo","optionsParent","compact","backgroundColor","borderless","addItem","removeItem","onTextChange","autoFocus"]);const[j,A]=t.useState(k||!1),[T,P]=t.useState(!1),[M,D]=t.useState(""),{color:R,font:N,input:I}=n.useTheme(),L=at((()=>A(!1)),j,b?[b,`${b} *`]:void 0),B=t.useRef(null),F=w&&!!u,z=e=>{e&&C(e)},H=e=>{D(e),S&&S(e)};t.useEffect((()=>{const{current:e}=B;e&&!j&&e.blur()}),[j]);it(document,"keydown",(e=>{const{key:t,altKey:n,ctrlKey:r,metaKey:o}=e;if(!(n||r||o)&&t&&"Backspace"===t)if(c.length>0){e.preventDefault();const t=c[c.length-1];O(t)}}),j&&!M,[c]);const V=s.filter((e=>!c.find((t=>t.id===e.id)))),U=t.useMemo((()=>`multi-select-${Er()}`),[]),K=t.useMemo((()=>`multi-select-list-${Er()}`),[]),$=p?c.length>=p:void 0,W=v||!j||$,q=()=>{const t=e.jsxs(n7,Object.assign({id:K,expanded:j,padTop:j&&c.length>0,labeled:!!u},{children:[l&&e.jsx(r7,Object.assign({expanded:j,labeled:!!u},{children:l})),i?i(j,!!v):c.map((t=>e.jsx(S6,Object.assign({pill:!0,iconRight:j&&!v?e.jsx(un,{name:"close-circle",onClick:()=>O(t),pointer:!0}):void 0,disabled:v},{children:t.label}),t.id))),e.jsx(lo,Object.assign({},E,{textOnly:!0,hideIcon:!0,clearOnSelect:!0,search:!0,filter:g,backgroundColor:"transparent",restrictInput:y,options:V,fontSize:N.size.md,placeholder:v||c.length>0?" ":d||"Search...",placeholderColor:I.color.placeholder,inputRef:B,onChange:z,onTextChange:H,onError:e=>P(e),disabled:W,optionsParent:b?`#${K}`:`#${U}`,autoFocus:k}))]}));if(b){const e=document.querySelector(b);return e?r.createPortal(t,e):t}return t};return e.jsxs(Q6,Object.assign({width:h,ref:L,labeled:!!u,disabled:v,collapse:F,onClick:e=>{e.stopPropagation();const{current:t}=B;j||u||A(!0),null==t||t.focus()}},{children:[e.jsxs(e7,Object.assign({collapse:F,id:U,expanded:j&&c.length>0,error:T,labeled:!!u,backgroundColor:x,borderless:_},{children:[u?e.jsx(t7,Object.assign({collapse:F},{children:u})):q(),e.jsxs(o7,{children:[p&&!m&&e.jsx(a7,{children:v&&f?e.jsxs(e.Fragment,{children:[c.length," ",f]}):e.jsxs(e.Fragment,{children:[e.jsx(i7,Object.assign({error:c.length>=p},{children:c.length})),"/",p," ",f]})}),c.length>0&&e.jsx(un,{name:j?"chevron-up":"chevron-down",color:R.brand,pointer:!0,onClick:e=>{e.stopPropagation(),A(!j)}})]})]})),u&&j&&q()]}))},exports.Notification=NV,exports.Options=no,exports.Pagination=n=>{var{onPageNav:r,page:o,totalPages:i,maxVisibleNumbers:s,width:c}=n,u=a(n,["onPageNav","page","totalPages","maxVisibleNumbers","width"]);const[l,f]=t.useState(s7(o)||1),[p,d]=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,s7(s)||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);d(t),f(e),r(e)}},v=0!==p,m=p!==g.length-1;return e.jsxs(c7,Object.assign({width:c},u,{children:[e.jsx(l7,Object.assign({disabled:1===l,onClick:()=>y(1)},{children:e.jsx(un,{name:"double-arrow-left",title:"first",inheritColor:!0})})),e.jsx(l7,Object.assign({disabled:1===l,onClick:()=>y(l-1)},{children:e.jsx(un,{name:"chevron-left",title:"prev",inheritColor:!0})})),g[p].map(((n,r,o)=>e.jsxs(t.Fragment,{children:[0===r&&v?e.jsx(p7,{children:"... "}):"",e.jsx(f7,Object.assign({selected:n===l,onClick:()=>y(n)},{children:n})),r===o.length-1&&m?e.jsx(p7,{children:" ..."}):""]},`pageIndex-${n}`))),e.jsx(l7,Object.assign({disabled:l===i,onClick:()=>y(l+1)},{children:e.jsx(un,{name:"chevron-right",title:"next",inheritColor:!0})})),e.jsx(l7,Object.assign({disabled:l===i,onClick:()=>y(i)},{children:e.jsx(un,{name:"double-arrow-right",title:"last",inheritColor:!0})}))]}))},exports.PieChart=t=>{var{size:n=200,data:r,innerRadius:o,showWhenEmpty:i}=t,s=a(t,["size","data","innerRadius","showWhenEmpty"]);const c=(null==r?void 0:r.length)>0,u=c?r:i?[{name:"1",value:1,color:"#999"}]:void 0,l=n/2-1;return e.jsx(bK,Object.assign({width:n,height:n},s,{children:e.jsxs(xB,Object.assign({width:n,height:n},{children:[e.jsx(kD,Object.assign({dataKey:"value",data:u,innerRadius:o,outerRadius:l},{children:null==u?void 0:u.map((t=>e.jsx(bx,{fill:t.color||"#999"},t.name)))})),c&&xK()]}))}))},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:p})=>{const d={margin:c,marginTop:u,marginBottom:l,marginRight:f,marginLeft:p};let h=t;return t>100?h=100:t<0&&(h=0),r?e.jsx(d7,Object.assign({percent:h,size:a,thickness:s,color:n},d)):e.jsx(v7,Object.assign({width:o,height:i||s},d,{children:e.jsx(m7,{color:n,width:h})}))},exports.Radio=C6,exports.ResetStyles=({families:r,fontFamily:o})=>(t.useEffect((()=>{var e;e=r,w7.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=Eo,exports.Spacer=x7,exports.Spinner=zr,exports.Table=H7,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=O6,exports.Tooltip=U7,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:p,marginBottom:d,marginRight:h,marginLeft:g})=>{const y=t.useRef(),[v,m]=t.useState([]),[b,w]=t.useState([]),x={margin:f,marginTop:p,marginBottom:d,marginRight:h,marginLeft:g},_=e=>{const t=Object.assign({},e);return delete t.selected,t};t.useEffect((()=>{if(!ct.isEqual(n,y.current)){y.current=n;const e=n.filter((e=>e.selected)).map(_),t=n.filter((e=>!e.selected)).map(_);w(e),m(t)}}),[n,y]),t.useEffect((()=>{r(b)}),[b]);const C=(e,t)=>{const n=n=>((e,t)=>{const n="select"===t,r=n?w:m;(n?m:w)((t=>((e,t)=>e.filter((e=>e.id!==t.id)))(t,e))),r((t=>[...t,e]))})(n||e,t);o?o(e,t,n):n()},O=e=>{const t="select"===e?m:w,n="select"===e?v:b;("select"===e?w:m)((e=>[...e,...n])),t([])},S=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(A7,{children:t.header}),e.jsx(T7,{children:t.body})]})):t.label,t.rightElement&&e.jsx("div",Object.assign({style:{marginLeft:"auto"}},{children:t.rightElement}))]})),k=!(s&&c);return e.jsxs(_7,Object.assign({width:l,readOnly:u},x,{children:[i&&e.jsx(C7,{children:i}),e.jsxs(O7,{children:[!u&&e.jsxs(S7,{children:[k&&e.jsx(k7,{children:v.length>0&&!s&&e.jsx(xo,Object.assign({small:!0,outline:!0,onClick:()=>O("select"),icon:"arrow-right",iconPosition:"right"},{children:"All"}))}),e.jsx(E7,{children:v.map((t=>e.jsxs(j7,Object.assign({onClick:()=>C(t,"select"),color:t.color},{children:[S(t),e.jsx(un,{name:"chevron-right"})]}),t.id)))})]}),e.jsxs(S7,{children:[k&&!u&&e.jsx(k7,{children:b.length>0&&!c&&!u&&e.jsx(xo,Object.assign({small:!0,outline:!0,secondary:!0,onClick:()=>O("remove"),icon:"arrow-left"},{children:"All"}))}),u&&0===b.length?e.jsx("div",{children:a}):e.jsx(E7,{children:b.map((t=>e.jsxs(j7,Object.assign({onClick:()=>C(t,"remove"),color:t.color},{children:[S(t),e.jsx(un,{name:"chevron-left"})]}),t.id)))})]})]})]}))},exports.copyToClipboard=yK,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=rK(n,"EEEE"),l=rK(n,"MMM d"),f=rK(n,"MMM d, y"),p=rK(n,"h:mm aaa"),d=uK(n),h=function(e){return LV(1,arguments),FV(e).getTime()>Date.now()}(n),g=function(e){return LV(1,arguments),YV(e,Date.now())}(n),y=function(e){return LV(1,arguments),YV(e,lK(Date.now(),1))}(n),v=function(e){return LV(1,arguments),YV(e,zV(Date.now(),1))}(n),m=oU(c,n),b=function(e,t,n){LV(2,arguments);var r=eU(e,t)/7;return rU(null==n?void 0:n.roundingMethod)(r)}(c,n),w=m>=-10&&m<=10,x=a||s?`, ${p}`:"",_=e=>{if(o){return["Just","Yesterday","Today","Tomorrow"].some((t=>e.includes(t)))?e.toLowerCase():e}return e};if(i)return _(p);if(s){if(0===m)return _("Just now");if(w)return _(h?`Today, in ${-1*m} min.`:`${m} min. ago`);if(g)return _(h?`Today${x}`:p)}return _(g?`Today${x}`:y?`Yesterday${x}`:v?`Tomorrow${x}`:0!==b||h?d?`${l}${x}`:`${f}${x}`:`${u}${x}`)},exports.marginProps=an,exports.numberWithCommas=vK,exports.paddingProps=on,exports.positionProps=sn,exports.theme=T8,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,p]=t.useState(l||""),[d,h]=t.useState(null),g=()=>h(null);t.useEffect((()=>{s&&"string"==typeof l&&f!==l&&p(l)}),[d]);const y=()=>{null==d||d.resolve(!s||f),g()},v=()=>{null==d||d.resolve(!1),g()};it(document,"keydown",(e=>{const{key:t}=e;switch(t){case"Enter":y();break;case"Escape":v()}}),!!d,[f]);return[()=>new Promise((e=>{h({resolve:e})})),()=>e.jsxs(Z6,Object.assign({visible:!!d,onClose:g,width:400},{children:[n&&e.jsx(Z6.Header,{children:n}),r&&e.jsx(Z6.Text,{children:r}),s&&e.jsx(Z6.Body,Object.assign({marginTop:4,marginBottom:8},{children:e.jsx(Xr,{autoFocus:!0,label:c,placeholder:u,value:f,onChange:({target:e})=>p(e.value)})})),e.jsxs(Z6.Footer,{children:[e.jsx(xo,Object.assign({secondary:!0,marginRight:8,onClick:v},{children:o})),e.jsx(xo,Object.assign({negative:a,onClick:y},{children:i}))]})]}))]},exports.useElementObserver=nn,exports.useEventListener=it,exports.useOnClickOutside=at,exports.useSelect=ut,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=rn;
|
|
212
212
|
//# sourceMappingURL=index.js.map
|